/* Die Schriften werden in jeder Seite per <link> geladen, nicht per @import –
   ein @import verzoegert das Laden um eine zusaetzliche Runde. */

/* ==========================================================================
   Heimdall Verlag – Grundlagen
   Farbwelt: Nachthimmel über der Nordsee, Messing als Akzent.
   ========================================================================== */

:root {
  /* Flächen, von tief nach hoch */
  --grund: #070a11;
  --flaeche-1: #0d121d;
  --flaeche-2: #141b29;
  --flaeche-3: #1d2637;
  --kante: #26314a;

  /* Schrift */
  --text: #ece7dc;
  --text-leise: #a2acbd;
  --text-sehr-leise: #6c7689;

  /* Akzente */
  --messing: #c9a45c;
  --messing-hell: #e2c489;
  --nordlicht-gruen: #3ddc97;
  --nordlicht-blau: #4a9fe0;
  --nordlicht-violett: #8b6fc4;

  /* Maße */
  --bahn: 1180px;
  --rand: clamp(1.25rem, 5vw, 3.5rem);
  --radius: 14px;
  --radius-klein: 8px;

  /* Tiefenstaffelung – eine Skala, konsequent verwendet */
  --tiefe-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --tiefe-2: 0 4px 12px rgb(0 0 0 / 0.45);
  --tiefe-3: 0 12px 32px rgb(0 0 0 / 0.5);
  --tiefe-4: 0 28px 70px rgb(0 0 0 / 0.62);

  --ease: cubic-bezier(0.22, 0.68, 0, 1);

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.1em; text-wrap: pretty; }

a { color: var(--messing-hell); text-decoration-color: rgb(201 164 92 / 0.4); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }

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

:focus-visible {
  outline: 2px solid var(--messing-hell);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Sprungmarke für Tastatur- und Screenreader-Nutzung */
.sprung {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--messing);
  color: #14100a;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-klein) var(--radius-klein);
  transition: transform 0.2s var(--ease);
}
.sprung:focus { transform: translate(-50%, 0); }

.bahn {
  width: min(100% - 2 * var(--rand), var(--bahn));
  margin-inline: auto;
}

.nur-fuer-screenreader {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   Ebene 0 – Nordlicht als Hintergrund der gesamten Seite
   ========================================================================== */

.nordlicht {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgb(61 220 151 / 0.14), transparent 65%),
    radial-gradient(ellipse 60% 40% at 85% 5%, rgb(139 111 196 / 0.16), transparent 62%),
    radial-gradient(ellipse 90% 55% at 50% 0%, rgb(74 159 224 / 0.10), transparent 70%);
  animation: nordlicht-wandern 34s ease-in-out infinite alternate;
}

@keyframes nordlicht-wandern {
  from { transform: translate3d(-3%, 0, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.1); }
}

