/* textil+mode Terminabfragen – Corporate Design t+m
   weiss, Arial, Ueberschriften #0F3750, Highlights #32AFDC, Boxen #F2F2F2, Links #0070C0
   Gruen/Orange nur fuer Status (Ja / Wenn noetig). */

:root {
  --tm-navy: #0F3750;
  --tm-blue: #32AFDC;
  --tm-link: #0070C0;
  --tm-box: #F2F2F2;
  --tm-green: #78B950;
  --tm-orange: #F59B23;
  --linie: #D9D9D9;
  --grau: #5A5A5A;
  --ja-bg: #E8F3E0;
  --vl-bg: #FDF0DC;
  --rot: #B42318;
  --radius: 6px;
  --grund: #F3F6FA;
  --karte-linie: #E3EAF2;
  --karte-schatten: 0 6px 24px rgba(15, 55, 80, .07);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: #000;
  font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5;
  display: flex; flex-direction: column; min-height: 100vh;
}
h1, h2, h3, h4 { color: var(--tm-navy); font-family: Arial, Helvetica, sans-serif; line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0 0 .5rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
a { color: var(--tm-link); }
a:hover { color: var(--tm-navy); }
p { margin: 0 0 1rem; }
small, .klein { font-size: .875rem; }
.grau { color: var(--grau); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--tm-blue); outline-offset: 2px; }
.versteckt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.abstand-oben { margin-top: 10px; margin-bottom: 0; }
.abstand-null { margin-top: 0; }
.abstand-gross { margin-top: 22px; }
.zentriert { text-align: center; }
.lead { font-size: 1.12rem; }
.feld-schmal { max-width: 360px; }
summary.link-summary { color: var(--tm-link); cursor: pointer; text-decoration: underline; min-height: 44px; display: flex; align-items: center; }

