/* Kundenportal brosemedien — Tokens aus brosemedien_design.md, Bausteine in portal_design.md */
@font-face {
  font-display: swap;
  font-family: 'Brose';
  font-style: normal;
  font-weight: 300;
  src: url('https://daten.fabianbrose.de/typo/font.php?f=Brose.woff2&v=1.3') format('woff2'),
       url('https://daten.fabianbrose.de/typo/font.php?f=Brose.woff&v=1.3') format('woff');
}
@font-face {
  font-display: swap;
  font-family: 'Brose';
  font-style: normal;
  font-weight: 900;
  src: url('https://daten.fabianbrose.de/typo/font.php?f=Brose-Black.woff2&v=1.3') format('woff2'),
       url('https://daten.fabianbrose.de/typo/font.php?f=Brose-Black.woff&v=1.3') format('woff');
}

:root {
  --pt-gruen: #b1c172;
  --pt-gruen-dunkel: #5f6b2a;
  --pt-petrol: #2d4a57;
  --pt-tinte: #2f2f30;
  --pt-leise: #5b5b5e;
  --pt-flaeche: #fff;
  --pt-papier: #f3f1ec;
  --pt-linie: rgba(47, 47, 48, .12);
  --pt-radius: 5px;   /* Foerb 03.12.2026: ALLE Radien 5px, nur über dieses Token */
  --pt-rot: #b3261e;
  --pt-gelb: #e7b54d;
  --pt-schrift: 'Brose', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--pt-schrift);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: var(--pt-tinte);
  background: var(--pt-papier);
}
strong, b, h1, h2 { font-weight: 900; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: .2em 0 .5em; }
a { color: var(--pt-petrol); }
:focus-visible { outline: 3px solid var(--pt-petrol); outline-offset: 2px; }
[hidden] { display: none !important; }

.pt-sr, .pt-sr-feld {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Überzeile */
.pt-marke {
  margin: 0;
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pt-gruen-dunkel);
}

