/* ==========================================================================
   Voloop Design System – Stil C „Bunt & motivierend“
   Wird nach app.css geladen und überschreibt dessen Basis-Variablen, damit
   auch noch nicht überarbeitete Seiten Farben, Schrift und Radien erben.

   Farben:
     --v-accent      Vereinsfarbe (TenantBrandingProvider → --tenant-primary),
                     Fallback Voloop-Violett. Für Hero-Karten, aktive Navigation,
                     Punkte, primäre Buttons.
     --v-on-accent   Textfarbe auf --v-accent (hell/dunkel je nach Kontrast).
     --v-brand       Voloop-Markenfarbe (vereinsunabhängig).
   ========================================================================== */

:root {
    --v-font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --v-brand: #2F5D46;
    --v-accent: var(--tenant-primary, var(--v-brand));
    --v-on-accent: var(--tenant-on-primary, #FFFFFF);
    --v-accent-soft: var(--tenant-primary-alpha15, #2F5D4626);

    --v-bg: #F4F7F4;
    --v-surface: #FFFFFF;
    --v-surface-2: #ECF1EC;
    --v-ink: #14261C;
    --v-ink-2: #33473B;
    --v-muted: #55675B;
    --v-line: #DAE4DB;
    --v-dark: #14261C;
    --v-on-dark: #FFFFFF;
    --v-on-dark-muted: #BDD1C3;

    /* Kachelfarben (Aufgaben, Prämien, Abzeichen) */
    --v-tile-coral: #FF6B4A;   --v-tile-coral-ink: #7C2D12;  --v-tile-coral-soft: #FFE4DC;
    --v-tile-green: #0E9F6E;   --v-tile-green-ink: #064E3B;  --v-tile-green-soft: #D1FAE5;
    --v-tile-blue:  #3B82F6;   --v-tile-blue-ink:  #1E3A8A;  --v-tile-blue-soft:  #DBEAFE;
    --v-tile-amber: #F59E0B;   --v-tile-amber-ink: #78350F;  --v-tile-amber-soft: #FEF3C7;
    --v-tile-indigo-soft: #E0E7FF; --v-tile-indigo-ink: #312E81;
    --v-tile-pink-soft: #FCE7F3;   --v-tile-pink-ink: #831843;

    --v-success: #15803D;
    --v-success-soft: #DCFCE7;

    --v-radius-s: 14px;
    --v-radius-m: 18px;
    --v-radius-l: 24px;
    --v-radius-xl: 28px;
    --v-shadow: 0 6px 24px rgba(30, 27, 58, 0.06);
    --v-shadow-strong: 0 10px 30px rgba(30, 27, 58, 0.18);

    /* Bestehende Variablen aus app.css auf das neue System abbilden */
    --surface-bg: var(--v-surface);
    --surface-bg-elevated: var(--v-bg);
    --surface-border: var(--v-line);
    --text-primary: var(--v-ink);
    --text-secondary: var(--v-muted);
    --text-muted: #8D88B0;
    --shadow-sm: var(--v-shadow);
    --radius-lg: var(--v-radius-m);
    --radius-xl: var(--v-radius-l);
}

[data-theme="dark"] {
    --v-brand: #3F7A5C;
    --v-accent-soft: var(--tenant-primary-alpha15, #3F7A5C33);
    --v-bg: #0E1612;
    --v-surface: #16211B;
    --v-surface-2: #1F2D25;
    --v-ink: #EEF4EF;
    --v-ink-2: #D3E0D6;
    --v-muted: #A3B8AA;
    --v-line: #2A3A31;
    --v-dark: #08100C;
    --v-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    --v-tile-coral-soft: #3A1F1A; --v-tile-coral-ink: #FFB4A1;
    --v-tile-green-soft: #12342A; --v-tile-green-ink: #8EE3C2;
    --v-tile-blue-soft: #1B2A4A;  --v-tile-blue-ink: #A9C7FF;
    --v-tile-amber-soft: #3A2E12; --v-tile-amber-ink: #FCD38A;
    --v-tile-indigo-soft: #24264D; --v-tile-indigo-ink: #C3C8FF;
    --v-tile-pink-soft: #3A1C2E;  --v-tile-pink-ink: #F9B8D9;
    --v-success-soft: #12342A;
    --v-success: #6EE7B7;

    --surface-bg: var(--v-surface);
    --surface-bg-elevated: var(--v-bg);
    --surface-border: var(--v-line);
    --text-primary: var(--v-ink);
    --text-secondary: var(--v-muted);
}

html, body {
    font-family: var(--v-font);
    background: var(--v-bg);
    color: var(--v-ink);
}

/* MudBlazor-Typografie auf Outfit umstellen */
.mud-typography, .mud-button-root, .mud-input, .mud-chip, .mud-list-item-text, .mud-nav-link, .mud-tab {
    font-family: var(--v-font) !important;
}

/* --------------------------------------------------------------------------
   Bausteine (Klassen mit Präfix v-), unabhängig von MudBlazor
   -------------------------------------------------------------------------- */

.v-page {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.v-card {
    background: var(--v-surface);
    border-radius: var(--v-radius-l);
    box-shadow: var(--v-shadow);
    padding: 18px;
}

.v-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.v-h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.15;
    color: var(--v-ink);
}

.v-h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: var(--v-ink);
}

.v-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--v-accent);
    text-decoration: none;
}

