/* ============================================================
   SC4S Operations — Stylesheet
   Branding: Teal #2D9E8F, Cream #FAF7F2, Ink #1C2126
   Schriften: Fraunces (Headlines), DM Sans (Body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=DM+Sans:wght@400;500;600&display=swap');

* { box-sizing: border-box; }

:root {
    --teal: #2D9E8F;
    --teal-dark: #1F7A6E;
    --teal-light: #E1F5EE;
    --cream: #FAF7F2;
    --ink: #1C2126;
    --grau-100: #F1EFE8;
    --grau-200: #D3D1C7;
    --grau-400: #888780;
    --grau-600: #5F5E5A;
    --grau-700: #444441;

    --rot-50: #FCEBEB;
    --rot-700: #791F1F;
    --rot-800: #501313;
    --gruen-50: #EAF3DE;
    --gruen-700: #27500A;
    --gelb-50: #FAEEDA;
    --gelb-700: #854F0B;
    --gelb-800: #633806;
    --blau-50: #E6F1FB;
    --blau-700: #0C447C;

    --radius: 8px;
    --radius-lg: 12px;
    --shadow-fokus: 0 0 0 3px rgba(45, 158, 143, 0.25);
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--cream);
    color: var(--ink);
    margin: 0;
    line-height: 1.5;
    font-size: 15px;
}

h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
h1 { font-size: 24px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; font-family: 'DM Sans', sans-serif; font-weight: 500; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.topbar {
    background: white;
    border-bottom: 1px solid var(--grau-200);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-marke {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-logo {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 13px;
    font-family: 'Fraunces', serif;
}

.topbar-titel {
    font-weight: 500; font-size: 16px;
}

.topbar-nav {
    display: flex; gap: 4px;
}
.topbar-nav a {
    padding: 8px 14px;
    border-radius: var(--radius);
    color: var(--grau-600);
    font-size: 14px;
    font-weight: 500;
}
.topbar-nav a.aktiv {
    background: var(--teal-light);
    color: var(--teal-dark);
}
.topbar-nav a:hover { background: var(--grau-100); text-decoration: none; }
.topbar-nav a.aktiv:hover { background: var(--teal-light); }

.topbar-rechts {
    display: flex; align-items: center; gap: 12px;
}

.avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 12px;
}

.hilfe-icon {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid var(--grau-200);
    background: white;
    color: var(--grau-600);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
    text-decoration: none;
    line-height: 1;
    transition: all 0.15s ease;
}
.hilfe-icon:hover {
    background: var(--teal-light);
    border-color: var(--teal);
    color: var(--teal-dark);
}

/* ============================================================
   KARTEN
   ============================================================ */
