/* Platzhirsch – Tokens und Regeln siehe DESIGN.md */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  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: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --gold: #9e6b20;
  --gold-btn: #9e6b20;
  --gold-ink: #7a5116;
  --gold-soft: #f1e7d6;
  --bg: #f3f3f1;
  --surface: #ffffff;
  --ink: #161616;
  --muted: #575757;
  --line: #e2e2de;
  --on-ink: #f3f3f1;
  --gold-on-ink: #d9a458;
  --shadow: 0 12px 32px -16px rgb(122 81 22 / .35);
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --gold: #c28a3a;
  --gold-ink: #d9a458;
  --gold-soft: #2a2218;
  --bg: #121212;
  --surface: #1b1b1a;
  --ink: #eeede9;
  --muted: #a9a8a3;
  --line: #2c2c2a;
  --on-ink: #161616;
  --gold-on-ink: #9e6b20;
  --shadow: 0 12px 32px -16px rgb(0 0 0 / .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-ink); }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.125rem; letter-spacing: -.01em; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 1.0625rem; max-width: 60ch; }
section { padding: 56px 0; }
@media (min-width: 960px) { section { padding: 96px 0; } }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 22px; border-radius: var(--radius);
  font: inherit; font-size: 1.0625rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible, a:focus-visible, .theme-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--primary { background: var(--gold-btn); color: #fff; }
.btn--primary:hover { background: #8a5c19; box-shadow: var(--shadow); }
.btn--secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--secondary:hover { background: var(--surface); }
.btn--secondary .icon--fill { color: #25d366; }
.btn-row { display: grid; gap: 12px; }
@media (min-width: 480px) {
  .btn-row { display: flex; flex-wrap: wrap; }
  .btn-row > .btn { flex: 1 1 auto; }
}

/* Darstellung: in normalem Dokumentfluss, damit nichts überdeckt wird. */
.theme-toolbar { display: flex; justify-content: flex-end; padding-top: 16px; }
.theme-toolbar--legal { max-width: 720px; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit; font-size: .875rem;
  font-weight: 600; cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.theme-toggle__light, .theme-logo--dark { display: none; }
:root[data-theme="dark"] .theme-toggle__dark,
:root[data-theme="dark"] .theme-logo--light { display: none; }
:root[data-theme="dark"] .theme-toggle__light { display: inline; }
:root[data-theme="dark"] .theme-logo--dark { display: block; }

/* Hero */
.hero { padding: 32px 0 48px; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__logo { width: 220px; margin: 0 auto; }
.hero__text { display: grid; gap: 16px; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
  .hero__logo { width: 100%; max-width: 400px; }
  .hero__text h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
}
.enter { animation: enter .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 120ms); }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } }

/* Ablauf / Story */
.story__grid { display: grid; gap: 24px; }
.room-wrap { position: sticky; top: 12px; z-index: 1; }
.room {
  position: relative; height: 190px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.room::after { /* Boden */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 16%; height: 2px; background: var(--line);
  transition: background-color .6s ease;
}
.story[data-step="4"] .room::after { background: var(--gold); }
.box {
  position: absolute; bottom: calc(16% + 2px);
  border-radius: 3px; background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--gold);
  transition: transform .7s var(--ease), opacity .5s ease;
  transition-delay: calc(var(--i) * 60ms);
}
.box::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: var(--gold); opacity: .5; }
.story[data-step="3"] .box, .story[data-step="4"] .box {
  transform: translate(160%, -8%) rotate(14deg); opacity: 0;
}
.tag {
  position: absolute; top: 40px; right: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--on-ink);
  font-size: .8125rem; font-weight: 700;
  opacity: 0; transform: translateY(-8px) scale(.9);
  transition: transform .5s var(--ease), opacity .4s ease;
}
.tag .icon { width: 16px; height: 16px; }
.story[data-step="2"] .tag { opacity: 1; transform: none; }
.room__mark {
  position: absolute; left: 50%; bottom: calc(16% + 14px); width: 34%; max-width: 150px;
  transform: translateX(-50%) scale(.85); opacity: 0;
  transition: transform .8s var(--ease) .35s, opacity .6s ease .35s;
}
.story[data-step="4"] .room__mark { transform: translateX(-50%); opacity: 1; }
.room__cap { position: absolute; left: 16px; top: 12px; font-weight: 700; font-size: .9375rem; }
.cap { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s var(--ease); }
.story:not([data-step]) .cap-1,
.story[data-step="1"] .cap-1, .story[data-step="2"] .cap-2,
.story[data-step="3"] .cap-3, .story[data-step="4"] .cap-4 { opacity: 1; transform: none; }

