/* Weihnachtsaktion
   Native CSS, kein Build-Schritt (auf dem Server laeuft kein Node).
   Eine Akzentfarbe (gebranntes Orange), eine Radius-Stufe (14px), ein Theme je nach Systemeinstellung (hell/dunkel). */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  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;
}

:root {
  --bg: #f3f6f2;
  --surface: #ffffff;
  --ink: #12231c;
  --ink-2: #44554d;
  --line: #d5ddd7;
  --accent: #b45309;          /* Buttons: weisser Text 5.0:1 */
  --accent-hover: #92400e;
  --accent-ink: #ffffff;
  --accent-soft: #fdf1e3;
  --focus: #1d4ed8;
  --error: #b42318;
  --error-bg: #fdeceb;
  --ok: #0f6b3d;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(18 35 28 / .06), 0 8px 24px -12px rgb(18 35 28 / .18);
  --max: 1160px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1813;
    --surface: #13241d;
    --ink: #eaf2ed;
    --ink-2: #a9bbb1;
    --line: #27413a;
      --accent: #f59e3b;
    --accent-hover: #ffb35e;
    --accent-ink: #0c1813;
    --accent-soft: #2b2113;
    --focus: #8ab4ff;
    --error: #ff9b91;
    --error-bg: #34171a;
    --ok: #6ee7a5;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; background-color: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

.i-map-pin { --i: url("../icons/map-pin.svg"); }
.i-download { --i: url("../icons/download-simple.svg"); }
.i-envelope { --i: url("../icons/envelope-simple.svg"); }
.i-gift { --i: url("../icons/gift.svg"); }
.i-check { --i: url("../icons/check-circle.svg"); }

/* Hero */
.hero { width: min(100% - 2rem, var(--max)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero:has(.hero-visual[hidden]) { grid-template-columns: minmax(0, 1fr); }
.hero:has(.hero-visual[hidden]) .hero-text { text-align: center; }
.hero:has(.hero-visual[hidden]) .hero-text > * { margin-inline: auto; }
.hero:has(.hero-visual[hidden]) .plz-form { justify-content: center; text-align: left; }
.hero-text > * { max-width: 36rem; }
.hero-text > h1 { max-width: 42rem; }
h1 { margin: 0 0 1rem; font-size: clamp(2rem, 3.7vw, 3.25rem); max-width: 40rem; line-height: 1.06; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.lead { margin: 0 0 2rem; color: var(--ink-2); font-size: 1.1875rem; max-width: 30rem; }
.hero-visual { background: var(--accent-soft); border-radius: 28px; display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); }
.book { position: relative; width: min(100%, 250px); aspect-ratio: 3 / 4; border-radius: 4px 12px 12px 4px; overflow: hidden; background: var(--surface); box-shadow: 0 22px 40px -20px rgb(18 35 28 / .4); }
.book img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Formular-Bausteine */
.plz-form { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: end; max-width: 30rem; }
.plz-form .field-email, .plz-form .btn { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label, .legend { font-weight: 600; font-size: .95rem; }
.hint { font-weight: 400; color: var(--ink-2); font-size: .9rem; }
input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%; min-height: 52px; padding: .75rem 1rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--ink-2); border-radius: var(--radius);
}
input::placeholder { color: var(--ink-2); opacity: .8; }
input[aria-invalid="true"] { border-color: var(--error); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: .75rem 1.5rem;
  font: inherit; font-weight: 600; color: var(--accent-ink); background: var(--accent); border: 0; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, transform .08s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.fehler { margin: .75rem 0 0; padding: .75rem 1rem; color: var(--error); background: var(--error-bg); border-radius: var(--radius); font-size: .95rem; }
.fehler[hidden], [hidden] { display: none !important; }

/* Ergebnisse */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.02em; }
.section .sub { margin: 0 0 1.75rem; color: var(--ink-2); max-width: 38rem; }
.ergebnis { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.studios { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.studio { position: relative; }
.studio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.studio label { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: 1rem 1.25rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background-color .15s, box-shadow .15s; cursor: pointer; }
.studio label:hover { border-color: var(--ink-2); }
.studio input:checked + label { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.studio input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }
.studio .name { font-weight: 600; }
.studio .adresse { grid-column: 1; color: var(--ink-2); font-size: .95rem; }
.studio .km { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 600; white-space: nowrap; }
.hinweis { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: var(--radius); background: var(--accent-soft); font-size: .95rem; }
.form-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); display: grid; gap: 1.1rem; position: sticky; top: 1.5rem; }
.form-leer { justify-items: start; background: transparent; box-shadow: none; border-style: dashed; color: var(--ink-2); }
.form-leer .icon { width: 1.75rem; height: 1.75rem; color: var(--accent); }
.form-leer p { margin: 0; }
.form-box h3 { margin: 0; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.01em; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .9rem; color: var(--ink-2); }
.check input { width: 1.4rem; height: 1.4rem; margin: .1rem 0 0; accent-color: var(--accent); }
.auswahl-info { margin: 0; color: var(--ink-2); font-size: .95rem; }
.datenschutz-hinweis { margin: 0; font-size: .875rem; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reveal { animation: einblenden .35s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes einblenden { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.skeleton { height: 76px; border-radius: var(--radius); background: linear-gradient(90deg, var(--line) 25%, var(--surface) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Danke-Seite */
.danke { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.danke-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.danke-grid:has(.hero-visual[hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
.danke-grid .book-wrap:has(.hero-visual[hidden]) { display: none; }
.danke h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: grid; gap: .25rem; margin: 1.75rem 0; }
.karte strong { font-size: 1.1rem; }
.schritte { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .9rem; }
.schritte li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; align-items: start; }
.schritte .icon { margin-top: .2rem; color: var(--accent); }

/* Fuss */
.footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.75rem 0 2.5rem; font-size: .875rem; color: var(--ink-2); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a { color: inherit; }
.footer .attr { opacity: .8; }

/* Textseiten (Datenschutz, Impressum) */
.text { max-width: 44rem; padding: 2.5rem 0 4rem; }
.quelle { margin-top: 2rem; font-size: .875rem; color: var(--ink-2); }
.zurueck { margin: 0 0 2rem; font-size: .95rem; }
.zurueck a { color: var(--ink-2); }
.text h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.entwurf { padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent); }

/* Mobil: alles einspaltig */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; gap: 2rem; }
  .hero-visual { order: -1; padding: 1.5rem 1rem; }
  .book { width: 150px; }
  .plz-form { grid-template-columns: 1fr; }
  .plz-form .btn { width: 100%; }
  .ergebnis, .danke-grid { grid-template-columns: 1fr; }
  .form-box { position: static; }
  .danke-grid .book-wrap { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .skeleton { animation: none; }
  .btn, .studio label { transition: none; }
}
