/* Partner-Portal: gemeinsame Oberflaeche fuer app/partner_*.php */
:root {
    color-scheme: light;
    --pp-bg: #f2f4f7;
    --pp-flaeche: #ffffff;
    --pp-flaeche-2: #f7f8fa;
    --pp-rand: #e2e6ec;
    --pp-text: #1b222c;
    --pp-still: #667180;
    --pp-akzent: #d5161a;
    --pp-akzent-weich: #fdeaea;
    --pp-warn: #805400;
    --pp-warn-weich: #fbf2d8;
    --pp-gut: #177245;
    --pp-gut-weich: #e4f5ec;
    --pp-seite: #14181f;
    --pp-schatten: 0 1px 2px rgba(20, 30, 50, .05);
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --pp-bg: #0f1318;
    --pp-flaeche: #191f27;
    --pp-flaeche-2: #20262f;
    --pp-rand: #2c343f;
    --pp-text: #eef1f5;
    --pp-still: #9aa5b3;
    --pp-akzent: #ff6b6e;
    --pp-akzent-weich: #3a1a1c;
    --pp-warn: #f0c75e;
    --pp-warn-weich: #33291a;
    --pp-gut: #62d49b;
    --pp-gut-weich: #16302a;
    --pp-seite: #0b0e12;
    --pp-schatten: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Nunito Sans", -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.45; background: var(--pp-bg); color: var(--pp-text); }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pp-akzent); outline-offset: 2px; }
.pp-i { width: 18px; height: 18px; flex-shrink: 0; }
.pp-still { color: var(--pp-still); font-size: 13px; }

/* Rahmen */
.pp-shell { display: flex; min-height: 100vh; }
.pp-side { position: sticky; top: 0; width: 216px; height: 100vh; flex-shrink: 0; display: flex; flex-direction: column; padding: 20px 12px 14px; background: var(--pp-seite); color: #fff; }
.pp-brand { padding: 0 10px 22px; }
.pp-brand img { display: block; width: 130px; height: auto; margin-bottom: 8px; }
.pp-brand span { color: #93a0af; font-size: 12.5px; font-weight: 700; }
.pp-mobil-logo { display: none; }
.pp-nav { display: flex; flex-direction: column; gap: 3px; }
.pp-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #b7c0cc; font-weight: 700; text-decoration: none; }
.pp-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.pp-nav a.is-aktiv { background: rgba(228, 24, 28, .24); color: #ff9a9c; }
.pp-side-fuss { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.pp-konto { display: flex; align-items: center; gap: 9px; padding: 10px; margin-bottom: 4px; border-top: 1px solid rgba(255, 255, 255, .1); }
.pp-konto .pp-avatar { background: rgba(255, 255, 255, .12); color: #fff; }
.pp-konto-text { min-width: 0; display: flex; flex-direction: column; }
.pp-konto-text strong, .pp-konto-text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pp-konto-text small { color: #93a0af; }
.pp-side-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: #b7c0cc; font-weight: 600; text-decoration: none; cursor: pointer; }
.pp-side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.pp-main { flex: 1 1 auto; min-width: 0; padding: 24px 28px 48px; }

/* Kopf + Werkzeuge */
.pp-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.pp-kopf h1 { font-size: 23px; font-weight: 800; line-height: 1.2; }
.pp-kopf p { color: var(--pp-still); margin-top: 2px; }
.pp-gruppe { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: var(--pp-flaeche); border: 1px solid var(--pp-rand); border-radius: 9px; }
.pp-gruppe a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; min-width: 32px; padding: 0 10px; border-radius: 6px; font-weight: 700; font-size: 13px; color: var(--pp-still); text-decoration: none; }
.pp-gruppe a:hover { background: var(--pp-flaeche-2); color: var(--pp-text); }
.pp-gruppe a.is-aktiv { background: var(--pp-text); color: var(--pp-flaeche); }
.pp-monat { min-width: 138px; text-align: center; font-weight: 800; }
.pp-werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pp-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; }
.pp-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 11px; border: 1px solid var(--pp-rand); border-radius: 8px; background: var(--pp-flaeche); font-size: 13px; font-weight: 700; color: var(--pp-still); cursor: pointer; }
.pp-chip:hover { color: var(--pp-text); }
.pp-chip[aria-pressed="true"] { border-color: var(--pp-text); color: var(--pp-text); box-shadow: inset 0 0 0 1px var(--pp-text); }
.pp-punkt { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pp-trenner { width: 1px; height: 20px; margin: 0 4px; background: var(--pp-rand); }
.pp-suche { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 10px; border: 1px solid var(--pp-rand); border-radius: 8px; background: var(--pp-flaeche); color: var(--pp-still); }
.pp-suche input { width: 190px; border: 0; outline: 0; background: none; color: var(--pp-text); }
.pp-auswahl { min-height: 34px; padding: 0 8px; border: 1px solid var(--pp-rand); border-radius: 8px; background: var(--pp-flaeche); font-weight: 600; }

/* Kennzahlen */
.pp-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; background: var(--pp-flaeche); border: 1px solid var(--pp-rand); border-radius: 12px; box-shadow: var(--pp-schatten); }
.pp-zahl { padding: 13px 16px; border-left: 1px solid var(--pp-rand); }
.pp-zahl:first-child { border-left: 0; }
.pp-zahl small { display: block; color: var(--pp-still); font-size: 12px; font-weight: 700; }
.pp-zahl strong { display: block; font-size: 23px; font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; }
.pp-zahl.is-warn strong { color: var(--pp-warn); }
.pp-balken { height: 5px; margin-top: 5px; background: var(--pp-flaeche-2); border-radius: 3px; overflow: hidden; }
.pp-balken i { display: block; height: 100%; background: var(--pp-gut); border-radius: 3px; }

/* Bereiche */
.pp-raster { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 18px; align-items: start; }
.pp-spalte { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pp-karte { background: var(--pp-flaeche); border: 1px solid var(--pp-rand); border-radius: 12px; box-shadow: var(--pp-schatten); overflow: hidden; }
.pp-karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--pp-rand); }
.pp-karte-kopf h2 { font-size: 14.5px; font-weight: 800; }
.pp-karte-kopf a { color: var(--pp-akzent); font-size: 13px; font-weight: 700; text-decoration: none; }
.pp-karte-kopf a:hover { text-decoration: underline; }
.pp-leer { padding: 22px 16px; color: var(--pp-still); text-align: center; }
.pp-hinweis { padding: 18px; background: var(--pp-flaeche); border: 1px solid var(--pp-rand); border-radius: 12px; color: var(--pp-still); }

/* Laufender Dienst */
.pp-jetzt { padding: 14px 16px; border-bottom: 1px solid var(--pp-rand); }
.pp-jetzt:last-child { border-bottom: 0; }
.pp-jetzt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-weight: 800; }
.pp-live { display: inline-flex; align-items: center; gap: 7px; }
.pp-live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pp-farbe, var(--pp-gut)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pp-farbe, #177245) 25%, transparent); }
.pp-fortschritt { height: 5px; margin-bottom: 10px; background: var(--pp-flaeche-2); border-radius: 3px; overflow: hidden; }
.pp-fortschritt i { display: block; height: 100%; border-radius: 3px; background: var(--pp-farbe, var(--pp-gut)); }

/* Zeilen */
.pp-zeile { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px 10px 19px; border: 0; border-bottom: 1px solid var(--pp-rand); background: none; color: inherit; text-align: left; text-decoration: none; }
.pp-zeile:last-child { border-bottom: 0; }
.pp-zeile::before { content: ""; position: absolute; left: 8px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--pp-farbe, var(--pp-rand)); }
:root[data-theme="dark"] .pp-zeile::before, :root[data-theme="dark"] .pp-punkt { filter: brightness(1.7) saturate(1.2); }
button.pp-zeile, a.pp-zeile { cursor: pointer; }
button.pp-zeile:hover, a.pp-zeile:hover { background: var(--pp-flaeche-2); }
.pp-zeile-zeit { flex: 0 0 96px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pp-zeile-zeit small { display: block; color: var(--pp-still); font-weight: 600; }
.pp-zeile-text { flex: 1 1 auto; min-width: 0; }
.pp-zeile-text strong { display: block; font-weight: 800; }
.pp-zeile-text small { display: block; color: var(--pp-still); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pp-marke { flex-shrink: 0; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pp-marke.is-offen { background: var(--pp-warn-weich); color: var(--pp-warn); }
.pp-marke.is-gut { background: var(--pp-gut-weich); color: var(--pp-gut); }
.pp-marke.is-still { background: var(--pp-flaeche-2); color: var(--pp-still); }

/* Personen */
.pp-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--pp-flaeche-2); color: var(--pp-still); font-size: 11px; font-weight: 800; }
.pp-person { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.pp-person-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pp-person-text small { color: var(--pp-still); }
.pp-person.is-offen .pp-avatar { background: var(--pp-warn-weich); color: var(--pp-warn); }
.pp-person.is-offen strong { color: var(--pp-warn); }
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--pp-rand); border-radius: 8px; background: var(--pp-flaeche); font-weight: 700; cursor: pointer; text-decoration: none; }
.pp-btn:hover { background: var(--pp-flaeche-2); }
.pp-btn:disabled { opacity: .55; cursor: default; }
.pp-btn-haupt { border-color: var(--pp-akzent); background: var(--pp-akzent); color: #fff; }
:root[data-theme="dark"] .pp-btn-haupt { color: #1a0e07; }
.pp-btn-haupt:hover { background: var(--pp-akzent); filter: brightness(.93); }
.pp-btn-klein { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.pp-btn-klein .pp-i { width: 14px; height: 14px; }
.pp-doc { display: inline-flex; align-items: center; gap: 6px; color: var(--pp-akzent); font-weight: 700; text-decoration: none; }
.pp-doc:hover { text-decoration: underline; }

/* Kalender */
.pp-kal-karte { background: var(--pp-flaeche); border: 1px solid var(--pp-rand); border-radius: 12px; overflow: hidden; box-shadow: var(--pp-schatten); }
table.pp-kal { width: 100%; table-layout: fixed; border-collapse: collapse; }
.pp-kal th { padding: 8px 0; background: var(--pp-flaeche-2); border-bottom: 1px solid var(--pp-rand); color: var(--pp-still); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pp-kal td { height: 112px; padding: 5px; vertical-align: top; border-right: 1px solid var(--pp-rand); border-bottom: 1px solid var(--pp-rand); }
.pp-kal tr td:last-child { border-right: 0; }
.pp-kal tr:last-child td { border-bottom: 0; }
.pp-kal td.is-leer { background: var(--pp-flaeche-2); }
.pp-kal-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-bottom: 3px; border-radius: 6px; color: var(--pp-still); font-size: 12px; font-weight: 800; }
.pp-kal td.is-heute .pp-kal-tag { background: var(--pp-akzent); color: #fff; }
.pp-eintrag { display: block; width: 100%; margin-bottom: 3px; padding: 3px 6px; border: 0; border-left: 3px solid var(--pp-farbe, #54626f); border-radius: 5px; background: var(--pp-flaeche-2); color: inherit; font-size: 11.5px; line-height: 1.35; text-align: left; text-decoration: none; cursor: pointer; }
.pp-eintrag:hover { background: var(--pp-rand); }
.pp-eintrag b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 800; }
.pp-eintrag span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--pp-still); }
.pp-eintrag span.is-offen { color: var(--pp-warn); font-weight: 800; }
.pp-eintrag.is-vorbei { opacity: .62; }

/* Liste */
.pp-tag { margin-bottom: 14px; }
.pp-tag-kopf { display: flex; align-items: center; gap: 8px; margin: 0 2px 6px; font-size: 13px; font-weight: 800; color: var(--pp-still); }
.pp-tag.is-heute .pp-tag-kopf { color: var(--pp-akzent); }
.pp-ansicht-kalender .pp-liste { display: none; }
.pp-zeile.is-vorbei .pp-zeile-zeit, .pp-zeile.is-vorbei strong { color: var(--pp-still); }

/* Tabelle Checklisten */
.pp-monat-kopf { padding: 8px 16px; background: var(--pp-flaeche-2); border-bottom: 1px solid var(--pp-rand); color: var(--pp-still); font-size: 12.5px; font-weight: 800; }

.pp-person.is-platzhalter .pp-avatar { background: none; border: 1px dashed var(--pp-still); }
.pp-person.is-platzhalter strong { color: var(--pp-still); font-weight: 700; }
.pp-plan-hinweis { margin-bottom: 14px; padding: 10px 14px; border: 1px dashed var(--pp-still); border-radius: 10px; color: var(--pp-still); font-weight: 600; }
.pp-plan-hinweis strong { color: var(--pp-text); font-weight: 800; }
.pp-panel-entwurf { margin: -8px 0 14px; color: var(--pp-still); font-size: 13px; font-weight: 700; }

/* Checkliste: Knopf am Dienst und Ansicht im Seitenpanel */
.pp-eintrag-wrap, .pp-zeile-wrap { position: relative; }
.pp-zeile-wrap { border-bottom: 1px solid var(--pp-rand); }
.pp-zeile-wrap:last-child { border-bottom: 0; }
.pp-zeile-wrap > .pp-zeile { border-bottom: 0; }
.pp-zeile-wrap.hat-knopf > .pp-zeile { padding-right: 48px; }
.pp-cl-knopf { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--pp-still); opacity: .7; }
.pp-cl-knopf:hover, .pp-cl-knopf:focus-visible { background: var(--pp-rand); color: var(--pp-akzent); opacity: 1; }
.pp-eintrag-wrap .pp-cl-knopf { top: 2px; right: 2px; width: 22px; height: 22px; }
.pp-eintrag-wrap .pp-cl-knopf .pp-i { width: 14px; height: 14px; }
.pp-eintrag-wrap:has(.pp-cl-knopf) .pp-eintrag { padding-right: 24px; }
.pp-zeile-wrap .pp-cl-knopf { top: 50%; right: 10px; width: 32px; height: 32px; margin-top: -16px; }
.pp-panel.is-breit { width: min(560px, 100%); }
.pp-cl-stand { margin-top: 14px; padding: 10px 12px; border-radius: 9px; background: var(--pp-gut-weich); color: var(--pp-gut); }
.pp-cl-stand.is-warn { background: var(--pp-warn-weich); color: var(--pp-warn); }
.pp-cl-stand strong { font-weight: 800; }
.pp-cl-stand ul { margin: 5px 0 0; padding-left: 18px; font-size: 13px; }
.pp-cl-zeile { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--pp-rand); font-size: 13px; }
.pp-cl-zeile:last-child { border-bottom: 0; }
.pp-cl-zeile b { flex-shrink: 0; max-width: 55%; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.pp-cl-zeile b.is-ja { color: var(--pp-gut); }
.pp-cl-zeile b.is-nein { color: var(--pp-warn); font-weight: 800; }

/* Schnellmodus Praktikantenplaetze */
.pp-modus-start { margin-left: auto; }
.pp-modus-leiste { position: sticky; top: 8px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--pp-gut); border-radius: 10px; background: var(--pp-gut-weich); }
.pp-modus-leiste strong { display: block; font-weight: 800; }
.pp-modus-leiste span { color: var(--pp-still); font-size: 13px; }
.pp-modus-marke { display: none !important; }
.pp-modus-aktiv .pp-modus-start { visibility: hidden; }
.pp-modus-aktiv .pp-modus-marke { display: block !important; flex-shrink: 0; margin-top: 2px; padding: 1px 6px; border-radius: 5px; font-size: 11.5px; font-weight: 800; color: var(--pp-still); }
.pp-modus-aktiv [data-platz="keiner"] .pp-modus-marke { border: 1px dashed var(--pp-gut); color: var(--pp-gut); }
.pp-modus-aktiv [data-platz="frei"] .pp-modus-marke { background: var(--pp-gut); color: #fff; }
:root[data-theme="dark"] .pp-modus-aktiv [data-platz="frei"] .pp-modus-marke { color: #0f1318; }
.pp-modus-aktiv [data-platz="vorbei"], .pp-modus-aktiv [data-platz="besetzt"] { opacity: .45; cursor: not-allowed; }
.pp-modus-aktiv [data-platz].is-laedt { opacity: .6; cursor: progress; }

/* Seitenpanel + Dialog */
.pp-panel-grund { position: fixed; inset: 0; z-index: 40; background: rgba(10, 14, 20, .45); }
.pp-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(420px, 100%); padding: 22px 20px; overflow-y: auto; background: var(--pp-flaeche); box-shadow: -14px 0 40px rgba(10, 14, 20, .2); transform: translateX(105%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
.pp-panel.is-offen { transform: none; visibility: visible; }
.pp-panel-zu { position: absolute; top: 14px; right: 14px; display: flex; padding: 6px; border: 0; border-radius: 8px; background: none; color: var(--pp-still); cursor: pointer; }
.pp-panel-zu:hover { background: var(--pp-flaeche-2); }
.pp-panel-titel { display: flex; align-items: center; gap: 8px; padding-right: 34px; font-size: 18px; font-weight: 800; }
.pp-panel-zeit { margin: 3px 0 18px; color: var(--pp-still); font-weight: 600; }
.pp-panel h3 { margin: 16px 0 6px; color: var(--pp-still); font-size: 12px; font-weight: 800; }
.pp-panel .pp-prakti-add { margin-top: 8px; }
.pp-dialog { width: min(420px, calc(100% - 32px)); padding: 20px; border: 0; border-radius: 14px; background: var(--pp-flaeche); color: var(--pp-text); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.pp-dialog::backdrop { background: rgba(10, 14, 20, .5); }
.pp-dialog h2 { font-size: 17px; font-weight: 800; }
.pp-dialog p { margin: 6px 0 14px; color: var(--pp-still); }
.pp-dialog textarea { display: block; width: 100%; padding: 9px 11px; border: 1px solid var(--pp-rand); border-radius: 8px; background: var(--pp-flaeche-2); resize: vertical; }
.pp-dialog-fuss { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.pp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100% - 32px); padding: 10px 15px; border-radius: 9px; background: #14181f; color: #fff; font-weight: 700; transform: translate(-50%, 80px); opacity: 0; transition: transform .2s ease, opacity .2s; pointer-events: none; }
.pp-toast.is-offen { transform: translate(-50%, 0); opacity: 1; }
[hidden] { display: none !important; }

/* Anmeldung */
.pp-login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 1fr); min-height: 100vh; background: var(--pp-flaeche); }
.pp-login-seite { display: flex; align-items: center; justify-content: center; padding: 44px 52px; background: #14181f; color: #fff; }
.pp-login-inhalt { width: min(440px, 100%); }
.pp-login-logo { display: block; width: 150px; height: auto; margin-bottom: 40px; }
.pp-login-seite h1 { font-size: 32px; font-weight: 800; line-height: 1.18; }
.pp-login-punkte { display: grid; gap: 18px; margin: 30px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); list-style: none; color: #aeb7c3; }
.pp-login-punkte li { display: flex; gap: 12px; }
.pp-login-punkte .pp-i { margin-top: 2px; color: #ff6b6e; }
.pp-login-punkte strong { display: block; color: #fff; }
.pp-login-rechts { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.pp-login-form { width: min(350px, 100%); }
.pp-login-form h2 { font-size: 24px; font-weight: 800; }
.pp-login-form > p { margin: 3px 0 22px; color: var(--pp-still); }
.pp-feld { position: relative; margin-bottom: 14px; }
.pp-feld label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 700; }
.pp-feld input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--pp-rand); border-radius: 9px; background: var(--pp-flaeche); font-size: 15px; }
.pp-feld input:focus { outline: 0; border-color: var(--pp-akzent); box-shadow: 0 0 0 3px var(--pp-akzent-weich); }
.pp-feld .pp-pw { padding-right: 46px; }
.pp-pw-knopf { position: absolute; right: 5px; bottom: 5px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 7px; background: none; color: var(--pp-still); cursor: pointer; }
.pp-pw-knopf:hover { background: var(--pp-flaeche-2); }
.pp-caps { display: none; margin-top: 5px; color: var(--pp-warn); font-size: 12.5px; font-weight: 700; }
.pp-login-form .pp-btn-haupt { width: 100%; height: 46px; margin-top: 6px; font-size: 15px; }
.pp-meldung { margin-bottom: 16px; padding: 10px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600; }
.pp-meldung.is-danger { background: #fdecea; color: #8f1d1d; }
.pp-meldung.is-warning { background: #fff3d9; color: #6b4b00; }
.pp-meldung.is-success { background: var(--pp-gut-weich); color: var(--pp-gut); }
.pp-login-hilfe { margin-top: 18px; color: var(--pp-still); font-size: 13px; text-align: center; }
.pp-login-hilfe a { color: var(--pp-akzent); font-weight: 700; }

@media (max-width: 1060px) {
    .pp-raster { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
    .pp-login { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .pp-login-seite { justify-content: flex-start; padding: 22px 24px; }
    .pp-login-logo { margin-bottom: 0; }
    .pp-login-seite h1, .pp-login-punkte { display: none; }
    .pp-login-rechts { align-items: flex-start; padding-top: 34px; }
}
@media (max-width: 760px) {
    .pp-shell { display: block; }
    .pp-side { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 30; width: auto; height: auto; flex-direction: row; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
    .pp-brand, .pp-konto, .pp-side-fuss #pp-theme { display: none; }
    .pp-nav { flex: 1 1 auto; flex-direction: row; gap: 0; }
    .pp-nav a, .pp-side-link { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 2px; min-height: 50px; padding: 4px 2px; font-size: 11px; font-weight: 700; }
    .pp-side-fuss { flex: 0 0 25%; margin: 0; }
    .pp-main { padding: 0 16px 90px; }
    .pp-mobil-logo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -16px 16px; padding: 11px 16px; background: var(--pp-seite); color: #93a0af; font-size: 12.5px; font-weight: 700; }
    .pp-mobil-logo img { display: block; width: 104px; height: auto; }
    .pp-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pp-zahl:nth-child(odd) { border-left: 0; }
    .pp-zahl:nth-child(n+3) { border-top: 1px solid var(--pp-rand); }
    .pp-kopf .pp-gruppe-ansicht { display: none; }
    .pp-ansicht-kalender .pp-kal-karte { display: none; }
    .pp-ansicht-kalender .pp-liste { display: block; }
    .pp-monat { min-width: 120px; }
    .pp-suche { flex: 1 1 100%; }
    .pp-suche input { width: 100%; }
    .pp-filter { flex-wrap: nowrap; margin-right: -16px; padding-right: 16px; overflow-x: auto; }
    .pp-chip { flex-shrink: 0; white-space: nowrap; }
    .pp-zeile { flex-wrap: wrap; }
    .pp-zeile-zeit { flex-basis: 84px; }
    .pp-zeile-text { flex-basis: calc(100% - 200px); }
}
@media (prefers-reduced-motion: reduce) {
    .pp-panel, .pp-toast { transition: none; }
}

/* Fahrzeuge: Pinnwand und nuetzliche Links */
.ppf-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ppf-tabs a { padding: 7px 13px; border-radius: 999px; background: var(--pp-flaeche); border: 1px solid var(--pp-rand); color: var(--pp-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.ppf-tabs a.is-aktiv { background: var(--pp-text); border-color: var(--pp-text); color: var(--pp-flaeche); }
.ppf-raster { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ppf-karte { padding: 18px; }
.ppf-karte h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.ppf-karte h2 span { font-size: 13px; font-weight: 600; color: var(--pp-still); }
.ppf-leise { color: var(--pp-still); font-size: 13px; margin: 0 0 10px; }
.ppf-pin { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--pp-rand); }
.ppf-pin form { margin: 0; }
.ppf-haken { width: 26px; height: 26px; padding: 0; flex: 0 0 auto; border: 1.5px solid var(--pp-rand); border-radius: 50%; background: var(--pp-flaeche); color: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ppf-haken:hover { border-color: var(--pp-gut); color: var(--pp-gut); }
.ppf-pin.ist-erledigt .ppf-haken { background: var(--pp-gut); border-color: var(--pp-gut); color: #fff; }
.ppf-pin-inhalt { flex: 1 1 auto; min-width: 0; }
.ppf-pin-text { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.ppf-pin.ist-erledigt .ppf-pin-text { color: var(--pp-still); text-decoration: line-through; }
.ppf-pin-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; font-size: 12px; color: var(--pp-still); }
.ppf-faellig { font-weight: 700; color: var(--pp-text); }
.ppf-aendern { margin-top: 4px; }
.ppf-aendern summary { font-size: 12px; font-weight: 700; color: var(--pp-still); cursor: pointer; }
.ppf-erledigte { margin-top: 8px; }
.ppf-erledigte summary { font-size: 13px; font-weight: 700; color: var(--pp-still); cursor: pointer; padding: 6px 0; }
.ppf-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px !important; }
.ppf-form label { display: block; margin: 0; font-size: 12px; font-weight: 700; color: var(--pp-still); flex: 1 1 150px; }
.ppf-form textarea, .ppf-form input[type=text], .ppf-form input[type=date] { display: block; width: 100%; box-sizing: border-box; margin-top: 3px; padding: 9px 11px; border: 1px solid var(--pp-rand); border-radius: 8px; background: var(--pp-flaeche); color: var(--pp-text); font: inherit; font-size: 14px; }
.ppf-form textarea { margin-top: 0; resize: vertical; }
.ppf-form-reihe { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.ppf-neu { padding-top: 12px; border-top: 1px solid var(--pp-rand); margin-top: 10px !important; }
.ppf-loeschen { border: 0; background: none; padding: 4px 0; color: var(--pp-warn); font-size: 12px; font-weight: 700; cursor: pointer; }
.ppf-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--pp-rand); font-size: 14px; font-weight: 600; }
.ppf-link a { min-width: 0; overflow-wrap: anywhere; color: var(--pp-text); }
.ppf-link form { margin: 0; flex: 0 0 auto; }
@media (max-width: 860px) {
    .ppf-raster { grid-template-columns: minmax(0, 1fr); }
    .ppf-form textarea, .ppf-form input[type=text], .ppf-form input[type=date] { font-size: 16px; }
}
.ppf-form > label { flex: none; }
.ppf-wichtig { font-weight: 800; color: var(--pp-warn); }
.ppf-form-ende { justify-content: space-between; align-items: center; }
.ppf-form .ppf-haken-label { flex: none; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--pp-text); cursor: pointer; }

/* Fahrzeuge: Ueberblick */
.ppf-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ppf-kachel { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--pp-rand); border-radius: 12px; background: var(--pp-flaeche); box-shadow: var(--pp-schatten); color: inherit; text-decoration: none; }
.ppf-kachel:hover { border-color: var(--pp-still); }
.ppf-kachel-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ppf-kachel-kopf strong { min-width: 0; font-size: 16px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.ppf-stand { flex-shrink: 0; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.ppf-stand.is-gut { background: var(--pp-gut-weich); color: var(--pp-gut); }
.ppf-stand.is-offen { background: var(--pp-warn-weich); color: var(--pp-warn); }
.ppf-stand.is-ueber { background: var(--pp-akzent-weich); color: var(--pp-akzent); }
.ppf-stand.is-frei { background: var(--pp-flaeche-2); color: var(--pp-still); }
.ppf-segmente { display: flex; gap: 3px; min-height: 5px; }
.ppf-segmente i { flex: 1; height: 5px; border-radius: 3px; background: var(--pp-rand); }
.ppf-segmente i.is-gut { background: var(--pp-gut); }
.ppf-segmente i.is-ueber { background: var(--pp-akzent); }
.ppf-kachel-fuss { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; color: var(--pp-still); font-size: 12.5px; }
.ppf-zahl-ueber strong { color: var(--pp-akzent); }
.pp-filter a.pp-chip { text-decoration: none; }
.ppf-breit { grid-column: 1 / -1; }
.ppf-auswahl-kopf { display: flex; flex-wrap: wrap; gap: 6px; }
.ppf-auswahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.ppf-form .ppf-auswahl label { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 10px; border: 1px solid var(--pp-rand); border-radius: 8px; color: var(--pp-text); font-size: 14px; }
.ppf-auswahl input { accent-color: var(--pp-akzent); }
.ppf-form input[type=month] { display: block; width: 100%; box-sizing: border-box; min-height: 36px; margin-top: 4px; padding: 6px 10px; border: 1px solid var(--pp-rand); border-radius: 8px; background: var(--pp-flaeche); }
