/* sprachurlaub.com - design "Klar" v2 (calm, readable, petrol brand band, sea-glass surfaces). One stylesheet for the whole theme. */

/* ---------- tokens ---------- */
:root {
	--bg: #f4f7f5; --fg: #13201e; --accent: #0a5560; --accent-2: #0e7c86; --accent-soft: #dcebe9; --muted: #44564f;
	--card: #ffffff; --line: #c9d7d3; --focus: #0a5560; --ring: #ffffff;
	--brand: #0a4a53; --brand-2: #08363d; --on-brand: #f1f8f7; --on-brand-muted: #b9d6d3;
	--sand: #f3ead8; --sand-fg: #5a4316; --info-bg: #e7f2f1; --shadow: 0 1px 2px rgba(10, 40, 44, .06), 0 8px 24px rgba(10, 40, 44, .08);
	--radius: 10px;
	--font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0e1715; --fg: #e9f2f0; --accent: #7fd3dc; --accent-2: #9fe0e8; --accent-soft: #17302f; --muted: #aec3bf;
		--card: #15211f; --line: #2c4642; --focus: #9fe0e8; --ring: #0e1715;
		--brand: #0b343a; --brand-2: #08262a; --on-brand: #e9f6f5; --on-brand-muted: #9cc4c0;
		--sand: #2b2416; --sand-fg: #f1dcae; --info-bg: #142a29; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
	}
}
:root[data-theme="dark"] {
	--bg: #0e1715; --fg: #e9f2f0; --accent: #7fd3dc; --accent-2: #9fe0e8; --accent-soft: #17302f; --muted: #aec3bf;
	--card: #15211f; --line: #2c4642; --focus: #9fe0e8; --ring: #0e1715;
	--brand: #0b343a; --brand-2: #08262a; --on-brand: #e9f6f5; --on-brand-muted: #9cc4c0;
	--sand: #2b2416; --sand-fg: #f1dcae; --info-bg: #142a29; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.7 var(--font); overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ring); }
h1, h2, h3 { line-height: 1.15; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.025em; margin: 0 0 16px; }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); letter-spacing: -0.015em; margin: 0 0 12px; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 16px; }

