/* =============================================================
   style.css – Ideenmanagement 2026 · adonis worxx
   Zentrale Stylesheet-Datei für alle Seiten.

   Schriften:  Montserrat → Überschriften / Labels
               Quicksand  → Fließtext
   Farben:     unverändert übernommen aus den Inline-Styles
               (Primär-Orange #ff6b35).
   Größen:     durchgehend angehoben (rem-basiert, html = 16px).

   Hinweis DSGVO: Die Fonts werden hier per Google-Fonts-@import
   geladen. Für einen produktiven Einsatz auf adonis-gubesch.com
   empfiehlt sich das Selbst-Hosten der .woff2-Dateien (kein
   Google-CDN-Kontakt). → siehe Notiz beim Übergabe-Schritt.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

/* ── Farb- & Größen-Tokens ─────────────────────────────────── */
:root {
    /* Farben (unverändert) */
    --primary:   #ff6b35;
    --primary-d: #e85a26;   /* Hover-Ton */
    --dark:      #1a1a1a;
    --text:      #333333;
    --muted:     #6b6b6b;
    --muted-lt:  #9a9a9a;
    --border:    #e4e4e4;
    --bg:        #f6f6f4;
    --surface:   #ffffff;
    --danger:    #c0392b;
    --radius:    10px;

    /* Schriften */
    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Quicksand', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Schriftgrößen – deutlich größer als zuvor */
    --fs-xs:   0.8125rem;   /* 13px  (war 11–12px) */
    --fs-sm:   0.9375rem;   /* 15px  (war 13px)    */
    --fs-base: 1.0625rem;   /* 17px  (war 14px)    */
    --fs-md:   1.25rem;     /* 20px  (war 16px)    */
    --fs-lg:   1.5rem;      /* 24px  (war 18px)    */
    --fs-xl:   2.25rem;     /* 36px  (war 28px)    */
    --fs-2xl:  2.5rem;      /* 40px  (war 30px)    */
}

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

/* Zentrale Grundgröße – steuert (rem-basiert) alle Schriftgrößen.
   Von 16px auf 15px reduziert, damit die Schriften etwas kleiner wirken. */
html { font-size: 15px; }

body {
    font-family: var(--font-body);
    font-weight: 500;              /* Quicksand wirkt bei 400 dünn */
    font-size: var(--fs-base);
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* Überschriften → Montserrat */
h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.15;
}

/* Zentrierte „Body-Card"-Layouts (Login, Fehlerseiten) */
body.center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* ── NAV (eingeloggte Seiten) ──────────────────────────────── */
.nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.nav__brand {
    font-family: var(--font-head);
    font-size: var(--fs-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
}
.nav__brand span { color: var(--primary); }
.nav__links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.nav__links a {
    font-size: var(--fs-base);
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--dark); }
.nav__user {
    font-size: var(--fs-sm);
    color: var(--muted-lt);
    padding-left: 1.25rem;
    border-left: 1px solid var(--border);
}
.nav__logout {
    font-size: var(--fs-base);
    color: var(--primary) !important;
    font-weight: 600;
}

