/* The Open Pub — site.css 2.3.0
   Eigenes Kleid (Design System v1, 05.10.2026): Kreide, Tafel, Licht, Wirt; Archivo + Atkinson Hyperlegible Next.
   Farben kommen aus tokens.css, Schriften aus fonts.css. Abstände und Radien unverändert aus 2.1.0. Alle Paare AA. */

:root {
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-0: 0.875rem;
  --fs-1: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --fs-2: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-4: clamp(1.625rem, 1.35rem + 1.2vw, 2.25rem);
  --fs-5: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --fs-7: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;
  --section: clamp(4.5rem, 3rem + 5vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --container: 72rem;
  --measure: 60ch;
  --radius: .25rem; --radius-lg: .5rem;
  --tap: 3rem;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--kreide); color: var(--tafel); font-family: var(--font-text); font-size: var(--fs-1); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100dvh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tafel); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--licht); color: var(--on-licht); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 750; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 var(--s-4); text-wrap: balance; }
h3 { line-height: 1.2; }
h1 { font-size: var(--fs-5); } h2 { font-size: var(--fs-5); } h3 { font-size: var(--fs-3); }
p, ul, ol { margin: 0 0 var(--s-4); max-width: var(--measure); }
.lead { font-size: var(--fs-2); color: var(--tafel-soft); }
.meta { font-size: var(--fs-0); color: var(--tafel-soft); }
.eyebrow { font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--tafel-soft); margin: 0 0 var(--s-3); }
.lang-de p[lang="en"], .lang-en p[lang="de"] { font-style: italic; } /* nur die Zeile in der jeweils anderen Sprache — nicht die ganze Seite */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--tafel); color: var(--kreide); padding: var(--s-3) var(--s-4); border-radius: var(--radius); font-weight: 650; }
.skip-link:focus { top: var(--s-4); }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 40em) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--tap); padding: var(--s-3) var(--s-5); border-radius: var(--radius); font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.btn-primary { background: var(--cta); color: var(--on-cta); border-color: var(--cta); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: transparent; color: var(--tafel); border-color: var(--tafel); }
.btn-secondary:hover { background: var(--tafel); color: var(--kreide); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- header ---------- */
.site-header { background: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-4); }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); text-decoration: none; color: var(--tafel); min-height: var(--tap); flex-wrap: wrap; }
.brand-name { display: inline-flex; align-items: center; gap: .42em; min-height: 2.75rem; font-family: var(--font-display); font-size: var(--fs-3); font-weight: 750; letter-spacing: -0.008em; line-height: 1; color: var(--tafel); text-decoration: none; }
.brand-name::before { content: ""; flex: none; width: 1.5em; height: 1.5em; background: url("../logo/open-pub-mark.svg") center / contain no-repeat; }
@media (prefers-color-scheme: dark) { :root:not([data-scheme="light"]) .brand-name::before { background-image: url("../logo/open-pub-mark-on-dark.svg"); } }
:root[data-scheme="dark"] .brand-name::before { background-image: url("../logo/open-pub-mark-on-dark.svg"); }
.brand-name:hover { text-decoration: underline; }
.brand-of { font-size: var(--fs-0); color: var(--tafel-soft); }
.brand-of a { color: inherit; text-decoration: none; } .brand-of a:hover { text-decoration: underline; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); max-width: none; }
.site-nav a { color: var(--tafel-soft); text-decoration: none; font-size: var(--fs-0); font-weight: 600; min-height: var(--tap); display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--tafel); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 40em) { .site-nav { display: none; } }

