/* ============================================================
   Optik Studio Hinterland – „Optische Präzision"
   Palette: warmes Off-White, Fast-Schwarz, Messing-Gold
   Typo: Playfair Display (Headings) + Inter (Body)
   ============================================================ */

/* ── Schriften ─────────────────────────────────────────────
   Lokal eingebunden, NICHT über fonts.googleapis.com. Ein
   Google-Fonts-Link würde die IP-Adresse jedes Besuchers an Google
   übertragen – das LG München I hat das am 20.01.2022 (Az. 3 O 17493/20)
   als DSGVO-Verstoß gewertet. Die Dateien stammen aus den
   @fontsource-Paketen und liegen in assets/fonts/.
   Es sind genau die sechs Schnitte, die vorher auch von Google geladen
   wurden – die Seite rendert also unverändert. Wer einen weiteren Schnitt
   benutzt, muss ihn hier ergänzen, sonst rechnet der Browser ihn
   künstlich aus und die Schrift wirkt verzerrt. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}

/* Echte Kursive. Ohne sie kippt der Browser den aufrechten Schnitt schräg
   (synthetische Kursive) – das trifft die englischen Fachbegriffe im
   Fließtext der Datenschutzerklärung. Gleiches @fontsource-Paket wie die
   übrigen Schnitte (inter 5.3.0). */
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-latin-500-italic.woff2") format("woff2");
}

:root {
  --paper: #FBF8F3;
  --surface: #FFFFFF;
  --sand: #F1EAE0;
  --ink: #1C1917;
  --stone: #57534E;
  --gold: #A16207;
  --gold-deep: #8A5306;
  --line: #E5DED2;
  --halo: #FFF3E0;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --shell: 72rem;
  --radius: 0.625rem;
  --shadow-soft: 0 1.25rem 3rem -1.5rem rgba(60, 42, 20, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 4.5rem;
}

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: inherit; }

.shell {
  width: min(100% - 3rem, var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  white-space: nowrap;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-wide { width: 100%; text-align: center; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Header (Frosted Glass = Brillenglas) ──────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(251, 248, 243, 0.85);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(100% - 3rem, 82rem);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
/* Das Logo ist breiter als hoch (rund 1,45:1) – Höhe festlegen, Breite
   mitlaufen lassen. Kein Schrumpfen, sonst quetscht die längere Wortmarke
   im engen Header das Zeichen zusammen. */
.brand-mark { height: 1.9rem; width: auto; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  /* Zweiteilige Wortmarke: „Optik Studio" darf nie zwischen den beiden
     Wörtern umbrechen – als Flex-Item würde es sonst unter die verfügbare
     Breite gestaucht und der Header doppelt so hoch. */
  white-space: nowrap;
}
.brand-word small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.main-nav > a:not(.nav-cta) {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--stone);
  transition: color 0.2s var(--ease);
}
.main-nav > a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta { padding: 0.6rem 1.25rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ── Hero: Scroll-Scrubbing ────────────────────────────── */
.hero-scroll {
  /* Länge des Scrubbing-Wegs – die Bühne bleibt sticky */
  height: 380vh;
  position: relative;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--sand);
}

.hero-blur-bg,
.hero-canvas,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-blur-bg {
  background: url("../assets/images/hero-start-blur.jpg") center / cover no-repeat;
}

.hero-canvas { display: block; }
.hero-video { object-fit: cover; display: none; }

/* Video-Variante (?scrub=video) */
.mode-video .hero-canvas { display: none; }
.mode-video .hero-video { display: block; }

/* Sanfte Aufhellung links für die Text-Zone */
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
              rgba(251, 248, 243, 0.62) 0%,
              rgba(251, 248, 243, 0.28) 30%,
              rgba(251, 248, 243, 0) 52%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(1.5rem, 7vw, 7.5rem);
  padding-right: 1.5rem;
  max-width: min(46rem, 60%);
}

.hero-eyebrow {
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.hero-line {
  position: absolute;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  max-width: 14ch;
  margin: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}

/* Debug-Screenshots (?p=…): Endzustände ohne Transitions */
.debug-scrub .hero-line,
.debug-scrub .hero-final,
.debug-scrub .scroll-cue,
.debug-scrub .hero-loader { transition: none !important; }
.hero-line.is-on {
  opacity: 1;
  transform: none;
}

.hero-final {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease);
  pointer-events: none;
}
.hero-final.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hero-final h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  margin-bottom: 1.1rem;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--stone);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Fokusring unten rechts: Lade- und Scroll-Fortschritt */
.focus-dial {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.25rem, 4vw, 2.75rem);
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
}
.focus-dial svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.dial-track, .dial-fill {
  fill: none;
  stroke-width: 2.5;
}
.dial-track { stroke: rgba(28, 25, 23, 0.18); }
.dial-fill {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 194.8;   /* 2πr, r=31 */
  stroke-dashoffset: 194.8;
}
.dial-ticks line { stroke: rgba(28, 25, 23, 0.4); stroke-width: 2; }
.dial-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.hero-loader {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4.5vw, 3rem);
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--stone);
  background: rgba(251, 248, 243, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}
