/* Schriften lokal eingebunden (SIL Open Font License 1.1). Keine externen Ressourcen, keine Cookies, kein Tracking. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/fraunces-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/instrument-sans.woff2") format("woff2"); }

:root {
  --ink: #1f1c19;
  --text: #45403b;
  --muted: #756e67;
  --orange: #e66a1f;
  --orange-soft: #ed7d31;
  --orange-deep: #ad4708;
  --peach: #ffeee0;
  --peach-2: #ffd9bd;
  --paper: #fffaf5;
  --white: #ffffff;
  --wrap: 1240px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 560; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h1 em, h2 em { font-style: italic; font-weight: 480; }
h2 { font-size: clamp(2.1rem, 5vw, 4.25rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 22px; }
.kicker::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 4px solid currentColor; }
.lead { font-size: clamp(1.125rem, 1.55vw, 1.3125rem); line-height: 1.55; max-width: 34em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 600; font-size: 1.375rem; letter-spacing: -0.03em; white-space: nowrap; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo i { font-weight: 500; }
.logo .a { stroke: var(--ink); }
.logo .b { stroke: var(--white); transition: stroke .25s; }

/* Kopfzeile */
header.site { position: sticky; top: 0; z-index: 20; background: var(--orange); transition: background .25s, box-shadow .25s; }
header.site.scrolled { background: var(--paper); box-shadow: 0 1px 0 rgba(31,28,25,.12); }
header.site.scrolled .logo .b { stroke: var(--orange); }
header.site.scrolled .logo i { color: var(--orange-deep); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
nav.main { display: flex; align-items: center; gap: 32px; }
nav.main a { text-decoration: none; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
nav.main a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--white); font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .18s, background .18s, color .18s; }
.btn:hover { transform: translateY(-2px) rotate(-1.5deg); background: var(--white); color: var(--ink); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--white); }
.btn.small { padding: 10px 20px; font-size: 0.9375rem; }
nav.main a.btn { color: var(--white); }
nav.main a.btn:hover { color: var(--ink); }
@media (max-width: 800px) { nav.main a:not(.btn) { display: none; } }

/* Hero */
.hero { background: var(--orange); padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 128px); overflow: hidden; }
.hero .wrap { position: relative; }
.hero h1 { position: relative; z-index: 2; font-size: clamp(2.9rem, 8.6vw, 8.25rem); line-height: 0.94; letter-spacing: -0.045em; max-width: 9.5em; }
.hero h1 em { display: block; color: var(--white); }
.hero-foot { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 30em) auto; gap: 40px; align-items: end; justify-content: space-between; margin-top: clamp(36px, 5vw, 64px); }
.hero-foot .lead { color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wheel { position: absolute; z-index: 1; right: -210px; top: -150px; width: min(62vw, 760px); aspect-ratio: 1; animation: sway 14s ease-in-out infinite alternate; }
.wheel circle { fill: none; stroke: var(--ink); stroke-width: 60; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(7deg); } }
@media (max-width: 900px) {
  .hero-foot { grid-template-columns: 1fr; }
  .wheel { right: -42vw; top: auto; bottom: -34vw; width: 96vw; opacity: .55; }
  .hero { padding-bottom: 48vw; }
}

/* Ausgangslage */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.states { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 7vw, 96px); border-top: 2px solid var(--ink); }
.state { padding: 36px 32px 44px 0; margin-right: 32px; display: flex; flex-direction: column; gap: 14px; }
.state + .state { padding-left: 32px; margin-left: -32px; border-left: 2px solid var(--ink); }
.sun { width: 84px; height: 84px; margin-bottom: 28px; color: var(--orange); }
.sun .rays { stroke: currentColor; stroke-width: 5; stroke-linecap: round; transform-origin: 50% 50%; animation: spin 40s linear infinite; }
.state.dim .sun { color: #c9c2ba; }
.state.dim .sun .rays { animation: none; }
.state.dim h3 { font-style: italic; }
@media (max-width: 900px) {
  .states { grid-template-columns: 1fr; }
  .state, .state + .state { padding: 32px 0; margin: 0; border-left: 0; }
  .state + .state { border-top: 2px solid var(--ink); }
  .sun { margin-bottom: 12px; }
}

/* Generationen */
.gen { background: var(--peach); }
.age-stage { margin-top: 0; display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.age-num { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 600; font-size: clamp(6rem, min(19vw, 30vh), 16rem); line-height: .8; letter-spacing: -0.06em; color: var(--orange); min-width: 1.25em; font-variant-numeric: tabular-nums; }
.age-num small { display: block; font: 700 0.8125rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-deep); margin-top: 22px; }
.age-info .span { font-weight: 700; color: var(--orange-deep); margin-bottom: 8px; }
.age-info h3 { font-size: clamp(1.9rem, 4vw, 3.4rem); letter-spacing: -0.035em; line-height: 1; min-height: 2em; display: flex; align-items: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; min-height: 96px; align-content: flex-start; }
.chips li { padding: 9px 18px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; font-size: 0.9375rem; animation: pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.chips li:nth-child(2) { animation-delay: .04s; } .chips li:nth-child(3) { animation-delay: .08s; } .chips li:nth-child(4) { animation-delay: .12s; } .chips li:nth-child(5) { animation-delay: .16s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.94); } }
@media (max-width: 760px) { .age-stage { grid-template-columns: 1fr; } }