.card {
    background: white;
    border: 1px solid var(--grau-200);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.card-titel {
    font-weight: 500;
    font-size: 15px;
}

.card-meta {
    font-size: 13px;
    color: var(--grau-600);
}

/* ============================================================
   STAT-KARTEN
   ============================================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.stats-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat {
    background: white;
    border: 1px solid var(--grau-200);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.stat-label {
    font-size: 12px;
    color: var(--grau-600);
    margin-bottom: 6px;
}
.stat-wert {
    font-size: 24px;
    font-weight: 500;
    font-family: 'Fraunces', serif;
}
.stat.hervorgehoben {
    background: var(--teal-light);
    border-color: var(--teal);
}
.stat.hervorgehoben .stat-label { color: var(--teal-dark); }
.stat.hervorgehoben .stat-wert { color: var(--teal-dark); }

@media (max-width: 720px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   FORTSCHRITTSBALKEN — JAHRESZIEL
   ============================================================ */
.fortschritt-card {
    background: white;
    border: 1px solid var(--grau-200);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 18px;
}
.fortschritt-kopf {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 10px;
}
.fortschritt-titel {
    font-weight: 500; font-size: 14px;
}
.fortschritt-zahl {
    font-size: 13px; color: var(--grau-600);
}
.fortschritt-balken {
    height: 10px;
    background: var(--grau-100);
    border-radius: 5px;
    overflow: hidden;
}
.fortschritt-fuell {
    height: 100%;
    background: var(--teal);
    transition: width 0.6s ease-out;
}
.fortschritt-untertitel {
    font-size: 12px;
    color: var(--grau-600);
    margin-top: 8px;
}

/* ============================================================
   GRID 2-SPALTIG
   ============================================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}
@media (max-width: 720px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   AKTIVITÄTEN
   ============================================================ */
.aktivitaeten-tag {
    font-size: 12px;
    color: var(--grau-600);
    margin-bottom: 4px;
    margin-top: 12px;
}
.aktivitaeten-tag:first-child { margin-top: 0; }
.aktivitaeten-eintrag {
    font-size: 14px;
    line-height: 1.5;
    padding: 4px 0;
}

/* ============================================================
   ANKÜNDIGUNGEN
   ============================================================ */
.ank-eintrag {
    padding: 10px 0;
    border-bottom: 1px solid var(--grau-100);
}
.ank-eintrag:last-child { border-bottom: 0; }
.ank-titel { font-size: 14px; }
.ank-meta { font-size: 12px; color: var(--grau-600); margin-top: 2px; }

/* ============================================================
   POOL — Schulen die einen Partner suchen
   ============================================================ */
.pool-card {
    background: var(--gelb-50);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
}
.pool-kopf {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.pool-titel { font-weight: 500; color: var(--gelb-800); }
.pool-zaehler {
    font-size: 11px; padding: 2px 8px;
    background: #EF9F27; color: var(--gelb-800);
    border-radius: 10px;
}
.pool-eintrag {
    margin-bottom: 8px;
}
.pool-name { font-size: 14px; color: var(--gelb-800); }
.pool-meta { font-size: 12px; color: var(--gelb-700); }

/* ============================================================
   FRIST-WARNUNG (eigene Schule kurz vor Pool)
   ============================================================ */
.frist-warnung {
    padding: 12px;
    background: var(--rot-50);
    border-radius: var(--radius);
    margin-bottom: 14px;
}
.frist-warnung-titel { color: var(--rot-700); font-weight: 500; margin-bottom: 4px; }
.frist-warnung-meta { color: #A32D2D; font-size: 12px; margin-bottom: 8px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    font-size: 11px; padding: 3px 9px;
    border-radius: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.badge-grau   { background: var(--grau-100); color: var(--grau-700); }
.badge-gruen  { background: var(--gruen-50); color: var(--gruen-700); }
.badge-amber  { background: var(--gelb-50); color: var(--gelb-700); }
.badge-blau   { background: var(--blau-50); color: var(--blau-700); }
.badge-rot    { background: var(--rot-50); color: var(--rot-700); }
.badge-teal   { background: var(--teal-light); color: var(--teal-dark); }

/* ============================================================
   TABELLEN
   ============================================================ */
table.liste {
    width: 100%; border-collapse: collapse; font-size: 14px;
}
table.liste th {
    text-align: left;
    padding: 10px 8px;
    font-weight: 500;
    color: var(--grau-600);
    border-bottom: 1px solid var(--grau-200);
    font-size: 13px;
}
table.liste th.rechts, table.liste td.rechts { text-align: right; }
table.liste td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--grau-100);
    vertical-align: top;
}
table.liste tr:last-child td { border-bottom: 0; }
table.liste tr:hover td { background: rgba(45, 158, 143, 0.04); }
table.liste tr.fingerweg td {
    color: var(--grau-400);
}
table.liste tr.fingerweg td.firmenname {
    text-decoration: line-through;
}
table.liste a { color: var(--ink); font-weight: 500; }

/* ============================================================
   FORMS
   ============================================================ */
.feld {
    margin-bottom: 14px;
}
.feld label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--grau-700);
}
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], input[type=date], select, textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--grau-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background: white;
    color: var(--ink);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: var(--shadow-fokus);
}
textarea { resize: vertical; min-height: 80px; }