.steps-wrap { position: relative; }
.steps { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; }
.steps::before, .steps__fill {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line);
}
.steps__fill { background: var(--gold); transform-origin: top; transform: scaleY(0); transition: transform .8s var(--ease); }
.story:not([data-step]) .steps__fill, .story[data-step="1"] .steps__fill { transform: scaleY(.04); }
.story[data-step="2"] .steps__fill { transform: scaleY(.36); }
.story[data-step="3"] .steps__fill { transform: scaleY(.68); }
.story[data-step="4"] .steps__fill { transform: scaleY(1); }
.step { position: relative; padding: 8px 0 40px; min-height: 42vh; display: grid; align-content: start; gap: 8px; }
.step:last-child { min-height: 38vh; padding-bottom: 8px; }
.step::before {
  content: ""; position: absolute; left: -32px; top: 12px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--line);
  transition: background-color .4s ease, box-shadow .4s ease;
}
.story:not([data-step]) .step[data-step="1"]::before,
.story[data-step="1"] .step[data-step="1"]::before,
.story[data-step="2"] .step:is([data-step="1"], [data-step="2"])::before,
.story[data-step="3"] .step:not([data-step="4"])::before,
.story[data-step="4"] .step::before { background: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.step p { color: var(--muted); max-width: 46ch; }
.step h3 { font-size: 1.375rem; }
@media (min-width: 960px) {
  .story__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .room-wrap { top: 18vh; }
  .room { height: auto; aspect-ratio: 4 / 3; }
  .room__cap { left: 20px; top: 18px; font-size: 1.0625rem; }
  .step { min-height: 55vh; }
}

/* Leistungen / Bento */
.bento { display: grid; gap: 12px; }
.tile {
  position: relative; display: grid; min-width: 0; align-content: start; gap: 10px;
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile .icon { width: 30px; height: 30px; color: var(--gold); transition: transform .35s var(--ease); }
.tile:hover .icon { transform: rotate(-8deg) scale(1.08); }
.tile p { color: var(--muted); }
.tile h3, .tile p { min-width: 0; overflow-wrap: anywhere; }
.tile--gold { background: var(--gold-soft); border-color: transparent; }
.tile--ink { background: var(--ink); border-color: transparent; color: var(--on-ink); }
.tile--ink p { color: color-mix(in srgb, var(--on-ink) 72%, transparent); }
.tile--ink .icon { color: var(--gold-on-ink); }
.tile__mark { display: none; opacity: .14; pointer-events: none; }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile { grid-column: span 2; }
  .tile--wide { grid-column: span 4; grid-template-columns: minmax(0, 1fr) 120px; column-gap: 24px; min-height: 220px; padding: 32px; }
  .tile--wide > .icon, .tile--wide > h3, .tile--wide > p { grid-column: 1; }
  .tile--tall { grid-row: 1 / span 2; grid-column: 5 / span 2; padding: 32px; align-content: end; }
  .tile--additional { grid-column: span 3; }
  .tile--wide h3, .tile--tall h3 { font-size: 1.5rem; }
  .tile__mark { display: block; grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 120px; }
}

/* Kontakt */
.contact {
  display: grid; gap: 24px; padding: 28px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.places { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.places li {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--bg); font-weight: 600; font-size: .9375rem;
}
.places .icon { width: 18px; height: 18px; color: var(--gold); }
.contact__mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; overflow-wrap: anywhere; }
.contact__mail .icon { color: var(--gold); }
@media (min-width: 960px) { .contact { padding: 48px; grid-template-columns: 1.2fr 1fr; align-items: center; column-gap: 48px; } }

/* Footer */
.site-footer { padding: 32px 0 112px; color: var(--muted); font-size: .875rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }
@media (min-width: 768px) { .site-footer { padding-bottom: 40px; } }

/* Anruf-Leiste mobil */
.callbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 10;
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.callbar.is-visible { transform: none; }
.callbar .btn { box-shadow: 0 10px 30px -10px rgb(0 0 0 / .45); }
.callbar .btn--secondary { background: var(--surface); padding: 14px 18px; }
@media (min-width: 768px) { .callbar { display: none; } }

/* Scroll-Reveal (nur mit JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Rechtstexte */
.legal { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
.legal .logo { width: 180px; margin: 0 0 24px; }
.legal h1 { font-size: clamp(1.5rem, 6.5vw, 2rem); margin-bottom: 16px; overflow-wrap: anywhere; }
.legal h2 { font-size: 1.125rem; margin: 32px 0 10px; }
.legal p + p { margin-top: 10px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
.back { display: inline-block; margin-bottom: 20px; }
@media (max-width: 420px) {
  .legal dl { grid-template-columns: 1fr; }
  .legal dd { margin-bottom: 8px; }
}
a[href^="tel:"] { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