.ruler { margin-top: clamp(36px, 5vw, 64px); position: relative; }
.ruler-hint { font-size: 0.875rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.bands { display: grid; grid-template-columns: 13fr 7fr 10fr 16fr 15fr 15fr 15fr; gap: 4px; }
.bands button { height: 22px; border: 0; padding: 0; border-radius: 6px; background: var(--peach-2); cursor: pointer; transition: background .2s, transform .2s; }
.bands button:hover { background: var(--orange-soft); }
.bands button.on { background: var(--ink); transform: scaleY(1.35); }
.ruler input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: -33px 0 0; background: transparent; position: relative; cursor: grab; pointer-events: none; }
.ruler input[type=range]::-webkit-slider-runnable-track { height: 44px; background: transparent; }
.ruler input[type=range]::-moz-range-track { height: 44px; background: transparent; }
.ruler input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); border: 5px solid var(--white); box-shadow: 0 6px 18px rgba(173,71,8,.35); cursor: grab; }
.ruler input[type=range]::-moz-range-thumb { pointer-events: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); border: 5px solid var(--white); box-shadow: 0 6px 18px rgba(173,71,8,.35); cursor: grab; }
.ruler input[type=range]:focus-visible { outline: none; }
.ruler input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--ink); outline-offset: 3px; }
.ruler input[type=range]:focus-visible::-moz-range-thumb { outline: 3px solid var(--ink); outline-offset: 3px; }
.band-labels { display: grid; grid-template-columns: 13fr 7fr 10fr 16fr 15fr 15fr 15fr; gap: 4px; margin-top: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.band-labels span { white-space: nowrap; }
@media (max-width: 760px) { .band-labels { font-size: 0.625rem; letter-spacing: -0.02em; } }

.fields { margin-top: clamp(56px, 8vw, 112px); display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.fields h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.fields ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; counter-reset: f; }
.fields li { counter-increment: f; display: flex; gap: 16px; padding: 14px 0; border-top: 1.5px solid var(--ink); break-inside: avoid; font-weight: 600; color: var(--ink); }
.fields li::before { content: counter(f, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--orange-deep); }
@media (max-width: 820px) { .fields { grid-template-columns: 1fr; } .fields ol { columns: 1; } }

/* Alter per Scroll: der Abschnitt bleibt stehen, das Scrollen zählt das Alter hoch */
.gen-track { height: 340vh; margin-top: clamp(24px, 4vw, 48px); }
.gen-pin { position: sticky; top: 76px; height: calc(100vh - 76px); height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; }
@media (max-height: 620px), (prefers-reduced-motion: reduce) {
  .gen-track { height: auto; margin-top: clamp(48px, 7vw, 88px); }
  .gen-pin { position: static; height: auto; display: block; }
}

/* Suchfelder */
.search { background: var(--ink); color: #d8d1c9; }
.search h2 { color: var(--white); }
.search h2 em { color: var(--orange-soft); }
.search .kicker { color: var(--orange-soft); }
.search-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.search .lead { margin-top: 28px; }
.matrix { display: grid; grid-template-columns: auto 1fr 1fr; grid-template-rows: auto 1fr 1fr; gap: 10px; font-weight: 700; }
.matrix .ax { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-soft); display: grid; place-items: center; padding: 6px; }
.matrix .ax.v { writing-mode: vertical-rl; transform: rotate(180deg); }
.matrix .cell { aspect-ratio: 1; border-radius: 28px; border: 2px solid #5a534c; display: flex; align-items: flex-end; padding: 20px; font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 500; font-size: clamp(1.05rem, 1.7vw, 1.5rem); line-height: 1.1; color: var(--white); transition: background .25s, border-color .25s, color .25s; }
.matrix .cell { position: relative; overflow: hidden; isolation: isolate; transition: color .3s, border-color .3s, opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1); }
.matrix .cell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--orange); clip-path: circle(0% at var(--x, 20%) var(--y, 85%)); transition: clip-path .6s cubic-bezier(.2,.8,.2,1); }
.matrix .cell::after { content: ""; position: absolute; top: 22px; left: 22px; width: 26px; height: 26px; border-radius: 50%; border: 6px solid #5a534c; transition: border-color .3s, transform .5s cubic-bezier(.2,1.4,.4,1); }
.matrix .cell:hover { color: var(--ink); border-color: var(--orange); transform: translateY(-6px); }
.matrix .cell:hover::before { clip-path: circle(150% at var(--x, 20%) var(--y, 85%)); }
.matrix .cell:hover::after { border-color: var(--ink); transform: scale(1.3); }
.matrix:has(.cell:hover) .cell:not(:hover) { opacity: .45; }
@media (max-width: 900px) { .search-grid { grid-template-columns: 1fr; } }

/* Programm */
.prog-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prog-side { position: sticky; top: 120px; }
.prog-side .lead { margin-top: 24px; }
.loop { width: 132px; height: 132px; margin-top: 40px; }
.loop circle { fill: none; stroke-width: 12; }
.loop .t { stroke: var(--peach-2); }
.loop .p { stroke: var(--orange); stroke-linecap: round; transition: stroke-dasharray .5s cubic-bezier(.2,.8,.2,1); }
.loop text { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 34px; fill: var(--ink); text-anchor: middle; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 96px 1fr; gap: 8px 24px; padding: 36px 0 40px; border-top: 2px solid var(--ink); }
.steps > li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: .9; letter-spacing: -0.04em; color: var(--orange); }
.steps h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.steps ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.steps ul li { padding-left: 26px; position: relative; }
.steps ul li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--orange-soft); }
.again { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 20px; border-radius: 999px; background: var(--peach); color: var(--ink); font-weight: 700; }
.again svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .prog-grid { grid-template-columns: 1fr; } .prog-side { position: static; } .loop { display: none; } .steps > li { grid-template-columns: 64px 1fr; } }

