/* =========================================================================
   Hundesitting & Gassi — UI Styles
   Mobile-first. Helle, freundliche Palette (Indigo + Coral), keine Kinder-Optik.
   ========================================================================= */

:root {
    /* Flächen */
    --bg:          #f4f6fb;
    --bg-soft:     #e9edf6;
    --card:        #ffffff;
    --line:        #e4e7ef;
    --line-strong: #cbd2e0;

    /* Text */
    --fg:          #0f172a;
    --fg-soft:     #334155;
    --muted:       #64748b;

    /* Marke */
    --primary:       #5b6cff;
    --primary-hover: #4957ea;
    --primary-soft:  #eef0ff;
    --primary-fg:    #ffffff;

    --accent:       #ff7a59;
    --accent-hover: #ef6642;
    --accent-soft:  #fff1ec;

    /* Status */
    --good:      #16a34a;
    --good-soft: #dcfce7;
    --warn:      #f59e0b;
    --warn-soft: #fef3c7;
    --bad:       #dc2626;
    --bad-soft:  #fee2e2;

    /* Geometrie */
    --radius:    14px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    /* Schatten */
    --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.04);
    --shadow-md: 0 4px 12px rgba(15,23,42,.07), 0 2px 4px rgba(15,23,42,.04);
    --shadow-lg: 0 12px 28px rgba(15,23,42,.12);

    /* Icon-Size Token (Material Symbols Inline) */
    --icon: 1.2em;
}

/* ---------- Basis ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font: 16px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

/* Material Symbols: Größe + vertikale Ausrichtung inline */
.material-symbols-rounded {
    font-size: var(--icon);
    vertical-align: -.22em;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    user-select: none;
}
.msr-fill { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

/* ---------- Top-Bar ---------- */
.bar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 1rem;
    padding: .8rem 1rem;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.2) blur(6px);
}
.bar h1 {
    margin: 0; flex: 1;
    font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em;
    display: inline-flex; align-items: center; gap: .5rem;
}
.bar h1 .material-symbols-rounded { color: var(--primary); font-size: 1.4rem; }
.bar nav { display: flex; gap: .25rem; align-items: center; }
.bar nav a {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .45rem .7rem; border-radius: var(--radius-sm);
    color: var(--fg-soft); font-size: .9rem; font-weight: 500;
}
.bar nav a:hover { background: var(--bg-soft); color: var(--fg); text-decoration: none; }
.bar nav a .material-symbols-rounded { font-size: 1.15rem; }

/* ---------- Layout ---------- */
.container {
    max-width: 960px;
    margin: 1rem auto;
    padding: 0 1rem;
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.panel-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; margin-bottom: .9rem;
}
.panel h2 {
    margin: 0; font-size: 1.05rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: .45rem;
}
.panel h2 .material-symbols-rounded { color: var(--primary); font-size: 1.25rem; }

@media (min-width: 720px) {
    .panel { padding: 1.25rem; }
}

/* ---------- Bar-Icon-Buttons (Settings in Kopfzeile) ---------- */
.bar-actions { display: flex; gap: .25rem; align-items: center; }
.icon-btn {
    min-height: 40px; min-width: 40px;
    padding: .35rem .5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--fg-soft);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--fg); }
.icon-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.icon-btn.active {
    background: var(--primary); color: #fff;
}
.icon-btn .material-symbols-rounded { font-size: 1.25rem; }
.icon-btn.small { min-height: 34px; min-width: 34px; padding: .2rem .4rem; }

/* ---------- Settings-Drawer ---------- */
.drawer {
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    animation: drawerSlide .22s ease;
}
@keyframes drawerSlide {
    from { transform: translateY(-6px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.drawer-inner { padding-top: 1rem; padding-bottom: 1rem; }
.drawer-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: .75rem;
}
.drawer-head h3 {
    margin: 0; font-size: 1rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: .4rem;
}
.drawer-head h3 .material-symbols-rounded { color: var(--primary); font-size: 1.2rem; }

/* ---------- Buttons ---------- */
button, .btn {
    font: inherit; font-weight: 500;
    min-height: 44px;
    padding: .55rem 1rem;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--fg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    transition: background .15s ease, border-color .15s ease, transform .06s ease;
}
button:hover, .btn:hover { background: var(--bg-soft); }
button:active, .btn:active { transform: translateY(1px); }
button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--primary); outline-offset: 2px;
}

