/* ================================================================
   pforte-dashboard.css  —  Pforte.de User-Bereich
   Top-Navigation, zentriert, max-width 900px
   Warm, ruhig, professionell — optimiert für ältere User
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600&display=swap');

/* ── VARIABLEN ───────────────────────────────────────────────── */
:root {
    --text-primary:         #1e1a16;
    --text-secondary:       #4a4438;
    --text-muted:           #8a8070;
    --bg-body:              #f5f2ee;
    --bg-card:              #ffffff;
    --bg-header:            #2a2218;
    --bg-secondary:         #ede8e0;

    --accent-main:          #5c7a6e;
    --accent-light:         #7a9a8e;
    --accent-warm:          #c4956a;
    --accent-dark:          #3d5248;

    --status-pruefung:      #d4920a;
    --status-pruefung-bg:   #fff8e6;
    --status-frei:          #3a7a52;
    --status-frei-bg:       #e8f5ee;
    --status-bearbeitung:   #2563a8;
    --status-bearbeitung-bg:#e8f0fc;
    --status-gesperrt:      #c0392b;
    --status-gesperrt-bg:   #fdecea;

    --border:               #e0d8ce;
    --border-focus:         #5c7a6e;
    --shadow-sm:            0 2px 8px rgba(30,26,22,0.07);
    --shadow-md:            0 4px 20px rgba(30,26,22,0.10);
    --shadow-lg:            0 12px 40px rgba(30,26,22,0.14);
    --radius:               12px;
    --radius-sm:            8px;
    --transition:           0.25s ease;

    --content-max:          900px;
    --header-h:             64px;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ================================================================
   HEADER / TOP-NAVIGATION
   ================================================================ */
.site-header {
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: var(--content-max);
    max-width: 900px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 24px;
}

/* ── LOGO ────────────────────────────────────────────────────── */
.header-logo {
    font-family: 'Newsreader', serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-logo span { color: var(--accent-warm); }

/* ── NAVIGATION ──────────────────────────────────────────────── */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.nav-link.active {
    background: var(--accent-main);
    color: white;
}

.nav-badge {
    background: var(--accent-warm);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ── USER BEREICH (rechts) ───────────────────────────────────── */
.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.user-name-header {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.btn-logout:hover {
    background: rgba(255,255,255,0.14);
    color: white;
}

/* ── BURGER (Mobile) ─────────────────────────────────────────── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ──────────────────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30,26,22,0.6);
    z-index: 99;
    backdrop-filter: blur(2px);
}

.mobile-nav.open { display: block; }

.mobile-nav-menu {
    background: var(--bg-header);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav .nav-link {
    padding: 12px 16px;
    font-size: 15px;
}

.mobile-nav-user {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-header);
}

.mobile-nav-user .user-name-header {
    font-size: 15px;
    color: white;
    font-weight: 600;
}

.mobile-nav-user .user-email {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* ================================================================
   HAUPT-CONTENT
   ================================================================ */
.page-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 45px 24px;
}

/* ── PAGE HEADER ─────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.page-header h1 {
    font-family: 'Newsreader', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-header p {
    font-size: 15px;
    color: var(--text-muted);
}

/* ── BEGRÜSSUNG ──────────────────────────────────────────────── */
.greeting {
    margin-bottom: 28px;
}

.greeting h1 {
    font-family: 'Newsreader', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.greeting p {
    font-size: 15px;
    color: var(--text-muted);
}

/* ── CARDS ───────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.card-body { padding: 24px 28px; }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title {
    font-family: 'Newsreader', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-link {
    font-size: 13px;
    color: var(--accent-main);
    font-weight: 500;
}

.card-link:hover { text-decoration: underline; }

/* ── STATS GRID ──────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.stat-value {
    font-family: 'Newsreader', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card.stat-highlight {
    background: var(--accent-main);
    border-color: var(--accent-main);
}

.stat-card.stat-highlight .stat-value,
.stat-card.stat-highlight .stat-label,
.stat-card.stat-highlight .stat-icon { color: white; }

/* ── ZWEI-SPALTEN GRID ───────────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── NACHRUF LISTE (Dashboard) ───────────────────────────────── */
.nachruf-liste {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nachruf-liste-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
}

.nachruf-liste-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.nachruf-liste-typ {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── AKTIVITAETS LISTE ───────────────────────────────────────── */
.aktivitaet-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aktivitaet-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.aktivitaet-icon { font-size: 20px; flex-shrink: 0; }

.aktivitaet-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.aktivitaet-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ================================================================
   STATUS BADGES
   ================================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pruefung {
    background: var(--status-pruefung-bg);
    color: var(--status-pruefung);
    border: 1.5px solid var(--status-pruefung);
}

.status-frei {
    background: var(--status-frei-bg);
    color: var(--status-frei);
    border: 1.5px solid var(--status-frei);
}

.status-bearbeitung {
    background: var(--status-bearbeitung-bg);
    color: var(--status-bearbeitung);
    border: 1.5px solid var(--status-bearbeitung);
}

.status-gesperrt {
    background: var(--status-gesperrt-bg);
    color: var(--status-gesperrt);
    border: 1.5px solid var(--status-gesperrt);
}

/* ================================================================
   NACHRUFE TABELLE
   ================================================================ */
.nachrufe-table {
    width: 100%;
    border-collapse: collapse;
}

.nachrufe-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 10px 14px;
    border-bottom: 2px solid var(--border);
    background: var(--bg-body);
}

.nachrufe-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}

.nachrufe-table tr:last-child td { border-bottom: none; }
.nachrufe-table tr:hover td { background: var(--bg-body); }

.nachruf-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.nachruf-dates {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Newsreader', serif;
    font-style: italic;
}

.nachruf-sektion {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.nachruf-sektion.sektion-motorrad  { background: #fdf0e8; color: #a05820; }
.nachruf-sektion.sektion-pfotenspur { background: #f0ece4; color: #7a5c3a; }
.nachruf-sektion.sektion-normal    { background: #eaf0ec; color: #3d6050; }

.table-actions { display: flex; gap: 8px; align-items: center; }

/* ================================================================
   FILTER BAR
   ================================================================ */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-chip {
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-chip:hover { border-color: var(--accent-main); color: var(--accent-main); }
.filter-chip.active { background: var(--accent-main); border-color: var(--accent-main); color: white; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    background: var(--accent-main);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(92,122,110,0.3);
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(92,122,110,0.35);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary-full { width: 100%; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent-main);
    color: var(--accent-main);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    background: transparent;
    color: var(--status-gesperrt);
    border: 2px solid var(--status-gesperrt);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-danger:hover {
    background: var(--status-gesperrt);
    color: white;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-icon-approve { background: var(--status-frei-bg); color: var(--status-frei); }
.btn-icon-approve:hover { background: var(--status-frei); color: white; }

.btn-icon-reject { background: var(--status-gesperrt-bg); color: var(--status-gesperrt); }
.btn-icon-reject:hover { background: var(--status-gesperrt); color: white; }

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ================================================================
   FORM ELEMENTE
   ================================================================ */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-body);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(92,122,110,0.12);
    background: white;
}

.form-input::placeholder { color: var(--text-muted); }


.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


.form-textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-body);
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: border-color var(--transition), box-shadow var(--transition);
    line-height: 1.6;
}

.form-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(92,122,110,0.12);
    background: white;
}

.form-select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-body);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8070' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color var(--transition);
}

.form-select:focus { border-color: var(--border-focus); }

.form-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-error {
    font-size: 13px;
    color: var(--status-gesperrt);
    margin-top: 5px;
    display: none;
}

.form-error.show { display: block; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

/* ── FORMULAR SEKTION ────────────────────────────────────────── */
.form-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px 28px;
    margin-bottom: 16px;
}

.form-section-title {
    font-family: 'Newsreader', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}



/* ── SPITZNAME + POSITION GRID ──────────────────────────────── */
.spitzname-grid {
    display: grid;
    grid-template-columns: 56% 40%;
    gap: 12px;
    align-items: end;
    width: 100%;        /* ← das fehlte */
    box-sizing: border-box;
}

@media (max-width: 600px)
{
    .spitzname-grid {
        grid-template-columns: 1fr;
    }
}





/* ── FOTO UPLOAD ─────────────────────────────────────────────── */
.foto-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-body);
}

.foto-upload:hover {
    border-color: var(--accent-main);
    background: #eef4f1;
}

.foto-upload-icon { font-size: 36px; margin-bottom: 10px; }
.foto-upload-text { font-size: 14px; color: var(--text-muted); }
.foto-upload-text strong { color: var(--accent-main); }

/* ── CHECKBOX ────────────────────────────────────────────────── */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--accent-main);
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-row label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    cursor: pointer;
}

