/* 1. GLOBALE EINSTELLUNGEN & VARIABLEN */
html {
    scroll-behavior: smooth;
}

:root {
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* Dynamische Farben aus dem Admin-Panel (werden im Layout überschrieben) */
    --afro-primary: #004a99;
    --afro-secondary: #002a55;
    --afro-tertiary: #001a20;
    --afro-text: #ffffff;
    --afro-gradient: linear-gradient(135deg, var(--afro-primary), var(--afro-secondary));

    /* Systemfarben */
    --afro-bg: #faf7f3;
    --afro-surface: rgba(255,255,255,.85);
    --afro-border: rgba(17, 24, 39, .08);

    /* Glass / Transparenz (wird im Layout überschrieben) */
    --afro-glass: rgba(255,255,255,.10);
    --afro-glass-border: rgba(255,255,255,.20);
    --afro-glass-hover: rgba(255,255,255,.15);

    /* Marken-Akzente (Pan-African) */
    --afro-green: #145c2c;
    --afro-red: #e53935;
    --afro-gold: #f4c842;

    --text: #111827;
    --muted: rgba(17,24,39,.62);

    --radius-xl: 22px;
    --radius-lg: 16px;
}

/* Rich-text formats are stored in article HTML, so these rules intentionally
   live globally instead of only inside the editor component. */
.ql-font-inter {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ql-font-nunito {
    font-family: "Nunito", "Noto Sans", system-ui, sans-serif;
}

.ql-font-merriweather {
    font-family: "Merriweather", Georgia, "Noto Naskh Arabic", serif;
}

.ql-font-noto-sans {
    font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ql-font-noto-sans-arabic {
    font-family: "Noto Sans Arabic", "Noto Sans", Tahoma, Arial, sans-serif;
}

.ql-font-noto-naskh-arabic {
    font-family: "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, serif;
}

.ql-direction-rtl,
[dir="rtl"] {
    direction: rtl;
}

.ql-direction-rtl {
    text-align: right;
}

.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }

/* Paragraphs without an explicit direction take it from their own text, so a German or English
   article on a Persian/Arabic page (or the other way round) does not end up with the full stop
   at the wrong end of the line. Paragraphs marked RTL in the editor keep their direction. */
.wysiwyg-content :is(p,h1,h2,h3,h4,h5,h6,li,blockquote,pre,figcaption):not(.ql-direction-rtl):not([dir]) {
    unicode-bidi: plaintext;
}

.wysiwyg-content :is(p,h1,h2,h3,h4,h5,h6,li,blockquote,pre,figcaption):not(.ql-direction-rtl):not([dir]):not([class*="ql-align-"]) {
    text-align: start;
}

html, body {
    font-family: var(--font-sans), sans-serif;
    color: var(--text);
    line-height: 1.55;
    background-color: var(--afro-bg);
}

/* Container rechts ausrichten */
.afro-auth-container {
    display: flex;
    align-items: center;
}

/* Die kleine Benutzer-Pille */
.auth-pill-small {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem; /* Kleinere Schrift */
}

.user-name-small {
    color: var(--afro-text);
    opacity: 0.9;
    font-weight: 500;
}

/* Vertikale Trennlinie */
.auth-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
}

/* Icon-Links Styling */
.auth-icon-link {
    color: var(--afro-text) !important;
    opacity: 0.7;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.auth-icon-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* Spezielle Farben für Admin & Logout */
.admin-btn { color: #ffca28 !important; } /* Goldgelb für Admin */
.logout-btn { color: #ff5252 !important; } /* Soft-Rot für Logout */

/* Login Link (wenn nicht eingeloggt) */
.login-link-minimal {
    font-size: 0.85rem;
    color: var(--afro-text) !important;
    text-decoration: none;
    opacity: 0.8;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 6px;
}

.login-link-minimal:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* 2. LAYOUT-KOMPONENTEN */
.afro-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding-top: 1rem;
}

/* Der schlanke Header für Unterseiten */
.afro-header-system, .afro-header-compact {
    position: sticky;
    top: 0;
    z-index: 20000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* Sticky Header (neues Layout: Topbar + Nav bleiben beim Scrollen sichtbar) */
.afro-topbar{
    position: sticky;
    top: 0;
    z-index: 50000;
    overflow: visible;
    isolation: isolate;

    background: rgba(255,255,255,0.10); /* glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

/* NAVIGATION (Glas-Effekt) */
.main-nav-bar, .afro-nav-glass, .afro-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 5px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    gap: 0.25rem;
}

/* HERO-BEREICH (Startseite) */
.afro-hero {
    background: var(--afro-gradient);
    color: white;
    padding: 4rem 0;
    position: relative;
}

.afro-hero-title {
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

/* 5. SEKTIONEN & KARTEN */
.afro-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.afro-section::before {
    content: "";
    position: absolute;
    left: 0; top: 0; width: 4px; height: 100%;
    background: linear-gradient(to bottom, var(--afro-primary), var(--afro-secondary));
}

/* 6. AUTH & LOGIN */
.afro-auth-overlay .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 999px;
}

/* Container für das Logo im Hero */
.hero-logo-wrapper {
    display: inline-block;
}

/* Das große Home-Logo */
.hero-logo-large {
    /* Größe deutlich erhöhen */
    height: 180px;
    width: auto;
    object-fit: contain;

    /* Glas-Effekt (Glassmorphism) */
    background: rgba(255, 255, 255, 0.15); /* Sehr leichte weiße Füllung */
    backdrop-filter: blur(12px);           /* Macht den Hintergrund unter dem Logo unscharf */
    -webkit-backdrop-filter: blur(12px);

    /* Rahmen und Abrundung */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 20px;

    /* Schatten für mehr Tiefe auf dem Gradienten */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* Animation beim Drüberfahren */
    transition: all 0.3s ease-in-out;
}

.hero-logo-large:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}


/* Den Header schmal halten */
.afro-header-compact {
    width: 100%;
    min-height: 70px; /* Schmale Höhe erzwingen */
    background: var(--afro-gradient);
    color: var(--afro-text);
    z-index: 1000;
}

/* Sicherstellen, dass der Body Platz hat */
.afro-main-content {
    flex: 1;
    width: 100%;
    background-color: #faf7f3; /* Hintergrund */
    padding-bottom: 5rem;
    z-index: 1 !important
}


/* Nav */
.afro-nav-wrapper{
    position: relative;
    z-index: 50001;
}

.afro-nav {
    background-color: #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: .4rem .75rem;
    gap: .25rem;
}

/* Sektionen als Karten mit akzentfarbener Linie */
.afro-section {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.afro-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--afro-primary), var(--afro-secondary));
}

.afro-section .card-body {
    padding: 1.5rem 1.75rem;
}

.afro-section-title {
    margin-bottom: .75rem;
    font-weight: 700;
    color: #222;
}

.afro-subnav-item {
    display: block;
    margin-bottom: 8px;
}

.afro-subnav-item:last-child {
    margin-bottom: 0;
}

.manage-nav {
    border-radius: 18px;
}

.manage-nav-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.manage-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Buttons */
.manage-nav .nav-link {
    border-radius: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 10px 12px;
}