/* ── TOPBAR (Admin) ────────────────────────────────────────── */
.topbar {
    background: var(--dark);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.topbar__brand {
    font-family: var(--font-head);
    font-size: var(--fs-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.topbar__brand span { color: var(--primary); }
.topbar form { margin: 0; }
.topbar button {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
}
.topbar button:hover { border-color: var(--primary); color: var(--primary); }

/* ── LAYOUT ────────────────────────────────────────────────── */
.page { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.page--narrow { max-width: 640px; }
.page--form   { max-width: 640px; }
.page--search { max-width: 600px; padding-top: 3.5rem; }

.back { font-size: var(--fs-sm); color: var(--muted); text-decoration: none; }

/* ── LOGIN- / KARTEN-CONTAINER ─────────────────────────────── */
.login-card,
.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}
/* Abstand unter den Eingabefeldern der Login-/Auth-Karten
   (hier gibt es keine .row-Wrapper wie in den Formularseiten). */
.login-card input,
.auth-card input { margin-bottom: 1.1rem; }
.brand {
    font-family: var(--font-head);
    font-size: var(--fs-sm);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.7rem;
}
.brand span { color: var(--primary); }
.sub {
    font-size: var(--fs-base);
    color: var(--muted);
    margin-bottom: 1.9rem;
}

/* ── HERO / SEITENKOPF ─────────────────────────────────────── */
.hero {
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
.hero__date,
.page-head .label {
    font-family: var(--font-head);
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-lt);
    margin-bottom: 0.6rem;
}
.hero h1 { font-size: var(--fs-2xl); }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p { font-size: var(--fs-base); color: var(--muted); margin-top: 0.5rem; }

.page-head { margin-bottom: 1.75rem; }
.page-head--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-head h1 { font-size: var(--fs-xl); margin-top: 0.35rem; }
.page-head h1 em { font-style: normal; color: var(--primary); }
.page-head p { font-size: var(--fs-base); color: var(--muted); margin-top: 0.5rem; }
.page-head .count { font-size: var(--fs-sm); color: var(--muted); }

/* ── STAT-KACHEL ───────────────────────────────────────────── */
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.6rem;
    margin-bottom: 2rem;
    display: inline-block;
    min-width: 200px;
}
.stat__label {
    font-family: var(--font-head);
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-lt);
    margin-bottom: 0.45rem;
}
.stat__value {
    font-family: var(--font-head);
    font-size: var(--fs-2xl);
    font-weight: 600;
    color: var(--dark);
    line-height: 1;
}

/* ── AKTIONS-KACHELN (Dashboard) ───────────────────────────── */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    display: block;
}
.card:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(255,107,53,0.1); }
.card__title { font-family: var(--font-head); font-size: var(--fs-md); font-weight: 600; color: var(--dark); margin-bottom: 0.45rem; }
.card__desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
.card__arrow { font-size: var(--fs-sm); color: var(--primary); font-weight: 600; margin-top: 0.8rem; display: inline-block; }

/* ── ABSCHNITTS-KOPF + LISTE ───────────────────────────────── */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}
.section-head h2 { font-size: var(--fs-lg); }
.section-head a { font-size: var(--fs-sm); color: var(--primary); text-decoration: none; }

.list { display: flex; flex-direction: column; gap: 0.5rem; }
.list-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: border-color 0.15s;
}
.list-row:hover { border-color: var(--primary); }
.list-row__num { font-size: var(--fs-sm); color: var(--muted-lt); font-variant-numeric: tabular-nums; }
.list-row__title { font-size: var(--fs-base); font-weight: 600; color: var(--dark); }
.list-row__meta { font-size: var(--fs-xs); color: var(--muted-lt); margin-top: 0.15rem; }