.hero-loader.done { opacity: 0; visibility: hidden; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4.5vw, 3rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--stone);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.scroll-cue.show { opacity: 1; }
.scroll-cue.hide { opacity: 0; }
.scroll-cue svg {
  width: 1.2rem;
  height: 1.2rem;
  animation: cue-bob 1.8s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Hero-Fallback: Mobile, reduced motion, alte Browser */
.hero-fallback .hero-scroll { height: auto; }
.hero-fallback .hero-stage {
  position: relative;
  background: url("../assets/images/hero-poster.jpg") center / cover no-repeat;
}
.hero-fallback .hero-canvas,
.hero-fallback .hero-video,
.hero-fallback .hero-blur-bg,
.hero-fallback .hero-loader,
.hero-fallback .scroll-cue,
.hero-fallback .focus-dial,
.hero-fallback .hero-line { display: none; }
.hero-fallback .hero-final {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: none;
}
.hero-fallback .hero-copy { max-width: min(46rem, 88%); }

/* ── Intro-Strip ───────────────────────────────────────── */
.intro { padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem); }

.intro-claim {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.35;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.intro-claim em {
  font-style: italic;
  color: var(--gold);
}

.intro-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.intro-facts li {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.intro-facts strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}
.intro-facts span { color: var(--stone); font-size: 0.95rem; }

/* ── Leistungen ────────────────────────────────────────── */
.services {
  background: var(--sand);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

/* Sucher-Ecken ⌜⌝ beim Hover – die Fokus-Metapher */
.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--gold);
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-card::before {
  top: 0.55rem; left: 0.55rem;
  border-right: 0; border-bottom: 0;
  transform: translate(4px, 4px);
}
.service-card::after {
  bottom: 0.55rem; right: 0.55rem;
  border-left: 0; border-top: 0;
  transform: translate(-4px, -4px);
}
.service-card:hover::before,
.service-card:hover::after { opacity: 1; transform: translate(0, 0); }

.service-icon {
  width: 2.2rem;
  height: 2.2rem;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1rem;
}
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--stone); font-size: 0.94rem; margin: 0; }

/* ── Marken ────────────────────────────────────────────── */
.brands { padding: clamp(4.5rem, 9vw, 7rem) 0 0; }
.brands-copy { max-width: 40rem; color: var(--stone); }

.brand-marquee {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-size: 1.35rem;
  white-space: nowrap;
}
.marquee-track i {
  font-style: normal;
  color: var(--gold);
  font-size: 0.8rem;
}
@keyframes marquee {
  /* Nicht -50%: der Track trägt zwischen allen Kindern einen gap, also auch
     einen zwischen den beiden Listenhälften. Eine Listenlänge ist damit
     halbe Trackbreite PLUS ein halber gap – ohne die Korrektur springt das
     Band bei jedem Durchlauf sichtbar um 22 px zurück.
     ACHTUNG: Der Wert ist die Hälfte von .marquee-track { gap }. Wird der
     gap geändert, muss er hier mit. */
  to { transform: translateX(calc(-50% - 1.375rem)); }
}

