@import url("fonts-TYj2zRc.css");

/* =========================================================================
   Design-Tokens – CI Geschenke Gegen Kindertränen e.V.
   ========================================================================= */
:root {
    /* CI-Palette */
    --ggkt-black: #262624;
    --ggkt-gold: #B7912C;
    --ggkt-gold-dark: #8F7020;      /* Gold für kleine Schrift auf Weiß (Kontrast AA) */
    --ggkt-gold-light: #D8B866;
    --ggkt-coral: #F58873;
    --ggkt-red: #E86565;
    --ggkt-green: #385F3B;
    --ggkt-blue: #6B74E0;           /* Ergänzung: Jungen (nicht im CI) */

    /* Semantik */
    --color-bg: #F3F5FC;
    --color-surface: #FFFFFF;
    --color-text: var(--ggkt-black);
    --color-text-muted: #6E6E6A;
    --color-border: #E3E6EF;
    --color-header: var(--ggkt-black);
    --color-header-text: #FFFFFF;
    --color-primary: var(--ggkt-gold);
    --color-success: var(--ggkt-green);
    --color-danger: var(--ggkt-red);

    --color-maedchen: var(--ggkt-red);
    --color-jungen: var(--ggkt-blue);
    --color-neutral: var(--ggkt-black);

    /* Typografie */
    --font-text: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Patrick Hand SC', 'Quicksand', cursive;

    /* Formen */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 24px;
    --shadow-card: 0 2px 10px rgba(38, 38, 36, .06);
    --nav-height: 72px;
    --content-max: 560px;
}

/* =========================================================================
   Basis
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.45;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ggkt-gold-dark); }
h1, h2, h3 { margin: 0; line-height: 1.2; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--ggkt-gold-light); outline-offset: 2px; }

/* =========================================================================
   Mobile App-Shell (Sammelstelle / Lager)
   ========================================================================= */
.app {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
}

.app-header {
    background: var(--color-header);
    color: var(--color-header-text);
    padding: calc(20px + env(safe-area-inset-top)) 20px 28px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.app-header__inner,
.app-main {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
}

.app-header__user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ggkt-gold);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700; font-size: 1.2rem;
    flex: none;
    border: 2px solid rgba(255,255,255,.15);
}

.app-header__greeting { font-weight: 700; font-size: 1.15rem; }
.app-header__name { font-weight: 500; opacity: .9; }

.search {
    position: relative;
}
.search input {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    padding: 14px 16px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
}
.search input::placeholder { color: #8A8A86; }

.app-main {
    flex: 1;
    padding: 24px 16px;
}

/* Abschnittsüberschrift in Handschrift (Gold) */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 8px 4px 14px;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.45rem;
    letter-spacing: .04em;
    color: var(--ggkt-gold);
}
.section-link {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: .04em;
    color: var(--ggkt-gold);
    text-decoration: none;
}
.section-link:hover { color: var(--ggkt-gold-dark); }

/* =========================================================================
   Kategorie-Kacheln
   ========================================================================= */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 112px;
    padding: 14px 6px;
    background: var(--color-surface);
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    font: inherit;
    color: var(--color-text-muted);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}
.tile:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(38,38,36,.1); }
.tile:active { transform: translateY(0); }

.tile__icon { width: 44px; height: 44px; }
.tile__label { font-size: .85rem; font-weight: 500; line-height: 1.2; }

.tile--m .tile__icon { color: var(--color-maedchen); }
.tile--j .tile__icon { color: var(--color-jungen); }
.tile--n .tile__icon { color: var(--color-neutral); }
.tile--x .tile__icon { color: var(--ggkt-gold); }