/* ---------- header ---------- */
.site-header { background: var(--brand); color: var(--on-brand); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--on-brand); }
.logo .logo-mark { color: #8fe0d0; }
.site-nav ul, .footer-list { display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-block; padding: 10px 12px; color: var(--on-brand); text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: 6px; }
.site-nav a:hover { background: rgba(255, 255, 255, .12); }
.site-nav .current-menu-item > a, .site-nav .current-page-ancestor > a { background: rgba(255, 255, 255, .16); box-shadow: inset 0 -3px 0 #8fe0d0; }
.site-header a:focus-visible { outline-color: #ffffff; box-shadow: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-2); color: var(--on-brand-muted); margin-top: 48px; padding: 56px 0 40px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px 48px; }
.site-footer a { color: var(--on-brand); }
.site-footer .logo { margin-bottom: 12px; }
.site-footer p { margin: 0 0 10px; max-width: 46ch; }
.footer-title { color: var(--on-brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: 12px !important; }
.footer-list { flex-direction: column; gap: 2px; }
.footer-list a { display: inline-block; padding: 4px 0; text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-list .is-planned { color: var(--on-brand-muted); }
.footer-nav + .footer-legal { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .15); }

/* ---------- page head band ---------- */
.page-band { background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.band-grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 28px; padding-bottom: 32px; align-items: center; }
.page-band.has-img .band-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.band-img { margin: 0; }
.band-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.reviewed { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.reviewed::before { content: ""; width: 14px; height: 14px; background: var(--accent); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }

/* ---------- page layout: content + aside ---------- */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding-top: 36px; }
.page-layout.is-legal { grid-template-columns: minmax(0, 860px); }
.entry { min-width: 0; padding-bottom: 32px; }
.page-aside { position: relative; }
.aside-sticky { position: sticky; top: 20px; display: grid; gap: 16px; }
.aside-title { margin: 0 0 10px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); }
.toc, .facts, .method-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .95rem; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 26px 1fr; padding: 5px 0; line-height: 1.35; }
.toc li::before { content: counter(toc); color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.toc a { color: var(--fg); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.facts { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.facts .aside-title { color: #8fe0d0; }
.facts dl { margin: 0; display: grid; gap: 10px; }
.facts dt { font-size: .8rem; color: var(--on-brand-muted); }
.facts dd { margin: 0; font-weight: 600; line-height: 1.35; }
.method-box p { margin: 0 0 6px; color: var(--muted); }
.method-box p:last-child { margin: 0; }

/* ---------- content typography ---------- */
.entry > * + * { margin-top: 1em; }
.entry > :first-child { margin-top: 0; }
.entry h2 { margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--line); position: relative; }
.entry h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; background: var(--accent); border-radius: 2px; }
.entry h3 { margin-top: 1.6em; color: var(--accent); }
.entry h2 + h3 { margin-top: .8em; }
.entry p, .entry li { max-width: 72ch; }
.entry ul { padding-left: 0; list-style: none; }
.entry ul > li { position: relative; padding-left: 26px; }
.entry ul > li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.entry ol { padding-left: 0; list-style: none; counter-reset: ol; }
.entry ol > li { counter-increment: ol; position: relative; padding-left: 40px; }
.entry ol > li::before { content: counter(ol); position: absolute; left: 0; top: .1em; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.entry li + li { margin-top: .45em; }
.entry strong { font-weight: 700; }
.entry figure { margin: 2em 0; }
.entry figcaption { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.entry blockquote { margin: 2em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--muted); }

/* answer capsule ("Kurz gesagt") */
.entry .answer { font-size: 1.15rem; line-height: 1.6; padding: 22px 26px 22px 26px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); }
.entry .answer::before { content: "Kurz gesagt"; display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* info note (data status, scope) */
.entry .note, .ph { background: var(--info-bg); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); }
.entry .note { position: relative; padding: 14px 18px 14px 50px; font-size: .97rem; }
.entry .note::before { content: ""; position: absolute; left: 18px; top: 17px; width: 20px; height: 20px; background: var(--accent); -webkit-mask: var(--i-info) center / contain no-repeat; mask: var(--i-info) center / contain no-repeat; }
.ph { display: inline-block; padding: 2px 10px; font-size: 1rem; }

/* tables */
.entry .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.entry table { border-collapse: collapse; width: 100%; background: var(--card); font-size: .97rem; }
.entry > table { border: 1px solid var(--line); }
.entry th, .entry td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.entry thead th { background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: .9rem; letter-spacing: .01em; border-bottom: 0; }
.entry tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--accent-soft) 45%, var(--card)); }
.entry tbody tr:last-child td { border-bottom: 0; }
.entry td:first-child { font-weight: 600; }

/* sources */
.entry .sources { margin-top: 2.4em; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: .88rem; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.entry .sources::before { content: "Quellen"; display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* ---------- cards ---------- */
.children { padding: 24px 0 16px; }
.children > h2 { margin-bottom: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.cards a { display: flex; flex-direction: column; height: 100%; padding: 20px 22px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; overflow: hidden; }
.cards a:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(10, 40, 44, .08), 0 14px 32px rgba(10, 40, 44, .14); }
.cards h3 { color: var(--fg); margin-bottom: 6px; }
.cards a:hover h3 { color: var(--accent); }
.cards p { color: var(--muted); margin: 0; font-size: .95rem; }
.cards .card-img { display: block; width: calc(100% + 44px); max-width: none; height: auto; margin: -20px -22px 16px; aspect-ratio: 3 / 2; object-fit: cover; }
.cards-dest { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cards-dest a { padding: 0; position: relative; aspect-ratio: 4 / 5; justify-content: flex-end; }
.cards-dest .card-img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; }
.cards-dest a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 25, 28, 0) 45%, rgba(5, 25, 28, .78) 100%); }
.cards-dest h3 { position: relative; z-index: 1; margin: 0; padding: 16px 18px; color: #ffffff; font-size: 1.15rem; }
.cards-dest a:hover h3 { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.nav-links { display: flex; gap: 12px; padding: 24px 0; }

/* ---------- front page ---------- */
.hero { background: linear-gradient(160deg, var(--brand) 0%, var(--accent-2) 120%); color: var(--on-brand); padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero h1 { color: var(--on-brand); }
.lead { color: var(--on-brand-muted); font-size: 1.15rem; max-width: 52ch; margin: 0 0 28px; }
.grp { margin-bottom: 18px; }
.lbl { font-weight: 700; margin: 0 0 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #8fe0d0; }
.grp ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; border: 1.5px solid rgba(255, 255, 255, .55); color: #ffffff; padding: 8px 16px; min-height: 44px; font-weight: 600; text-decoration: none; border-radius: 999px; background: rgba(255, 255, 255, .08); }
a.chip:hover { background: #ffffff; color: var(--brand); border-color: #ffffff; }
.chip.is-planned { border-style: dashed; border-color: rgba(255, 255, 255, .3); color: var(--on-brand-muted); background: transparent; }
.hero a:focus-visible { outline-color: #ffffff; box-shadow: none; }
.front-hero { margin: 0; }
.front-hero img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
main > section, .front-content { padding: 60px 0; }
main > section + section, .front-content + section { border-top: 1px solid var(--line); }
.band-soft { background: var(--accent-soft); border-top: 0 !important; }
main > section .wrap, .front-content .wrap { max-width: 1180px; }
.front-content .entry { max-width: 820px; }
.sub { color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.tiles a, .tiles .is-planned { display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--fg); text-decoration: none; overflow: hidden; box-shadow: var(--shadow); }
.tiles .is-planned { box-shadow: none; border-style: dashed; }
.tiles a:hover h3 { color: var(--accent); }
.tiles p { color: var(--muted); margin: 0; font-size: .95rem; }
.tiles .card-img { display: block; width: calc(100% + 44px); max-width: none; height: auto; margin: -22px -22px 18px; aspect-ratio: 16 / 10; object-fit: cover; }
.formula { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 700; color: var(--accent); padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); margin: 0 0 24px; }
.method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 24px; padding: 0; list-style: none; }
.method li { padding: 14px 16px 14px 52px; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.method li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; background: var(--accent); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.fact { background: var(--sand); }
.fact .big { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; line-height: 1.15; color: var(--sand-fg); max-width: 24ch; margin: 0; }
.fact small { display: block; margin-top: 14px; color: var(--sand-fg); font-size: .95rem; opacity: .85; }
.is-planned { cursor: default; }

/* ---------- icons (single-colour SVG masks) ---------- */
:root {
	--i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E");
	--i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 15h-2v-6h2v6Zm0-8h-2V7h2v2Z'/%3E%3C/svg%3E");
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
	.page-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.page-aside { order: -1; margin-bottom: 24px; }
	.aside-sticky { position: static; }
	.toc { display: none; }
	.tiles { grid-template-columns: repeat(2, 1fr); }
	.cards-dest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.page-band.has-img .band-grid, .hero-grid { grid-template-columns: minmax(0, 1fr); }
	.band-img { order: -1; }
	.front-hero img { aspect-ratio: 3 / 2; }
	.hero { padding: 36px 0 44px; }
	main > section, .front-content { padding: 44px 0; }
	.method { grid-template-columns: minmax(0, 1fr); }
	.method-box { display: none; }
}
@media (max-width: 560px) {
	.tiles { grid-template-columns: minmax(0, 1fr); }
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.site-nav a { padding: 8px 10px; font-size: .95rem; }
	.cards-dest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cards-dest a { aspect-ratio: 1 / 1; }
	.cards-dest h3 { font-size: 1rem; padding: 12px; }
}