.checkbox-row label a {
    color: var(--accent-main);
    text-decoration: underline;
}

/* ── TOGGLE ──────────────────────────────────────────────────── */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.toggle-row:last-child { border-bottom: none; }

.toggle-info { flex: 1; }

.toggle-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.toggle-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle input:checked + .toggle-slider { background: var(--accent-main); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ================================================================
   SEKTIONS AUSWAHL (Nachruf erstellen)
   ================================================================ */
.sektions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.sektions-karte {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-card);
}

.sektions-karte:hover {
    border-color: var(--accent-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sektions-karte.selected {
    border-color: var(--accent-main);
    background: #eef4f1;
}

.sektions-icon { font-size: 34px; margin-bottom: 10px; display: block; }
.sektions-name { font-weight: 700; font-size: 16px; color: var(--text-primary); margin-bottom: 4px; }
.sektions-desc { font-size: 14px; color: var(--text-muted); line-height: 1.4; }

/* ── TIERART AUSWAHL (Pfotenspur) ────────────────────────────── */
.tierart-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.tierart-karte {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-card);
}

.tierart-karte:hover { border-color: var(--accent-main); }
.tierart-karte.selected { border-color: var(--accent-main); background: #eef4f1; }
.tierart-icon { font-size: 28px; margin-bottom: 6px; display: block; }
.tierart-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* ================================================================
   RECHTLICHER HINWEIS
   ================================================================ */
.rechtlich-box {
    background: #fff8e6;
    border: 1.5px solid var(--status-pruefung);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.rechtlich-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--status-pruefung);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rechtlich-box p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 6px;
}

.rechtlich-box p:last-child { margin-bottom: 0; }

/* ── WARN BANNER ─────────────────────────────────────────────── */
.warn-banner {
    background: var(--status-bearbeitung-bg);
    border: 1.5px solid var(--status-bearbeitung);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--status-bearbeitung);
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* ── WARN BANNER ─────────────────────────────────────────────── */
.warn-banner2 {
    background: var(--status-bearbeitung-bg);
    border: 1.5px solid var(--status-bearbeitung);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--status-bearbeitung);
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.6s ease;
}