button.primary, .btn.primary {
    background: var(--primary); color: var(--primary-fg); border-color: var(--primary);
}
button.primary:hover, .btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

button.ghost, .btn.ghost {
    background: transparent; border-color: transparent; color: var(--primary);
}
button.ghost:hover, .btn.ghost:hover { background: var(--primary-soft); }

button.small, .btn.small {
    min-height: 34px; padding: .3rem .7rem; font-size: .85rem; border-radius: 8px;
}

button.danger, .btn.danger {
    background: var(--bad); color: #fff; border-color: var(--bad);
}
button.danger:hover, .btn.danger:hover { filter: brightness(1.05); background: var(--bad); }

button.danger-link {
    background: transparent; border: 0; color: var(--bad); padding: 0; min-height: 0;
}
button.danger-link:hover { background: transparent; text-decoration: underline; }

button.big {
    font-size: 1.1rem; padding: 1rem 1.25rem; border-radius: 12px;
    flex: 1; font-weight: 600; min-height: 56px;
}
button.big .material-symbols-rounded { font-size: 1.5rem; }

/* ---------- Formulare ---------- */
label {
    display: block;
    margin-bottom: .85rem;
    font-size: .85rem;
    color: var(--muted);
    font-weight: 500;
}
label input, label textarea, label select {
    display: block;
    width: 100%;
    font: inherit;
    padding: .65rem .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--fg);
    margin-top: .3rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
label input:focus, label textarea:focus, label select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
input[type="datetime-local"] { font-family: inherit; }

/* ---------- Utility ---------- */
.row { display: flex; align-items: center; }
.row.gap { gap: .5rem; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); font-size: .9rem; }
.small { font-size: .85rem; }

.err {
    background: var(--bad-soft); color: var(--bad);
    padding: .6rem .8rem; border-radius: var(--radius-sm);
    margin-bottom: .6rem; font-size: .9rem;
    display: flex; align-items: center; gap: .5rem;
}
.ok  {
    background: var(--good-soft); color: var(--good);
    padding: .6rem .8rem; border-radius: var(--radius-sm);
    margin-bottom: .6rem; font-size: .9rem;
}

.tag {
    display: inline-flex; align-items: center; gap: .2rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .72rem; font-weight: 600; letter-spacing: .02em;
    text-transform: uppercase;
}
.tag.paid { background: var(--good-soft); color: var(--good); }
.tag.ack  { background: var(--warn-soft); color: #92400e; }
.tag.open { background: var(--bg-soft);   color: var(--muted); }

.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.toggle {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--fg); font-size: .9rem; font-weight: 500;
    margin-bottom: 0; cursor: pointer;
}
.toggle input { width: auto; margin: 0; accent-color: var(--primary); }

