/* =========================================================
   Spotlight Morningstar · Sternenhimmel-Design (nur dunkel)
   Nachthimmel wie auf der Visitenkarte, Logo in Silber
   ========================================================= */

:root[data-ansicht="dunkel"] {
  color-scheme: dark;
  --c-bg: #091233;
  --c-surface: rgba(22, 36, 78, .62);
  --c-line: rgba(196, 210, 242, .18);
  --c-ink: #eef2fb;
  --c-muted: #b7c3dc;
  --c-accent: #f0b86a;
  --c-accent-ink: #f3c27f;
  --c-spot: rgba(255, 255, 255, .06);

  --c-deep: #050c25;
  --c-on-deep: #eef2fb;
  --c-muted-on-deep: #b7c3dc;
  --c-accent-on-deep: #f3c27f;

  --c-header-bg: rgba(5, 12, 36, .84);
  --c-header-solid: #07102e;
  --c-header-ink: #eef2fb;
  --c-header-accent: #f3c27f;
  --c-header-line: rgba(196, 210, 242, .14);

  --c-hero-bg: #031535;
  --c-hero-ink: #ffffff;
  --c-hero-muted: #cdd6ea;
  --c-hero-line: rgba(255, 255, 255, .38);
  --c-stern: #ffffff;

  --c-cta-bg: #f0b86a;
  --c-cta-ink: #0a1330;
  --c-cta-hover: #f6c98a;
  --c-cta-deep-bg: #f0b86a;
  --c-cta-deep-ink: #0a1330;
  --c-cta-deep-hover: #f6c98a;

  --c-field-bg: #0d1840;
  --c-field-line: #7685ad;
  --c-focus: #f3c27f;
  --c-badge-bg: #061232;
  --c-logo: #f4f6fb;
}

/* ---------- Sterne im Hintergrund der ganzen Seite ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../img/sterne-kachel.webp") 0 0 / 520px auto repeat;
  opacity: .5;
}

/* ---------- Startbereich: Nachthimmel mit Landschaft der Visitenkarte ---------- */
.hero__inner { padding-bottom: max(15vw, 9rem); }
.hero {
  background-color: #031535;
  background-image:
    url("../img/landschaft-nacht.webp"),
    url("../img/milchstrasse.webp"),
    url("../img/sterne-kachel.webp"),
    linear-gradient(180deg, #000a1d 0%, #00112d 40%, #03204c 72%, #062859 100%);
  background-repeat: no-repeat, no-repeat, repeat, no-repeat;
  background-position: center bottom, right -6rem top -3rem, 0 0, 0 0;
  background-size: max(100%, 56rem) auto, min(62rem, 95%) auto, 520px auto, 100% 100%;
}
.stern svg,
.wurf__stern svg { filter: drop-shadow(0 0 6px rgba(190, 215, 255, .85)); }
.medaillon {
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .04), 0 18px 40px -16px rgba(0, 0, 0, .7);
}