/* ── IDEEN-GRID (anzeigen / ergebnisse) ────────────────────── */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.idea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.idea:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(255,107,53,0.1); }
.idea__img {
    width: 100%; aspect-ratio: 3/2; object-fit: cover;
    background: var(--bg); display: block; border-bottom: 1px solid var(--border);
}
.idea__noimg {
    width: 100%; aspect-ratio: 3/2;
    background: linear-gradient(135deg, #f0f0ee, #e8e8e5);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted-lt); font-family: var(--font-head);
    font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.idea__body { padding: 1.2rem 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.idea__title { font-family: var(--font-head); font-size: var(--fs-md); font-weight: 600; color: var(--dark); }
.idea__subtitle { font-size: var(--fs-sm); color: var(--muted); }
.idea__desc {
    font-size: var(--fs-sm); color: var(--text); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.idea__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.15rem; }
.idea__tag { background: rgba(255,107,53,0.1); color: #c24a1e; font-size: var(--fs-xs); padding: 0.25rem 0.55rem; border-radius: 6px; }
/* Kategorien – bewusst neutral-grau, zur Abgrenzung von den orangen Tags */
.idea__cats { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.15rem; }
.idea__cat {
    background: rgba(0,0,0,0.05); color: var(--muted);
    font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 500;
    letter-spacing: 0.03em; padding: 0.25rem 0.55rem; border-radius: 6px;
}
.idea__foot {
    margin-top: auto; padding-top: 0.65rem;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--border);
}
.idea__date { font-size: var(--fs-xs); color: var(--muted-lt); }
.idea__edit { font-size: var(--fs-sm); color: var(--primary); font-weight: 600; }

/* ── IDEEN-LISTE (kompakte Zeilenansicht, 120×80-Vorschaubild) ─ */
.idea-list { display: flex; flex-direction: column; gap: 0.6rem; }
.idea-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.idea-row:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(255,107,53,0.1); }
.idea-row__thumb {
    width: 120px; height: 80px; flex-shrink: 0;
    object-fit: cover; background: var(--bg);
    border-right: 1px solid var(--border); display: block;
}
.idea-row__noimg {
    width: 120px; height: 80px; flex-shrink: 0;
    background: linear-gradient(135deg, #f0f0ee, #e8e8e5);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted-lt); font-family: var(--font-head);
    font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase;
    border-right: 1px solid var(--border);
}
.idea-row__body {
    flex: 1; min-width: 0;
    padding: 0.65rem 1rem;
    display: flex; flex-direction: row; align-items: center; gap: 1rem;
}
.idea-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.idea-row__meta {
    flex-shrink: 0; display: flex; flex-direction: column;
    align-items: flex-end; gap: 0.4rem; text-align: right;
}
.idea-row__title {
    font-family: var(--font-head); font-size: var(--fs-base); font-weight: 600; color: var(--dark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.idea-row__subtitle {
    font-size: var(--fs-sm); color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.idea-row__date { font-size: var(--fs-xs); color: var(--muted-lt); white-space: nowrap; }
.idea-row__cats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem; }

/* ── BILD-GROSSANSICHT (Lightbox) ──────────────────────────── */
.js-zoom { cursor: zoom-in; }
.lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8);
    align-items: center; justify-content: center;
    padding: 1.5rem; z-index: 1000;
    cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox__img {
    max-width: 600px; width: 100%;
    max-height: 90vh; object-fit: contain;
    border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* ── FORMULARE ─────────────────────────────────────────────── */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.row { margin-bottom: 1.4rem; }
label {
    display: block;
    font-family: var(--font-head);
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--dark);
    margin-bottom: 0.4rem;
}
.req { color: var(--primary); }
input, textarea, select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}
.hint { font-size: var(--fs-xs); color: var(--muted-lt); margin-top: 0.35rem; }

/* Klickbarer Link unter einem Eingabefeld (z. B. Website) */
.field-link {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: var(--fs-sm);
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}
.field-link:hover { text-decoration: underline; }
.check-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; font-size: var(--fs-sm); color: var(--muted); }
.check-row input { width: auto; }

/* Tags-Eingabe */
.tags-wrap {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    padding: 0.5rem; border: 1px solid var(--border); border-radius: 8px; cursor: text;
}
.tag {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: rgba(255,107,53,0.1); color: #c24a1e;
    font-size: var(--fs-sm); padding: 0.3rem 0.6rem; border-radius: 6px;
}
.tag button { background: none; border: none; color: inherit; cursor: pointer; font-size: var(--fs-base); line-height: 1; }
.tag-input { flex: 1; min-width: 120px; border: none; outline: none; font-family: var(--font-body); font-size: var(--fs-base); padding: 0.25rem; }

/* Bild-Upload */
.upload-area {
    border: 1px dashed var(--border); border-radius: 8px;
    padding: 1.5rem; text-align: center; cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.upload-area:hover, .upload-area.drag-over { border-color: var(--primary); background: rgba(255,107,53,0.04); }
.upload-area strong { color: var(--dark); }
.upload-text { font-size: var(--fs-base); color: var(--muted); }
.upload-hint { font-size: var(--fs-xs); color: var(--muted-lt); margin-top: 0.35rem; }
.img-error { color: #a3271b; font-size: var(--fs-sm); margin-top: 0.5rem; }
.img-ratio { position: relative; width: 100%; max-width: 300px; margin-top: 0.75rem; }
.img-ratio img, .current-img img { width: 100%; border: 1px solid var(--border); border-radius: 8px; display: block; }
.current-img { max-width: 300px; }
.img-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 0.5rem; max-width: 300px; font-size: var(--fs-xs); color: var(--muted);
}
.img-remove { background: none; border: none; color: var(--primary); cursor: pointer; font-size: var(--fs-xs); }

/* ── BUTTONS ───────────────────────────────────────────────── */
/* Unsichtbar, aber im Layout praesent (nicht display:none) – z. B. als
   Default-Submit-Button, den die Enter-Taste ausloest. */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.actions { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.75rem; }
.actions--split { justify-content: space-between; align-items: center; }

button, .btn {
    font-family: var(--font-head);
    letter-spacing: 0.02em;
}
.btn {
    display: inline-block;
    padding: 0.65rem 1.1rem;
    font-size: var(--fs-base);
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.btn--primary:hover { background: var(--primary-d); border-color: var(--primary-d); color: #fff; }
.btn--danger { background: none; border: none; color: var(--danger); font-size: var(--fs-sm); cursor: pointer; }
.btn--danger:hover { text-decoration: underline; }
.btn--mini {
    padding: 0.4rem 0.8rem; font-size: var(--fs-xs); font-weight: 500;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: 6px; cursor: pointer;
}
.btn--mini:hover { border-color: var(--primary); color: var(--primary); }

/* Vollbreite Submit-Buttons (Login / Admin-Login) */
.btn--block {
    width: 100%;
    padding: 0.9rem;
    font-size: var(--fs-base);
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.btn--block:hover { background: var(--primary-d); }

/* ── SUCHE ─────────────────────────────────────────────────── */
.search-form { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; }
.search-form input {
    flex: 1; padding: 0.85rem 1.1rem; font-size: var(--fs-base);
    border: 1px solid var(--border); border-radius: 8px;
}
.search-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.12); }
.search-form button {
    padding: 0.85rem 1.6rem; font-size: var(--fs-base); font-weight: 600;
    color: #fff; background: var(--primary); border: none; border-radius: 8px; cursor: pointer;
}
.search-form button:hover { background: var(--primary-d); }
.search-hint { font-size: var(--fs-sm); color: var(--muted-lt); margin-top: 0.75rem; }

/* Suchmaske mit einzelnen Feldern (Personen) */
.search-mask {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.5rem;
}
.search-mask__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem 1.1rem;
}
.search-mask label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-family: var(--font-head);
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-lt);
}
.search-mask input {
    padding: 0.7rem 0.9rem;
    font-size: var(--fs-base);
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.search-mask input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.12); }
.search-mask__actions { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.search-mask__actions button {
    padding: 0.75rem 1.6rem; font-size: var(--fs-base); font-weight: 600;
    color: #fff; background: var(--primary); border: none; border-radius: 8px; cursor: pointer;
}
.search-mask__actions button:hover { background: var(--primary-d); }
.result-info { font-size: var(--fs-base); color: var(--muted); margin-bottom: 1.5rem; }
.result-info strong { color: var(--dark); }

/* Tag-Wolke (Suchen-Seite) */
.tag-cloud { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.tag-cloud__label {
    font-family: var(--font-head);
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-lt);
    margin-bottom: 0.9rem;
}
.tag-cloud__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-chip {
    background: rgba(255,107,53,0.1);
    color: #c24a1e;
    font-size: var(--fs-sm);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}
.tag-chip:hover { background: rgba(255,107,53,0.2); }

/* ── LEERZUSTAND ───────────────────────────────────────────── */
.empty {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    font-size: var(--fs-base);
    color: var(--muted);
}
.empty a { color: var(--primary); text-decoration: none; display: block; margin-top: 0.5rem; }

/* ── MELDUNGEN ─────────────────────────────────────────────── */
.alert {
    font-size: var(--fs-sm);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.alert--success, .alert--ok { background: #eaf7ee; border: 1px solid #b8e0c4; color: #1e6b3a; }
.alert--success a, .alert--ok a { color: #1e6b3a; font-weight: 600; }
.alert--error, .alert--err { background: #fdecea; border: 1px solid #f5c6c0; color: #a3271b; }
.setup {
    font-size: var(--fs-sm); padding: 0.9rem 1rem; border-radius: 8px; margin-bottom: 1.25rem;
    background: #fff6ec; border: 1px solid #f6d5b8; color: #a35a1e; line-height: 1.55;
}
code { background: #eee; padding: 0.1rem 0.35rem; border-radius: 4px; font-size: var(--fs-xs); }

/* ── ADMIN-PANEL ───────────────────────────────────────────── */
.lead { font-size: var(--fs-base); color: var(--muted); margin-bottom: 2rem; }
.panel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.panel-card h2 { font-size: var(--fs-lg); margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
th, td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--border); }
th {
    font-family: var(--font-head);
    font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--muted-lt); font-weight: 500;
}
.badge { font-size: var(--fs-xs); padding: 0.2rem 0.55rem; border-radius: 6px; }
.badge--on { background: #eaf7ee; color: #1e6b3a; }
.badge--off { background: #fdecea; color: #a3271b; }
.muted { color: var(--muted-lt); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }

/* ── NOTIZ: Listen-Thumbnail + Bild-Vorschau im Formular ───── */
.list-row__thumb {
    width: 72px; height: 48px; object-fit: cover;
    border-radius: 6px; border: 1px solid var(--border);
    background: var(--bg); flex: 0 0 auto;
}
.bild-vorschau { margin-bottom: 0.6rem; }
.bild-vorschau img {
    display: block; max-width: 300px; width: 100%;
    border: 1px solid var(--border);
}
.bild-entfernen {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: var(--fs-sm); color: var(--muted); margin-top: 0.5rem; cursor: pointer;
}
.bild-entfernen input { width: auto; }

/* ── KNOWLEDGE TREE: Navigationspfad ───────────────────────── */
.breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
    font-size: var(--fs-sm);
    padding-bottom: 1rem; margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--muted-lt); }
.breadcrumb__akt { font-weight: 600; color: var(--dark); }
.breadcrumb__kinder { margin-left: auto; font-size: var(--fs-xs); }
/* Variante ausserhalb der Suchmaske (Erfassen/Bearbeiten) */
.breadcrumb--info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

/* Zeile im Baum: Titel navigiert, Button rechts bearbeitet */
.list-row--tree { justify-content: flex-start; }
.list-row__main {
    flex: 1; min-width: 0;
    text-decoration: none; color: inherit;
}
.list-row__main:hover .list-row__title { color: var(--primary); }

/* ── TABS (Knoten-Formular) ────────────────────────────────── */
.tabs { margin: 1.5rem 0; }
.tabs__head {
    display: flex; gap: 0.4rem;
    border-bottom: 1px solid var(--border);
}
.tabs__btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    font-family: var(--font-head);
    font-size: var(--fs-sm); font-weight: 600;
    color: var(--muted); background: none;
    border: none; border-bottom: 2px solid transparent;
    margin-bottom: -1px; cursor: pointer;
}
.tabs__btn:hover { color: var(--dark); }
.tabs__btn.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary); display: inline-block;
}
.tabs__panel { display: none; padding-top: 1.25rem; }
.tabs__panel.is-active { display: block; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 640px) {
    .grid { grid-template-columns: 1fr; }
    .grid2 { grid-template-columns: 1fr; }
    .grid3 { grid-template-columns: 1fr; }
    .grid4 { grid-template-columns: 1fr; }
    .actions-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: var(--fs-xl); }
}

