/* BaseRegain Website, Runde 2: gemeinsame Grundlage für Startseiten-Entwürfe und Unterseiten.
   Welt: „Dämmerung“ aus der App, Richtung „Abendhimmel“ (Variante B). */

@font-face { font-family: Outfit; font-style: normal; font-weight: 300 600; font-display: swap; src: url(fonts/outfit-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-style: normal; font-weight: 300 600; font-display: swap; src: url(fonts/outfit-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #17122F;
  --night-2: #1E1737;
  --dusk: #26193F;
  --plum: #352049;
  --mauve: #6E4178;
  --text: #F4EEFF;
  --text-2: rgba(244, 238, 255, .78);
  --text-3: rgba(244, 238, 255, .64);
  --peach: #FFD9B5;
  --coral: #F7A08C;
  --rose: #8E3A4C;
  --ink: #2B1533;
  --ink-2: rgba(43, 21, 51, .78);
  --day-1: #FFF3EA;
  --day-2: #FCE6D9;
  --day-3: #F8CDB9;
  --veil: rgba(255, 255, 255, .065);
  --veil-2: rgba(255, 255, 255, .11);
  --orb: radial-gradient(circle at 40% 34%, #FFF7EC 0%, #FFD3AC 36%, #F59A8C 72%, #C77BA8 100%);
  --moon: radial-gradient(circle at 38% 32%, #FFF1DF 0%, #FFC9A3 34%, #F2918A 70%, #A86FC0 100%);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Formsystem: Bedienelemente 18px, Flächen 32px, Marken 999px */
  --r-control: 18px;
  --r-surface: 32px;
  --r-pill: 999px;

  --wrap: 1200px;
  --gutter: 24px;
  --nav-h: 72px;
  --section: clamp(88px, 11vw, 150px);

  color-scheme: dark;
  scrollbar-color: #4A3560 var(--night);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: rgba(255, 217, 181, .92); color: var(--ink); }
input, textarea { caret-color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 10px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: #4A3560; border-radius: 12px; border: 3px solid var(--night); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--peach); color: var(--ink); padding: 12px 18px; border-radius: var(--r-control); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* Schrift */
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.2vw, 88px); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: 24px; line-height: 1.3; letter-spacing: -.01em; }
p { text-wrap: pretty; }
.lead { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 52ch; }
.body { color: var(--text-2); max-width: 62ch; }
.body + .body { margin-top: 14px; }
.prose a, .body a, .lead a { color: var(--peach); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.prose a:hover, .body a:hover { text-decoration-thickness: 2px; }
.num { font-variant-numeric: tabular-nums; }

/* Spiel mit Text: Betonung, Durchstreichen, Wörter, die beim Lesen aufleuchten */
.em { color: var(--peach); font-weight: 500; }
/* Durchstreichen für kurze, einzeilige Wendungen: die Linie wächst per transform von links */
.strike { position: relative; display: inline-block; transition: color 900ms ease; transition-delay: calc(var(--i, 0) * 180ms); }
.strike::after { content: ""; position: absolute; left: -.04em; right: -.04em; top: 54%; height: .085em; border-radius: .05em; background: var(--coral); transform: scaleX(0); transform-origin: left center; transition: transform 900ms var(--ease-out); transition-delay: inherit; pointer-events: none; }
.strike.is-struck { color: var(--text-3); }
.strike.is-struck::after { transform: scaleX(1); }
[data-words] .w { transition: opacity 120ms linear; }
@media (prefers-reduced-motion: reduce) { .strike, .strike::after { transition: none; } [data-words] .w { opacity: 1 !important; } }
/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: var(--r-control);
  font: 600 17px/1.3 Outfit, system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } .btn:active { transform: scale(.97); } }
.btn--glow { background: linear-gradient(90deg, var(--peach), var(--coral)); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--day-1); }
.btn--soft { background: var(--veil-2); color: var(--text); }
.btn--day { background: rgba(255, 255, 255, .62); color: var(--ink); }
.btn .ic { width: 20px; height: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Navigation */
.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--text); transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease; }
.site-nav .wrap { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; letter-spacing: .24em; text-decoration: none; }
.brand i { width: 22px; height: 22px; border-radius: 50%; background: var(--orb); }
.nav-main { margin-left: auto; }
.nav-links { display: flex; gap: 26px; font-size: 16px; list-style: none; }
.nav-links a { text-decoration: none; color: inherit; opacity: .8; transition: opacity 200ms ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--coral); }
.site-nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 14px; margin-left: auto; align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 200ms var(--ease-out); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav.is-scrolled { background: rgba(23, 18, 47, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-nav.is-light { color: var(--ink); }
.site-nav.is-light.is-scrolled { background: rgba(255, 243, 234, .88); }
.site-nav.is-light .btn--glow { background: var(--ink); color: var(--day-1); box-shadow: none; }
.site-menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: var(--night); padding: 24px var(--gutter) 40px; overflow-y: auto; }
.site-menu ul { list-style: none; display: grid; gap: 4px; }
.site-menu a:not(.btn) { display: block; padding: 14px 0; font-size: 28px; font-weight: 500; text-decoration: none; }
.site-menu .btn { margin-top: 24px; width: 100%; }
.menu-open body { overflow: hidden; }
.menu-open .site-nav { background: var(--night); color: var(--text); }
@media (max-width: 1100px) {
  .nav-main, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Unterseiten-Kopf: jede Seite ist eine eigene Stunde des Abends */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(56px, 8vw, 96px)) 0 clamp(72px, 9vw, 120px); }