/* ── INFO BOX ────────────────────────────────────────────────── */
.info-box {
    background: var(--status-pruefung-bg);
    border: 1.5px solid var(--status-pruefung);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-box strong { color: var(--status-pruefung); }

/* ================================================================
   OVERLAY / MODAL
   ================================================================ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(30,26,22,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.overlay.show .modal { transform: translateY(0); }

.modal-header {
    padding: 24px 28px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-header h2 {
    font-family: 'Newsreader', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: var(--bg-body);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
    cursor: pointer;
}

.modal-close:hover { background: var(--border); color: var(--text-primary); }

.modal-body { padding: 20px 28px; }

.modal-footer {
    padding: 16px 28px 24px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
}

/* ================================================================
   KONDOLENZEN
   ================================================================ */
.kondo-item {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    margin-bottom: 10px;
    transition: all var(--transition);
}

.kondo-item.gemeldet {
    border-color: var(--status-gesperrt);
    background: var(--status-gesperrt-bg);
}

.kondo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.kondo-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kondo-name { font-weight: 600; font-size: 14px; }
.kondo-datum { font-size: 12px; color: var(--text-muted); }
.kondo-nachruf { font-size: 11px; color: var(--accent-main); font-weight: 500; background: #eef4f1; padding: 2px 8px; border-radius: 4px; }

.kondo-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.kondo-actions { display: flex; gap: 8px; }

/* ================================================================
   KONTO SEITE
   ================================================================ */
.konto-avatar-box {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.konto-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.konto-avatar-info h3 {
    font-family: 'Newsreader', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.konto-avatar-info p {
    font-size: 14px;
    color: var(--text-muted);
}

.danger-zone {
    background: var(--status-gesperrt-bg);
    border: 1.5px solid var(--status-gesperrt);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.danger-zone h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--status-gesperrt);
    margin-bottom: 6px;
}

.danger-zone p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

/* ================================================================
   LOGIN SEITEN
   ================================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0ebe3, #e8e0d5, #eaede8);
    padding: 24px;
}

.login-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 48px 44px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-logo {
    font-family: 'Newsreader', serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-logo span { color: var(--accent-main); }

.login-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.login-title {
    font-family: 'Newsreader', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

.login-sub strong { color: var(--accent-main); }

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-footer {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.login-footer a { color: var(--accent-main); font-weight: 500; }

/* ── CODE EINGABE ────────────────────────────────────────────── */
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.code-digit {
    width: 52px;
    height: 64px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 26px;
    font-weight: 700;
    font-family: 'Newsreader', serif;
    text-align: center;
    color: var(--text-primary);
    background: var(--bg-body);
    outline: none;
    transition: all var(--transition);
}

.code-digit:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(92,122,110,0.12);
    background: white;
}

.code-digit.filled { border-color: var(--accent-main); background: white; }

.code-timer {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.code-timer span { color: var(--accent-main); font-weight: 600; }


@media (max-width: 400px) {
    .code-digit {
        width: 32px;
        height: 46px;
        font-size: 18px;
        padding: 8px 2px;
    }

    .code-inputs {
        gap: 6px;
    }
}

.code-inputs {
    max-width: 100%;
    overflow: hidden;
}

.code-digit {
    flex: 1;
    min-width: 0;
}



/* ================================================================
   LEERE STATES
   ================================================================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-icon { font-size: 44px; margin-bottom: 14px; }

.empty-state h3 {
    font-family: 'Newsreader', serif;
    font-size: 19px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ================================================================
   TOAST
   ================================================================ */
.dash-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: var(--bg-header);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.dash-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-50%);
}






/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .sektions-grid { grid-template-columns: repeat(3, 1fr); }
    .form-row-3 { grid-template-columns: 1fr 1fr; }

    .header-nav { display: none; }
    .header-user { display: none; }
    .burger { display: flex; }
}