/* Der EINE Knopf: Pille in Tinte; Zweitknopf mit Rand */
.pt-knopf {
  display: inline-block;
  font: inherit;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.2;
  padding: .7em 1.4em;
  border: 2px solid var(--pt-tinte);
  border-radius: var(--pt-radius);
  background: var(--pt-tinte);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.pt-knopf:hover { background: #000; border-color: #000; }
.pt-knopf:disabled { opacity: .5; cursor: progress; }
.pt-knopf-zweit { background: transparent; color: var(--pt-tinte); }
.pt-knopf-zweit:hover { background: var(--pt-tinte); color: #fff; }
.pt-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.pt-link-knopf, .pt-klein {
  font: inherit; background: none; border: 0; padding: 0; color: var(--pt-petrol); text-decoration: underline; cursor: pointer;
}
.pt-klein { font-size: .85rem; }

.pt-meldung { min-height: 1.5em; margin: .4rem 0 0; color: var(--pt-leise); font-size: .95rem; }
.pt-leise { color: var(--pt-leise); font-size: .85rem; margin: .2rem 0 0; }
.pt-fuss { font-size: .85rem; color: var(--pt-leise); margin: .6rem 0 0; text-align: center; }
.pt-fuss a, .pt-fuss .pt-link-knopf { color: var(--pt-leise); }

/* ---------- Einfache Seiten: Anmelden, Datenschutz ---------- */
/* margin:auto statt align-items:center — eine Karte, die höher als der Bildschirm ist, läuft so nach unten weiter */
.pt-einfach { display: flex; height: auto; min-height: 100vh; padding: 24px 16px; }
.pt-karte {
  margin: auto;
  width: 100%;
  max-width: 460px;
  background: var(--pt-flaeche);
  border-radius: var(--pt-radius);
  border-top: 4px solid var(--pt-gruen);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .35);
  padding: 28px 26px 22px;
}
.pt-karte-breit { max-width: 760px; }
.pt-formular { display: grid; gap: .5rem; margin-top: 1rem; }
.pt-formular label { font-weight: 900; font-size: .95rem; }
input[type="email"], textarea {
  font: inherit;
  width: 100%;
  padding: .65em .8em;
  border: 1px solid rgba(47, 47, 48, .35);
  border-radius: var(--pt-radius);
  background: #fff;
  color: var(--pt-tinte);
}
.pt-formular .pt-knopf { justify-self: start; margin-top: .3rem; }

/* ---------- Chat ---------- */
.pt-chat { display: flex; flex-direction: column; height: 100%; height: 100dvh; }
.pt-kopf {
  background: var(--pt-flaeche);
  border-bottom: 1px solid var(--pt-linie);
  padding: 12px 18px 10px;
  padding-top: max(12px, env(safe-area-inset-top));
}
.pt-kopf-innen { max-width: 820px; margin: 0 auto; }
.pt-kopf-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pt-kopf-zeile .pt-marke { min-width: 0; }   /* darf umbrechen; der Kundenname behält seinen Platz */
.pt-kunde { margin: 0; font-weight: 900; text-align: right; flex: none; max-width: 50%; }
/* Reiter (Projektwahl): Text mit grüner Unterlinie, gewählt in Tinte — keine Knöpfe, die nach Aktion aussehen */
.pt-reiter { display: flex; gap: 1.2rem; margin: .5rem 0 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--pt-linie); }
.pt-reiter-knopf {
  flex: none; font: inherit; font-weight: 900; background: none; border: 0; border-bottom: 3px solid transparent;
  padding: .35rem 0 .45rem; margin-bottom: -1px; color: var(--pt-leise); cursor: pointer;
}
.pt-reiter-knopf:hover { color: var(--pt-tinte); }
.pt-reiter-knopf:focus-visible { outline-offset: -3px; }   /* nach innen: die scrollbare Leiste schneidet sonst den Rahmen ab */
.pt-reiter-knopf[aria-current="true"] { color: var(--pt-tinte); border-bottom-color: var(--pt-gruen-dunkel); }   /* dunkles Grün: 3:1 Kontrast (WCAG 1.4.11) */
.pt-lage { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1.2rem; margin-top: .45rem; }
.pt-status { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.pt-ampel { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .45rem; }
.pt-punkt { width: .7em; height: .7em; border-radius: var(--pt-radius); flex: none; align-self: center; background: var(--pt-leise); }
.pt-ampel-gruen .pt-punkt { background: var(--pt-gruen-dunkel); }
.pt-ampel-gelb .pt-punkt { background: var(--pt-gelb); }
.pt-ampel-rot .pt-punkt { background: var(--pt-rot); }
.pt-ampel-rot { color: var(--pt-rot); font-weight: 900; }

/* Paket-Ansicht über dem Verlauf */
.pt-paket { max-width: 820px; margin: 0 auto 14px; padding: .8rem 1rem 1rem; }   /* Fläche wie .pt-auftrag (gemeinsame Regel unten) */
.pt-paket h2 { font-size: 1.15rem; margin: 0; }
.pt-paket h3 { font-size: .95rem; margin: 1rem 0 .3rem; }
.pt-paket-liste { margin: 0; padding-left: 1.2rem; }
/* Kennzahlen (Stat-Kacheln), Mini-Verlauf, Prüfliste, Monatsbericht */
.pt-kennzahlen { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin: .4rem 0 .2rem; }
.pt-kennzahl { display: flex; flex-direction: column; }
.pt-kennzahl-wert { font-size: 1.6rem; font-weight: 900; line-height: 1.1; color: var(--pt-tinte); }
.pt-kennzahl-text { font-size: .8rem; color: var(--pt-leise); }
.pt-mini { display: flex; align-items: flex-end; gap: 2px; height: 2.2rem; max-width: 22rem; margin-top: .3rem; }
.pt-mini > span { flex: 1; background: var(--pt-gruen-dunkel); border-radius: var(--pt-radius); }
.pt-pruefliste { margin: .3rem 0 .6rem; font-size: .85rem; }
.pt-bericht { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--pt-linie); }
.pt-bericht h4 { font-size: .9rem; margin: .8rem 0 .2rem; }

/* Hosting-Steckbrief: Bezeichnung leise links, Wert rechts daneben; schmal untereinander */
.pt-steckbrief { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .2rem 1rem; margin: 0; }
.pt-steckbrief dt { color: var(--pt-leise); }
.pt-steckbrief dd { margin: 0; overflow-wrap: anywhere; }
.pt-paket-leistungen { list-style: none; padding-left: 0; }
.pt-paket-leistungen li::before { content: '✓ '; color: var(--pt-gruen-dunkel); font-weight: 900; }

.pt-verlauf-huelle { flex: 1; overflow-y: auto; padding: 14px 14px 8px; -webkit-overflow-scrolling: touch; position: relative; }   /* Bezugsrahmen: unsichtbare Screenreader-Texte bleiben im Chat und verlängern nicht die Seite */
.pt-hinweis-ki { max-width: 820px; margin: 0 auto 10px; font-size: .85rem; color: var(--pt-leise); }   /* Rahmen: gemeinsame Regel mit .pt-hinweis */
.pt-verlauf { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: flex; flex-direction: column; gap: 10px; }
.pt-tag { align-self: center; font-size: .8rem; color: var(--pt-leise); margin-top: 6px; }
.pt-n { display: flex; }
.pt-n-kunde { justify-content: flex-end; }
.pt-n-system { justify-content: center; flex-direction: column; align-items: center; }
.pt-blase {
  max-width: min(85%, 600px);
  background: var(--pt-flaeche);
  border-radius: var(--pt-radius);
  padding: .55rem .85rem .4rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.pt-n-kunde .pt-blase { background: var(--pt-petrol); color: #fff; }
.pt-n-kunde .pt-zeit, .pt-n-kunde .pt-von { color: rgba(255, 255, 255, .78); }
.pt-n-foerb .pt-blase { border-left: 4px solid var(--pt-gruen); }
.pt-n-system .pt-blase { background: transparent; box-shadow: none; text-align: center; color: var(--pt-leise); }
.pt-von { margin: 0; font-weight: 900; font-size: .8rem; color: var(--pt-gruen-dunkel); }
.pt-text { margin: .1rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pt-zeit { margin: .1rem 0 0; font-size: .72rem; color: var(--pt-leise); text-align: right; }
.pt-schreibt .pt-text { color: var(--pt-leise); font-style: italic; }
.pt-leer { color: var(--pt-leise); text-align: center; max-width: 520px; align-self: center; }
.pt-foto { display: block; margin: .3rem 0; }
.pt-foto img { display: block; max-width: 100%; max-height: 360px; border-radius: var(--pt-radius); }

.pt-trenner, .pt-trenner-klein {
  margin: 0; font-size: .82rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--pt-gruen-dunkel);
}
.pt-trenner { display: flex; align-items: center; gap: .6rem; width: 100%; max-width: 600px; }
.pt-trenner::before, .pt-trenner::after { content: ''; flex: 1; border-top: 1px solid var(--pt-linie); }
.pt-trenner-live { color: var(--pt-gruen-dunkel); }

/* Auftragskarte: weiße Fläche, grüne Oberlinie (Feld-Raster aus brosemedien) */
.pt-auftrag, .pt-paket { background: var(--pt-flaeche); border-top: 3px solid var(--pt-gruen); border-radius: var(--pt-radius); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.pt-auftrag { width: 100%; max-width: 600px; margin-top: .4rem; padding: .6rem .9rem; }
.pt-auftrag-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; margin: 0; }
.pt-auftrag-titel { font-weight: 900; }
.pt-punkte { margin: .3rem 0 0; padding-left: 1.2rem; }
.pt-zustand { flex: none; font-size: .78rem; font-weight: 900; border-radius: var(--pt-radius); padding: .1rem .6rem; background: var(--pt-papier); color: var(--pt-tinte); }
.pt-zustand-vorschau, .pt-zustand-aendern { background: var(--pt-gelb); }
.pt-zustand-live, .pt-zustand-passt { background: var(--pt-gruen); }
.pt-zustand-abgelehnt { background: #e4e2dc; color: var(--pt-leise); }

.pt-vorschau-antwort { margin: .5rem 0 .2rem; }
.pt-aendern { display: grid; gap: .4rem; margin-top: .5rem; }
.pt-aendern .pt-knopf { justify-self: start; }

/* Eingabe */
.pt-eingabe {
  background: var(--pt-flaeche);
  border-top: 1px solid var(--pt-linie);
  padding: 10px 14px 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.pt-senden { max-width: 820px; margin: 0 auto; }
.pt-senden-zeile { display: flex; align-items: flex-end; gap: .5rem; }
.pt-senden-zeile textarea { flex: 1; resize: none; min-height: 2.8rem; max-height: 200px; }
.pt-senden-knopf { flex: none; }
.pt-foto-knopf {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2.8rem; height: 2.8rem; border-radius: var(--pt-radius); border: 2px solid var(--pt-tinte); cursor: pointer;
}
.pt-foto-knopf:focus-within { outline: 3px solid var(--pt-petrol); outline-offset: 2px; }
.pt-foto-knopf svg { width: 1.3rem; height: 1.3rem; fill: var(--pt-tinte); }
.pt-foto-vorschau { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; }
.pt-foto-vorschau img { max-height: 70px; max-width: 120px; border-radius: var(--pt-radius); }
.pt-eingabe .pt-meldung { min-height: 0; }

/* Datenschutz */
.pt-text-seite h2 { font-size: 1.15rem; margin: 1.4em 0 .3em; }
.pt-text-seite p, .pt-text-seite li { max-width: 68ch; }

/* ---------- Begleit-Portal: Bereiche (portal_design.md §2, ab 01.12.2026) ---------- */
/* Leiste: am Handy unten, breit links. Die Eingabezeile gibt es nur im Gespräch. */
.pt-bereiche {
  order: 9; display: flex; justify-content: space-around; gap: .2rem; overflow-x: auto; scrollbar-width: none;
  background: var(--pt-flaeche); border-top: 1px solid var(--pt-linie);
  padding: .2rem .4rem; padding-bottom: max(.2rem, env(safe-area-inset-bottom));
}
.pt-bereich-knopf {
  flex: none; font-weight: 900; font-size: .9rem; color: var(--pt-leise); text-decoration: none;
  padding: .55rem .2rem .45rem; border-top: 3px solid transparent;
}
.pt-bereich-knopf:hover { color: var(--pt-tinte); }
.pt-bereich-knopf:focus-visible { outline-offset: -3px; }
.pt-bereich-knopf[aria-current="page"] { color: var(--pt-tinte); border-top-color: var(--pt-gruen-dunkel); }
/* Zahl neuer Nachrichten: runder Punkt mit Zahl */
.pt-zahl {
  display: inline-block; min-width: 1.3rem; padding: 0 .35rem; margin-left: .2rem; border-radius: var(--pt-radius);
  background: var(--pt-petrol); color: #fff; font-size: .72rem; line-height: 1.3rem; text-align: center;
}
.pt-bereich { max-width: 820px; margin: 0 auto; }
.pt-bereich h1 { margin-top: .3rem; }
.pt-bereich h1:focus { outline: none; }
.pt-bereich h2 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.pt-lead { font-size: 1.1rem; margin: 0 0 .6rem; max-width: 62ch; }
.pt-hinweis, .pt-hinweis-ki { border-left: 3px solid var(--pt-gruen); padding: .2rem 0 .2rem .8rem; }
.pt-hinweis { margin: .8rem 0; }
.pt-hinweis p { margin: 0 0 .3rem; }
.pt-liste { margin: 0; padding-left: 1.2rem; }
.pt-liste li { margin: .25rem 0; }
.pt-liste .pt-zustand { margin-right: .3rem; }
.pt-fuss-seite { max-width: 820px; margin: 2rem auto .5rem; }
.pt-reiter-klein { margin: 0 0 .6rem; }
.pt-reiter-klein .pt-reiter-knopf { font-size: .9rem; }

/* Kreis: die Stufen nebeneinander (schmal untereinander), Pfeil dazwischen */
.pt-kreis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .8rem; }
.pt-stufe, .pt-ziel, .pt-vorhaben, .pt-kurve {
  background: var(--pt-flaeche); border-radius: var(--pt-radius); box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.pt-stufe, .pt-ziel, .pt-vorhaben { border-top: 3px solid var(--pt-gruen); }
.pt-stufe { position: relative; display: flex; flex-direction: column; gap: .1rem; padding: .6rem .8rem .7rem; }
.pt-stufe + .pt-stufe .pt-stufe-name::before { content: "→ "; color: var(--pt-leise); }   /* Pfeil im Namen: bricht mit der Zeile um */
.pt-stufe-name { font-size: .8rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--pt-gruen-dunkel); }
.pt-stufe-wert { font-size: 1.9rem; font-weight: 900; line-height: 1.1; }
.pt-stufe-satz { font-size: .85rem; color: var(--pt-leise); }
.pt-stufe-ziele { font-size: .78rem; color: var(--pt-leise); }
/* Veränderung: Zeichen + Wort, nie Farbe allein */
.pt-trend { font-size: .82rem; font-weight: 900; color: var(--pt-leise); }
.pt-trend-hoch { color: var(--pt-gruen-dunkel); }

/* Kurve: eine Reihe (Google-Klicks je Woche), Arbeiten als Punkte; Gitter und Achsen zurückhaltend */
.pt-kurve { position: relative; margin: .4rem 0 0; padding: .6rem .6rem .4rem; }
.pt-kurve svg { display: block; max-width: 100%; height: auto; touch-action: pan-y; }
.pt-kurve-gitter { stroke: var(--pt-linie); stroke-width: 1; }
.pt-kurve-achse { fill: var(--pt-leise); font-size: 12px; font-family: var(--pt-schrift); }
.pt-kurve-flaeche { fill: var(--pt-gruen); fill-opacity: .22; }
.pt-kurve-linie { fill: none; stroke: var(--pt-gruen-dunkel); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pt-kurve-arbeit { fill: var(--pt-petrol); stroke: var(--pt-flaeche); stroke-width: 2; }
.pt-kurve-faden { stroke: var(--pt-leise); stroke-dasharray: 3 3; }
.pt-kurve figcaption { margin: .3rem .2rem 0; }
.pt-tip {
  position: absolute; top: .4rem; width: 280px; max-width: 100%; display: flex; flex-direction: column; gap: .1rem; pointer-events: none;
  background: var(--pt-tinte); color: #fff; border-radius: var(--pt-radius); padding: .45rem .65rem; font-size: .8rem; z-index: 2;
}
.pt-tip-arbeit { color: rgba(255, 255, 255, .85); }

/* Tabelle: schlicht, Gitter sichtbar */
.pt-tabelle { border-collapse: collapse; width: 100%; background: var(--pt-flaeche); font-size: .88rem; margin: .3rem 0; }
.pt-tabelle th, .pt-tabelle td { border: 1px solid var(--pt-linie); padding: .3rem .5rem; text-align: left; overflow-wrap: anywhere; }
.pt-tabelle th { font-weight: 900; background: var(--pt-papier); }
.pt-tabelle td + td, .pt-tabelle th + th { text-align: right; }
.pt-tabelle-auf { margin: .3rem 0 0; }
.pt-tabelle-auf summary, .pt-wie summary { cursor: pointer; }

/* Ziele */
.pt-ziele { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; }
.pt-ziel { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .8rem; }
.pt-ziel-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin: 0; }
.pt-wie { margin-top: .3rem; }
.pt-hebel dd { margin-bottom: .5rem; }
.pt-mehr h4 { font-size: 1rem; margin: 1.1rem 0 .4rem; }

/* Mehr erfahren (03.12.2026): Klappen im Start — Kopf als Zeile mit ▸/▾ wie die Vorhaben-Karte, Inhalt darunter */
.pt-mehr { border-top: 1px solid var(--pt-linie); padding: .2rem 0; }
.pt-mehr:last-of-type { border-bottom: 1px solid var(--pt-linie); }
.pt-mehr-kopf { display: flex; align-items: baseline; gap: .5rem; cursor: pointer; list-style: none; padding: .5rem 0; }
.pt-mehr-kopf::-webkit-details-marker { display: none; }
.pt-mehr-kopf::before { content: "▸"; flex: none; color: var(--pt-leise); }
.pt-mehr[open] > .pt-mehr-kopf::before { content: "▾"; }
.pt-mehr-kopf h3 { margin: 0; font-size: 1.05rem; }
.pt-mehr[open] { padding-bottom: 1rem; }

/* Vorhaben: aufklappbare Karte wie die Auftragskarte */
.pt-vorhaben-liste { display: grid; gap: .5rem; }
.pt-vorhaben-liste .pt-auftrag { max-width: none; margin: 0; }
.pt-vorhaben { padding: .55rem .9rem; }
.pt-vorhaben-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; cursor: pointer; list-style: none; }
.pt-vorhaben-kopf::-webkit-details-marker { display: none; }
.pt-vorhaben-kopf::before { content: "▸"; flex: none; color: var(--pt-leise); }
.pt-vorhaben[open] > .pt-vorhaben-kopf::before { content: "▾"; }
.pt-vorhaben-kopf .pt-auftrag-titel { flex: 1; font-weight: 300; }
.pt-vorhaben .pt-steckbrief { margin: .6rem 0 .3rem; font-size: .92rem; }
.pt-vorhaben .pt-knoepfe { margin: .4rem 0 .2rem; }
.pt-zustand-vorschlag { background: var(--pt-gelb); }
.pt-zustand-haupt { background: var(--pt-petrol); color: #fff; }
.pt-urteil-gewirkt { background: var(--pt-gruen); }
.pt-urteil-ohne { background: #e4e2dc; }
.pt-urteil-nicht_messbar { background: var(--pt-flaeche); box-shadow: inset 0 0 0 1px rgba(47, 47, 48, .35); }

/* Anteile (woher die Besucher kommen): Name, Zahl, ein Balken in einer Farbe */
.pt-anteile { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; max-width: 34rem; }
.pt-anteile li { display: grid; grid-template-columns: 1fr auto; gap: 0 .6rem; }
.pt-anteil-wert { font-weight: 900; }
.pt-anteil-balken { grid-column: 1 / -1; height: .5rem; background: var(--pt-flaeche); border-radius: var(--pt-radius); }
.pt-anteil-balken > span { display: block; height: 100%; background: var(--pt-gruen-dunkel); border-radius: var(--pt-radius); }

/* Pläne */
.pt-plaene { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .8rem; margin-top: .4rem; }
.pt-plan { display: flex; flex-direction: column; gap: .4rem; border: 1px solid var(--pt-linie); border-radius: var(--pt-radius); padding: .7rem .9rem .8rem; }
.pt-plan-gewaehlt { border: 2px solid var(--pt-gruen-dunkel); }
.pt-plan-kopf { display: flex; flex-direction: column; gap: .1rem; margin: 0; }
.pt-plan-kopf strong { font-size: 1.15rem; }
.pt-plan .pt-paket-liste { flex: 1; font-size: .9rem; }
.pt-plan .pt-knopf { align-self: flex-start; }
.pt-plan-marke { margin: 0; font-weight: 900; color: var(--pt-gruen-dunkel); }
.pt-paket h1 { margin-top: 0; }
.pt-paket h2 { font-size: 1.05rem; margin: 1.3rem 0 .3rem; }

/* breit: Leiste links, Inhalt rechts */
/* ---------- Einstiegsseite (ohne Sitzung, 03.12.2026): Vorstellung + Anmeldekarte ---------- */
/* Am Handy: Intro · Anmeldung · Vorteile · Zugang. Ab 900px: links Intro und Vorteile, rechts die Karte (mitlaufend). */
.pt-start { height: auto; min-height: 100vh; padding: 32px 16px 24px; }
.pt-start-raster {
  max-width: 1080px; margin: 0 auto; display: grid; gap: 28px;
  grid-template-areas: "intro" "karte" "mehr" "zugang" "fuss";
}
.pt-start-intro { grid-area: intro; }
.pt-start-intro h1 { font-size: 2.1rem; margin: .3em 0 .4em; }
.pt-start .pt-karte { grid-area: karte; margin: 0; max-width: none; }
.pt-start .pt-karte h2 { font-size: 1.4rem; margin: 0 0 .4rem; }
.pt-start-mehr { grid-area: mehr; }
.pt-vorteile { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pt-vorteile li { background: var(--pt-flaeche); border-radius: var(--pt-radius); border-left: 3px solid var(--pt-gruen); padding: 14px 18px; }
.pt-vorteile strong { display: block; margin-bottom: .2rem; }
.pt-start-bild { margin: 28px 0 0; }
.pt-start-bild img { display: block; width: 100%; height: auto; border-radius: var(--pt-radius); border: 1px solid var(--pt-linie); }
.pt-start-bild figcaption { color: var(--pt-leise); font-size: .85rem; margin-top: .4rem; }
.pt-start-zugang { grid-area: zugang; border-top: 1px solid var(--pt-linie); padding-top: 24px; }
.pt-start-zugang h2 { font-size: 1.4rem; margin: 0 0 .3rem; }
.pt-start-zugang p { margin: 0 0 1rem; max-width: 62ch; }
.pt-start-fuss { grid-area: fuss; }
@media (min-width: 900px) {
  .pt-start { padding: 64px 32px 32px; }
  .pt-start-raster {
    grid-template-columns: minmax(0, 1fr) 400px; column-gap: 56px;
    grid-template-areas: "intro karte" "mehr karte" "zugang zugang" "fuss fuss";
  }
  .pt-start-intro h1 { font-size: 2.6rem; }
  .pt-start .pt-karte { align-self: start; }
  .pt-vorteile { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) and (min-height: 600px) {
  .pt-start .pt-karte { position: sticky; top: 24px; }
}

@media (min-width: 900px) {
  .pt-chat { display: grid; grid-template-columns: 13rem 1fr; grid-template-rows: auto 1fr auto; }
  .pt-kopf { grid-column: 1 / -1; }
  .pt-bereiche {
    grid-column: 1; grid-row: 2 / 4; flex-direction: column; justify-content: flex-start; gap: 0;
    border-top: 0; border-right: 1px solid var(--pt-linie); padding: 1rem 0;
  }
  .pt-bereich-knopf { font-size: 1rem; padding: .55rem 1.2rem; border-top: 0; border-left: 3px solid transparent; }
  .pt-bereich-knopf[aria-current="page"] { border-left-color: var(--pt-gruen-dunkel); background: var(--pt-papier); }
  .pt-verlauf-huelle { grid-column: 2; grid-row: 2; padding: 18px 28px 8px; }
  .pt-eingabe { grid-column: 2; grid-row: 3; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .pt-senden-knopf { padding: .7em 1em; }
  .pt-blase { max-width: 92%; }
  .pt-steckbrief { grid-template-columns: 1fr; }
  .pt-steckbrief dd { margin-bottom: .3rem; }
}

/* Druck (Monatsbericht): steht am Ende, damit es die Regeln oben sicher überschreibt — nur der Bericht, mehrseitig möglich */
@media print {
  html, body { height: auto; }
  body { background: var(--pt-flaeche); }
  .pt-chat { display: block; height: auto; }
  .pt-kopf, .pt-bereiche, .pt-bereich:not(#b-hosting), .pt-fuss-seite, .pt-eingabe, .pt-hinweis-ki, .pt-verlauf, .pt-paket > :not(.pt-bericht), .pt-bericht .pt-klein { display: none !important; }
  .pt-verlauf-huelle { overflow: visible; padding: 0; }
  .pt-paket { box-shadow: none !important; border: 0 !important; padding: 0; }
  .pt-bericht { border: 0; margin: 0; }
}
