/* Nennwerk KI-Marker · gemeinsamer Baustein für Landing, Musterseiten und Lead-Vorschauen (Fassung 3.2, 30.09.2026)
   Zweck: macht sichtbar, was für die KI-Suche eingebaut ist. Aus = unsichtbar, nichts läuft, nichts bewegt sich.
   Einbinden: <link rel="stylesheet" href="…/s/geo.css"> + <script src="…/s/geo.js" defer></script>
   Markieren: data-geo="02" data-geo-titel="Strukturierte Daten" (optional data-geo-text="…") auf dem Element.
   Knopf: geo.js setzt ihn in <header> (Reihenfolge: [data-geo-slot], .kopf__rechts, .rechts, .kopf__reihe, header); ab 761 px sichtbar,
   darunter eine feste Pille unten rechts. Eingeschaltet: gestrichelter Rahmen + Nummernpunkt an jeder Stelle, am Desktop dazu ein Etikett
   (nie im Kopfbereich), auf allen Breiten eine Leiste unten mit aufklappbarer Erklärliste. Farbe je Site: :root{--geo-farbe: <Akzent>}. Druck: alles aus. */
:root { --geo-farbe: #1d4ed8; --geo-schrift: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* Knopf: Pille mit Punkt. Im Kopf erbt sie nichts vom Site-CSS außer der Schrift. */
.geo-schalter {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  min-height: 40px; padding: 0 16px 0 13px; margin: 0;
  border: 2px solid var(--geo-farbe); border-radius: 999px; background: #fff; color: #111;
  font-family: var(--geo-schrift); font-weight: 600; font-size: 14px; line-height: 1; letter-spacing: .01em; white-space: nowrap;
  cursor: pointer; text-decoration: none; text-transform: none;
}
.geo-schalter i { width: 10px; height: 10px; border-radius: 50%; background: var(--geo-farbe); flex: none; }
.geo-schalter:hover { background: color-mix(in srgb, var(--geo-farbe) 10%, #fff); }
.geo-schalter:focus-visible { outline: 3px solid var(--geo-farbe); outline-offset: 2px; }
html.geo-an .geo-schalter { background: var(--geo-farbe); color: #fff; }
html.geo-an .geo-schalter i { background: #fff; }
.geo-schalter--kopf { margin-left: 12px; }
.geo-schalter--fest { position: fixed; right: 16px; bottom: 16px; z-index: 9001; box-shadow: 0 2px 10px rgba(0,0,0,.14); }
@media (min-width: 761px) { .geo-schalter--fest { display: none; } }
@media (max-width: 760px) { .geo-schalter--kopf { display: none; } body { padding-bottom: 72px; } }

/* Rahmen am Element, nur wenn eingeschaltet. Platz unten für die Leiste, damit sie keine Fußlinks verdeckt. */
html.geo-an [data-geo] { outline: 2px dashed var(--geo-farbe); outline-offset: 8px; }
html.geo-an body { padding-bottom: 88px; }
@media (max-width: 760px) { html.geo-an body { padding-bottom: 150px; } }

/* Ebene über dem Dokument: Nummernpunkte und Etiketten, Position setzt geo.js */
.geo-ebene { position: absolute; top: 0; left: 0; width: 100%; height: 0; z-index: 8800; pointer-events: none; }  /* über Inhalt und Kopf, aber unter Leiste (9000) und Schalter (9001) */
.geo-ebene[hidden] { display: none; }
.geo-punkt {
  position: absolute; width: 26px; height: 26px; box-sizing: border-box; pointer-events: auto; margin: 0; padding: 0; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--geo-farbe); color: #fff; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.18);
  font-family: var(--geo-schrift); font-weight: 700; font-size: 12px; line-height: 1; text-decoration: none;
}
.geo-punkt:hover, .geo-punkt:focus-visible { transform: scale(1.12); outline: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--geo-farbe); }
.geo-etikett {
  position: absolute; pointer-events: auto; display: none; z-index: 2; gap: 10px; align-items: flex-start; box-sizing: border-box;
  padding: 8px 12px 9px 8px; border-radius: 12px; background: #fff; color: #111;
  border: 1px solid color-mix(in srgb, var(--geo-farbe) 35%, transparent); box-shadow: 0 6px 22px rgba(0,0,0,.14);
  font-family: var(--geo-schrift); font-size: 13px; line-height: 1.4; text-decoration: none; text-align: left;
}
.geo-etikett.geo-etikett--offen { display: flex; }
.geo-etikett:hover { border-color: var(--geo-farbe); }
.geo-etikett b {
  flex: none; width: 24px; height: 24px; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--geo-farbe); color: #fff; font-weight: 700; font-size: 12px; line-height: 1;
}
.geo-etikett span { display: block; min-width: 0; }
.geo-etikett strong { display: block; font-weight: 700; font-size: 13.5px; color: var(--geo-farbe); margin-bottom: 2px; }
.geo-etikett em { display: block; font-style: normal; color: #333; }

/* Leiste unten: Satz, Knopf „Was heißt das?“, Link; darüber klappt die Erklärliste auf */
.geo-leiste {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9000;
  width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box;
  border-radius: 18px; background: #111; color: #fff; box-shadow: 0 8px 26px rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.38);
  font-family: var(--geo-schrift); font-size: 13px; line-height: 1.35;
}
.geo-leiste[hidden] { display: none; }
.geo-leiste__zeile { display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; padding: 10px 16px; }
.geo-leiste__knopf {
  margin: 0; padding: 6px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: transparent; color: #fff;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.geo-leiste__knopf:hover { background: rgba(255,255,255,.12); }
.geo-leiste__alle { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
/* Liste: eigene Regeln mit hoher Spezifität, weil Seiten-CSS für ol/li (Margins, Zähler, Farben) sonst durchschlägt */
.geo-leiste ol.geo-liste { margin: 0 !important; padding: 2px 16px 10px !important; list-style: none !important; counter-reset: none; max-height: min(45vh, 420px); overflow: auto; border-top: 1px solid rgba(255,255,255,.18); text-align: left; color: #fff; }
.geo-leiste ol.geo-liste[hidden] { display: none !important; }
.geo-leiste ol.geo-liste > li { display: flex; gap: 10px; align-items: flex-start; margin: 0 !important; padding: 9px 0 !important; border: 0; border-top: 1px solid rgba(255,255,255,.1); cursor: pointer; list-style: none !important; text-indent: 0; font-size: 13px; line-height: 1.35; color: #fff; background: none; }
.geo-leiste ol.geo-liste > li::before, .geo-leiste ol.geo-liste > li::marker { content: none !important; display: none !important; }
.geo-leiste ol.geo-liste > li:first-child { border-top: 0; }
.geo-leiste ol.geo-liste > li b { flex: none; width: 24px; height: 24px; margin: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #111; font-weight: 700; font-size: 12px; line-height: 1; }
.geo-leiste ol.geo-liste > li span { display: block; min-width: 0; }
.geo-leiste ol.geo-liste > li strong { display: block; font-weight: 700; margin: 0 0 2px; color: #fff; }
.geo-leiste ol.geo-liste > li em { display: block; font-style: normal; color: rgba(255,255,255,.8); }
.geo-leiste ol.geo-liste > li.geo-liste__mehr { padding: 10px 0 2px !important; }
.geo-liste__mehr a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .geo-leiste { left: 12px; right: 12px; bottom: 70px; transform: none; width: auto; max-width: none; font-size: 12.5px; }
  .geo-leiste ol.geo-liste { max-height: 40vh; }
  .geo-leiste__zeile { padding: 9px 12px; gap: 8px 12px; }
  .geo-leiste__alle { display: none; }  /* auf dem Handy reicht die Liste; die Erklärseite ist aus der Liste heraus verlinkt */
  .geo-punkt { width: 24px; height: 24px; font-size: 11px; }
}

@media (prefers-reduced-motion: no-preference) { .geo-schalter, .geo-leiste__knopf { transition: background-color .15s, color .15s; } }
@media print { .geo-schalter, .geo-leiste, .geo-ebene { display: none !important; } html.geo-an [data-geo] { outline: 0; } }