.feld-hinweis {
    font-size: 12px; color: var(--grau-600); margin-top: 4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--grau-200);
    background: white;
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s, border-color 0.12s;
    font-family: inherit;
}
.btn:hover { background: var(--grau-100); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primaer {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
}
.btn-primaer:hover { background: var(--teal-dark); }

.btn-rot {
    background: white;
    border-color: #A32D2D;
    color: var(--rot-700);
}
.btn-rot:hover { background: var(--rot-50); }

.btn-klein {
    padding: 6px 11px;
    font-size: 12px;
}

/* ============================================================
   FLASH-NACHRICHTEN
   ============================================================ */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 14px;
    font-size: 14px;
}
.flash.erfolg  { background: var(--gruen-50); color: var(--gruen-700); }
.flash.fehler  { background: var(--rot-50); color: var(--rot-700); }
.flash.info    { background: var(--blau-50); color: var(--blau-700); }
.flash.warnung { background: var(--gelb-50); color: var(--gelb-800); }

/* ============================================================
   LOGIN-SEITE
   ============================================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.login-card {
    background: white;
    border: 1px solid var(--grau-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%; max-width: 380px;
}
.login-marke {
    text-align: center;
    margin-bottom: 24px;
}
.login-marke .topbar-logo {
    width: 48px; height: 48px;
    margin: 0 auto 10px;
    font-size: 16px;
}
.login-titel {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}
.login-untertitel {
    font-size: 13px; color: var(--grau-600);
}

/* ============================================================
   HILFSKLASSEN
   ============================================================ */
.muted { color: var(--grau-600); }
.klein { font-size: 13px; }
.zentriert { text-align: center; }
.rechts { text-align: right; }
.spaltenflex { display: flex; gap: 8px; align-items: center; }
.btn-leiste { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.gruss { margin-bottom: 18px; }
.gruss-titel { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; margin-bottom: 4px; }
.gruss-meta { font-size: 13px; color: var(--grau-600); }

.detail-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 16px;
    font-size: 14px;
}
.detail-grid dt { color: var(--grau-600); }

.tabs {
    display: flex; gap: 2px; margin-bottom: 14px;
    border-bottom: 1px solid var(--grau-200);
}
.tabs a {
    padding: 9px 14px;
    color: var(--grau-600);
    font-weight: 500;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tabs a.aktiv {
    color: var(--ink);
    border-bottom-color: var(--teal);
}
.tabs a:hover { color: var(--ink); text-decoration: none; }

/* ============================================================
   HAMBURGER-BUTTON (mobile)
   Default: versteckt — nur unter dem Mobile-Breakpoint sichtbar
   ============================================================ */
.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: space-between;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--grau-700);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}
body.mobile-menu-offen .hamburger span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
body.mobile-menu-offen .hamburger span:nth-child(2) { opacity: 0; }
body.mobile-menu-offen .hamburger span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ============================================================
   TABELLEN-SCROLL-WRAPPER (für breite Tabellen auf schmalen Screens)
   Wird per JS um <table.liste> gewickelt.
   ============================================================ */
.tabelle-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px; /* leicht über Container hinaus, damit's voll wirkt */
    padding: 0 4px;
}
.tabelle-scroll table { min-width: 100%; }
/* Schatten-Hint, dass es scrollbar ist (nur sichtbar wenn überläuft) */
.tabelle-scroll {
    background:
      linear-gradient(to right, white 30%, rgba(255,255,255,0)) left center / 20px 100% no-repeat,
      linear-gradient(to right, rgba(255,255,255,0), white 70%) right center / 20px 100% no-repeat,
      radial-gradient(farthest-side at 0 50%, rgba(0,0,0,0.08), rgba(0,0,0,0)) left center / 10px 100% no-repeat,
      radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.08), rgba(0,0,0,0)) right center / 10px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
}

/* ============================================================
   MOBILE / TABLET — < 768px
   ============================================================ */
