/* Presenti – Gestaltung (hell, freundlich, runde Karten).
   body.p-page: alle Seiten ausser der Spielerseite (body.pp-page, weiter unten). */

* { box-sizing: border-box; }
/* clip statt hidden: hidden macht body zum Scroll-Container, dann greift
   position: sticky (Menü der Team-Verwaltung) nicht mehr. */
html { overflow-x: clip; scroll-padding-top: 24px; }
body { margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; }

/* Gemeinsam für beide Seitentypen */
.flash { background: #12704F; color: #fff; text-align: center; padding: 12px 16px; font-weight: 600; font-size: 15px; }
.flash-error { background: #B3432F; }
.dev-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #7A4F00; background: #FFF1D6; border-radius: 999px; vertical-align: middle; }
.scroll-top-btn { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; border: none; background: #12704F; color: #fff; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 8px 20px -6px rgba(23, 32, 27, 0.35); z-index: 20; transition: transform 0.15s ease, background 0.15s ease; }
.scroll-top-btn:hover { background: #0B5A3F; transform: translateY(-2px); }
.scroll-top-btn[hidden] { display: none; }

body.p-page {
  --g: #12704F; --gd: #0B5A3F; --mint: #E6F4EC; --soft: #EDF2EF;
  --tx: #17201B; --tx2: #45514A; --mu: #56635C; --ln: #E3E8E5; --ln2: #EEF1EF;
  --bad: #A33A26; --badbg: #FBEAE6;
  background: radial-gradient(1100px 520px at 90% -120px, #DDEFE5 0%, rgba(221, 239, 229, 0) 70%) no-repeat, #F5F8F6;
  min-height: 100vh; color: var(--tx);
  font-family: 'Figtree', system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.5;
}
.p-page h1, .p-page h2, .p-page h3 { margin: 0; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; color: var(--tx); }
.p-page p { margin: 0; }
.p-page a { color: var(--g); }
.p-page a:hover { color: var(--gd); }
.p-page a.p-btn:hover { color: #fff; }
.p-page a.p-btn-ghost:hover, .p-page a.p-btn-line:hover { color: var(--tx); }
.p-page a.p-btn-danger:hover { color: var(--bad); }
.p-page .p-cta a.p-btn:hover { color: var(--g); }
.p-page button { font-family: inherit; }
.p-page svg { width: 20px; height: 20px; flex-shrink: 0; }
.p-page :is(button, a, select, input, textarea, summary):focus-visible { outline: 3px solid #9FD8BE; outline-offset: 2px; }

/* Raster & Abstände */
.p-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.p-mid { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.p-narrow { max-width: 560px; margin: 0 auto; padding: 0 24px; }
.p-page-main { padding-top: 40px; padding-bottom: 72px; }
.p-stack { display: flex; flex-direction: column; gap: 24px; }
.p-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.p-row-tight { gap: 8px; }
.p-row-between { justify-content: space-between; }
.p-row-end { align-items: flex-end; }
.p-grow { flex: 1 1 320px; }
.p-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.p-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p-grid-2[hidden] { display: none; }
.p-mt { margin-top: 14px; }
.p-mt-lg { margin-top: 28px; }
.p-inline { display: inline-flex; margin: 0; }
.p-block { display: block; }
.p-center { text-align: center; }

/* Text */
.p-h1 { font-size: 34px; }
.p-lead { font-size: 15px; color: var(--tx2); margin: 6px 0 18px !important; }
.p-lead-lg { font-size: 17px; margin-bottom: 24px !important; }
.p-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--g); text-transform: uppercase; letter-spacing: 0.07em; }
.p-muted { color: var(--mu); }
.p-small { font-size: 14px; }
.p-bold { font-weight: 700; }
.p-stat { font-size: 36px; font-weight: 800; }
.p-team-name { font-size: 24px; font-weight: 800; }
.p-text-link { font-weight: 600; }

/* Kopfzeile */
/* Kopfzeile halbtransparent: der getönte Hintergrund samt Mint-Schimmer
   scheint durch, wirkt wärmer als reines Weiss. */
.p-head { border-bottom: 1px solid rgba(18, 112, 79, 0.10); background: rgba(255, 255, 255, 0.45); }
/* Kopfzeile bleibt oben stehen (auf dem Handy nicht, dort ist sie mehrzeilig). */
@media (min-width: 721px) {
  html { scroll-padding-top: 96px; }
  .p-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.p-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.p-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; }
.p-page .p-logo { color: var(--tx); }
.p-logo-mark { width: 34px; height: 34px; display: flex; flex-shrink: 0; }
.p-page .p-logo-mark svg { width: 100%; height: 100%; }
.p-crumb { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-crumb-sep { color: #C9D2CD; font-size: 22px; }
.p-crumb-team { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; }
.p-crumb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-club { width: 32px; height: 32px; border-radius: 9px; background: var(--soft); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--g); object-fit: contain; }
.p-club svg { width: 18px; height: 18px; }
.p-club-lg { width: 48px; height: 48px; border-radius: 14px; }
.p-club-lg svg { width: 24px; height: 24px; }
.p-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.p-nav-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.p-page .p-nav-link { color: var(--tx); }
.p-nav-link:hover { background: var(--soft); }
.p-nav-btn { border: none; background: none; font: inherit; font-weight: 600; }
.p-nav-link::-webkit-details-marker { display: none; }

/* Konto-Menü */
.p-menu { position: relative; }
.p-menu[open] > .p-nav-link { background: var(--soft); }
.p-menu-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; background: #fff; border: 1px solid var(--ln); border-radius: 18px; padding: 8px; box-shadow: 0 16px 40px rgba(23, 32, 27, 0.14); z-index: 30; }
.p-menu-email { padding: 10px 12px; font-size: 14px; color: var(--mu); overflow-wrap: anywhere; border-bottom: 1px solid var(--ln2); margin-bottom: 6px; }
.p-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: none; border-radius: 12px; background: none; font: inherit; font-weight: 600; text-align: left; cursor: pointer; color: var(--tx); }
.p-menu-item:hover { background: var(--soft); }
.p-menu-danger { color: var(--bad); }
.p-menu-danger:hover { background: var(--badbg); }

/* Buttons */
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: none; border-radius: 999px; background: var(--g); font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.p-page .p-btn { color: #fff; }
.p-btn:hover { background: var(--gd); }
.p-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.p-btn.is-loading { opacity: 0.7; cursor: progress; }
.p-btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.p-btn-sm svg { width: 18px; height: 18px; }
.p-page .p-btn-ghost { background: var(--soft); color: var(--tx); }
.p-btn-ghost:hover { background: var(--mint); }
.p-page .p-btn-line { background: #fff; color: var(--tx); box-shadow: inset 0 0 0 1.5px var(--ln); }
.p-btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--g); }
.p-page .p-btn-danger { background: #fff; color: var(--bad); box-shadow: inset 0 0 0 1.5px #F0C9C0; }
.p-btn-danger:hover { background: var(--badbg); }
.p-btn-red { background: #B3432F; }
.p-btn-red:hover { background: #8F2F1E; }
.p-btn-full { width: 100%; }
.p-brand-icon { width: 20px; height: 20px; flex: none; }
/* Trenner "oder" zwischen Google-Button und Formular */
.p-or { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--mu); }
.p-or::before, .p-or::after { content: ""; flex: 1; height: 1px; background: var(--ln); }
.p-icon-btn { width: 44px; height: 44px; border: none; border-radius: 999px; background: transparent; color: var(--tx2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.p-icon-btn:hover { background: var(--soft); color: var(--tx); }
.p-icon-btn svg { width: 18px; height: 18px; }

/* Karten */
.p-card { background: #fff; border: 1px solid var(--ln); border-radius: 24px; padding: 28px; }
.p-card-soft { background: var(--soft); border-radius: 24px; padding: 24px 28px; }
.p-card-mint { background: var(--mint); border-radius: 24px; padding: 28px; }
.p-card-focus { border: 2px solid var(--g); }
.p-card h2, .p-card-mint h2, .p-card-soft h2 { font-size: 22px; }
.p-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.p-subcard { margin-top: 24px; }
.p-subcard h3 { font-size: 17px; }
.p-center-card { display: flex; flex-direction: column; gap: 16px; padding: 36px; }
.p-center-card .p-lead { margin: 0 !important; font-size: 16px; }
.p-card-ok { background: var(--mint); border-color: transparent; }
.p-card-ok .p-tile { background: #fff; }
.p-empty-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.p-tile { width: 48px; height: 48px; border-radius: 16px; background: var(--mint); color: var(--g); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.p-tile svg { width: 24px; height: 24px; }
.p-tile-white { background: #fff; }
.p-feature .p-tile-white { background: var(--mint); }
.p-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--tx2); white-space: nowrap; }
.p-badge-g { background: var(--mint); color: var(--gd); }
.p-badge-b { background: #EAEDF8; color: #33428F; }
.p-badge-o { background: #FFF1D6; color: #7A4F00; }
/* Rollen im Kader und in der Statistik */
.p-badge-trainer { background: #EAEDF8; color: #33428F; }
.p-badge-staff { background: #FFF1D6; color: #7A4F00; }
.p-chevron { display: inline-flex; color: var(--mu); transition: transform 0.15s ease; }
.p-chevron svg { width: 16px; height: 16px; }
[aria-expanded="true"] .p-chevron, details[open] > summary svg { transform: rotate(180deg); }

/* Hinweise */
.p-alert { padding: 14px 16px; border-radius: 16px; font-size: 15px; font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.p-alert[hidden] { display: none; }
.p-alert-ok { background: var(--mint); color: var(--gd); }
.p-alert-warn { background: #FFF1D6; color: #6B4500; }
.p-alert-bad { background: var(--badbg); color: #8F2F1E; }
.p-alert-text { flex: 1 1 240px; }

/* Formulare */
.p-form { display: flex; flex-direction: column; gap: 18px; }
.p-form-narrow { max-width: 520px; }
.p-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: none; padding: 0; margin: 0; }
.p-label { font-size: 14px; font-weight: 700; padding: 0; }
.p-label-gap { margin-bottom: 10px; }
.p-input { width: 100%; min-height: 52px; border: 1.5px solid #D5DDD8; border-radius: 14px; background: #fff; padding: 0 14px; font: inherit; font-size: 16px; color: var(--tx); }
.p-input-short { max-width: 160px; }
.p-input:focus { border-color: var(--g); outline: none; }
textarea.p-input { padding: 12px 14px; min-height: 96px; resize: vertical; }
.p-file { padding: 12px 14px; }
.p-input-auto { width: auto; min-width: 150px; }
.p-input-row { display: flex; gap: 10px; }
.p-input-row .p-btn { min-height: 52px; }
.p-hint { font-size: 13px; color: var(--mu); }
.p-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: #E6EBE8; border-radius: 999px; padding: 4px; max-width: 360px; }
.p-seg label { position: relative; display: block; cursor: pointer; }
.p-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.p-seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--tx2); }
.p-seg input:checked + span { background: #fff; color: var(--g); box-shadow: 0 1px 3px rgba(23, 32, 27, 0.12); }
.p-seg input:focus-visible + span { outline: 3px solid #9FD8BE; outline-offset: 2px; }
.p-check-x { width: 36px; height: 36px; border: none; border-radius: 999px; background: none; display: inline-flex; align-items: center; justify-content: center; color: var(--mu); cursor: pointer; }
.p-check-x:hover { background: rgba(23, 32, 27, 0.07); color: var(--bad); }
.p-check-x svg { width: 12px; height: 12px; }
.p-check-edit:hover { color: var(--tx); }
.p-check-edit svg { width: 14px; height: 14px; }
.p-kader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.p-kader-item { display: flex; align-items: center; gap: 2px; min-height: 48px; padding: 0 4px 0 14px; border: 1.5px solid var(--ln); border-radius: 14px; background: #fff; }
.p-kader-item:has(input:checked) { border-color: var(--g); background: var(--mint); }
.p-kader-name { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.p-kader-name input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--g); margin: 0; }
.p-kader-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx2); }
.p-kader-item:not(:has(input:checked)) .p-kader-name span { color: var(--mu); }
.p-kader-item .p-check-x, .p-kader-item .p-badge { flex-shrink: 0; }

/* Listen & Tabellen */
.p-list { border: 1px solid var(--ln); border-radius: 20px; overflow: hidden; background: #fff; }
.p-list[hidden] { display: none; }
.p-li { display: flex; align-items: center; gap: 12px 16px; padding: 16px 20px; flex-wrap: wrap; }
.p-li + .p-li { border-top: 1px solid var(--ln2); }
.p-li-main { flex: 1 1 220px; min-width: 0; }
.p-li-title { font-weight: 700; }
.p-li-sub { font-size: 14px; color: var(--mu); }
.p-table-box { overflow-x: auto; border: 1px solid var(--ln); border-radius: 20px; background: #fff; }
.p-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.p-table th { text-align: left; font-size: 13px; font-weight: 700; color: var(--mu); padding: 12px 20px; background: var(--soft); white-space: nowrap; }
.p-table td { padding: 12px 20px; border-top: 1px solid var(--ln2); vertical-align: middle; }
.p-num { font-variant-numeric: tabular-nums; text-align: right !important; white-space: nowrap; }
.p-row-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0; border: none; background: none; font: inherit; color: var(--tx); cursor: pointer; text-align: left; }
.p-detail-rows[hidden] { display: none; }
.p-detail-rows td { background: #FAFBFA; font-size: 14px; color: var(--tx2); }
/* Grafik in der Abwesenheiten-Statistik (Farben mit dem Palette-Validator geprüft) */
.p-chart { --c-training: #1B8A5F; --c-spiel: #2a78d6; position: relative; margin: 4px 0 20px; }
.p-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.p-chart-title { font-size: 15px; font-weight: 700; }
.p-chart-legend { display: flex; gap: 16px; font-size: 13px; color: var(--tx2); }
.p-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.p-chart-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.p-chart-training { background: var(--c-training); }
.p-chart-spiel { background: var(--c-spiel); }
.p-chart-body { padding-left: 28px; }
.p-chart-plot { position: relative; height: 180px; margin-top: 18px; }
.p-chart-tick { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--ln2); }
.p-chart-tick:first-child { border-top-color: var(--ln); }
.p-chart-tick span { position: absolute; right: calc(100% + 8px); top: -9px; font-size: 12px; line-height: 18px; color: var(--mu); font-variant-numeric: tabular-nums; }
.p-chart-cols { position: absolute; inset: 0; display: flex; }
.p-chart-col { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; border-radius: 8px; cursor: default; outline: none; }
.p-chart-col:hover, .p-chart-col:focus-visible { background: rgba(23, 32, 27, 0.04); }
.p-chart-col:focus-visible { box-shadow: inset 0 0 0 2px #9FD8BE; }
.p-chart-bar { position: relative; width: min(24px, 70%); display: flex; flex-direction: column; gap: 2px; }
.p-chart-seg { flex: 1 1 0; min-height: 2px; }
.p-chart-bar > .p-chart-seg:nth-child(2), .p-chart-bar > .p-chart-seg:first-child { border-radius: 4px 4px 0 0; }
.p-chart-value { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--tx2); font-variant-numeric: tabular-nums; }
.p-chart-x { display: flex; margin-top: 6px; }
.p-chart-x span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 12px; line-height: 1.25; color: var(--mu); }
.p-chart-x small { display: block; font-size: 11px; }
.p-chart-tip { position: absolute; top: 0; z-index: 5; min-width: 140px; padding: 10px 12px; border: 1px solid var(--ln); border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(23, 32, 27, 0.12); font-size: 13px; color: var(--tx2); pointer-events: none; }
.p-chart-tip-title { font-weight: 700; color: var(--tx); margin-bottom: 4px; }
.p-chart-tip-row { display: flex; align-items: center; gap: 6px; }
.p-chart-tip-row strong { color: var(--tx); font-variant-numeric: tabular-nums; }
.p-chart-tip-key { width: 12px; height: 2px; border-radius: 1px; }
.p-chart-tip-row:last-child { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--ln2); }
.p-detail-entry { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-entry-actions { display: inline-flex; flex-shrink: 0; }
.p-detail-entry .p-entry-actions { margin: -8px 0; }
.p-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 4px 0 14px; border: 1.5px solid var(--ln); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; }
.p-detail-date { display: inline-block; min-width: 110px; font-weight: 700; color: var(--tx); font-variant-numeric: tabular-nums; }
.p-stack-only { display: none; }
.p-link-box { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; background: var(--soft); border-radius: 16px; padding: 10px 10px 10px 18px; }
.p-link-box-white { background: #fff; }
.p-link-box code { flex: 1 1 260px; min-width: 0; font-family: inherit; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }

/* Team-Übersicht */
.p-title-row { justify-content: space-between; }
.p-archive { margin-top: 28px; }
.p-archive > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; cursor: pointer; list-style: none; }
.p-archive > summary::-webkit-details-marker { display: none; }
.p-archive[open] > summary .p-btn { display: none; }
.p-archive-list { margin-top: 16px; }

/* Team-Verwaltung: Seitennavigation + Inhalt */
.p-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 32px; padding-bottom: 72px; }
.p-side { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
@media (min-width: 721px) { .p-side { top: 88px; } } /* unter der fixierten Kopfzeile */
.p-side a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.p-page .p-side a { color: var(--tx2); }
.p-side a:hover { background: var(--soft); }
.p-side svg { width: 18px; height: 18px; }
.p-side-group { display: flex; flex-direction: column; gap: 2px; }
.p-side-group + .p-side-group { margin-top: 14px; }
.p-side-title { padding: 0 14px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mu); }
.p-side-collapse > summary { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding-bottom: 0; border-radius: 12px; cursor: pointer; list-style: none; }
.p-side-collapse > summary::-webkit-details-marker { display: none; }
.p-side-collapse > summary:hover { background: var(--soft); color: var(--tx); }
.p-side-collapse > summary svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.p-side-links { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.p-page .p-group-title { margin: 16px 0 -8px; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mu); }
.p-content > .p-group-title:first-child { margin-top: 0; }
.p-group > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; color: var(--mu); cursor: pointer; list-style: none; }
.p-group > summary::-webkit-details-marker { display: none; }
.p-group > summary:hover .p-group-title { color: var(--tx); }
.p-page .p-group > summary .p-group-title { margin: 0; }
.p-group > summary svg { width: 18px; height: 18px; transition: transform 0.15s ease; }
.p-group-body { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.p-content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.p-logo-current { gap: 20px; margin-bottom: 20px; }
.p-logo-preview { width: 88px; height: 88px; object-fit: contain; border-radius: 20px; background: var(--soft); padding: 8px; flex-shrink: 0; }
.p-logo-preview-empty { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; color: var(--mu); }
.p-logo-preview-sm { width: 52px; height: 52px; padding: 4px; border-radius: 12px; }

/* Dialoge */
.p-dialog { border: none; border-radius: 24px; padding: 28px; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 24px 64px rgba(23, 32, 27, 0.25); color: var(--tx); }
.p-dialog::backdrop { background: rgba(23, 32, 27, 0.45); }
.p-dialog h3 { font-size: 21px; }
.p-dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.p-dialog-actions .p-btn { flex: 1 1 160px; }

/* Startseite */
.p-hero { padding: 72px 0 40px; }
.p-hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.p-hero-text { flex: 1 1 420px; min-width: 0; }
.p-hero h1 { font-size: 56px; line-height: 1.04; letter-spacing: -0.03em; margin: 16px 0 18px; }
.p-hero-lead { font-size: 20px; color: var(--tx2); max-width: 520px; }
.p-hero-visual { flex: 1 1 380px; min-width: 0; }
.p-demo { padding: 24px; }
.p-demo-card { background: #fff; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 32px rgba(18, 112, 79, 0.12); }
.p-demo-row { display: flex; gap: 14px; align-items: center; border: 1px solid var(--ln); border-radius: 16px; padding: 12px 14px; }
.p-demo-date { width: 52px; text-align: center; background: var(--soft); border-radius: 12px; padding: 4px 0; display: flex; flex-direction: column; flex-shrink: 0; }
.p-demo-date span { font-size: 12px; font-weight: 700; color: var(--mu); }
.p-demo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.p-demo-chip { background: #F1F4F2; border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 600; }
.p-demo-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; background: var(--g); color: #fff; font-weight: 700; }
.p-section { padding: 48px 0; }
.p-section-head { max-width: 640px; margin-bottom: 28px; }
.p-section-head h2 { font-size: 38px; margin-top: 10px; }
.p-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.p-feature { background: #fff; border: 1px solid var(--ln); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.p-feature h3, .p-step-card h3 { font-size: 20px; }
.p-feature p { color: var(--tx2); }
.p-step-card { display: flex; flex-direction: column; gap: 12px; }
.p-step-num { width: 44px; height: 44px; border-radius: 999px; background: var(--g); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.p-faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.p-faq .p-details { padding: 20px 24px; }
.p-faq .p-details > summary h3 { font-size: 18px; }
.p-faq .p-details > summary svg { flex-shrink: 0; }
.p-faq .p-details > p { color: var(--tx2); margin-top: 10px; }
.p-cta { background: var(--g); border-radius: 32px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.p-page .p-cta h2 { font-size: 34px; color: #fff; }
.p-cta p { color: #D6EEE3; margin-top: 8px; }
.p-page .p-cta .p-btn { background: #fff; color: var(--g); }
.p-cta .p-btn:hover { background: var(--mint); }
.p-foot { border-top: 1px solid var(--ln2); padding: 28px 0 40px; font-size: 14px; color: var(--mu); }
.p-foot-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* Team-Assistent */
.p-steps { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0 0 28px; padding: 0; }
.p-steps li { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 6px; border-radius: 999px; background: var(--soft); font-weight: 700; font-size: 15px; color: var(--mu); }
.p-steps li.cur { background: var(--mint); color: var(--gd); }
.p-steps li.done { color: var(--tx2); }
.p-steps .n { width: 32px; height: 32px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.p-steps li.cur .n { background: var(--g); color: #fff; }
.p-steps .n svg { width: 14px; height: 14px; color: var(--g); }
.p-guide { display: flex; flex-direction: column; gap: 16px; list-style: none; padding: 0; margin: 0; }
.p-guide li { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; background: #fff; border: 1px solid var(--ln); border-radius: 24px; padding: 22px; }
.p-guide-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.p-guide-text h2 { font-size: 18px; }
.p-guide-text p { color: var(--tx2); font-size: 15px; }
.p-shot { flex: 0 1 280px; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--ln); background: #fff; }
.p-shot img { display: block; width: 100%; height: auto; }
.p-guide li[hidden], .p-guide-tabs[hidden], .p-guide-nav[hidden] { display: none; }
.p-guide-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.p-guide-tab { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 6px; border: none; border-radius: 999px; background: var(--soft); font: inherit; font-weight: 700; font-size: 15px; color: var(--mu); cursor: pointer; text-align: left; }
.p-guide-tab .l { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-guide-tab:hover { color: var(--tx); }
.p-guide-tab .n { width: 32px; height: 32px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.p-guide-tab.cur { background: var(--mint); color: var(--gd); }
.p-guide-tab.done { color: var(--tx2); }
.p-guide-tab.cur .n { background: var(--g); color: #fff; }
.p-guide-slider.is-slider .p-guide li > .p-step-num { display: none; }
/* Alle Slides liegen in derselben Zelle, damit die Höhe beim Blättern fix bleibt. */
.p-guide-slider.is-slider .p-guide { display: grid; }
.p-guide-slider.is-slider .p-guide > li { grid-area: 1 / 1; }
.p-guide-slider.is-slider .p-guide > li.off { visibility: hidden; }
.p-guide-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.p-guide-nav .p-btn:disabled { visibility: hidden; }
.p-guide-nav .p-btn svg { width: 18px; height: 18px; }
.p-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; cursor: pointer; list-style: none; min-height: 32px; }
.p-details > summary::-webkit-details-marker { display: none; }
.p-details > summary svg { width: 18px; height: 18px; color: var(--mu); transition: transform 0.15s ease; }

@media (max-width: 720px) {
  .p-wrap, .p-mid, .p-narrow { padding: 0 16px; }
  .p-page-main { padding-top: 28px; }
  .p-h1 { font-size: 28px; }
  .p-hero { padding-top: 40px; }
  .p-hero h1 { font-size: 40px; }
  .p-section-head h2 { font-size: 30px; }
  .p-card, .p-card-mint, .p-center-card { padding: 20px; }
  .p-card-soft { padding: 20px; }
  .p-grid-3, .p-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .p-side { max-width: none; flex: 1 1 100%; flex-direction: row; overflow-x: auto; position: static; padding-bottom: 4px; }
  .p-side-group { flex-direction: row; }
  .p-side-group + .p-side-group { margin-top: 0; margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--ln); }
  div.p-side-title { display: none; }
  .p-side-collapse { display: flex; }
  .p-side-collapse > summary { min-height: 44px; white-space: nowrap; gap: 6px; }
  .p-side-links { flex-direction: row; margin-top: 0; }
  .p-layout { gap: 16px; padding-top: 16px; }
  .p-cta { padding: 32px 24px; }
  .p-shot { flex-basis: 100%; }
  .p-guide-tab { flex: 0 0 auto; padding: 0 6px; }
  .p-guide-tab .l { display: none; }
  .p-guide-tab.cur { flex: 1 1 0; padding-right: 14px; }
  .p-guide-tab.cur .l { display: inline; }
  .p-crumb-name { max-width: 50vw; }
  /* Sprachumschalter bleibt oben rechts neben dem Logo, die Navigation
     bekommt eine eigene Zeile darunter. */
  .p-head-row > .p-lang { order: 1; margin-left: auto; }
  .p-head-row > .p-nav { order: 2; flex-basis: 100%; margin-left: 0; }
  .p-stack-table thead { display: none; }
  .p-stack-table tr { display: block; padding: 12px 16px; border-top: 1px solid var(--ln2); }
  .p-stack-table td { display: block; padding: 2px 0; border: none; text-align: left !important; }
  .p-stack-table td[data-label]::before { content: attr(data-label) ": "; color: var(--mu); }
  .p-stack-only { display: inline; }
}

/* ===== Spielerseite (Presenti-Redesign: hell, freundlich, runde Karten) =====
   Alles unter .pp-page, damit Admin- und übrige Seiten unverändert bleiben. */
body.pp-page {
  --pp-green: #12704F;
  --pp-green-dark: #0B5A3F;
  --pp-mint: #E6F4EC;
  --pp-soft: #EDF2EF;
  --pp-text: #17201B;
  --pp-text-2: #45514A;
  --pp-muted: #56635C;
  --pp-line: #E3E8E5;
  --pp-line-soft: #EEF1EF;
  background: radial-gradient(700px 420px at 100% -80px, #DDEFE5 0%, rgba(221, 239, 229, 0) 70%) no-repeat, #F5F8F6;
  min-height: 100vh;
  color: var(--pp-text);
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
.pp-page h1, .pp-page h2, .pp-page h3 {
  font-family: inherit; text-transform: none; color: var(--pp-text);
  font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; margin: 0;
}
.pp-page a { color: var(--pp-green); }
.pp-page a:hover { color: var(--pp-green-dark); }
.pp-page button { font-family: inherit; }
.pp-page :is(button, a, select, input):focus-visible { outline: 3px solid #9FD8BE; outline-offset: 2px; }
.pp-page svg { width: 20px; height: 20px; flex-shrink: 0; }
.pp-page .flash { background: var(--pp-green); color: #fff; }
.pp-page .flash-error { background: #B3432F; }
.pp-page .scroll-top-btn { background: var(--pp-green); color: #fff; }
.pp-page .scroll-top-btn:hover { background: var(--pp-green-dark); }

.pp-container { max-width: 640px; margin: 0 auto; padding: 0 20px; }

.pp-header { border-bottom: 1px solid rgba(18, 112, 79, 0.10); background: rgba(255, 255, 255, 0.45); }
.pp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.pp-brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; font-size: 15px; }
.pp-brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-brand-mark { width: 36px; height: 36px; display: flex; flex-shrink: 0; }
.pp-page .pp-brand-mark svg { width: 100%; height: 100%; }


.pp-icon-tile { width: 48px; height: 48px; border-radius: 16px; background: #fff; color: var(--pp-green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pp-icon-tile svg { width: 24px; height: 24px; }
.pp-training { margin-top: 20px; background: var(--pp-mint); border-radius: 24px; padding: 20px; display: flex; gap: 16px; align-items: center; }
.pp-eyebrow { font-size: 13px; font-weight: 700; color: var(--pp-green); text-transform: uppercase; letter-spacing: 0.06em; }
.pp-training-time { font-size: 20px; font-weight: 700; margin-top: 2px; }

.pp-section { padding-top: 40px; }
.pp-section > h2 { font-size: 24px; margin-bottom: 12px; }
.pp-empty { padding: 12px 0; color: var(--pp-muted); font-size: 15px; }
.pp-week-label { font-size: 14px; font-weight: 600; color: var(--pp-muted); margin-bottom: 10px; }

.pp-datetile { flex-shrink: 0; width: 52px; text-align: center; display: flex; flex-direction: column; }
.pp-datetile-soft { background: var(--pp-soft); border-radius: 14px; padding: 6px 0; }
.pp-datetile-top { font-size: 12px; font-weight: 700; color: var(--pp-muted); text-transform: uppercase; }
.pp-datetile-num { font-size: 22px; font-weight: 800; line-height: 1.1; }
.pp-datetile-num-sm { font-size: 15px; line-height: 1.4; }

.pp-absences { display: flex; flex-direction: column; gap: 10px; }
.pp-absences[hidden] { display: none; }
.pp-absence { background: #fff; border: 1px solid var(--pp-line); border-radius: 20px; padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; }
.pp-absence-main { flex: 1; min-width: 0; }
.pp-absence-type { font-size: 15px; font-weight: 700; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pp-chip { display: inline-flex; align-items: center; gap: 6px; background: #F1F4F2; border-radius: 999px; padding: 4px 4px 4px 12px; font-size: 14px; font-weight: 600; }
.pp-chip form { margin: 0; display: inline-flex; }
.pp-chip-locked { padding: 7px 12px; }
.pp-chip-x { width: 28px; height: 28px; border: none; border-radius: 999px; background: #E6EBE8; color: var(--pp-text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.pp-chip-x:hover { background: #DDE5E0; }
.pp-chip-x svg { width: 12px; height: 12px; }

.pp-chevron { display: inline-flex; color: var(--pp-muted); transition: transform 0.15s ease; }
.pp-chevron svg { width: 18px; height: 18px; }
[aria-expanded="true"] > .pp-chevron { transform: rotate(180deg); }

.pp-more-toggle { margin-top: 10px; width: 100%; min-height: 48px; border: none; background: transparent; border-radius: 999px; color: var(--pp-green); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.pp-more-toggle:hover { background: var(--pp-mint); }
.pp-more-toggle .pp-chevron { color: inherit; }
.pp-more-toggle[aria-expanded="true"] { margin-bottom: 6px; }

.pp-btn { width: 100%; min-height: 56px; border: none; border-radius: 999px; background: var(--pp-green); color: #fff; font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.pp-btn:hover { background: var(--pp-green-dark); }
.pp-new-btn { margin-top: 16px; }
.pp-new-btn[aria-expanded="true"] { display: none; }

.pp-form-card { margin-top: 16px; background: #fff; border: 1px solid var(--pp-line); border-radius: 24px; padding: 20px; }
.pp-form-card[hidden] { display: none; }
.pp-form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-form-head h3 { font-size: 20px; }
.pp-icon-btn { width: 44px; height: 44px; border: none; border-radius: 999px; background: #E6EBE8; color: var(--pp-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.pp-icon-btn:hover { background: #DDE5E0; }
.pp-icon-btn svg { width: 16px; height: 16px; }
.pp-form-intro { margin: 6px 0 4px; font-size: 15px; color: var(--pp-text-2); }
.pp-form { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; }
.pp-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px 12px; }
.pp-grid-2[hidden] { display: none; }
.pp-field { display: flex; flex-direction: column; gap: 6px; border: none; margin: 0; padding: 0; min-width: 0; }
.pp-label { font-size: 14px; font-weight: 700; padding: 0; }
.pp-hint { font-size: 13px; color: var(--pp-muted); }
.pp-form select, .pp-form input[type="text"], .pp-form input[type="date"] {
  width: 100%; min-height: 52px; border: 1.5px solid #D5DDD8; border-radius: 14px; background: #fff;
  padding: 0 14px; font: inherit; font-size: 16px; color: var(--pp-text); appearance: auto;
}
.pp-form select:focus, .pp-form input:focus { border-color: var(--pp-green); outline: none; }
.pp-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: #E6EBE8; border-radius: 999px; padding: 4px; }
.pp-seg label { position: relative; display: block; cursor: pointer; }
.pp-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pp-seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--pp-text-2); }
.pp-seg input:checked + span { background: #fff; color: var(--pp-green); box-shadow: 0 1px 3px rgba(23, 32, 27, 0.12); }
.pp-seg input:focus-visible + span { outline: 3px solid #9FD8BE; outline-offset: 2px; }
.pp-form-error { background: #FBEAE6; color: #8F2F1E; font-size: 14px; font-weight: 600; padding: 12px 14px; border-radius: 14px; }

.pp-fixtures { border: 1px solid var(--pp-line); border-radius: 24px; overflow: hidden; }
.pp-fixture + .pp-fixture { border-top: 1px solid var(--pp-line-soft); }
.pp-fixture.is-past { opacity: 0.55; }
.pp-fixture-toggle { width: 100%; border: none; background: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; color: var(--pp-text); }
.pp-fixture-toggle:hover { background: #F7FAF8; }
.pp-fixture-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-fixture-title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-fixture-when { font-size: 14px; color: var(--pp-muted); }
.pp-competition-cup { font-weight: 700; color: #7A4F00; }
.pp-tag { flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pp-tag-heim { background: var(--pp-mint); color: var(--pp-green-dark); }
.pp-tag-auswarts { background: #EAEDF8; color: #33428F; }
.pp-tag-turnier { background: #FFF1D6; color: #7A4F00; }
.pp-fixture-detail { padding: 0 16px 16px 82px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--pp-text-2); }
.pp-fixture-detail[hidden] { display: none; }
.pp-fixture-detail strong { color: var(--pp-text); }
.pp-detail-place { display: flex; gap: 8px; align-items: center; }
.pp-detail-place svg { width: 16px; height: 16px; color: var(--pp-green); }
.pp-detail-place a { font-weight: 600; }

.pp-link-card { display: flex; align-items: center; gap: 16px; text-decoration: none; background: #fff; border: 1px solid var(--pp-line); border-radius: 24px; padding: 20px; }
.pp-page .pp-link-card { color: var(--pp-text); }
.pp-link-card:hover { border-color: var(--pp-green); }
.pp-link-card .pp-icon-tile { background: var(--pp-mint); }
.pp-link-card-main { flex: 1; display: flex; flex-direction: column; }
.pp-link-card-title { font-size: 17px; font-weight: 700; }
.pp-link-card-sub { font-size: 14px; color: var(--pp-muted); }
.pp-link-card-arrow { display: inline-flex; color: var(--pp-green); }

.pp-footer { text-align: center; padding: 48px 20px 40px; }
.pp-footer-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; text-decoration: none; }
.pp-page .pp-footer-brand { color: var(--pp-text); }
.pp-footer-mark { width: 26px; height: 26px; display: flex; }
.pp-page .pp-footer-mark svg { width: 100%; height: 100%; }

.pp-brand-logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }

/* Clublogos von football.ch haben meist einen weissen statt transparenten
   Hintergrund. multiply verrechnet das Bild mit dem Untergrund: Weiss wird
   unsichtbar, farbige Teile bleiben. Das <img> selbst darf dafür keine
   eigene Hintergrundfarbe haben. */
.pp-brand-logo, img.p-club, img.p-logo-preview { mix-blend-mode: multiply; background: none; }

/* Sprachumschalter DE | FR (Kopfzeilen beider Seitentypen) */
.p-lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(23, 32, 27, 0.06); flex-shrink: 0; }
.p-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; letter-spacing: 0.04em; }
.p-page .p-lang a, .pp-page .p-lang a { color: #56635C; }
.p-page .p-lang a:hover, .pp-page .p-lang a:hover { color: #17201B; background: rgba(255, 255, 255, 0.7); }
.p-page .p-lang a.on, .pp-page .p-lang a.on { background: #fff; color: #12704F; box-shadow: 0 1px 3px rgba(23, 32, 27, 0.12); }
