/* =========================================================
   SEGELMACHEREI SALVERIUS — Stylesheet
   Design-Idee: heller, ruhiger Look (Richtung apple.de) —
   viel Weißraum, keine Farbverläufe, dünne Haarlinien statt
   Farbflächen, damit echte Fotos sich später nahtlos einfügen.
   Signatur-Element: die "Naht" — eine feine gestrichelte
   Linie, die Sektionen trennt und Karten/Buttons akzentuiert,
   wie die Ziernaht auf einem echten Segel.
   ========================================================= */

:root {
  /* Farben */
  --white: #FFFFFF;
  --gray-100: #F5F5F7;      /* dezente Flächen, wechselt sich mit Weiß ab */
  --gray-200: #E8E8ED;      /* Kartenränder, Trennlinien-Flächen */
  --ink: #1D1D1F;           /* Haupttext, fast Schwarz */
  --ink-secondary: #6E6E73; /* Sekundärtext, gedämpft */
  --line: #D6D6DB;          /* Haarlinie für Rahmen/Divider */
  --teal: #2E7D74;          /* kühler Akzent (Segelleine) */
  --rust: #A97729;          /* warmer Gold-Akzent (Takelage), für CTAs */
  --rust-dark: #8A611F;

  /* Typografie */
  --font-display: "IBM Plex Sans", -apple-system, "SF Pro Display", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --max-width: 1180px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;
  --radius: 12px;

  /* Bewegung */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);   /* sanftes, "überschwingfreies" Ausklingen */
  --dur-fast: 0.35s;
  --dur-medium: 0.6s;
  --dur-slow: 0.9s;
}

/* ---------- Reset & Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-2); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

/* ---------- Naht / Stitch-Divider (Signatur-Element) ---------- */
.naht {
  height: 14px;
  width: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    currentColor 0 10px,
    transparent 10px 20px
  );
  background-position: center;
  background-size: 20px 2px;
  background-repeat: repeat-x;
  color: var(--line);
  opacity: 0.9;
}
.section-dark .naht { color: var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85em 1.7em;
  border-radius: 980px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-apple),
              color var(--dur-fast) var(--ease-apple),
              border-color var(--dur-fast) var(--ease-apple),
              opacity var(--dur-fast) var(--ease-apple);
}
.btn:active { opacity: 0.75; }
.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--rust-dark); }
.btn-ghost-light,
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost-light:hover,
.btn-ghost-dark:hover { border-color: var(--ink); }

/* ---------- Hinweis-Banner (z. B. Betriebsferien) ----------
   Wird über js/data.js (ANNOUNCEMENTS) gesteuert, siehe dort.
   Es können mehrere Banner gleichzeitig aktiv sein – sie werden von
   #announcement-banners (js/main.js) einfach untereinander gestapelt. */
.announcement-banner {
  background: var(--rust);
  color: var(--white);
}
.announcement-banner + .announcement-banner { border-top: 1px solid rgba(255,255,255,0.25); }
.announcement-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7em var(--space-3);
}
.announcement-inner p { margin: 0; font-size: 0.9rem; font-weight: 500; flex: 1; text-align: center; }
.announcement-close {
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.3em;
  flex-shrink: 0;
}
.announcement-close:hover { opacity: 0.8; }

/* Banner mit sticky:true (js/data.js) landen hier drin und bleiben beim
   Scrollen oben stehen, wie die Navigationsleiste. position: fixed statt
   sticky, weil der umgebende Container (#announcement-banners) meist viel
   niedriger ist als die restliche Seite – sticky könnte darin nur für ein
   paar Pixel Scrollweg "kleben" und würde danach trotzdem mitscrollen.
   --announcement-offset wird von js/main.js live per ResizeObserver
   gepflegt (Textumbruch, Wegklicken) und reserviert per padding-top auf
   <body> den passenden Platz, damit nichts unter dem fixierten Banner
   verschwindet; .site-header dockt über denselben Wert direkt darunter an. */