/* Ebene 0b – feines Sternenfeld, rein aus CSS */
.sterne {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 34% 62%, #cfe0ff, transparent),
    radial-gradient(1px 1px at 58% 12%, #fff, transparent),
    radial-gradient(1px 1px at 77% 44%, #ffeccd, transparent),
    radial-gradient(1px 1px at 89% 78%, #fff, transparent),
    radial-gradient(1px 1px at 22% 88%, #cfe0ff, transparent),
    radial-gradient(1px 1px at 66% 92%, #fff, transparent);
  background-size: 100% 100%;
}

/* ==========================================================================
   Ebene 4 – Kopfzeile als schwebende Glasleiste
   ========================================================================== */

.kopf {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.kopf::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(7 10 17 / 0.55);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
.kopf[data-gescrollt]::before { opacity: 1; border-bottom-color: var(--kante); }

.kopf__inhalt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
  /* Von links wachsen, damit die Navigation nicht verrutscht. */
  transform-origin: left center;
  transition: transform 0.32s var(--ease), color 0.32s var(--ease);
  will-change: transform;
}

@media (hover: hover) {
  .marke:hover,
  .marke:focus-visible {
    transform: scale(1.3);
  }
  .marke:hover .marke__zusatz { color: var(--messing-hell); }
}
/* Der Schriftzug ist dem gedruckten Logo nachgebaut: Wortmarke, darunter
   der Zusatz mit der durchgehenden Linie. Als Text statt als Bild – dadurch
   gestochen scharf in jeder Größe und auf dunklem Grund brauchbar. */
.marke__zeichen {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--messing);
  align-self: center;
}

.marke__text { display: flex; flex-direction: column; gap: 1px; }

.marke__name {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
}

.marke__zusatz {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--messing);
  white-space: nowrap;
}
/* Die Linie rechts neben dem Zusatz, wie im gedruckten Logo */
.marke__zusatz::after {
  content: '';
  height: 1px;
  flex: 1;
  min-width: 1.4rem;
  background: currentColor;
  opacity: 0.55;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav a {
  color: var(--text-leise);
  text-decoration: none;
  font-size: 0.93rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgb(255 255 255 / 0.06); }
.nav a[aria-current='page'] { color: var(--messing-hell); }

.nav-schalter {
  display: none;
  background: none;
  border: 1px solid var(--kante);
  border-radius: var(--radius-klein);
  color: var(--text);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   Schaltflächen
   ========================================================================== */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s, border-color 0.2s, color 0.2s;
}
.knopf:hover { transform: translateY(-2px); }
.knopf:active { transform: translateY(0); }

.knopf--haupt {
  background: linear-gradient(135deg, var(--messing-hell), var(--messing));
  color: #14100a;
  box-shadow: var(--tiefe-2);
}
.knopf--haupt:hover { box-shadow: var(--tiefe-3), 0 0 0 4px rgb(201 164 92 / 0.14); }

.knopf--neben {
  background: rgb(255 255 255 / 0.04);
  border-color: var(--kante);
  color: var(--text);
}
.knopf--neben:hover { background: rgb(255 255 255 / 0.08); border-color: var(--messing); }

.knopf--leise {
  background: none;
  color: var(--text-leise);
  padding-inline: 0.6rem;
}
.knopf--leise:hover { color: var(--messing-hell); }

/* ==========================================================================
   Abschnitte
   ========================================================================== */

.abschnitt { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.abschnitt--schmal { padding: clamp(2.5rem, 6vw, 5rem) 0; }

/* Jede Seite braucht genau eine h1. Optisch soll sie sich aber wie eine
   Abschnittsüberschrift verhalten und nicht wie die Schlagzeile der Startseite. */
.seitentitel { font-size: clamp(1.9rem, 4vw, 2.9rem); }

.abschnitt__kopf { max-width: 52ch; margin-bottom: 3rem; }
.abschnitt__kopf--mitte { margin-inline: auto; text-align: center; }

.ueberschrift-klein {
  font-family: 'Inter', sans-serif;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--messing);
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.abschnitt__kopf--mitte .ueberschrift-klein { justify-content: center; }
.ueberschrift-klein::before,
.ueberschrift-klein::after {
  content: '';
  height: 1px;
  width: 2rem;
  background: linear-gradient(90deg, transparent, var(--messing));
}
.ueberschrift-klein::after { background: linear-gradient(90deg, var(--messing), transparent); }
.abschnitt__kopf:not(.abschnitt__kopf--mitte) .ueberschrift-klein::before { display: none; }

.vorspann { color: var(--text-leise); font-size: 1.08rem; }

/* ==========================================================================
   Buch – der plastische Körper
   Aus einem flachen Cover-Bild wird ein Buch mit Rücken und Kante.
   ========================================================================== */

.buch {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 3px 6px 6px 3px;
  transform-style: preserve-3d;
  box-shadow: var(--tiefe-3);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
  background: var(--flaeche-2);
}

/* Hörbücher haben quadratische Cover. Ein Buchrücken ergäbe hier keinen
   Sinn – stattdessen die gleichmäßige Kante einer Hülle. */
.buch--quadratisch {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
}
.buch--quadratisch::before { display: none; }

.buch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background-size: cover;
}

/* Buchrücken: dunkler Streifen plus eine feine Lichtkante */
.buch::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 9%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgb(0 0 0 / 0.55) 0%,
    rgb(0 0 0 / 0.28) 42%,
    rgb(255 255 255 / 0.16) 58%,
    rgb(0 0 0 / 0.1) 72%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Glanzlicht, das beim Neigen über den Umschlag wandert */
.buch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgb(255 255 255 / 0.16) 48%,
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.buch:hover::after { opacity: 1; }

/* ==========================================================================
   Ebene 1–3 – Der Einstieg
   ========================================================================== */

.einstieg {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

/* Ebene 2: unscharfe Cover-Wand weit hinten */
.coverwand {
  position: absolute;
  inset: -10% -5%;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.2rem;
  filter: blur(13px) saturate(0.55) brightness(0.4);
  opacity: 0.5;
  transform: rotate(-4deg) scale(1.25);
  pointer-events: none;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, transparent 25%, #000 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, transparent 25%, #000 85%);
}
.coverwand img { aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; }

.einstieg__inhalt {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.einstieg__text { max-width: 30rem; }

.einstieg h1 { margin-bottom: 0.35em; }
.einstieg h1 em {
  font-style: italic;
  color: var(--messing-hell);
}

.einstieg__vorspann {
  color: var(--text-leise);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  margin-bottom: 2rem;
}

.einstieg__knoepfe { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* --- Ebene 3: Die Coverflow-Bühne ---------------------------------------- */

.buehne {
  position: relative;
  height: clamp(360px, 46vw, 520px);
  perspective: 1600px;
  perspective-origin: 50% 45%;
}

.buehne__spur {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.buehne__platz {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(160px, 19vw, 230px);
  margin: 0;
  transform-style: preserve-3d;
  transition: transform 0.75s var(--ease), opacity 0.75s var(--ease), filter 0.75s var(--ease);
  will-change: transform, opacity;
}
.buehne__platz .buch { width: 100%; }

/* Nur das mittlere Buch ist scharf und voll gesättigt. */
.buehne__platz[data-stelle='0'] { z-index: 10; }
.buehne__platz[data-stelle='0'] .buch { box-shadow: var(--tiefe-4); }

.buehne__platz:not([data-stelle='0']) .buch::after { display: none; }

.buehne__platz a { display: block; border-radius: inherit; }

/* Bildunterschrift unter der Bühne */
.buehne__angabe {
  position: absolute;
  left: 50%;
  bottom: -0.5rem;
  transform: translateX(-50%);
  width: min(100%, 30rem);
  text-align: center;
  z-index: 20;
}
.buehne__angabe-titel {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  margin: 0 0 0.15rem;
  color: var(--text);
}
.buehne__angabe-autor {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--messing);
  margin: 0;
}
.buehne__angabe > * {
  animation: sanft-auf 0.55s var(--ease) both;
}

@keyframes sanft-auf {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0); }
}

.buehne__steuerung {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 3.4rem;
}
.buehne__pfeil {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--kante);
  background: rgb(255 255 255 / 0.03);
  color: var(--text-leise);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.buehne__pfeil:hover { color: var(--messing-hell); border-color: var(--messing); background: rgb(201 164 92 / 0.08); }

.buehne__punkte { display: flex; gap: 0.4rem; margin-inline: 0.6rem; }
.buehne__punkt {
  width: 6px; height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--kante);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.buehne__punkt[aria-current='true'] { background: var(--messing); width: 20px; border-radius: 3px; }

/* ==========================================================================
   Buchraster – das Regal mit Spotlight
   ========================================================================== */

.regal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem) clamp(1.1rem, 2.2vw, 1.9rem);
}

/* Beim Überfahren eines Buchs treten die übrigen leicht zurück. */
@media (hover: hover) {
  .regal:has(.regal__eintrag:hover) .regal__eintrag:not(:hover) {
    opacity: 0.42;
    filter: saturate(0.6);
  }
}

.regal__eintrag {
  transition: opacity 0.35s var(--ease), filter 0.35s var(--ease);
}
.regal__eintrag a { text-decoration: none; color: inherit; display: block; }
.regal__eintrag:hover .buch { transform: translateY(-9px); box-shadow: var(--tiefe-4); }

.regal__titel {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.25;
  margin: 0.9rem 0 0.2rem;
}
.regal__autor {
  font-size: 0.78rem;
  color: var(--text-sehr-leise);
  margin: 0;
}
.regal__eintrag:hover .regal__titel { color: var(--messing-hell); }

/* Format-Kennzeichnung */
.marken { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.marke-klein {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--kante);
  color: var(--text-sehr-leise);
  white-space: nowrap;
}
.marke-klein--print { border-color: rgb(201 164 92 / 0.45); color: var(--messing); }
.marke-klein--ebook { border-color: rgb(74 159 224 / 0.45); color: var(--nordlicht-blau); }
.marke-klein--hoerbuch { border-color: rgb(139 111 196 / 0.5); color: var(--nordlicht-violett); }
.marke-klein--gratis { border-color: rgb(61 220 151 / 0.5); color: var(--nordlicht-gruen); }

/* ==========================================================================
   Reihen-Karten
   ========================================================================== */

.reihen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.4rem;
}

.reihe-karte {
  position: relative;
  padding: 2rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--kante);
  background: linear-gradient(160deg, var(--flaeche-2), var(--flaeche-1));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--tiefe-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.reihe-karte::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--akzent, var(--messing)), transparent);
  opacity: 0.7;
}
/* Nur anklickbare Karten reagieren – eine reine Textkarte soll nicht so tun,
   als ließe sie sich anfassen. */