/* ---------- Kunden-Karten (Admin) ---------- */
.customer {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: .75rem;
    background: var(--card);
    overflow: hidden;
    transition: box-shadow .18s ease, border-color .18s ease;
}
.customer:hover { box-shadow: var(--shadow-sm); }
.customer.archived { opacity: .55; }
.customer.open { box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.customer-head {
    display: flex; justify-content: space-between; align-items: center; gap: .75rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
}
.customer { margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.customer-title { font-size: 1.05rem; }
.customer-head:hover { background: var(--bg-soft); }
.customer.open .customer-head { background: var(--primary-soft); }
.customer-title {
    font-weight: 600; font-size: 1rem;
    display: inline-flex; align-items: center; gap: .4rem;
}
.customer-title .material-symbols-rounded { color: var(--primary); font-size: 1.2rem; }
.customer-meta { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.customer-body { padding: 1rem; display: none; border-top: 1px solid var(--line); }
.customer.open .customer-body { display: block; }

@media (max-width: 520px) {
    .customer-head { flex-wrap: wrap; }
    .customer-head > :first-child { flex: 1 1 100%; }
}

/* ---------- Monats-Block ---------- */
.month {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: .75rem;
    overflow: hidden;
    background: var(--card);
}
.month-head {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: .65rem .85rem;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.month-title { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.month-sum { font-variant-numeric: tabular-nums; font-size: .95rem; }
.month-sum .raw { color: var(--muted); font-size: .8rem; margin-right: .4rem; text-decoration: line-through; }
.month-sum .rounded { font-weight: 700; }
.month-body { padding: .5rem .85rem; }
.month-actions {
    padding: .55rem .85rem;
    border-top: 1px solid var(--line);
    background: #fafbfd;
    display: flex; gap: .5rem; align-items: center; justify-content: space-between;
    font-size: .9rem; flex-wrap: wrap;
}

/* ---------- Session-Zeile ---------- */
.session {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: .6rem;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px dashed var(--line);
}
.session:last-child { border-bottom: 0; }
.session .when { font-variant-numeric: tabular-nums; font-size: .9rem; }
.session .dur {
    color: var(--muted); font-variant-numeric: tabular-nums;
    min-width: 80px; text-align: right; font-size: .9rem;
}
.session .note {
    color: var(--muted); font-size: .85rem; font-style: italic;
    grid-column: 1 / -1; padding-left: 1rem;
}
.session button.edit {
    background: transparent; border: 0; color: var(--primary);
    cursor: pointer; min-height: 32px; padding: .2rem .5rem;
    border-radius: 6px;
}
.session button.edit:hover { background: var(--primary-soft); }

@media (max-width: 560px) {
    .session { grid-template-columns: 1fr auto; }
    .session .dur { min-width: 60px; }
    .session button.edit { grid-column: 2; }
}

/* ---------- Magic-Link-Row ---------- */
.magic {
    display: flex; gap: .4rem; align-items: center; flex-wrap: wrap;
    background: var(--primary-soft);
    border: 1px solid #dcdfff;
    padding: .5rem .6rem;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    word-break: break-all;
    margin-bottom: .75rem;
}
.magic > :first-child {
    flex: 1; min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--fg-soft);
    display: inline-flex; align-items: center; gap: .35rem;
}
.magic .material-symbols-rounded { color: var(--primary); }

/* ---------- Zahlung-Anzeige Kunde + Report ---------- */
.pay-methods { margin-top: .75rem; display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 640px) { .pay-methods { grid-template-columns: 1fr 1fr; } }

.pay-method {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--card);
}
.pay-method h4 {
    margin: 0 0 .6rem; font-size: .95rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: .4rem;
}
.pay-method h4 .material-symbols-rounded { color: var(--primary); font-size: 1.2rem; }
.pay-method .qr {
    display: block; margin: .25rem auto;
    border-radius: 4px;
}
.pay-method .iban-line {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem; line-height: 1.6;
    background: var(--bg-soft); padding: .6rem .7rem; border-radius: 8px;
}

.paypal-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .7rem 1.1rem;
    border-radius: var(--radius-sm);
    background: #0070ba; color: #fff !important; text-decoration: none !important;
    font-weight: 600;
    transition: background .15s ease;
}
.paypal-btn:hover { background: #005a94; }

/* ---------- Dialog ---------- */
dialog {
    border: 0;
    border-radius: var(--radius);
    padding: 1.25rem;
    min-width: 300px; max-width: 92vw; width: min(440px, 92vw);
    box-shadow: var(--shadow-lg);
    color: var(--fg);
}
dialog::backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); }
dialog h3 { margin: 0 0 1rem; font-weight: 600; }

/* ---------- Toast ---------- */
#toast-host {
    position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; gap: .4rem; align-items: center;
    pointer-events: none;
    padding-bottom: env(safe-area-inset-bottom);
}
.toast {
    background: var(--fg); color: #fff;
    padding: .7rem 1.1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: .9rem; max-width: 90vw;
    opacity: 0; transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: auto;
    display: inline-flex; align-items: center; gap: .4rem;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-ok   { background: var(--good); }
.toast-err  { background: var(--bad); }
.toast-info { background: var(--primary); }

/* ---------- Confirm ---------- */
.confirm-box { min-width: 260px; max-width: 420px; }
.confirm-box p { margin: 0 0 1rem; line-height: 1.5; }

/* ---------- Login ---------- */
.login-page {
    display: grid; place-items: center; min-height: 100vh;
    background: linear-gradient(160deg, var(--bg) 0%, var(--primary-soft) 100%);
    padding: 1rem;
}
.login-card {
    background: var(--card);
    padding: 1.75rem 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 280px; max-width: 400px; width: 100%;
}
.login-card h1 {
    margin: 0 0 .25rem;
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: 1.4rem;
}
.login-card h1 .material-symbols-rounded { color: var(--primary); font-size: 1.7rem; }
.login-card button { width: 100%; margin-top: .5rem; }

/* ---------- Kunden-Magic-Link-Seite ---------- */
.kunde-page { max-width: 720px; margin: 1.5rem auto; padding: 0 1rem 2rem; }
.kunde-page h1 {
    margin-bottom: .2rem; font-size: 1.5rem; letter-spacing: -.01em;
    display: inline-flex; align-items: center; gap: .5rem;
}
.kunde-total {
    background: linear-gradient(135deg, var(--primary) 0%, #7b88ff 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-md);
}
.kunde-total .muted { color: rgba(255,255,255,.8); }
.kunde-total .num { font-size: 2rem; font-weight: 700; letter-spacing: -.01em; }

/* ---------- PWA-Tracker ---------- */
.app-page {
    background: var(--bg);
    min-height: 100dvh;
    display: flex; flex-direction: column;
}
.app-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: .85rem 1rem;
    padding-top: calc(.85rem + env(safe-area-inset-top));
    background: var(--primary); color: #fff;
    box-shadow: var(--shadow-sm);
}
.app-bar .brand {
    font-weight: 700; font-size: 1.05rem;
    display: inline-flex; gap: .45rem; align-items: center;
}
.app-bar a {
    color: #fff; text-decoration: none; opacity: .92;
    padding: .4rem .65rem; border-radius: 8px; font-size: .85rem;
    display: inline-flex; align-items: center; gap: .25rem;
}
.app-bar a:hover { background: rgba(255,255,255,.14); opacity: 1; }

.app-main {
    flex: 1; padding: 1rem;
    display: flex; flex-direction: column; gap: .85rem;
    max-width: 640px; width: 100%; margin: 0 auto;
}
.app-foot {
    padding: .45rem 1rem; text-align: center;
    color: var(--muted); font-size: .8rem;
    padding-bottom: calc(.45rem + env(safe-area-inset-bottom));
}
.app-foot.bad { color: var(--bad); }

/* Timer-Karte (idle + running) */
.tcard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: .8rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.tcard.running {
    border-color: var(--primary);
    background: linear-gradient(180deg, #fff 0%, var(--primary-soft) 100%);
    box-shadow: 0 6px 22px rgba(91,108,255,.18);
}
.tcard-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    flex-wrap: wrap;
}
.tcard-head h2 {
    margin: 0; font-size: 1.1rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: .45rem;
}
.tcard-head h2 .material-symbols-rounded { color: var(--primary); font-size: 1.35rem; }
.tcard.running .tcard-head h2 .material-symbols-rounded {
    color: var(--accent);
    animation: wiggle 2.4s ease-in-out infinite;
}
@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    40% { transform: rotate(-8deg); }
    60% { transform: rotate(8deg); }
}
.tcard-rate { white-space: nowrap; }