.announcement-sticky-group {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
}
body { padding-top: var(--announcement-offset, 0px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: var(--announcement-offset, 0px);
  /* Höher als .announcement-sticky-group (z-index: 110): .main-nav liegt im
     Markup innerhalb von .site-header, ihr eigenes z-index wirkt also nur
     im Stacking-Context des Headers. Ohne diesen höheren Wert würde das
     fixierte Hinweis-Banner die ausgeklappte Mobil-Navigation überdecken. */
  z-index: 120;
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-medium) var(--ease-apple);
}
/* Bei ausgeklappter Mobil-Nav ist ein fixiertes Hinweis-Banner ohnehin nicht
   sichtbar (die Nav deckt es ab) – der Header rückt dann an die echte obere
   Kante, statt weiter unbegründet auf Höhe des (unsichtbaren) Banners zu
   hängen. js/main.js (initNav) setzt/entfernt diese Klasse beim Öffnen. */
.site-header.nav-is-open { position: fixed; top: 0; left: 0; right: 0; }
/* Hintergrund + Weichzeichner liegen bewusst auf einem eigenen Pseudo-Element:
   backdrop-filter direkt auf .site-header würde in vielen Browsern zum
   "containing block" für position:fixed-Kinder (z. B. das mobile Menü),
   wodurch dieses fälschlich auf die Header-Höhe zusammengestaucht wird. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  transition: background var(--dur-medium) var(--ease-apple);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: height var(--dur-medium) var(--ease-apple);
}
.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.94);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .container { height: 52px; }
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo strong { color: var(--rust); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: var(--space-4); }
.main-nav ul { list-style: none; display: flex; gap: var(--space-3); margin: 0; padding: 0; }
.main-nav ul a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.3em 0;
}
.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--rust);
  transition: width 0.2s ease;
}
.main-nav ul a:hover::after,
.main-nav ul a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
/* Balken statt Icon-Font, damit sich der Button per Transform sauber zu
   einem × morphen lässt (siehe .nav-toggle.is-open unten). */
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--dur-fast) var(--ease-apple), opacity var(--dur-fast) var(--ease-apple);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; position: relative; z-index: 160; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 150;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    /* Nur ein grober Startwert für den allerersten Render, bevor JS greift –
       js/main.js (initNav) setzt padding-top beim Öffnen exakt auf die
       aktuelle Unterkante von .site-header + etwas Luft, damit der erste
       Link bei jeder Banner-Höhe knapp unter dem × beginnt statt mittig
       auf dem Bildschirm zu wirken. */
    padding: calc(var(--announcement-offset, 0px) + 64px + var(--space-2)) var(--space-3) var(--space-4);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-apple);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: var(--space-3); }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section-dark { background: var(--gray-100); color: var(--ink); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--ink); }
.section-canvas2 { background: var(--gray-100); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rust);
  margin-bottom: var(--space-2);
  display: block;
}
.section-dark .eyebrow { color: var(--teal); }

.section-head { max-width: 640px; margin-bottom: var(--space-4); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--white);
  color: var(--ink);
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  margin-bottom: var(--space-3);
}
.hero h1 em { color: var(--rust); font-style: normal; }
.hero p.lead {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--ink-secondary);
}
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }

/* Sanfter, gestaffelter Eingang beim Laden — Apple-typisches "Auftauchen" */
.hero .eyebrow,
.hero h1,
.hero p.lead,
.hero-actions,
.hero-visual {
  animation: hero-in var(--dur-slow) var(--ease-apple) both;
}
.hero h1        { animation-delay: 0.08s; }
.hero p.lead    { animation-delay: 0.16s; }
.hero-actions   { animation-delay: 0.24s; }
.hero-visual    { animation-delay: 0.32s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-visual {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: var(--gray-100);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Feature / Leistungen grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); max-width: 900px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
/* .grid-2 (Standort-Karten) stapelt schon früher auf eine Spalte, damit die
   Karten nicht erst gequetscht nebeneinander stehen, bevor sie umbrechen –
   betrifft nur die Bild-Fotos, die sonst bei mittleren Breiten unangenehm
   schmal und stark beschnitten (object-fit: cover) wirken würden. */
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Standort-Karten (mit Bild) ---------- */
.location-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.location-card .thumb {
  height: 280px;
  background: var(--gray-100);
  position: relative;
}
.location-card .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.location-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.location-card .body { padding: var(--space-3); }
.location-card .num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal); display: block; margin-bottom: var(--space-1); text-transform: uppercase; letter-spacing: 0.08em; }
.location-card h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.location-card .addr { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-secondary); margin-bottom: 0.6em; }

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.feature-card .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
  display: block;
  margin-bottom: var(--space-1);
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: var(--space-1); }
.feature-card p { color: var(--ink-secondary); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); text-align: center; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--rust);
  display: block;
}
.stat .unit { font-family: var(--font-mono); font-size: 0.85rem; color: var(--teal); }
.stat .label { display: block; margin-top: 0.4em; color: var(--ink-secondary); font-size: 0.92rem; }