/* Über uns */
.about { background: var(--peach); }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); margin-top: clamp(48px, 7vw, 96px); max-width: 980px; }
.person:nth-child(2) { margin-top: clamp(0px, 8vw, 110px); }
.person .frame { border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--orange); aspect-ratio: 4 / 5; }
.person img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.person:hover img { transform: scale(1.04); }
.person h3 { margin-top: 24px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.person .place { color: var(--orange-deep); font-weight: 700; margin-top: 4px; }
.person .links { margin-top: 14px; display: grid; gap: 4px; justify-items: start; }
.person .links a { font-weight: 600; color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 640px) { .people { grid-template-columns: 1fr; } .person:nth-child(2) { margin-top: 0; } }

/* Kontakt */
.cta { background: var(--orange); overflow: hidden; }
.cta h2 { font-size: clamp(2.6rem, 8vw, 7.25rem); line-height: .95; letter-spacing: -0.045em; max-width: 9em; }
.cta h2 em { color: var(--white); }
.cta .lead { margin-top: 32px; color: var(--ink); font-weight: 500; }
.cta .btn { margin-top: 40px; }
footer { background: var(--ink); color: #a79f96; padding: 36px 0 44px; font-size: 0.9375rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer .logo { color: var(--white); font-size: 1.125rem; }
footer .logo .a { stroke: var(--white); }
footer .logo .b { stroke: var(--orange); }
footer .logo i { color: var(--orange-soft); }
footer nav a { text-decoration: none; margin-left: 24px; }
footer nav a:hover { color: var(--white); }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wheel, .sun .rays, .chips li { animation: none; }
  .btn, .matrix .cell, .matrix .cell::before, .matrix .cell::after, .person img { transition: none; }
  .matrix .cell:hover { transform: none; }
}

.wheel circle.w { stroke: var(--white); }
.person img.pa { object-position: 50% 50%; }
.person img.pf { object-position: 50% 50%; }

/* Rechtstexte */
.legal { padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 10vw, 136px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); margin-bottom: 40px; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.875rem); margin: 48px 0 14px; letter-spacing: -0.02em; line-height: 1.15; }
.legal p, .legal ul, .legal address { margin: 0 0 16px; font-style: normal; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.legal .back { display: inline-block; margin-bottom: 36px; font-weight: 700; }