.timer-big {
    font-size: 3.2rem; font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
    padding: .6rem 0;
    color: var(--primary);
    letter-spacing: .04em;
}
.tcard.running .timer-big { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .72; } }

.note-inline {
    width: 100%; font: inherit;
    padding: .6rem .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    min-height: 2.6rem; resize: vertical;
}
.note-inline:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.tcard-actions { display: flex; gap: .5rem; }
.tcard.idle button.big { width: 100%; }

@media (min-width: 720px) {
    .app-main { padding: 1.5rem; gap: 1rem; }
    .timer-big { font-size: 3.8rem; }
}

/* ---------- Timer-Banner (Admin) ---------- */
#timer-banner { max-width: 960px; margin: .75rem auto 0; padding: 0 1rem; }
.timer-strip {
    display: flex; align-items: center; gap: .75rem;
    background: linear-gradient(90deg, var(--primary-soft), #fff);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: .6rem 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: .5rem;
    flex-wrap: wrap;
}
.timer-strip .pulse {
    color: var(--primary); font-size: 1.3rem;
    animation: pulse 1.6s ease-in-out infinite;
    display: inline-flex;
}
.timer-strip .who { flex: 1; min-width: 150px; }
.timer-strip .hms {
    font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.15rem;
    color: var(--primary); letter-spacing: .04em;
}

/* ---------- Monatsbericht (report.php) ---------- */
.report-page { background: var(--bg-soft); padding: 1rem; min-height: 100vh; }
.report-toolbar {
    max-width: 820px; margin: 0 auto 1rem;
    display: flex; justify-content: space-between; align-items: center; gap: .5rem;
    flex-wrap: wrap;
}
.report-toolbar button {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.report-toolbar button:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.report-toolbar a {
    color: var(--primary);
    display: inline-flex; align-items: center; gap: .25rem;
}

.report-sheet {
    max-width: 820px; margin: 0 auto;
    background: #fff;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
}
@media (min-width: 720px) { .report-sheet { padding: 2.5rem 2.2rem; } }

.report-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
    .report-head { grid-template-columns: 1fr auto; gap: 2rem; }
    .report-meta { text-align: right; }
}
.report-head h1 {
    margin: .25rem 0; font-size: 1.4rem; letter-spacing: -.01em;
    display: inline-flex; align-items: center; gap: .5rem;
}
.report-head h1 .material-symbols-rounded { color: var(--primary); font-size: 1.6rem; }
.report-head h2 { margin: 0 0 .25rem; font-size: 1.15rem; font-weight: 500; color: var(--fg-soft); }
.stamp {
    display: inline-block; padding: .35rem .8rem; border-radius: 6px;
    font-weight: 700; margin-top: .5rem; border: 2px solid;
    letter-spacing: .06em;
}
.stamp.paid { color: var(--good); border-color: var(--good); transform: rotate(-3deg); }

.report-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.report-table th, .report-table td {
    padding: .55rem .4rem; text-align: left;
    border-bottom: 1px solid var(--line);
}
.report-table th {
    border-bottom: 2px solid var(--fg-soft);
    font-weight: 600; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted);
}
.report-table td.num, .report-table th:nth-child(4), .report-table th:nth-child(5) {
    text-align: right; font-variant-numeric: tabular-nums;
}
.report-table tfoot td { border-top: 2px solid var(--fg-soft); padding-top: .6rem; }
.report-table tfoot tr:nth-child(2) td { border-top: 0; padding-top: .1rem; font-style: italic; color: var(--muted); }