.btn-tanido-primary{
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    font-weight: 600;
}

.btn-tanido-primary:hover{
    filter: brightness(.92);
}

.btn-afro-nav {
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    border: none;
    background: transparent;
    color: #444;
    font-weight: 600;
}

.btn-afro-nav:hover {
    background: rgba(20, 92, 44, 0.08);
    color: #145c2c;
}

/* Active */
.manage-nav .nav-link.active {
    color: #fff;
    background: rgba(0,0,0,0.35);
    border-color: rgba(0,0,0,0.25);
}

/* Hover */
.manage-nav .nav-link:hover {
    color: #fff;
    background: rgba(0,0,0,0.18);
}

/* Mobile: horizontal scroll statt hässlich untereinander */
@media (max-width: 992px) {
    .manage-nav-list {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .manage-nav .nav-item {
        flex: 0 0 auto;
    }

    .manage-nav .nav-link {
        white-space: nowrap;
    }
}

/* Die Pille dunkler machen für besseren Kontrast */
.auth-pill-modern {
    background: rgba(0, 0, 0, 0.25); /* Dunklerer Hintergrund */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Texte besser lesbar machen */
.user-name-small {
    color: #ffffff !important;
    font-size: 0.92rem;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Schatten für Lesbarkeit */
}

.user-email-tiny {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    margin-top: 3px;
}

/* Icons schärfer machen */
.auth-icon-btn {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.22rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
}

.auth-icon-btn:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Spezielle Hover-Effekte */
.admin-glow:hover { color: #ffca28 !important; }
.logout-hover:hover { color: #ff5252 !important; }

.auth-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}

.login-btn-glass {
    color: white !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: background 0.2s;
}

.login-btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===  Header Customization === */
/* Basis-Klasse für den dynamischen Hintergrund */
.custom-header-bg {
    background-position: center center;
    transition: background-image 0.3s ease;
}

/* Modus: Bild deckt alles ab (Cover) */
.bg-mode-cover {
    background-size: cover;
    background-repeat: no-repeat;
}

/* Modus: Bild wiederholt sich (Muster/Textur) */
.bg-mode-repeat {
    background-size: auto; /* Bild behält Originalgröße */
    background-repeat: repeat;
}

/* Klasse für das dynamische Logo */
.custom-logo {
    height: auto;
    width: var(--logo-size, 40px); /* Fallback 40px */
    transition: width 0.2s ease;   /* Smoothe Änderung bei Einstellung */
    display: block;
}

.newsletter-widget {
    background-color: #f8f9fa; /* Hellgrau oder passend zum Footer */
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.widget-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.x-small {
    font-size: 0.75rem;
}

.partner-logo {
    height: 50px;             /* WICHTIG: Feste Höhe, sonst 0px */
    width: auto;
    object-fit: contain;
    /* Optional: Grau bis Hover */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Globales Muster (Umgebung) === */
.afro-page.site-shell {
    min-height: 100vh;
    padding: 28px 14px;

    background-color: var(--afro-bg);
    color: var(--text);

    background-image:
            radial-gradient(1100px 600px at 50% -200px, rgba(255,255,255,0.26), transparent 60%),
            radial-gradient(900px 600px at 85% 30%, rgba(0,0,0,0.16), transparent 55%),
            url('/bg/tile.png');

    background-repeat: no-repeat, no-repeat, repeat;
    background-size: cover, cover, 120px;   /* Tile-Größe */
    background-position: center, center, center;
    background-attachment: fixed, fixed, scroll;
}

/* === Mittlerer "Papier"-Container === */
.site-frame {
    max-width: 1180px;
    margin: 0 auto;
    background: var(--afro-surface);
    border: 1px solid var(--afro-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 70px rgba(0,0,0,0.16);
    overflow: visible;
}

/* Mobile */
@media (max-width: 768px) {
    .afro-page.site-shell { padding: 16px 10px; }
    .site-frame { border-radius: var(--radius-lg); }
}

/* 1. Das Vorschaubild ganz oben in der Karte */
.news-img-top img,
.news-img-top video {
    width: 100% !important;
    height: 220px !important;       /* Zwingt das Bild auf diese Höhe */
    object-fit: cover !important;   /* Schneidet Überreste ab */
    object-position: center top !important; /* Fokus oben */
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* 2. Bilder im Text (wenn aufgeklappt)
   Legacy-Breiten und semantische Presets respektieren; nur Überlauf verhindern. */
.news-content img,
.news-excerpt img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Sicherheitsnetz: Verhindert, dass Bilder aus der Karte ragen */
.news-card-clean {
    overflow: hidden !important;
}

@supports (-webkit-touch-callout: none) {
    .main-nav-bar, .afro-nav-glass, .afro-nav,
    .auth-pill-small, .auth-pill-modern {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}

/* ===== Home Reveal: beim ersten Render sanft einblenden ===== */
.home-reveal{
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .95s ease, transform .95s ease;
    will-change: opacity, transform;
}

.home-reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
    .home-reveal,
    .home-reveal.is-visible{
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* Der Kopfbereich (Hilfe) zum Anfassen */
.draggable-help-header {
    cursor: grab;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.draggable-help-header:active {
    cursor: grabbing;
}

.draggable-help-body {
    flex: 1;
    background: transparent;
}
.draggable-help-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* ======================================================
   THEME OVERRIDES — echte visuelle Unterschiede:
   Schrift, Größen, Buttons, Cards, Topbar, Nav, Schatten
   ====================================================== */

/* ---- Hero-Bogen: Standard alle ausblenden, nur shape-wave sichtbar ---- */
.shape-arc, .shape-double, .shape-mountains, .shape-tilt, .shape-cubes { display: none; }

/* ---- Hilfsmittel: alle Card-Typen auf einmal ----- */
.afro-section,
.news-card-clean,
.event-card-modern,
.event-card,
.project-card-modern,
.about-card,
.value-card,
.team-member,
.donation-card-modern,
.glass-panel,
.action-item-glass,
.card {
    transition: box-shadow 0.25s, border-radius 0.25s, border-color 0.25s;
}


/* =====================================================
   CLASSIC BLUE — professionell, sauber (Basis)
   ===================================================== */
.theme-classic {
    font-family: "Inter", system-ui, sans-serif;
}
.theme-classic h1, .theme-classic h2, .theme-classic h3,
.theme-classic h4, .theme-classic h5, .theme-classic h6 {
    font-family: "Inter", system-ui;
    font-weight: 700;
}
.theme-classic .afro-section::before {
    background: linear-gradient(to bottom, var(--afro-primary), var(--afro-secondary));
}
.theme-classic .btn { border-radius: 10px; }
.theme-classic .btn-tanido-primary { box-shadow: 0 4px 14px rgba(0,74,153,0.25); }


/* =====================================================
   SUNSET WARM — energetisch, warm, rund, verspielt
   ===================================================== */
.theme-sunset {
    font-family: "Nunito", system-ui, sans-serif;
    line-height: 1.65;
}
/* Headings: größer, runder, fetter */
.theme-sunset h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.03em; }
.theme-sunset h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.theme-sunset h3, .theme-sunset h4, .theme-sunset h5, .theme-sunset h6 {
    font-family: "Nunito", system-ui; font-weight: 800; letter-spacing: -0.02em;
}
/* Hintergrund */
.theme-sunset.afro-page.site-shell {
    background-image:
        radial-gradient(ellipse 1300px 800px at 15% -80px, rgba(255,180,60,0.32), transparent 60%),
        radial-gradient(ellipse 900px 700px at 88% 55%, rgba(247,37,133,0.18), transparent 55%),
        url('/bg/tile.png');
    background-repeat: no-repeat, no-repeat, repeat;
    background-size: cover, cover, 100px;
    background-attachment: fixed, fixed, scroll;
}
/* Haupt-Frame */
.theme-sunset .site-frame {
    border-radius: 32px !important;
    box-shadow: 0 28px 90px rgba(255,107,53,0.22), 0 6px 28px rgba(247,37,133,0.12);
    border-color: rgba(255,107,53,0.12) !important;
}
/* Topbar */
.theme-sunset .afro-topbar {
    padding-top: 6px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(255,107,53,0.2);
}
/* Nav-Pill */
.theme-sunset .afro-nav {
    border-radius: 999px;
    background: rgba(255,255,255,0.94) !important;
    border: 2px solid rgba(255,107,53,0.22) !important;
    box-shadow: 0 8px 28px rgba(255,107,53,0.18) !important;
    padding: 6px 20px;
}
.theme-sunset .btn-afro-nav {
    border-radius: 999px;
    font-family: "Nunito", system-ui;
    font-weight: 700;
    font-size: 0.9rem;
    padding: .4rem 1.1rem;
}
.theme-sunset .btn-afro-nav:hover { background: rgba(255,107,53,0.12); color: #c44b1a; }
/* Alle Buttons: riesige Pill */
.theme-sunset .btn { border-radius: 999px !important; font-weight: 700; }
.theme-sunset .btn-tanido-primary { box-shadow: 0 6px 20px rgba(255,107,53,0.35); }
/* Cards überall */
.theme-sunset .afro-section,
.theme-sunset .news-card-clean,
.theme-sunset .event-card-modern,
.theme-sunset .event-card,
.theme-sunset .project-card-modern,
.theme-sunset .about-card,
.theme-sunset .value-card,
.theme-sunset .team-member,
.theme-sunset .card {
    border-radius: 24px !important;
    box-shadow: 0 6px 28px rgba(255,107,53,0.1) !important;
}
.theme-sunset .afro-section::before {
    border-radius: 4px 0 0 4px;
    background: linear-gradient(to bottom, #ff6b35, #f72585);
}
/* Badges */
.theme-sunset .badge { border-radius: 999px; }
/* Runde Ecken überall erzwingen */
.theme-sunset .rounded-pill { border-radius: 999px !important; }
.theme-sunset .rounded-4 { border-radius: 24px !important; }
/* Bogen: sanfter Bogen, taller */
.theme-sunset .shape-wave { display: none; }
.theme-sunset .shape-arc  { display: block; }
.theme-sunset .custom-shape-divider-bottom-1 svg { height: 80px; }


/* =====================================================
   FOREST GREEN — natürlich, geerdet, Serif, warm
   ===================================================== */
.theme-forest {
    font-family: "Merriweather", Georgia, serif;
    line-height: 1.75;
}
/* Headings: Serif, klassisch */
.theme-forest h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.theme-forest h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; }
.theme-forest h3, .theme-forest h4, .theme-forest h5, .theme-forest h6 {
    font-family: "Merriweather", Georgia, serif; font-weight: 700;
}
/* Hintergrund: organisch, erdige Töne */
.theme-forest.afro-page.site-shell {
    background-image:
        radial-gradient(ellipse 1100px 600px at 50% -100px, rgba(70,160,70,0.18), transparent 60%),
        radial-gradient(ellipse 800px 500px at 85% 60%, rgba(20,92,44,0.1), transparent 55%),
        url('/bg/tile.png');
    background-repeat: no-repeat, no-repeat, repeat;
    background-size: cover, cover, 140px;
    background-attachment: fixed, fixed, scroll;
}
/* Haupt-Frame */
.theme-forest .site-frame {
    border-radius: 18px !important;
    box-shadow: 0 20px 65px rgba(20,92,44,0.2), 0 4px 18px rgba(0,0,0,0.08);
    border-color: rgba(20,92,44,0.15) !important;
}
/* Topbar */
.theme-forest .afro-topbar {
    border-bottom: 2px solid rgba(20,92,44,0.25);
}
/* Nav: grüner Rand */
.theme-forest .afro-nav {
    background: rgba(255,255,255,0.92) !important;
    border: 2px solid rgba(20,92,44,0.2) !important;
    box-shadow: 0 4px 18px rgba(20,92,44,0.14) !important;
    border-radius: 14px;
}
.theme-forest .btn-afro-nav {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 8px;
}
.theme-forest .btn-afro-nav:hover { background: rgba(20,92,44,0.1); color: #145c2c; }
/* Alle Buttons: leicht gerundet, solide */
.theme-forest .btn { border-radius: 8px !important; font-weight: 700; }
.theme-forest .btn-tanido-primary { box-shadow: 0 4px 16px rgba(20,92,44,0.3); }
/* Cards */
.theme-forest .afro-section,
.theme-forest .news-card-clean,
.theme-forest .event-card-modern,
.theme-forest .event-card,
.theme-forest .project-card-modern,
.theme-forest .about-card,
.theme-forest .value-card,
.theme-forest .team-member,
.theme-forest .card {
    border-radius: 14px !important;
    box-shadow: 0 4px 18px rgba(20,92,44,0.1) !important;
}
.theme-forest .afro-section::before {
    background: linear-gradient(to bottom, #145c2c, #0b3d1a, #a7c957);
    width: 5px;
}
.theme-forest .badge { border-radius: 6px; }
/* Berge / Zickzack */
.theme-forest .shape-wave      { display: none; }
.theme-forest .shape-mountains { display: block; }
.theme-forest .custom-shape-divider-bottom-1 svg { height: 80px; }


/* =====================================================
   MINIMAL LIGHT — ultraclean, kein Schatten, Flat
   ===================================================== */
.theme-minimal {
    font-family: "DM Sans", system-ui, sans-serif;
    line-height: 1.5;
}
/* Headings: schlank, eng, kleiner */
.theme-minimal h1 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 400; letter-spacing: -0.04em; }
.theme-minimal h2 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 500; letter-spacing: -0.03em; }
.theme-minimal h3, .theme-minimal h4, .theme-minimal h5, .theme-minimal h6 {
    font-family: "DM Sans", system-ui; font-weight: 500; letter-spacing: -0.02em;
}
/* Hintergrund: gar kein Muster */
.theme-minimal.afro-page.site-shell {
    background-image: none !important;
    padding: 0 !important;
}
/* Haupt-Frame: kein Schatten, flach */
.theme-minimal .site-frame {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid rgba(17,24,39,0.1) !important;
}
/* Topbar: dünne Linie unten, kein Blur */
.theme-minimal .afro-topbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.25) !important;
    box-shadow: none !important;
}
/* Nav: kein Pill, nur schmale Linie */
.theme-minimal .afro-nav {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 2px 0;
    gap: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
}
.theme-minimal .btn-afro-nav {
    font-family: "DM Sans", system-ui;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 0 !important;
    padding: .5rem 1rem;
    color: rgba(255,255,255,0.8);
    border-bottom: 2px solid transparent;
}
.theme-minimal .btn-afro-nav:hover {
    background: transparent;
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.6);
}
.theme-minimal .btn-afro-nav.active {
    background: transparent !important;
    color: #fff !important;
    border-bottom-color: #fff !important;
    font-weight: 500;
}
/* Alle Buttons: ecken abschneiden */
.theme-minimal .btn { border-radius: 4px !important; font-weight: 400; box-shadow: none !important; }
.theme-minimal .btn-tanido-primary { box-shadow: none !important; }
/* Cards: nur Linie, kein Schatten */
.theme-minimal .afro-section,
.theme-minimal .news-card-clean,
.theme-minimal .event-card-modern,
.theme-minimal .event-card,
.theme-minimal .project-card-modern,
.theme-minimal .about-card,
.theme-minimal .value-card,
.theme-minimal .team-member,
.theme-minimal .card {
    border-radius: 4px !important;
    box-shadow: none !important;
    border: 1px solid rgba(17,24,39,0.12) !important;
}
/* Bogen: komplett ausgeblendet (flat/clean) */
.theme-minimal .custom-shape-divider-bottom-1 { display: none; }
.theme-minimal .afro-section::before { display: none; }
.theme-minimal .shadow-sm { box-shadow: none !important; }
/* rounded-pill → leicht abgerundet */
.theme-minimal .rounded-pill { border-radius: 4px !important; }
.theme-minimal .rounded-4 { border-radius: 4px !important; }
.theme-minimal .badge { border-radius: 2px; font-weight: 400; }


/* =====================================================
   PURPLE NIGHT — dunkel, dramatisch, Premium, Glow
   ===================================================== */
.theme-purple {
    font-family: "Rajdhani", "Trebuchet MS", system-ui, sans-serif;
    line-height: 1.55;
    letter-spacing: 0.01em;
}
/* Headings: uppercase, weit, leuchtet */
.theme-purple h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(167,139,250,0.5);
}
.theme-purple h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.theme-purple h3, .theme-purple h4, .theme-purple h5, .theme-purple h6 {
    font-family: "Rajdhani", system-ui;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
/* Hintergrund: dunkel mit lila Glow-Effekten */
.theme-purple.afro-page.site-shell {
    background-image:
        radial-gradient(ellipse 1200px 700px at 25% -50px, rgba(124,58,237,0.4), transparent 60%),
        radial-gradient(ellipse 900px 800px at 80% 85%, rgba(79,70,229,0.3), transparent 55%),
        radial-gradient(ellipse 600px 600px at 60% 40%, rgba(139,92,246,0.1), transparent 50%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* Haupt-Frame: Glow-Border */
.theme-purple .site-frame {
    border-radius: 20px !important;
    box-shadow: 0 0 0 1px rgba(124,58,237,0.3), 0 24px 80px rgba(124,58,237,0.4), 0 8px 32px rgba(79,70,229,0.2);
    border-color: rgba(124,58,237,0.3) !important;
}
/* Topbar: dunkles Glas mit Glow */
.theme-purple .afro-topbar {
    border-bottom: 1px solid rgba(124,58,237,0.4) !important;
    box-shadow: 0 4px 30px rgba(124,58,237,0.2);
}
/* Nav: dunkle Pille mit Glow-Rand */
.theme-purple .afro-nav {
    background: rgba(11,16,32,0.88) !important;
    border: 1px solid rgba(124,58,237,0.45) !important;
    box-shadow: 0 0 20px rgba(124,58,237,0.25), 0 4px 16px rgba(0,0,0,0.4) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.theme-purple .btn-afro-nav {
    font-family: "Rajdhani", system-ui;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(200,180,255,0.75);
    border-radius: 8px;
}
.theme-purple .btn-afro-nav:hover {
    background: rgba(124,58,237,0.25);
    color: #e9d5ff;
    box-shadow: 0 0 12px rgba(124,58,237,0.3);
}
/* Alle Buttons: Glow-Effekt */
.theme-purple .btn {
    border-radius: 8px !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.theme-purple .btn-tanido-primary,
.theme-purple .btn-primary {
    box-shadow: 0 0 20px rgba(124,58,237,0.5), 0 4px 16px rgba(124,58,237,0.3) !important;
    border-color: rgba(167,139,250,0.5) !important;
}
/* Cards: Glow-Border, dunkel */
.theme-purple .afro-section,
.theme-purple .news-card-clean,
.theme-purple .event-card-modern,
.theme-purple .event-card,
.theme-purple .project-card-modern,
.theme-purple .about-card,
.theme-purple .value-card,
.theme-purple .team-member,
.theme-purple .card {
    border-radius: 16px !important;
    box-shadow: 0 0 0 1px rgba(124,58,237,0.2), 0 8px 32px rgba(124,58,237,0.15) !important;
    border-color: rgba(124,58,237,0.2) !important;
}
/* Bogen: diagonaler Schnitt */
.theme-purple .shape-wave  { display: none; }
.theme-purple .shape-tilt  { display: block; }
.theme-purple .custom-shape-divider-bottom-1 svg { height: 90px; }
.theme-purple .afro-section::before {
    background: linear-gradient(to bottom, #7c3aed, #4f46e5);
    box-shadow: 2px 0 12px rgba(124,58,237,0.4);
}
.theme-purple .badge { border-radius: 4px; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; }
.theme-purple .shadow-sm { box-shadow: 0 0 0 1px rgba(124,58,237,0.15), 0 4px 16px rgba(124,58,237,0.1) !important; }
/* Lesbare Textfarben auf hellen Karten-Hintergründen */
.theme-purple {
    --muted: #6d28d9;
    --bs-secondary-color: #6d28d9;
    --text: #1e1b4b;
    --bs-body-color: #1e1b4b;
}
.theme-purple .text-muted { color: #6d28d9 !important; }
.theme-purple .text-dark  { color: #1e1b4b !important; }
.theme-purple h1, .theme-purple h2, .theme-purple h3,
.theme-purple h4, .theme-purple h5, .theme-purple h6 { color: #1e1b4b; }


/* =====================================================
   OCEAN MINT — frisch, luftig, hell, sportlich
   ===================================================== */
.theme-ocean {
    font-family: "Quicksand", system-ui, sans-serif;
    line-height: 1.65;
}
/* Headings: freundlich rund */
.theme-ocean h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
.theme-ocean h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; }
.theme-ocean h3, .theme-ocean h4, .theme-ocean h5, .theme-ocean h6 {
    font-family: "Quicksand", system-ui; font-weight: 600;
}
/* Hintergrund: helles Aqua-Glow */
.theme-ocean.afro-page.site-shell {
    background-image:
        radial-gradient(ellipse 1200px 700px at 50% -120px, rgba(14,165,233,0.25), transparent 60%),
        radial-gradient(ellipse 900px 600px at 90% 65%, rgba(6,182,212,0.16), transparent 55%),
        url('/bg/tile.png');
    background-repeat: no-repeat, no-repeat, repeat;
    background-size: cover, cover, 110px;
    background-attachment: fixed, fixed, scroll;
}
/* Haupt-Frame */
.theme-ocean .site-frame {
    border-radius: 28px !important;
    box-shadow: 0 24px 80px rgba(14,165,233,0.2), 0 6px 24px rgba(6,182,212,0.12);
    border-color: rgba(14,165,233,0.15) !important;
}
/* Topbar */
.theme-ocean .afro-topbar {
    border-bottom: 2px solid rgba(14,165,233,0.25);
    box-shadow: 0 4px 24px rgba(14,165,233,0.12);
}
/* Nav: sauber weiß */
.theme-ocean .afro-nav {
    background: rgba(255,255,255,0.96) !important;
    border: 2px solid rgba(14,165,233,0.28) !important;
    box-shadow: 0 6px 24px rgba(14,165,233,0.16) !important;
    border-radius: 999px;
}
.theme-ocean .btn-afro-nav {
    font-family: "Quicksand", system-ui;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 999px;
    color: #0f172a;
}
.theme-ocean .btn-afro-nav:hover { background: rgba(14,165,233,0.1); color: #0369a1; }
/* Alle Buttons: Pill */
.theme-ocean .btn { border-radius: 999px !important; font-weight: 600; }
.theme-ocean .btn-tanido-primary { box-shadow: 0 6px 20px rgba(14,165,233,0.35); }
/* Cards */
.theme-ocean .afro-section,
.theme-ocean .news-card-clean,
.theme-ocean .event-card-modern,
.theme-ocean .event-card,
.theme-ocean .project-card-modern,
.theme-ocean .about-card,
.theme-ocean .value-card,
.theme-ocean .team-member,
.theme-ocean .card {
    border-radius: 22px !important;
    box-shadow: 0 6px 24px rgba(14,165,233,0.1) !important;
    border-color: rgba(14,165,233,0.12) !important;
}
/* Doppelwelle */
.theme-ocean .shape-wave   { display: none; }
.theme-ocean .shape-double { display: block; }
.theme-ocean .afro-section::before {
    background: linear-gradient(to bottom, #0ea5e9, #06b6d4);
    border-radius: 4px 0 0 4px;
}
.theme-ocean .badge { border-radius: 999px; }
.theme-ocean .rounded-pill { border-radius: 999px !important; }
.theme-ocean .rounded-4 { border-radius: 22px !important; }
.theme-ocean .shadow-sm { box-shadow: 0 4px 16px rgba(14,165,233,0.12) !important; }


/* =====================================================
   HIGH CONTRAST — barrierefreiheit, eckig, maximum
   ===================================================== */
.theme-contrast {
    font-family: -apple-system, "Segoe UI", system-ui, Arial, sans-serif;
    line-height: 1.5;
}
/* Headings: riesig, fett, schwarz */
.theme-contrast h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    text-decoration: underline;
    text-underline-offset: 6px;
}
.theme-contrast h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; }
.theme-contrast h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 900; }
.theme-contrast h4, .theme-contrast h5, .theme-contrast h6 { font-weight: 900; }
/* Hintergrund: reines Weiß */
.theme-contrast.afro-page.site-shell {
    background-image: none !important;
    background-color: #ffffff !important;
    padding: 0 !important;
}
/* Topbar: schwarz massiv */
.theme-contrast .afro-topbar {
    background-image: none !important;
    background-color: #000000 !important;
    border-bottom: 4px solid #000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* Haupt-Frame: harter Rahmen, keine Kurven */
.theme-contrast .site-frame {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 3px solid #000000 !important;
}
/* Nav: eckig, schwarz auf weiß */
.theme-contrast .afro-nav {
    background: #ffffff !important;
    border: 3px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 4px 8px;
    gap: 0 !important;
}
.theme-contrast .btn-afro-nav {
    border-radius: 0 !important;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
    border-right: 1px solid #ccc;
    padding: .5rem .9rem;
}
.theme-contrast .btn-afro-nav:last-child { border-right: none; }
.theme-contrast .btn-afro-nav:hover { background: #000; color: #fff; }
.theme-contrast .btn-afro-nav.active { background: #000 !important; color: #fff !important; }
/* Alle Buttons: 0 Radius, fett, Rand */
.theme-contrast .btn {
    border-radius: 0 !important;
    font-weight: 900 !important;
    border-width: 2px !important;
    box-shadow: none !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}
/* Cards: schwerer Rand, keine Schatten */
.theme-contrast .afro-section,
.theme-contrast .news-card-clean,
.theme-contrast .event-card-modern,
.theme-contrast .event-card,
.theme-contrast .project-card-modern,
.theme-contrast .about-card,
.theme-contrast .value-card,
.theme-contrast .team-member,
.theme-contrast .card {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 3px solid #000 !important;
}
.theme-contrast .afro-section::before {
    width: 8px;
    background: #000000;
}
/* Alles eckig */
.theme-contrast .rounded-pill { border-radius: 0 !important; border: 2px solid #000 !important; }
.theme-contrast .rounded-4 { border-radius: 0 !important; }
.theme-contrast .rounded { border-radius: 0 !important; }
.theme-contrast .shadow-sm { box-shadow: none !important; border: 2px solid #000 !important; }
.theme-contrast .badge { border-radius: 0; font-weight: 900; border: 2px solid currentColor; background: transparent !important; }
/* Würfel / Blöcke */
.theme-contrast .shape-wave  { display: none; }
.theme-contrast .shape-cubes { display: block; }
.theme-contrast .custom-shape-divider-bottom-1 svg { height: 70px; }
/* Kein Glas-Effekt */
.theme-contrast .glass-panel,
.theme-contrast .action-item-glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #fff !important;
    border: 3px solid #000 !important;
    border-radius: 0 !important;
}
/* Schwarzer Text im glass-panel */
.theme-contrast .glass-panel .text-white,
.theme-contrast .glass-panel .text-white-50,
.theme-contrast .glass-panel .action-item-glass {
    color: #000000 !important;
}
.theme-contrast .glass-panel * {
    color: #000000 !important;
}

/* ============================================================
   MANAGE PAGES — Dark Glass Design System
   Gilt für alle /Account/Manage/* Seiten
   ============================================================ */
.mng-page { padding: 8px 4px; }

/* Sektions-Label (PERSÖNLICHE DATEN, KONTO-EINSTELLUNGEN ...) */
.mng-section-label {
    font-size: .68rem; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: rgba(255,255,255,.38);
    margin-bottom: 10px; margin-top: 22px; padding-left: 2px;
}
.mng-section-label:first-child { margin-top: 0; }

/* Felder */
.mng-field { margin-bottom: 14px; }
.mng-field label {
    display: block; font-size: .78rem; font-weight: 600;
    color: rgba(255,255,255,.52); margin-bottom: 5px;
}
.mng-field input,
.mng-field .form-control {
    width: 100%;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 10px !important;
    color: rgba(255,255,255,.88) !important;
    padding: 10px 14px !important;
    font-size: .9rem;
    transition: border-color .15s, background .15s;
    outline: none;
}
.mng-field input:focus,
.mng-field .form-control:focus {
    border-color: rgba(14,165,233,.55) !important;
    background: rgba(255,255,255,.09) !important;
    box-shadow: 0 0 0 3px rgba(14,165,233,.12) !important;
}
.mng-field input:disabled { opacity: .4; cursor: not-allowed; }
.mng-field .form-text { font-size: .74rem; color: rgba(255,255,255,.32); margin-top: 4px; }
.mng-field .input-group input { border-radius: 10px 0 0 10px !important; }
.mng-field .input-group-text {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-left: none !important;
    border-radius: 0 10px 10px 0 !important;
    color: rgba(255,255,255,.7) !important;
}

/* Trennlinie */
.mng-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 20px 0; }

/* Primär-Button */
.mng-btn-primary {
    display: block; width: 100%; padding: 11px;
    border-radius: 10px; border: none;
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    color: #fff; font-weight: 700; font-size: .95rem;
    cursor: pointer; transition: opacity .15s, transform .10s;
    text-align: center; text-decoration: none;
}
.mng-btn-primary:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

/* Sekundär-Button (Zurück, Abbrechen) */
.mng-btn-secondary {
    display: block; width: 100%; padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.75); font-weight: 600; font-size: .9rem;
    cursor: pointer; transition: background .15s; text-align: center; text-decoration: none;
}
.mng-btn-secondary:hover { background: rgba(255,255,255,.10); color: #fff; }

/* Gefährlicher Button (Löschen, Deaktivieren) */
.mng-btn-danger {
    display: block; width: 100%; padding: 10px;
    border-radius: 10px;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.25);
    color: #fca5a5; font-weight: 600; font-size: .9rem;
    cursor: pointer; transition: background .15s; text-align: center; text-decoration: none;
}
.mng-btn-danger:hover { background: rgba(239,68,68,.22); color: #fff; }

/* Validierungsfehler */
.mng-validation { font-size: .76rem; color: #f87171; margin-top: 3px; display: block; }

/* Info / Warn / OK Badge */
.mng-badge {
    font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    padding: 4px 12px; border-radius: 999px;
}
.mng-badge-ok   { background: rgba(34,197,94,.15);  color: #86efac; border: 1px solid rgba(34,197,94,.25); }
.mng-badge-warn { background: rgba(234,179,8,.12);  color: #fde047; border: 1px solid rgba(234,179,8,.25); }
.mng-badge-info { background: rgba(14,165,233,.12); color: #7dd3fc; border: 1px solid rgba(14,165,233,.25); }
.mng-badge-off  { background: rgba(239,68,68,.12);  color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }

/* Alert-Boxen */
.mng-alert {
    border-radius: 10px; padding: 12px 14px;
    font-size: .85rem; margin-bottom: 14px;
}
.mng-alert-danger { background: rgba(239,68,68,.10); border: 1px solid rgba(239,68,68,.22); color: #fca5a5; }
.mng-alert-warn   { background: rgba(234,179,8,.08); border: 1px solid rgba(234,179,8,.22); color: #fde047; }
.mng-alert-info   { background: rgba(14,165,233,.08); border: 1px solid rgba(14,165,233,.22); color: #7dd3fc; }
.mng-alert-ok     { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.22); color: #86efac; }
.mng-alert strong { font-weight: 700; }

/* Klickbare Link-Zeilen (wie Profil-Seite) */
.mng-link-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.03);
    color: rgba(255,255,255,.78); text-decoration: none;
    font-size: .88rem; font-weight: 500;
    transition: background .15s, border-color .15s;
    margin-bottom: 6px;
}
.mng-link-item:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.13); color: #fff; }
.mng-link-item i { font-size: 1rem; width: 20px; text-align: center; color: rgba(255,255,255,.45); }
.mng-link-item .mng-link-arrow { margin-left: auto; color: rgba(255,255,255,.22); }

/* Seiten-Header (Titel + Badge) */
.mng-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.mng-title  { font-size: 1.1rem; font-weight: 800; color: rgba(255,255,255,.92); margin: 0 0 3px; }
.mng-subtitle { font-size: .82rem; color: rgba(255,255,255,.45); }
.ql-editor .tanido-drop-before {
    border-top: 2px dashed #0d6efd;
}

.ql-editor .tanido-drop-after {
    border-bottom: 2px dashed #0d6efd;
}

.ql-editor img,
.ql-editor video,
.ql-editor iframe {
    cursor: move;
}


/* ============================================================
   WYSIWYG content — one responsive image contract everywhere
   ============================================================ */
.wysiwyg-content img {
    max-width: 100%;
    height: auto;
}

.wysiwyg-content img.content-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.wysiwyg-content img.content-image--small { width: 35%; }
.wysiwyg-content img.content-image--medium { width: 55%; }
.wysiwyg-content img.content-image--wide { width: 100%; }
.wysiwyg-content img.content-image--panorama {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.wysiwyg-content img.content-image--left { margin-left: 0; margin-right: auto; }
.wysiwyg-content img.content-image--center { margin-left: auto; margin-right: auto; }
.wysiwyg-content img.content-image--right { margin-left: auto; margin-right: 0; }

.wysiwyg-content .content-image-caption {
    display: block;
    max-width: 100%;
    font-size: .9rem;
    font-style: italic;
    text-align: center;
}

/* ============================================================
   Legacy rich-content selectors kept as compatibility fallback
   ============================================================ */
.typography img,
.typography-content img,
.content-body img,
.news-content img,
.area-news-content img {
    max-width: 100%;
    height: auto;
}

.typography img.content-image,
.typography-content img.content-image,
.content-body img.content-image,
.news-content img.content-image,
.area-news-content img.content-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.typography img.content-image--small,
.typography-content img.content-image--small,
.content-body img.content-image--small,
.news-content img.content-image--small,
.area-news-content img.content-image--small { width: 35%; }

.typography img.content-image--medium,
.typography-content img.content-image--medium,
.content-body img.content-image--medium,
.news-content img.content-image--medium,
.area-news-content img.content-image--medium { width: 55%; }

.typography img.content-image--wide,
.typography-content img.content-image--wide,
.content-body img.content-image--wide,
.news-content img.content-image--wide,
.area-news-content img.content-image--wide { width: 100%; }

.typography img.content-image--panorama,
.typography-content img.content-image--panorama,
.content-body img.content-image--panorama,
.news-content img.content-image--panorama,
.area-news-content img.content-image--panorama {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

img.content-image--left { margin-left: 0; margin-right: auto; }
img.content-image--center { margin-left: auto; margin-right: auto; }
img.content-image--right { margin-left: auto; margin-right: 0; }

.content-image-caption {
    display: block;
    max-width: 100%;
    font-size: .9rem;
    font-style: italic;
    text-align: center;
}



/* Shared authentication gate: mirrors the admin dashboard visual system. */
.auth-gate-shell {
    --background: #07111f;
    --surface: #0d1a2a;
    --surface-2: #17283b;
    --card: #121f30;
    --border: #2a3d54;
    --text: #f4f7fb;
    --text-muted: #aab8c8;
    --primary: #2ea8d8;
    --primary-hover: #5cc8f2;
    --primary-contrast: #06111d;
    --danger: #ef4444;
    --warning: #f5a623;
    --input-bg: #1b3047;
    --shadow: rgba(0, 0, 0, .34);
    --primary-soft: color-mix(in srgb, var(--primary) 16%, transparent);

    min-height: 100vh;
    position: relative;
    overflow: hidden;
    color: var(--text);
    background: var(--background);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.auth-gate-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(1000px 520px at 15% 10%, rgba(46, 168, 216, .20), transparent 60%),
        radial-gradient(850px 520px at 85% 18%, rgba(245, 166, 35, .10), transparent 62%),
        linear-gradient(180deg, var(--background), var(--surface));
}

.auth-gate-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.2) 75%, transparent 100%);
}

.auth-gate-watermark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(76vw, 980px);
    height: min(76vw, 980px);
    transform: translate(-50%, -50%);
    opacity: .045;
    filter: grayscale(1) brightness(2.4);
    pointer-events: none;
    user-select: none;
}

.auth-gate-center {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 18px;
}

.auth-gate-card {
    width: min(100%, 520px);
    padding: 28px;
    color: var(--text);
    background: linear-gradient(180deg, color-mix(in srgb, var(--card) 96%, transparent), color-mix(in srgb, var(--surface) 92%, transparent));
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 28px 88px var(--shadow);
    backdrop-filter: blur(14px);
}

.auth-gate-card-compact {
    width: min(100%, 500px);
}

.auth-gate-brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: var(--text);
    text-decoration: none;
}

.auth-gate-brand:hover,
.auth-gate-brand:focus-visible {
    color: var(--text);
    outline: none;
}

.auth-gate-brand-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 24px var(--shadow);
}

.auth-gate-brand-icon img {
    width: 38px;
    height: 38px;
}

.auth-gate-brand-copy strong {
    display: block;
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.auth-gate-brand-copy small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 700;
}

.auth-gate-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 24px;
}

.auth-gate-head-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
    border-radius: 13px;
    font-size: 1.15rem;
}

.auth-gate-head h1 {
    margin: 0;
    color: var(--text);
    font-size: 1.38rem;
    font-weight: 900;
    letter-spacing: -.035em;
}

.auth-gate-head p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.45;
}

.auth-gate-form {
    display: grid;
    gap: 17px;
}

.auth-gate-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 800;
}

.auth-gate-input-wrap {
    position: relative;
}

.auth-gate-input-wrap > i {
    position: absolute;
    left: 15px;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.auth-gate-input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px 0 44px;
    color: var(--text);
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-gate-password-wrap .auth-gate-input {
    padding-right: 50px;
}

.auth-gate-input::placeholder {
    color: color-mix(in srgb, var(--text-muted) 72%, transparent);
}

.auth-gate-input:focus {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--input-bg) 92%, var(--primary) 8%);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.auth-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: var(--primary);
    background: var(--primary-soft);
    outline: none;
}

.auth-gate-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: .84rem;
}

.auth-gate-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text-muted);
    cursor: pointer;
}

.auth-gate-check .form-check-input {
    margin: 0;
    background-color: var(--input-bg);
    border-color: var(--border);
}

.auth-gate-check .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-gate-options a,
.auth-gate-back {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
}

.auth-gate-options a:hover,
.auth-gate-options a:focus-visible {
    color: var(--primary-hover);
    text-decoration: underline;
    outline: none;
}

.auth-gate-primary,
.auth-gate-secondary {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 900;
    transition: transform .12s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.auth-gate-primary {
    color: var(--primary-contrast);
    background: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--primary) 18%, transparent);
}

.auth-gate-primary:hover,
.auth-gate-primary:focus-visible {
    color: var(--primary-contrast);
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    outline: none;
    transform: translateY(-1px);
}

.auth-gate-secondary {
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.auth-gate-secondary:hover,
.auth-gate-secondary:focus-visible {
    color: var(--text);
    background: var(--input-bg);
    border-color: var(--primary);
    outline: none;
    transform: translateY(-1px);
}

.auth-gate-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.auth-gate-divider::before,
.auth-gate-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-gate-back {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--text-muted);
    font-size: .82rem;
}

.auth-gate-back img {
    width: 24px;
    height: 24px;
}

.auth-gate-back:hover,
.auth-gate-back:focus-visible {
    color: var(--text);
    outline: none;
}

.auth-gate-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    padding: 11px 12px;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 11px;
    font-size: .76rem;
    line-height: 1.45;
}

.auth-gate-note i {
    margin-top: 1px;
    color: var(--primary);
}

.auth-gate-validation,
.auth-gate-shell .validation-message {
    color: #fda4af;
    font-size: .8rem;
}

.auth-gate-validation ul {
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 575.98px) {
    .auth-gate-center {
        padding: 12px;
    }

    .auth-gate-card {
        padding: 20px;
        border-radius: 17px;
    }

    .auth-gate-watermark {
        width: 130vw;
        height: 130vw;
        opacity: .035;
    }

    .auth-gate-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-gate-brand {
        margin-bottom: 22px;
    }
}


.auth-gate-head-danger {
    color: var(--danger) !important;
    background: color-mix(in srgb, var(--danger) 14%, transparent) !important;
    border-color: color-mix(in srgb, var(--danger) 30%, var(--border)) !important;
}


/* Public Farsi typography: when the default content area language is fa,
   Peyda becomes the website font from header/navigation through body/footer.
   Bootstrap icon elements are intentionally excluded. */
.public-lang-fa {
    font-family: "Peyda", "Noto Sans Arabic", Tahoma, Arial, sans-serif !important;
}

.public-lang-fa :where(
    h1, h2, h3, h4, h5, h6,
    p, span, a, button, input, textarea, select, option, label,
    small, strong, b, em, blockquote, li, dt, dd, td, th,
    article, section, nav, header, main, footer,
    .btn, .form-control, .form-select, .dropdown-item,
    .nav-link, .card, .modal, .alert, .badge
):not(.bi):not([class*="bi-"]) {
    font-family: "Peyda", "Noto Sans Arabic", Tahoma, Arial, sans-serif !important;
}

/* ============================================================
   Article cards (home page and area pages): footer with
   "Artikel lesen" and the expand/collapse toggle.
   Colours derive from the card's text colour, so the controls
   work on light and dark themes alike.
   ============================================================ */

/* Contain images floated left/right inside the excerpt, so the
   footer is always placed below the content, never beside it. */
.news-content,
.area-news-content {
    display: flow-root;
}

.article-card-actions {
    clear: both;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    color: var(--text, #1f2328);
}

.article-read-link {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: inherit;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
}

.article-read-link:hover,
.article-read-link:focus {
    color: inherit;
}

.article-read-link:hover span {
    text-decoration: underline;
    text-underline-offset: .25em;
}

.article-read-link .bi {
    display: inline-grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    color: var(--afro-primary, currentColor);
    background: color-mix(in srgb, var(--afro-primary, currentColor) 16%, transparent);
    font-size: .95rem;
    transition: transform .2s ease, background-color .2s ease;
}

.article-read-link:hover .bi {
    transform: translate(2px, -2px);
    background: color-mix(in srgb, var(--afro-primary, currentColor) 26%, transparent);
}

.article-expand-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 2.25rem;
    margin-left: auto;
    padding: .35rem .85rem .35rem 1rem;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.article-expand-toggle:hover {
    background: color-mix(in srgb, currentColor 8%, transparent);
    border-color: color-mix(in srgb, currentColor 38%, transparent);
}

.article-read-link:focus-visible,
.article-expand-toggle:focus-visible {
    outline: 2px solid var(--afro-primary, currentColor);
    outline-offset: 3px;
}

.article-expand-chevron {
    font-size: .8rem;
    transition: transform .25s ease;
}

.article-expand-toggle.is-expanded .article-expand-chevron {
    transform: rotate(180deg);
}

[dir="rtl"] .article-read-link .bi-arrow-up-right {
    transform: scaleX(-1);
}

[dir="rtl"] .article-read-link:hover .bi-arrow-up-right {
    transform: scaleX(-1) translate(2px, -2px);
}

[dir="rtl"] .article-expand-toggle {
    margin-left: 0;
    margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
    .article-read-link .bi,
    .article-expand-chevron {
        transition: none;
    }
}

/* ============================================================
   Public language switcher (content areas linked as language
   versions). Uses the header glass colours of the active theme.
   ============================================================ */
.area-lang-switcher {
    position: relative;
    flex: 0 0 auto;
    color: var(--afro-text, currentColor);
}

.area-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.25rem;
    padding: .3rem .7rem;
    border: 1px solid var(--afro-glass-border, rgba(255, 255, 255, .25));
    border-radius: 999px;
    background: var(--afro-glass, rgba(255, 255, 255, .1));
    color: inherit;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1;
    list-style: none;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(6px);
    transition: background-color .2s ease, border-color .2s ease;
}

.area-lang-toggle::-webkit-details-marker {
    display: none;
}

.area-lang-toggle::marker {
    content: "";
}

.area-lang-toggle:hover,
.area-lang-switcher[open] .area-lang-toggle {
    background: var(--afro-glass-hover, rgba(255, 255, 255, .18));
}

.area-lang-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.area-lang-toggle .bi-globe2 {
    font-size: 1rem;
}

.area-lang-chevron {
    font-size: .7rem;
    opacity: .8;
    transition: transform .2s ease;
}

.area-lang-switcher[open] .area-lang-chevron {
    transform: rotate(180deg);
}

.area-lang-menu {
    position: absolute;
    top: calc(100% + .45rem);
    inset-inline-end: 0;
    z-index: 1060;
    min-width: 13rem;
    max-width: min(20rem, calc(100vw - 2rem));
    margin: 0;
    padding: .35rem;
    list-style: none;
    border: 1px solid var(--afro-border, rgba(0, 0, 0, .12));
    border-radius: var(--radius-lg, 14px);
    background: var(--afro-bg, #fff);
    color: var(--text, #1f2328);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22), 0 3px 8px rgba(0, 0, 0, .12);
}

.area-lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .7rem;
    border-radius: calc(var(--radius-lg, 14px) - 4px);
    color: inherit;
    text-decoration: none;
    transition: background-color .15s ease;
}

.area-lang-item:hover,
.area-lang-item:focus-visible {
    color: inherit;
    background: color-mix(in srgb, currentColor 8%, transparent);
    outline: none;
}

.area-lang-item.is-current {
    background: color-mix(in srgb, var(--afro-primary, currentColor) 12%, transparent);
}

.area-lang-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.area-lang-name {
    font-weight: 700;
    line-height: 1.25;
}

.area-lang-area {
    overflow: hidden;
    font-size: .78rem;
    opacity: .7;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.area-lang-check {
    flex: 0 0 auto;
    color: var(--afro-primary, currentColor);
    font-size: 1.1rem;
}

@media (max-width: 576px) {
    .area-lang-toggle {
        padding-inline: .55rem;
    }

    .area-lang-chevron {
        display: none;
    }
}

/* ============================================================
   Start page hint: "This website is also available in …"
   (VisitorLanguageHint). Uses the active theme colours.
   ============================================================ */
.visitor-lang-hint {
    position: relative;
    z-index: 50001;
    color: var(--text, #1f2328);
    background: color-mix(in srgb, var(--afro-primary, #0d6efd) 10%, var(--afro-bg, #fff));
    border-bottom: 1px solid color-mix(in srgb, var(--afro-primary, #0d6efd) 22%, transparent);
}

.visitor-lang-hint-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    padding-block: .6rem;
}

.visitor-lang-hint-icon {
    flex: 0 0 auto;
    color: var(--afro-primary, currentColor);
    font-size: 1.15rem;
}

.visitor-lang-hint-text {
    flex: 1 1 16rem;
    margin: 0;
    font-weight: 600;
}

.visitor-lang-hint-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.visitor-lang-hint-switch,
.visitor-lang-hint-stay {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.25rem;
    padding: .35rem 1rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.visitor-lang-hint-switch {
    color: var(--bs-primary-contrast, #fff);
    background: var(--afro-primary, #0d6efd);
    border: 1px solid var(--afro-primary, #0d6efd);
}

.visitor-lang-hint-switch:hover,
.visitor-lang-hint-switch:focus-visible {
    color: var(--bs-primary-contrast, #fff);
    background: color-mix(in srgb, var(--afro-primary, #0d6efd) 85%, #000);
}

.visitor-lang-hint-stay {
    color: inherit;
    background: transparent;
    border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}

.visitor-lang-hint-stay:hover,
.visitor-lang-hint-stay:focus-visible {
    color: inherit;
    background: color-mix(in srgb, currentColor 8%, transparent);
}

.visitor-lang-hint a:focus-visible {
    outline: 2px solid var(--afro-primary, currentColor);
    outline-offset: 2px;
}

.visitor-lang-hint[dir="rtl"] .visitor-lang-hint-switch .bi-arrow-right {
    transform: scaleX(-1);
}

/* Classic themes: compact top bar when no logo/title is shown (see themes-v2.css). */
.afro-topbar.is-brandless > .container {
    min-height: 0;
    padding-block: .35rem !important;
}

/* Article meta line (date, "updated on", author) – shared by lists and the article page. */
.article-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem 1rem;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

/* Article page print view: only title, meta and content (see ArticlePage.razor.css). */
@media print {
    body:has(.article-reader) :is(.afro-topbar, .site-footer, .cookie-banner-overlay, .area-language-switcher, .visitor-language-hint) {
        display: none !important;
    }
}

/* Pinned editor toolbar (UnifiedContentEditor): "overflow: hidden" on admin cards would turn them into
   scroll containers and stop the toolbar from sticking. "clip" looks the same but lets it stick. */
.admin-panel:has(.unified-editor.is-toolbar-pinned),
.card:has(.unified-editor.is-toolbar-pinned) {
    overflow: clip;
}