a.reihe-karte:hover,
a.reihe-karte:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--tiefe-3);
  border-color: color-mix(in srgb, var(--akzent, var(--messing)) 60%, var(--kante));
  /* Die Fläche nimmt einen Hauch der Akzentfarbe an. */
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--akzent, var(--messing)) 13%, var(--flaeche-2)),
    color-mix(in srgb, var(--akzent, var(--messing)) 5%, var(--flaeche-1))
  );
}
a.reihe-karte:hover::before,
a.reihe-karte:focus-visible::before { opacity: 1; }

a.reihe-karte:hover h3,
a.reihe-karte:focus-visible h3 { color: var(--akzent, var(--messing)); }

a.reihe-karte:hover p,
a.reihe-karte:focus-visible p { color: var(--text); }

.reihe-karte h3 {
  margin-bottom: 0.4rem;
  transition: color 0.3s var(--ease);
}
.reihe-karte p {
  color: var(--text-leise);
  font-size: 0.94rem;
  margin-bottom: 0.9rem;
  transition: color 0.3s var(--ease);
}

.reihe-karte__zahl {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--akzent, var(--messing));
}
/* Der Pfeil zeigt, dass die Karte irgendwohin führt, und rückt beim
   Überfahren ein Stück nach rechts. */
a.reihe-karte .reihe-karte__zahl::after {
  content: '→';
  font-size: 1.05em;
  letter-spacing: 0;
  transition: transform 0.3s var(--ease);
}
a.reihe-karte:hover .reihe-karte__zahl::after,
a.reihe-karte:focus-visible .reihe-karte__zahl::after { transform: translateX(4px); }

