/* ============================================================
   Ergänzungen für den Live-Betrieb (beide Seiten)
   ============================================================ */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 12px; }
#app:focus { outline: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
a.fchip { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.acct-nav a { text-align: left; padding: 10px 14px; border-radius: 12px; font-weight: 650; text-decoration: none; color: inherit; }
.acct-nav a[aria-current="true"] { background: var(--paper); box-shadow: var(--shadow); }
.acct-nav button { text-align: left; border: 0; background: transparent; padding: 10px 14px; border-radius: 12px; font-weight: 650; cursor: pointer; color: var(--muted); }
@media (max-width: 820px) { .acct-nav a { white-space: nowrap; } }
/* Warte-Zeiger nur, solange ein Knopf wirklich lädt; sonst zeigt ein deaktivierter Knopf „nicht möglich“ */
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.is-busy { opacity: .6; cursor: progress; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { min-height: 40vh; }
.check span a, .notice a:not(.btn) { color: var(--pine); font-weight: 700; }
td.muted, tr.muted td { color: var(--muted); }
.paymark.su { background: #1c1c1c; color: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 800; font-size: .8rem; }
.prose h2 { margin-top: 18px; }
.prose p { margin: 10px 0; }

/* Verwaltung (Deisterbaby übernimmt die Bausteine des internen Bereichs) */
.tabbar { display: flex; gap: 4px; margin-top: 18px; overflow-x: auto; }
.tabbar a { display: inline-flex; gap: 8px; align-items: center; padding: 12px 16px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabbar a[aria-current] { color: var(--ink); border-color: var(--pine); }
.tabbar .icon { width: 18px; height: 18px; }
.login-wrap { display: grid; place-items: center; padding-block: 56px 80px; }
.login-card { width: min(440px, 100%); }
.login-card > .stack > .icon { width: 36px; height: 36px; color: var(--pine); }
.bill-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; margin-top: 18px; }
@media (max-width: 900px) { .bill-grid { grid-template-columns: 1fr !important; } }
ul.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.panel + .panel, .panel + .bill-grid { margin-top: 18px; }
.coach-photo-edit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Unterschriften in eigener Handschrift je Person (Zuordnung: sigClass in shared/core.js).
   Die Schriften sind unterschiedlich groß gezeichnet, deshalb gleicht --sig-scale sie an. */
.sig-hand { font-weight: 400; font-size: calc(var(--sig-size, 1.7rem) * var(--sig-scale, 1)); line-height: 1.25; }
.sig-nine { font-family: var(--f-hand); font-weight: 600; --sig-scale: 1; line-height: 1.2; } /* Nines Handschrift = Caveat (gut lesbar), wie die Sprüche auf der Seite */
.sig-1 { font-family: 'La Belle Aurore', var(--f-hand); --sig-scale: .95; }
.sig-2 { font-family: 'Nothing You Could Do', var(--f-hand); --sig-scale: .85; }
.sig-3 { font-family: 'Herr Von Muellerhoff', var(--f-hand); --sig-scale: 1.35; }
.sig-4 { font-family: 'Reenie Beanie', var(--f-hand); --sig-scale: 1.2; }
.sig-5 { font-family: 'Over the Rainbow', var(--f-hand); --sig-scale: .85; }
.sig-6 { font-family: 'Dawning of a New Day', var(--f-hand); --sig-scale: 1.1; }
.sig-7 { font-family: 'Zeyada', var(--f-hand); --sig-scale: 1.35; }
.sig-8 { font-family: 'Mrs Saint Delafield', var(--f-hand); --sig-scale: 1.35; }
.o-sign.sig-hand { --sig-size: 1.9rem; }
.voice-lead .sig-hand { --sig-size: 1.9rem; }

/* ---------- Einnahmen (Verwaltung beider Seiten, web/shared/income.js) ---------- */
/* Einnahmen immer in einem ruhigen Grün (auf beiden Seiten gleich; die Hausfarbe von Miteinander ist rötlich und wirkte wie ein Minus) */
.inc { display: flex; flex-direction: column; gap: 18px; --inc: #2f7d4a; --inc-soft: #e3f1e7; }
.inc-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.inc-range, .inc-mode { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 20px; background: var(--soft); }
.inc-range button, .inc-mode button { border: 0; background: transparent; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .88rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.inc-range button[aria-pressed="true"], .inc-mode button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.inc-range button:focus-visible, .inc-mode button:focus-visible { outline: 2px solid var(--pine); outline-offset: 1px; }
/* Zuordnung (Eingangs- oder Kursdatum) über der Zeitauswahl, etwas größer, nur so breit wie nötig */
.inc-mode { margin-bottom: 12px; width: max-content; max-width: 100%; align-self: flex-start; } .inc-mode button { font-size: .95rem; padding: 9px 18px; }
.inc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .inc-tiles { grid-template-columns: 1fr; } }
.inc-tiles .perk b { color: var(--ink); }
.inc-tiles .perk b.inc-hero { font-size: 2rem; color: var(--inc); }
.inc-tiles .perk b.inc-up { color: var(--st-ok); }
.inc-tiles .perk b.inc-down { color: var(--danger); }
.inc-chart { position: relative; margin-top: 12px; min-height: 60px; color: var(--inc); }
.inc-svg { display: block; overflow: visible; }
.inc-grid { stroke: var(--line); stroke-width: 1; }
.inc-base { stroke: color-mix(in srgb, var(--muted) 45%, var(--line)); }
.inc-tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.inc-col { fill: currentColor; transition: opacity .12s; }
.inc-col.inc-prev { fill: url(#incHatch); }
.inc-col.inc-neg { fill: var(--danger); }
.inc-col.on { opacity: .78; }
.inc-hit { fill: transparent; cursor: default; outline: none; }
.inc-hit:focus-visible { stroke: var(--pine); stroke-width: 2; }
.inc-tip { position: absolute; pointer-events: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 7px 10px; display: flex; flex-direction: column; gap: 1px; font-size: .82rem; white-space: nowrap; z-index: 2; }
.inc-tip b { font-size: .98rem; font-variant-numeric: tabular-nums; }
.inc-empty { padding: 28px 0; text-align: center; }
.inc-legend { display: inline-flex; gap: 14px; color: var(--muted); }
.inc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.inc-key { width: 12px; height: 12px; border-radius: 3px; background: var(--inc); display: inline-block; }
.inc-key-prev { background: repeating-linear-gradient(45deg, var(--inc) 0 2px, var(--inc-soft) 2px 5px); }
.inc-table { margin-top: 10px; }
.inc-split { gap: 10px; }
.inc-split li { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) 7.5rem; gap: 12px; align-items: center; } /* feste Betragsspalte: alle Balken gleich lang vergleichbar */
.inc-split-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; min-width: 0; }
.inc-split-l > span { overflow: hidden; text-overflow: ellipsis; }
.inc-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; font-size: .62rem; font-weight: 800; background: var(--soft); color: var(--ink); }
.inc-split-bar { display: flex; gap: 2px; height: 10px; background: var(--soft); border-radius: 4px; }
.inc-split-bar i { display: block; height: 100%; background: var(--inc); border-radius: 0 4px 4px 0; min-width: 0; }
.inc-split-bar i.prev { background: repeating-linear-gradient(45deg, var(--inc) 0 2px, var(--inc-soft) 2px 5px); }
.inc-split-v { text-align: right; white-space: nowrap; line-height: 1.2; }
.inc-split-v small { display: block; font-size: .72rem; }
@media (max-width: 560px) { .inc-split li { grid-template-columns: minmax(0, 1fr) auto; } .inc-split-bar { grid-column: 1 / -1; order: 3; } }

/* ---------- Bedienung mit dem Finger: Tippflächen mind. 44 px (Prüfung 2026-10-08) ---------- */
@media (pointer: coarse), (max-width: 760px) {
  .btn, .btn-sm, .seg button, .drawpad-widths button { min-height: 44px; }
  .drawpad-color, .drawpad-custom { width: 44px; height: 44px; }
  details > summary { min-height: 44px; display: flex; align-items: center; }
  /* Miteinander intern: Zeitraum-Auswahl, Monatsblättern, Zeilen-Aktionen, Farbwahl, Ansicht */
  .inc-range button, .tb-chip, .tone-opt, select.input { min-height: 44px; }
  .tb-arrow, .row-acts .icon-btn { min-width: 44px; min-height: 44px; }
}
/* FAQ: ganze Zeile antippbar, nicht nur die Schrift */
details.faq summary { padding-block: 10px; margin-block: -10px; }

/* Buchungs-Zeitleiste: am Handy untereinander statt vier schmale Spalten (keine getrennten Wörter) */
@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr !important; gap: 12px; }
  .tl-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; row-gap: 0; text-align: left; align-items: center; padding-inline: 0; }
  .tl-step .tl-dot { grid-row: span 2; }
  .tl-step b, .tl-step small { grid-column: 2; hyphens: manual; -webkit-hyphens: manual; }
  .tl-step::before { left: 17px; top: -12px; width: 4px; height: 12px; }
}