/* ── Atelier ───────────────────────────────────────────── */
.atelier { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.atelier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.atelier-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.atelier-media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.atelier-media:hover img { transform: scale(1.03); }

.atelier-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.atelier-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--stone);
  font-size: 0.97rem;
}
.atelier-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

/* ── Werkbank-Banner ───────────────────────────────────── */
.bench-banner {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  display: grid;
  place-items: center;
}
.bench-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.bench-overlay {
  position: relative;
  width: 100%;
  min-height: 24rem;
  display: grid;
  place-items: center;
  background: linear-gradient(rgba(28, 25, 23, 0.18), rgba(28, 25, 23, 0.34));
  padding: 3rem 1.5rem;
}
.bench-banner blockquote {
  margin: 0;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 24px rgba(28, 25, 23, 0.45);
}
.bench-banner blockquote p {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-style: italic;
  margin-bottom: 0.75rem;
}
.bench-banner blockquote footer {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ── Stimmen ───────────────────────────────────────────── */
.voices {
  background: var(--paper);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.voice-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  /* Die Zitate sind unterschiedlich lang; das Raster zieht alle Karten auf
     gleiche Höhe. Ohne diesen Flex-Aufbau klebt die Namenszeile kurzer
     Zitate am Text und darunter steht Leere. */
  display: flex;
  flex-direction: column;
}
.stars {
  color: var(--gold);
  letter-spacing: 0.18em;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}
.voice-card blockquote {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--ink);
  flex: 1;
}
.voice-card figcaption {
  font-size: 0.82rem;
  color: var(--stone);
  letter-spacing: 0.04em;
}
.voices-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--stone);
}

/* Gesamtwertung als Zeile über den Zitatkarten: Sterne und Note. */
.voices-rating {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 1.25rem 0 0;
}
.voices-rating .stars { margin-bottom: 0; }
.rating-score {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--ink);
}
.rating-max {
  font-size: 0.42em;
  color: var(--stone);
  letter-spacing: 0.02em;
}
.voice-card blockquote { hyphens: auto; }
.voices-link { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.voices-link:hover { color: var(--gold); }
/* In der Namenszeile am Stück umbrechen – sonst reißt „bei Google ansehen"
   auf schmalen Displays mitten im Satz auseinander. Der Sammellink darunter
   ist zu lang dafür und darf weiter normal umbrechen. */
.voice-card figcaption .voices-link { white-space: nowrap; }

/* ── Kontakt ───────────────────────────────────────────── */
.contact {
  background: var(--sand);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-info address {
  font-style: normal;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.contact-phone a {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-decoration: none;
  color: var(--ink);
}
.contact-phone a:hover { color: var(--gold-deep); }

.hours {
  border-collapse: collapse;
  margin-top: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.hours th { padding-right: 2.5rem; font-weight: 600; }

.contact-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--stone);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.75rem;
}
.contact-card h3 { margin-bottom: 0.6rem; }
.contact-card p { color: var(--stone); font-size: 0.97rem; margin-bottom: 1.5rem; }
.contact-hint {
  display: block;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--stone);
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #D9D2C7;
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-brand { color: #F5F0E8; }
.footer-brand .brand-word small { color: var(--halo); }
.site-footer p { margin: 0; font-size: 0.92rem; }
.footer-legal { opacity: 0.65; font-size: 0.82rem; }

/* ── Scroll-Reveal (Basis wie Moonlight/Barbershop) ────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.15s var(--ease), transform 1.15s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
  transition-delay: var(--reveal-delay, 0ms);
}

/* Fokus-Variante: Bilder stellen sich scharf */
.reveal-focus {
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.02);
  transition: opacity 1.15s var(--ease), filter 1.15s var(--ease), transform 1.15s var(--ease);
  will-change: opacity, filter, transform;
}
.reveal-focus.in-view {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition-delay: var(--reveal-delay, 0ms);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 64rem) {
  .main-nav { gap: 1.1rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atelier-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: min(46rem, 78%); }
}

@media (max-width: 48rem) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.25rem;
    /* Das Panel sitzt bei top: var(--header-h). Ein translateY von -115%
       verschiebt es nur um 115% der EIGENEN Höhe — der Versatz um die
       Headerhöhe bleibt ungedeckt, und bei 371px Panelhöhe hingen 16px
       sichtbar oben im Bild. Als Kind des Headers malt das deckende
       Papierweiß dabei über dessen halbtransparenten Hintergrund: der
       bekannte helle Streifen. Deshalb Panelhöhe UND Versatz abziehen. */
    transform: translateY(calc(-100% - var(--header-h)));
    /* visibility zusätzlich, damit die Links im geschlossenen Zustand nicht
       im Tab-Fokus hängen und nicht vorgelesen werden. Bleibt während der
       Schließ-Animation sichtbar und kippt erst am Ende. */
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s var(--ease);
    z-index: 90;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav > a:not(.nav-cta) {
    padding: 0.85rem 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav-cta { margin-top: 1rem; }
  .nav-toggle { display: flex; flex-shrink: 0; }

  /* „Optik Studio Hinterland" ist deutlich breiter als eine einteilige
     Wortmarke. Ohne diese Verkleinerung schiebt sie auf 320-px-Geräten den
     Menü-Button aus dem Viewport. */
  .brand-word { font-size: 1.05rem; gap: 0.35rem; }
  .brand-word small { font-size: 0.58rem; letter-spacing: 0.16em; }
  .brand { gap: 0.45rem; }
  .brand-mark { height: 1.55rem; }

  .intro-facts { grid-template-columns: minmax(0, 1fr); }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .voice-grid { grid-template-columns: minmax(0, 1fr); }
  .hours th { padding-right: 1.5rem; }
}

/* ── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-focus, .hero-line, .hero-final {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .marquee-track { animation: none; flex-wrap: wrap; }
  .scroll-cue svg { animation: none; }
}

/* ── Rechtsseiten (Impressum, Datenschutz) ─────────────── */
.legal {
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem)) 0 clamp(4rem, 8vw, 6rem);
}
/* Engeres Maß als .shell: Fließtext liest sich ab ~75 Zeichen pro Zeile
   schlechter, und diese Seiten sind reiner Fließtext. */
