.club-empty{padding:24px;border:1px dashed #cbd4da;border-radius:10px;line-height:1.7;grid-column:1/-1}
.statistics-section{margin:0 0 24px}.statistics-weeks{display:grid;gap:12px}.statistics-week{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.statistics-week span{justify-self:end;color:var(--muted);font-size:12px}.statistics-week progress{grid-column:1/-1}.statistics-player-table th,.statistics-player-table td{padding:12px 10px}
@media(max-width:700px),(max-height:520px) and (pointer:coarse){
  .club-heading{display:block;text-align:center}
  .club-heading>.btn{width:100%;margin-top:18px;font-size:14px}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}
.pull-refresh-enabled,.pull-refresh-enabled body{overscroll-behavior-y:contain}
.pull-refresh-hint{position:fixed;top:calc(env(safe-area-inset-top,0px) + 12px);left:50%;transform:translateX(-50%);z-index:100;max-width:calc(100% - 32px);width:max-content;padding:12px 18px;border:1px solid var(--line);border-radius:24px;background:#fff;color:var(--navy);box-shadow:0 4px 20px #192a3520;font-size:13px;text-align:center;pointer-events:none}
.login-card input[type=hidden]{display:none!important}
.date-picker-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.35fr);gap:10px}
.date-picker-row .next-select{min-width:0}
.date-picker-row .next-select-trigger{gap:8px;padding:11px 10px}
#birthdateLabel{font-size:13px;font-weight:650}
body{padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
.brand img,.header-brand img{max-width:100%;object-fit:contain}
@media(display-mode:standalone){
  .workspace header,.player-mode header{height:auto;min-height:88px;padding-top:16px;padding-bottom:16px;background:#fff}
  aside{top:env(safe-area-inset-top,0px)}
}
@media(max-width:700px),(max-height:520px) and (pointer:coarse){
  body{font-size:15px;-webkit-text-size-adjust:100%}
  #shell,.workspace,main,.panel,.task>*,.planning-card-main{min-width:0}
  aside{padding:20px 16px 0}
  aside .brand{height:auto;min-height:48px;justify-content:center;padding-bottom:14px;border-bottom:1px solid var(--line)}
  aside .brand img{width:156px}
  aside #nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:16px 0;overflow:visible}
  aside #nav button{min-width:0;min-height:48px;font-size:13px;padding:12px 8px;white-space:normal}
  .workspace header,.player-mode header{height:auto;min-height:76px;padding:14px 16px;gap:12px;flex-wrap:wrap;background:#fff}
  #breadcrumb{max-width:none;font-size:10px;flex:1 1 100%}
  .identity{width:100%;gap:8px;flex-wrap:nowrap;font-size:13px;min-width:0}
  .identity>span:not(.avatar){max-width:none;flex:1;min-width:0;overflow-wrap:anywhere}
  .identity small{font-size:11px}
  .identity .avatar{width:32px;height:32px;flex-shrink:0}
  .identity .text-button,#logout{min-height:44px;font-size:12px;padding:10px;margin-left:0;flex-shrink:0}
  .player-mode .header-brand{width:100%;min-height:44px;justify-content:center;padding-bottom:14px;border-bottom:1px solid var(--line)}
  .player-mode .header-brand img{width:154px}
  main,.player-mode main{padding:24px 16px 32px}
  h1{font-size:30px;line-height:1.15;overflow-wrap:anywhere}
  .page-heading,.section-head{gap:14px;flex-wrap:wrap}
  .page-heading p,.section-head p,.task p,.plan-row p,.planning-card small{font-size:13px;line-height:1.6}
  .btn,.text-button,.next-option{min-height:46px;font-size:14px}
  .page-heading .btn,.plan-row .btn{font-size:13px;white-space:normal}
  input:not([type=checkbox]),select,textarea,.next-select-trigger{font-size:16px;min-height:48px}
  input[type=date]{-webkit-appearance:auto;appearance:auto;min-height:50px;padding-right:12px}
  input[type=date]::-webkit-calendar-picker-indicator{width:24px;height:24px;padding:4px;opacity:.8;cursor:pointer}
  .date-picker-row{display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:8px;margin-bottom:16px}
  .date-picker-row select{min-width:0}
  .login-card input[type=hidden]{display:none!important}
  label,.check-note{font-size:13px}
  .form-grid{grid-template-columns:minmax(0,1fr)}
  .field,.next-select{min-width:0}
  .next-select-trigger span{min-width:0;overflow-wrap:anywhere}
  .login-page{min-height:0;padding:24px 16px 32px}
  .login-story .brand{justify-content:center;margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--line)}
  .login-story h1{font-size:30px}
  .login-story>p{font-size:14px;margin-bottom:20px}
  .login-footer{display:none}
  .login-card{padding:22px 18px}
  .login-card>p{font-size:14px}
  .role-tabs button{font-size:14px;min-height:44px}
  .panel,.control-plan-chooser,.roster-team-chooser{padding:18px 16px}
  .planning-cards{grid-template-columns:minmax(0,1fr)}
  .planning-card strong{font-size:16px;overflow-wrap:anywhere}
  .planning-overview-head .actions{display:grid;grid-template-columns:1fr}
  .plan-checks,.roster-team-chooser .plan-checks{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
  .plan-checks label{width:100%;font-size:14px;min-height:48px;overflow-wrap:anywhere}
  .stats{gap:8px}
  .stat{padding:16px 10px;min-width:0}
  .stat p{font-size:12px;overflow-wrap:anywhere}
  main:has(.stats) .stats + .section-head{justify-content:center;padding:16px}
  main:has(.stats) .stats + .section-head::before{width:100%;text-align:center;margin:0}
  .week-switch{width:100%;justify-content:space-between;gap:6px}
  .week-switch span{min-width:0;font-size:14px}
  .week-switch span small{font-size:11px;white-space:normal;text-align:center}
  .week-switch button{width:44px;height:44px;flex-shrink:0}
  .task{padding:18px 14px;grid-template-columns:32px minmax(0,1fr);gap:12px}
  .task h3{font-size:16px}
  .task-action{grid-column:1/-1;flex-wrap:wrap;gap:10px}
  .task-action .text-button{min-height:46px;font-size:13px}
  .badge{font-size:12px;white-space:normal}
  .plan-row{flex-wrap:wrap;align-items:flex-start}
  .plan-row .grow{flex-basis:calc(100% - 64px)}
  .plan-row .actions{width:100%}
  .plan-row .actions>*{flex:1}
  .table-wrap{max-width:100%;overscroll-behavior-x:contain}
  .roster-list th,.roster-list td{padding:12px 10px}
  .player-line strong{font-size:13px}
  dialog,.generator-dialog{width:calc(100% - 24px);max-width:560px;top:calc(env(safe-area-inset-top,0px) + 12px);bottom:auto;margin:0 auto;padding:20px 16px;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);overflow:auto}
  .generator-dialog #dialogBody{max-height:none;overflow:visible;padding:0}
  .generator-dialog .dialog-head,.generator-dialog .dialog-actions{position:static}
  .generator-dialog .dialog-actions .btn{min-width:0}
  .dialog-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  .dialog-actions .btn{width:100%;min-width:0}
  .public-legal{position:static;display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:0 16px 16px;padding:8px;border:0;background:transparent}
  .public-legal a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;font-size:12px}
  .public-legal a+a::before{display:none}
  footer{flex-wrap:wrap;gap:8px}
  #toast{bottom:calc(16px + env(safe-area-inset-bottom,0px));font-size:14px}

  /* Mannschaftsseite: touchfreundliche Reihenfolge und genügend Breite für die Liste. */
  main:has(.roster-team-chooser) .page-heading,
  main:has(.roster-list)>.page-heading{text-align:center;display:block;padding-bottom:18px;border-bottom:1px solid var(--line)}
  main:has(.roster-team-chooser) .page-heading .actions,
  main:has(.roster-list)>.page-heading .actions{display:grid;grid-template-columns:1fr;gap:9px;margin-top:16px}
  main:has(.roster-team-chooser) .page-heading .actions .btn,
  main:has(.roster-list)>.page-heading .actions .btn{width:100%}
  main:has(.roster-team-chooser) .roster-team-chooser{margin-bottom:18px}
  main:has(.roster-team-chooser) .toolbar{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:16px}
  main:has(.roster-team-chooser) .toolbar>*{width:100%;max-width:none;margin:0!important}
  main:has(.roster-team-chooser) .toolbar .label-inline{justify-content:flex-start}
  main:has(.roster-team-chooser) .table-wrap{overflow:visible;border:0;background:transparent;border-radius:0}
  main:has(.roster-team-chooser) .toolbar input[type=checkbox]{flex:0 0 23px;margin:0;max-width:23px}
  main:has(.roster-team-chooser) .toolbar>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  main:has(.roster-team-chooser) .toolbar>.actions .btn{min-width:0;min-height:48px;white-space:normal;font-size:13px;padding:10px 8px}
  main:has(.roster-team-chooser) .toolbar .label-inline{white-space:normal;line-height:1.35;min-height:48px}

  /* Kontrollseite: alle drei Einheiten gleichzeitig sichtbar. */
  main:has(.stats) .table-wrap{overflow-x:hidden}
  main:has(.stats) .table-wrap table{width:100%;table-layout:fixed;white-space:normal}
  main:has(.stats) .table-wrap th,
  main:has(.stats) .table-wrap td{padding:8px 4px;font-size:10px;overflow-wrap:anywhere}
  main:has(.stats) .table-wrap th:first-child,
  main:has(.stats) .table-wrap td:first-child{width:31%;position:static}
  main:has(.stats) .table-wrap th:not(:first-child),
  main:has(.stats) .table-wrap td:not(:first-child){width:23%}
  main:has(.stats) .table-wrap th{font-size:8px;letter-spacing:.2px;line-height:1.25}
  main:has(.stats) .table-wrap td small{font-size:8px;line-height:1.2}
  main:has(.stats) .status-cell{width:100%;min-height:34px;padding:3px 2px;font-size:8px;line-height:1.2}
  main:has(.stats) .status-cell .badge{font-size:8px;padding:3px 4px;white-space:normal}

  /* Trainingsplan-Detailansicht */
  main:has(.week-tabs)>.page-heading{display:block;text-align:center;padding-bottom:18px;border-bottom:1px solid var(--line)}
  main:has(.week-tabs)>.page-heading .actions{display:grid;grid-template-columns:1fr;gap:9px;margin-top:16px}
  main:has(.week-tabs)>.page-heading .actions>*{width:100%;min-height:46px}
  main:has(.week-tabs) .week-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0}
  main:has(.week-tabs) .week-tabs button{min-height:46px;font-size:13px;padding:10px 8px}
  main:has(.week-tabs)>.panel{padding:16px 14px}
  main:has(.week-tabs)>.panel .section-head{align-items:stretch;display:block;text-align:center;padding-bottom:14px;border-bottom:1px solid var(--line)}
  main:has(.week-tabs)>.panel .section-head .btn{width:100%;margin-top:14px}
  main:has(.week-tabs) .plan-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;padding:16px 0}
  main:has(.week-tabs) .plan-row .task-icon{width:36px;height:36px}
  main:has(.week-tabs) .plan-row .grow{grid-column:2;min-width:0}
  main:has(.week-tabs) .plan-row .grow h3{font-size:15px;overflow-wrap:anywhere}
  main:has(.week-tabs) .plan-row .grow p{font-size:12px;overflow-wrap:anywhere}
  main:has(.week-tabs) .plan-row>.btn,
  main:has(.week-tabs) .plan-row>.text-button{grid-column:1/-1;width:100%;min-height:44px;margin-top:2px}
  main:has(.week-tabs) .plan-row .actions{grid-column:1/-1;width:100%}
  main:has(.week-tabs) .auto-week-button{width:100%;white-space:normal}
}