/* ---------- hero (Bühne) ---------- */
.hero { position: relative; isolation: isolate; color: var(--on-band); background: var(--band); }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; filter: saturate(.85); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(13 15 17 / .92) 0%, rgb(13 15 17 / .58) 55%, rgb(13 15 17 / .28) 100%); }
.hero-inner { padding: clamp(11rem, 38vw, 17rem) 0 var(--s-7); }
.hero .eyebrow { display: inline-block; color: #fff; opacity: .85; text-shadow: 0 1px 2px rgb(0 0 0 / .45); }
.hero h1 { font-size: var(--fs-7); margin-bottom: var(--s-4); color: #fff; max-width: 14ch; letter-spacing: -0.02em; text-shadow: 0 1px 2px rgb(0 0 0 / .35); }
.hero .lead { color: #fff; opacity: .95; max-width: 36ch; font-size: var(--fs-2); margin-bottom: var(--s-3); text-shadow: 0 1px 2px rgb(0 0 0 / .35); }
.hero .lead[lang="en"] { opacity: .8; margin-bottom: var(--s-5); }
.hero .btn-primary { background: var(--licht); color: var(--on-licht); border-color: var(--licht); }
.hero :focus-visible, .band :focus-visible { outline-color: var(--licht); }
.hero .btn-secondary { color: #fff; border-color: transparent; text-decoration: underline; text-underline-offset: .2em; padding-inline: var(--s-2); } .hero .btn-secondary:hover { background: transparent; color: #fff; }

/* ---------- Kernsatz ---------- */
.claim { max-width: none; }
.claim .statement { font-family: var(--font-display); font-weight: 750; font-size: var(--fs-5); line-height: 1.15; letter-spacing: -0.015em; max-width: 22ch; margin: 0 0 var(--s-5); text-wrap: balance; }
.claim .statement em { font-style: normal; text-decoration: underline; text-decoration-color: var(--licht); text-decoration-thickness: .16em; text-underline-offset: .14em; text-decoration-skip-ink: none; } /* langer Halbsatz: Licht als Unterstreichung; der volle Marker (.marker) nur für bis zu drei Wörter */
.marker { font-style: normal; background: var(--licht); color: var(--on-licht); padding: 0 .16em; border-radius: var(--radius); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.claim .lead { max-width: var(--measure); }

/* ---------- bleibt / wechselt ---------- */
.pair { --fam: var(--kreide-raised); --fam-deep: var(--tafel-soft); --fam-edge: var(--line-strong); }
.pair-card { background: var(--fam); border: 1px solid var(--fam-edge); border-radius: var(--radius-lg); padding: var(--s-6); }
.pair-card.is-change { --fam: var(--wirt-soft); --fam-deep: var(--wirt); --fam-edge: var(--wirt); }
.pair-card .eyebrow { color: var(--fam-deep); }
.pair-card h3 { font-size: var(--fs-4); margin-bottom: var(--s-4); }
.pair-card ul { list-style: none; padding: 0; margin: 0; }
.pair-card li { padding: var(--s-3) 0; border-top: 1px solid var(--line-strong); }
.pair-card li:first-child { border-top: 0; padding-top: 0; }
.pair-card li strong { display: block; font-weight: 650; }
.pair-card li span { color: var(--tafel-soft); font-size: var(--fs-0); }

/* ---------- Schritte ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; max-width: none; }
.step { position: relative; padding: var(--s-5) 0 var(--s-5) 3.25rem; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: var(--s-5); display: inline-flex; align-items: center; justify-content: center; width: var(--s-6); height: var(--s-6); border-radius: 999px; background: var(--tafel); color: var(--kreide); font-family: var(--font-display); font-size: var(--fs-0); font-weight: 700; line-height: 1; }
.step:last-child::before { background: var(--licht); color: var(--on-licht); }
.step h3 { margin-bottom: var(--s-2); }
.step p { margin: 0; color: var(--tafel-soft); }

/* ---------- Quote ---------- */
.quote { margin: 0; padding: 0; max-width: none; }
.quote p { font-family: var(--font-display); font-size: var(--fs-4); font-style: normal; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 var(--s-3); max-width: 24ch; text-wrap: balance; }
.lang-de .quote p, .lang-en .quote p { font-style: normal; } /* Archivo hat keine Kursive — keine synthetische Schrägstellung */
.quote footer { font-size: var(--fs-0); color: var(--tafel-soft); }
.band .quote p { font-size: var(--fs-5); }
.band .quote footer { color: var(--on-band); opacity: .85; }

/* ---------- Residenz-Karte ---------- */
.residency { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 52em) { .residency { grid-template-columns: 1.1fr .9fr; } }
.residency figure { margin: 0; }
.residency img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius-lg); }
.residency dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-4); margin: var(--s-4) 0 0; max-width: none; font-size: var(--fs-0); }
.residency dt { color: var(--tafel-soft); } .residency dd { margin: 0; }

/* ---------- Für wen ---------- */
.who { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: var(--s-3); }
@media (min-width: 40em) { .who { grid-template-columns: repeat(2, 1fr); } }
.who li { padding: var(--s-4) var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.who li strong { display: block; font-family: var(--font-display); font-size: var(--fs-3); font-weight: 700; margin-bottom: var(--s-1); }
.who li span { color: var(--tafel-soft); font-size: var(--fs-0); }

/* ---------- band (Kontakt) ---------- */
.band { background: var(--band); color: var(--on-band); padding-block: var(--section); }
.band a { color: var(--on-band); }
.band .eyebrow { color: var(--licht); }
.band .lead { color: var(--on-band); opacity: .88; }
.band h2 { color: var(--on-band); }
.band .btn-primary { background: var(--licht); color: var(--on-licht); border-color: var(--licht); }
.band .btn-secondary { color: var(--on-band); border-color: var(--on-band); } .band .btn-secondary:hover { background: var(--on-band); color: var(--band); }
.band .mail { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-3); }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; background: var(--kreide); border-top: 1px solid var(--line); padding: var(--s-6) 0; font-size: var(--fs-0); color: var(--tafel-soft); }
.site-footer .row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: center; }
.site-footer a { color: inherit; display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer p { margin: 0; max-width: none; }
.site-footer .note { margin-top: var(--s-3); }

/* Admin-Bar-Versatz, wenn eingeloggt */
body.admin-bar .site-header { padding-top: 32px; }

/* ---------- Sprachschalter (2.1.0) ---------- */
.lang-switch { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--s-3); color: var(--tafel-soft); text-decoration: none; font-size: var(--fs-0); font-weight: 600; letter-spacing: .04em; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.lang-switch:hover { color: var(--tafel); border-color: var(--tafel); text-decoration: none; }
@media (max-width: 40em) { .header-inner { flex-wrap: wrap; } .lang-switch { min-height: 2.5rem; } }