.legal-shell { width: min(100% - 3rem, 46rem); margin-inline: auto; }

/* „Datenschutzerklärung" ist ein 20-Zeichen-Kompositum und passt auf 320 px
   in keine Zeile. Trennung erlauben, sonst schiebt die Überschrift allein
   die ganze Seite in den horizontalen Scroll. */
.legal h1 {
  font-size: clamp(1.75rem, 4vw, 2.9rem);
  margin: 0 0 1.5rem;
  hyphens: auto;
  overflow-wrap: break-word;
}
.legal h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1.02rem; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { color: var(--stone); line-height: 1.75; }
.legal-lead { color: var(--ink); font-size: 1.05rem; }
.legal address {
  font-style: normal;
  color: var(--stone);
  line-height: 1.75;
  margin: 0 0 1rem;
}
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { text-decoration: underline; text-underline-offset: 0.2em; }
.legal a:hover { color: var(--gold); }
/* Die Datenschutzerklärung nennt volle URLs als Linktext. Ohne Umbruch an
   beliebiger Stelle sind die auf schmalen Displays 70 px breiter als die
   Textspalte. */
.legal a[href^="http"] { overflow-wrap: anywhere; }
.legal-updated {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

/* Offene Angaben. Bewusst grell statt dezent — was hier steht, darf nicht
   versehentlich live gehen. Verschwindet mit dem Ausfüllen. */
.todo {
  background: #FCEFC7;
  border: 1px dashed var(--gold);
  border-radius: 0.25rem;
  padding: 0.05em 0.4em;
  color: var(--gold-deep);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92em;
}
.legal-warning {
  background: #FCEFC7;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 0 0 2.5rem;
}
.legal-warning p { color: var(--gold-deep); margin: 0; font-size: 0.92rem; }
.legal-warning p + p { margin-top: 0.5rem; }
.legal-warning strong { font-weight: 700; }

/* Rechtslinks im Footer */
.footer-legal-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.75;
  transition: opacity 0.2s var(--ease);
}
.footer-legal-nav a:hover { opacity: 1; }