/* ---------- Kopf ---------- */
.kopf { background: transparent; position: relative; z-index: 5; }
.kopf-innen { max-width: 1120px; margin: 0 auto; padding: 14px 24px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marke { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo { height: 40px; width: auto; display: block; }
.marke-name { color: var(--tm-navy); font-weight: bold; font-size: 1.05rem; border-left: 1px solid var(--linie); padding-left: 14px; }
.hauptmenue ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.hauptmenue a, .link-knopf {
  display: inline-block; padding: 10px 12px; color: var(--tm-navy); text-decoration: none;
  font: inherit; font-size: .97rem; border-radius: var(--radius); background: none; border: 0; cursor: pointer; min-height: 44px;
}
.hauptmenue a:hover, .link-knopf:hover { color: var(--tm-blue); }
.link-knopf.klein { min-height: 0; padding: 0; color: var(--tm-link); text-decoration: underline; font-size: inherit; }
.hauptmenue a.aktiv { color: var(--tm-navy); box-shadow: inset 0 -3px 0 var(--tm-blue); border-radius: 0; }
.inline-form { display: inline; margin: 0; }
.menu-knopf { display: none; }
.tm-accent { height: 4px; background: linear-gradient(90deg, var(--tm-blue), var(--tm-green)); }

/* ---------- Seite ---------- */
.seite {
  flex: 1 0 auto; width: calc(100% - 48px); max-width: 1040px; margin: 28px auto 48px; padding: 32px 40px 44px;
  background: #fff; border: 1px solid var(--karte-linie); border-radius: 14px; box-shadow: var(--karte-schatten);
}
.seite.schmal { max-width: 800px; }
.fuss { border-top: 1px solid var(--karte-linie); background: #fff; }
.fuss-innen { max-width: 1120px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .875rem; color: var(--grau); }
.fuss nav { display: flex; gap: 18px; }

/* ---------- Meldungen ---------- */
.meldungen { margin-bottom: 20px; display: grid; gap: 8px; }
.meldung { padding: 12px 16px; border-radius: var(--radius); background: var(--tm-box); border-left: 4px solid var(--tm-blue); }
.meldung-success { border-left-color: var(--tm-green); }
.meldung-error { border-left-color: var(--rot); background: #FBEDEC; }
.meldung-info { border-left-color: var(--tm-orange); }

/* ---------- Knoepfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius);
  font: inherit; font-weight: bold; text-decoration: none; cursor: pointer;
  background: var(--tm-navy); color: #fff; border: 2px solid var(--tm-navy);
}
.knopf:hover { background: #1b4d6c; border-color: #1b4d6c; color: #fff; }
.knopf-hell { background: var(--tm-blue); border-color: var(--tm-blue); }
.knopf-hell:hover { background: #1f97c2; border-color: #1f97c2; }
.knopf-umriss { background: #fff; color: var(--tm-navy); }
.knopf-umriss:hover { background: var(--tm-box); color: var(--tm-navy); }
.knopf-gefahr { background: #fff; color: var(--rot); border-color: var(--rot); }
.knopf-gefahr:hover { background: #FBEDEC; color: var(--rot); border-color: var(--rot); }
.knopf-gross { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.knopf-klein { min-height: 36px; padding: 6px 12px; font-size: .9rem; font-weight: normal; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Boxen ---------- */
.box { background: var(--tm-box); border-radius: var(--radius); padding: 20px 22px; }
.box > :last-child { margin-bottom: 0; }
.box-rand { border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px 22px; background: #fff; }
.box-hinweis { border-left: 4px solid var(--tm-blue); }
.raster-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.raster-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Startseite ---------- */
.held { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding: 18px 0 8px; }
.held h1 { font-size: 2.4rem; margin-bottom: .75rem; }
.held .lead { font-size: 1.15rem; color: #222; max-width: 34em; }
.art-karten { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.art-karte {
  display: block; text-decoration: none; color: #000; background: var(--tm-box); border-radius: var(--radius);
  padding: 20px; border: 2px solid transparent; transition: border-color .15s;
}
.art-karte:hover, .art-karte:focus-visible { border-color: var(--tm-blue); color: #000; }
.art-karte strong { display: block; color: var(--tm-navy); font-size: 1.15rem; margin-bottom: 4px; }
.art-karte span { color: #222; font-size: .95rem; }
.art-karte .pfeil { color: var(--tm-link); font-weight: bold; display: block; margin-top: 10px; }
.held-knoepfe { margin-top: 18px; }
.vorschau { border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px; background: #fff; }
.vorschau h3 { margin-top: 0; }
.vorschau table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.vorschau th, .vorschau td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--linie); }
.vorschau th:first-child, .vorschau td:first-child { text-align: left; }
.schritte { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.schritt { background: var(--tm-box); border-radius: var(--radius); padding: 18px 20px; }
.schritt::before { counter-increment: s; content: counter(s); display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--tm-navy); color: #fff; font-weight: bold; align-items: center; justify-content: center; margin-bottom: 8px; }
.schritt h3 { margin-top: 0; }
.zuletzt ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.zuletzt li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); }

/* ---------- Formulare ---------- */
label { display: block; font-weight: bold; margin-bottom: 6px; color: #000; }
.feld { margin-bottom: 18px; }
.feld .hilfe { font-weight: normal; color: var(--grau); font-size: .875rem; margin-top: 4px; display: block; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], textarea, select {
  width: 100%; font: inherit; padding: 10px 12px; min-height: 44px; border: 1px solid #A6A6A6; border-radius: var(--radius); background: #fff; color: #000;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--tm-blue); outline: 2px solid var(--tm-blue); outline-offset: 0; }
.optional { font-weight: normal; color: var(--grau); font-size: .875rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: normal; padding: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--tm-navy); }
.check strong { display: block; }
.check .hilfe { margin-top: 2px; }
.unterfeld { margin: -4px 0 8px 32px; max-width: 260px; }

.formular-schritt { border-top: 1px solid var(--linie); padding-top: 8px; margin-top: 28px; }
.formular-schritt > h2 { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.formular-schritt > h2 .nr { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--tm-navy); color: #fff; align-items: center; justify-content: center; font-size: .95rem; flex: none; }
.art-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.art-wahl label { margin: 0; cursor: pointer; }
.art-wahl input { position: absolute; opacity: 0; }
.art-wahl .karte { display: block; border: 2px solid var(--linie); border-radius: var(--radius); padding: 16px 18px; background: #fff; font-weight: normal; min-height: 100%; }
.art-wahl .karte strong { display: block; color: var(--tm-navy); font-size: 1.05rem; }
.art-wahl .karte span { color: var(--grau); font-size: .92rem; }
.art-wahl input:checked + .karte { border-color: var(--tm-blue); background: #F2FAFD; box-shadow: inset 0 0 0 1px var(--tm-blue); }
.art-wahl input:focus-visible + .karte { outline: 3px solid var(--tm-blue); outline-offset: 2px; }
.formular-fuss { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--linie); box-shadow: 0 -10px 20px -12px rgba(15, 55, 80, .25); padding: 14px 0; margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; z-index: 3; }

/* Kalender-Auswahl */
.planer { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.kalender { border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px; background: #fff; user-select: none; }
.kal-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kal-kopf strong { color: var(--tm-navy); }
.kal-nav { width: 44px; height: 44px; border: 1px solid var(--linie); background: #fff; border-radius: var(--radius); cursor: pointer; font-size: 1.2rem; color: var(--tm-navy); }
.kal-nav:hover { background: var(--tm-box); }
.kal-raster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.kal-wt { text-align: center; font-size: .78rem; color: var(--grau); padding: 4px 0; font-weight: bold; }
.kal-tag { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: var(--radius); background: #fff; font: inherit; cursor: pointer; color: #000; }
.kal-tag:hover:not(:disabled) { background: var(--tm-box); }
.kal-tag.heute { box-shadow: inset 0 0 0 1px var(--tm-blue); }
.kal-tag.gewaehlt { background: var(--tm-navy); color: #fff; font-weight: bold; }
.kal-tag:disabled { color: #BDBDBD; cursor: default; }
.kal-tag.wochenende:not(.gewaehlt):not(:disabled) { color: var(--grau); }
.kal-leer { aspect-ratio: 1; }
.kal-hinweis { font-size: .85rem; color: var(--grau); margin: 10px 0 0; }
.tagesliste { display: grid; gap: 10px; }
.tag-zeile .knopf-klein { min-height: 44px; }
.tag-zeile { border: 1px solid var(--linie); border-radius: var(--radius); padding: 12px 14px; background: #fff; }
.tag-zeile-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tag-zeile-kopf strong { color: var(--tm-navy); }
.zeiten { display: grid; gap: 8px; margin-top: 10px; }
.zeit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zeit input[type=time] { width: 128px; }
.zeit .bis { color: var(--grau); }
.x-knopf { width: 44px; height: 44px; border: 1px solid var(--linie); background: #fff; border-radius: var(--radius); cursor: pointer; color: var(--grau); font-size: 1.15rem; line-height: 1; flex: none; }
.x-knopf:hover { color: var(--rot); border-color: var(--rot); }
.ganztag { color: var(--grau); font-size: .92rem; }
.leer-hinweis { background: var(--tm-box); border-radius: var(--radius); padding: 22px; color: var(--grau); text-align: center; }
.optionsliste { display: grid; gap: 8px; }
.option-zeile { display: flex; gap: 8px; align-items: center; }
.option-zeile .nr { width: 28px; color: var(--grau); text-align: right; flex: none; }

details.einstellungen { border: 1px solid var(--linie); border-radius: var(--radius); padding: 0 18px; background: #fff; }
details.einstellungen summary { cursor: pointer; padding: 14px 0; font-weight: bold; color: var(--tm-navy); min-height: 44px; }
details.einstellungen[open] summary { border-bottom: 1px solid var(--linie); margin-bottom: 8px; }
.einstellung-gruppe { padding: 6px 0 10px; border-bottom: 1px solid #EEE; }
.einstellung-gruppe:last-child { border-bottom: 0; }
.einstellung-gruppe h3 { font-size: .95rem; margin: 10px 0 2px; }

/* ---------- Abfrage-Seite ---------- */
.abfrage-kopf { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; margin-bottom: 8px; }
.abfrage-kopf h1 { margin-bottom: 6px; overflow-wrap: anywhere; }
.metaliste { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 12px; padding: 0; list-style: none; color: var(--grau); }
.metaliste strong { color: #000; font-weight: normal; }
.beschreibung { white-space: pre-line; max-width: 46em; overflow-wrap: anywhere; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: bold; background: var(--tm-box); color: var(--tm-navy); white-space: nowrap; }
.status-offen { background: #E5F4FA; color: #0b5c79; }
.status-beendet { background: var(--tm-box); color: var(--grau); }
.status-festgelegt { background: var(--ja-bg); color: #3c6b20; }

.verwaltung { background: var(--tm-box); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0 26px; }
.verwaltung h2 { margin: 0 0 10px; font-size: 1.1rem; }
.verwaltung .festlegen { margin: 0 0 16px; padding: 0 0 16px; border-top: 0; border-bottom: 1px solid #DDD; }
.verwaltung .teilen-link { margin-bottom: 14px; max-width: 720px; }
.nebenaktionen { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #DDD; font-size: .92rem; align-items: center; }
.nebenaktionen form { margin: 0; }
.check-klein { padding: 6px 0 0; font-size: .92rem; }
.box-erfolg { border-left: 4px solid var(--tm-green); margin-bottom: 8px; }
.hinweistext { color: #333; }
.nur-schmal { display: none; }
.ergebnis-liste .namen { grid-column: 1 / -1; font-size: .92rem; }
.tages-werkzeuge { margin-bottom: 10px; }
.teilen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.linkfeld label { font-size: .9rem; }
.linkfeld .zeile { display: flex; gap: 8px; }
.linkfeld input { font-size: .9rem; background: #fff; }
.linkfeld .hilfe { font-size: .82rem; color: var(--grau); margin-top: 4px; }

.ergebnis-banner { border: 2px solid var(--tm-green); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0 24px; background: #fff; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.ergebnis-banner .etikett { color: #3c6b20; font-weight: bold; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.ergebnis-banner .wert { color: var(--tm-navy); font-size: 1.35rem; font-weight: bold; }

.antwort-form { margin-top: 10px; }
.optionen { display: grid; gap: 8px; margin: 14px 0 18px; }
.opt {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center;
  border: 1px solid var(--linie); border-radius: var(--radius); padding: 10px 12px; background: #fff;
}
.opt.beste { border-color: var(--tm-blue); box-shadow: inset 4px 0 0 var(--tm-blue); }
.opt.final { border-color: var(--tm-green); box-shadow: inset 4px 0 0 var(--tm-green); }
.opt-datum { text-align: center; background: var(--tm-box); border-radius: var(--radius); padding: 6px 4px; line-height: 1.15; }
.opt-datum .wt { font-size: .78rem; color: var(--grau); text-transform: uppercase; }
.opt-datum .tag { font-size: 1.45rem; font-weight: bold; color: var(--tm-navy); }
.opt-datum .mon { font-size: .8rem; color: #000; }
.opt-datum.nr .tag { font-size: 1.2rem; }
.opt-text { min-width: 0; }
.opt-text .haupt { font-weight: bold; overflow-wrap: anywhere; }
.opt-text .neben { color: var(--grau); font-size: .9rem; }
.tag-titel { font-size: 1rem; margin: 18px 0 8px; color: var(--tm-navy); }
.opt-nr { color: var(--grau); font-weight: normal; margin-right: 4px; }
.opt-text .neben { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.zahl-ja { color: #2f5a17; }
.zahl-vl { color: #8a5300; }
.opt-text .marke-final { display: inline-block; font-size: .75rem; font-weight: bold; color: #fff; background: var(--tm-navy); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.opt-text .marke-beste { display: inline-block; font-size: .75rem; font-weight: bold; color: #0b5c79; background: #E5F4FA; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.balken { height: 6px; background: #EEE; border-radius: 3px; margin-top: 6px; overflow: hidden; display: flex; max-width: 280px; }
.balken .b-ja { background: var(--tm-green); height: 100%; width: 0; }
.balken .b-vl { background: var(--tm-orange); height: 100%; width: 0; }

.wahl { display: inline-flex; border: 1px solid #8C8C8C; border-radius: var(--radius); overflow: hidden; }
.wahl label { margin: 0; font-weight: normal; position: relative; }
.wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl span { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; padding: 6px 10px; font-size: .92rem; cursor: pointer; border-left: 1px solid #D0D0D0; background: #fff; }
.wahl label:first-child span { border-left: 0; }
.wahl input:focus-visible + span { outline: 3px solid var(--tm-blue); outline-offset: -3px; }
.wahl input[value="2"]:checked + span { background: var(--tm-green); color: #fff; font-weight: bold; }
.wahl input[value="1"]:checked + span { background: var(--tm-orange); color: #000; font-weight: bold; }
.wahl input[value="0"]:checked + span { background: var(--tm-navy); color: #fff; font-weight: bold; }
.wahl input:disabled + span { color: #AAA; cursor: not-allowed; background: #F7F7F7; }
.einzelwahl { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: normal; margin: 0; cursor: pointer; padding: 0 6px; }
.einzelwahl input { width: 22px; height: 22px; accent-color: var(--tm-green); }
.ausgebucht { color: var(--rot); font-weight: bold; font-size: .9rem; }

.person { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
.absenden { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

/* Ergebnis-Tabelle */
.tabelle-huelle { position: relative; overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table.matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .92rem; }
.matrix th, .matrix td { padding: 8px 10px; border-bottom: 1px solid var(--linie); text-align: center; white-space: nowrap; }
.matrix thead th { background: #fff; color: var(--tm-navy); font-weight: bold; vertical-align: bottom; }
.matrix thead .monat th { font-size: .8rem; color: var(--grau); font-weight: normal; }
.matrix th.name, .matrix td.name { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 150px; max-width: 220px; white-space: normal; overflow-wrap: anywhere; border-right: 1px solid var(--linie); }
.matrix .kopf-tag { line-height: 1.2; }
.matrix .kopf-tag .wt { display: block; font-size: .75rem; color: var(--grau); font-weight: normal; }
.matrix .kopf-tag .zeit { display: block; font-size: .8rem; color: #000; font-weight: normal; }
.matrix td.ja { background: var(--ja-bg); color: #2f5a17; font-weight: bold; }
.matrix td.vl { background: var(--vl-bg); color: #8a5300; }
.matrix td.nein { color: #9A9A9A; }
.matrix tr.ich td { font-weight: bold; }
.matrix tr.ich td.name { box-shadow: inset 4px 0 0 var(--tm-blue); }
.matrix tfoot td { font-weight: bold; color: var(--tm-navy); background: #FAFAFA; border-bottom: 0; }
.matrix tfoot td.beste { background: #E5F4FA; }
.matrix .summe-vl { display: block; font-size: .75rem; font-weight: normal; color: #8a5300; }
.matrix .tag-grenze { border-left: 1px solid var(--linie); }
.matrix .kopf-text { white-space: normal; min-width: 110px; max-width: 180px; overflow-wrap: anywhere; }
.matrix th.final, .matrix td.final { box-shadow: inset 0 0 0 2px var(--tm-green); }
.matrix .loesch-form { display: inline; }
.loesch-knopf { border: 0; background: none; color: var(--tm-link); min-height: 32px; cursor: pointer; font-size: .82rem; text-decoration: underline; padding: 4px; }
.legende { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--grau); margin: 10px 0 0; }
.legende span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legende .l-ja::before { background: var(--ja-bg); border: 1px solid var(--tm-green); }
.legende .l-vl::before { background: var(--vl-bg); border: 1px solid var(--tm-orange); }
.legende .l-nein::before { background: #fff; border: 1px solid #BBB; }

.eigener-link { margin: 14px 0; }
.kommentare { display: grid; gap: 10px; max-width: 760px; }
.kommentar { background: var(--tm-box); border-radius: var(--radius); padding: 12px 16px; }
.kommentar .wer { font-weight: bold; color: var(--tm-navy); }
.kommentar .wann { color: var(--grau); font-size: .82rem; margin-left: 8px; }
.kommentar p { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.kommentar-form { max-width: 760px; margin-top: 12px; }

/* Werkzeugleiste Verwaltung */
.werkzeuge { display: flex; flex-wrap: wrap; gap: 8px; }
.werkzeuge form { margin: 0; }
.festlegen { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid #DDD; }
.festlegen .feld { margin: 0; flex: 1 1 260px; }

/* ---------- Meine Abfragen ---------- */
.liste-kopf { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.liste-kopf h1 { margin: 0; }
.filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.reiter { display: inline-flex; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.reiter button { border: 0; background: #fff; padding: 8px 14px; min-height: 44px; font: inherit; cursor: pointer; color: var(--tm-navy); border-left: 1px solid var(--linie); }
.reiter button:first-child { border-left: 0; }
.reiter button[aria-pressed=true] { background: var(--tm-navy); color: #fff; font-weight: bold; }
.filter input[type=search] { font: inherit; padding: 10px 12px; min-height: 44px; border: 1px solid #A6A6A6; border-radius: var(--radius); flex: 1 1 220px; max-width: 360px; }
.polls { display: grid; gap: 10px; }
.poll-karte { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; align-items: center; border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 18px; background: #fff; }
.poll-karte:hover { border-color: var(--tm-blue); }
.poll-karte h3 { margin: 0 0 4px; font-size: 1.08rem; overflow-wrap: anywhere; }
.poll-karte h3 a { color: var(--tm-navy); text-decoration: none; }
.poll-karte h3 a:hover { text-decoration: underline; }
.poll-karte .daten { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--grau); font-size: .9rem; }
.poll-karte .aktionen { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.poll-karte .aktionen form { margin: 0; }
.leer { background: var(--tm-box); border-radius: var(--radius); padding: 30px; text-align: center; }

/* ---------- Konto ---------- */
.konto-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.code-feld { font-size: 1.4rem !important; letter-spacing: .3em; text-align: center; max-width: 220px; }
.auth { max-width: 460px; margin: 0 auto; }
.auth .box-rand { padding: 26px; }
.trenner { text-align: center; color: var(--grau); margin: 18px 0; font-size: .9rem; }

/* ---------- Admin ---------- */
table.daten { border-collapse: collapse; width: 100%; font-size: .9rem; }
table.daten th, table.daten td { text-align: left; padding: 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.daten th { color: var(--tm-navy); }
.kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.kennzahl { background: var(--tm-box); border-radius: var(--radius); padding: 14px 18px; }
.kennzahl b { display: block; font-size: 1.6rem; color: var(--tm-navy); }

.faq details { border-bottom: 1px solid var(--linie); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: bold; color: var(--tm-navy); padding: 10px 0; min-height: 44px; }
.faq details p { margin-top: 4px; }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
  .menu-knopf { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--linie); background: #fff; border-radius: var(--radius); font: inherit; color: var(--tm-navy); cursor: pointer; }
  .hauptmenue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linie); box-shadow: 0 8px 16px rgba(0,0,0,.06); }
  .hauptmenue.offen { display: block; }
  .hauptmenue ul { flex-direction: column; align-items: stretch; padding: 8px 16px 14px; }
  .hauptmenue a, .link-knopf { display: block; width: 100%; text-align: left; }
  .hauptmenue a.aktiv { box-shadow: inset 4px 0 0 var(--tm-blue); }
}
@media (max-width: 900px) {
  .held { grid-template-columns: 1fr; gap: 24px; }
  .planer { grid-template-columns: 1fr; }
  .kalender { max-width: 420px; }
  .schritte, .raster-3 { grid-template-columns: 1fr; }
  .teilen { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .kopf-innen { padding: 10px 16px; position: relative; }
  .logo { height: 30px; }
  .marke-name { font-size: .92rem; padding-left: 10px; }
  .seite { padding: 20px 16px 48px; }
  h1, .held h1 { font-size: 1.6rem; }
  .art-karten, .art-wahl, .raster-2, .person, .konto-raster, .kennzahlen { grid-template-columns: 1fr; }
  .abfrage-kopf { grid-template-columns: 1fr; }
  .opt { grid-template-columns: minmax(0, 1fr); }
  .opt .wahl { display: flex; }
  .opt .wahl label { flex: 1; }
  .opt .wahl span { width: 100%; min-width: 0; }
  .poll-karte { grid-template-columns: 1fr; }
  .poll-karte .aktionen { justify-content: flex-start; }
  .formular-fuss .knopf { flex: 1; }
  .zeit input[type=time] { width: 110px; }
}
@media (max-width: 640px) {
  .nur-breit { display: none; }
  .nur-schmal { display: block; }
}
@media (max-width: 420px) {
  .marke-name { display: none; }
}


/* ---------- Buehne oben (Motiv aus der Designvorlage) ---------- */
.buehne {
  position: relative; border-bottom: 1px solid var(--karte-linie);
  background:
    linear-gradient(90deg, #EEF4FB 0%, rgba(238,244,251,.92) 34%, rgba(238,244,251,0) 62%),
    #E4EEF9 url("../img/baender-1672.webp") right 30% / cover no-repeat;
}
.buehne:not(.buehne-gross) { min-height: 150px; background-position: 0 0, right 18%; }
.buehne-text { max-width: 1120px; margin: 0 auto; padding: 26px 24px 64px; }
.rubrik { display: inline-block; margin: 0 0 14px; color: #0070C0; font-size: .9rem; font-weight: bold; letter-spacing: .28em; text-transform: uppercase; }
.rubrik::after { content: ""; display: block; width: 38px; height: 3px; margin-top: 8px; background: var(--tm-orange); border-radius: 2px; }
.buehne h1 { font-size: 3rem; letter-spacing: -.01em; margin: 0 0 14px; max-width: 14em; }
.unterzeile { font-size: 1.2rem; color: #22384A; max-width: 30em; margin: 0; }

/* ---------- Karten im Stil einer Terminliste ---------- */
.seite.seite-start { max-width: 1120px; background: none; border: 0; box-shadow: none; padding: 0 0 24px; }
.schritt-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.schritt-karte, .poll-karte {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 28px;
  background: #fff; border: 1px solid var(--karte-linie); border-radius: 14px; box-shadow: var(--karte-schatten); padding: 20px 28px 20px 22px;
}
.schritt-karte::after, .poll-karte::after {
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 460px; height: 150px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--ton-hauch, rgba(50,175,220,.16)), transparent); pointer-events: none; transform: rotate(-8deg);
}
.schritt-karte > *, .poll-karte > * { position: relative; z-index: 1; }
.kachel {
  width: 104px; min-height: 96px; border-radius: 12px; background: var(--ton-flaeche); color: var(--ton-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.kachel .zahl { font-size: 2.6rem; font-weight: bold; line-height: 1; }
.kachel .wort { font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; margin-top: 8px; }
.marke-chip { display: inline-block; font-size: .75rem; font-weight: bold; letter-spacing: .08em; text-transform: uppercase; color: var(--ton-text); background: var(--ton-flaeche); border-radius: 999px; padding: 3px 10px; margin-bottom: 6px; }
.schritt-mitte { border-left: 1px solid var(--karte-linie); padding-left: 28px; }
.schritt-mitte h3 { margin: 0 0 4px; font-size: 1.3rem; color: var(--tm-navy); }
.schritt-mitte p { margin: 0; color: #333; }
.schritt-aktion { display: flex; flex-direction: column; gap: 10px; min-width: 230px; }
.knopf-pfeil { justify-content: space-between; }
.knopf-pfeil::after { content: "→"; margin-left: 14px; font-weight: normal; }
.ton-blau { --ton-flaeche: #E1EEFA; --ton-text: #0F3750; --ton-hauch: rgba(50, 175, 220, .22); }
.ton-orange { --ton-flaeche: #FDEBD6; --ton-text: #7A3E06; --ton-hauch: rgba(245, 155, 35, .22); }
.ton-gruen { --ton-flaeche: #E5F2DC; --ton-text: #33601A; --ton-hauch: rgba(120, 185, 80, .24); }
.ton-grau { --ton-flaeche: #EEF1F4; --ton-text: #4A5560; --ton-hauch: rgba(90, 110, 130, .12); }
.seite-start .zuletzt { margin-top: 28px; }
.seite-start .zuletzt h2 { font-size: 1.15rem; }
.start-fuss { margin-top: 22px; color: #333; }

/* Meine Abfragen: gleiche Karten */
.poll-karte { padding: 16px 24px 16px 18px; }
.poll-karte .kachel { width: 88px; min-height: 84px; }
.poll-karte .kachel .zahl { font-size: 2.1rem; }
.poll-karte .kachel .wort { letter-spacing: .16em; }
.poll-karte .poll-mitte { border-left: 1px solid var(--karte-linie); padding-left: 24px; }
.poll-karte:hover { border-color: #C9D9EA; }
.poll-karte h3 { font-size: 1.15rem; }
.reiter { border: 0; gap: 10px; flex-wrap: wrap; overflow: visible; }
.reiter button { border: 1px solid var(--karte-linie); background: #fff; border-radius: 999px; padding: 8px 18px; }
.reiter button:first-child { border-left: 1px solid var(--karte-linie); }
.reiter button[aria-pressed=true] { background: var(--tm-navy); border-color: var(--tm-navy); }

@media (max-width: 760px) {
  .buehne h1 { font-size: 2rem; }
  .unterzeile { font-size: 1.05rem; }
  .buehne-text { padding: 14px 16px 40px; }
  .buehne { background-position: 0 0, 70% 30%; }
  .buehne:not(.buehne-gross) { min-height: 96px; }
  .seite { width: calc(100% - 16px); margin: 14px auto 24px; padding: 20px 16px 28px; }
  .seite.seite-start { width: calc(100% - 16px); padding: 0 0 20px; }
  .schritt-karte, .poll-karte { grid-template-columns: auto 1fr; gap: 12px 16px; padding: 16px; }
  .kachel, .poll-karte .kachel { width: 64px; min-height: 64px; border-radius: 10px; }
  .kachel .zahl, .poll-karte .kachel .zahl { font-size: 1.7rem; }
  .kachel .wort, .poll-karte .kachel .wort { font-size: .6rem; letter-spacing: .12em; margin-top: 4px; }
  .schritt-mitte, .poll-karte .poll-mitte { border-left: 0; padding-left: 0; }
  .schritt-aktion, .poll-karte .aktionen { grid-column: 1 / -1; min-width: 0; }
  .schritt-mitte h3 { font-size: 1.12rem; }
}

/* Nachbesserung Runde 2 */
.hauptmenue ul { background: rgba(255, 255, 255, .88); border: 1px solid rgba(255, 255, 255, .9); border-radius: 999px; padding: 4px 8px; box-shadow: 0 4px 16px rgba(15, 55, 80, .08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.buehne h1 { max-width: 20em; }
.unterzeile { max-width: 36em; }
.buehne-mittel .buehne-text { padding-bottom: 44px; }
.buehne-mittel h1 { font-size: 2.4rem; }
.seite.seite-liste { max-width: 1120px; background: none; border: 0; box-shadow: none; padding: 0 0 24px; }
.seite-liste .filter { margin-bottom: 18px; }
.filter-neu { margin-left: auto; }
.seite-liste .polls { gap: 14px; }
.seite-liste .leer { background: #fff; border: 1px solid var(--karte-linie); border-radius: 14px; box-shadow: var(--karte-schatten); }
@media (max-width: 760px) {
  .hauptmenue ul { background: #fff; border-radius: 0; box-shadow: none; border: 0; padding: 8px 16px 14px; }
  .buehne-mittel h1 { font-size: 1.8rem; }
  .seite.seite-liste { width: calc(100% - 16px); padding: 0 0 20px; }
  .filter-neu { margin-left: 0; width: 100%; }
}

/* Nachbesserung Runde 3 */
.buehne-mittel .buehne-text { padding-top: 18px; }
.zurueck { margin: 0 0 10px; }
.zurueck a { color: var(--tm-navy); }
.abfrage-titel { overflow-wrap: anywhere; }
.buehne-meta { margin: 0; color: #22384A; align-items: center; font-size: 1.02rem; }
.buehne-meta strong { color: #0F3750; font-weight: bold; }
.poll-karte .aktionen { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 190px; }
.neben-aktionen { display: flex; justify-content: center; gap: 2px; flex-wrap: wrap; }
.neben-aktionen form { margin: 0; }
.neben-aktionen a, .neben-aktionen .link-knopf { font-size: .9rem; padding: 6px 8px; min-height: 36px; color: var(--tm-link); text-decoration: underline; text-underline-offset: 2px; }
.neben-aktionen .loeschen-link { color: var(--rot); }
.poll-karte .daten { font-size: .95rem; }
.tag-titel { display: flex; align-items: center; gap: 12px; margin: 22px 0 10px; font-size: 1.05rem; }
.mini-kachel { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px; background: #E1EEFA; color: var(--tm-navy); line-height: 1; }
.mini-kachel .zahl { font-size: 1.3rem; font-weight: bold; }
.mini-kachel .wort { font-size: .62rem; letter-spacing: .14em; margin-top: 4px; }
.formular-schritt:first-of-type { border-top: 0; margin-top: 0; }
@media (max-width: 760px) {
  .buehne { background:
    linear-gradient(180deg, rgba(238,244,251,.55) 0%, rgba(238,244,251,.94) 45%, #EEF4FB 100%),
    #E4EEF9 url("../img/baender-960.webp") right top / cover no-repeat; }
  .reiter { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .reiter button { flex: none; }
  .schritt-karte .kachel, .poll-karte .kachel { align-self: start; }
  .poll-karte .aktionen { min-width: 0; }
  .neben-aktionen { justify-content: flex-start; }
}

/* Nachbesserung Runde 4 */
.neben-aktionen { gap: 4px 14px; margin-top: 4px; }
.neben-aktionen a, .neben-aktionen .link-knopf { text-decoration: none; font-size: .92rem; color: var(--tm-navy); padding: 6px 2px; }
.neben-aktionen a:hover, .neben-aktionen .link-knopf:hover { text-decoration: underline; color: var(--tm-link); }
.neben-aktionen form:last-child { margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--karte-linie); }
.neben-aktionen .loeschen-link { color: var(--rot); }
.antwort-form .opt, .optionen .opt { border-color: var(--karte-linie); border-radius: 12px; box-shadow: 0 3px 12px rgba(15, 55, 80, .05); }
@media (max-width: 760px) {
  .seite, .seite.seite-start, .seite.seite-liste { width: calc(100% - 32px); }
  .reiter { flex-wrap: wrap; overflow: visible; }
}

/* Einheitlicher Kachelstil auf allen Seiten: weisse Karte, zarter Farbschimmer unten rechts */
.kennzahl, .box, .box-rand, .leer, .leer-hinweis, .zuletzt li, .art-wahl .karte {
  position: relative; overflow: hidden; background: #fff;
  border: 1px solid var(--karte-linie); border-radius: 14px; box-shadow: var(--karte-schatten);
}
.kennzahl::after, .box::after, .box-rand::after, .leer::after, .leer-hinweis::after, .zuletzt li::after, .art-wahl .karte::after {
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 460px; height: 150px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--ton-hauch, rgba(50, 175, 220, .20)), transparent);
  transform: rotate(-8deg); pointer-events: none;
}
.kennzahl > *, .box > *, .box-rand > *, .leer > *, .leer-hinweis > *, .zuletzt li > *, .art-wahl .karte > * { position: relative; z-index: 1; }
.box-hinweis { border-left: 1px solid var(--karte-linie); --ton-hauch: rgba(50, 175, 220, .24); }
.box-erfolg { border-left: 1px solid var(--karte-linie); --ton-hauch: rgba(120, 185, 80, .26); }
.art-wahl .karte { border-width: 2px; }
.art-wahl input:checked + .karte { background: #fff; border-color: var(--tm-blue); }
.kennzahl { min-height: 108px; padding: 18px 22px; color: #22384A; }
.kennzahl b { font-size: 2.3rem; line-height: 1.1; color: var(--ton-text, var(--tm-navy)); margin-bottom: 4px; }
.kennzahlen { gap: 16px; }
.leer, .leer-hinweis { color: #333; }

/* Hilfe: jede Frage als Kachel im Kartenstil */
.seite.seite-hilfe { max-width: 900px; }
.hilfe-einleitung { font-size: 1.1rem; color: #22384A; margin: 0 0 8px; }
.faq h2 { margin: 30px 0 12px; }
.faq details {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--karte-linie); border-radius: 14px;
  box-shadow: var(--karte-schatten); padding: 4px 24px; margin-bottom: 12px;
}
.faq details::after {
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 460px; height: 150px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--ton-hauch, rgba(50, 175, 220, .20)), transparent);
  transform: rotate(-8deg); pointer-events: none;
}
.faq details > * { position: relative; z-index: 1; }
.faq summary { padding: 14px 0; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.faq details p { margin: 0 0 16px; }
.faq h2:nth-of-type(2) ~ details { --ton-hauch: rgba(245, 155, 35, .20); }
.faq h2:nth-of-type(3) ~ details { --ton-hauch: rgba(120, 185, 80, .22); }
.faq h2:nth-of-type(4) ~ details { --ton-hauch: rgba(50, 175, 220, .20); }
.faq summary { list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; font-weight: normal; line-height: 1; color: var(--tm-link); }
.faq details[open] summary::after { content: "−"; }

/* Hellblauer Seitengrund, Buehne laeuft unten geschwungen aus */
:root { --grund: #F3F8FD; }
body { background: linear-gradient(180deg, #E9F2FB 0, #E9F2FB 440px, #F3F8FD 1150px) #F3F8FD; }
.buehne {
  border-bottom: 0; padding-bottom: 40px;
  background:
    linear-gradient(180deg, rgba(233,242,251,0) 55%, rgba(233,242,251,.85) 92%, #E9F2FB 100%),
    linear-gradient(90deg, #EEF4FB 0%, rgba(238,244,251,.92) 34%, rgba(238,244,251,0) 62%),
    #E4EEF9 url("../img/baender-1672.webp") right 30% / cover no-repeat;
}
.buehne:not(.buehne-gross) { background-position: 0 0, 0 0, right 18%; }
.buehne::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; pointer-events: none;
}
.buehne > * { position: relative; z-index: 1; }
.buehne .kopf { z-index: 6; }
.seite { margin-top: 4px; }
@media (max-width: 760px) {
  .buehne { padding-bottom: 26px; background:
    linear-gradient(180deg, rgba(238,244,251,.55) 0%, rgba(238,244,251,.94) 45%, #E9F2FB 100%),
    #E4EEF9 url("../img/baender-960.webp") right top / cover no-repeat; }
  .buehne::after { height: 40px; }
}

/* Hintergrund Variante C: Lichtwolken in den Logofarben; Buehnen-Hintergrund auf eigener Ebene, wellenfoermig zugeschnitten */
body { background: #F2F7FC; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% 18%, rgba(50, 175, 220, .16), transparent 70%),
    radial-gradient(800px 520px at 96% 88%, rgba(120, 185, 80, .13), transparent 70%),
    radial-gradient(700px 420px at 70% 40%, rgba(245, 155, 35, .06), transparent 70%),
    #F2F7FC;
}
.buehne { background: none; }
.buehne::after { display: none; }
.buehne::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(238,244,251,0) 55%, rgba(238,244,251,.7) 100%),
    linear-gradient(90deg, #EEF4FB 0%, rgba(238,244,251,.92) 34%, rgba(238,244,251,0) 62%),
    #E4EEF9 url("../img/baender-1672.webp") right 30% / cover no-repeat;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 69px) no-repeat, url("../img/welle-maske.svg") bottom / 100% 70px no-repeat;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 69px) no-repeat, url("../img/welle-maske.svg") bottom / 100% 70px no-repeat;
}
.buehne:not(.buehne-gross)::before { background-position: 0 0, 0 0, right 18%; }
@media (max-width: 760px) {
  .buehne { background: none; }
  .buehne::before {
    background:
      linear-gradient(180deg, rgba(238,244,251,.55) 0%, rgba(238,244,251,.94) 45%, rgba(238,244,251,.85) 100%),
      #E4EEF9 url("../img/baender-960.webp") right top / cover no-repeat;
    -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 39px) no-repeat, url("../img/welle-maske.svg") bottom / 100% 40px no-repeat;
    mask: linear-gradient(#000 0 0) top / 100% calc(100% - 39px) no-repeat, url("../img/welle-maske.svg") bottom / 100% 40px no-repeat;
  }
}

/* Kopfbereich flacher, gerade Kante mit t+m-Verlaufslinie (ersetzt die Welle) */
.buehne { padding-bottom: 0; }
.buehne::before { -webkit-mask: none; mask: none; bottom: 0; }
.buehne::after {
  display: block; content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, var(--tm-blue), var(--tm-green));
}
.buehne:not(.buehne-gross) { min-height: 0; }
.buehne-text { padding: 8px 24px 30px; }
.buehne-mittel .buehne-text { padding-top: 6px; padding-bottom: 26px; }
.rubrik { margin-bottom: 10px; }
.rubrik::after { margin-top: 6px; }
.buehne h1 { font-size: 2.5rem; margin-bottom: 8px; }
.buehne-mittel h1 { font-size: 2rem; }
.unterzeile { font-size: 1.1rem; }
.kopf-innen { padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 760px) {
  .buehne::before { -webkit-mask: none; mask: none; }
  .buehne-text { padding: 4px 16px 22px; }
  .buehne h1 { font-size: 1.75rem; }
  .buehne-mittel h1 { font-size: 1.6rem; }
}
.seite { margin-top: 30px; }
@media (max-width: 760px) { .seite { margin-top: 18px; } }

/* Runde Pillenform fuer alle Knoepfe, wie im Menue */
.knopf, .knopf-klein, .knopf-gross, .menu-knopf, .wahl, .einzelwahl, .ergebnis-banner .knopf { border-radius: 999px; }
.knopf { padding-left: 22px; padding-right: 22px; }
.knopf-gross { padding-left: 30px; padding-right: 30px; }
.knopf-klein { padding-left: 16px; padding-right: 16px; }
.knopf-pfeil { padding-left: 24px; padding-right: 22px; }
.kal-nav, .x-knopf { border-radius: 50%; }
.kal-tag { border-radius: 50%; }
.wahl label:first-child span { padding-left: 16px; }
.wahl label:last-child span { padding-right: 16px; }
.hauptmenue a.aktiv { border-radius: 0; }
.filter input[type=search] { border-radius: 999px; padding-left: 18px; }

/* ---------- t+m-Cockpit ---------- */
.konto-raster.einzeln { grid-template-columns: minmax(0, 560px); }
.zugaenge { margin: 8px 0 14px; padding-left: 20px; }
.zugaenge li { margin-bottom: 4px; }
/* Kopf gleich hoch, auch wenn kein Menue da ist (Anmeldeseite) */
@media (min-width: 961px) { .kopf-innen { min-height: 79px; } }

/* ---------- Dashboard: App-Kacheln (Kartenmuster der Terminabfrage) ---------- */
.app-kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.app-kacheln > li { display: flex; }
.app-karte {
  position: relative; overflow: hidden; flex: 1; display: flex; flex-direction: column; gap: 18px;
  background: #fff; border: 1px solid var(--karte-linie); border-radius: 14px; box-shadow: var(--karte-schatten);
  padding: 22px 24px 24px; color: #000; text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.app-karte::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 150px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--ton-hauch, rgba(50,175,220,.16)), transparent); pointer-events: none; transform: rotate(-8deg);
}
.app-karte > * { position: relative; z-index: 1; }
.app-karte:hover, .app-karte:focus-visible { border-color: var(--tm-blue); box-shadow: 0 10px 30px rgba(15, 55, 80, .12); color: #000; }
.app-karte:focus-visible { outline: 3px solid var(--tm-blue); outline-offset: 2px; }
.app-karte .kachel { width: 72px; min-height: 72px; }
.app-symbol { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-mitte { display: flex; flex-direction: column; align-items: flex-start; }
.app-titel { font-size: 1.3rem; color: var(--tm-navy); margin-bottom: 4px; }
.app-text { color: #333; }
.app-titel::after { content: "\00a0→"; color: var(--tm-link); font-weight: normal; }
.app-zaehler { margin-top: 12px; font-size: .92rem; color: var(--grau); }
.app-zaehler.offen { color: #7A3E06; font-weight: bold; }
.seite-hinweis { max-width: 640px; }
@media (max-width: 960px) { .app-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .app-kacheln { grid-template-columns: 1fr; gap: 14px; }
  .app-karte { flex-direction: row; align-items: center; padding: 16px 18px; }
  .app-karte .kachel { width: 60px; min-height: 60px; flex: none; }
  .app-titel { font-size: 1.12rem; overflow-wrap: anywhere; }
}

/* ---------- Feinschliff Task 5 (Kritik Runde 1) ---------- */
/* D1: Fuss klebt unten, die Karte bleibt so hoch wie ihr Inhalt */
body { min-height: 100vh; min-height: 100dvh; }
.seite { flex: 0 0 auto; margin-bottom: 32px; }
.fuss { margin-top: auto; }
.seite.seite-auth { margin-top: 22px; padding: 28px 40px 30px; }
.seite-auth .auth h1 { margin-bottom: .35rem; }
.seite-auth .abstand-gross { margin-top: 16px; }
.seite-auth .auth > .abstand-gross:last-child { margin-bottom: 0; }
/* D4: Meldungen auf der Anmeldeseite so breit wie das Formular */
.seite-auth .meldungen { max-width: 460px; margin-left: auto; margin-right: auto; }
/* D2: Kacheln fluchten mit dem Text der Buehne */
.seite.seite-start { width: 100%; max-width: 1120px; padding-left: 24px; padding-right: 24px; }
/* D3: Markenname so kraeftig wie in der Terminabfrage, auch auf dem Handy sichtbar */
.marke-name { font-size: 1.15rem; letter-spacing: .01em; }
/* D5: Konto-Karten oben buendig, unten Luft */
.konto-raster { align-items: start; }
.konto-raster .box-rand { padding-bottom: 26px; }
/* D6 */
.buehne h1 { text-wrap: balance; }
.app-karte .marke-chip { font-size: .78rem; }
@media (max-width: 760px) {
  .seite.seite-start { width: 100%; padding-left: 16px; padding-right: 16px; }
  .seite.seite-auth { width: calc(100% - 32px); padding: 20px 18px 22px; margin-top: 16px; }
  .menu-knopf { min-height: 44px; }
  .marke-name { font-size: 1rem; }
}
@media (max-width: 480px) {
  .app-karte .kachel { width: 48px; min-height: 48px; }
  .app-karte .app-symbol { width: 30px; height: 30px; }
}
@media (max-width: 420px) {
  .marke { gap: 10px; }
  .logo { height: 26px; }
  .marke-name { display: inline; font-size: .95rem; padding-left: 10px; }
}

/* Verwaltung */
.feld-breit { max-width: 760px; }
.passwort-anzeige { font-family: Consolas, "Courier New", monospace; font-size: 1.25rem !important; letter-spacing: .06em; }
.konten-tabelle td:first-child a { font-weight: bold; }
.konten-tabelle .status + br + .klein { display: inline-block; margin-top: 4px; }
.anfragen-box { margin-bottom: 30px; }
.check .hilfe { display: block; color: var(--grau); font-size: .875rem; font-weight: normal; }
.konten-tabelle td:nth-child(5) { white-space: nowrap; }
.nutzung-tabelle tbody th { text-align: left; vertical-align: top; overflow-wrap: anywhere; hyphens: auto; }
.einmal-passwort { margin-bottom: 16px; }

/* ---------- Kacheln mit eingefaerbtem Szenenbild (je App eine Farbe) ---------- */
.ton-blau   { --ton-stark: #2F7FC0; }
.ton-orange { --ton-stark: #D9781F; }
.ton-gruen  { --ton-stark: #5E9E3A; }
.app-karte { padding-top: 0; border-top: 4px solid var(--ton-stark, var(--tm-blue)); }
.app-karte::after { display: none; }
.app-bild {
  display: block; margin: 0 -24px; aspect-ratio: 16 / 8; overflow: hidden;
  background: var(--ton-flaeche, #E1EEFA);
}
.app-bild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.app-karte:hover .app-bild img, .app-karte:focus-visible .app-bild img { transform: scale(1.04); }
.app-karte:hover, .app-karte:focus-visible { border-color: var(--ton-stark, var(--tm-blue)); }
.app-karte .marke-chip { background: var(--ton-flaeche); color: var(--ton-text); }
.app-titel::after { color: var(--ton-stark, var(--tm-link)); }
@media (prefers-reduced-motion: reduce) { .app-bild img { transition: none; } }
@media (max-width: 640px) {
  .app-karte { padding: 0 18px 0 0; gap: 16px; border-top-width: 1px; border-left: 4px solid var(--ton-stark, var(--tm-blue)); }
  .app-bild { margin: 0; flex: none; width: 112px; align-self: stretch; aspect-ratio: auto; }
  .app-mitte { padding: 14px 0; }
}
@media (max-width: 640px) {
  .app-bild { width: 92px; }
  .app-titel { font-size: 1.05rem; overflow-wrap: normal; hyphens: auto; }
}
@media (max-width: 380px) { .app-bild { width: 76px; } }
/* Motiv im Bildausschnitt halten (Kritik Kacheln) */
.ton-blau .app-bild img { object-position: 22% 35%; }
.ton-orange .app-bild img { object-position: 40% 50%; }
.ton-gruen .app-bild img { object-position: 30% 40%; }
@media (max-width: 640px) { .app-bild { width: 34%; max-width: 130px; } }

/* ---------- Teil 4: weitere Toene fuer Statistik und Link-Kacheln ---------- */
.ton-indigo   { --ton-flaeche: #E6E7F6; --ton-text: #2A2D6E; --ton-hauch: rgba(75, 79, 168, .20);  --ton-stark: #4B4FA8; }
.ton-violett  { --ton-flaeche: #EFE6F7; --ton-text: #4A2670; --ton-hauch: rgba(122, 75, 168, .20); --ton-stark: #7A4BA8; }
.ton-rot      { --ton-flaeche: #F7E3E3; --ton-text: #6E1F1F; --ton-hauch: rgba(168, 58, 58, .18);  --ton-stark: #A83A3A; }
.ton-gold     { --ton-flaeche: #FBF0D4; --ton-text: #5E4300; --ton-hauch: rgba(184, 134, 11, .22); --ton-stark: #B8860B; }
.ton-schiefer { --ton-flaeche: #E6EBEF; --ton-text: #2C3A45; --ton-hauch: rgba(79, 98, 114, .18);  --ton-stark: #4F6272; }
.ton-oliv     { --ton-flaeche: #EEF1DC; --ton-text: #3F4815; --ton-hauch: rgba(107, 122, 42, .22); --ton-stark: #6B7A2A; }
.ton-magenta  { --ton-flaeche: #F8E2EE; --ton-text: #6E1F4A; --ton-hauch: rgba(176, 58, 122, .18); --ton-stark: #B03A7A; }
.ton-petrol   { --ton-flaeche: #DDF0F1; --ton-text: #10494D; --ton-hauch: rgba(31, 122, 128, .20); --ton-stark: #1F7A80; }
/* Kacheln, die in einem neuen Tab oeffnen: Pfeil schraeg statt waagerecht */
.app-karte.neuer-tab .app-titel::after { content: "\00a0\2197"; }
/* Verwaltung: Haekchen fuer weitere Kacheln */
.weitere-kacheln { margin-top: 20px; }
.kachel-haken { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.kachel-haken .hilfe { overflow-wrap: anywhere; }
@media (max-width: 640px) { .kachel-haken { grid-template-columns: 1fr; } }

/* Markenfarben (Logo im Bild): Tex Innovation Hub, Tex Started, MDZ Smarte Kreislaeufe */
.ton-mint { --ton-flaeche: #DDF5F1; --ton-text: #0B4A43; --ton-hauch: rgba(0, 158, 142, .20); --ton-stark: #009E8E; }
.ton-cyan { --ton-flaeche: #E0F2FA; --ton-text: #103050; --ton-hauch: rgba(28, 154, 201, .20); --ton-stark: #1C9AC9; }
.ton-mdz  { --ton-flaeche: #FBE3E6; --ton-text: #7A0612; --ton-hauch: rgba(192, 10, 30, .16);  --ton-stark: #C00A1E; }
/* Logo-Schild sitzt unten links im Bild: Ausschnitt dort verankern */
.app-bild img[src*="kacheln/tih."], .app-bild img[src*="kacheln/texstarted."], .app-bild img[src*="kacheln/mdz."] { object-position: 0% 100%; }
.app-bild picture { display: contents; }
@media (max-width: 640px) { .app-bild img[src*="-mobil."] { object-position: 50% 100%; } }

/* ---------- Kachelfarben ausschliesslich aus der t+m-Palette (2026-11-20) ---------- */
.ton-hellblau { --ton-flaeche: #E3F4FB; --ton-text: #0F3750; --ton-hauch: rgba(50, 175, 220, .20); --ton-stark: #32AFDC; }
.ton-navy     { --ton-flaeche: #E5ECF1; --ton-text: #0F3750; --ton-hauch: rgba(15, 55, 80, .14);  --ton-stark: #0F3750; }
.ton-linkblau { --ton-flaeche: #E0EEF8; --ton-text: #00406E; --ton-hauch: rgba(0, 112, 192, .16);  --ton-stark: #0070C0; }
.ton-gruen    { --ton-flaeche: #EAF4E3; --ton-text: #2F5418; --ton-hauch: rgba(120, 185, 80, .20); --ton-stark: #78B950; }
.ton-orange   { --ton-flaeche: #FEF0DD; --ton-text: #6E3F00; --ton-hauch: rgba(245, 155, 35, .20); --ton-stark: #F59B23; }

/* Passwortfelder mit Auge (static/js/passwort-auge.js) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 52px; }
.pw-wrap input::-ms-reveal, .pw-wrap input::-ms-clear { display: none; }
.pw-auge {
  position: absolute; top: 0; right: 0; width: 48px; height: 100%; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 0 var(--radius) var(--radius) 0; padding: 0;
  color: #0F3750; cursor: pointer;
}
.pw-auge:hover { background: #F2F2F2; }
.pw-auge:focus-visible { outline: 2px solid var(--tm-blue); outline-offset: -2px; }

/* Abzeichen am Menuepunkt Verwaltung: offene Passwort-Anfragen (leuchtet) */
.menue-zahl {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 7px; margin-left: 6px; border-radius: 999px;
  background: var(--tm-orange, #F59B23); color: #fff; font-size: .85rem; font-weight: 700; line-height: 1;
  vertical-align: middle; box-shadow: 0 0 0 0 rgba(245, 155, 35, .7);
  animation: menue-zahl-leuchten 1.8s ease-out infinite;
}
@keyframes menue-zahl-leuchten {
  0% { box-shadow: 0 0 0 0 rgba(245, 155, 35, .75); }
  70% { box-shadow: 0 0 0 11px rgba(245, 155, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 155, 35, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .menue-zahl { animation: none; box-shadow: 0 0 10px 2px rgba(245, 155, 35, .6); }
}
.nur-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Wissen (Teil 11) ---------- */
[hidden] { display: none !important; }
.wissen-kopf { align-items: center; }
.wissen-kopf .zurueck { margin: 0; }
.wissen-filter { margin-bottom: 20px; }
.wissen-themen { display: flex; flex-wrap: wrap; gap: 8px; }
.wissen-themen button { font: inherit; min-height: 44px; padding: 8px 16px; border: 1px solid var(--karte-linie); border-radius: 999px; background: #fff; color: var(--tm-navy); cursor: pointer; }
.wissen-themen button:hover { border-color: var(--tm-blue); }
.wissen-themen button[aria-pressed=true] { background: var(--tm-navy); border-color: var(--tm-navy); color: #fff; font-weight: bold; }
.wissen-kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.wissen-kacheln > li { display: flex; }
.wissen-karte { display: flex; flex-direction: column; width: 100%; background: #fff; color: #000; text-decoration: none; border: 1px solid var(--karte-linie); border-top: 4px solid var(--ton-stark, var(--tm-blue)); border-radius: 12px; overflow: hidden; box-shadow: var(--karte-schatten); }
.wissen-karte:hover { border-color: var(--ton-stark, var(--tm-blue)); color: #000; box-shadow: 0 10px 30px rgba(15, 55, 80, .12); }
.wissen-karte:focus-visible { outline: 3px solid var(--tm-blue); outline-offset: 2px; }
.wissen-bild { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--ton-flaeche); color: var(--ton-text); font-weight: bold; overflow: hidden; border-bottom: 1px solid var(--karte-linie); }
.wissen-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wissen-mitte { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 14px 16px; }
.wissen-karte .marke-chip { background: var(--ton-flaeche); color: var(--ton-text); overflow-wrap: anywhere; }
.wissen-mitte strong { color: var(--tm-navy); font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.wissen-text { color: #333; font-size: .92rem; margin-top: 4px; overflow-wrap: anywhere; }
.wissen-fuss { color: var(--grau); font-size: .85rem; margin-top: auto; padding-top: 10px; }
@media (max-width: 1100px) { .wissen-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .wissen-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wissen-kacheln { grid-template-columns: 1fr; } .wissen-filter input[type=search] { max-width: none; flex-basis: 100%; } }
@media (max-width: 520px) {
  .wissen-themen { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding: 3px; scrollbar-width: none; }
  .wissen-themen button { flex: none; }
  .wissen-bild { aspect-ratio: 2 / 1; }
}
/* Angeheftet: Banner über die volle Rasterbreite */
.wissen-kacheln > li.wissen-banner { grid-column: 1 / -1; }
.wissen-banner .wissen-karte { flex-direction: row; min-height: 250px; }
.wissen-banner .wissen-bild { flex: 0 0 48%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--karte-linie); font-size: 3rem; }
.wissen-banner .wissen-mitte { justify-content: center; padding: 24px 32px; gap: 4px; min-width: 0; }
.wissen-banner .wissen-mitte strong { font-size: 1.7rem; line-height: 1.2; margin-top: 8px; }
.wissen-banner .wissen-text { font-size: 1.05rem; margin-top: 8px; max-width: 60ch; }
.wissen-banner .wissen-bild img { object-position: left center; }
.wissen-banner .wissen-fuss { margin-top: 12px; padding-top: 0; }
.wissen-banner-knopf { margin-top: 16px; }
.wissen-karte:hover .wissen-banner-knopf { background: #1b4d6c; border-color: #1b4d6c; }
.wissen-banner-knopf { display: none; }
.wissen-banner .wissen-banner-knopf { display: inline-flex; }
@media (max-width: 800px) {
  .wissen-banner .wissen-bild { flex-basis: 42%; }
  .wissen-banner .wissen-mitte { padding: 18px 20px; }
  .wissen-banner .wissen-mitte strong { font-size: 1.35rem; }
}
@media (max-width: 520px) {
  .wissen-banner .wissen-karte { flex-direction: column; min-height: 0; border-top-width: 6px; }
  .wissen-banner .wissen-bild { flex: none; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--karte-linie); }
  .wissen-banner .wissen-mitte strong { font-size: 1.3rem; }
}
input[type=file] { width: 100%; font: inherit; font-size: .92rem; }
input[type=file]::file-selector-button { font: inherit; min-height: 40px; padding: 6px 16px; margin-right: 12px; border: 2px solid var(--tm-navy); border-radius: 999px; background: #fff; color: var(--tm-navy); cursor: pointer; }

/* Nachweis in der Verwaltung */
.nachweis { max-width: 420px; margin-top: 20px; }
.nachweis .nachweis-fehler { color: var(--rot); }

/* ---------- Teil 13: kompaktere Kacheln - bis zu 5 pro Reihe (2026-11-26) ----------
   Gilt fuer Dashboard, Bereichs-Unterseiten (.app-kacheln) und Wissen (.wissen-kacheln).
   Alles in @media (min-width: 641px), damit die Handy-Darstellung (Bild links,
   Text rechts) unveraendert bleibt. */
@media (min-width: 1101px) {
  .app-kacheln   { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wissen-kacheln { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 941px) and (max-width: 1100px) {
  .app-kacheln   { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wissen-kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 861px) and (max-width: 940px) {
  .app-kacheln   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wissen-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 641px) and (max-width: 860px) {
  .app-kacheln   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wissen-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Kachelinhalt schlanker, damit fuenf Spalten lesbar bleiben */
@media (min-width: 641px) {
  .app-kacheln { gap: 16px; }
  .app-karte { gap: 12px; padding: 0 16px 16px; }
  .app-bild { margin: 0 -16px; aspect-ratio: 16 / 9; }
  .app-karte .marke-chip { font-size: .72rem; padding: 3px 9px; }
  .app-titel { font-size: 1.05rem; margin-bottom: 2px; overflow-wrap: break-word; hyphens: auto; }
  .app-text { font-size: .9rem; }
  .app-zaehler { margin-top: 8px; font-size: .85rem; }
  .app-karte .kachel { width: 56px; min-height: 56px; }

  .wissen-kacheln { gap: 16px; }
  .wissen-mitte { padding: 12px 14px; }
  .wissen-mitte strong { font-size: .98rem; }
  .wissen-text { font-size: .86rem; }
  .wissen-fuss { font-size: .8rem; padding-top: 8px; }
  .wissen-karte .marke-chip { font-size: .72rem; padding: 3px 9px; }
}
/* Das angeheftete Banner im Wissen bleibt ueber die volle Rasterbreite gross */
@media (min-width: 641px) {
  .wissen-banner .wissen-mitte { padding: 24px 32px; }
  .wissen-banner .wissen-mitte strong { font-size: 1.7rem; }
  .wissen-banner .wissen-text { font-size: 1.05rem; }
}