@media (max-width: 600px) {
    .login-box { padding: 15px 15px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sektions-grid { grid-template-columns: 1fr; }
    .tierart-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; }
    .page-content { padding: 40px 16px; }
    .modal { border-radius: 14px; }
    .modal-body, .modal-header, .modal-footer { padding-left: 18px; padding-right: 18px; }
    .code-digit { width: 42px; height: 54px; font-size: 22px; }
    .nachrufe-table { font-size: 12px; }
    .nachrufe-table th, .nachrufe-table td { padding: 10px 10px; }
    .table-actions { flex-direction: column; gap: 4px; }
}

/* ================================================================
   ZUSÄTZLICHE HILFSKLASSEN
   ================================================================ */

/* Login */
.login-icon { font-size: 44px; margin-bottom: 14px; }
.login-sub-small { margin-bottom: 10px; font-size: 14px; color: var(--text-secondary); }
.btn-secondary-full { width: 100%; display: flex; justify-content: center; }

/* Form links-ausgerichtet (in Login-Box) */
.form-row-left { text-align: left; }
.form-group-left { text-align: left; }

/* Card margin */
.card-mb { margin-bottom: 16px; }

/* Status Legende */
.status-legende {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 20px;
}
.status-legende-label { font-size: 13px; color: var(--text-muted); }