@media (max-width: 768px) {
    /* Topbar: einklappen */
    .topbar {
        padding: 12px 16px;
        flex-wrap: wrap;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    .topbar-titel {
        font-size: 14px;
    }

    .hamburger {
        display: flex;
        order: 3; /* nach Titel und Marke */
        margin-left: auto;
    }

    /* Nav und Rechts standardmäßig zugeklappt */
    .topbar-nav,
    .topbar-rechts {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        order: 4;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--grau-200);
    }

    body.mobile-menu-offen .topbar-nav,
    body.mobile-menu-offen .topbar-rechts {
        display: flex;
    }

    .topbar-nav a {
        padding: 12px 14px;
        border-radius: 8px;
        font-size: 15px;
    }

    .topbar-rechts {
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--grau-100);
        margin-top: 8px;
    }
    .topbar-rechts .topbar-user-name {
        padding: 8px 14px 4px;
        font-size: 13px;
    }
    .topbar-rechts .avatar { display: none; } /* im Mobile-Menü nicht nötig */
    .topbar-rechts a {
        padding: 12px 14px;
        font-size: 15px;
    }
    .topbar-rechts .hilfe-icon {
        width: auto;
        height: auto;
        border-radius: 8px;
        border: none;
        justify-content: flex-start;
        font-size: 15px;
    }
    .topbar-rechts .hilfe-icon::before {
        content: '? ';
        margin-right: 8px;
        color: var(--teal-dark);
        font-weight: 700;
    }
    .topbar-rechts .hilfe-icon::after {
        content: 'Hilfe';
    }

    /* Container — schmaleres Padding */
    .container { padding: 16px; }

    /* Cards — schlanker */
    .card { padding: 14px 16px; }
    .card-header { flex-wrap: wrap; gap: 8px; }

    /* Stats stacken */
    .stats { grid-template-columns: 1fr; gap: 10px; }
    .stat { padding: 14px 16px; }
    .stat-wert { font-size: 24px; }

    /* Grid-2 stacken (war schon, aber sicher ist sicher) */
    .grid-2 { grid-template-columns: 1fr; }

    /* Tabs — horizontal scrollbar */
    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        margin: 0 -16px;
        padding: 0 16px;
    }
    .tabs a {
        flex-shrink: 0;
        padding: 9px 12px;
        font-size: 13px;
    }

    /* ============================================================
       TABELLEN → CARD-LAYOUT
       Statt horizontalem Scroll wird jede Zeile zu einer kleinen Card.
       Spalten-Header (thead) werden versteckt, stattdessen erscheint
       das Label vor jedem Wert (gesetzt per JS aus den th-Texten).
       ============================================================ */
    .tabelle-scroll {
        background: none;
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    table.liste,
    table.liste tbody,
    table.liste tr,
    table.liste td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    table.liste thead { display: none; }

    table.liste tr {
        background: white;
        border: 1px solid var(--grau-200);
        border-radius: var(--radius);
        margin-bottom: 10px;
        padding: 12px 14px;
    }
    table.liste tr:hover { background: white; } /* hover deaktivieren */

    table.liste td {
        padding: 5px 0;
        border: none;
        text-align: left;
    }
    /* .rechts-Klasse auf td überschreiben, sonst wären Beträge falsch ausgerichtet */
    table.liste td.rechts { text-align: left; }

    /* Label-Anzeige: kleiner, dezenter Text über dem Wert */
    table.liste td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: var(--grau-600);
        font-weight: 600;
        margin-bottom: 2px;
    }

    /* Erste Spalte als "Card-Titel" — ohne Label, größer */
    table.liste tr td:first-child {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 6px;
        padding-bottom: 6px;
        border-bottom: 1px solid var(--grau-100);
    }
    table.liste tr td:first-child::before { display: none; }

    /* Action-Cells (mit Buttons): unten abgesetzt mit Trennstrich, rechtsbündig */
    table.liste tr td.action-cell {
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid var(--grau-100);
        text-align: right;
    }
    table.liste tr td.action-cell::before { display: none; }

    /* Leere Zellen unsichtbar */
    table.liste tr td:empty { display: none; }

    /* Wir-Bereich Sidebar unter Hauptinhalt */
    .wir-grid,
    .seitlich-grid,
    .grid-2-sidebar {
        grid-template-columns: 1fr !important;
    }

    /* Hilfe-Layout — TOC unter Inhalt */
    .hilfe-wrapper { grid-template-columns: 1fr !important; gap: 16px; }
    .hilfe-toc {
        position: static;
        max-height: none;
        order: 2; /* TOC nach unten */
        padding: 14px;
        background: var(--grau-100);
        border-radius: 8px;
    }

    /* Buttons — bessere Tap-Größe */
    .btn { padding: 10px 16px; font-size: 14px; }
    .btn-klein { padding: 7px 12px; font-size: 12px; }

    /* btn-leiste umbrechbar */
    .btn-leiste {
        flex-wrap: wrap;
        gap: 8px;
    }
    .btn-leiste .btn,
    .btn-leiste form {
        flex: 0 1 auto;
    }

    /* Forms */
    .feld input[type="text"],
    .feld input[type="email"],
    .feld input[type="number"],
    .feld input[type="date"],
    .feld input[type="tel"],
    .feld textarea,
    .feld select {
        font-size: 16px; /* verhindert iOS-Auto-Zoom */
    }

    /* Detail-Grid — labels über Werten */
    .detail-grid {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
    }
    .detail-grid dt {
        margin-top: 8px;
        font-weight: 600;
    }
    .detail-grid dd {
        margin-bottom: 4px;
        padding-left: 0 !important;
    }

    /* Pool-Cards etc. nicht schmaler werden lassen */
    .pool-card { padding: 12px 14px; }

    /* Login-Card auf Phone */
    .login-card {
        padding: 24px 18px;
        max-width: 100%;
    }
}

