/* Städte entdecken (eulendatenbank_staedte.go, edb-staedte*.html, edb-stadt*.html): Entwurf der Designerin Astra vom
   18.11.2026, vom Owner abgenommen – Abstände, Farben, Schriften und Aufbau wie im Entwurf (index.html dort). Eigene
   Datei, nur für die neuen Seiten; alle Regeln unter .sd bzw. .sd-einstieg, damit Kopf, Fuß und stil.css unberührt
   bleiben. Schriften: IBM Plex Sans 600 und Source Sans 3 400 (SIL OFL 1.1, Lizenz /static/schriften/LIZENZ-SCHRIFTEN.txt),
   dieselben Dateien wie im Entwurf, vom eigenen Server.
   Abweichung (Regel A6, TestKeinStreifenLinks): der Statuskasten trägt statt des Streifens links einen Rand ringsum. */
@font-face { font-family: "EDB Source"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/schriften/source-sans-3-normal-400-latin.woff2") format("woff2"); }
@font-face { font-family: "EDB Plex"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/schriften/ibm-plex-sans-normal-600-latin.woff2") format("woff2"); }

body.sd-seite { background: #f5f7fa; }
.sd { color-scheme: light; --text: #15263f; --muted: #5b6a7d; --rand: #dce3eb; --bg: #ffffff; --karte: #ffffff; --aktion: #15263f;
  --cta-dunkel: #376d91; --g-balken: #245c83; --fokus: #327aa9;
  box-sizing: border-box; width: 100%; max-width: 1120px; margin: auto; padding: 35px 20px;
  background: #f5f7fa; color: #15263f; font: 17px "EDB Source", Arial, sans-serif; overflow-wrap: break-word; }
.sd h1, .sd h2, .sd h3, .sd strong { font-family: "EDB Plex", Arial, sans-serif; font-weight: 600; letter-spacing: normal; text-wrap: wrap; }
.sd h1 { font-size: 44px; line-height: 1.12; margin: 12px 0; }
.sd h2 { font-size: 25px; line-height: normal; margin: 0 0 12px; }
.sd h3 { font-size: 18px; line-height: normal; margin: 0 0 8px; }
.sd p { line-height: 1.5; margin: 1em 0; }
.sd a { color: inherit; }
.sd small, .sd .muted { color: #5b6a7d; }
.sd small { font-size: 13px; line-height: normal; }
.sd .intro { max-width: 720px; }
.sd .eyebrow { color: #376d91; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.sd .search { display: flex; gap: 12px; margin: 24px 0; }
.sd input, .sd select, .sd button { font: inherit; border: 1px solid #bdc9d7; border-radius: 9px; padding: 12px; background: white; color: #15263f; margin: 0; }
.sd input { width: 100%; }
.sd button { cursor: pointer; }
.sd button:hover, .sd .map a:hover, .sd .topics a:hover, .sd .citylist a:hover, .sd .cta-knopf:hover { border-color: #225b88; background: #edf4fa; }
.sd button:focus-visible, .sd input:focus-visible, .sd select:focus-visible, .sd a:focus-visible { outline: 3px solid #327aa9; outline-offset: 3px; }
.sd .layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; }
.sd .card { background: white; border: 1px solid #dce3eb; border-radius: 16px; padding: 24px; }
.sd .map { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(6, 50px); gap: 5px; margin: 16px 0; }
.sd .map a { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none;
  padding: 3px; font-size: 12px; line-height: normal; background: #edf4fa; border: 1px solid #d5e4ef; border-radius: 9px; color: #15263f; }
.sd .map a.active { background: #245c83; color: white; }
.sd .map b { display: block; }
.sd .map small { font-size: 10px; color: inherit; }
/* Schematische Anordnung der Länder (Spalte, Zeile) wie im Entwurf */
.sd .l-sh { grid-column: 3; grid-row: 1; } .sd .l-hh { grid-column: 3; grid-row: 2; } .sd .l-ni { grid-column: 2; grid-row: 3; }
.sd .l-hb { grid-column: 2; grid-row: 2; } .sd .l-nw { grid-column: 1; grid-row: 4; } .sd .l-he { grid-column: 2; grid-row: 4; }
.sd .l-rp { grid-column: 1; grid-row: 5; } .sd .l-bw { grid-column: 2; grid-row: 6; } .sd .l-by { grid-column: 4; grid-row: 6; }
.sd .l-sl { grid-column: 1; grid-row: 6; } .sd .l-be { grid-column: 5; grid-row: 3; } .sd .l-bb { grid-column: 4; grid-row: 3; }
.sd .l-mv { grid-column: 4; grid-row: 2; } .sd .l-sn { grid-column: 4; grid-row: 5; } .sd .l-st { grid-column: 3; grid-row: 3; }
.sd .l-th { grid-column: 3; grid-row: 4; }
.sd .sd-karte { display: block; width: 100%; height: auto; margin: 16px 0; }
.sd .topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.sd .topics a { font-size: 14px; line-height: normal; padding: 8px 12px; border: 1px solid #bdc9d7; border-radius: 9px; background: white;
  color: #15263f; text-decoration: none; }
.sd .topics a.active { background: #15263f; color: white; }
.sd .citylist { max-height: 375px; overflow: auto; border-top: 1px solid #dce3eb; list-style: none; margin: 0; padding: 0; }
.sd .citylist li { margin: 0; }
.sd .citylist a { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; text-decoration: none;
  border: 0; border-bottom: 1px solid #e4e9ef; border-radius: 0; padding: 14px 0; background: white; color: #15263f; line-height: normal; }
.sd .citylist small { display: block; }
.sd .citylist b { font-size: 16px; }
.sd .count { font-size: 13px; margin: 0 0 12px; color: #5b6a7d; }
.sd .sd-leer { margin: 14px 0; }
.sd .profile { margin-top: 24px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
.sd .profile h2 a { text-decoration: none; }
.sd .profile h2 a:hover { text-decoration: underline; }
.sd .metrics { display: flex; gap: 30px; margin: 20px 0; }
.sd .metrics strong { display: block; font-size: 28px; line-height: normal; }
.sd .cta { background: #edf4fa; border-radius: 12px; padding: 22px; }
.sd .cta-knopf { display: block; width: 100%; text-align: left; margin-top: 12px; padding: 12px; border: 0; border-radius: 9px;
  background: #fc7400; color: #15263f; font-weight: bold; text-decoration: none; line-height: normal; }
.sd .status { background: #f5f7fa; border: 1px solid #c6d3e0; border-radius: 9px; padding: 12px; }
.sd .method { font-size: 14px; margin-top: 26px; border-top: 1px solid #d4dee9; padding-top: 20px; }
.sd .edb-kruemel ol { margin: 0 0 4px; font-size: 13px; color: #5b6a7d; }
.sd .edb-haftung { font-size: 13px; color: #5b6a7d; border-top: 1px solid #d4dee9; padding-top: 12px; margin-top: 20px; }
.sd .sd-meta { color: #5b6a7d; font-size: 14px; }
/* Stadtübersicht und Themenseite (im Stil des Entwurfs fortgeführt) */
.sd .sd-themenliste, .sd .sd-auswertung { margin-top: 24px; }
.sd .sd-themenliste + .card, .sd .sd-auswertung + .card { margin-top: 24px; }
.sd .sd-thema { padding: 16px 0 4px; border-top: 1px solid #e4e9ef; }
.sd .sd-thema:first-of-type { border-top: 0; padding-top: 0; }
.sd .sd-thema p { margin: 0 0 12px; }
.sd .sd-weitere { max-height: none; }
.sd .sd-auswertung h2 { margin-top: 28px; }
.sd .sd-auswertung h2:first-child { margin-top: 0; }
.sd .sd-grafik { margin: 0 0 8px; }
.sd .sd-grafik svg { display: block; width: 100%; max-width: 560px; height: auto; }
.sd .sd-grafik figcaption { color: #5b6a7d; font-size: 13px; margin-top: 8px; }
.sd .edb-quellen h2 { font-size: 18px; margin-top: 28px; }
.sd .edb-quellen ol { font-size: 14px; }
@media (max-width: 700px) {
  .sd { font-size: 16px; padding: 24px 16px; }
  .sd h1 { font-size: 32px; }
  .sd .layout, .sd .profile { grid-template-columns: 1fr; }
  .sd .search { flex-direction: column; }
  .sd .card { padding: 18px; }
  .sd .map { grid-template-rows: repeat(6, 44px); }
  .sd .citylist { max-height: 270px; }
  .sd .sd-weitere { max-height: none; }
  .sd .metrics { gap: 20px; }
  .sd .metrics strong { font-size: 25px; }
  .sd .profile { gap: 16px; }
  .sd .intro p { margin-bottom: 0; }
}

/* Einstieg auf der Rubrik-Startseite /eulendatenbank (edb-start.html) im Stil des Entwurfs */
.sd-einstieg { color-scheme: light; display: flex; gap: 20px; align-items: center; margin: 24px 0 28px; padding: 24px; background: white;
  border: 1px solid #dce3eb; border-radius: 16px; color: #15263f; font-family: "EDB Source", Arial, sans-serif; font-size: 17px; }
.sd-einstieg img { flex: none; width: 120px; height: auto; }
.sd-einstieg .sd-eyebrow { color: #376d91; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.sd-einstieg h2 { font-family: "EDB Plex", Arial, sans-serif; font-weight: 600; font-size: 25px; line-height: normal; letter-spacing: normal; margin: 4px 0 8px; color: #15263f; }
.sd-einstieg p { line-height: 1.5; margin: 0 0 14px; }
.sd-einstieg-knopf { display: inline-block; padding: 12px; border-radius: 9px; background: #fc7400; color: #15263f; font-weight: bold; text-decoration: none; }
.sd-einstieg-knopf:hover { background: #edf4fa; color: #15263f; }
.sd-einstieg-knopf:focus-visible { outline: 3px solid #327aa9; outline-offset: 3px; }
@media (max-width: 700px) {
  .sd-einstieg { flex-direction: column; align-items: flex-start; padding: 18px; font-size: 16px; }
  .sd-einstieg img { width: 88px; }
}

/* Checkeule-Scores in den Themenkacheln (eulendatenbank_stadtcheck.go) – nur Ergänzung, Gestaltung der Seite unverändert */
.sd .sd-score { margin: 4px 0 12px; }
.sd .sd-score-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; }
.sd .sd-score-zahl { font-size: 24px; font-weight: 700; color: #15263f; }
.sd .sd-score-zahl small { font-size: 13px; font-weight: 400; color: #5b6a7d; margin-left: 2px; }
.sd .sd-score-wort { color: #376d91; font-weight: 600; }
.sd .sd-score-spur { display: block; width: 100%; max-width: 420px; height: 8px; margin: 0 0 10px; }
.sd .sd-score-spur .hg { fill: #e4e9ef; }
.sd .sd-score-spur .vg { fill: var(--g-balken); }
.sd .sd-score-grund { color: #5b6a7d; }
.sd .sd-belege { font-size: 14px; margin: 0 0 12px; }
.sd .sd-belege summary { cursor: pointer; color: #245c83; }
.sd .sd-belege ul { margin: 8px 0 0; padding-left: 18px; }
.sd .sd-belege li { margin-bottom: 6px; }
.sd .sd-score-methodik { margin-top: 24px; font-size: 15px; }
.sd .sd-score-methodik summary { cursor: pointer; color: #245c83; margin: 8px 0; }
.sd .sd-kartenwahl { margin: 12px 0 0; }
/* Themenwahl der Deutschlandkarte nach Bereichen (Owner 18.11.2026: „da fehlen noch etwa 30 andere“) – im Stil der
   Themenknöpfe (.topics a); je Bereich eine wischbare Leiste, Links ?karte=<thema> ohne Skript. */
.sd .sd-kartengruppe { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 8px; margin: 6px 0; }
.sd .sd-bereich { font-size: 13px; font-weight: 600; color: #4b5b70; }
.sd .sd-chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; margin: 0; padding: 2px 2px 6px; scrollbar-width: thin; }
.sd .sd-chips a { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
.sd .sd-chips-gesamt { margin: 0 0 8px; }
.sd .sd-karteninfo { border-top: 1px solid #dce3eb; padding-top: 12px; margin: 0 0 12px; }
.sd .sd-karteninfo h3 { font-size: 17px; margin: 0 0 4px; }
.sd .sd-karteninfo p { margin: 0 0 8px; }
.sd .sd-art { display: block; font-size: 13px; color: #4b5b70; }
.sd .sd-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0 0 10px; padding: 0; font-size: 13px; }
.sd .sd-legende li { display: flex; align-items: center; gap: 6px; margin: 0; }
.sd .sd-legende small { color: #4b5b70; }
.sd .sd-punkt { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #3a3936; }
.sd .sd-stufe-0 { background: #bf4a2c; } .sd .sd-stufe-1 { background: #f6a54a; } .sd .sd-stufe-2 { background: #f7dc8c; }
.sd .sd-stufe-3 { background: #4aa883; } .sd .sd-stufe-4 { background: #07473b; } /* wie karten.ScoreFarben */
.sd .sd-punkt-ohne { background: #d6d5d0; width: 8px; height: 8px; }
.sd .sd-methodik { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 10px; margin: 0; font-size: 13px; }
.sd .sd-methodik dt { font-weight: 600; }
.sd .sd-methodik dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .sd .sd-kartengruppe { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Stadtkarte je Stadt (eulendatenbank_stadtkarte.go) – nur Ergänzung, Gestaltung der Seite unverändert */
.sd .sd-stadtkarte, .sd .sd-stadtkarte + .card { margin-top: 24px; }
.sd .sd-stadtkarte .sd-karte { max-width: 680px; }
.sd .sd-reiseziele { margin: 0 0 12px; padding-left: 22px; }
.sd .sd-reiseziele li { margin-bottom: 4px; }

/* Städteliste des Einstiegs in Seiten zu je 5 (Owner 18.11.2026) – nur Ergänzung im Stil des Entwurfs: fünf Einträge
   ohne inneren Rollbalken, Seitenleiste wie die Themenknöpfe (.topics a). */
.sd #sd-liste { max-height: none; overflow: visible; }
.sd .sd-seiten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0; }
.sd .sd-seiten-nr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sd .sd-seiten a { font-size: 14px; line-height: normal; padding: 8px 12px; min-width: 20px; text-align: center; border: 1px solid #bdc9d7;
  border-radius: 9px; background: white; color: #15263f; text-decoration: none; }
.sd .sd-seiten a:hover { border-color: #225b88; background: #edf4fa; }
.sd .sd-seiten a.active { background: #15263f; color: white; border-color: #15263f; }
.sd .sd-seiten-nr > span { color: #5b6a7d; padding: 0 2px; }
.sd .sd-seiten a[rel="next"] { margin-left: auto; }
@media (max-width: 700px) {
  /* Handy: Zurück und Weiter in einer Zeile, die Seitennummern darunter */
  .sd .sd-seiten-nr { order: 3; width: 100%; justify-content: center; }
  .sd .sd-seiten a { padding: 8px 10px; }
}

/* Karte zum Anklicken und Vergrößern, Pfeile an den Themenleisten (Owner 18.11.2026: „Diese Karten will ich per Klick
   vergrößern können und dann auf die Stadt klicken, um die Details zu bekommen. Und die Scores oben, da muss man Pfeile
   dran machen“) – nur Bedienelemente im Stil der Seite (Knöpfe wie .topics a, Fokus wie a:focus-visible); Karte,
   Farben und Aufbau unverändert. Skript: eulendatenbank-karte.js; ohne Skript Link „Karte groß öffnen“, Leisten wischbar. */
.sd #sd-kartenflaeche { cursor: zoom-in; }
.sd #sd-kartenflaeche svg, .sd .sd-kd-inhalt svg { display: block; width: 100%; height: auto; }
.sd .sd-karte a.punkt, .sd .sd-kd-inhalt a.punkt { cursor: pointer; }
.sd .sd-karte a.punkt:focus, .sd .sd-kd-inhalt a.punkt:focus { outline: none; }
.sd .sd-karte a.punkt:hover .fokus, .sd .sd-kd-inhalt a.punkt:hover .fokus { stroke-opacity: .55; }
.sd .sd-karte a.punkt:focus-visible .fokus, .sd .sd-kd-inhalt a.punkt:focus-visible .fokus { stroke-opacity: 1; }
.sd .sd-karte-gross { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -6px 0 14px; font-size: 14px; }
.sd .sd-karte-gross a { color: #245c83; }
.sd .sd-karte-gross button, .sd .sd-kd-knoepfe button { font-size: 14px; line-height: normal; padding: 8px 12px; border: 1px solid #bdc9d7; border-radius: 9px;
  background: white; color: #15263f; }
.sd .sd-kartendialog { box-sizing: border-box; width: calc(100vw - 24px); max-width: 1100px; height: calc(100dvh - 24px); max-height: none; margin: auto;
  padding: 16px; border: 1px solid #dce3eb; border-radius: 16px; background: white; color: #15263f; }
.sd .sd-kartendialog[open] { display: flex; flex-direction: column; gap: 10px; }
.sd .sd-kartendialog::backdrop { background: rgba(21, 38, 63, .55); }
.sd .sd-kd-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.sd .sd-kd-kopf h2 { font-size: 18px; margin: 0; }
.sd .sd-kd-knoepfe { display: flex; align-items: center; gap: 6px; }
.sd .sd-kd-knoepfe button[data-zoom="1"], .sd .sd-kd-knoepfe button[data-zoom="-1"], .sd .sd-kd-zu { min-width: 40px; font-size: 18px; padding: 5px 10px; }
.sd .sd-kd-knoepfe button:disabled { color: #9aa7b6; border-color: #dce3eb; cursor: default; background: white; }
.sd .sd-kd-knoepfe output { min-width: 52px; text-align: center; font-size: 13px; color: #5b6a7d; }
.sd .sd-kd-zu { margin-left: 6px; }
.sd .sd-kd-flaeche { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; border: 1px solid #dce3eb; border-radius: 9px;
  background: white; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.sd .sd-kd-flaeche.zieht { cursor: grabbing; }
.sd .sd-kd-flaeche:focus-visible { outline: 3px solid #327aa9; outline-offset: 2px; }
.sd .sd-kd-inhalt { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.sd .sd-kd-hilfe { margin: 0; }
/* Themenleisten: Pfeile nur bei Überlauf (Skript), am Rand ausgegraut; Randverlauf zeigt weitere Chips an */
.sd .sd-chipsrahmen { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sd .sd-chipsrahmen .sd-chips { flex: 1 1 auto; min-width: 0; }
.sd .sd-pfeil { flex: none; width: 32px; height: 34px; padding: 0; margin: 0 0 4px; font-size: 20px; line-height: 1; border: 1px solid #bdc9d7; border-radius: 9px;
  background: white; color: #15263f; }
.sd .sd-pfeil[hidden] { display: none; }
.sd .sd-pfeil:disabled { color: #bdc9d7; border-color: #e4e9ef; background: white; cursor: default; }
.sd .sd-chipsrahmen.mehr-rechts .sd-chips { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.sd .sd-chipsrahmen.mehr-links .sd-chips { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); }
.sd .sd-chipsrahmen.mehr-links.mehr-rechts .sd-chips { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
@media (max-width: 700px) {
  .sd .sd-kartendialog { width: 100vw; height: 100dvh; max-width: none; border-radius: 0; padding: 12px; border: 0; }
  .sd .sd-kd-kopf h2 { font-size: 16px; width: 100%; }
}