/* ── ANMELDESEITE ──────────────────────────────────────────── */
.login-body {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; margin: 0; background: var(--bg);
    font-family: var(--font-body); color: var(--text);
}
.login-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.5rem;
    width: 100%; max-width: 420px; margin: 1.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.login-card__brand {
    font-family: var(--font-head); font-weight: 700;
    font-size: var(--fs-sm); letter-spacing: .04em;
    text-transform: lowercase; color: var(--dark); margin-bottom: 1.75rem;
}
.login-card__brand span { color: var(--primary); }
.login-card h1 {
    font-family: var(--font-head); font-size: var(--fs-lg);
    margin: 0 0 1.5rem; color: var(--dark);
}
.login-card label {
    display: block; margin-bottom: 1.15rem;
    font-size: var(--fs-sm); color: var(--muted);
}
.login-card input {
    display: block; width: 100%; box-sizing: border-box;
    margin-top: .4rem; padding: .7rem .85rem;
    font-family: var(--font-body); font-size: var(--fs-base);
    border: 1px solid var(--border); border-radius: 6px;
    background: var(--surface); color: var(--text);
}
.login-card input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,.15);
}
.login-card button {
    width: 100%; margin-top: .5rem; padding: .8rem;
    font-family: var(--font-head); font-size: var(--fs-base); font-weight: 600;
    color: #fff; background: var(--primary);
    border: none; border-radius: 6px; cursor: pointer;
}
.login-card button:hover { background: var(--primary-d); }
.login-card__fehler {
    padding: .75rem .9rem; margin: 0 0 1.25rem;
    font-size: var(--fs-sm); color: var(--danger);
    background: rgba(192,57,43,.07);
    border: 1px solid rgba(192,57,43,.2); border-radius: 6px;
}
.nav__abmelden { margin-left: auto; }
.nav__abmelden a { color: var(--muted); }