/* Tabelle Hilfselemente */
.table-scroll { overflow-x: auto; }
.td-muted { font-size: 13px; color: var(--text-muted); }
.kondo-neu { font-size: 13px; color: var(--accent-warm); font-weight: 600; }

/* Tabellen Buttons */
.btn-icon-view { background: var(--bg-body); color: var(--text-secondary); }
.btn-icon-view:hover { background: var(--border); }
.btn-icon-edit { background: var(--status-bearbeitung-bg); color: var(--status-bearbeitung); }
.btn-icon-edit:hover { background: var(--status-bearbeitung); color: white; }

/* Info Box mit Abstand */
.info-box-mt { margin-top: 16px; }

/* Kondolenzen */
.section-title {
    font-family: 'Newsreader', serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
}
.section-title-warn { color: var(--status-pruefung); }
.section-title-ok   { color: var(--status-frei); }

.section-divider { height: 1px; background: var(--border); margin: 28px 0; }

.kondo-item-freigegeben { opacity: 0.75; }
.kondo-item-gemeldet { border-color: var(--status-gesperrt); background: var(--status-gesperrt-bg); }
.kondo-text-gemeldet { color: var(--status-gesperrt); }
.btn-icon-sm { font-size: 12px; }

/* Textarea groß */
.form-textarea-lg { min-height: 180px; }

/* Empty State hidden */
.empty-state-hidden { display: none; }

/* ================================================================
   NACHRUF CARDS (mit Foto)
   ================================================================ */
.nachruf-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nachruf-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.nachruf-card:hover { box-shadow: var(--shadow-md); }

/* Foto links */
.nachruf-card-foto {
    width: 125px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nachruf-card-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Body rechts */
.nachruf-card-body {
    flex: 1;
    padding: 14px 16px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Name + Status */
.nachruf-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.nachruf-card-left { flex: 1; min-width: 0; }

.nachruf-card-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nachruf-card-dates {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'Newsreader', serif;
    font-style: italic;
}

/* Meta-Zeile */
.nachruf-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nachruf-card-info {
    font-size: 13px;
    color: var(--text-muted);
}

.nachruf-card-info-muted { opacity: 0.7; }

.nachruf-card-kondo {
    font-size: 13px;
    color: var(--text-muted);
}

/* Aktions-Buttons — kompakt */
.nachruf-card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-card-view {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    border: 1.5px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-card-view:hover {
    background: var(--border);
}

.btn-card-edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent-main);
    color: white;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-card-edit:hover { background: var(--accent-dark); }

/* Mobile */
@media (max-width: 600px) {
    .nachruf-card-foto { width: 75px; }
    .nachruf-card-body { padding: 12px 14px; }
    .nachruf-card-name { font-size: 14px; }
    .nachruf-card-top { flex-wrap: wrap; gap: 6px; }
}

/* ================================================================
   STATUS BADGE — Mobile: nur Punkt, kein Text
   In Cards: .badge-text ausblenden — Legende bleibt sichtbar
   ================================================================ */
@media (max-width: 600px) {
    .nachruf-card .badge-text {
        display: none;
    }

    .nachruf-card .status-badge {
        padding: 3px 5px;
        gap: 0;
        flex-shrink: 0;
    }
}








        /* CAPTCHA */
        .captcha-group {
            background: #F5F5F5;
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 25px;
        }
        
        .captcha-question {
            font-weight: 600;
            margin-bottom: 10px;
            color: #333;
            font-size: 0.9rem;
        }
        
        .captcha-display {
            background: white;
            padding: 10px;
            border-radius: 8px;
            text-align: center;
            margin-bottom: 10px;
            border: 2px solid #E0E0E0;
        }
        
        .captcha-text {
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: 6px;
            color: #1a237e;
            font-family: monospace;
            user-select: none;
        }
        
        .captcha-refresh {
            background: none;
            border: none;
            color: #1a237e;
            cursor: pointer;
            font-size: 0.8rem;
            padding: 3px 8px;
            text-decoration: underline;
            margin-bottom: 10px;
        }
        
        .captcha-refresh:hover {
            color: #0d1642;
        }
        
        .captcha-input {
            width: 100%;
            padding: 10px 15px;
            border: 2px solid #E0E0E0;
            border-radius: 8px;
            font-size: 0.95rem;
            box-sizing: border-box;
        }
        
        .captcha-input:focus {
            outline: none;
            border-color: #1a237e;
        }
        





        
        
        /* HINTS */
        .verify-hints {
            background: #F5F5F5;
            padding: 20px;
            border-radius: 12px;
            margin-top: 25px;
            text-align: left;
        }
        
        .hint-title {
            font-weight: 700;
            color: #333;
            margin-bottom: 12px;
            font-size: 0.95rem;
        }
        
        .hint-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .hint-list li {
            padding: 8px 0;
            color: #666;
            font-size: 0.9rem;
            line-height: 1.6;
        }
        
        .hint-list li i {
            color: #FF9800;
            margin-right: 8px;
        }
        
        .contact-link {
            color: #1a237e;
            text-decoration: underline;
            font-weight: 600;
        }
        
        .contact-link:hover {
            color: #0d1642;
        }

                

        
        /* ERROR MESSAGE */
        .error-message {
            background: #f44336;
            color: white;
            padding: 15px 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            display: none;
            align-items: center;
            gap: 12px;
            box-shadow: 0 4px 15px rgba(244,67,54,0.3);
        }
        
        .error-message.show {
            display: flex;
        }
        
        .error-message i {
            font-size: 1.5rem;
        }
        
        .error-message-text {
            flex: 1;
            line-height: 1.5;
        }
        

        #submit-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }






.login-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}

.login-tab {
    padding: 8px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #5c7a6e;
    background: #fff;
    border: 2px solid #5c7a6e;
    transition: background 0.2s, color 0.2s;
}

.login-tab:first-child  { border-radius: 6px 0 0 6px; }
.login-tab:last-child   { border-radius: 0 6px 6px 0; }

.login-tab.active,
.login-tab:hover {
    background: #5c7a6e;
    color: #fff;
}

.login-tabs-oder {
    position: relative;
    padding: 0 12px;
    font-size: 0.8rem;
    color: #999;
}

.login-tabs-oder::before,
.login-tabs-oder::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: #ccc;
}