/* ==========================================================================
   Buchdetailseite
   ========================================================================== */

.titelseite {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-top: clamp(2rem, 5vw, 4rem);
}

.titelseite__bild { position: sticky; top: 6rem; }
.titelseite__bild .buch { box-shadow: var(--tiefe-4); }

.titelseite h1 { margin-bottom: 0.25em; }
.titelseite__untertitel {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-leise);
  margin-bottom: 1.4rem;
}
.titelseite__autor {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--messing);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

.klappentext { font-size: 1.04rem; }
.klappentext p:first-of-type::first-letter {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 3.1em;
  float: left;
  line-height: 0.82;
  padding: 0.08em 0.1em 0 0;
  color: var(--messing);
}

/* Bestellblock */
.bestellen {
  margin-top: 2.5rem;
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--flaeche-2), var(--flaeche-1));
  overflow: hidden;
  box-shadow: var(--tiefe-2);
}

.bestellen__format {
  padding: 1.5rem 1.7rem;
}
.bestellen__format + .bestellen__format { border-top: 1px solid var(--kante); }

.bestellen__zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.bestellen__art {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--messing);
}
.bestellen__preis {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.6rem;
  color: var(--text);
  margin-right: auto;
}
.bestellen__daten {
  font-size: 0.82rem;
  color: var(--text-sehr-leise);
  font-variant-numeric: tabular-nums;
}