/* ---------- Product Cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur-medium) var(--ease-apple),
              transform var(--dur-medium) var(--ease-apple);
}
.product-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.product-card.is-clickable { cursor: pointer; }
.product-card .thumb {
  display: block;
  aspect-ratio: 4/3;
  background: var(--gray-100);
  position: relative;
}
.product-card .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: var(--space-3); flex: 1; display: flex; flex-direction: column; }
.product-card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.4em;
}
.product-card h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover { color: var(--rust); }
.product-card p { color: var(--ink-secondary); font-size: 0.95rem; flex: 1; }
.product-card .cta { margin-top: var(--space-2); font-weight: 600; font-size: 0.9rem; color: var(--rust); text-decoration: none; }

/* ---------- Produkt-Detailseite: Bildergalerie ---------- */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 900px) { .product-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .product-gallery { grid-template-columns: 1fr; } }

.product-gallery-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  cursor: zoom-in;
  transition: box-shadow var(--dur-medium) var(--ease-apple),
              transform var(--dur-medium) var(--ease-apple);
}
.product-gallery-item:hover,
.product-gallery-item:focus-visible {
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
  outline: none;
}
.product-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--gray-100);
}
.product-gallery-item figcaption {
  padding: var(--space-2) var(--space-3);
  font-size: 0.9rem;
  color: var(--ink-secondary);
}
.product-gallery-placeholder {
  aspect-ratio: 16/9;
  max-width: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}
.product-gallery-placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-3);
  max-width: var(--max-width);
}
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.team-card { text-align: left; }
.team-photo {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  background: var(--gray-100);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-2);
}
.team-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.team-card h3 { font-size: 1.15rem; margin-bottom: 0.15em; }
.team-card .role { font-family: var(--font-mono); font-size: 0.8rem; color: var(--rust); text-transform: uppercase; letter-spacing: 0.08em; }
.team-card p.bio { margin-top: 0.6em; font-size: 0.94rem; color: var(--ink-secondary); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: var(--space-3) 0 0; }
.contact-list li { padding: 0.6em 0; border-bottom: 1px solid var(--line); }
.contact-list .k { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); display: block; }
.contact-list a { text-decoration: none; color: var(--ink); }
.contact-list a:hover { color: var(--rust); }

/* ---------- Statische Kartenvorschau + optionale interaktive Karte ----------
   Standard: eigene Illustration + normaler Link zu Google Maps (kein Laden
   von Drittanbieter-Inhalten, daher ohne Einwilligung möglich).
   Auf Wunsch ("Interaktive Karte laden") wird zusätzlich die eingebettete
   Google-Maps-Karte geladen – dafür wird eine Einwilligung eingeholt und
   lokal gemerkt; über die Cookie-Einstellungen im Footer widerrufbar. */
.map-static { display: flex; flex-direction: column; gap: var(--space-2); }
.map-static .thumb {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
  border: 1px solid var(--line);
}
.map-static .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-static .thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.map-embed-hint { margin: 0; font-size: 0.82rem; color: var(--ink-secondary); max-width: 42ch; }
.map-static.map-is-embedded .map-actions .map-embed-load,
.map-static.map-is-embedded .map-embed-hint { display: none; }

