/* Erscheinungsbild nach dem Corporate Design der CDU Deutschland:
   Cadenabbia-Türkis, Rhöndorf-Blau, Union-Gold; Inter für Überschriften und Bedienung, IBM Plex Serif für Lesetext. */

@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("fonts/IBMPlexSerif-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --tuerkis: #52b7c1;
  --tuerkis-hell: #e3f3f5;
  --blau: #2d3c4b;
  --gold: #ffa600;
  --gold-hell: #fff3d9;
  --rot: #bf111b;
  --grund: #f5f5f5;
  --flaeche: #ffffff;
  --linie: #d9dee3;
  --text: #2d3c4b;
  --text-leise: #5b6875;
  --link: #1f6f79;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--blau); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-weight: 800; line-height: 1.2; color: var(--blau); text-wrap: balance; }
h1 { font-size: 1.6rem; margin: 0 0 .6rem; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; margin: 0 0 .7rem; }
h3 { font-size: 1rem; margin: 1.4rem 0 .6rem; }
p { margin: 0 0 .8rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--grund); padding: .1em .3em; border-radius: 3px; }
mark { background: var(--gold-hell); color: inherit; padding: 0 .1em; border-bottom: 2px solid var(--gold); }

.kopf { background: var(--flaeche); border-bottom: 4px solid var(--tuerkis); }
.kopf-innen { max-width: 1080px; margin: 0 auto; padding: .7rem 16px; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; }
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--blau); }
.marke img { display: block; height: 30px; width: auto; }
.marke-text { display: flex; flex-direction: column; line-height: 1.1; border-left: 1px solid var(--linie); padding-left: .7rem; }
.marke-ort { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); }
.marke-name { font-weight: 800; font-size: 1rem; }
.nav { display: flex; flex-wrap: wrap; gap: .2rem .3rem; flex: 1 1 auto; }
.nav a { text-decoration: none; color: var(--blau); font-weight: 600; padding: .35rem .6rem; border-radius: var(--radius); }
.nav a:hover { background: var(--tuerkis-hell); }
.nav a.an { background: var(--blau); color: #fff; }
.abmelden { display: flex; align-items: center; gap: .6rem; margin: 0; }
.wer { font-size: .85rem; color: var(--text-leise); }

.haupt { max-width: 1080px; margin: 0 auto; padding: 1.4rem 16px 2.5rem; }
.fuss { max-width: 1080px; margin: 0 auto; padding: 0 16px 2rem; color: var(--text-leise); font-size: .8rem; }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0 0 1.1rem; }
.karte-gold { border-left: 6px solid var(--gold); }
.schmal { max-width: 440px; margin: 2rem auto; }
.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; align-items: start; }
.spalten .karte { margin: 0; }

/* Überschrift auf Balken wie im CD-Manual: Weiß auf Rhöndorf-Blau */
.held { background: var(--tuerkis); border-radius: var(--radius); padding: 1.6rem 1.2rem 1.1rem; margin: 0 0 1.1rem; }
.held h1 { display: inline; background: var(--blau); color: #fff; padding: .12em .4em; -webkit-box-decoration-break: clone; box-decoration-break: clone; font-size: 1.7rem; line-height: 1.5; }
.held .suchzeile { margin-top: 1.1rem; }
.held .klein { color: var(--blau); margin: .8rem 0 0; }
.zahl { display: inline-block; margin-right: 1.1rem; }

.suchzeile { display: flex; gap: .5rem; }
.suchzeile input { flex: 1 1 auto; min-width: 0; }
.suchformular { margin: 0 0 1rem; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .6rem; font-size: .85rem; color: var(--text-leise); }
.filter label { display: flex; align-items: center; gap: .35rem; }
.filter input[type=number] { width: 5.5rem; }

input[type=text], input[type=search], input[type=password], input[type=number], input[type=date], select, textarea {
  font: inherit; color: var(--text); background: #fff; border: 1px solid #9aa5b1; border-radius: var(--radius); padding: .5rem .6rem; max-width: 100%;
}
textarea { width: 100%; resize: vertical; }
.formular { display: grid; gap: .45rem; margin: 0 0 .8rem; }
.formular label { font-weight: 600; font-size: .9rem; }
.formular input[type=text], .formular input[type=password] { width: 100%; }
.formular .knopf { justify-self: start; margin-top: .4rem; }
.formular-breit .reihe { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; }
.formular-breit .reihe label { display: grid; gap: .25rem; }
.formular-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: 0; }
.formular-zeile .knopf { margin: 0; }
label.haken { display: flex !important; align-items: center; gap: .35rem; font-weight: 400; }
.adresse { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; background: var(--grund); }

