* { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: system-ui, sans-serif; background: #f4f6f9; color: #333; }

/* ── LOGIN ──────────────────────────────────────────── */
body.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #2c3e50; }
.login-box { background: white; border-radius: 10px; padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.login-box h1 { font-size: 1.8rem; color: #2c3e50; margin-bottom: 0.3rem; }
.login-box h2 { font-size: 1rem; color: #999; font-weight: normal; margin-bottom: 1.8rem; }
.login-box label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; font-weight: 500; margin-bottom: 1rem; }
.login-box input { padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; }
.login-box input:focus { outline: none; border-color: #27ae60; }
.btn-block { width: 100%; padding: 12px; font-size: 1rem; margin-top: 0.5rem; }
.fehler-box { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6cb; border-radius: 4px; padding: 10px 14px; margin-bottom: 1rem; font-size: 0.9rem; }
.login-hinweis { margin-top: 1.5rem; font-size: 0.8rem; color: #aaa; text-align: center; line-height: 1.6; }

/* ── NAV ────────────────────────────────────────────── */

nav {
    background: #1a2332;
    height: 54px;
    display: flex;
    align-items: center;
    padding: 0 1.2rem;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 2px 8px rgba(0,0,0,0.25);
    gap: 0.2rem;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 6px 8px;
    border-radius: 7px;
    margin-right: 0.4rem;
    white-space: nowrap;
}
.nav-brand svg { color: #4ade80; flex-shrink: 0; }
.nav-brand:hover { background: rgba(255,255,255,0.06); }

/* Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8899aa;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 9px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.nav-link svg { flex-shrink: 0; }
.nav-link:hover { color: #e2e8f0; background: rgba(255,255,255,0.07); }
.nav-link.aktiv {
    color: white;
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.nav-spacer { flex: 1; }

.nav-user {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 8px;
    white-space: nowrap;
}
.nav-user svg { opacity: 0.7; }

.nav-logout {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.15s;
    white-space: nowrap;
    margin-left: 4px;
}
.nav-logout:hover { background: rgba(239,68,68,0.3); color: white; }

/* Hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #8899aa;
    padding: 6px;
    border-radius: 6px;
    margin-left: auto;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.07); color: white; }

/* Mobile Bottom Bar */
.mobile-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 58px;
    background: #1a2332;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 200;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}
.mobile-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 20%;
    float: left;
    height: 100%;
    text-decoration: none;
    color: #566778;
    transition: color 0.15s;
}
.mobile-bar-item small {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.mobile-bar-item.aktiv { color: #4ade80; }
.mobile-bar-item:hover { color: #94a3b8; }

/* Responsive */
@media (max-width: 900px) {
    .nav-user { display: none; }
}

@media (max-width: 768px) {
    .nav-hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 54px; left: 0; right: 0;
        background: #1a2332;
        flex-direction: column;
        align-items: stretch;
        padding: 6px;
        border-top: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        z-index: 199;
    }
    .nav-links.open { display: flex; }
    .nav-link { padding: 11px 14px; font-size: 0.9rem; }
    .nav-spacer { display: none; }
    .nav-user {
        display: flex;
        padding: 10px 14px;
        border-top: 1px solid rgba(255,255,255,0.06);
        margin-top: 4px;
    }
    .nav-logout { margin: 6px; padding: 10px 14px; justify-content: center; }
    .mobile-bar { display: flex; }
    main { padding-bottom: 72px !important; }
}


/* ── MAIN ───────────────────────────────────────────── */
main { padding: 2rem; max-width: 1200px; margin: 0 auto; }
main h2 { margin-bottom: 1.5rem; color: #2c3e50; }

/* ── DASHBOARD ──────────────────────────────────────── */
.dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.dashboard .card { text-align: center; text-decoration: none; color: #2c3e50; transition: transform 0.2s, box-shadow 0.2s; display: block; padding: 2rem 1rem; }
.dashboard .card:hover { transform: translateY(-4px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
.stat-zahl { font-size: 2.5rem; font-weight: bold; color: #27ae60; }
.stat-label { font-size: 1rem; margin-top: 0.5rem; }

/* ── AUSLASTUNG ─────────────────────────────────────── */
.auslastung-liste { display: flex; flex-direction: column; gap: 1rem; }
.auslastung-item { padding: 0.8rem; background: #f9f9f9; border-radius: 6px; }
.auslastung-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 6px; }
.auslastung-name { font-weight: bold; flex: 1; }
.auslastung-info { color: #888; font-size: 0.85rem; }
.auslastung-zahl { font-weight: bold; font-size: 0.9rem; }
.progress-bar { background: #e0e0e0; border-radius: 6px; height: 10px; overflow: hidden; }
.progress-fill { background: #27ae60; height: 100%; border-radius: 6px; transition: width 0.3s; }
.progress-fill.fast { background: #f39c12; }
.progress-fill.voll { background: #e74c3c; }
.link-klein { font-size: 0.8rem; color: #3498db; text-decoration: none; }
.link-klein:hover { text-decoration: underline; }
.gruen-text { color: #27ae60; font-weight: bold; }
.orange-text { color: #f39c12; font-weight: bold; }
.rot-text { color: #e74c3c; font-weight: bold; }

/* ── CARDS ──────────────────────────────────────────── */
.card { background: white; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.card h3 { margin-bottom: 1rem; color: #2c3e50; }
.card h4 { margin-bottom: 0.6rem; color: #555; font-size: 0.9rem; }

/* ── KURS CARD ──────────────────────────────────────── */
.kurs-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.5rem; }
.kurs-card-header h3 { margin-bottom: 0.2rem; }
.kurs-meta { color: #888; font-size: 0.85rem; }
.kurs-aktionen { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.teilnehmer-bereich { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #eee; }
.teilnehmer-liste { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.5rem; }
.teilnehmer-tag { background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 20px; padding: 4px 10px 4px 12px; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.tag-remove { background: none; border: none; color: #e74c3c; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0; font-weight: bold; }
.tag-remove:hover { color: #c0392b; }

/* ── WHATSAPP ZEILE ─────────────────────────────────── */
.whatsapp-zeile { display: flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; margin: 0.5rem 0; flex-wrap: wrap; }
.wa-label { color: #888; font-weight: 500; }
.wa-id { background: #f0f4f8; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; color: #2c3e50; }
.wa-badge { background: #dcf8c6; color: #128C7E; }
.btn-klein { background: none; border: 1px solid #ddd; border-radius: 4px; padding: 2px 8px; font-size: 0.8rem; cursor: pointer; color: #666; }
.btn-klein:hover { border-color: #27ae60; color: #27ae60; }

/* ── FORMS ──────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; font-weight: 500; }
input, select { padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; background: white; }
input:focus, select:focus { outline: none; border-color: #27ae60; }

/* ── TABLES ─────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th { background: #f4f6f9; padding: 10px 12px; text-align: left; font-size: 0.85rem; color: #666; text-transform: uppercase; }
td { padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafafa; }

/* ── BUTTONS ────────────────────────────────────────── */
.btn-primary { background: #27ae60; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 0.9rem; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: #219a52; }
.btn-danger { background: #e74c3c; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 0.9rem; }
.btn-danger:hover { background: #c0392b; }
.btn-secondary { background: #3498db; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 0.9rem; text-decoration: none; display: inline-block; }
.btn-secondary:hover { background: #2980b9; }

/* ── BADGES ─────────────────────────────────────────── */
.badge { padding: 3px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: bold; white-space: nowrap; }
.gruen  { background: #d5f5e3; color: #1e8449; }
.orange { background: #fef9e7; color: #d68910; }
.grau   { background: #eee;    color: #666; }
.rot    { background: #fde8e8; color: #c0392b; }

/* ── KURS AUSWAHL ───────────────────────────────────── */
.kurs-auswahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.kurs-btn { background: #f4f6f9; border: 2px solid #ddd; border-radius: 8px; padding: 1.2rem; text-decoration: none; color: #2c3e50; transition: all 0.2s; display: block; }
.kurs-btn:hover { border-color: #27ae60; background: #d5f5e3; }

/* ── SCHNELL ANWESENHEIT ────────────────────────────── */
body.schnell-body { background: #1a252f; min-height: 100vh; }
.schnell-header { background: #2c3e50; color: white; text-align: center; padding: 2rem; }
.schnell-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.schnell-header p { color: #aaa; }
.schnell-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; padding: 2rem; max-width: 1200px; margin: 0 auto; }
.schnell-karte { background: white; border-radius: 12px; padding: 1.5rem; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.schnell-hund { font-size: 2rem; font-weight: bold; color: #2c3e50; margin-bottom: 0.5rem; }
.schnell-guthaben { font-size: 0.9rem; color: #27ae60; margin-bottom: 1.2rem; font-weight: 500; }
.schnell-guthaben.wenig { color: #f39c12; }
.schnell-guthaben.leer { color: #e74c3c; }
.schnell-buttons { display: flex; gap: 0.8rem; justify-content: center; }
.schnell-btn-da { background: #27ae60; color: white; border: none; padding: 14px 24px; border-radius: 8px; cursor: pointer; font-size: 1.1rem; font-weight: bold; flex: 1; }
.schnell-btn-da:hover { background: #219a52; }
.schnell-btn-nicht { background: #e74c3c; color: white; border: none; padding: 14px 24px; border-radius: 8px; cursor: pointer; font-size: 1.1rem; font-weight: bold; flex: 1; }
.schnell-btn-nicht:hover { background: #c0392b; }
.schnell-fertig { grid-column: 1 / -1; text-align: center; color: white; padding: 4rem; }
.schnell-fertig h2 { font-size: 2rem; margin: 1rem 0 0.5rem; }

/* ── BOT SIMULATOR ──────────────────────────────────── */
.bot-info-banner {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #1e8449;
    font-size: 0.95rem;
}

.bot-leer {
    text-align: center;
    padding: 3rem;
    color: #888;
}
.bot-leer h3 { margin: 1rem 0 0.5rem; color: #555; }

.bot-zeitstrahl {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.bot-eintrag {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.bot-zeit {
    background: #2c3e50;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.bot-nachricht-container {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    overflow: hidden;
}

.bot-kanal-header {
    background: #f4f6f9;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
}

.bot-kanal-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}
.bot-kanal-badge.hauptkanal { background: #fef9e7; color: #d68910; }
.bot-kanal-badge.kurskanal  { background: #dcf8c6; color: #128C7E; }
.bot-kanal-badge.trainer    { background: #e8eaf6; color: #3949ab; }

.bot-kanal-name { font-size: 0.85rem; font-weight: 500; color: #555; }
.bot-gruppe { font-size: 0.8rem; color: #aaa; margin-left: auto; }

/* WhatsApp Bubble */
.whatsapp-fenster { background: #ece5dd; }

.whatsapp-header {
    background: #128C7E;
    color: white;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.whatsapp-avatar {
    width: 36px; height: 36px;
    background: #075E54;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}
.whatsapp-name { font-weight: bold; font-size: 0.9rem; }
.whatsapp-status { font-size: 0.75rem; opacity: 0.8; }

.whatsapp-body { padding: 1rem; }

.whatsapp-bubble {
    background: #dcf8c6;
    border-radius: 8px 8px 0 8px;
    padding: 0.8rem 1rem;
    max-width: 80%;
    margin-left: auto;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
}
.whatsapp-zeit {
    font-size: 0.7rem;
    color: #888;
    text-align: right;
    margin-top: 4px;
}

/* ── SONSTIGES ──────────────────────────────────────── */
.hinweis { padding: 10px 16px; border-radius: 6px; margin-top: 0.5rem; font-weight: 500; }
.hinweis.orange { background: #fef9e7; color: #d68910; border: 1px solid #f9ca24; }
.leer { color: #999; font-style: italic; padding: 1rem 0; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.aktionen { display: flex; gap: 6px; flex-wrap: wrap; }
.anwesenheit-buttons { display: flex; gap: 6px; }

/* ── MOBILE ─────────────────────────────────────────── */
@media (max-width: 600px) {
    nav { gap: 0.8rem; padding: 1rem; }
    main { padding: 1rem; }
    table { font-size: 0.82rem; }
    .form-grid { grid-template-columns: 1fr; }
    th, td { padding: 8px; }
    .anwesenheit-buttons { flex-direction: column; }
    .kurs-card-header { flex-direction: column; }
    .schnell-container { grid-template-columns: 1fr; padding: 1rem; }
    .auslastung-header { flex-wrap: wrap; }
    .bot-eintrag { flex-direction: column; gap: 0.5rem; }
    .bot-zeit { align-self: flex-start; }
    .whatsapp-bubble { max-width: 100%; }
}

/* ── WHATSAPP POLL / ABSTIMMUNG ─────────────────────── */
.whatsapp-poll {
    background: #dcf8c6;
    border-radius: 8px 8px 0 8px;
    padding: 0.8rem 1rem;
    max-width: 85%;
    margin-left: auto;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.poll-header {
    margin-bottom: 0.5rem;
}
.poll-icon-label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #128C7E;
    letter-spacing: 0.05em;
}
.poll-frage {
    font-weight: bold;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}
.poll-optionen {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.poll-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(18,140,126,0.3);
    border-radius: 20px;
    padding: 8px 14px;
    cursor: default;
    font-size: 0.9rem;
    color: #1a1a1a;
    transition: background 0.15s;
}
.poll-option:hover {
    background: rgba(255,255,255,0.95);
}
.poll-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #128C7E;
    border-radius: 50%;
    flex-shrink: 0;
}
.poll-meta {
    font-size: 0.72rem;
    color: #888;
    text-align: right;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 0.4rem;
    margin-top: 0.3rem;
}

.bot-legende {
    background: white;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    color: #666;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.trainer-bubble {
    background: #e8eaf6 !important;
    font-family: monospace;
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
}

/* ── KURS AENDERUNGEN ───────────────────────────────── */
.aenderung-bereich {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.aenderung-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}
.aenderung-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.5rem;
}
.aenderung-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    border: 1px solid;
}
.aenderung-absage     { background: #fde8e8; border-color: #f5c6cb; color: #c0392b; }
.aenderung-verschiebung { background: #fef9e7; border-color: #f9ca24; color: #d68910; }
.aenderung-ortwechsel { background: #e8f4fd; border-color: #bee5eb; color: #1a6a9a; }
.aenderung-datum { font-weight: bold; }
.aenderung-typ-label { }
.aenderung-grund { color: #888; font-style: italic; }

/* Schnell-Anwesenheit Aenderungshinweis */
.schnell-aenderung {
    margin: 0.8rem auto;
    max-width: 600px;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
}
.schnell-aenderung-absage     { background: #e74c3c; color: white; }
.schnell-aenderung-verschiebung { background: #f39c12; color: white; }
.schnell-aenderung-ortwechsel { background: #3498db; color: white; }

/* Bot Absage/Verschiebung Bubbles */
.absage-bubble {
    background: #fde8e8 !important;
    border: 1px solid #f5c6cb;
}
.hinweis-bubble {
    background: #fef9e7 !important;
    border: 1px solid #f9ca24;
}
.bot-kanal-badge.absage      { background: #fde8e8; color: #c0392b; }
.bot-kanal-badge.verschiebung { background: #fef9e7; color: #d68910; }
.bot-kanal-badge.ortwechsel  { background: #e8f4fd; color: #1a6a9a; }
.poll-aenderung-hinweis {
    background: #fef9e7;
    border: 1px solid #f9ca24;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.82rem;
    color: #d68910;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

/* ── WOCHENÜBERSICHT ────────────────────────────────── */
.wochen-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}
.wochen-tag {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    min-height: 120px;
}
.wochen-tag-heute {
    border-color: #27ae60;
    background: #f0faf5;
    box-shadow: 0 0 0 2px #27ae6033;
}
.wochen-tag-header {
    background: #2c3e50;
    color: white;
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wochen-tag-heute .wochen-tag-header { background: #27ae60; }
.wochen-wochentag { font-weight: bold; font-size: 0.9rem; }
.wochen-datum { font-size: 0.75rem; opacity: 0.8; }
.wochen-kurs {
    display: block;
    margin: 4px;
    padding: 6px 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.15s;
    font-size: 0.82rem;
}
.wochen-kurs:hover { border-color: #27ae60; background: #f0faf5; }
.wochen-kurs-absage { background: #fde8e8 !important; border-color: #f5c6cb !important; opacity: 0.7; }
.wochen-kurs-hinweis { background: #fef9e7 !important; border-color: #f9ca24 !important; }
.wochen-kurs-name { font-weight: bold; }
.wochen-kurs-meta { color: #888; font-size: 0.75rem; }
.wochen-kurs-auslastung { display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.wochen-bar { flex: 1; height: 4px; background: #e0e0e0; border-radius: 2px; overflow: hidden; }
.wochen-bar-fill { height: 100%; background: #27ae60; border-radius: 2px; }
.wochen-bar-fill.voll { background: #e74c3c; }
.wochen-kurs-auslastung span { font-size: 0.7rem; color: #888; white-space: nowrap; }
.wochen-klassen { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 3px; }
.wochen-leer { padding: 8px; font-size: 0.75rem; color: #ccc; text-align: center; }

/* ── KLASSEN SYSTEM ─────────────────────────────────── */
.klasse-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.klasse-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.klassen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
}
.klassen-karte {
    padding: 0.8rem 1rem;
    background: #fafafa;
    border-radius: 8px;
    border-left: 4px solid;
}
.klassen-kuerzel { font-size: 1.4rem; font-weight: bold; }
.klassen-label { font-size: 0.8rem; color: #666; margin: 2px 0; }
.klassen-zahl { font-size: 1.6rem; font-weight: bold; color: #2c3e50; }

.klassen-legende-card { background: #f9f9f9; }
.klassen-legende { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.klassen-legende-gruppe { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.klassen-checkboxen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 4px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
}
.klassen-checkbox-label { cursor: pointer; }

.klasse-vorschau {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #1e8449;
    margin-bottom: 0.8rem;
}

.kunden-filter {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #f9f9f9;
    border-radius: 6px;
}

@media (max-width: 900px) {
    .wochen-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
    .wochen-grid { grid-template-columns: repeat(2, 1fr); }
    .klassen-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── KUNDEN DETAIL ──────────────────────────────────── */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.detail-meta { color: #888; font-size: 0.85rem; margin-top: 4px; display: flex; gap: 1rem; flex-wrap: wrap; }
.detail-guthaben { text-align: center; flex-shrink: 0; }
.guthaben-zahl { font-size: 3rem; font-weight: 800; line-height: 1; }
.guthaben-label { font-size: 0.8rem; color: #888; margin-top: 2px; }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.detail-col { display: flex; flex-direction: column; gap: 1.5rem; }

.hunde-liste { display: flex; flex-direction: column; gap: 0.6rem; }
.hund-karte { background: #f9f9f9; border-radius: 8px; padding: 0.8rem 1rem; }
.hund-header { display: flex; align-items: center; gap: 0.5rem; }
.hund-name { font-weight: bold; font-size: 1rem; flex: 1; }
.hund-geschlecht { font-size: 1.1rem; }
.hund-meta { font-size: 0.8rem; color: #888; margin-top: 3px; }

/* ── KUNDEN KARTEN ──────────────────────────────────── */
.kunden-karten {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.8rem;
}
.kunden-karte {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.15s;
    display: block;
}
.kunden-karte:hover { border-color: #27ae60; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.kunden-karte-header { display: flex; justify-content: space-between; align-items: flex-start; }
.kunden-name { font-weight: bold; font-size: 0.95rem; }
.kunden-tel { font-size: 0.78rem; color: #888; margin-top: 2px; }
.guthaben-badge { font-size: 0.75rem; font-weight: bold; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }
.guthaben-badge.gruen { background: #d5f5e3; color: #1e8449; }
.guthaben-badge.orange { background: #fef9e7; color: #d68910; }
.guthaben-badge.rot { background: #fde8e8; color: #c0392b; }
.hunde-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.hund-chip { display: inline-flex; align-items: center; gap: 4px; background: #e8f5e9; border-radius: 12px; padding: 2px 8px; font-size: 0.78rem; }
.klasse-dot-mini { background: #999; color: white; border-radius: 8px; padding: 1px 5px; font-size: 0.65rem; font-weight: bold; }
.kunden-notiz { font-size: 0.75rem; color: #aaa; margin-top: 5px; font-style: italic; border-top: 1px solid #f0f0f0; padding-top: 4px; }

@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-header { flex-direction: column; }
}