/* ---------- Google-Bewertungen ---------- */
.reviews-block { text-align: center; max-width: 480px; margin: 0 auto; }
.reviews-stars { color: var(--rust); font-size: 1.6rem; letter-spacing: 0.15em; line-height: 1; margin-bottom: var(--space-1); }
.reviews-meta { color: var(--ink-secondary); font-size: 0.95rem; margin-bottom: var(--space-3); }
.reviews-meta strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gray-100);
  color: var(--ink-secondary);
  padding: var(--space-5) 0 var(--space-3);
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--ink); font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; margin-bottom: var(--space-2); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5em; }
.footer-grid a { color: var(--ink-secondary); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

/* ---------- Page header (Unterseiten) ---------- */
.page-hero {
  background: var(--white);
  color: var(--ink);
  padding: var(--space-5) 0 var(--space-4);
}
.page-hero .eyebrow { color: var(--teal); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.breadcrumb { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-secondary); margin-bottom: var(--space-2); }
.breadcrumb a { color: var(--ink-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: var(--space-4); }
.legal h3 { font-size: 1.05rem; margin-top: var(--space-3); }
.legal p, .legal li { color: var(--ink-secondary); }
.legal .fill {
  background: #FBF2E3;
  border: 1px dashed var(--rust);
  border-radius: 3px;
  padding: 0.05em 0.45em;
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--rust-dark);
}
.notice-box {
  background: var(--gray-100);
  border-left: 4px solid var(--rust);
  padding: var(--space-3);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
  font-size: 0.95rem;
}

/* ---------- Cookie Banner ---------- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.08);
  padding: var(--space-3);
  transform: translateY(110%);
  transition: transform 0.4s ease;
}
#cookie-banner.is-visible { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.cookie-text { flex: 1 1 380px; font-size: 0.92rem; color: var(--ink-secondary); }
.cookie-text a { color: var(--ink); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.btn-small { padding: 0.6em 1.2em; font-size: 0.88rem; }

/* Cookie settings modal */
#cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}
#cookie-modal.is-visible { display: flex; }
.cookie-modal-box {
  background: var(--white);
  color: var(--ink);
  max-width: 520px;
  width: 100%;
  border-radius: var(--radius);
  padding: var(--space-4);
  max-height: 85vh;
  overflow-y: auto;
}
.cookie-modal-box h2 { font-size: 1.3rem; }
.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
}
.cookie-option h4 { margin: 0 0 0.2em; font-size: 0.98rem; font-family: var(--font-body); }
.cookie-option p { margin: 0; font-size: 0.85rem; color: var(--ink-secondary); }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0;
  background: var(--gray-200); border-radius: 999px; cursor: pointer; transition: .2s;
}
.switch .slider::before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.switch input:checked + .slider { background: var(--teal); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { opacity: .6; cursor: not-allowed; }
.cookie-modal-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-3); }

/* ---------- Lightbox: vergrößerte Produktbild-Ansicht ---------- */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(20, 20, 22, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-3);
}
#lightbox.is-visible { display: flex; }
.lightbox-figure {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
#lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--gray-100);
}
#lightbox-caption {
  color: var(--white);
  font-size: 0.92rem;
  text-align: center;
  max-width: 60ch;
}
.lightbox-close {
  position: fixed;
  top: var(--space-3);
  right: var(--space-3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-apple);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-apple);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav[hidden] { display: none; }
#lightbox-prev { left: var(--space-3); }
#lightbox-next { right: var(--space-3); }
@media (max-width: 620px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.3rem; }
  #lightbox-prev { left: var(--space-2); }
  #lightbox-next { right: var(--space-2); }
}

/* ---------- Scroll-Reveal ----------
   Wird von js/main.js per IntersectionObserver gesteuert:
   .reveal = Startzustand (unsichtbar/leicht versetzt)
   .reveal-visible = Endzustand, sobald das Element im Viewport erscheint
   Bei prefers-reduced-motion wird direkt .reveal-visible gesetzt, ohne Animation. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-apple),
              transform var(--dur-slow) var(--ease-apple);
  will-change: opacity, transform;
}
.reveal-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