.login-tabs-oder::before { right: 100%; margin-right: -10px; }
.login-tabs-oder::after  { left:  100%; margin-left:  -10px; }

@media (max-width: 600px) {
    .login-tab {
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    .login-tabs-oder {
        padding: 0 8px;
        font-size: 0.7rem;
    }

    .login-tabs-oder::before,
    .login-tabs-oder::after {
        width: 12px;
    }
}










.verify-hinweis {
    background: #fff8e1;
    border: 2px solid #d4920a;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0 24px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(212, 146, 10, 0.15);
}

.verify-hinweis-text {
    font-size: 0.95rem;
    color: #7a5500;
    line-height: 1.6;
}

.verify-hinweis-text strong {
    font-size: 1.3rem;
    color: #d4920a;
    display: block;
    margin-bottom: 6px;
    animation: hinweis-pulse 1.5s ease-in-out infinite;
}

@keyframes hinweis-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

.verify-hinweis.noshow {
    display: none;
}


@media (max-width: 600px) {
    .verify-hinweis { padding: 14px; }
    .verify-hinweis-text strong { font-size: 1.15rem; }
    .verify-hinweis-text { font-size: 0.88rem; }
}

























#debug-overlay {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(30, 30, 30, 0.95);
    color: #a8ff78;
    font-family: monospace;
    font-size: 0.78rem;
    border-radius: 8px;
    padding: 16px;
    z-index: 99999;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

#debug-overlay h3 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 0.9rem;
}

.debug-section {
    margin-bottom: 12px;
}

.debug-section strong {
    color: #ffd700;
    display: block;
    margin-bottom: 4px;
}

.debug-section pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 4px;
}

.debug-close {
    float: right;
    cursor: pointer;
    color: #ff6b6b;
    font-size: 1rem;
    line-height: 1;
}







