/* Planer im Erscheinungsbild von astrophotography.biz (Styleguide vom 10.11.2026).
   Tokens aus ci-tokens.css; Gold ist der einzige Akzent; Radius 2 px; keine Schatten. */

@font-face {
  font-family: "Cinzel Variable";
  src: url("/static/vendor/cinzel-latin-wght.woff2") format("woff2-variations");
  font-weight: 400 900; font-display: swap;
}
@font-face {
  font-family: "Montserrat Variable";
  src: url("/static/vendor/montserrat-latin-wght.woff2") format("woff2-variations");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat Variable";
  src: url("/static/vendor/montserrat-latin-ext-wght.woff2") format("woff2-variations");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-text); font-size: var(--fs-body); line-height: var(--lh-body);
}

/* Sprungmarke */
.sprung { position: absolute; left: -9999px; top: .5rem; background: var(--gold); color: var(--bg);
  padding: .6rem 1rem; border-radius: 2px; z-index: 10; font-weight: 600; text-decoration: none; }
.sprung:focus { left: .5rem; }

/* Fokus */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Kopf */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem var(--gutter); padding-top: max(.75rem, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.logo { width: clamp(150px, 28vw, 340px); max-width: 100%; height: auto; display: block; }
.logo-link { display: block; line-height: 0; }

/* Karte */
#karte { height: 45vh; min-height: 280px; width: 100%; border-bottom: 1px solid var(--line); }

/* Inhalt */
.panel { max-width: 76rem; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter) 3rem; }
.panel > p, .kasten > p, .fuss p { max-width: var(--measure); }

h1, h2 {
  font-family: var(--font-title); font-weight: 700; text-transform: uppercase;
  letter-spacing: var(--track-title); line-height: 1.08;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: var(--gold);
}
@supports (background-clip: text) { h1, h2 { color: transparent; } }
@media (forced-colors: active) { h1, h2 { background: none; color: CanvasText; } }
h1 { font-size: var(--fs-h1); margin: 0 0 .75rem; }
h2 { font-size: var(--fs-h2); margin: 0 0 1rem; }
.einleitung { color: var(--text); margin: 0 0 1.5rem; }

/* Label im CI-Stil */
.label { font-weight: 600; font-size: .75rem; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold); }
.label output { letter-spacing: 0; text-transform: none; color: var(--text); font-size: .95rem; margin-left: .3rem; }

/* Modul-Wahl wie die Navigation der Website */
.reiter { display: flex; gap: 1.75rem; margin: 0 0 1.25rem; border-bottom: 1px solid var(--line); }
.reiter button { background: none; border: 0; padding: .6rem 0; font: 500 17px var(--font-text); color: var(--text);
  cursor: pointer; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.reiter button:hover, .reiter button[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* Kästen */
.kasten { background: var(--bg-raised); border-radius: 2px; padding: clamp(1rem, 3vw, 1.5rem); margin: 0 0 1.25rem; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem; }
label { display: flex; flex-direction: column; gap: .4rem; }
label.voll { margin-bottom: 1rem; }
.kasten > .meta + .raster { margin-top: 1rem; }
input, select {
  font: 400 1rem var(--font-text); color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 2px; padding: .65rem .7rem; min-height: 2.9rem;
}
input[type=range] { padding: 0; border: 0; background: transparent; accent-color: var(--gold); min-height: 2.4rem; }

/* Knopf: es gibt nur diesen einen */
.btn { display: inline-block; background: var(--gold); color: var(--bg); font: 600 1rem var(--font-text);
  text-decoration: none; padding: .8rem 1.4rem; border-radius: 2px; border: 0; cursor: pointer; margin-top: 1.25rem; }
.btn:hover { background: var(--gold-hi); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Links und Aktionen als Links */
a, .link-knopf { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover, .link-knopf:hover { color: var(--gold-hi); }
.link-knopf { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.meta { color: var(--muted); font-size: var(--fs-small); margin: .6rem 0 0; }
.hinweis { color: var(--text); font-size: var(--fs-small); margin: .25rem 0 .75rem; }

/* Ergebnisliste: Trennung mit Linien, nicht mit Karten */
#ergebnis { margin-top: 2rem; }
.liste { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--line); }
.eintrag { padding: 1rem .9rem; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; }
.eintrag.gewaehlt { border-left-color: var(--gold); background: var(--bg-raised); }
.eintrag .zeile1 { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.eintrag h3 { font-size: var(--fs-h3); font-weight: 600; margin: 0; }
.eintrag .werte { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; color: var(--muted); font-size: var(--fs-small); margin: .4rem 0; }
.eintrag ul { margin: .4rem 0; padding-left: 1.2rem; font-size: var(--fs-small); }
.eintrag ul li::marker { content: "⚠︎ "; }
.naechte { list-style: none; padding: 0; margin: .8rem 0 0; font-size: var(--fs-small); }
.naechte li { padding: .35rem 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .2rem .5rem; align-items: baseline; }
.meta-inline { color: var(--muted); }
.aktionen { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .6rem; font-size: var(--fs-small); }

/* Marken */
.marke { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: .15rem .6rem;
  border-radius: 999px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.marke.gefuellt { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.marke.umrandet { border-color: var(--gold); color: var(--gold); }

.fuss { color: var(--muted); font-size: var(--fs-small); margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* MapLibre-Bedienelemente dunkel */
.maplibregl-ctrl-group { background: var(--bg-raised); border-radius: 2px; }
.maplibregl-ctrl-group button + button { border-top-color: var(--line); }
.maplibregl-ctrl-attrib { background: rgba(11, 14, 20, .8) !important; color: var(--muted); }
.maplibregl-ctrl-attrib a { color: var(--muted); }

/* Nachtmodus (Funktion für die Dunkeladaption am Spot, keine Gestaltungsfarbe) */
body.nacht { filter: grayscale(1) sepia(1) hue-rotate(-50deg) saturate(6) brightness(.55); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
[hidden] { display: none !important; }

/* Fusszeile: rechtliche Links (Vorgabe E-Commerce 11.11.2026) */
.fuss-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0 .5rem; }
.kopf-aktionen { display: flex; align-items: center; gap: .9rem; flex: 0 0 auto; }
.kopf-aktionen > * { white-space: nowrap; }
.kopf .logo-link { min-width: 0; flex: 1 1 auto; }

/* Einheit im Label bleibt in normaler Schreibung (sonst «MÜM») */
.label .einheit { text-transform: none; letter-spacing: .02em; }