.page-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.page-hero h1 { max-width: 14ch; }
.page-hero .lead { margin-top: 24px; }
.page-hero .orb { width: clamp(150px, 20vw, 260px); aspect-ratio: 1; border-radius: 50%; justify-self: center; background: var(--orb); }
.page-hero .orb.is-moon { background: var(--moon); width: clamp(110px, 14vw, 180px); }
.page-hero .phone { justify-self: center; width: min(300px, 70vw); }
.sky-dusk { background: linear-gradient(180deg, #8E5389 0%, #6E4178 34%, var(--plum) 62%, var(--dusk) 84%, var(--night) 100%); }
.sky-dusk .lead { color: var(--text); }
.sky-blue { background: linear-gradient(180deg, #4B2F69 0%, #352049 40%, var(--dusk) 72%, var(--night) 100%); }
.sky-late { background: linear-gradient(180deg, #3A2350 0%, #2A1C44 50%, var(--night-2) 80%, var(--night) 100%); }
.sky-night { background: linear-gradient(180deg, #241A3E 0%, var(--night-2) 60%, var(--night) 100%); }

/* Abschnitte */
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section h2 + .lead, .section h2 + .body { margin-top: 22px; }
.phone { filter: drop-shadow(0 40px 60px rgba(8, 4, 24, .55)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.pair { display: flex; gap: 24px; justify-content: center; }
.pair img { width: min(270px, 42vw); }
.pair img:last-child { margin-top: 88px; }
.note { font-size: 16px; color: var(--text-3); margin-top: 18px; max-width: 60ch; }

/* Startliste, Hilfe, Fuß: auf jeder Seite gleich */
.startliste { position: relative; padding: clamp(110px, 13vw, 170px) 0 72px; text-align: center; background: linear-gradient(180deg, rgba(23, 18, 47, 0) 0%, var(--night) 40%); }
.startliste .moon { width: 120px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto 44px; background: var(--moon); }
.startliste h2 { margin: 0 auto; max-width: 16ch; }
.startliste .lead { margin: 20px auto 0; }
.signup { margin: 40px auto 0; max-width: 560px; text-align: left; }
.signup label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.signup .row { display: flex; gap: 12px; flex-wrap: wrap; }
.signup input { flex: 1 1 260px; min-height: 56px; border: 2px solid transparent; border-radius: var(--r-control); background: var(--veil-2); color: var(--text); padding: 0 20px; font-size: 17px; transition: border-color 200ms ease, background-color 200ms ease; }
.signup input::placeholder { color: var(--text-3); }
.signup input:focus { outline: none; border-color: var(--peach); background: rgba(255, 255, 255, .14); }
.signup input[aria-invalid="true"] { border-color: #FF9C8A; }
.signup .err { min-height: 24px; margin-top: 8px; font-size: 15px; color: #FFB4A6; }
.signup .msg { font-size: 16px; color: var(--peach); }
.signup .consent { font-size: 15px; color: var(--text-3); margin-top: 6px; }
.signup .consent a { color: var(--text-2); text-underline-offset: .2em; }
.site-foot { padding: 64px 0 48px; color: var(--text-3); font-size: 16px; background: var(--night); }
.site-foot .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-foot p { margin-top: 14px; max-width: 32ch; }
.site-foot h2, .site-foot .foot-h { font-size: 16px; line-height: 1.3; letter-spacing: 0; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.site-foot ul { list-style: none; display: grid; gap: 6px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--text); }
.site-foot .brand { color: var(--text); }
.site-foot .legal { grid-column: 1 / -1; margin-top: 20px; font-size: 15px; max-width: none; }

@media (max-width: 900px) {
  .page-hero .wrap, .split { grid-template-columns: 1fr; }
  .page-hero .orb { justify-self: start; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .site-foot .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; --nav-h: 64px; }
  body { font-size: 17px; }
  .actions .btn { width: 100%; }
  .pair img:last-child { margin-top: 48px; }
  .signup .row .btn { width: 100%; }
  .site-foot .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .site-nav { transition: none; }
}

.signup-soon { margin: 32px auto 0; max-width: 44ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--text-2); }

.legaltext > * { max-width: 70ch; }
.legaltext h2 { font-size: 24px; line-height: 1.3; letter-spacing: 0; margin-top: 44px; }
.legaltext h2:first-child { margin-top: 0; }
.legaltext p { color: var(--text-2); margin-top: 12px; }
.fehlt { background: #FFD9B5; color: #2B1533; padding: 0 6px; border-radius: 6px; font-weight: 600; }
