/* Wenige Ergänzungen zum Designsystem des Trainerkalenders (app.css aus #449), nur mit dessen Tokens. */
.tk-profile__menu form { margin: 0; }
.tk-topbar .tk-profile__menu button.tk-profile__logout { display: flex; align-items: center; gap: var(--tk-2); width: 100%; min-height: var(--tk-touch); padding: 0 var(--tk-3); border: 0; border-radius: calc(var(--tk-radius-sm) - 2px); background: none; color: var(--tk-text); font: inherit; font-weight: 600; text-align: left; box-shadow: none; }
.tk-topbar .tk-profile__menu button.tk-profile__logout:hover { background: var(--tk-brand-50); color: var(--tk-brand-900); }
.hf-vorschau { margin: 0 0 var(--tk-2); }
.hf-vorschau img { display: block; max-width: min(100%, 18rem); height: auto; border-radius: var(--tk-radius); }
.hf-vorschau--rund img { width: 8rem; height: 8rem; object-fit: cover; border-radius: 999px; }
[hidden] { display: none !important; }
.tk-row { scroll-margin-top: calc(var(--tk-topbar-h) + 16px); }
/* Spürnäsle sitzt über der Tab-Leiste des Trainerbereichs, nicht darauf. */
@media (max-width: 47.9375rem) { .tk-area-trainer .spuer-float { bottom: calc(var(--tk-bottomnav-h) + 12px + env(safe-area-inset-bottom)); } }
/* Aktionen, die etwas speichern, sind Formulare; in der Linkliste sehen sie aus wie deren Links (.tk-linklist a). */
.tk-linklist form { margin: 0; }
.tk-linklist form button { display: flex; align-items: center; gap: var(--tk-2); width: calc(100% + 2 * var(--tk-4)); min-height: var(--tk-touch); margin: calc(-1 * var(--tk-3)) calc(-1 * var(--tk-4)); padding: 0 var(--tk-4); border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--tk-brand-900); font: inherit; font-weight: 600; text-align: left; }
.tk-linklist form button > span { flex: 1; }
.tk-linklist form button:hover { background: var(--tk-brand-50); }
.tk-detail-section--aside .tk-linklist form button { width: 100%; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
/* Kurzaussage der Besetzung nicht mitten im Wort umbrechen; Urlaubshinweis schmal halten. */
.tk-staffing__short { white-space: nowrap; }
.tk-act--note { max-width: 7.5rem; text-align: right; }

/* F-40: Liste der Doppeleinsätze im Hinweis der Trainingsübersicht. */
.tk-notice__list { margin: .25rem 0 .5rem; padding-left: 1.1rem; }
.tk-notice__list li + li { margin-top: .2rem; }

/* Anmeldungen: Nachricht mit Zeilenumbrüchen */
.hf-nachricht { white-space: pre-line; font-weight: 400 !important; }

/* Absagegrund als Auswahl-Chips */
.tk-seg--wrap{display:flex;flex-wrap:wrap;gap:8px;background:none;padding:0}
.tk-chipwahl{position:relative;display:inline-flex}
.tk-chipwahl input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.tk-chipwahl span{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--tk-line, #d2d2d7);background:#fff;font-weight:500}
.tk-chipwahl input:checked+span{background:#1d1d1f;border-color:#1d1d1f;color:#fff}
.tk-chipwahl input:focus-visible+span{outline:3px solid #2aa3b8;outline-offset:2px}

/* Seitentexte: Editor links, Live-Vorschau rechts (Muster Handwerker-Vesper) */
.hf-editor-main { max-width: 96rem; }
.hf-editor { display: grid; gap: var(--tk-4, 1rem); }
@media (min-width: 72rem) {
  .hf-editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
  .hf-preview { position: sticky; top: 1rem; display: flex !important; }
  .hf-preview__toggle { display: none; }
}
.hf-editor__status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: #fff5e1; color: #6b4500; font-size: .875rem; font-weight: 600; }
.hf-dot { width: 7px; height: 7px; border-radius: 50%; background: #b86e00; }
.hf-editor__save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(to top, var(--tk-bg, #f5f5f7) 70%, transparent); }
.hf-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.hf-pic { position: relative; cursor: pointer; }
.hf-pic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hf-pic span { display: block; border-radius: 12px; padding: 4px; box-shadow: inset 0 0 0 1px #d2d2d7; background: #fff; }
.hf-pic img, .hf-pic__leer { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 9px; background: #f5f5f7; font-style: normal; color: #6e6e73; font-size: 1.4rem; }
.hf-pic b { display: block; padding: 6px 4px 2px; font-size: .8125rem; font-weight: 500; line-height: 1.25; }
.hf-pic input:checked + span { box-shadow: inset 0 0 0 2.5px #0f5e6b; background: #e9f3f4; }
.hf-pic input:focus-visible + span { outline: 3px solid #2aa3b8; outline-offset: 2px; }
.hf-upload { margin-top: 12px; }
.hf-preview { display: none; flex-direction: column; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 8px 24px -12px rgba(0,0,0,.18); overflow: hidden; }
.hf-preview.is-open { display: flex; }
.hf-preview__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(0,0,0,.08); font-size: .875rem; font-weight: 600; color: #424245; }
.hf-seg { display: inline-flex; background: #e8e8ed; border-radius: 9px; padding: 2px; }
.hf-seg button { min-height: 32px; padding: 0 14px; border: 0; border-radius: 7px; background: none; font: inherit; font-weight: 500; color: #424245; cursor: pointer; }
.hf-seg button[aria-pressed="true"] { background: #fff; color: #1d1d1f; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.hf-preview__frame { position: relative; height: min(78vh, 900px); overflow: hidden; background: #f5f5f7; }
.hf-preview__frame iframe { position: absolute; top: 0; left: 50%; border: 0; background: #fff; transform-origin: top center; translate: -50% 0; }
.hf-preview__toggle { justify-self: start; }
/* Rundschreiben: Verlauf aufklappbar */
.hf-verlauf{width:100%}
.hf-verlauf summary{list-style:none;cursor:pointer}
.hf-verlauf summary::-webkit-details-marker{display:none}
.hf-verlauf__text{white-space:pre-line;margin:12px 0 0;color:var(--tk-text-muted,#6e6e73)}
.hf-felder{display:grid;gap:16px}
.hf-verlauf-sec{margin-top:32px}
/* Themen für Aktuelles */
.hf-thema__name{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;flex:1;min-width:0}
.hf-thema__name input{flex:1 1 14rem;min-width:0;min-height:44px}
.hf-thema__ordnen{display:flex;gap:4px}
.hf-thema__ordnen button{min-width:44px;min-height:44px}
.hf-thema__ordnen button:disabled{visibility:hidden}
/* Verwaltungsmenü: Bereiche zum Aufklappen (Chris, 18.11.) */
.hf-navgruppe > summary{list-style:none;display:flex;align-items:center;gap:var(--tk-3);min-height:var(--tk-touch);padding:var(--tk-2) var(--tk-3);border-radius:var(--tk-radius-sm);font-weight:500;color:var(--tk-text);cursor:pointer;user-select:none}
.hf-navgruppe > summary::-webkit-details-marker{display:none}
.hf-navgruppe > summary:hover{background:#d3e3d8;color:var(--tk-brand-900)}
.hf-navgruppe > summary:focus-visible{outline-offset:-3px}
.hf-navgruppe > summary.is-hier{color:var(--tk-brand-900);font-weight:650}
.hf-navgruppe__chev{margin-left:auto;color:var(--tk-text-muted);transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.hf-navgruppe[open] > summary .hf-navgruppe__chev{transform:rotate(180deg)}
.hf-navgruppe > ul{margin:2px 0 6px !important}
.tk-modnav .tk-modnav__sub.tk-modnav__off{padding-left:2.25rem}
/* Rundgänge in der Leiste: abgesetzt unter System, Einträge sind Knöpfe, die den Rundgang starten */
.tk-modnav li.hf-navrundgang{margin-top:var(--tk-3);padding-top:var(--tk-3);border-top:1px solid var(--tk-border)}
.tk-modnav .hf-navknopf{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start !important;width:100%;padding:var(--tk-2) var(--tk-3);border:0;border-radius:var(--tk-radius-sm);background:none;color:var(--tk-text);font:inherit;text-align:left;cursor:pointer}
.tk-modnav .hf-navknopf:hover{background:#d3e3d8;color:var(--tk-brand-900)}
.tk-modnav .hf-navknopf:focus-visible{outline-offset:-3px}

/* Aktuelles: Bildausschnitt mit dem Finger wählen (Chris, 18.11.). Rahmen im Format der Beitragskarte (3:2). */
.hf-ausschnitt { margin: 10px 0 4px; }
.hf-ausschnitt__rahmen { position: relative; aspect-ratio: 3 / 2; max-width: 26rem; border-radius: 14px; overflow: hidden; background: #e8e8ed; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.hf-ausschnitt__rahmen:focus-visible { outline: 3px solid var(--tk-focus, #0071e3); outline-offset: 2px; }
.hf-ausschnitt__rahmen.is-zieht { cursor: grabbing; }
.hf-ausschnitt__rahmen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hf-ausschnitt__griff { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: .8125rem; font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .2s; }
.hf-ausschnitt__rahmen.is-zieht .hf-ausschnitt__griff { opacity: 0; }
.hf-linkknopf { border: 0; background: none; padding: 0; font: inherit; color: var(--tk-link, #0066cc); cursor: pointer; text-decoration: underline; min-height: 0; }

/* Hinweis oben: Nachbau der Leiste der Homepage. */
.hf-hinweis-vorschau { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-radius: 14px; background: #e6f1f2; color: #0c3b42; font-size: .9375rem; line-height: 1.4; text-align: center; }
.hf-hinweis-vorschau u { color: #0f5e6b; text-decoration: none; font-weight: 500; }
.hf-hinweis-vorschau svg { color: #0f5e6b; flex: none; }

/* Anmeldung: Erklärungen mit Wortlaut und Zeitpunkt */
.hf-erkl { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.hf-erkl li { display: flex; gap: 10px; align-items: flex-start; }
.hf-erkl li.is-ja svg { color: #1b7f3b; } .hf-erkl li.is-nein svg { color: #86868b; }
.hf-erkl b { display: block; } .hf-erkl span { display: block; color: #424245; font-size: .9375rem; } .hf-erkl small { color: #6e6e73; }
/* Homepage › Seiten: Seitenbaum, Unterseiten eine Ebene tiefer */
.hf-baum, .hf-baum__kinder { list-style: none; margin: 0; padding: 0; }
.hf-baum { display: grid; gap: 10px; max-width: 46rem; }
.hf-baum > li { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); overflow: hidden; }
.hf-baum__seite { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; color: inherit; text-decoration: none; }
.hf-baum__seite > span:first-child { flex: 1; min-width: 0; }
.hf-baum__seite b { display: block; font-weight: 600; }
.hf-baum__seite small { display: block; color: #6e6e73; font-size: .8125rem; overflow-wrap: anywhere; }
.hf-baum__seite:hover, .hf-baum__seite:focus-visible { background: #f5f5f7; }
.hf-baum__seite svg { color: #86868b; flex: none; }
.hf-baum__kinder { border-top: 1px solid rgba(0,0,0,.06); padding-left: 20px; }
.hf-baum__kinder li + li { border-top: 1px solid rgba(0,0,0,.05); }
.hf-baum__kinder .hf-baum__seite b { font-weight: 500; }
/* Homepage › Seiten: feste Bilder der Seite */
.hf-seitenbild { margin-bottom: var(--tk-4, 1rem); }
.hf-seitenbild .hf-ausschnitt__rahmen { max-width: 32rem; }
/* Homepage › Gruppen: Reihenfolge, Farbe, neue Gruppe (Lückenliste Punkt 2) */
.hf-baum__mit-ordnen { display: flex; align-items: center; }
.hf-baum__mit-ordnen > .hf-baum__seite { flex: 1; min-width: 0; }
.hf-ordnen { display: flex; gap: 2px; padding-right: 8px; }
.hf-ordnen form { margin: 0; }
.hf-ordnen button { min-width: 44px; min-height: 44px; }
.hf-farbpunkt { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .45em; vertical-align: .05em; }
.hf-farben { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-farbe { position: relative; cursor: pointer; }
.hf-farbe input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hf-farbe span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 22px; box-shadow: inset 0 0 0 1px #d2d2d7; background: #fff; font-size: .875rem; }
.hf-farbe i { width: 22px; height: 22px; border-radius: 50%; }
.hf-farbe input:checked + span { box-shadow: inset 0 0 0 2.5px #0f5e6b; background: #e9f3f4; }
.hf-farbe input:focus-visible + span { outline: 3px solid #2aa3b8; outline-offset: 2px; }
.hf-neu { margin: 0; border: 0; }
.hf-neu > summary { padding: 10px 16px; min-height: 52px; }
.hf-c-welpen { background: #c98a4b; } .hf-c-jung { background: #a8642f; } .hf-c-basis { background: #2f7d55; } .hf-c-spiel { background: #5b5fa8; }
.hf-c-long { background: #a2496b; } .hf-c-trail { background: #3e6c8a; } .hf-c-fam { background: #3d7373; } .hf-c-rally { background: #8a6d1f; } .hf-c-none { background: #d2d2d7; }
/* Verein › Vereinsdaten */
.hf-vd-bilder { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.hf-vd-bild__vorschau { display: block; max-width: 100%; height: 96px; object-fit: contain; border-radius: 12px; background: #f5f5f7; padding: 8px; margin-bottom: 8px; }
.hf-vd-bild__vorschau--teilenbild { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; padding: 0; }
.hf-vd-gruppe + .hf-vd-gruppe { border-top: 1px solid rgba(0,0,0,.06); padding-top: 12px; }
.hf-vd-gruppe legend { font-weight: 600; margin-bottom: 6px; }

/* Anmeldeformulare pflegen (Lücke 6) */
.hf-formfelder { margin-top: 12px; }
.hf-formfeld { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--tk-separator, rgba(60,60,67,.12)); }
.hf-formfeld:last-child { border-bottom: 0; }
.hf-formfeld__pflicht { flex: none; }
.hf-zusatz { display: grid; gap: 8px 12px; grid-template-columns: 1fr; padding: 12px 0; border-bottom: 1px solid var(--tk-separator, rgba(60,60,67,.12)); }
.hf-zusatz:last-child { border-bottom: 0; }
@media (min-width: 720px) { .hf-zusatz { grid-template-columns: 2fr 1fr auto; align-items: end; } }

/* Weitere Fotos je Beitrag (Lücke 18) */
.hf-galerie { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.hf-galerie li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
.hf-galerie img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; background: #e9ece9; }
.hf-galerie input[type=text] { width: 100%; }

/* Geführte Rundgänge „Zeig's mir“ (Lücke 15, wie im Trainerkalender) */
.tk-tour-ziel { outline: 3px solid var(--tk-critical); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; border-radius: var(--tk-radius-sm); scroll-margin: calc(var(--tk-topbar-h) + 1rem) 0 12rem; }
@media (prefers-reduced-motion: no-preference) { .tk-tour-ziel { animation: tk-tour-puls 1.6s ease-in-out infinite; } }
@keyframes tk-tour-puls { 50% { outline-offset: 7px; box-shadow: 0 0 0 7px #fff; } }
.tk-tour { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tk-bottomnav-h) + 12px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(30rem, calc(100vw - 24px)); display: flex; gap: var(--tk-3); align-items: flex-start; padding: var(--tk-3); background: var(--tk-surface); color: var(--tk-text); border: 1px solid var(--tk-border); border-radius: var(--tk-radius); box-shadow: 0 12px 32px rgb(16 40 28 / .22); }
.tk-tour__avatar { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; background: var(--tk-brand-50); }
.tk-tour__inhalt { flex: 1; min-width: 0; }
.tk-tour__stand { margin: 0; color: var(--tk-text-muted); font-size: var(--tk-text-sm); }
.tk-tour__text { margin: .25rem 0 var(--tk-3); font-size: var(--tk-text-md); line-height: 1.45; }
.tk-tour__knoepfe { display: flex; flex-wrap: wrap; gap: var(--tk-2); justify-content: flex-end; }
.tk-tour__zu { flex: none; width: var(--tk-touch); height: var(--tk-touch); margin: calc(-1 * var(--tk-2)) calc(-1 * var(--tk-2)) 0 0; border: 0; background: none; color: var(--tk-text-muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
@media (min-width: 64rem) { .tk-tour { left: auto; right: 24px; bottom: 24px; transform: none; } }
html.spuer-offen .tk-tour { display: none; }
html.tk-tour-an .spuer-float { display: none; }

/* Absage-Dialog (Chris, 18.11.) */
.hf-absage { width: min(30rem, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: var(--tk-4); border: 0; border-radius: var(--tk-radius); background: var(--tk-surface); color: var(--tk-text); box-shadow: 0 20px 48px rgb(16 40 28 / .28); }
.hf-absage::backdrop { background: rgb(16 24 20 / .45); }
.hf-absage__titel { margin: 0 0 var(--tk-1); font-size: var(--tk-text-lg); }
.hf-absage__was { margin: 0 0 var(--tk-3); color: var(--tk-text-muted); }
.hf-absage__knoepfe { flex-wrap: wrap; }
@media (max-width: 30rem) { .hf-absage__knoepfe > button { flex: 1 1 100%; } }

/* Passkeys (Lücke 17) */
.hf-passkeys { list-style: none; margin: 0 0 var(--tk-3); padding: 0; display: grid; gap: var(--tk-3); }
.hf-passkeys li { padding: var(--tk-3); border: 1px solid var(--tk-border); border-radius: var(--tk-radius-sm); }
.hf-passkeys__name { display: flex; gap: var(--tk-2); align-items: center; }
.hf-passkeys__name input { flex: 1; min-width: 0; }
.hf-passkeys .tk-hint { margin: var(--tk-1) 0; }
.hf-oder { display: flex; align-items: center; gap: var(--tk-2); color: var(--tk-text-muted); font-size: var(--tk-text-sm); margin: 0 0 var(--tk-3); }
.hf-oder::before, .hf-oder::after { content: ""; flex: 1; height: 1px; background: var(--tk-border); }
.hf-absage input[type=text] { display: block; width: 100%; min-height: var(--tk-touch); padding: .625rem .75rem; font: inherit; font-size: var(--tk-text-md); color: var(--tk-text); background: #fff; border: 1px solid #cfcabe; border-radius: var(--tk-radius-sm); }
.hf-absage input[type=text]:focus-visible { outline: 3px solid var(--tk-focus); outline-offset: 1px; border-color: var(--tk-brand-900); }
/* Personenfoto für die Homepage: runder Ausschnitt mit Größenregler (Chris, 18.11.2026) */
.hf-ausschnitt--rund .hf-ausschnitt__rahmen { aspect-ratio: 1; width: 12rem; max-width: 100%; border-radius: 50%; }
.hf-ausschnitt--rund .hf-ausschnitt__rahmen img { transform-origin: 50% 50%; }
.hf-ausschnitt__regler { display: flex; align-items: center; gap: var(--tk-3, 12px); max-width: 18rem; margin-top: var(--tk-3, 12px); }
.hf-ausschnitt__regler label { font-weight: 600; font-size: var(--tk-text-sm, .875rem); }
.hf-ausschnitt__regler input[type=range] { flex: 1; min-width: 0; accent-color: var(--tk-accent, #0f5e6b); }
/* Startseite: Rundgang starten wie die anderen kurzen Wege */
.tk-linklist .hf-rundgang-start { box-sizing: border-box; display: flex; align-items: center; gap: var(--tk-2); width: calc(100% + 2 * var(--tk-4)); min-height: var(--tk-touch); margin: calc(-1 * var(--tk-3)) calc(-1 * var(--tk-4)); padding: 0 var(--tk-4); border: 0; background: none; color: var(--tk-brand-900); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.tk-linklist .hf-rundgang-start > span { flex: 1; }
.tk-linklist .hf-rundgang-start:hover { background: var(--tk-brand-50); }
.hf-ausschnitt--rund { display: grid; justify-items: start; }
.hf-ausschnitt__vorschau { display: flex; flex-direction: column; align-items: center; width: 12rem; max-width: 100%; margin: var(--tk-2, 8px) 0 0; text-align: center; line-height: 1.3; }
.hf-ausschnitt__vorschau b { font-size: 1.0625rem; }
.hf-ausschnitt__vorschau span { color: var(--tk-text-muted, #6e6e73); font-size: .875rem; }
.hf-ausschnitt__vorschau small { margin-top: 4px; color: var(--tk-text-muted, #6e6e73); font-size: .75rem; }

/* Profilbild statt „Profil“ oben rechts (Chris, 18.11.). Safari schneidet ein vergrößertes Foto sonst nicht rund (eigene Ebene per translateZ). */
.tk-profile > summary.tk-iconlink { padding: 0 6px; }
.hf-profilbild { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; clip-path: circle(50%); background: var(--tk-brand-900); color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; box-shadow: 0 0 0 2px var(--tk-surface), 0 0 0 3px var(--tk-border); }
.hf-profilbild img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.hf-profilbild:has(img) { background: #e8e8ed; }
.tk-profile[open] .hf-profilbild, .tk-profile > summary[data-current] .hf-profilbild { box-shadow: 0 0 0 2px var(--tk-surface), 0 0 0 4px var(--tk-brand-900); }
.hf-ausschnitt--rund .hf-ausschnitt__rahmen { isolation: isolate; -webkit-transform: translateZ(0); transform: translateZ(0); }

/* Profilmenü liegt über der Reiterleiste der Trainer am Rechner (beide hatten z-index 20, die Reiter verdeckten „Mein Zugang“). */
.tk-topbar { z-index: 25; }
/* Während eines Rundgangs unten Platz lassen: Ziele am Seitenende rutschen über die Blase. */
html.tk-tour-an .tk-main { padding-bottom: 16rem; }
.tk-tour__warte { align-self: center; color: var(--tk-text-muted); font-size: var(--tk-text-sm); }
.hf-rundgang-liste { list-style: none; margin: 0 0 var(--tk-2); padding: 0; }
.hf-rundgang-liste .hf-rundgang-start { justify-content: flex-start; margin: 0; width: 100%; padding: 0 var(--tk-3) 0 1.75rem; font-weight: 500; border-radius: var(--tk-radius-sm); }
.hf-rundgang-liste .hf-rundgang-start::before { content: "▸"; color: var(--tk-text-muted); }

/* ---- Trainer-App (Chris, 18.11.2026) ----
   Statusmarken, Netzhinweis und Meldungen gibt es überall; der App-Look gilt nur in der installierten App (html.hf-app). */
.hf-pill { display: none; align-items: center; min-height: 26px; padding: 0 .65rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; white-space: nowrap; background: var(--tk-brand-50); color: var(--tk-brand-900); }
.hf-pill--ab, .hf-pill--aus { background: var(--tk-critical-bg); color: var(--tk-critical-text); }
.hf-pill--hilf, .hf-pill--frage { background: var(--tk-short-bg); color: var(--tk-short-text); }
.hf-pill--wartet { display: inline-flex; background: var(--tk-surface-muted); color: var(--tk-text-muted); border: 1px dashed var(--tk-border-strong, #c9cdd0); }
.hf-netz { position: sticky; top: var(--tk-topbar-h, 0); z-index: 24; margin: 0; padding: .55rem max(1rem, env(safe-area-inset-left)); background: #2f3437; color: #fff; font-size: .875rem; line-height: 1.4; }
.hf-netz--warte { background: var(--tk-brand-900); }
.hf-meldung { position: fixed; z-index: 60; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom)); max-width: min(92vw, 30rem); padding: .6rem 1rem; border-radius: 999px; background: #1c1f22; color: #fff; font-size: .875rem; font-weight: 600; text-align: center; box-shadow: 0 8px 24px rgb(0 0 0 / .18); opacity: 0; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.hf-meldung.is-da { opacity: 1; transform: translate(-50%, 0); }
.hf-schritte { list-style: none; margin: 0 0 var(--tk-3); padding: 0; display: grid; gap: .75rem; }
.hf-schritte li { display: flex; gap: .75rem; align-items: flex-start; }
.hf-schritt__nr { flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--tk-brand-900); color: #fff; font-weight: 700; font-size: .875rem; }
.hf-teilen { width: 1.1em; height: 1.1em; vertical-align: -.15em; color: var(--tk-info); }
.hf-qr { display: flex; gap: var(--tk-4); align-items: center; flex-wrap: wrap; }
.hf-qr img { border-radius: .75rem; border: 1px solid var(--tk-border); background: #fff; image-rendering: pixelated; }
.hf-qr > div { flex: 1 1 16rem; min-width: 0; }
.hf-kann { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
html.hf-app .hf-nur-browser { display: none; }

/* App-Look: ruhiger Kopf, große Titel, Statusmarke statt Knopf, Wischen, Blatt von unten */
html.hf-app .tk-wordmark__club, html.hf-app .tk-wordmark__product, html.hf-app .tk-topbar .tk-iconlink[href="/"] { display: none; }
html.hf-app .tk-pagehead h1 { font-size: 2.125rem; letter-spacing: -.02em; line-height: 1.1; }
html.hf-app .tk-legalnav { padding-bottom: 5rem; }
html.hf-app .tk-rows { border-radius: 14px; }
html.hf-app .tk-row:not(.tk-row--hero):not(.calendar-week .tk-row) .tk-act:not(.tk-act--vorstand) { display: none; }
html.hf-app .tk-row:not(.tk-row--hero):not(.calendar-week .tk-row) .hf-pill { display: inline-flex; }
html.hf-app .tk-row:not(.tk-row--hero) { background: var(--tk-surface); touch-action: pan-y; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
html.hf-app .tk-row.tk-row--muted { background: var(--tk-surface-muted); }
html.hf-app .tk-row.is-zieht { transition: none; }
.hf-wisch-li { position: relative; }
div.hf-wisch-li { border-radius: var(--tk-radius-sm); overflow: hidden; }
div.hf-wisch-li + div.hf-wisch-li { margin-top: var(--tk-2); }
div.hf-wisch-li > .calendar-event.tk-row { margin-top: 0; }
.hf-wisch { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 1.25rem; color: #fff; font-weight: 700; font-size: .9375rem; }
.hf-wisch--ab { background: var(--tk-critical); }
.hf-wisch--zu { background: var(--tk-brand-900); }
.hf-wisch.is-bereit { padding-right: 1.6rem; }
.hf-tipp { margin: 0 0 .5rem; color: var(--tk-text-muted); font-size: .8125rem; }
.hf-blatt { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; background: rgb(0 0 0 / .28); opacity: 0; pointer-events: none; transition: opacity .2s; }
.hf-blatt.is-auf { opacity: 1; pointer-events: auto; }
.hf-blatt__karte { width: 100%; max-width: 36rem; margin: 0 auto; padding: .5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: var(--tk-surface); transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.hf-blatt.is-auf .hf-blatt__karte { transform: none; }
.hf-blatt__griff { width: 36px; height: 5px; margin: .25rem auto .9rem; border-radius: 3px; background: var(--tk-border-strong, #c9cdd0); }
.hf-blatt__titel { margin: 0; font-size: 1.375rem; }
.hf-blatt__zeit { margin: .15rem 0 0; color: var(--tk-text-muted); }
.hf-blatt__lage { margin: .15rem 0 1rem; color: var(--tk-text-muted); font-size: .875rem; }
.hf-blatt__knoepfe { display: grid; gap: .5rem; }
.hf-blatt__knoepfe form { margin: 0; }
.hf-blatt__knopf { display: flex; width: 100%; align-items: center; justify-content: center; gap: .4rem; min-height: 50px; padding: 0 1rem; border: 0; border-radius: 12px; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; }
.hf-blatt__knopf--ab { background: var(--tk-critical-bg); color: var(--tk-critical-text); }
.hf-blatt__knopf--zu { background: var(--tk-brand-900); color: #fff; }
.hf-blatt__knopf--zu .tk-paw { fill: currentColor; width: 1.1em; height: 1.1em; }
.hf-blatt__knopf--leise { background: var(--tk-surface-muted); color: var(--tk-text); }
@media (prefers-reduced-motion: reduce) { .hf-blatt, .hf-blatt__karte, html.hf-app .tk-row, .hf-meldung { transition: none; } }
html.hf-app .tk-row__link { -webkit-user-drag: none; }
html.hf-app .spuer-float { display: none !important; }
/* Trainer-App-Anleitung: erst Gerät wählen (Chris, 18.11.) */
.hf-geraet__wahl { display: flex; width: 100%; }
.hf-geraet__wahl label { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: var(--tk-touch); font-weight: 600; cursor: pointer; }
.hf-gruppenwahl a { min-height: 3.5rem; padding-block: .5rem; }
.hf-gruppenwahl small { display: block; font-weight: 400; color: var(--tk-text-muted, #6e6e73); font-size: var(--tk-text-sm, .875rem); }
.hf-nur-rechner { margin-top: var(--tk-6, 2rem); }
.tk-linklist small.hf-klein { display: block; font-weight: 400; color: var(--tk-text-muted, #6e6e73); font-size: var(--tk-text-sm, .875rem); }
/* Trainer-App: vierter Reiter „Vorstand“ passt in eine Zeile */
.tk-tabs ul:has(> li:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tk-tabs ul:has(> li:nth-child(4)) a { font-size: .75rem; padding-inline: 2px; white-space: nowrap; }
.tk-linklist + .tk-section, .tk-linklist + .tk-empty { margin-top: var(--tk-6, 2rem); }
.hf-nur-rechner .tk-button { margin-top: var(--tk-3, .75rem); }
/* Trainer-App ohne Leiste unten (Chris, 18.11.): Navigation über die Kacheln, oben „‹ Überblick“ */
body.hf-app-ohne-leiste { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
.hf-app-zurueck { display: inline-flex; align-items: center; gap: 2px; min-height: var(--tk-touch, 44px); margin-right: auto; font-size: 1.0625rem; font-weight: 500; color: var(--tk-brand-900, #0f5f68); text-decoration: none; }
html.hf-app .tk-topbar:has(.hf-app-zurueck) .tk-wordmark { display: none; }
/* Trainer-App: Liste im iOS-Stil (Chris, 18.11.): Gruppen mit kleiner Überschrift, Zeilen mit farbigem Symbol, Titel, kurzer Zeile, Stand rechts */
.hf-gruppe { margin-top: 1.75rem; }
.hf-gruppe__titel { margin: 0 0 .4rem 1rem; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--tk-text-muted, #6e6e73); }
.hf-gruppe__fuss { margin: .5rem 1rem 0; font-size: .8125rem; line-height: 1.35; color: var(--tk-text-muted, #6e6e73); }
.hf-liste { list-style: none; margin: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--tk-surface, #fff); box-shadow: 0 0 0 .5px rgb(0 0 0 / .06); }
.hf-liste--abstand { margin-top: 1rem; }
.hf-liste li + li .hf-zeile::before { content: ""; position: absolute; top: 0; left: 3.75rem; right: 0; border-top: .5px solid rgb(60 60 67 / .18); }
.hf-zeile { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 3.5rem; padding: .55rem .875rem; color: var(--tk-text); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hf-zeile:active { background: rgb(0 0 0 / .05); }
.hf-zeile__icon { flex: none; display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border-radius: 7px; color: #fff; background: #0f5f68; }
.hf-zeile__icon--orange { background: #f08a24; } .hf-zeile__icon--blau { background: #2f7de1; } .hf-zeile__icon--rot { background: #e5484d; }
.hf-zeile__icon--grau { background: #8e8e93; } .hf-zeile__icon--lila { background: #8a63d2; }
.hf-zeile__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.hf-zeile__titel { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }
.hf-zeile__was { font-size: .8125rem; color: var(--tk-text-muted, #6e6e73); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-zeile__wert { flex: none; font-size: 1.0625rem; color: var(--tk-text-muted, #8e8e93); font-variant-numeric: tabular-nums; }
.hf-zeile--achtung .hf-zeile__wert, .hf-zeile--neu .hf-zeile__wert { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .45rem; border-radius: 999px; color: #fff; font-size: .875rem; font-weight: 600; }
.hf-zeile--achtung .hf-zeile__wert { background: #f08a24; } .hf-zeile--neu .hf-zeile__wert { background: #e5484d; }
.hf-zeile__pfeil { flex: none; color: rgb(60 60 67 / .3); }
html.hf-app .tk-next { margin-top: .5rem; }
/* Kopf in der App durchscheinend wie eine iOS-Navigationsleiste */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  html.hf-app .tk-topbar { background: rgb(249 249 249 / .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
@media (prefers-reduced-transparency: reduce) { html.hf-app .tk-topbar { background: #f9f9f9; -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* Trainer-App: Leiste unten wie iOS (Chris, 18.11.) */
.hf-leiste { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 6px max(4px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
  background: rgb(249 249 249 / .94); border-top: .5px solid rgb(60 60 67 / .25); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) { .hf-leiste { background: rgb(249 249 249 / .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); } }
@media (prefers-reduced-transparency: reduce) { .hf-leiste { background: #f9f9f9; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.hf-leiste ul { list-style: none; margin: 0 auto; padding: 0; max-width: 34rem; display: flex; }
.hf-leiste li { flex: 1; }
.hf-leiste a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 3rem; padding-top: 2px; color: #8e8e93; font-size: .65625rem; font-weight: 500; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hf-leiste a svg { width: 26px; height: 26px; }
.hf-leiste a[aria-current="page"] { color: var(--tk-brand-900, #0f5f68); }
.hf-leiste a[aria-current="page"] svg { fill: rgb(15 95 104 / .12); }
.hf-leiste a:active { opacity: .6; }
.hf-leiste__zahl { position: absolute; top: -2px; left: calc(50% + 4px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 600; line-height: 17px; text-align: center; }
/* Art der Absage (Chris, 19.11.): Abgesagt rot, Verschoben gelb, Anderer Ort blau – gleiche Farben wie die Stempel auf der Homepage. */
.hf-absage__arten { margin: 0 0 var(--tk-2); }
.hf-arten { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.hf-arten .hf-art { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: var(--tk-touch); padding: 0 4px; font-weight: 500; font-size: .8125rem; white-space: nowrap; cursor: pointer; text-align: center; }
.hf-absage [data-art] > * + * { margin-top: var(--tk-3); }
.hf-art__punkt { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--hf-art, #c0352b); }
.hf-art--rot { --hf-art: #c0352b; }
.hf-art--gelb { --hf-art: #d29a00; }
.hf-art--blau { --hf-art: #1f63b5; }
.hf-absage__stempel { margin: 0 0 var(--tk-3); font-size: var(--tk-text-sm); color: var(--tk-text-muted); }
.hf-stempelchen { display: inline-block; margin-right: 6px; padding: 1px 8px; border: 1.5px solid currentColor; border-radius: 5px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #c0352b; transform: rotate(-2deg); }
.hf-stempelchen--verschoben { color: #8a6100; background: #fff6d6; }
.hf-stempelchen--ortswechsel { color: #1f63b5; background: #eaf2fc; }
.hf-stempelzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 2px 0 0; font-size: var(--tk-text-sm); font-weight: 600; }
.hf-stempelzeile--gelb { color: #6e4e00; }
.hf-stempelzeile--blau { color: #1a4f8f; }
.hf-absage__ok--abgesagt { background: #c0352b; border-color: #c0352b; }
.hf-absage__ok--verschoben { background: #8a6100; border-color: #8a6100; }
.hf-absage__ok--ortswechsel { background: #1f63b5; border-color: #1f63b5; }
.hf-absage input[type=date], .hf-absage input[type=time] { display: block; width: 100%; min-height: var(--tk-touch); padding: .5rem .75rem; font: inherit; font-size: var(--tk-text-md); color: var(--tk-text); background: #fff; border: 1px solid #cfcabe; border-radius: var(--tk-radius-sm); -webkit-appearance: none; appearance: none; }
.hf-pill--verschoben { background: #fff6d6; color: #6e4e00; }
/* Push aufs Handy (Chris, 19.11.) */
.hf-push { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--tk-2) var(--tk-3); align-items: start; margin: 0 0 var(--tk-4); padding: var(--tk-3) var(--tk-4); background: var(--tk-surface); border: 1px solid var(--tk-border); border-radius: var(--tk-radius); }
.hf-push[hidden] { display: none; }
.hf-push__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #ff3b30; color: #fff; }
.hf-push[data-zustand="an"] .hf-push__icon { background: #34c759; }
.hf-push__titel { margin: 0; font-size: var(--tk-text-md); font-weight: 600; }
.hf-push__was { margin: 2px 0 0; color: var(--tk-text-muted); font-size: var(--tk-text-sm); }
.hf-push__knoepfe { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--tk-2); }
.hf-push__knoepfe form { margin: 0; }
.hf-push__knoepfe [hidden] { display: none; }
.hf-absage__band { margin: var(--tk-3) 0 0; font-size: var(--tk-text-sm); }
