/* ==============================================
   DGZS Brain: tool-spezifische Styles über Pico CSS + Tinte

   Design-System: Tinte (BENT-1798). Palette, Pico-Overrides und die
   Dark-/Light-Tokens (--t-*) liefert static/css/bavaria-theme.css, das
   Chrome (Header, Tab-Nav, Footer, Karten, Typo) liefert
   static/css/tinte-base.css. Beide Dateien kommen aus dem tinte-Repo
   und werden hier NICHT weiterentwickelt (Sync-Quelle ist tinte,
   Verteilung über tools/sync-theme.py).

   Hier stehen nur die Regeln, die das gemeinsame System nicht kennt.
   ============================================== */

:root {
    /* --- Legacy-Aliase: die alte --be-*-Palette (teal #2a9d8f) ist raus,
       die Namen zeigen jetzt auf die Tinte-Tokens. Neue Regeln bitte direkt
       mit --t-* schreiben. --- */
    --be-teal:        var(--t-teal);
    --be-teal-hover:  var(--t-teal-light);
    --be-teal-focus:  var(--t-teal-tint);
    --be-text:        var(--t-ink);
    --be-text-muted:  var(--t-muted);
    --be-body-bg:     var(--t-bg);
    --be-card-border: var(--t-rule);
}

/* --- Tab-Nav: zwei Sonderfälle, die tinte-base nicht abdeckt --- */

/* Noch nicht gebaute Routen (Tranche 3b) sitzen als <span> in der Tab-Reihe. */
.tab-nav .nav-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Abmelden ist ein POST-Formular, also ein <button type="submit"> in der
   Tab-Reihe. Ohne Gegenwehr färbt tinte-base jeden Submit-Button teal aus
   (Primäraktion); .btn-ghost nimmt ihn aus dieser Regel, hier bekommt er die
   Optik eines Tabs. */
.tab-nav .logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}
.tab-nav .logout-form button.tab-btn-button {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
    padding: 0 10px 14px;
    margin-bottom: -1px;
    width: auto;
    font-family: var(--f-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--t-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, background-color .15s;
}
.tab-nav .logout-form button.tab-btn-button:hover,
.tab-nav .logout-form button.tab-btn-button:focus-visible {
    color: var(--t-ink);
    background: var(--t-teal-tint);
}

/* --- Wiki-Übersicht (index.html) --- */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin: 0 0 2rem 0;
    padding: 0;
    list-style: none;
}
.artist-grid li { margin: 0; }
.artist-card {
    display: block;
    padding: 0.9rem 1rem;
    background: var(--t-card);
    border: 1px solid var(--t-rule);
    border-radius: 8px;
    color: var(--t-ink);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.1s;
}
.artist-card:hover {
    border-color: var(--t-teal);
    color: var(--t-teal);
    transform: translateY(-1px);
}
.artist-card strong { display: block; font-size: 1rem; }
.artist-card .meta {
    font-size: 0.75rem;
    color: var(--t-muted);
    margin-top: 0.2rem;
}
.section-hint {
    font-size: 0.85rem;
    color: var(--t-muted);
    margin-bottom: 0.75rem;
}

/* --- Wiki-Seite (wiki_page.html) --- */
.wiki-breadcrumb {
    font-size: 0.85rem;
    color: var(--t-muted);
    margin-bottom: 0.75rem;
}
.wiki-breadcrumb a { color: var(--t-muted); }
.wiki-breadcrumb a:hover { color: var(--t-teal); }

.wiki-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--t-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--t-rule);
}
.wiki-meta .badge {
    display: inline-block;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--t-teal-tint);
    color: var(--t-teal);
}

.wiki-body h1:first-child { margin-top: 0; }
.wiki-body table { font-size: 0.9rem; }
.wiki-body .dead-link {
    color: var(--t-red);
    text-decoration: line-through;
    font-style: italic;
}

/* --- Boxen: Login-Karte, Fehler, Hinweis --- */
article.login-card { max-width: 420px; }
article.error-box {
    border-color: var(--t-red);
    background: var(--t-red-tint);
    color: var(--t-red);
}
article.info-box {
    background: var(--t-teal-tint);
    border-color: var(--t-teal-soft);
    color: var(--t-ink-soft);
}

.hidden { display: none !important; }