/* Abschluss des Admin-Menüs */
aside nav{padding-bottom:16px;border-bottom:1px solid var(--line)}

@media(min-width:701px) and (min-height:521px),(min-width:701px) and (pointer:fine){
  .date-picker-row{display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:10px;margin:0 0 16px}
  .date-picker-row select{min-height:44px;border-radius:9px;background:#fff}
  .date-picker-row select:focus{outline:2px solid rgba(var(--accent-rgb),.25);border-color:var(--orange)}
}
@media(max-width:700px),(max-height:520px) and (pointer:coarse){
  .player-mode #app>.page-heading{display:block;text-align:center;padding:0 0 18px;margin-bottom:22px;border-bottom:1px solid var(--line)}
  .player-mode #app>.page-heading .eyebrow{margin-bottom:7px}
  .player-mode #app>.page-heading h1{font-size:28px}
  .player-mode #app>.page-heading p{font-size:13px}
  .player-mode #app>.page-heading .pill{display:none}
  .player-mode #app .section-head{display:block;text-align:center;padding:0 0 16px;margin:26px 0 18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
  .player-mode #app .section-head h2{padding-top:16px;font-size:21px}
  .player-mode #app .section-head .week-switch{margin-top:14px}
}
/* Generator controls share the same compact layout on desktop and mobile. */
.generator-weekdays{display:flex;flex-wrap:wrap;gap:8px}
.generator-weekdays label,.generator-remove{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #d9e1e6;border-radius:10px;cursor:pointer}
.generator-weekdays input[type=checkbox],.generator-remove input[type=checkbox]{width:22px;min-width:22px;height:22px;flex:none}
.generator-game{padding:16px 0;border-bottom:1px solid #d9e1e6;align-items:end}
.generator-dialog fieldset{min-width:0;margin:18px 0;padding:14px;border:1px solid #d9e1e6;border-radius:12px}
.generator-dialog textarea{width:100%;min-height:130px}
.preview-removed{opacity:.6}
.generated-week article{min-width:0}
.planning-card>.note{display:block}
@media(max-width:600px){.generator-game.form-grid{grid-template-columns:minmax(0,1fr)}.generator-dialog .dialog-actions{display:grid;grid-template-columns:minmax(0,1fr)}.generator-weekdays label{padding:8px}}

/* Formulare in Dialogen: gleiche Feldhöhen, ein Abstand pro Feld, Datum mit genug Platz. */
.field{align-content:start}
.field>.date-picker-row{margin:0}
.date-picker-row{grid-template-columns:minmax(0,.8fr) minmax(0,1.45fr) minmax(0,1fr)}
.form-grid:has(.date-picker-row){grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
dialog input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),dialog .next-select-trigger{min-height:44px}
#dialogBody p+.field,#dialogBody p+fieldset{margin-top:14px}
#dialogBody:focus{outline:none}
.generator-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.generator-weekdays label{justify-content:center;gap:6px;padding:9px 4px;font-size:12px}
.generator-weekdays input[type=checkbox]{width:18px;min-width:18px;height:18px}
.generator-dialog .generator-days{min-height:0}
.generator-dialog fieldset legend{padding:0 6px;font-size:12px;font-weight:650;color:var(--navy)}
@media(max-width:700px),(max-height:520px) and (pointer:coarse){
  dialog input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),dialog .next-select-trigger{min-height:48px}
  .form-grid:has(.date-picker-row){grid-template-columns:minmax(0,1fr)}
  .generator-weekdays{grid-template-columns:repeat(4,minmax(0,1fr))}
  .form-grid{row-gap:0}
}

/* Mobil für Trainer und Admin: schmale Kopfzeile oben, Menü als feste Leiste unten (Daumenbereich). */
@media(max-width:700px),(max-height:520px) and (pointer:coarse){
  #shell:not(.player-mode) aside{position:fixed;top:auto;bottom:0;left:0;right:0;z-index:50;width:auto;height:auto;display:block;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));border:0;border-top:1px solid var(--line);background:#fff;box-shadow:0 -8px 24px #192a350f}
  #shell:not(.player-mode) aside>:not(nav){display:none!important}
  #shell:not(.player-mode) aside #nav{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;padding:0;border:0;overflow:visible}
  #shell:not(.player-mode) aside #nav button{position:relative;flex-direction:column;justify-content:center;gap:3px;min-width:0;min-height:54px;padding:6px 2px;border-radius:10px;background:none;color:#7b858d;font-size:10.5px;font-weight:650;white-space:nowrap}
  #shell:not(.player-mode) aside #nav button.active{background:#f1f4f6;color:var(--navy)}
  #shell:not(.player-mode) aside #nav .nav-no,#shell:not(.player-mode) aside #nav .nav-text{display:none}
  #shell:not(.player-mode) aside #nav .nav-short{display:block;font-size:10.5px;color:inherit;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  #shell:not(.player-mode) aside #nav .nav-icon{display:block;width:23px;height:23px}
  #shell:not(.player-mode) aside #nav button.active .nav-icon{color:var(--orange)}
  #shell:not(.player-mode) aside #nav .nav-badge{position:absolute;top:3px;left:calc(50% + 6px);margin:0;min-width:18px;height:18px;padding:0 5px;font-size:9.5px;line-height:18px}
  #shell:not(.player-mode) .workspace header{min-height:0;height:auto;padding:10px 16px;flex-wrap:nowrap;gap:10px;position:sticky;top:0;z-index:40}
  #shell:not(.player-mode) #headerBrand{display:flex;flex-shrink:0}
  #shell:not(.player-mode) #headerBrand img{width:112px}
  #shell:not(.player-mode) #breadcrumb,#shell:not(.player-mode) #identity{display:none}
  #shell:not(.player-mode) .identity{width:auto;margin-left:auto;gap:6px}
  #shell:not(.player-mode) .identity .avatar{width:32px;height:32px}
  /* Schmale Handys: Initialen ausblenden (das Konto-Symbol daneben öffnet dasselbe), sonst ragt „Abmelden“ über den Rand und die Seite wird seitlich verschiebbar */
  #shell:not(.player-mode) .identity .text-button,#shell:not(.player-mode) #logout{min-height:38px;padding:8px 11px;font-size:12px}
  #shell:not(.player-mode) footer{justify-content:center;border-top:0;padding:20px 18px calc(92px + env(safe-area-inset-bottom,0px));font-size:0}
  #shell:not(.player-mode) footer>span:not(.footer-legal){display:none}
  #shell:not(.player-mode) .footer-legal{display:flex;gap:16px}
}

/* Mobil: Spielerliste als Karten – Name, Mannschaft und Status links, Symbol-Buttons rechts. Unabhängig von der Anzahl der Mannschaften. */
@media(max-width:700px),(max-height:520px) and (pointer:coarse){
  #app .roster-list,#app .roster-list tbody{display:block;min-width:0}
  #app .roster-list thead{display:none}
  #app .table-wrap:has(.roster-list){border:0;background:none;overflow:visible}
  #app .roster-list tbody{display:grid;gap:10px}
  #app .roster-list tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:4px;align-items:start;padding:14px 14px 14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff}
  #app .roster-list tbody td{display:block;border:0;padding:0;min-width:0;white-space:normal}
  #app .roster-list tbody td:nth-child(1){grid-column:1;grid-row:1}
  #app .roster-list tbody td:nth-child(2){grid-column:1;grid-row:2;font-size:12px;color:var(--muted)}
  #app .roster-list tbody td:nth-child(3){grid-column:1;grid-row:3;margin-top:4px}
  #app .roster-list tbody td.roster-actions{grid-column:2;grid-row:1/span 3;width:auto;align-self:center}
  #app .roster-list tbody td.empty{grid-column:1/-1;grid-row:auto;text-align:center}
  #app .roster-list .player-line strong{font-size:15px;overflow-wrap:anywhere}
  #app .roster-list td small{font-size:12px}
  #app .icon-btn{width:42px;height:42px}
}


/* Schmale Handys: Aktualisieren per Herunterziehen, der Button macht Platz für Konto und Glocke */
@media(max-width:430px) and (pointer:coarse){#refresh{display:none}}
@media(max-width:430px){.identity{gap:6px}}
/* Kontrolle am Handy: lesbare Spaltenköpfe (kurzer Name + Datum) und farbige Status-Buttons */
@media(max-width:700px),(max-height:520px) and (pointer:coarse){
  main:has(.stats) .table-wrap th.unit-head{font-size:10.5px;letter-spacing:0;line-height:1.25;overflow-wrap:normal;hyphens:auto}
  main:has(.stats) .table-wrap th.unit-head small{font-size:9.5px;margin-top:2px}
  main:has(.stats) .table-wrap .status-cell{min-height:36px;padding:4px 2px;font-size:10px;line-height:1.15;overflow-wrap:normal}
}
/* Kontrolle am Handy: Filter als gleichmäßige Dreier-Leiste, kurze Köpfe, alles unten bündig */
@media(max-width:700px),(max-height:520px) and (pointer:coarse){
  .coach-toolbar .label-long,main:has(.stats) .table-wrap th.unit-head .label-long{display:none}
  .coach-toolbar .label-short,main:has(.stats) .table-wrap th.unit-head .label-short{display:inline}
  main:has(.stats) .coach-toolbar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  main:has(.stats) .coach-toolbar [data-filter]{width:100%;min-width:0;min-height:42px;padding:8px 6px;justify-content:center;white-space:nowrap;font-size:13px}
  main:has(.stats) .coach-toolbar input[type="search"]{grid-column:1/-1;width:100%}
  main:has(.stats) .table-wrap thead th{vertical-align:bottom}
  main:has(.stats) .table-wrap th.unit-head{hyphens:manual;overflow-wrap:normal}
}
/* Kontrolle am Handy: Einheiten als Kürzel (K1, L1, B1) mit Legende unter der Tabelle */
.unit-legend{display:none}
@media(max-width:700px),(max-height:520px) and (pointer:coarse){
  main:has(.stats) .table-wrap th.unit-head .unit-code{display:block;font-size:14px;font-weight:800;color:var(--navy);letter-spacing:.3px}
  main:has(.stats) .table-wrap thead th{vertical-align:middle}
  main:has(.stats) .table-wrap th.unit-head{text-align:center}
  .unit-legend{display:grid;gap:9px;margin:14px 0 18px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:12.5px;color:var(--muted);line-height:1.4}
  .unit-legend b{display:inline-block;min-width:30px;margin-right:6px;padding:1px 6px;border-radius:6px;background:var(--accent-soft);color:var(--accent-strong);font-size:11.5px;text-align:center}
}

@media(max-width:430px){
  #shell:not(.player-mode) .identity>.avatar{display:none}
  #shell:not(.player-mode) .identity{gap:5px}
  #shell:not(.player-mode) .identity .push-button{min-width:38px;padding:8px}
}
@media(max-width:380px){
  /* sehr schmale Handys (z. B. 360 px): „Abmelden“ nur als Symbol, der Text bleibt für Screenreader */
  #shell:not(.player-mode) #logout{font-size:0;width:38px;min-width:38px;padding:0;position:relative}
  #shell:not(.player-mode) #logout::before{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;background:currentColor;-webkit-mask:url("logout.svg") center/contain no-repeat;mask:url("logout.svg") center/contain no-repeat}
}
@media(max-width:340px){
  #shell:not(.player-mode) #headerBrand img{width:92px}
  #shell:not(.player-mode) .identity{gap:3px}
  #shell:not(.player-mode) .identity .push-button,#shell:not(.player-mode) #logout{min-width:34px;width:34px}
}
@media(max-width:430px){
  /* mit Vereinslogo ist die Kopfzeile voller: „Abmelden“ schon ab 430 px nur als Symbol */
  .has-club-logo #shell:not(.player-mode) #logout{font-size:0;width:38px;min-width:38px;padding:0;position:relative}
  .has-club-logo #shell:not(.player-mode) #logout::before{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;background:currentColor;-webkit-mask:url("logout.svg") center/contain no-repeat;mask:url("logout.svg") center/contain no-repeat}
}

/* Handy-Kopfzeile (Trainer und Spieler gleich): Logo und Vereinslogo groß links, rechts nur Symbol-Buttons – kein Avatar, kein Name */
@media(max-width:700px),(max-height:520px) and (pointer:coarse){
  #shell header,#shell.player-mode header{flex-wrap:nowrap;align-items:center;min-height:72px;padding:12px 16px;gap:10px}
  #shell #headerBrand,#shell.player-mode .header-brand{display:flex;flex:1 1 auto;min-width:0;width:auto;min-height:0;padding:0;border:0;justify-content:flex-start}
  #shell #headerBrand img:not(.club-logo),#shell.player-mode .header-brand img:not(.club-logo){width:min(158px,42vw)!important}
  .has-club-logo #shell #headerBrand img:not(.club-logo){width:min(136px,35vw)!important}
  .has-club-logo #shell .header-brand .club-logo{height:42px!important;max-width:64px!important}
  .has-club-logo #shell .header-brand .club-divider{margin:4px 10px!important;min-height:30px}
  #shell #avatar,#shell #identity,#shell #breadcrumb{display:none!important}
  #shell .identity{width:auto;margin-left:auto;flex:none;gap:6px}
  #shell #logout{font-size:0;width:40px;min-width:40px;padding:0;position:relative}
  #shell #logout::before{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;background:currentColor;-webkit-mask:url("logout.svg") center/contain no-repeat;mask:url("logout.svg") center/contain no-repeat}
}
@media(max-width:360px){
  .has-club-logo #shell #headerBrand img:not(.club-logo){width:min(118px,33vw)!important}
  .has-club-logo #shell .header-brand .club-logo{height:36px!important}
}

/* Kontrolle am Handy: Legende der Kürzel – Titel in der ersten Zeile, „bis …“ immer darunter, bündig zum Text */
@media(max-width:700px),(max-height:520px) and (pointer:coarse){
  .unit-legend>span{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;align-items:start}
  .unit-legend>span>b{margin-right:0;text-align:center}
  .unit-legend .legend-text{line-height:1.45}.unit-legend .legend-text small{display:block;font-size:11.5px;opacity:.85}
}

/* Kontrolle am Handy: „Erinnern“ nur als Glocke (schmale Namensspalte) */
@media(max-width:700px),(max-height:520px) and (pointer:coarse){
  .roster-list .nudge-btn .nudge-label,table .nudge-btn .nudge-label{display:none}
  table .nudge-btn{padding:5px 8px}table .nudge-btn svg{width:15px;height:15px}
  table .nudge-done{font-size:10px}
}