/* ============================================================
   TABLET — 769px bis 1024px
   Sidebar darf bleiben, aber Stats nur 2-spaltig
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats .stat:last-child { grid-column: span 2; }

    .topbar { padding: 14px 20px; }
    .topbar-nav a { padding: 6px 10px; font-size: 13px; }
}

/* ============================================================
   PRINT — Hamburger und Topbar bei Druck weglassen
   ============================================================ */
@media print {
    .hamburger,
    .topbar { display: none !important; }
    .container { padding: 0 !important; }
}

/* ============================================================
   LISTE-FILTER (Suche + Filter-Dropdowns)
   ============================================================ */
.liste-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: white;
    border: 1px solid var(--grau-200);
    border-radius: var(--radius-lg);
}

.liste-suche-feld {
    flex: 1 1 200px;
    min-width: 180px;
    padding: 8px 12px;
    border: 1px solid var(--grau-200);
    border-radius: var(--radius);
    font-size: 14px;
}
.liste-suche-feld:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(45,158,143,0.15);
}

.liste-filter-select {
    padding: 8px 12px;
    border: 1px solid var(--grau-200);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 140px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--grau-100);
    flex-wrap: wrap;
    gap: 12px;
}
.pagination-info {
    font-size: 13px;
    color: var(--grau-600);
}
.pagination-buttons {
    display: flex;
    gap: 8px;
}

@media (max-width: 768px) {
    .liste-filter {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }
    .liste-filter-select,
    .liste-suche-feld {
        width: 100%;
    }
    .pagination {
        flex-direction: column;
        align-items: stretch;
    }
    .pagination-buttons {
        justify-content: space-between;
    }
}

/* ============================================================
   KOMMENTARE
   ============================================================ */
.kommentar-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.kommentar {
    padding: 10px 12px;
    background: var(--grau-50, #FAFAFA);
    border: 1px solid var(--grau-100);
    border-radius: var(--radius);
}
.kommentar-kopf {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    flex-wrap: wrap;
}
.kommentar-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
}
.kommentar-text a {
    color: var(--teal-dark);
    text-decoration: underline;
    word-break: break-word;
}
.mention {
    color: var(--teal-dark);
    font-weight: 500;
    background: var(--teal-light);
    padding: 1px 5px;
    border-radius: 4px;
}