.v-link:hover { text-decoration: underline; }

.v-muted { color: var(--v-muted); }

.v-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    background: var(--v-accent);
    color: var(--v-on-accent);
    white-space: nowrap;
}

.v-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.v-chip-success { background: var(--v-success-soft); color: var(--v-success); }
.v-chip-points { background: var(--v-surface); color: var(--v-ink); }

.v-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: none;
    border-radius: var(--v-radius-m);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    background: var(--v-accent);
    color: var(--v-on-accent);
}

.v-btn:focus-visible, .v-tile:focus-visible, .v-list-item:focus-visible, .v-nav a:focus-visible {
    outline: 3px solid var(--v-brand);
    outline-offset: 2px;
}

.v-btn-ghost {
    background: var(--v-surface);
    color: var(--v-ink);
    border: 2px solid var(--v-line);
}

.v-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--v-radius-s);
    border: none;
    background: var(--v-surface);
    color: var(--v-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    flex-shrink: 0;
}

.v-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--v-tile-coral);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--v-bg);
}

/* Listenzeile (Einsatz, Event) */
.v-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--v-radius-l);
    background: var(--v-surface);
    box-shadow: var(--v-shadow);
    color: var(--v-ink);
    text-decoration: none;
}

.v-date {
    width: 52px;
    height: 56px;
    flex-shrink: 0;
    border-radius: var(--v-radius-s);
    background: var(--v-surface-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.v-date-dow { font-size: 11px; font-weight: 700; color: var(--v-muted); text-transform: uppercase; }
.v-date-day { font-size: 20px; font-weight: 800; }

.v-list-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
    min-width: 0;
}

.v-list-title {
    font-size: 16px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v-list-sub {
    font-size: 13px;
    color: var(--v-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Horizontale Kachel-Leiste */
.v-tiles {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 2px 16px 6px;
}

.v-tile {
    flex: 0 0 170px;
    height: 190px;
    box-sizing: border-box;
    border-radius: 26px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #FFFFFF;
    text-decoration: none;
    scroll-snap-align: start;
}

.v-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--v-radius-s);
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.v-tile-title { font-size: 17px; font-weight: 700; line-height: 1.2; }
.v-tile-sub { font-size: 13px; font-weight: 500; }
.v-tile-points {
    padding: 4px 9px;
    border-radius: 999px;
    background: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
}

.v-tile-coral { background: #E8553A; }
.v-tile-coral .v-tile-points { color: #9A3412; }
.v-tile-green { background: #0B7F58; }
.v-tile-green .v-tile-points { color: #065F46; }
.v-tile-blue { background: #2563EB; }
.v-tile-blue .v-tile-points { color: #1E3A8A; }
.v-tile-indigo { background: #4F46E5; }
.v-tile-indigo .v-tile-points { color: #312E81; }

/* Hero-Karte in Vereinsfarbe */
.v-hero {
    background: var(--v-accent);
    color: var(--v-on-accent);
    border-radius: var(--v-radius-xl);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.v-hero-label { font-size: 14px; font-weight: 600; opacity: 0.92; }
.v-hero-value { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -1.2px; }

.v-progress {
    height: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--v-on-accent) 25%, transparent);
    overflow: hidden;
}

.v-progress > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--v-on-accent);
}

.v-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.v-stat {
    background: color-mix(in srgb, #000 16%, transparent);
    border-radius: var(--v-radius-s);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.v-stat strong { font-size: 18px; font-weight: 800; }
.v-stat span { font-size: 12px; font-weight: 500; }

.v-empty {
    text-align: center;
    padding: 22px 18px;
    border-radius: var(--v-radius-l);
    border: 2px dashed var(--v-line);
    color: var(--v-muted);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Rahmen: Kopfzeile + schwebende Navigation (mobil)
   -------------------------------------------------------------------------- */

.v-topbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
    background: color-mix(in srgb, var(--v-bg) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.v-club-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    background: var(--v-surface);
    color: var(--v-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--v-shadow);
    min-width: 0;
}

.v-club-chip span.name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v-club-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--v-accent);
    color: var(--v-on-accent);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.v-club-logo img { width: 100%; height: 100%; object-fit: cover; }

.v-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    height: 68px;
    max-width: 520px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--v-dark);
    box-shadow: var(--v-shadow-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v-nav a {
    height: 48px;
    min-width: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--v-on-dark-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.15s ease, padding 0.15s ease;
}

.v-nav a .label { display: none; }

.v-nav a.active {
    padding: 0 16px;
    background: var(--v-accent);
    color: var(--v-on-accent);
}

.v-nav a.active .label { display: inline; }

.v-nav .mud-icon-root { color: inherit !important; }

@media (min-width: 960px) {
    .v-nav { display: none !important; }
    .v-topbar { padding-top: 14px; }
}

/* Platz für die schwebende Navigation */
.v-content-pad {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (min-width: 960px) {
    .v-content-pad { padding-bottom: 32px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .v-nav a { transition: none; }
    .v-tiles { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Seitenbausteine (Unterseiten)
   -------------------------------------------------------------------------- */

.v-page-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.v-page-head .v-h1 { flex-grow: 1; }

.v-subtitle {
    margin: -10px 0 0;
    color: var(--v-muted);
    font-size: 15px;
}

/* Segment-Umschalter (Tabs) */
.v-seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 4px;
    border-radius: var(--v-radius-m);
    background: var(--v-surface-2);
}

.v-seg button {
    min-height: 42px;
    border: none;
    border-radius: var(--v-radius-s);
    background: transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--v-muted);
    cursor: pointer;
}

.v-seg button[aria-selected="true"] {
    background: var(--v-surface);
    color: var(--v-ink);
    font-weight: 800;
    box-shadow: 0 1px 4px rgba(30, 27, 58, 0.1);
}

/* Filter-Chips */
.v-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 2px 16px;
}

.v-filters button {
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 999px;
    background: var(--v-surface);
    color: var(--v-ink-2);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--v-shadow);
}

.v-filters button[aria-pressed="true"] {
    background: var(--v-dark);
    color: var(--v-on-dark);
    font-weight: 700;
}

/* Inhaltskarte (Aufgabe, Event, Prämie) */
.v-item {
    background: var(--v-surface);
    border-radius: var(--v-radius-l);
    box-shadow: var(--v-shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.v-item-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.v-item-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--v-radius-s);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v-accent-soft);
    color: var(--v-accent);
    overflow: hidden;
}

.v-item-icon img { width: 100%; height: 100%; object-fit: cover; }

.v-item-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--v-ink);
    text-decoration: none;
}

.v-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 13px;
    color: var(--v-muted);
}

.v-meta span { display: inline-flex; align-items: center; gap: 4px; }
.v-meta .mud-icon-root { font-size: 16px; }

.v-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--v-surface-2);
    overflow: hidden;
}

.v-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--v-accent);
}

.v-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--v-muted);
    margin-bottom: 6px;
}