.bestellen__knoepfe { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.bestellen__hinweis {
  margin: 0.9rem 0 0;
  font-size: 0.86rem;
  color: var(--text-sehr-leise);
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  line-height: 1.5;
}
.bestellen__hinweis svg { flex: none; margin-top: 0.2em; color: var(--nordlicht-blau); }

.haendler-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.9rem;
  font-size: 0.86rem;
}

/* ==========================================================================
   Filterleiste
   ========================================================================== */

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.02);
}

.filter__suche {
  flex: 1 1 190px;
  background: var(--grund);
  border: 1px solid var(--kante);
  border-radius: 999px;
  color: var(--text);
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-size: 0.9rem;
}
.filter__suche::placeholder { color: var(--text-sehr-leise); }

.filter__knopf {
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-leise);
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.87rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter__knopf:hover { color: var(--text); background: rgb(255 255 255 / 0.05); }
.filter__knopf[aria-pressed='true'] {
  color: var(--messing-hell);
  border-color: rgb(201 164 92 / 0.45);
  background: rgb(201 164 92 / 0.1);
}

.filter__zahl { font-size: 0.82rem; color: var(--text-sehr-leise); margin-left: auto; }

/* ==========================================================================
   Karte
   ========================================================================== */

.karte-rahmen {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--kante);
  aspect-ratio: 16 / 10;
  background: var(--flaeche-2);
  box-shadow: var(--tiefe-2);
}
@media (min-width: 800px) { .karte-rahmen { aspect-ratio: 16 / 8; } }

/* MapLibre setzt den Kartencontainer beim Start selbst auf position:relative.
   Deshalb reicht inset:0 nicht – die Groesse muss ausdruecklich stehen. */
.karte-rahmen__karte { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Zustimmung vor dem Laden – die Karte lädt erst auf Klick */
.karte-zustimmung {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  text-align: center;
  padding: 2rem;
  background:
    linear-gradient(rgb(7 10 17 / 0.82), rgb(7 10 17 / 0.92)),
    repeating-linear-gradient(0deg, var(--kante) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(90deg, var(--kante) 0 1px, transparent 1px 52px),
    var(--flaeche-1);
  z-index: 5;
}
.karte-zustimmung p {
  max-width: 44ch;
  font-size: 0.9rem;
  color: var(--text-leise);
  margin: 0;
}

/* Die hellen OSM-Kacheln werden in einen dunklen Kartenstil umgerechnet.
   Der Filter trifft nur das Canvas – Marker und Bedienelemente sind
   eigene DOM-Elemente und bleiben davon unberuehrt. */
.karte-rahmen__karte .maplibregl-canvas {
  filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.86) saturate(0.75);
}

.maplibregl-ctrl-attrib,
.maplibregl-ctrl-group {
  background: rgb(13 18 29 / 0.85) !important;
  border: 1px solid var(--kante);
}
.maplibregl-ctrl-attrib a { color: var(--text-leise) !important; }
.maplibregl-ctrl-group button { color: var(--text) !important; }
.maplibregl-ctrl-group button span { filter: invert(1); }

.maplibregl-popup-content {
  background: var(--flaeche-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--kante);
  border-radius: var(--radius-klein) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.88rem;
  padding: 0.9rem 1.1rem !important;
  box-shadow: var(--tiefe-3) !important;
}
.maplibregl-popup-tip { border-top-color: var(--flaeche-2) !important; }
.maplibregl-popup-close-button { color: var(--text-leise) !important; font-size: 1.2rem; }

/* ==========================================================================
   Kontakt
   ========================================================================== */

.kontakt-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}