.warn-banner--success {
    background: var(--status-ok-bg);
    border-color: var(--status-ok);
    color: var(--status-ok);
}

.warn-banner--error {
    background: var(--status-fehler-bg);
    border-color: var(--status-fehler);
    color: var(--status-fehler);
}






/* ── HINWEIS PRÜFUNG ────────────────────────────────────────── */
.hinweis-pruefung {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--status-bearbeitung-bg);
    border: 1.5px solid var(--status-bearbeitung);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 28px;
    color: var(--status-bearbeitung);
}

.hinweis-pruefung-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.hinweis-pruefung-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.hinweis-pruefung-text p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}


.hinweis-pruefung--erfolg {
    background: var(--status-ok-bg);
    border-color: var(--status-ok);
    color: var(--status-ok);
}

.hinweis-schritte {
    margin: 8px 0 10px 18px;
    padding: 0;
    font-size: 13px;
    line-height: 1.8;
}








/* ── MSG BOXES ──────────────────────────────────────────────── */
.msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1.5px solid;
}

.msg-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.msg-text {
    flex: 1;
    line-height: 1.5;
}

/* ── Erfolg ─────────────────────────────────────────────────── */
.msg--erfolg {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #2e7d32;
}

/* ── Fehler ─────────────────────────────────────────────────── */
.msg--fehler {
    background: #ffeaea;
    border-color: #c0392b;
    color: #c0392b;
}

/* ── Info ───────────────────────────────────────────────────── */
.msg--info {
    background: #e8f0fc;
    border-color: #2563a8;
    color: #2563a8;
}



/* ── TEXTAREA COUNTER ───────────────────────────────────────── */
.textarea-counter {
    font-size: 12px;
    color: #8a8070;
    text-align: right;
    margin-top: 4px;
}