.v-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.v-btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; border-radius: var(--v-radius-s); }

.v-btn-danger {
    background: var(--v-surface);
    color: #B91C1C;
    border: 2px solid #FECACA;
}

.v-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.v-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: var(--v-radius-s);
    font-size: 13px;
    font-weight: 700;
}

.v-status-ok { background: var(--v-success-soft); color: var(--v-success); }
.v-status-info { background: var(--v-tile-blue-soft); color: var(--v-tile-blue-ink); }
.v-status-muted { background: var(--v-surface-2); color: var(--v-muted); }
.v-status-warn { background: var(--v-tile-amber-soft); color: var(--v-tile-amber-ink); }

.v-group-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--v-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 4px;
}

/* Bottom-Sheet / Overlay-Karte (QR-Code) */
.v-sheet {
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
    background: var(--v-surface);
    border-radius: var(--v-radius-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: var(--v-ink);
}

.v-sheet img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--v-radius-m);
}

/* Detailseiten */
.v-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px 0 8px;
    border-radius: 999px;
    background: var(--v-surface);
    color: var(--v-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--v-shadow);
}

.v-cover {
    border-radius: var(--v-radius-xl);
    overflow: hidden;
    background: var(--v-surface-2);
}

.v-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.v-fact {
    background: var(--v-surface);
    border-radius: var(--v-radius-m);
    box-shadow: var(--v-shadow);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    color: var(--v-ink);
    text-decoration: none;
}

.v-fact-label { font-size: 12px; font-weight: 600; color: var(--v-muted); }
.v-fact-value { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }

.v-prose {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--v-ink-2);
    white-space: pre-line;
}

.v-avatars { display: flex; flex-wrap: wrap; gap: 8px; }