/* Zähler-Kachel (Übersicht) */
.tile--counter { min-height: 140px; padding-top: 10px; padding-bottom: 46px; gap: 6px; }
.tile--counter .tile__icon { opacity: .35; width: 38px; height: 38px; }
.tile__count {
    position: absolute;
    top: 8px; left: 0; right: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
}
.tile--counter .tile__icon { margin-top: 22px; }
.tile__controls {
    position: absolute;
    left: 8px; right: 8px; bottom: 8px;
    display: flex;
    justify-content: space-between;
}
.step-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 0;
    display: grid; place-items: center;
    color: #fff;
    font-size: 1.1rem; font-weight: 700; line-height: 1;
    cursor: pointer;
    padding: 0;
}
.step-btn--minus { background: var(--color-danger); }
.step-btn--plus { background: var(--color-success); }
.step-btn:disabled { opacity: .35; cursor: default; }

/* =========================================================================
   Karten, Statistik, Buttons
   ========================================================================= */
.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 16px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
}
.stat-card__img { width: 84px; flex: none; }
.stat-card__text { font-weight: 600; font-size: 1.05rem; }
.stat-card__value {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-success);
    line-height: 1.15;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-weight: 700;
    padding: 10px 26px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    background: var(--color-primary);
    color: #fff;
}
.btn:hover { background: var(--ggkt-gold-dark); }
.btn--block { width: 100%; }
.btn--secondary { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); }
.btn--secondary:hover { background: var(--color-bg); }

.actions-end { display: flex; justify-content: flex-end; margin-top: 4px; }