.daten-liste { display: grid; gap: 1.3rem; margin: 0; }
.daten-liste dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--messing);
  margin-bottom: 0.25rem;
}
.daten-liste dd { margin: 0; color: var(--text); }

/* ==========================================================================
   Fuß
   ========================================================================== */

.fuss {
  border-top: 1px solid var(--kante);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  margin-top: 4rem;
  background: linear-gradient(180deg, transparent, rgb(13 18 29 / 0.7));
}

.fuss__raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.2rem;
  margin-bottom: 3rem;
}
.fuss h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--messing);
  margin-bottom: 1rem;
}
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.fuss a { color: var(--text-leise); text-decoration: none; font-size: 0.92rem; }
.fuss a:hover { color: var(--messing-hell); }

.fuss__schluss {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  align-items: center;
  padding-top: 1.8rem;
  border-top: 1px solid var(--kante);
  font-size: 0.84rem;
  color: var(--text-sehr-leise);
}
.fuss__schluss nav { display: flex; gap: 1.2rem; margin-left: auto; }

.fuss__umsetzung a {
  color: var(--text-leise);
  text-decoration: none;
  border-bottom: 1px solid rgb(201 164 92 / 0.35);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.fuss__umsetzung a:hover { color: var(--messing-hell); border-bottom-color: var(--messing-hell); }

/* ==========================================================================
   Rechtstexte
   ========================================================================== */

.rechtstext { max-width: 68ch; padding-top: clamp(2rem, 5vw, 4rem); }
.rechtstext h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-top: 2.8rem; }
.rechtstext h3 { font-size: 1.12rem; margin-top: 1.8rem; }
.rechtstext ul { color: var(--text-leise); padding-left: 1.2rem; }
.rechtstext li { margin-bottom: 0.45rem; }
.rechtstext a { word-break: break-word; }

.stand {
  font-size: 0.84rem;
  color: var(--text-sehr-leise);
  padding: 0.9rem 1.2rem;
  border-left: 2px solid var(--messing);
  background: rgb(255 255 255 / 0.02);
  border-radius: 0 var(--radius-klein) var(--radius-klein) 0;
}

/* ==========================================================================
   Einblenden beim Scrollen
   ========================================================================== */

.auftauchen {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.auftauchen.sichtbar { opacity: 1; transform: none; }

/* ==========================================================================
   Schmale Bildschirme
   ========================================================================== */

@media (max-width: 900px) {
  .einstieg__inhalt { grid-template-columns: 1fr; }
  .einstieg__text { max-width: none; text-align: center; margin-inline: auto; }
  .einstieg__knoepfe { justify-content: center; }
  .buehne { height: clamp(330px, 74vw, 430px); }
  .titelseite { grid-template-columns: 1fr; }
  .titelseite__bild { position: static; max-width: 240px; margin-inline: auto; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-schalter { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--rand) 1.6rem;
    background: rgb(10 14 23 / 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--kante);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav[data-offen] { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 0.85rem 0; border-radius: 0; border-bottom: 1px solid var(--kante); }
  .nav .knopf { margin-top: 1rem; justify-content: center; }

  .regal { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
  .fuss__schluss nav { margin-left: 0; }
}

/* ==========================================================================
   Rücksicht auf reduzierte Bewegung
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .auftauchen { opacity: 1; transform: none; }
  .nordlicht { animation: none; }
}

/* ==========================================================================
   Druck
   ========================================================================== */

@media print {
  .nordlicht, .sterne, .coverwand, .kopf, .fuss, .buehne__steuerung { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