/* Verwaltung: kleiner runder Knopf neben der Mindestzahl */
.min-cell { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.min-cell > :first-child { min-width: 0; }
.min-cell .btn { flex: none; }
.btn.icon-only { width: 36px; min-width: 36px; height: 36px; padding: 0; border-radius: 50%; justify-content: center; }
.btn.icon-only .icon { width: 18px; height: 18px; margin: 0; }
@media (pointer: coarse) { .btn.icon-only { width: 44px; min-width: 44px; height: 44px; } }
/* Hinweiskästen: Inhalt und Knöpfe bleiben im Kasten (lange Knopftexte brechen um) */
.notice > div { min-width: 0; }
.notice .btn { white-space: normal; max-width: 100%; text-align: left; }

/* Satzteile zusammenhalten (keep/keepJoin in core.js): umbrechen nur als Ganzes */
.keep { display: inline-block; max-width: 100%; text-indent: 0; }
/* Trennpunkt steht vor jedem Teil; am Zeilenanfang rutscht er links aus dem sichtbaren Bereich */
.keeps { display: block; overflow: hidden; }
.keeps-in { display: block; margin-left: -1em; }
.keeps-in > .keep::before { content: '·'; display: inline-block; width: 1em; text-align: center; }

/* Startseite am Handy: drei freie Termine und ein klarer Weg zu allen statt Blättern */
.next-all { display: none; }
@media (max-width: 600px) {
  #nextWrap .next-list > :nth-child(n+4) { display: none; }
  #nextWrap .pager { display: none; }
  #nextWrap .next-all { display: flex; width: 100%; margin-top: 16px; }
}

/* Altersfinder-Knopf: weicht beim Herunterscrollen aus, kommt beim Hochscrollen wieder */
.kidf { transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.kidf.is-away { transform: translateY(150%); opacity: 0; visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, visibility 0s .28s; }
@media (prefers-reduced-motion: reduce) { .kidf, .kidf.is-away { transition: none; } }
/* Sprungziele des Altersfinders nicht unter der Kopfleiste */
#freie-plaetze h2, #termine h2 { scroll-margin-top: 110px; }

/* Buchung Schritt 2: persönlicher Gruß der Kursleitung zum Schluss */
.closing { border-top: 1px dashed var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.closing p { margin: 0; }
.closing-sig { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.closing-sig .hand { color: var(--pine-2, #2e7a34); --sig-size: 1.9rem; transform: none; }
.review .fit-line.no { margin-top: 12px; color: var(--ink); font-weight: 600; }
/* Unterschriften: dunkleres Grün, gut lesbar auch auf Rosa (≥ 4,5 : 1) */
.sig.sig-hand { color: var(--pine-2, #2e7a34); }

/* Namen nie trennen (nameHTML in core.js): jeder Namensteil bleibt ganz, ohne Silbentrennung */
.pname, #app .pname { white-space: nowrap; hyphens: manual; -webkit-hyphens: manual; }
