/* FluxDoc 2.0 · Vereinfachung (06.10.2026): ruhiger, weniger Text, eine Hauptaktion je Ansicht.
   Wird als letzte Stildatei geladen und überschreibt app.css und v2.css nur dort, wo es nötig ist. Werte aus app.css. */

/* ---------- Prüfplatz ---------- */
.rhead { padding: 14px 22px 10px; }
.rmeta { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rnav { gap: 2px; font-weight: 600; color: var(--text); }
.rnav .num { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.rnav__btn[disabled] { opacity: .3; pointer-events: none; }
.rule-res.ok, .v2-ok { background: none; border: 0; padding: 2px 0; color: var(--green); font-size: 16px; display: flex; gap: 8px; align-items: flex-start; }
.rule-res.ok svg, .v2-ok svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.v2-ok span { color: var(--text); }
.v2-ok a { color: var(--blue-600); }
.rulebox { padding: 8px 0 2px; gap: 4px; }
.v2-abgleich ul { margin: 0 0 6px; gap: 4px; }
.v2-abgleich { padding-top: 10px; }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; color: var(--muted); }
.keys span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.keys kbd { font: 650 14px/1 var(--body); min-width: 20px; padding: 3px 5px; text-align: center; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; }
.keys .linkish { margin-left: auto; font-size: 14px; }
.qcard .answers.small .ans { font-size: 16px; }
@media (pointer: coarse), (max-width: 980px) { .keys span { display: none; } .keys .linkish { margin-left: 0; } }

/* ---------- Listen und Köpfe ---------- */
.page-head p:empty { display: none; }
.doc-line .sub2 { display: block; color: var(--muted); font-size: 16px; margin-top: 2px; }
.tabs [role=tab][data-leer] { display: none; }

/* ---------- Menü ---------- */
.navtail { margin-top: auto; padding-top: 14px; }
.navtail .navlist a { min-height: 40px; padding: 8px 12px; font-size: 16px; color: var(--muted); }
.side-foot { margin-top: 10px; }
.brief span.small.muted { color: var(--muted); font-size: 16px; }

/* Handy: Markierung über dem Titel statt eigener Spalte, damit Namen nicht abgeschnitten werden. */
@media (max-width: 720px) {
}

/* Prüfplatz-Titel: Absender und Betrag ganz zeigen (bis zwei Zeilen), statt mit „…“ abzuschneiden. */
.rhead .row1 { align-items: flex-start; }
.rhead .fname { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.rnav { margin-top: -6px; }

/* Prüfung 06.10.: Bestätigung beim Bankwechsel, Titel bei offener zweiter Freigabe, Leiste unten am Handy deckend. */
.v2-iban-ok { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-weight: 650; color: var(--ink); cursor: pointer; }
.v2-iban-ok input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.rstate.v2-erste b { color: var(--blue-600); }
@media (max-width: 720px) {
  .bottom { background: var(--surface); }
  .page-main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* Telefonnotiz im Einzelbetrieb (08.10.) */
.v2-telefon { display: grid; gap: 10px; margin-top: 10px; }
.v2-telefon label { display: grid; gap: 4px; font-weight: 600; color: var(--ink); font-size: 16px; }
.v2-telefon label.v2-iban-ok { display: flex; }
.v2-telefon input:not([type=checkbox]), .v2-telefon select { min-height: 44px; font-size: 16px; }

/* Nichts erkannt (08.10.): offen sagen, ein klarer Knopf */
.v3-leer { border: 1px solid var(--check-line); background: var(--check-bg); border-radius: 12px; padding: 14px 16px; margin: 4px 0 14px; display: grid; gap: 8px; }
.v3-leer b { color: var(--ink); font-size: 16px; }
.v3-leer p { margin: 0; color: var(--text); font-size: 16px; }
.v3-leer .btn { justify-self: start; }

/* Übergeben in einem Schritt (08.10.) */
.v3-fertig { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 18px 20px; margin-bottom: 18px; border-color: var(--safe-line); background: linear-gradient(180deg, var(--green-50), var(--surface) 80%); }
.v3-fertig b { display: flex; gap: 8px; align-items: center; font-size: 18px; color: var(--ink); }
.v3-fertig b svg { width: 22px; height: 22px; color: var(--green); }
.v3-fertig p { margin: 6px 0 0; }
.v3-export { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.v3-export__knoepfe { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) { .v3-export__knoepfe, .v3-export__knoepfe .btn, .v3-fertig .btn { width: 100%; } }

/* ---------- 9,0 (08.10.2026): Menü „Mehr“, Hilfe-Fragen, Handy-Toast, Tour ---------- */
.navmehr > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.navmehr > summary::-webkit-details-marker { display: none; }
.navmehr > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 4px; transition: transform .2s var(--ease); }
.navmehr[open] > summary::after { transform: rotate(-135deg); }
.hilfe3 { display: grid; gap: 8px; margin: 0 0 32px; }
.hilfe3 details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.hilfe3 summary { cursor: pointer; padding: 16px 18px; font: 650 17px/1.3 var(--body); color: var(--ink); min-height: 52px; display: flex; align-items: center; }
.hilfe3 details p { padding: 0 18px 16px; font-size: 16px; max-width: 64ch; }
@media (max-width: 860px) { .toast-host { left: 16px; right: 84px; width: auto; transform: none; } }

.fd-tour { position: fixed; inset: 0; z-index: 2147483100; pointer-events: none; }
.fd-tour__licht { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px var(--overlay-strong); outline: 2px solid var(--blue); outline-offset: 2px; transition: top .3s cubic-bezier(.16,1,.3,1), left .3s cubic-bezier(.16,1,.3,1), width .3s cubic-bezier(.16,1,.3,1), height .3s cubic-bezier(.16,1,.3,1); }
.fd-tour__karte { position: fixed; pointer-events: auto; width: min(360px, calc(100vw - 24px)); background: var(--surface, var(--surface)); color: var(--ink); border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 24px 60px -20px var(--overlay-strong); }
.fd-tour__karte h2 { font-size: 21px; margin: 4px 0 8px; }
.fd-tour__karte p { font-size: 16px; line-height: 1.5; }
.fd-tour__nr { font: 650 14px/1 var(--body) !important; color: var(--blue-600); letter-spacing: .02em; }
.fd-tour__knoepfe { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.fd-tour__punkte { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.fd-tour__punkte i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.fd-tour__punkte i.an { background: var(--blue); width: 18px; border-radius: 3px; }
.fd-tour--rein { animation: fdTourRein .3s cubic-bezier(.16,1,.3,1); }
@keyframes fdTourRein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .fd-tour__karte { width: auto; } }
@media (prefers-reduced-motion: reduce) { .fd-tour__licht { transition: none; } .fd-tour--rein { animation: none; } }
.v2-buch-mehr { border-top: 1px solid var(--line); padding-top: 12px; }
.v2-buch-mehr > summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; gap: 10px; }
.v2-buch-mehr[open] > summary { margin-bottom: 12px; }

/* Runde 6: Sammelfreigabe als eigene Rückfrage, Tippziele am Handy */
.v3-sammel { padding: 20px 22px; margin: 0 0 18px; border: 2px solid var(--fd-akzent); }
.v3-sammel h2 { font-size: 20px; margin-bottom: 6px; }
.v3-sammel ul { margin: 12px 0 16px; padding-left: 20px; } .v3-sammel li { margin: 4px 0; font-size: 16px; }
.v3-sammel .row { gap: 10px; flex-wrap: wrap; }
input[type="checkbox"] { width: 20px; height: 20px; }
@media (max-width: 720px) { .linkish, .v3-export__knoepfe a { display: inline-flex; align-items: center; min-height: 44px; } }

/* Handy: Bezeichnung über dem Wert, nichts läuft über; Rückmeldeknopf nie über der Freigabe; Bedienflächen 44 px */
@media (max-width: 480px) {
  .kv, .allgood .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv dt { margin-top: 10px; font-size: 14px; } .kv dd { margin-bottom: 2px; }
  .page, .page-main, main { max-width: 100vw; overflow-wrap: anywhere; }
  select { min-height: 44px; }
  label:has(> input[type="checkbox"]) { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 860px) { body:has(.review) .ffb-knopf { display: none !important; } }
/* Belegkarten am Handy: lange Hinweise umbrechen statt die Seite zu verbreitern (320 px) */
.doc-card { grid-template-columns: minmax(0, 1fr); }
.doc-card > * { min-width: 0; }
.doc-card .opentag { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 860px) { .split-opt { min-height: 44px; display: inline-flex; align-items: center; } }
/* Untere Leiste: Etiketten 14 px, lange Wörter trennen statt überlappen */
@media (max-width: 860px) { .bottom a { font-size: 14px; } .bottom a span { text-align: center; white-space: nowrap; letter-spacing: -.01em; } .bottom a svg, .bottom button svg { flex: none; } }
/* Archiv am Handy als Karten statt Tabelle */
@media (max-width: 720px) {
  .arch-table thead { display: none; }
  .arch-table, .arch-table tbody { display: block; }
  .arch-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .arch-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .arch-table td:first-child { grid-column: 1 / -1; }
  .arch-table td.num { white-space: nowrap; }
  .arch-table td:last-child { text-align: right; }
}
/* Am Handy liegt die Rückmeldung im Menü „Mehr“; kein schwebender Stift über Knöpfen und Listen. */
@media (max-width: 720px) { .ffb-knopf { display: none !important; } }
/* Knopfrahmen mindestens 3 : 1 zum Untergrund (Fluxward-Steuerelementlinie) */
.btn:not(.primary):not(.quiet):not(.ghost) { border-color: var(--input-line); }
/* Kleines Handy: Belegtitel bricht um statt den Betrag abzuschneiden */
@media (max-width: 480px) { .rhead .fname, .review-head .fname { display: block; -webkit-line-clamp: unset; white-space: normal; overflow: visible; text-overflow: clip; } }

/* Prüfplatz am Handy: die erste Entscheidung soll ohne Scrollen sichtbar sein */
@media (max-width: 720px) {
  .review .tagesleiste { display: none; }
  .rfoot .lead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: stretch; }
  .rfoot .lead > .btn { width: 100%; }
  .rfoot .keys > span { display: none; }
  .rfoot .keys { justify-content: flex-end; }
}
.bottom .count { white-space: nowrap; }
@media (max-width: 720px) { .notice a, .v3-export__knoepfe a { display: inline-flex; align-items: center; min-height: 44px; } }
/* Sehr schmale Handys: „Zurückstellen“ nur als Symbol (Text bleibt für Screenreader), damit nichts überläuft */
.rfoot .lead > .btn { min-width: 0; }
@media (max-width: 380px) {
  .rfoot .lead { grid-template-columns: 52px minmax(0, 1fr); }
  .rfoot .lead > .btn:first-child { font-size: 0; padding: 0; gap: 0; }
  .rfoot .lead > .btn:first-child svg { width: 22px; height: 22px; }
}
/* „Neu lesen“ und andere leise Links: klickbar mindestens 32 px hoch */
.rfoot .linkish { display: inline-flex; align-items: center; min-height: 32px; }
.fd-tour__ende { margin-right: auto; min-height: 44px; }
tr:focus-visible, .doc-line:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