.knopf { display: inline-block; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--blau); color: #fff; border: 1px solid var(--blau); border-radius: var(--radius); padding: .5rem .95rem; }
.knopf:hover { background: #1f2a35; color: #fff; }
.knopf-leise { background: #fff; color: var(--blau); border-color: #9aa5b1; padding: .35rem .7rem; font-size: .9rem; }
.knopf-leise:hover { background: var(--tuerkis-hell); color: var(--blau); }
.knopf-rot { background: #fff; color: var(--rot); border-color: var(--rot); font-size: .9rem; padding: .35rem .7rem; }
.knopf-rot:hover { background: var(--rot); color: #fff; }

.klein { font-size: .85rem; color: var(--text-leise); }
.nowrap { white-space: nowrap; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pfad { font-size: .85rem; color: var(--text-leise); margin-bottom: .5rem; }
.meldung, .hinweis, .fehler { border-radius: var(--radius); padding: .7rem .9rem; }
.meldung { background: var(--tuerkis-hell); border-left: 6px solid var(--tuerkis); }
.hinweis { background: var(--flaeche); border: 1px solid var(--linie); color: var(--text-leise); }
.fehler { background: #fbe9ea; border-left: 6px solid var(--rot); }

.etikett { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; background: var(--tuerkis-hell); color: var(--blau); border-radius: 3px; padding: .1rem .4rem; }
.etikett-gold { background: var(--gold-hell); }
.marke-rot { font-size: .75rem; font-weight: 600; color: var(--rot); text-transform: uppercase; }
.nummer { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; }
.ampel { font-size: .8rem; font-weight: 600; color: var(--text-leise); }
.ampel-gut { color: #1c7a43; }
.ampel-schlecht { color: var(--rot); }

.liste { list-style: none; margin: 0 0 .8rem; padding: 0; }
.liste li { display: grid; grid-template-columns: 6.6rem 1fr; gap: .8rem; padding: .55rem 0; border-top: 1px solid var(--linie); }
.liste li:first-child { border-top: 0; }
.liste-eng li { grid-template-columns: auto 1fr; align-items: baseline; }
.liste li > span { min-width: 0; overflow-wrap: anywhere; }
.datum { font-size: .82rem; color: var(--text-leise); font-variant-numeric: tabular-nums; }

.treffer { list-style: none; margin: 0; padding: 0; }
.treffer li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 0 0 .7rem; }
.treffer-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .35rem; }
.treffer-titel { font-size: 1.02rem; font-weight: 600; margin: 0 0 .35rem; }
.ausschnitt { font-family: "IBM Plex Serif", Georgia, serif; font-size: .95rem; margin: 0 0 .4rem; overflow-wrap: anywhere; }
.blaettern { display: flex; align-items: center; gap: .8rem; margin: 1rem 0; }

.tabellenrahmen { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabelle th { text-align: left; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-leise); font-weight: 600; padding: .3rem .6rem .3rem 0; border-bottom: 2px solid var(--blau); }
.tabelle td { vertical-align: top; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--linie); }
.tabelle tr:last-child td { border-bottom: 0; }

.lesetext { font-family: "IBM Plex Serif", Georgia, serif; font-size: 1rem; line-height: 1.6; max-width: 46rem; overflow-wrap: anywhere; }
.seitenmarke { font-family: "Inter", system-ui, sans-serif; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-leise); border-top: 1px solid var(--linie); padding-top: .5rem; margin-top: 1.2rem; }
.seitenmarke:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

@media (max-width: 640px) {
  h1 { font-size: 1.35rem; }
  .held h1 { font-size: 1.35rem; }
  .abmelden .wer { display: none; }
  .liste li { grid-template-columns: 5.6rem 1fr; }
  .suchzeile { flex-direction: column; }
}
@media print {
  .kopf, .fuss, .suchformular, .blaettern, .abmelden { display: none; }
  body { background: #fff; }
  .karte { border: 0; padding: 0; }
}