.textarea-counter.zu-kurz  { color: #c0392b; }
.textarea-counter.ok       { color: #2e7d32; }
.textarea-counter.fast-voll { color: #e67e22; }
.textarea-counter.voll      { color: #c0392b; }





/* ── TIER KARTEN ────────────────────────────────────────────── */
.tier-karten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.tier-karte {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1.5px solid #ddd8d0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #faf9f7;
}

.tier-karte:hover {
    border-color: #5c7a6e;
    background: #f0f4f2;
}

.tier-karte.selected {
    border-color: #5c7a6e;
    background: #f0f4f2;
    box-shadow: 0 0 0 2px #5c7a6e;
}

.tier-karte-emoji {
    font-size: 28px;
    line-height: 1;
}

.tier-karte-name {
    font-size: 11px;
    color: #4a4438;
    text-align: center;
    font-weight: 500;
}

/* ── TIER GRUPPEN KARTEN ────────────────────────────────────── */
.tier-gruppen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.tier-gruppe-karte {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border: 1.5px solid #ddd8d0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #faf9f7;
}

.tier-gruppe-karte:hover {
    border-color: #5c7a6e;
    background: #f0f4f2;
}

.tier-gruppe-karte .tier-karte-emoji {
    font-size: 32px;
}

.tier-gruppe-karte .tier-karte-name {
    font-size: 12px;
    font-weight: 600;
    color: #1e1a16;
    text-align: center;
}

/* ── ZURÜCK BUTTON ──────────────────────────────────────────── */
.tier-zurueck {
    display: none;
    margin-bottom: 12px;
    padding: 8px 14px;
    background: none;
    border: 1.5px solid #ddd8d0;
    border-radius: 8px;
    font-size: 13px;
    color: #4a4438;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.tier-zurueck:hover {
    border-color: #5c7a6e;
    color: #5c7a6e;
}



.promo-bar {
    background: #f0ede8;
    color: #1e1a16;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.promo-bar button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.promo-bar a {
    color: #2a2218;
    font-weight: 600;
}

/* ── PROMO BAR — Desktop / Mobile ───────────────────────────── */

/* Desktop Bar — nur ab 768px sichtbar */
.promo-bar-desktop {
    display: none;
}

/* Mobile Bar — nur unter 768px sichtbar */
.promo-bar-mobile {
    display: block;
}

@media (min-width: 768px)
{
    .promo-bar-desktop {
        display: block;
    }

    .promo-bar-mobile {
        display: none;
    }
}















/* ── KOORDINATEN PICKER ───────────────────────────────────── */
.koord-group { margin-top: -8px; }

.koord-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: none;
    border: 1.5px solid var(--accent-main, #8b3a3a);
    border-radius: 6px;
    color: var(--accent-main, #8b3a3a);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.koord-btn:hover {
    background: var(--accent-main, #8b3a3a);
    color: #fff;
}

.koord-status {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
    color: #5c7a6e;
    vertical-align: middle;
}

/* Overlay */
.koord-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.koord-overlay.aktiv { display: flex; }

/* Modal */
.koord-modal {
    background: #fff;
    border-radius: 12px;
    width: min(680px, 95vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.koord-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e4e0da;
    font-size: 15px;
    font-weight: 600;
    color: #2a2a2a;
}
.koord-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 2px 6px;
}
.koord-close:hover { color: #2a2a2a; }

.koord-suche-wrap {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #e4e0da;
}
.koord-suche {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid #e4e0da;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.koord-suche:focus { outline: none; border-color: #8b3a3a; }
.koord-suche-btn {
    padding: 8px 16px;
    background: #8b3a3a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.koord-suche-btn:hover { opacity: 0.88; }

.koord-hinweis {
    font-size: 12px;
    color: #888;
    padding: 6px 16px;
    text-align: center;
}

#koord-map {
    flex: 1;
    min-height: 340px;
}

.koord-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #e4e0da;
    gap: 12px;
}
.koord-coords {
    font-size: 12px;
    color: #5a5a5a;
    font-family: monospace;
}
.koord-modal-btns { display: flex; gap: 8px; }

.koord-btn-abbrechen {
    padding: 8px 18px;
    background: none;
    border: 1.5px solid #e4e0da;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    color: #5a5a5a;
}
.koord-btn-abbrechen:hover { border-color: #999; }

.koord-btn-speichern {
    padding: 8px 18px;
    background: #5c7a6e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.koord-btn-speichern:disabled { opacity: 0.4; cursor: not-allowed; }
.koord-btn-speichern:not(:disabled):hover { opacity: 0.88; }













/* ── LIEBLINGE EDIT ───────────────────────────────────────── */
.lieblinge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.lieblinge-gruppe-titel {
    width: 100%;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 2px;
}

.lieblinge-karte {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    min-width: 80px;
}

.lieblinge-karte:hover {
    border-color: var(--accent-main);
    background: var(--bg-card);
}

.lieblinge-karte.selected {
    border-color: var(--accent-main);
    background: var(--bg-card);
    box-shadow: 0 0 0 2px var(--accent-main);
}

.lieblinge-karte.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.lieblinge-emoji { font-size: 24px; line-height: 1; }
.lieblinge-name  { font-size: 12px; color: var(--text-secondary); text-align: center; }

.lieblinge-zaehler {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ── LIEBLINGE DETAIL ─────────────────────────────────────── */
.pfote-lieblinge {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.pfote-lieblinge-titel {
    font-family: 'Newsreader', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pfote-lieblinge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pfote-liebling-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-primary);
}








/* ── Fortschrittsbalken ── */
.edit-fortschritt {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.edit-fortschritt-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.edit-fortschritt-balken {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.edit-fortschritt-fill {
    height: 100%;
    background: var(--accent-main);
    border-radius: 4px;
    transition: width 0.4s ease;
}






/* ── LEBENSSTATIONEN EDIT ─────────────────────────────────── */
.lebens-zeile {
    display: grid;
    grid-template-columns: 120px 1fr 36px;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.lebens-loeschen {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.lebens-loeschen:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}




/* ── AUSZEICHNUNGEN EDIT ─────────────────────────────────── */
.auszeichnung-zeile {
    display: grid;
    grid-template-columns: 1fr 100px 36px;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}






