/* =====================================================================
   Planer – Seitenleiste, Kopfleiste, Teamwahl, Suche (navigation.php) – 11.10.2026
   ===================================================================== */
:root { --sh-breit: 272px; --sh-blau: #04519B; --sh-nacht: #0D2C4F; --sh-nacht2: #163C66; --sh-rand: #2A5687; --sh-hell: #C9D9EA; --sh-rot: #E41B2B; }
html.sh-an body, body.sh-an { padding-left: var(--sh-breit); padding-top: 0; margin: 0; background: #F4F6F8; }
html.sh-gesperrt { overflow: hidden; }
.sh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sh-leiste [hidden], .sh-kopf [hidden], .sh-dialog [hidden] { display: none !important; }

/* Seitenleiste */
.sh-leiste { position: fixed; z-index: 900; left: 0; top: 0; bottom: 0; width: var(--sh-breit); box-sizing: border-box; background: var(--sh-nacht); color: #fff;
    display: flex; flex-direction: column; gap: 14px; padding: 16px 14px 10px; font-family: Arial, Helvetica, sans-serif; text-align: left; overflow: hidden; }
.sh-leiste a { text-decoration: none; }
.sh-verein { display: flex; align-items: center; gap: 12px; padding: 0 2px 2px; flex: none; }
.sh-logo { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; box-sizing: border-box; flex: none; }
.sh-verein-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.sh-verein-text b { font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-size: 18px; line-height: 1.1; color: #fff; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-verein-text small { font-size: 10px; letter-spacing: .12em; color: #A9C2DE; font-weight: bold; }
.sh-zu { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--sh-rand); background: transparent; color: #fff; font-size: 16px; cursor: pointer; }
.sh-team { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; text-align: left; font: inherit; background: var(--sh-nacht2); border: 1px solid var(--sh-rand); border-radius: 14px; padding: 10px 12px 12px; color: #fff; cursor: pointer; flex: none; }
.sh-team:disabled { cursor: default; }
.sh-team:not(:disabled):hover { border-color: #5A86B8; }
.sh-team-oben { display: flex; justify-content: space-between; align-items: center; }
.sh-team-oben small { font-size: 10px; letter-spacing: .1em; color: #A9C2DE; font-weight: bold; }
.sh-team-wechsel { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: bold; color: #C9D9EA; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px 8px; }
.sh-team:not(:disabled):hover .sh-team-wechsel { background: rgba(255,255,255,.16); color: #fff; }
.sh-team-mitte { display: flex; align-items: center; gap: 10px; }
.sh-team-rolle { align-self: flex-start; font-size: 11px; font-weight: bold; color: #0D2C4F; background: #CFE0F2; border-radius: 999px; padding: 2px 9px; }
.sh-kachel { width: 42px; height: 42px; flex: none; border-radius: 9px; color: #fff; font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: bold; font-size: 15px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.sh-team-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sh-team-text b { font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-size: 22px; line-height: 1.05; overflow-wrap: anywhere; }
.sh-team-text span { font-size: 12px; line-height: 1.3; color: var(--sh-hell); }
.sh-menue { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 0 6px;
    scrollbar-width: thin; scrollbar-color: #2A5687 transparent; }
.sh-menue::-webkit-scrollbar { width: 6px; }
.sh-menue::-webkit-scrollbar-thumb { background: #2A5687; border-radius: 6px; }
.sh-menue::-webkit-scrollbar-track { background: transparent; }
.sh-gruppe { font-size: 11px; font-weight: bold; letter-spacing: .1em; color: #7F9DBF; padding: 12px 10px 4px; }
.sh-punkt { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: #DCE8F5; font-size: 15px; cursor: pointer; list-style: none; min-height: 22px; }
.sh-punkt::-webkit-details-marker { display: none; }
.sh-punkt span { flex: 1; }
.sh-punkt:hover { background: rgba(255,255,255,.08); color: #fff; }
.sh-punkt.aktiv, a.sh-punkt.aktiv { background: #fff; color: var(--sh-nacht); font-weight: bold; }
.sh-pfeil { transition: transform .15s; opacity: .7; }
.sh-punkt-gruppe[open] > .sh-punkt .sh-pfeil { transform: rotate(90deg); }
.sh-punkt-gruppe > summary.sh-punkt.aktiv { background: rgba(255,255,255,.12); color: #fff; }
.sh-unter { display: block; margin-left: 30px; padding: 6px 10px; border-radius: 8px; color: #C9D9EA; font-size: 14px; border-left: 2px solid #234B78; border-radius: 0 8px 8px 0; }
.sh-unter:hover { background: rgba(255,255,255,.08); color: #fff; }
.sh-unter.aktiv { color: #fff; font-weight: bold; border-left-color: var(--sh-rot); background: rgba(255,255,255,.1); }
.sh-profil { display: flex; align-items: center; gap: 10px; border-top: 1px solid #234B78; padding: 12px 4px 0; flex: none; }
.sh-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #FDE8EA; color: #B3121F; font-weight: bold; font-size: 14px; display: grid; place-items: center; }
.sh-profil-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.sh-profil-text b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-profil-text a { font-size: 12px; color: #A9C2DE; }
.sh-profil-text a:hover { color: #fff; text-decoration: underline; }
.sh-abmelden { width: 36px; height: 36px; flex: none; border-radius: 9px; border: 1px solid var(--sh-rand); color: var(--sh-hell); display: grid; place-items: center; }
.sh-abmelden:hover { background: rgba(255,255,255,.08); color: #fff; }
.sh-design { font-size: 11px; color: #7F9DBF; padding: 0 4px; flex: none; }
.sh-design:hover { color: #fff; }

/* Kopfleiste über dem Inhalt */
.sh-kopf { position: sticky; top: 0; z-index: 800; display: flex; align-items: center; gap: 12px; height: 60px; box-sizing: border-box; padding: 0 24px; background: #fff; border-bottom: 1px solid #E3E7EC; font-family: Arial, Helvetica, sans-serif; text-align: left; }
.sh-menueknopf { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #D5DBE2; background: #fff; color: #1B1F24; cursor: pointer; place-items: center; flex: none; }
.sh-team-kurz { display: none; align-items: center; gap: 8px; min-width: 0; font: inherit; background: #F4F6F8; border: 1px solid #D5DBE2; border-radius: 12px; padding: 4px 10px 4px 4px; color: #1B1F24; cursor: pointer; }
.sh-team-kurz .sh-kachel { width: 34px; height: 34px; font-size: 13px; box-shadow: none; }
.sh-team-kurz b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-suche { position: relative; flex: 1; max-width: 520px; }
.sh-suche-feld { display: flex; align-items: center; gap: 8px; background: #F4F6F8; border: 1px solid #E3E7EC; border-radius: 10px; padding: 0 12px; color: #4A5361; height: 40px; box-sizing: border-box; }
.sh-suche-feld:focus-within { border-color: var(--sh-blau); box-shadow: 0 0 0 3px #E3EEF8; background: #fff; }
.sh-suche-feld input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; width: 100%; color: #1B1F24; padding: 0; height: 100%; }
.sh-treffer { position: absolute; left: 0; right: 0; top: 46px; background: #fff; border: 1px solid #E3E7EC; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.18); max-height: 70vh; overflow: auto; padding: 6px; }
.sh-treffer-gruppe { font-size: 11px; font-weight: bold; letter-spacing: .08em; color: #4A5361; text-transform: uppercase; padding: 8px 8px 4px; }
.sh-treffer-zeile { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; font: inherit; background: none; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; color: #1B1F24; }
.sh-treffer-zeile b { font-size: 15px; }
.sh-treffer-zeile small { font-size: 12px; color: #4A5361; }
.sh-treffer-zeile:hover, .sh-treffer-zeile.markiert { background: #EEF5FC; }
.sh-treffer-info { padding: 10px; color: #4A5361; font-size: 14px; }

/* Teamwahl */
.sh-dialog { width: min(580px, calc(100vw - 24px)); max-height: min(780px, calc(100vh - 40px)); box-sizing: border-box; border: 0; border-radius: 16px; padding: 0; box-shadow: 0 18px 50px rgba(0,0,0,.3); font-family: Arial, Helvetica, sans-serif; color: #1B1F24; text-align: left; }
.sh-dialog[open] { display: flex; flex-direction: column; }
.sh-dialog::backdrop { background: rgba(5,14,26,.5); }
.sh-dialog-kopf { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.sh-dialog-kopf h2 { margin: 0; font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-size: 24px; color: #1B1F24; text-transform: none; letter-spacing: 0; }
.sh-dialog-zu { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #D5DBE2; background: #fff; font-size: 16px; cursor: pointer; }
.sh-team-suche { margin: 6px 16px; }
.sh-team-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 16px 10px; border-bottom: 1px solid #EEF1F4; }
.sh-team-filter button { font: inherit; font-size: 13px; font-weight: bold; border: 1px solid #D5DBE2; background: #fff; color: #1B1F24; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.sh-team-filter button.aktiv { background: var(--sh-blau); border-color: var(--sh-blau); color: #fff; }
.sh-team-liste { flex: 1; min-height: 0; overflow: auto; padding: 4px 8px 12px; margin: 0; }
.sh-team-gruppe { font-size: 11px; font-weight: bold; letter-spacing: .08em; color: #4A5361; padding: 12px 8px 4px; }
.sh-team-zeile { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; border: 0; background: transparent; border-radius: 12px; padding: 8px 10px; cursor: pointer; min-height: 52px; color: #1B1F24; }
.sh-team-zeile:hover, .sh-team-zeile:focus-visible { background: #F4F6F8; }
.sh-team-zeile.aktiv { background: #EEF5FC; }
.sh-team-zeile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sh-team-zeile-text b { font-size: 15px; }
.sh-team-zeile-text small { font-size: 13px; color: #4A5361; }
.sh-rolle { font-size: 12px; font-weight: bold; color: var(--sh-blau); background: #E3EEF8; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.sh-leer { color: #4A5361; padding: 14px; margin: 0; }

/* Leiste unten (Handy) */
.sh-unten { display: none; }

/* Alter Kopf mit Logo/roter Leiste bleibt im neuen Design unsichtbar, falls eine Seite ihn selbst ausgibt */
html.sh-an .Nav { display: none; }

@media (max-width: 1279px) {
    html.sh-an body, body.sh-an { padding-left: 0; }
    .sh-leiste { transform: translateX(-102%); transition: transform .2s ease; width: min(320px, 88vw); box-shadow: 0 0 40px rgba(0,0,0,.35); }
    .sh-leiste.offen { transform: none; }
    .sh-zu { display: grid; place-items: center; }
    .sh-schatten { position: fixed; inset: 0; z-index: 890; background: rgba(5,14,26,.45); }
    .sh-menueknopf { display: grid; }
    .sh-team-kurz { display: flex; }
    .sh-kopf { padding: 0 12px; gap: 8px; }
}
@media (max-width: 760px) {
    .sh-team-kurz b { max-width: 34vw; }
    .sh-suche { max-width: none; }
    .sh-unten { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; z-index: 850; left: 0; right: 0; bottom: 0; height: 64px; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #E3E7EC; font-family: Arial, Helvetica, sans-serif; }
    .sh-unten a, .sh-unten button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: 11px; font-weight: bold; color: #4A5361; text-decoration: none; background: none; border: 0; cursor: pointer; min-height: 44px; }
    .sh-unten .aktiv { color: var(--sh-blau); }
    html.sh-an body, body.sh-an { padding-bottom: 72px; }
    .sh-menueknopf { display: none; }
}
@media print {
    .sh-leiste, .sh-kopf, .sh-unten, .sh-schatten { display: none !important; }
    html.sh-an body, body.sh-an { padding: 0; }
}