/* ---------- Logo in Silber mit leichtem Schimmer ---------- */
.logo-maske {
  -webkit-mask: none;
  mask: none;
  background: url("../img/logo-silber.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(170, 195, 255, .5));
}
.medaillon .logo-maske { filter: drop-shadow(0 0 5px rgba(170, 195, 255, .5)); }
.marke__emblem {
  -webkit-mask: none;
  mask: none;
  background: url("../img/logo-emblem-silber.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(170, 195, 255, .55));
}

/* ---------- Kopf der Unterseiten ---------- */
.seitenkopf {
  background-color: #00112d;
  background-image:
    url("../img/milchstrasse.webp"),
    url("../img/sterne-kachel.webp"),
    linear-gradient(180deg, #000a1d 0%, #01183f 100%);
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: right -4rem top -6rem, 0 0, 0 0;
  background-size: min(50rem, 90%) auto, 520px auto, 100% 100%;
  border-bottom-color: rgba(196, 210, 242, .14);
}

/* ---------- Dunkle Bänder (Handlungsaufforderung) ---------- */
.section--deep {
  background-color: var(--c-deep);
  background-image:
    url("../img/sterne-kachel.webp"),
    radial-gradient(ellipse 70% 55% at 50% 125%, rgba(240, 184, 106, .2), rgba(240, 184, 106, 0) 70%);
  background-repeat: repeat, no-repeat;
  background-size: 520px auto, 100% 100%;
}

/* ---------- Fußbereich: Landschaft der Karte am unteren Rand ---------- */
.site-footer {
  background-color: #03102b;
  background-image:
    url("../img/landschaft-nacht.webp"),
    url("../img/sterne-kachel.webp"),
    linear-gradient(180deg, #020b22 0%, #02112f 55%, #062859 100%);
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: center bottom, 0 0, 0 0;
  background-size: max(100%, 56rem) auto, 520px auto, 100% 100%;
  padding-bottom: max(19.2vw, 10.6rem);
}

/* ---------- Sprachwahl mit Fahnen ---------- */
.sprachwahl a { min-width: 2.6rem; }
.sprachwahl a:hover { text-decoration: none; }
.flagge {
  display: block;
  width: 1.7rem;
  height: 1.15rem;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
  transition: transform .2s var(--ease);
}
.sprachwahl a:hover .flagge { transform: translateY(-1px) scale(1.06); }

/* ---------- Farbiges Instagram-Logo ---------- */
.icon-link .insta-farbig { width: 1.55rem; height: 1.55rem; display: block; }
.footer-insta .insta-farbig { width: 1.3rem; height: 1.3rem; }

/* ---------- Untermenü „Unsere Würfe“ ---------- */
.hat-untermenue { position: relative; }
.hat-untermenue::after { content: ""; position: absolute; left: -1rem; right: -1rem; top: 100%; height: .9rem; }
.untermenue-knopf {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin: 0;
  padding: .35rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: 500 1.04rem/1.65 var(--font-body);
  cursor: pointer;
}
.untermenue-knopf:hover,
.untermenue-knopf.ist-aktiv { color: var(--c-header-accent); }
.untermenue-pfeil { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.hat-untermenue.ist-offen .untermenue-pfeil { transform: rotate(180deg); }
.hauptnav .untermenue {
  display: none;
  position: absolute;
  top: calc(100% + .6rem);
  left: -1rem;
  z-index: 60;
  min-width: 16rem;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: .5rem;
  list-style: none;
  background: var(--c-header-solid);
  border: 1px solid var(--c-header-line);
  border-radius: 12px;
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
}
.hat-untermenue.ist-offen > .untermenue,
.hat-untermenue:hover > .untermenue,
.hat-untermenue:focus-within > .untermenue { display: flex; }
.hauptnav .untermenue a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .65rem .8rem;
  border-radius: 8px;
  background: none;
  white-space: nowrap;
}
.hauptnav .untermenue a:hover,
.hauptnav .untermenue a[aria-current="page"] { background: rgba(255, 255, 255, .07); }
.untermenue__status {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
  border: 1px solid rgba(240, 184, 106, .5);
  border-radius: 999px;
  padding: .12rem .5rem;
}

/* Kennzeichen „In Planung“ */
.status-marke {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
  border: 1px solid rgba(240, 184, 106, .6);
  border-radius: 999px;
  padding: .3rem .85rem;
}
.seitenkopf .status-marke { margin-bottom: .4rem; }

/* ---------- Über uns: Platz für unsere Geschichte ---------- */
.geschichte { max-width: 50rem; margin-inline: auto; text-align: center; }
.geschichte .eyebrow { justify-content: center; }
.geschichte .eyebrow::after { content: ""; width: 2em; height: 1px; background: currentColor; flex: none; }
.geschichte__text {
  margin-top: 1.6rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px dashed rgba(240, 184, 106, .55);
  border-radius: 14px;
  background: rgba(5, 12, 37, .35);
  text-align: left;
}
.geschichte__platzhalter {
  margin: 0;
  text-align: center;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  color: var(--c-muted);
}

/* ---------- Über uns: Geschichte in Kapiteln zum Aufklappen ---------- */
.geschichte__einleitung { margin: 1rem auto 0; max-width: 42rem; color: var(--c-muted); }
.kapitel-liste {
  max-width: 50rem;
  margin: clamp(1.8rem, 4vw, 2.6rem) auto 0;
  display: grid;
  gap: .75rem;
}
.kapitel {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  scroll-margin-top: 6.5rem;
  transition: border-color .25s var(--ease);
}
.kapitel[open] { border-color: rgba(240, 184, 106, .55); }
.kapitel summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem clamp(1rem, 3vw, 1.6rem);
  cursor: pointer;
  list-style: none;
  border-radius: 14px;
}
.kapitel summary::-webkit-details-marker { display: none; }
.kapitel summary:hover .kapitel__titel { color: var(--c-accent-ink); }
.kapitel summary:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }
.kapitel__nr {
  flex: none;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-variant-numeric: lining-nums;
  color: var(--c-accent-ink);
  letter-spacing: .04em;
  min-width: 1.6em;
}
.kapitel__titel {
  flex: 1;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.3;
  color: var(--c-ink);
  transition: color .2s var(--ease);
}
.kapitel__pfeil { flex: none; width: 1.3rem; height: 1.3rem; color: var(--c-accent-ink); transition: transform .25s var(--ease); }
.kapitel[open] .kapitel__pfeil { transform: rotate(180deg); }
.kapitel__inhalt {
  padding: 0 clamp(1rem, 3vw, 1.6rem) 1.4rem calc(clamp(1rem, 3vw, 1.6rem) + 1.8em + 1rem);
  border-top: 1px solid var(--c-line);
  padding-top: 1.1rem;
}
.kapitel__inhalt p { max-width: 40rem; }
.kapitel__inhalt strong { color: var(--c-accent-ink); font-weight: 600; }
.kapitel__weiter {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .4rem;
  font-weight: 600;
  color: var(--c-accent-ink);
  text-decoration: none;
}
.kapitel__weiter svg { width: 1.1rem; height: 1.1rem; transition: transform .2s var(--ease); }
.kapitel__weiter:hover { text-decoration: underline; }
.kapitel__weiter:hover svg { transform: translateX(3px); }
.geschichte__schluss {
  max-width: 40rem;
  margin: clamp(2rem, 4vw, 2.8rem) auto 0;
  text-align: center;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  color: var(--c-accent-ink);
}
@media (max-width: 47.5rem) {
  .kapitel summary { gap: .7rem; }
  .kapitel__inhalt { padding-left: clamp(1rem, 3vw, 1.6rem); }
}

/* ---------- Hinweiszeile im Seitenkopf (z. B. Dalmatiner-Seite) ---------- */
.seitenkopf__hinweis {
  margin-top: 1.2rem;
  max-width: 46rem;
  font-size: .95rem;
  color: var(--c-hero-muted);
}

/* ---------- QR-Codes ---------- */
.qr-raster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.qr-karte {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  text-align: center;
}
.qr-platz {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .8rem;
  margin-bottom: 1.3rem;
  border-radius: 12px;
  background: #f4f6fb;
  color: #8a96b3;
  border: 2px dashed #b7c3dc;
}
.qr-code {
  aspect-ratio: 1;
  margin-bottom: 1.3rem;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.qr-code img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qr-symbol { width: 34%; height: auto; }
.qr-platz__hinweis { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #4f5b78; }
.qr-karte h2 { font-size: 1.7rem; margin-bottom: .3em; }
.qr-karte p { color: var(--c-muted); margin: 0; }

/* ---------- Formulare ---------- */
.feld select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B7C3DC' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.form-status--fehler { border-color: #ec8f80; }
.feld input:hover,
.feld select:hover,
.feld textarea:hover { border-color: #b7c3dc; }

/* ---------- Ohne JavaScript: Untermenü immer sichtbar ---------- */
html:not(.js) .hauptnav .untermenue { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; background: transparent; }

/* ---------- Tablet und Handy: Menü zum Aufklappen ---------- */
@media (max-width: 76rem) {
  .hat-untermenue::after { display: none; }
  .untermenue-knopf {
    width: 100%;
    justify-content: space-between;
    padding: .95rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--c-header-line);
  }
  .hauptnav .untermenue {
    position: static;
    min-width: 0;
    padding: 0 0 .3rem 1rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .hat-untermenue:hover > .untermenue,
  .hat-untermenue:focus-within > .untermenue { display: none; }
  .hat-untermenue.ist-offen > .untermenue { display: flex; }
  .hauptnav .untermenue a { padding: .85rem 0; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--c-header-line); }
  .hauptnav .untermenue a:hover,
  .hauptnav .untermenue a[aria-current="page"] { background: none; color: var(--c-header-accent); }
}

@media (max-width: 47.5rem) {
  .site-header .site-header__inner { gap: .5rem; }
  .hero__inner { padding-bottom: max(26vw, 8rem); }
  .qr-raster { grid-template-columns: 1fr; max-width: 22rem; margin-inline: auto; }
  .flagge { width: 1.55rem; height: 1.05rem; }
  .sprachwahl a { min-width: 2.3rem; }
}

/* Startseite: drei Hunde-Karten (Tequila, Toffee, Baghira) */
.hunde-karten--drei { grid-template-columns: repeat(3, 1fr); max-width: 62rem; gap: clamp(.8rem, 2.5vw, 2rem); }
.hunde-karten--drei .hund-karte h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.hund-karte__bild.platzhalter { border-radius: var(--bogen); }
.hund-karte__bild.platzhalter svg { width: clamp(2.2rem, 5vw, 3.4rem); }
@media (max-width: 47.5rem) {
  .hunde-karten--drei { gap: .7rem; }
  .hunde-karten--drei .hund-karte h3 { font-size: 1.2rem; }
  .hunde-karten--drei .hund-karte__meta { font-size: .85rem; line-height: 1.35; }
}
/* Sternschnuppe: fliegt ab und zu ueber die Seite (nur Deko, nicht anklickbar) */
.sternschnuppe {
  position: fixed;
  left: 0; top: 0;
  width: 19rem; height: 3px;
  margin: -1.5px 0 0 -19rem;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(214,226,255,.6) 65%, #fff);
  pointer-events: none;
  z-index: 90;
  opacity: 0;
  animation: sternschnuppe-flug var(--dauer, 1.3s) cubic-bezier(.25,.4,.55,1) forwards;
}
.sternschnuppe::after {
  content: "";
  position: absolute;
  right: -2px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px 3px rgba(255,255,255,.9), 0 0 24px 8px rgba(180,200,255,.5);
}
@keyframes sternschnuppe-flug {
  0%   { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--w)) scaleX(.3); }
  12%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) rotate(var(--w)) scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { .sternschnuppe { display: none; } }
/* Cookie-Hinweis (vorbereitet, standardmaessig aus; Schalter in main.js) */
.einwilligung {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 120;
  display: flex; justify-content: center;
  pointer-events: none;
}
.einwilligung[hidden] { display: none; }
.einwilligung__inner {
  pointer-events: auto;
  width: min(100%, 44rem);
  background: var(--c-header-solid);
  color: var(--c-ink);
  border: 1px solid rgba(240, 184, 106, .45);
  border-radius: 14px;
  box-shadow: 0 18px 48px -12px rgba(0, 0, 0, .7);
  padding: 1.3rem 1.5rem 1.4rem;
}
.einwilligung__titel { font-size: 1.45rem; margin: 0 0 .4rem; color: var(--c-accent-ink); }
.einwilligung__text { font-size: 1rem; line-height: 1.55; color: var(--c-muted); margin: 0; }
.einwilligung__text a { color: var(--c-ink); text-decoration: underline; text-underline-offset: .2em; }
.einwilligung__knoepfe { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; justify-content: flex-end; }
/* Beide Knoepfe absichtlich gleich auffaellig (rechtlich gefordert) */
.einwilligung__knopf {
  min-width: 9.5rem;
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid var(--c-accent);
}
.einwilligung__knopf:hover { background: rgba(240, 184, 106, .14); }
.rechtslinks__knopf {
  font: inherit; font-weight: 500; color: inherit;
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: .25em;
}
.rechtslinks__knopf[hidden] { display: none; }
@media (max-width: 47.5rem) {
  .einwilligung { left: .6rem; right: .6rem; bottom: .6rem; }
  .einwilligung__inner { padding: 1.1rem 1.1rem 1.2rem; }
  .einwilligung__titel { font-size: 1.3rem; }
  .einwilligung__text { font-size: .95rem; }
  .einwilligung__knoepfe { justify-content: stretch; }
  .einwilligung__knopf { flex: 1 1 8rem; min-width: 0; }
}
/* ---------- Ausstellungen: Ort unter dem Namen ---------- */
.termin .termin__ort { color: var(--c-ink); font-size: .95rem; margin-bottom: .45em; }

/* ---------- Hauptmenü mit „Kontakt“ (2026-12-05) ----------
   Menüwörter nie umbrechen; knapp über der Tablet-Breite etwas engere Abstände, damit alles in eine Zeile passt. */
@media (min-width: 76.0625rem) {
  .hauptnav ul a, .hauptnav .untermenue-knopf { white-space: nowrap; }
}
@media (min-width: 76.0625rem) and (max-width: 86rem) {
  .hauptnav { gap: 1rem; }
  .hauptnav ul { gap: 1rem; }
}