/* Prämien-Raster */
.v-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 720px) {
    .v-grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.v-reward {
    background: var(--v-surface);
    border-radius: var(--v-radius-l);
    box-shadow: var(--v-shadow);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.v-reward-art {
    height: 104px;
    border-radius: var(--v-radius-m);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.v-reward-art .mud-icon-root { font-size: 44px; }

.v-reward-body {
    padding: 0 4px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.v-reward-name { font-size: 15px; font-weight: 700; line-height: 1.25; }
.v-reward-cost { font-size: 15px; font-weight: 800; color: var(--v-ink); }
.v-art-0 { background: var(--v-tile-coral-soft); color: var(--v-tile-coral-ink); }
.v-art-1 { background: var(--v-tile-indigo-soft); color: var(--v-tile-indigo-ink); }
.v-art-2 { background: var(--v-tile-amber-soft); color: var(--v-tile-amber-ink); }
.v-art-3 { background: var(--v-tile-green-soft); color: var(--v-tile-green-ink); }

/* Rangliste */
.v-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
}

.v-podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    padding: 0;
    min-width: 0;
}

.v-podium-place[disabled] { cursor: default; }
.v-podium-name { font-size: 14px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-podium-points { font-size: 13px; font-weight: 600; opacity: 0.9; }

.v-podium-block {
    width: 100%;
    border-radius: 16px 16px 6px 6px;
    background: color-mix(in srgb, var(--v-on-accent) 18%, transparent);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    font-size: 22px;
    font-weight: 800;
}

.v-rank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 8px 14px;
    box-sizing: border-box;
    border: none;
    border-radius: var(--v-radius-m);
    background: var(--v-surface);
    color: var(--v-ink);
    font: inherit;
    text-align: left;
    box-shadow: var(--v-shadow);
    cursor: pointer;
}

.v-rank-row[disabled] { cursor: default; }
.v-rank-row.me { outline: 2px solid var(--v-accent); }
.v-rank-num { width: 28px; text-align: center; font-weight: 800; color: var(--v-muted); }
.v-rank-name { flex-grow: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-rank-points { font-weight: 800; }

/* Menüliste (Profil, Einstellungen) */
.v-menu {
    background: var(--v-surface);
    border-radius: var(--v-radius-l);
    box-shadow: var(--v-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.v-menu a, .v-menu button {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 16px;
    border: none;
    background: none;
    color: var(--v-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.v-menu a + a, .v-menu a + button, .v-menu button + a, .v-menu button + button {
    border-top: 1px solid var(--v-line);
}

.v-menu a:hover, .v-menu button:hover { background: var(--v-surface-2); }
.v-menu .grow { flex-grow: 1; }
.v-menu .mud-icon-root { color: var(--v-muted); }

.v-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--v-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Anmelden / Registrieren / Passwort (ohne App-Rahmen)
   -------------------------------------------------------------------------- */

.v-auth {
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--v-bg);
    color: var(--v-ink);
    font-family: var(--v-font);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.v-auth-inner {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.v-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.v-auth-brand img.wordmark { width: 190px; max-width: 70%; height: auto; }
.v-auth-brand .tagline { font-size: 17px; font-weight: 700; color: var(--v-ink-2); }

.v-auth-club {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: var(--v-accent);
    color: var(--v-on-accent);
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.v-auth-card {
    background: var(--v-surface);
    border-radius: var(--v-radius-xl);
    box-shadow: var(--v-shadow);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.v-auth-card form { display: flex; flex-direction: column; gap: 14px; margin: 0; }

.v-field { display: flex; flex-direction: column; gap: 6px; }
.v-field label { font-size: 14px; font-weight: 700; color: var(--v-ink); }

.v-input-wrap { position: relative; display: flex; align-items: center; }

.v-input, .v-field input[type=text], .v-field input[type=email], .v-field input[type=password], .v-field input:not([type]) {
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    padding: 0 16px;
    border: 2px solid var(--v-line);
    border-radius: var(--v-radius-m);
    background: var(--v-surface);
    color: var(--v-ink);
    font: inherit;
    font-size: 16px; /* verhindert Zoom auf iOS */
    outline: none;
}

.v-input:focus, .v-field input:focus { border-color: var(--v-accent); box-shadow: 0 0 0 3px var(--v-accent-soft); }
.v-input-wrap .v-input { padding-right: 52px; }

.v-input-toggle {
    position: absolute;
    right: 4px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--v-radius-s);
    background: none;
    color: var(--v-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.validation-message { color: #B91C1C; font-size: 13px; font-weight: 600; }
.v-field input.invalid { border-color: #DC2626; }

.v-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--v-ink-2);
    cursor: pointer;
    min-height: 44px;
    align-items: center;
}

.v-check input { width: 22px; height: 22px; accent-color: var(--v-accent); flex-shrink: 0; margin: 0; }
.v-check a { color: var(--v-accent); font-weight: 700; }

.v-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--v-radius-s);
    font-size: 14px;
    font-weight: 600;
    background: #FEE2E2;
    color: #991B1B;
}

.v-auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    font-size: 13px;
}

.v-auth-links a { color: var(--v-muted); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.v-auth-links a:hover { color: var(--v-ink); text-decoration: underline; }

.v-auth-switch { text-align: center; font-size: 15px; color: var(--v-muted); }
.v-auth-switch a { color: var(--v-accent); font-weight: 800; text-decoration: none; }

.v-auth-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

/* Vereinsliste (Auswahl / Suche) */
.v-club-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 2px solid transparent;
    border-radius: var(--v-radius-l);
    background: var(--v-surface);
    box-shadow: var(--v-shadow);
    color: var(--v-ink);
    font: inherit;
    text-align: left;
}

button.v-club-row { cursor: pointer; }
.v-club-row.selected { border-color: var(--v-accent); }

.v-club-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--v-tile-indigo-soft);
    color: var(--v-tile-indigo-ink);
    font-weight: 800;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.v-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: var(--v-radius-m);
    background: var(--v-surface);
    box-shadow: var(--v-shadow);
    color: var(--v-muted);
}

.v-search input {
    flex-grow: 1;
    min-width: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font: inherit;
    font-size: 16px;
    color: var(--v-ink);
    min-height: 48px !important;
    padding: 0 !important;
}

/* Blazor-Standardmarkierung (grün/rot) für Eingaben im neuen Look unterdrücken */
.v-auth input.valid.modified:not([type=checkbox]),
.v-auth input.invalid:not([type=checkbox]) { outline: none !important; }
.v-auth input.valid.modified:not([type=checkbox]) { border-color: var(--v-line); }
.v-auth input.invalid:not([type=checkbox]) { border-color: #DC2626; }
.v-auth input.valid.modified:not([type=checkbox]):focus { border-color: var(--v-accent); }

/* Verwaltung */
.v-todo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 14px;
    border-radius: var(--v-radius-m);
    background: color-mix(in srgb, var(--v-on-accent) 16%, transparent);
    color: var(--v-on-accent);
    text-decoration: none;
}

.v-todo-count {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--v-on-accent);
    color: var(--v-accent);
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v-todo-text { flex-grow: 1; font-size: 15px; font-weight: 700; }

.v-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.v-quick-item {
    min-height: 92px;
    border-radius: var(--v-radius-l);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   MudBlazor-Bausteine im neuen Look (Dialoge, Buttons, Eingaben, Panels)
   -------------------------------------------------------------------------- */

/* Buttons: ruhige, große Touch-Flächen */
.mud-button-root:not(.mud-icon-button):not(.mud-fab) {
    min-height: 44px;
    border-radius: var(--v-radius-s);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.mud-button-root.mud-button-size-small:not(.mud-icon-button) { min-height: 40px; }
.mud-button-filled { box-shadow: none !important; }
.mud-icon-button { min-width: 44px; min-height: 44px; }

/* Dialoge: große Rundung; auf dem Handy als fast randloses Blatt */
.mud-dialog {
    border-radius: var(--v-radius-xl) !important;
    background: var(--v-surface);
    color: var(--v-ink);
    box-shadow: var(--v-shadow-strong);
}

.mud-dialog .mud-dialog-title { padding: 20px 24px 8px; }
.mud-dialog .mud-dialog-title .mud-typography { font-size: 20px; font-weight: 800; color: var(--v-ink); }
.mud-dialog .mud-dialog-content { padding: 8px 24px; }
.mud-dialog .mud-dialog-actions { padding: 12px 20px 20px; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 599px) {
    .mud-dialog-container .mud-dialog:not(.mud-dialog-fullscreen) {
        width: calc(100% - 24px) !important;
        max-width: none !important;
        margin: 12px !important;
        max-height: calc(100dvh - 24px);
    }

    .mud-dialog .mud-dialog-content { padding: 8px 18px; }
    .mud-dialog .mud-dialog-actions { padding: 12px 16px 16px; }
    .mud-dialog .mud-dialog-actions .mud-button-root { flex: 1 1 auto; }
}

.mud-overlay-dialog { backdrop-filter: blur(2px); }

/* Eingabefelder */
.mud-input-outlined .mud-input-outlined-border { border-radius: var(--v-radius-m) !important; border-color: var(--v-line); border-width: 2px; }
.mud-input-control .mud-input-slot { font-size: 16px; } /* verhindert Zoom auf iOS */
.mud-input.mud-input-outlined:focus-within .mud-input-outlined-border { border-color: var(--v-accent) !important; }

/* Paper/Karten im Inhaltsbereich (bestehende Seiten) */
.voloop-main .mud-paper.mud-elevation-0:not(.v-raw) {
    border-radius: var(--v-radius-l) !important;
    box-shadow: var(--v-shadow);
    border: none;
}

.voloop-main .mud-expand-panels { background: transparent; }
.voloop-main .mud-expand-panel {
    border-radius: var(--v-radius-m) !important;
    background: var(--v-surface);
    box-shadow: var(--v-shadow);
    margin-bottom: 8px;
}

.voloop-main .mud-expand-panel::before, .voloop-main .mud-expand-panel::after { display: none; }
.mud-expand-panel-header { min-height: 56px; font-weight: 700; }

/* Listen / Menüs */
.mud-list-item { min-height: 48px; }
.mud-menu-item { min-height: 44px; }
.mud-popover .mud-list { border-radius: var(--v-radius-m); }

/* Schalter & Checkboxen: Vereinsfarbe */
.mud-switch-track { opacity: 0.35; }

/* Chips */
.mud-chip { font-weight: 700; }

/* Tabellen */
.voloop-main .mud-simple-table .mud-table-container { border-radius: var(--v-radius-m); }
.voloop-main .mud-table-head .mud-table-cell { font-weight: 800; color: var(--v-ink); }

/* Snackbar/Toasts */
.mud-snackbar { border-radius: var(--v-radius-m) !important; font-family: var(--v-font); }

/* Formulare in Dialogen auf dem Handy einspaltig (Datum/Zeit/Zahlen wurden abgeschnitten) */
@media (max-width: 599px) {
    .mud-dialog .mud-grid-item-xs-6,
    .mud-dialog .mud-grid-item-xs-5,
    .mud-dialog .mud-grid-item-xs-4,
    .mud-dialog .mud-grid-item-xs-3 {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* ── Wochenziel & Abzeichen ── */
.v-goal { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; }
.v-goal-ring { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
/* Zahl und Ziel mittig im Ring: große Zahl, darunter „von 1“ */
.v-goal-count { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 26px; font-weight: 800; line-height: 1; color: var(--v-ink); }
.v-goal-count small { display: block; font-size: 12px; font-weight: 600; line-height: 1; color: var(--v-muted); margin: 0; }
.v-goal-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v-goal-title { font-size: 17px; font-weight: 800; color: var(--v-ink); }
.v-goal-weeks { display: flex; gap: 6px; margin-top: 2px; }
.v-goal-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--v-line); }
.v-goal-dot.met { background: var(--v-success); }
.v-goal-dot:last-child { outline: 2px solid var(--v-accent); outline-offset: 2px; }
.v-goal-link { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 14px; background: var(--v-surface-2); color: var(--v-ink); font-weight: 700; text-decoration: none; }

.v-ach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v-ach { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 12px; border-radius: 20px; background: var(--v-surface); box-shadow: var(--v-shadow); }
.v-ach-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--v-accent); color: var(--v-on-accent); }
.v-ach.locked .v-ach-icon { background: var(--v-surface-2); color: var(--v-muted); }
.v-ach.locked { opacity: .85; }
.v-ach-name { font-size: 15px; font-weight: 800; color: var(--v-ink); }
.v-ach-desc { font-size: 13px; color: var(--v-muted); }
.v-ach-bar { width: 100%; height: 6px; border-radius: 999px; background: var(--v-line); overflow: hidden; }
.v-ach-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--v-accent); }

/* ── Postfach: Reiter, Unterhaltungen, Chat ── */
.v-seg a.v-seg-tab { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: var(--v-radius-s); font-size: 15px; font-weight: 600; color: var(--v-muted); text-decoration: none; }
.v-seg a.v-seg-tab[aria-selected="true"] { background: var(--v-surface); color: var(--v-ink); font-weight: 800; box-shadow: 0 1px 4px rgba(20, 38, 28, 0.1); }

.v-thread { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--v-surface); box-shadow: var(--v-shadow); text-decoration: none; color: inherit; }
.v-thread.unread { outline: 2px solid var(--v-accent); outline-offset: -2px; }
.v-thread-title { font-size: 16px; font-weight: 700; color: var(--v-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-thread.unread .v-thread-title { font-weight: 800; }
.v-thread-sub { font-size: 14px; color: var(--v-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-thread-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; font-size: 12px; color: var(--v-muted); }
.v-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--v-accent); }

.v-chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 150px; }
.v-bubble { max-width: 82%; padding: 10px 14px; border-radius: 20px; background: var(--v-surface); box-shadow: var(--v-shadow); align-self: flex-start; word-break: break-word; white-space: pre-wrap; }
.v-bubble.mine { align-self: flex-end; background: var(--v-accent); color: var(--v-on-accent); }
.v-bubble-who { font-size: 12px; font-weight: 700; opacity: .75; margin-bottom: 2px; }
.v-bubble-time { font-size: 11px; opacity: .7; margin-top: 4px; text-align: right; }
.v-day { align-self: center; font-size: 12px; font-weight: 700; color: var(--v-muted); background: var(--v-surface-2); padding: 4px 10px; border-radius: 999px; }

.v-composer { position: fixed; left: 0; right: 0; bottom: 96px; z-index: 20; padding: 0 16px; }
.v-composer-inner { max-width: 640px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; padding: 8px; border-radius: 24px; background: var(--v-surface); box-shadow: 0 8px 28px rgba(20, 38, 28, 0.22); }
.v-composer textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; border: none; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--v-ink); padding: 10px 6px; }
.v-composer button { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--v-accent); color: var(--v-on-accent); display: grid; place-items: center; cursor: pointer; }
.v-composer button:disabled { opacity: .5; }
.v-fab { position: fixed; right: 20px; bottom: 112px; z-index: 15; display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 999px; border: none; background: var(--v-accent); color: var(--v-on-accent); font: inherit; font-weight: 800; box-shadow: 0 8px 24px rgba(20, 38, 28, 0.3); text-decoration: none; }


/* Seitenmenü (Drawer): Kopf mit Logo, respektiert die Statusleiste/Notch */
.v-drawer-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(22px + env(safe-area-inset-top, 0px)) 22px 18px;
}