.report-pay { margin-top: 2rem; }
.report-pay h3 {
    margin: 0 0 .5rem; font-size: 1.1rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: .4rem;
}
.report-pay h3 .material-symbols-rounded { color: var(--primary); }
.report-pay-grid {
    display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: .75rem;
}
@media (min-width: 640px) { .report-pay-grid { grid-template-columns: 1fr 1fr; } }
.pay-box {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem; background: var(--card);
}
.pay-box h4 {
    margin: 0 0 .6rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: .4rem;
}
.pay-box h4 .material-symbols-rounded { color: var(--primary); }
.qr-slot svg { display: block; margin: 0 auto .5rem; border-radius: 4px; }
.iban-line {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .85rem; line-height: 1.6;
}
.break-all { word-break: break-all; }

.report-foot {
    margin-top: 2.5rem; padding-top: 1rem;
    border-top: 1px solid var(--line);
    text-align: center; color: var(--muted); font-size: .85rem;
}

/* ---------- Print ---------- */
@media print {
    @page { margin: 14mm; }
    body, .report-page { background: #fff; padding: 0; }
    .no-print { display: none !important; }
    .report-sheet {
        box-shadow: none; padding: 0; border: 0; border-radius: 0; max-width: none;
    }
    .pay-box { background: #fff; page-break-inside: avoid; }
    .report-pay, .report-pay-grid { page-break-inside: avoid; }
    .paypal-btn {
        color: #0070ba !important; background: none !important;
        padding: 0 !important; text-decoration: underline !important;
    }
    a { color: inherit; text-decoration: none; }
    .stamp.paid { border-color: var(--good); color: var(--good); }
    .material-symbols-rounded { display: none; } /* Icons raus beim Druck für saubere PDF */
}
