/* Tourenplaner Prototyp nach dem TVO Corporate Design Handbuch 1.1 (vsc_projects/tvo-corporate-design).
   Calibri, sonst Carlito; kein Bree. Text schwarz, Auszeichnungen dunkelblau, Grau nur für Hinweise.
   Spektrum als Akzentfläche, keine Leitthemen-Streifen. Grün und Rot nur als Zustand, nie als Fläche. */
@font-face { font-family: 'Carlito'; font-weight: 400; font-display: swap; src: url('carlito-regular.woff2') format('woff2'); }
@font-face { font-family: 'Carlito'; font-weight: 700; font-display: swap; src: url('carlito-bold.woff2') format('woff2'); }
@font-face { font-family: 'Carlito'; font-style: italic; font-weight: 400; font-display: swap; src: url('carlito-italic.woff2') format('woff2'); }

:root {
    --schrift: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
    --text: #1A1A1A;
    --blau: #0056A3;
    --blau-dunkel: #00427E;
    --hell: #EAF1F8;
    --grau: #6C696A;            /* Verbandsgrau #706D6E, auf Hellblau eine Spur dunkler (WCAG AA) */
    --linie: #D3D1D2;
    --gut: #00933B;
    --schlecht: #CB3811;
    --spektrum: linear-gradient(90deg, #F39346 0%, #F49938 10%, #F6A220 20%, #F0AA0C 30%, #DBAF04 40%, #A7AC18 50%, #53A330 60%, #1B9156 70%, #017B7C 80%, #006499 90%, #0056A3 100%);
    --breite: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--schrift); font-size: 17px; line-height: 1.45; color: var(--text); background: #fff; }
body::before { content: ""; display: block; height: 4px; background: var(--spektrum); }
a { color: var(--blau); }
a:hover { color: var(--blau-dunkel); }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
h1, h2, h3 { color: var(--blau); font-weight: 700; line-height: 1.15; margin: 0 0 .4rem; }
h1 { font-size: clamp(28px, 3.4vw, 42px); }
h2 { font-size: clamp(22px, 2.2vw, 28px); }
h3 { font-size: 19px; }
p { margin: 0 0 .8rem; }
.breit { width: min(var(--breite), calc(100% - 2rem)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .4rem .8rem; z-index: 10; }

/* Kopf: »oberlausitz.« im Kopf (Werkzeug für Partner, Handbuch S. 6) */
.kopf { border-bottom: 1px solid var(--linie); background: #fff; }
.kopf .breit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .8rem 0; }
.marke { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.marke img { height: 32px; width: auto; display: block; }
.marke span { font-weight: 700; font-size: 20px; color: var(--text); }
.marke small { display: block; font-size: 13px; color: var(--grau); font-weight: 400; }
.kopf nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.kopf nav a { font-weight: 700; text-decoration: none; padding: .3rem 0; }
.kopf nav a[aria-current] { border-bottom: 3px solid var(--blau); }
.kopf .wer { display: flex; gap: .6rem; align-items: center; font-size: .92rem; }
.kopf .wer form { margin: 0; }
button.leise { background: none; color: var(--blau); border: 0; padding: 0; font-weight: 400; text-decoration: underline; }
button.leise:hover { background: none; color: var(--blau-dunkel); }
/* Formulare für Anmeldung, Konto, Zugänge, Rückmeldung */
.formular { display: grid; gap: .9rem; max-width: 30rem; margin: 1rem 0 1.5rem; }
.formular label { display: flex; flex-direction: column; gap: .25rem; font-weight: 700; }
.formular input, .formular textarea, .formular select { font: inherit; font-weight: 400; padding: .5rem .6rem; border: 1px solid var(--linie); border-radius: 3px; background: #fff; }
.formular textarea { min-height: 8rem; }
.formular button { justify-self: start; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.meldung { border: 1px solid var(--linie); border-left: 4px solid var(--blau); background: #fff; padding: .8rem 1rem; margin: .8rem 0; }
.meldung.erledigt { border-left-color: var(--gut); }
.meldung .antwort { background: var(--hell); padding: .5rem .8rem; margin-top: .5rem; }
.passwort { font-family: ui-monospace, Menlo, monospace; font-size: 1.1rem; background: var(--hell); padding: .2rem .5rem; }

main { padding: 2rem 0 3rem; }
.akzent { display: block; height: 4px; width: 200px; background: var(--spektrum); margin: .5rem 0 1.2rem; }
.dachzeile { font-weight: 700; font-size: .9rem; color: var(--grau); margin: 0 0 .25rem; }
.lead { font-size: 19px; max-width: 46em; }
.hinweis { color: var(--grau); font-size: .92rem; }
.kasten { background: #fff; border: 1px solid var(--linie); border-left: 4px solid var(--blau); padding: 1rem 1.2rem; border-radius: 3px; }
.kasten.warn { border-left-color: var(--schlecht); }
.flaeche { background: var(--hell); padding: 1.2rem 1.4rem; border-radius: 3px; }

/* Kennzahlen */
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.4rem 0 2rem; }
.zahl { background: var(--hell); border-left: 4px solid var(--blau); padding: 1rem 1.2rem; }
.zahl .gross { font-size: 46px; font-weight: 700; color: var(--blau); line-height: 1; }
.zahl .gross small { font-size: 22px; color: var(--text); font-weight: 400; }
.zahl h3 { margin: .3rem 0 .2rem; color: var(--text); font-size: 18px; }
.balken { display: grid; grid-template-columns: 9.5em 1fr 4.5em; gap: .4rem .6rem; align-items: center; font-size: .95rem; margin-top: .6rem; }
.balken .spur { background: #fff; height: 12px; border: 1px solid var(--linie); }
.balken .spur i { display: block; height: 100%; background: var(--blau); }

/* Auswahl */
form.filter { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: flex-end; margin: .4rem 0 1.2rem; }
form.filter label { display: flex; flex-direction: column; font-weight: 700; font-size: .92rem; gap: .2rem; }
select, button, .knopf { font: inherit; font-size: 1rem; }
select { padding: .45rem .6rem; border: 1px solid var(--linie); border-radius: 3px; background: #fff; min-width: 11em; }
button, .knopf { background: var(--blau); color: #fff; border: 0; border-radius: 3px; padding: .55rem 1.1rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .knopf:hover { background: var(--blau-dunkel); color: #fff; }
.knopf.zart { background: #fff; color: var(--blau); border: 1px solid var(--blau); }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
.szkarte { display: block; border: 1px solid var(--linie); border-left: 4px solid var(--blau); padding: .8rem 1rem; text-decoration: none; color: var(--text); background: #fff; }
.szkarte:hover { background: var(--hell); }
.szkarte strong { color: var(--blau); display: block; }
.marken { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.etikett { font-size: .82rem; background: var(--hell); color: var(--text); padding: .1rem .5rem; border-radius: 2px; }
.etikett.geplant { background: var(--blau); color: #fff; }

/* Szenario */
.merkmale { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 1.4rem; }
.merkmale .etikett { font-size: .95rem; padding: .25rem .7rem; }
.vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.spalte > header { background: var(--hell); padding: .9rem 1.1rem; border-top: 4px solid var(--blau); margin-bottom: 1rem; }
.spalte > header h2 { font-size: 22px; margin: 0; }
.spalte > header p { margin: .2rem 0 0; font-size: .95rem; }
.tour { border: 1px solid var(--linie); margin-bottom: 1.2rem; background: #fff; }
.tour > header { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .7rem 1rem; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.tour > header h3 { margin: 0; color: var(--text); font-size: 17px; }
.urteil { font-weight: 700; padding: .15rem .6rem; border: 2px solid; border-radius: 2px; font-size: .92rem; background: #fff; }
.urteil.gut { color: var(--gut); }
.urteil.schlecht { color: var(--schlecht); }
.urteil.offen { color: var(--blau); }
.karte { height: 230px; border-bottom: 1px solid var(--linie); background: var(--hell); }
.tag { padding: .6rem 1rem .2rem; }
.tag h4 { margin: .2rem 0 .4rem; color: var(--blau); font-size: 16px; }
ol.stationen { list-style: none; margin: 0; padding: 0; }
ol.stationen li { display: grid; grid-template-columns: 4.6em 1.6em 1fr; gap: .2rem .5rem; padding: .45rem 0; border-top: 1px solid #EEEDED; }
ol.stationen li:first-child { border-top: 0; }
.zeit { font-variant-numeric: tabular-nums; font-size: .92rem; color: var(--grau); }
.punkt { width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--blau); color: #fff; font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.punkt.start { background: #fff; border: 2px solid var(--blau); color: var(--blau); }
.station strong { display: block; }
.station .art { display: block; font-size: .88rem; color: var(--grau); }
.angaben { display: block; font-size: .88rem; margin: .2rem 0 0; }
.angaben span { display: inline-block; margin-right: .6rem; }
.mangel { color: var(--schlecht); font-size: .9rem; font-weight: 700; margin: .2rem 0 0; }
.mangel::before { content: "✕ "; }
.ok { color: var(--gut); font-size: .9rem; font-weight: 700; margin: .2rem 0 0; }
.ok::before { content: "✓ "; }
.offen { color: var(--blau); font-size: .9rem; margin: .2rem 0 0; }
.tour footer { padding: .7rem 1rem .9rem; border-top: 1px solid var(--linie); font-size: .92rem; }
.tour footer .grund { font-style: italic; margin: 0 0 .4rem; }
.leer { padding: 1rem; color: var(--grau); }
.planen { margin: 0 0 1.6rem; }

/* Tabelle */
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--linie); }
th { color: var(--blau); }
td.z, th.z { text-align: right; font-variant-numeric: tabular-nums; }

/* Fuß: »tvo.« als Kurzform im Fuß (Handbuch S. 6), Akzentfläche darüber */
.fuss { border-top: 4px solid transparent; border-image: var(--spektrum) 1; margin-top: 2rem; }
.fuss .breit { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0 2rem; align-items: flex-start; }
.fuss p { margin: .2rem 0; color: var(--grau); font-size: .92rem; max-width: 46em; }
.fuss img { height: 40px; width: auto; }
.recht { max-width: 46em; }
.recht pre { font-family: var(--schrift); white-space: pre-wrap; font-size: 1rem; }

@media (max-width: 820px) {
    body { font-size: 16px; }
    .vergleich { grid-template-columns: 1fr; }
    .balken { grid-template-columns: 7.5em 1fr 4em; }
    .zahl .gross { font-size: 38px; }
    main { padding-top: 1.2rem; }
}

/* Kartenpunkte */
.kpunkt { display: flex; width: 26px; height: 26px; border-radius: 50%; background: var(--blau); color: #fff; font: 700 13px/1 var(--schrift); align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--blau); }
.kpunkt.kstart { background: #fff; color: var(--blau); border: 2px solid var(--blau); }
.leaflet-container { font-family: var(--schrift); }

/* Erklärseiten: Unternavigation links, Text rechts */
.erklaer { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.unternav { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .15rem; border-left: 1px solid var(--linie); padding-left: .9rem; }
.unternav a { text-decoration: none; padding: .3rem 0; color: var(--text); }
.unternav a:hover { color: var(--blau); }
.unternav a[aria-current] { color: var(--blau); font-weight: 700; box-shadow: -.9rem 0 0 -.75rem var(--blau); border-left: 4px solid var(--blau); margin-left: calc(-.9rem - 2px); padding-left: calc(.9rem - 2px); }
.text { max-width: 52em; }
.text h2 { margin-top: 2rem; }
.text ul, .text ol { padding-left: 1.3rem; }
.text li { margin: 0 0 .5rem; }
.kasten { margin: 1.2rem 0; }
.kasten p:last-child { margin-bottom: 0; }
.beleg { display: inline-block; font-size: .78rem; font-weight: 700; padding: .05rem .45rem; border-radius: 2px; vertical-align: .1em; border: 1px solid; }
.beleg.belegt { color: var(--gut); }
.beleg.auswertung { color: var(--blau); }
.beleg.offen { color: var(--grau); }
.tabelle { overflow-x: auto; margin: .6rem 0 1rem; }
.tabelle table td { vertical-align: top; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; margin: .6rem 0 .4rem; }
.kacheln .zahl .gross { font-size: 38px; }
.kacheln .zahl p { margin: .4rem 0 0; font-size: .95rem; }
.drei { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; margin: .6rem 0; }
.bausteine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin: .6rem 0; }
.baustein, .drei > div { display: block; border: 1px solid var(--linie); border-left: 4px solid var(--blau); padding: .9rem 1rem; text-decoration: none; color: var(--text); background: #fff; }
a.baustein:hover { background: var(--hell); }
.baustein strong, .drei strong { display: block; color: var(--blau); margin: .2rem 0 .3rem; }
.nr { display: inline-flex; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--blau); color: #fff; font-weight: 700; align-items: center; justify-content: center; font-size: .9rem; }
ol.kette { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; margin: .8rem 0; }
ol.kette li { background: var(--hell); padding: .8rem 1.6rem .8rem .9rem; margin: 0; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
ol.kette li strong { display: block; color: var(--blau); }
ol.kette li span { font-size: .92rem; }
ol.zeitleiste { list-style: none; padding: 0 0 0 1.2rem; border-left: 4px solid transparent; border-image: linear-gradient(180deg, #F39346 0%, #F6A220 20%, #DBAF04 40%, #53A330 60%, #017B7C 80%, #0056A3 100%) 1; margin: .8rem 0 1.2rem; }
ol.zeitleiste li { margin: 0 0 .8rem; }
ol.zeitleiste li strong { display: block; color: var(--blau); }
ol.huerden, ol.hebel { padding-left: 1.4rem; }
ol.huerden li strong, ol.hebel li strong { color: var(--blau); }
ol.huerden li strong { display: block; }
.balkenliste .zeile { display: grid; grid-template-columns: minmax(0, 1fr) 30% 3.5em; gap: .6rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid #EEEDED; }
.balkenliste .spur { background: var(--hell); height: 14px; }
.balkenliste .spur i { display: block; height: 100%; background: var(--blau); }
.balkenliste .z { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
dl.befunde dt, dl.glossar dt { font-weight: 700; color: var(--blau); margin-top: .9rem; }
dl.befunde dd, dl.glossar dd { margin: .2rem 0 0; }
.sieben { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; margin: .6rem 0 1rem; }
.sieben div { background: var(--hell); padding: .7rem .8rem; }
.sieben strong { display: block; color: var(--blau); }
.sieben span { font-size: .9rem; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.weiter { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.4rem; padding-top: 1rem; border-top: 1px solid var(--linie); font-weight: 700; }
.weiter a { text-decoration: none; }
.knoepfe { margin-top: 1.6rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.vortrag-kopf p { max-width: 52em; }

@media (max-width: 820px) {
    .erklaer { grid-template-columns: 1fr; gap: 1rem; }
    .unternav { position: static; flex-direction: row; flex-wrap: wrap; gap: .3rem .9rem; border-left: 0; padding-left: 0; border-bottom: 1px solid var(--linie); padding-bottom: .6rem; }
    .unternav .dachzeile { width: 100%; }
    .unternav a[aria-current] { border-left: 0; margin-left: 0; padding-left: 0; box-shadow: none; border-bottom: 3px solid var(--blau); }
    .zwei, .bausteine { grid-template-columns: 1fr; }
    .balkenliste .zeile { grid-template-columns: minmax(0, 1fr) 25% 3.2em; font-size: .92rem; }
}
