/* EGControl Verwaltung — Mitgliederportal (M14, 25.09.2026). Mobil zuerst, dieselben Token wie verwaltung.css (Petrol, Grün, Slate).
   Barrierefreiheit (WCAG 2.1 AA, Grundlagen): Kontrast ≥ 4,5:1 für Text (Petrol-Tief auf Weiß, Signalfarben „-tief“), sichtbarer Fokus,
   Sprunglink, Beschriftungen an jedem Feld, Tabellen werden auf dem Handy zu Karten (Spaltentitel aus data-titel).
   CSP: keine Inline-Stile, kein JavaScript — alles über Klassen. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/inter-variable.woff2") format("woff2"); }

:root {
  --petrol: #0399a7; --petrol-tief: #017280; --petrol-hell: #e6f5f6;
  --gruen: #56c271; --gruen-tief: #2e8a49; --gruen-hell: #e8f7ec;
  --amber: #f59e0b; --amber-tief: #b45309; --amber-hell: #fdf3e0;
  --rot: #dc2626; --rot-tief: #991b1b; --rot-hell: #fdeaea;
  --slate: #0a2730; --slate-2: #123a47;
  --text: #1f2933; --text-weich: #34414c; --mute: #5b6470;
  --linie: #d9e2e8; --linie-weich: #eef2f5;
  --flaeche: #f4f7f9; --karte: #ffffff; --karte-alt: #f8fafb;
  --radius: 8px; --radius-klein: 6px;
  --schatten: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --fokus: 0 0 0 3px #fff, 0 0 0 5px var(--petrol-tief);
  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--schrift); color: var(--text); background: var(--flaeche); line-height: 1.55; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--petrol-tief); text-underline-offset: .15em; }
a:hover { color: var(--slate); }
:focus-visible { outline: none; box-shadow: var(--fokus); border-radius: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; font-weight: 700; margin-bottom: 1rem; color: var(--slate); }
b, strong { font-weight: 600; }
small { font-size: .85rem; color: var(--mute); }
p { margin: 0 0 .75rem; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: 0 0 auto; }
.symbole { display: none; }
.unsichtbar { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprung { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--karte); color: var(--petrol-tief); padding: .6rem 1rem; border-radius: var(--radius-klein); font-weight: 600; }
.sprung:focus { left: .5rem; }

/* ---------- Kopf und Menü ---------- */
.kopf { background: var(--slate); color: #eef3f5; }
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; max-width: 64rem; margin: 0 auto; }
.marke { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; min-width: 0; }
.marke:hover { color: #fff; }
.marke img { width: 32px; height: 32px; border-radius: 6px; background: #fff; flex: none; }
.marke b { display: block; font-size: .98rem; }
.marke small { display: block; color: #b9c7cf; font-size: .78rem; }
.abmelden { margin: 0; }
.menue { display: flex; gap: .15rem; overflow-x: auto; padding: 0 .5rem; max-width: 64rem; margin: 0 auto; scrollbar-width: thin; }
.menue a { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem .75rem; color: #c9d5db; text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.menue a:hover { color: #fff; }
.menue a.aktiv { color: #fff; border-bottom-color: var(--petrol); }
.menue a:focus-visible { box-shadow: inset 0 0 0 2px #fff; }

/* ---------- Inhalt ---------- */
.inhalt { flex: 1; width: 100%; max-width: 64rem; margin: 0 auto; padding: 1.25rem 1rem 2rem; }
.inhalt:focus { outline: none; }
.einleitung { color: var(--text-weich); max-width: 46rem; }
.abschnitt { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .75rem; color: var(--slate); }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; box-shadow: var(--schatten); }
.karte > h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; color: var(--slate); }
.karte > h2 small { display: block; font-weight: 400; margin-top: .2rem; }
.karte > :last-child { margin-bottom: 0; }
.karte--schmal { max-width: 30rem; margin-left: auto; margin-right: auto; }
.karte--warn { border-left: 4px solid var(--rot); }
.leerzustand { text-align: center; color: var(--mute); padding: 2rem 1rem; }
.leerzustand .ic { width: 2rem; height: 2rem; opacity: .5; display: block; margin: 0 auto .5rem; }
.leerzustand p { max-width: 34rem; margin: 0 auto; }
.gedaempft { color: var(--mute); }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; letter-spacing: -.01em; overflow-wrap: anywhere; }
.zurueck { display: inline-block; margin-bottom: .5rem; }
.weiter { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }

.angaben { display: grid; grid-template-columns: 1fr; gap: .1rem; margin: 0; }
.angaben dt { color: var(--mute); font-size: .85rem; margin-top: .5rem; }
.angaben dt:first-child { margin-top: 0; }
.angaben dd { margin: 0; overflow-wrap: anywhere; }
.angaben dd small { display: block; margin-top: .15rem; }

.hinweis { padding: .75rem 1rem; border-radius: var(--radius-klein); border-left: 4px solid var(--petrol); background: var(--petrol-hell); color: var(--slate); margin-bottom: .75rem; }
.hinweis a { color: var(--petrol-tief); font-weight: 600; }
.hinweis--warn { border-left-color: var(--amber); background: var(--amber-hell); }
.hinweis--rot { border-left-color: var(--rot); background: var(--rot-hell); color: var(--rot-tief); }
.hinweis--gruen { border-left-color: var(--gruen-tief); background: var(--gruen-hell); color: #1d5c30; }

.abz { display: inline-flex; align-items: center; padding: .12rem .55rem; border-radius: 999px; background: #e5e9ed; color: #34414c; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.abz--petrol { background: var(--petrol-hell); color: var(--petrol-tief); }
.abz--gruen { background: var(--gruen-hell); color: #1d5c30; }
.abz--amber { background: var(--amber-hell); color: #8a3f06; }
.abz--rot { background: var(--rot-hell); color: var(--rot-tief); }

.kennzahlen { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-bottom: 1rem; }
.kz { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: .8rem 1rem; border-left: 4px solid var(--petrol); }
.kz b { display: block; font-size: 1.35rem; font-weight: 700; color: var(--slate); font-variant-numeric: tabular-nums; }
.kz span { display: block; color: var(--mute); font-size: .85rem; }
.kz--warn { border-left-color: var(--amber); } .kz--warn b { color: var(--amber-tief); }

/* Zählpunkt-Karten der Übersicht */
.zp-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .6rem; }
.zp-kopf .mono { display: block; font-weight: 600; color: var(--slate); }
.zp-kopf small { display: block; }
.teilnahmen { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .1rem; }
.teilnahmen li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .75rem; padding: .5rem 0; border-top: 1px solid var(--linie-weich); }
.teilnahmen li > span { display: flex; flex-direction: column; gap: .15rem; }
.teilnahmen li > span:last-child { align-items: flex-start; }

/* ---------- Formulare und Knöpfe ---------- */
.formular { display: grid; gap: .4rem; max-width: 34rem; margin-bottom: 1rem; }
.formular label:not(.auswahl) { font-weight: 600; font-size: .92rem; color: var(--text-weich); margin-top: .4rem; }
.formular small { color: var(--mute); }
.formular .knopf { justify-self: start; margin-top: .5rem; }
.formular .hinweis { margin: .3rem 0 0; }
.feld { width: 100%; border: 1px solid #aab7c1; border-radius: var(--radius-klein); padding: .65rem .75rem; font: inherit; font-size: 1rem; background: var(--karte); color: var(--text); min-height: 2.75rem; }
.feld:focus { outline: none; border-color: var(--petrol-tief); box-shadow: 0 0 0 3px rgba(1, 114, 128, .25); }
textarea.feld { resize: vertical; min-height: 8rem; }
.auswahl { display: flex; gap: .6rem; align-items: flex-start; margin-top: .6rem; cursor: pointer; }
.auswahl input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--petrol-tief); flex: none; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.75rem; padding: .6rem 1.1rem; border-radius: var(--radius-klein); border: 1px solid var(--petrol-tief); background: var(--petrol-tief); color: #fff; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.knopf:hover { background: var(--slate-2); border-color: var(--slate-2); color: #fff; }
.knopf--rahmen { background: var(--karte); color: var(--text); border-color: #aab7c1; }
.knopf--rahmen:hover { background: var(--flaeche); color: var(--text); border-color: #8795a1; }
.knopf--rot { background: var(--rot-tief); border-color: var(--rot-tief); color: #fff; }
.knopf--rot:hover { background: #7a1515; border-color: #7a1515; }
.knopf--leise { background: transparent; border-color: rgba(255, 255, 255, .35); color: #eef3f5; min-height: 2.5rem; padding: .4rem .8rem; font-size: .88rem; }
.knopf--leise:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.aktionen { display: flex; flex-wrap: wrap; gap: .6rem; margin: .75rem 0; }

/* ---------- Tabellen: auf dem Handy Karten, ab 48rem echte Tabelle ---------- */
.tabelle-rahmen { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle .zahl { font-variant-numeric: tabular-nums; }
.tabelle td small { display: block; }
.tabelle--karten thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tabelle--karten tr { display: block; padding: .6rem 0; border-top: 1px solid var(--linie); }
.tabelle--karten tr:first-child { border-top: 0; }
.tabelle--karten td { display: grid; grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr); gap: .75rem; padding: .2rem 0; overflow-wrap: anywhere; }
.tabelle--karten td > * { min-width: 0; }
.tabelle--karten td > .abz { justify-self: start; }
.tabelle--karten td { hyphens: auto; }
.tabelle--karten td::before { content: attr(data-titel); color: var(--mute); font-size: .85rem; }
.tabelle tr.storniert td { color: var(--mute); }
.dok-link { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; min-height: 2rem; }

/* Anteil als Balken: <meter> statt Breite per Inline-Stil (CSP) */
.balken { display: inline-flex; align-items: center; gap: .5rem; width: 100%; max-width: 12rem; }
.balken meter { flex: 1; height: .8rem; min-width: 3rem; -webkit-appearance: none; appearance: none; background: var(--linie-weich); border: 0; border-radius: 999px; }
.balken meter::-webkit-meter-bar { background: var(--linie-weich); border: 0; border-radius: 999px; height: .8rem; }
.balken meter::-webkit-meter-optimum-value, .balken meter::-webkit-meter-suboptimum-value, .balken meter::-webkit-meter-even-less-good-value { background: var(--gruen-tief); border-radius: 999px; }
.balken meter::-moz-meter-bar { background: var(--gruen-tief); border-radius: 999px; }
.balken span { font-variant-numeric: tabular-nums; font-size: .88rem; min-width: 3rem; text-align: right; }

/* Anfragen, Sitzungen, Listen */
.anfragen, .sitzungen { list-style: none; margin: 0; padding: 0; }
.anfragen li, .sitzungen li { padding: .8rem 0; border-top: 1px solid var(--linie-weich); }
.anfragen li:first-child, .sitzungen li:first-child { border-top: 0; padding-top: 0; }
.anfrage-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.anfragen p { margin: .4rem 0 0; overflow-wrap: anywhere; }
.antwort { margin-top: .5rem; padding: .6rem .8rem; background: var(--gruen-hell); border-radius: var(--radius-klein); }
.sitzungen li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; }
.sitzungen small { display: block; }
.sitzungen form { margin: 0; }
.liste { margin: 0; padding-left: 1.2rem; }

/* ---------- Fuß ---------- */
.fuss { border-top: 1px solid var(--linie); background: var(--karte); padding: 1rem; font-size: .9rem; }
.fuss nav { max-width: 64rem; margin: 0 auto .4rem; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.fuss a { color: var(--text-weich); display: inline-block; padding: .2rem 0; }

/* ---------- ab Tablet ---------- */
@media (min-width: 48rem) {
  .inhalt { padding: 1.75rem 1.5rem 3rem; }
  h1 { font-size: 1.6rem; }
  .karte { padding: 1.25rem 1.4rem; }
  .kennzahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .angaben { grid-template-columns: minmax(9rem, 12rem) 1fr; gap: .45rem 1rem; }
  .angaben dt { margin-top: 0; }
  .formular--zeile { max-width: 40rem; }
  .tabelle--karten thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .tabelle--karten tr { display: table-row; padding: 0; border-top: 0; }
  .tabelle--karten td { display: table-cell; padding: .6rem .7rem; border-bottom: 1px solid var(--linie-weich); vertical-align: top; }
  .tabelle--karten td::before { content: none; }
  .tabelle th { text-align: left; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); padding: .55rem .7rem; border-bottom: 1px solid var(--linie); background: var(--karte-alt); white-space: nowrap; }
  .tabelle .zahl { text-align: right; white-space: nowrap; }
  .tabelle--karten td:first-child { white-space: nowrap; }
  .tabelle tr:last-child td { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .kopf, .fuss, .sprung, form { display: none; } body { background: #fff; } .karte { box-shadow: none; } }