.v-drawer-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--v-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.v-drawer-logo img { width: 30px; height: 30px; object-fit: contain; }

.v-drawer-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.v-drawer-title .name { font-size: 18px; font-weight: 800; color: var(--v-ink); }
.v-drawer-title .sub { font-size: 13px; font-weight: 600; color: var(--v-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Betreiber-Bereich ===== */
.v-page-wide { max-width: 1120px; }

.op-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.op-head .eyebrow { font-size: 13px; font-weight: 600; color: var(--v-muted); }
.op-head h1 { margin: 2px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -0.5px; color: var(--v-ink); }
.op-head .sub { font-size: 14px; color: var(--v-muted); margin-top: 2px; }

.op-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.op-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.op-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 959px) {
    .op-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .op-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .op-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .op-grid3 { grid-template-columns: minmax(0, 1fr); } }

.op-kpi { background: var(--v-surface); border-radius: var(--v-radius-l); box-shadow: var(--v-shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; color: var(--v-ink); text-decoration: none; min-width: 0; }
a.op-kpi:hover { box-shadow: var(--v-shadow-strong); }
.op-kpi .l { font-size: 13px; font-weight: 600; color: var(--v-muted); }
.op-kpi .v { font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.op-kpi .n { font-size: 13px; font-weight: 700; color: var(--v-muted); }
.op-kpi .n.up { color: var(--v-success); }

.op-card { background: var(--v-surface); border-radius: var(--v-radius-l); box-shadow: var(--v-shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.op-card > h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--v-ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.op-card > h2 a { font-size: 13px; font-weight: 700; color: var(--v-accent); text-decoration: none; }
.op-note { font-size: 14px; color: var(--v-muted); line-height: 1.4; }

.op-todo { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 14px; background: var(--v-surface-2); color: var(--v-ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.op-todo:hover { filter: brightness(0.97); }
.op-todo .n { min-width: 34px; height: 34px; padding: 0 8px; box-sizing: border-box; border-radius: 999px; background: var(--v-accent); color: var(--v-on-accent); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.op-todo.zero { color: var(--v-muted); font-weight: 500; }
.op-todo.zero .n { background: var(--v-surface); color: var(--v-muted); box-shadow: inset 0 0 0 1px var(--v-line); }
.op-todo .t { flex: 1; min-width: 0; }

.op-li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--v-line); min-width: 0; }
.op-li:last-child { border-bottom: none; padding-bottom: 0; }
.op-li .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.op-li .main b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-li .main span { font-size: 13px; color: var(--v-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-li .end { font-size: 14px; font-weight: 700; color: var(--v-ink); white-space: nowrap; }

.op-bars { display: flex; flex-direction: column; gap: 10px; }
.op-bar { display: grid; grid-template-columns: minmax(80px, 0.9fr) minmax(0, 2fr) 36px; align-items: center; gap: 10px; font-size: 14px; }
.op-bar .lab { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-bar .track { height: 12px; border-radius: 8px; background: var(--v-surface-2); overflow: hidden; }
.op-bar .track i { display: block; height: 100%; border-radius: 8px; background: var(--v-accent); }
.op-bar .val { font-weight: 800; text-align: right; }

.op-chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 18px; }
.op-chart .col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.op-chart .col b { font-size: 11px; font-weight: 700; color: var(--v-muted); }
.op-chart .col i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 0 0; background: var(--v-accent); min-height: 3px; }
.op-chart-x { display: flex; gap: 6px; }
.op-chart-x span { flex: 1; text-align: center; font-size: 10px; color: var(--v-muted); font-weight: 600; }

.op-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 959px) { .op-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.op-tile { background: var(--v-surface); border-radius: var(--v-radius-l); box-shadow: var(--v-shadow); padding: 16px; display: flex; gap: 14px; align-items: center; color: var(--v-ink); text-decoration: none; }
.op-tile:hover { box-shadow: var(--v-shadow-strong); }
.op-tile .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--v-accent-soft, #E3F2E8); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--v-accent); }
.op-tile .tx { display: flex; flex-direction: column; min-width: 0; }
.op-tile .tx b { font-size: 16px; font-weight: 800; }
.op-tile .tx span { font-size: 13px; color: var(--v-muted); }

.op-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.op-pill { border: none; font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--v-surface); color: var(--v-ink); box-shadow: inset 0 0 0 1px var(--v-line); cursor: pointer; }
.op-pill.on { background: var(--v-accent); color: var(--v-on-accent); box-shadow: none; }
.op-input { flex: 1; min-width: 200px; box-sizing: border-box; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--v-line); background: var(--v-surface); font: inherit; color: var(--v-ink); }
.op-select { padding: 11px 12px; border-radius: 14px; border: 1px solid var(--v-line); background: var(--v-surface); font: inherit; color: var(--v-ink); }

.op-table { background: var(--v-surface); border-radius: var(--v-radius-l); box-shadow: var(--v-shadow); overflow: hidden; }
.op-row { display: grid; grid-template-columns: minmax(200px, 2.2fr) 1fr 84px 84px 84px 120px 140px minmax(150px, 1.5fr); gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--v-line); font-size: 14px; }
.op-row:last-child { border-bottom: none; }
.op-row.head { font-size: 12px; font-weight: 700; color: var(--v-muted); background: var(--v-surface-2); padding-top: 10px; padding-bottom: 10px; }
.op-row .nm { display: flex; flex-direction: column; min-width: 0; }
.op-row .nm b { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.op-row .nm span, .op-row .sm { font-size: 12px; color: var(--v-muted); overflow-wrap: anywhere; }
.op-row .num { font-weight: 700; }
@media (max-width: 1099px) {
    .op-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 6px; }
    .op-row.head { display: none; }
    .op-row .nm { grid-column: 1 / -1; }
    .op-row [data-l]::before { content: attr(data-l) ": "; color: var(--v-muted); font-weight: 500; font-size: 12px; }
    .op-row .wide { grid-column: 1 / -1; }
}

.op-st-wait { background: var(--v-tile-amber-soft); color: var(--v-tile-amber-ink); }
.op-st-bad { background: #FEE2E2; color: #991B1B; }
.op-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.op-btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.op-btnrow .v-btn { flex: 0 1 auto; }
.op-kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; font-size: 14px; }
.op-kv dt { color: var(--v-muted); font-weight: 600; margin: 0; }
.op-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 480px) { .op-kv { grid-template-columns: minmax(0, 1fr); } .op-kv dt { margin-top: 6px; } }
.op-hist { display: flex; flex-direction: column; gap: 8px; }
.op-hist .h { font-size: 14px; display: flex; flex-direction: column; gap: 1px; padding-bottom: 8px; border-bottom: 1px solid var(--v-line); }
.op-hist .h:last-child { border-bottom: none; padding-bottom: 0; }
.op-hist .h span { color: var(--v-muted); font-size: 12px; }
.op-ok { color: var(--v-success); font-weight: 700; }
.op-err { color: #B91C1C; font-weight: 700; }
.op-banner { border-radius: var(--v-radius-m); padding: 12px 16px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.op-banner.wait { background: var(--v-tile-amber-soft); color: var(--v-tile-amber-ink); }
.op-banner.bad { background: #FEE2E2; color: #991B1B; }
.op-banner.ok { background: var(--v-success-soft); color: var(--v-success); }
a.op-link { color: var(--v-accent); font-weight: 700; text-decoration: none; }
.op-switch { display: flex; align-items: flex-start; gap: 14px; }
.op-switch input[type=checkbox] { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--v-accent); flex: 0 0 auto; }
@media (min-width: 1100px) {
    .op-row.u { grid-template-columns: minmax(220px, 2.4fr) minmax(160px, 1.4fr) 80px 130px 110px; }
    .op-row.p { grid-template-columns: minmax(200px, 2.2fr) 1fr 110px 110px minmax(150px, 1.4fr); }
    .op-row.a { grid-template-columns: 140px 150px minmax(180px, 1.5fr) minmax(220px, 2fr); }
    .op-row.m { grid-template-columns: 140px minmax(200px, 1.6fr) minmax(200px, 2fr) 110px; }
}

/* ===== Hinweis-Banner des Betreibers ===== */
.v-announce { display: flex; align-items: flex-start; gap: 10px; border-radius: var(--v-radius-m); padding: 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.35; margin: 0 0 10px; }
.v-announce .t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.v-announce a { color: inherit; text-decoration: underline; font-weight: 800; margin-left: 6px; }
.v-announce.maintenance { background: var(--v-tile-amber-soft); color: var(--v-tile-amber-ink); }
.v-announce.news { background: var(--v-success-soft); color: var(--v-success); }
.v-announce.info { background: var(--v-surface); color: var(--v-ink); box-shadow: var(--v-shadow); }
.v-announce button { border: none; background: none; color: inherit; cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; opacity: .7; }
.v-announce-wrap { max-width: 640px; margin: 0 auto; padding: 8px 16px 0; }
.op-ticket { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--v-surface); box-shadow: var(--v-shadow); color: inherit; text-decoration: none; }
.op-ticket.unread { outline: 2px solid var(--v-accent); outline-offset: -2px; }
.op-ticket .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.op-ticket .main b { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-ticket .main span { font-size: 13px; color: var(--v-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-reply { display: flex; flex-direction: column; gap: 10px; }
.op-reply textarea { width: 100%; box-sizing: border-box; min-height: 120px; border-radius: 14px; border: 1px solid var(--v-line); padding: 12px 14px; font: inherit; color: var(--v-ink); background: var(--v-surface); resize: vertical; }
.op-pre { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--v-surface-2); font-size: 12px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
details.op-err-item { border-bottom: 1px solid var(--v-line); padding: 10px 0; }
details.op-err-item:last-child { border-bottom: none; }
details.op-err-item summary { cursor: pointer; display: flex; gap: 10px; align-items: center; list-style: none; }
details.op-err-item summary::-webkit-details-marker { display: none; }