/* Flash-Meldungen */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-weight: 600;
}
.flash--success { background: #E4EEE5; color: var(--ggkt-green); }
.flash--error { background: #FBE3E3; color: #A33A3A; }
.flash--info { background: #F6EFD9; color: var(--ggkt-gold-dark); }

/* =========================================================================
   Bottom-Navigation
   ========================================================================= */
.bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 10;
    background: var(--color-header);
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.bottom-nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: var(--content-max);
    height: var(--nav-height);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
}
.bottom-nav a {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
}
.bottom-nav a svg { width: 28px; height: 28px; }
.bottom-nav a[aria-current="page"] { color: #fff; }
.bottom-nav a[aria-current="page"] svg { color: var(--ggkt-gold-light); }

/* =========================================================================
   Desktop-Shell (Koordination, Reporting, Admin)
   ========================================================================= */
.desk {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 248px 1fr;
}
.desk-sidebar {
    background: var(--color-header);
    color: #fff;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.desk-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.desk-brand img { width: 44px; height: 44px; }
.desk-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.desk-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-weight: 600;
}
.desk-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.desk-nav a[aria-current="page"] { background: rgba(183,145,44,.18); color: var(--ggkt-gold-light); }
.desk-nav__group {
    font-family: var(--font-display);
    color: var(--ggkt-gold);
    font-size: 1.15rem;
    letter-spacing: .04em;
    padding: 14px 12px 4px;
}
.desk-main { padding: 32px clamp(16px, 4vw, 48px); min-width: 0; }
.page-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: .03em;
    color: var(--ggkt-gold);
    margin-bottom: 20px;
}

.desk-menue > summary { display: none; }
.desk-menue > ul.desk-nav { margin: 24px 0 8px; }
.desk-nav__zurueck { color: var(--ggkt-gold-light) !important; }
.bottom-nav--handy { display: none; }
.hilfe-inhalt-handy { display: none; }

@media (max-width: 900px) {
    .desk { grid-template-columns: 1fr; }
    /* Seitenleiste wird zur Kopfzeile: Logo links, "Menü" rechts zum Aufklappen */
    .desk-sidebar { padding: 12px 16px; gap: 0; position: relative; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
    .desk-kopf { display: flex; align-items: center; min-height: 48px; padding-right: 110px; }
    .desk-menue > summary {
        display: inline-flex; align-items: center; gap: 6px;
        position: absolute; top: 18px; right: 16px;
        padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
        color: #fff; font-weight: 700; cursor: pointer; list-style: none;
    }
    .desk-menue > summary::-webkit-details-marker { display: none; }
    .desk-menue > summary::before { content: "☰"; }
    .desk-menue[open] > summary::before { content: "✕"; }
    .desk-menue[open] { padding-top: 12px; }
    .desk-main { padding-bottom: calc(var(--nav-height) + 32px); }
    .bottom-nav--handy { display: block; }
    .hilfe-inhalt-handy { display: block; margin-bottom: 16px; background: var(--color-surface); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-card); }
    .hilfe-inhalt-handy summary { font-weight: 700; cursor: pointer; }
    .hilfe-inhalt-handy ul { margin: 8px 0 0; padding-left: 20px; }
    .hilfe-inhalt-handy li { margin: 6px 0; }
}

/* =========================================================================
   Login / einfache zentrierte Seiten
   ========================================================================= */
.auth {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background: var(--color-header);
}
.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.auth-card__logo { width: 120px; margin: -88px auto 12px; }
.auth-card h1 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--ggkt-gold);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Formulare */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
    width: 100%;
    font: inherit;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-text);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border-color: var(--ggkt-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(183,145,44,.2);
}
.form-help { font-size: .85rem; color: var(--color-text-muted); margin-top: 4px; }
.form-error, .form-row ul { color: #A33A3A; font-size: .9rem; margin: 6px 0 0; padding: 0; list-style: none; }

/* Design-Vorschau (nur dev) */
.design-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.swatch { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); background: #fff; font-size: .85rem; }
.swatch span { display: block; height: 64px; }
.swatch code { display: block; padding: 8px 10px; }

/* =========================================================================
   Sammelstelle: Erfassung
   ========================================================================= */
.tile__count-input {
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 72px;
    padding: 2px 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    -moz-appearance: textfield;
}
.tile__count-input::-webkit-outer-spin-button,
.tile__count-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tile__count-input:focus { outline: none; border-color: var(--ggkt-gold); background: var(--color-bg); }
.tile--counter { cursor: default; }
.tile--counter.ist-befuellt .tile__icon { opacity: .9; }
.tile--counter.ist-fehler { box-shadow: 0 0 0 2px var(--color-danger); }
.tile--counter:target { box-shadow: 0 0 0 3px var(--ggkt-gold); }
.tile__titel { font-size: .8rem; font-weight: 700; color: var(--color-text); line-height: 1.15; }
.step-btn { width: 32px; height: 32px; }

.gruppe { scroll-margin-top: 16px; }
.gruppe[hidden], .tile[hidden] { display: none; }

.meldung-leiste {
    position: sticky;
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 20px;
    padding: 10px 12px 10px 16px;
    background: var(--color-surface);
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(38,38,36,.18);
}
.meldung-leiste__summe { font-weight: 700; }
.meldung-leiste__summe strong { color: var(--color-success); font-size: 1.2rem; }
.speicherstatus { display: block; font-size: .75rem; font-weight: 500; color: var(--color-text-muted); }
.speicherstatus.ist-fehler { color: var(--color-danger); font-weight: 700; }

.meldung-liste { display: grid; gap: 10px; margin-bottom: 24px; }
.meldung-eintrag { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.meldung-eintrag details { font-size: .9rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--color-bg); }
.badge--abgesendet { background: #FBF3DF; color: var(--ggkt-gold-dark); }
.badge--eingegangen { background: #E4EEE5; color: var(--ggkt-green); }

/* Lager: Bestandsmatrix */
.bestand-tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bestand-tabelle th, .bestand-tabelle td { padding: 6px 6px; text-align: right; border-bottom: 1px solid var(--color-border); }
.bestand-tabelle th[scope="row"], .bestand-tabelle thead th:first-child { text-align: left; font-weight: 500; }
.bestand-tabelle thead th { font-size: .8rem; color: var(--color-text-muted); font-weight: 700; }
.bestand-tabelle thead th.tile--m { color: var(--color-maedchen); }
.bestand-tabelle thead th.tile--j { color: var(--color-jungen); }
.bestand-tabelle tbody tr:last-child th, .bestand-tabelle tbody tr:last-child td { border-bottom: 0; }

/* =========================================================================
   Koordination (Desktop)
   ========================================================================= */
.werkzeugleiste { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 20px; }
.werkzeugleiste form { margin: 0; }
.tabelle-karte { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow-x: auto; margin-bottom: 24px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabelle th, .tabelle td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.tabelle thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); background: var(--color-bg); }
.tabelle td.zahl, .tabelle th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle tr.ist-ausgegeben td { background: #F2F7F2; }
.tabelle tfoot td, .tabelle tfoot th { font-weight: 700; border-top: 2px solid var(--color-border); border-bottom: 0; }
.tabelle .m { color: var(--color-maedchen); }
.tabelle .j { color: var(--color-jungen); }
.btn--klein { padding: 6px 14px; font-size: .85rem; }
.btn--erfolg { background: var(--color-success); }
.btn--erfolg:hover { background: #2B4A2D; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.kennzahl { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 14px 16px; }
.kennzahl strong { display: block; font-size: 1.7rem; color: var(--color-success); line-height: 1.1; }
.formular-karte { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 20px; max-width: 760px; }
.raster-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.kind-zeile { display: grid; grid-template-columns: 140px 90px 1fr auto; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.kind-zeile .form-row { margin: 0; }
.kind-zeile label { font-size: .8rem; }
@media (max-width: 600px) { .kind-zeile { grid-template-columns: 1fr 80px; } .kind-zeile > :nth-child(3) { grid-column: 1 / -1; } }
.matrix-eingabe input { width: 70px; text-align: right; }
.vertraulich { font-size: .8rem; color: var(--color-text-muted); }
@media print {
    .desk-sidebar, .werkzeugleiste, .flash, .nicht-drucken { display: none !important; }
    .desk { display: block; }
    .tabelle-karte { box-shadow: none; }
}
.desk-nav__knopf { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); background: none; color: rgba(255,255,255,.8); font: inherit; font-weight: 600; cursor: pointer; }
.desk-nav__knopf:hover { background: rgba(255,255,255,.06); color: #fff; }
.desk-nav__knopf[aria-current="page"] { background: rgba(183,145,44,.18); color: var(--ggkt-gold-light); }

/* =========================================================================
   Ausgabe: Status, Packliste, Spendenbarometer (Phase 7)
   ========================================================================= */
.m { color: var(--color-maedchen); }
.j { color: var(--color-jungen); }
.badge--geplant { background: var(--color-bg); color: var(--color-text-muted); }
.badge--gepackt { background: #FBF3DF; color: var(--ggkt-gold-dark); }
.badge--abgeholt { background: #E4EEE5; color: var(--ggkt-green); }
.text-fehlt { color: var(--color-danger); font-weight: 700; }
.hinweis-box { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: #FBF3DF; font-weight: 600; }
.packliste-kinder { margin: 6px 0; padding-left: 18px; }
.packliste-tabelle th[scope="row"] { width: 60%; }
.menge-eingabe { width: 76px; padding: 8px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; text-align: right; }
.packliste-neu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0 4px; border-top: 1px solid var(--color-border); margin-top: 8px; }
.packliste-neu select { flex: 1 1 200px; min-width: 0; padding: 8px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; }
.nur-drucken { display: none; }
.druck-packliste { margin-bottom: 16px; break-inside: avoid; }

.barometer-filter select { padding: 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; min-width: 260px; max-width: 100%; }
.kennzahl .form-help { display: block; margin-top: 4px; }
.kennzahl--rot strong { color: var(--color-danger); }
.diagramm { height: 300px; margin-bottom: 24px; padding: 12px 16px; }
.barometer-tabelle .gruppe-kopf { text-align: center; border-left: 2px solid var(--color-border); }
.barometer-tabelle td:nth-child(2), .barometer-tabelle td:nth-child(6), .barometer-tabelle td:nth-child(10) { border-left: 2px solid var(--color-border); }
.barometer-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 20px; }
.ampel { display: inline-block; white-space: nowrap; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.ampel--gruen { background: #E4EEE5; color: #2B4A2D; }
.ampel--gelb { background: #FBF3DF; color: #6E5612; }
.ampel--rot { background: #FBE3E3; color: #9E2A2A; }

/* =========================================================================
   Auswertungen und Saisonabschluss (Phase 8)
   ========================================================================= */
.excel-links a { display: block; white-space: nowrap; }
.tabelle .zeile-summe th, .tabelle .zeile-summe td { border-top: 2px solid var(--color-border); }
.tabelle .zeile-detail th { padding-left: 28px; font-weight: 500; color: var(--color-text-muted); }
.tabelle .zeile-detail td { color: var(--color-text-muted); }
.abschluss-schritt { margin-bottom: 24px; }
.abschluss-schritt > p:first-child { margin-top: 0; }
.btn--gefahr { background: #A33A3A; color: #fff; }
.btn--gefahr:hover { background: #8A2F2F; }

/* =========================================================================
   Bedienungsanleitung (/hilfe)
   ========================================================================= */
.hilfe-knopf {
    margin-left: auto; flex: none;
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    border: 2px solid var(--ggkt-gold-light); color: var(--ggkt-gold-light);
    font-weight: 700; font-size: 1.2rem; text-decoration: none;
}
.hilfe-knopf:hover, .hilfe-knopf:focus-visible { background: var(--ggkt-gold-light); color: var(--ggkt-black); }
.app-header__aktionen { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; }
.app-header__aktionen .hilfe-knopf { margin-left: 0; }
.start-knopf {
    height: 40px; padding: 0 14px; border-radius: 20px;
    display: inline-flex; align-items: center;
    border: 2px solid var(--ggkt-gold-light); color: var(--ggkt-gold-light);
    font-weight: 700; text-decoration: none; white-space: nowrap;
}
.start-knopf:hover, .start-knopf:focus-visible { background: var(--ggkt-gold-light); color: var(--ggkt-black); }
.start-knopf__text { margin-left: 4px; }
.app-header__user > div:not(.app-header__aktionen) { min-width: 0; }
@media (max-width: 360px) {
    /* sehr schmale Handys: nur der runde Pfeil, damit "?" nicht abgeschnitten wird */
    .start-knopf { width: 40px; padding: 0; justify-content: center; font-size: 1.3rem; }
    .start-knopf__text { display: none; }
}
.hilfe-knopf--hell { border-color: var(--ggkt-gold-dark); color: var(--ggkt-gold-dark); }
.hilfe-knopf--hell:hover, .hilfe-knopf--hell:focus-visible { background: var(--ggkt-gold-dark); color: #fff; }
.page-kopf { display: flex; align-items: center; gap: 16px; }
.hilfe { display: grid; gap: 20px; max-width: 860px; }
.hilfe-kapitel { scroll-margin-top: 16px; line-height: 1.55; }
.hilfe-kapitel h3 { margin: 20px 0 6px; font-size: 1.05rem; }
.hilfe-kapitel ol, .hilfe-kapitel ul { padding-left: 22px; }
.hilfe-kapitel li { margin-bottom: 4px; }
.hilfe-liste dt { font-weight: 700; margin-top: 10px; }
.hilfe-liste dd { margin: 2px 0 0 0; }
.hilfe-tipp { padding: 10px 14px; border-left: 4px solid var(--ggkt-gold); background: #FBF3DF; border-radius: var(--radius-sm); }
.hilfe-hoch { margin: 16px 0 0; font-size: .9rem; }
.hilfe-inhalt a { font-size: .92rem; }
@media print {
    .hilfe-kapitel { break-inside: auto; border: 0; box-shadow: none; }
    .hilfe-knopf { display: none; }
}

@media print {
    .app-header, .bottom-nav, .barometer-filter, .excel-links { display: none !important; }
    .nur-drucken { display: table-cell; }
    .card { box-shadow: none; border: 1px solid #ccc; }
    .menge-eingabe { border: 0; padding: 0; width: auto; }
}
