        @import url('vendor/fonts.css');
        /* Metallische Premium-Optik (Referenz-Designsystem): dunkles Navy, silbrig-blaue Kanten, violette Akzente */
        :root {
            --line: rgba(150,180,230,.2); --line-strong: rgba(178,202,242,.36);
            --metal: linear-gradient(150deg, rgba(30,49,80,.9), rgba(13,23,42,.92) 46%, rgba(7,13,26,.94) 78%, rgba(16,28,50,.9));
            --metal-soft: linear-gradient(150deg, rgba(30,48,78,.74), rgba(8,15,28,.92) 60%);
            --metal-shadow: inset 0 1px 0 rgba(196,219,255,.14), inset 1px 0 0 rgba(160,186,236,.05), inset 0 -1px 0 rgba(0,0,0,.62), 0 26px 70px -18px rgba(0,0,0,.55);
            --sheen: linear-gradient(108deg, rgba(196,220,255,.09), transparent 26%, transparent 70%, rgba(196,220,255,.04));
        }
        body { color: #f4f7fb; font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-x: hidden;
            background:
              radial-gradient(circle at 80% 4%, rgba(66,108,200,.20), transparent 34%),
              radial-gradient(circle at 48% 58%, rgba(40,92,160,.15), transparent 40%),
              linear-gradient(135deg, #040810 0%, #0a1628 48%, #06101f 100%); }
        button, input, textarea, select, .font-serif { font-family: inherit !important; }

        /* Reversible matte-black theme. The default variables and styles above remain untouched. */
        html[data-theme="matte"] { background: #090909; color-scheme: dark; }
        html[data-theme="matte"] body {
            color: #e7e5e4;
            background: #090909;
        }
        html[data-theme="matte"] body::before { opacity: .035; mix-blend-mode: normal; }
        html[data-theme="matte"] {
            --line: rgba(245, 245, 244, .12);
            --line-strong: rgba(245, 245, 244, .2);
            --metal: #141414;
            --metal-soft: #101010;
            --metal-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 12px 32px rgba(0,0,0,.18);
            --sheen: none;
        }
        html[data-theme="matte"] .metal,
        html[data-theme="matte"] .snake-card,
        html[data-theme="matte"] .group-card,
        html[data-theme="matte"] .status-card,
        html[data-theme="matte"] .hero-card,
        html[data-theme="matte"] .sidebar-drawer,
        html[data-theme="matte"] .nav-rail {
            background: #141414;
            box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 12px 32px rgba(0,0,0,.18);
        }
        html[data-theme="matte"] .metal-ctrl,
        html[data-theme="matte"] #searchInput,
        html[data-theme="matte"] .lang-switcher { background: #171717 !important; }
        html[data-theme="matte"] .nav-rail,
        html[data-theme="matte"] .sidebar-drawer { border-color: rgba(245,245,244,.1); }
        html[data-theme="matte"] .sidebar-mode-toggle { background: #101010; border-color: rgba(245,245,244,.1); }
        html[data-theme="matte"] .sidebar-mode-btn.active { background: #292524; color: #fafaf9; box-shadow: none; }
        html[data-theme="matte"] .sidebar-taxonomy-card { background: #171717; border-color: rgba(245,245,244,.1); }
        html[data-theme="matte"] .nav-item.active,
        html[data-theme="matte"] .lang-btn.active,
        html[data-theme="matte"] .map-tgl.active {
            background: #262626;
            border-color: rgba(245,245,244,.2);
            box-shadow: none;
            color: #fafaf9;
        }
        html[data-theme="matte"] .topnav .nav-item.active,
        html[data-theme="matte"] .nav-header.active,
        html[data-theme="matte"] .eco-chip { color: #d6d3d1; }
        html[data-theme="matte"] .topnav .nav-item.active::after { background: #a8a29e; box-shadow: none; }
        html[data-theme="matte"] .snake-card:hover { border-color: rgba(245,245,244,.26); box-shadow: 0 14px 28px rgba(0,0,0,.24); }
        html[data-theme="matte"] .welfare-banner,
        html[data-theme="matte"] .source-tag { background: #292524; color: #d6d3d1; }
        html[data-theme="matte"] .bg-zinc-900,
        html[data-theme="matte"] .bg-zinc-900\/50,
        html[data-theme="matte"] .bg-black,
        html[data-theme="matte"] .bg-black\/10 { background-color: #151515 !important; }
        html[data-theme="matte"] #fbModal > div { background: #171717 !important; border-color: rgba(245,245,244,.12) !important; }
        html[data-theme="matte"] .text-violet-400,
        html[data-theme="matte"] .text-violet-500 { color: #d6d3d1 !important; }
        html { background: #090909; }
        /* sehr dezente gebürstete Metall-Textur über allem */
        body::before { content:""; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .12; mix-blend-mode: soft-light;
            background: repeating-linear-gradient(116deg, transparent 0 2px, rgba(200,220,255,.02) 2px 3px); }
        /* wiederverwendbare metallische Oberfläche */
        .metal { position: relative; background: var(--metal); border: 1px solid var(--line); box-shadow: var(--metal-shadow); }
        .metal::before { content:""; position:absolute; inset:0; border-radius: inherit; pointer-events:none; background: var(--sheen); }
        /* Kopfzeile als fein gefasste Premium-Leiste (silbrig-blaue Kantenlinie unten) */
        .topbar-bar { position: relative; padding-bottom: 14px; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(190,215,255,.06); }
        /* kleine metallische Bedienflächen (Sprach-Umschalter, Toggles) */
        .metal-ctrl { background: linear-gradient(160deg, rgba(28,46,76,.72), rgba(8,15,28,.9)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(190,215,255,.09), inset 0 -1px 0 rgba(0,0,0,.45); }
        /* Design: Schrift generell weißlich-hellgrau */
        .text-white { color: #f2f5f9 !important; }
        .text-zinc-300 { color: #cfd4db !important; }
        .text-zinc-500 { color: #9197a1 !important; }
        .glass { background: rgba(10, 12, 15, 0.95); backdrop-filter: blur(25px); border-bottom: 1px solid rgba(255,255,255,0.05); }

        .sidebar-scroll { }
        .mobile-sidebar-btn { display: none; align-items: center; justify-content: center; gap: 7px; min-height: 40px; white-space: nowrap; }
        .sidebar-backdrop { position: fixed; inset: 0; z-index: 2490; background: rgba(0,0,0,.62); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
        .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
        .sidebar-drawer { position: fixed; top: 0; right: 0; z-index: 2500; width: min(390px, 92vw); height: 100vh; padding: 18px; overflow: hidden;
            background: linear-gradient(180deg, rgba(13,20,33,.98), rgba(4,8,15,.98)); border-left: 1px solid var(--line);
            box-shadow: -22px 0 70px rgba(0,0,0,.45); transform: translateX(105%); transition: transform .24s ease; }
        .sidebar-drawer.open { transform: translateX(0); }
        .drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
        .drawer-close { width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #cbd5e1;
            background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
        body.drawer-lock { overflow: hidden; }

        /* Mobile/Tablet: Sidebar als Drawer; Inhalt bleibt einspaltig und gut tappbar */
        @media (max-width: 1023px) {
            .nav-header { padding: 14px 16px; }
            .sub-item { padding: 12px 16px 12px 28px; }
            #map { height: 340px; }
        }
        @media (max-width: 640px) {
            #map { height: 300px; }
        }

        .nav-header { padding: 11px 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; color: #64748b; border-bottom: 1px solid #16191d; transition: 0.2s; }
        .nav-header:hover { background: #111418; color: #fff; }
        .nav-header.active { color: #a8a29e; }
        .nav-header .label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .nav-header .arrow { color: #334155; font-size: 9px; }

        .sub-menu { display: none; background: #050608; }
        .sub-menu.open { display: block; }
        .sub-item { padding: 9px 16px 9px 28px; font-size: 10px; cursor: pointer; color: #64748b; border-bottom: 1px solid #0a0c0e; }
        .sub-item:hover { color: #a8a29e; background: #080a0c; }
        .sub-item .sci { font-style: italic; color: #475569; }

        .snake-card { position: relative; background: var(--metal); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: 0.3s; overflow: hidden; box-shadow: var(--metal-shadow); }
        .snake-card:hover { border-color: rgba(214,211,209,.45); transform: translateY(-3px); box-shadow: 0 22px 50px rgba(0,0,0,.46), 0 0 22px rgba(214,211,209,.10); }
        #searchInput { background: linear-gradient(145deg, rgba(20,31,48,.6), rgba(7,12,21,.85)) !important; border-color: var(--line) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }

        #map { height: 460px; width: 100%; border-radius: 24px; border: 1px solid #1f2937; }
        .tox-panel { border-left: 4px solid #ef4444; background: rgba(239, 68, 68, 0.05); padding: 20px; border-radius: 0 16px 16px 0; }
        .sdd-panel { border-left: 4px solid #f59e0b; background: rgba(245, 158, 11, 0.05); padding: 22px; border-radius: 0 16px 16px 0; }
        .sdd-h { color: #fbbf24; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 12px; }
        .sdd-b { color: #cbd5e1; font-size: 12px; line-height: 1.55; margin-top: 2px; }

        .welfare-banner { background: linear-gradient(110deg, rgba(140,178,255,.2), transparent 55%), linear-gradient(180deg, rgba(160,120,255,.78), rgba(96,72,210,.8)); color: #f2eeff; font-size: 9px; font-weight: 900; text-transform: uppercase; padding: 5px; text-align: center; letter-spacing: 1px; box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
        .source-tag { font-size: 8px; font-weight: 900; padding: 2px 5px; border-radius: 4px; background: #1a1d21; color: #4ade80; margin-left: 5px; }
        .venom-chip { font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(239,68,68,0.12); color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }
        .eco-chip { font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(214,211,209,0.1); color: #d6d3d1; border: 1px solid rgba(214,211,209,0.25); }
        .lang-btn { font-size: 10px; font-weight: 900; padding: 6px 10px; border-radius: 8px; color: #64748b; cursor: pointer; }
        .lang-btn.active { background: linear-gradient(110deg, rgba(140,178,255,.22), transparent 55%), linear-gradient(180deg, rgba(160,120,255,.8), rgba(96,72,210,.82)); color: #f2eeff; border: 1px solid rgba(166,188,240,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
        .map-tgl { background: #1a1d21; color: #64748b; border: 1px solid rgba(255,255,255,0.06); cursor: pointer; transition: 0.2s; }
        .map-tgl:hover { color: #fff; }
        .map-tgl.active { background: linear-gradient(110deg, rgba(140,178,255,.22), transparent 55%), linear-gradient(180deg, rgba(160,120,255,.8), rgba(96,72,210,.82)); color: #f2eeff; border-color: rgba(166,188,240,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }

        /* ===== Redesign: linke Nav-Leiste, Hero, Gruppen-Karten ===== */
        .app-shell { display: flex; align-items: flex-start; }
        /* Die Leiste bekommt keinen eigenen Scrollbereich mehr und klebt auch
           nicht. Sie ist eine gewoehnliche Spalte der Seite und scrollt mit ihr,
           damit es genau eine Bildlaufleiste gibt. Im Schubladen-Modus weiter
           unten ist ein eigener Bereich dagegen richtig, dort schwebt sie
           ueber der Seite. */
        .nav-rail { width: 248px; flex-shrink: 0; align-self: stretch; background: linear-gradient(180deg, rgba(13,20,33,.92), rgba(4,8,15,.96)); border-right: 1px solid var(--line);
            box-shadow: inset -1px 0 0 rgba(255,255,255,.03);
            display: flex; flex-direction: column; padding: 24px 16px; }
        .nav-rail .brand h1 { font-size: 1.15rem; font-weight: 900; font-style: italic; letter-spacing: -.03em; line-height: 1; }
        .nav-rail .brand p { font-size: 8px; letter-spacing: .32em; text-transform: uppercase; color: #6b7280; font-weight: 800; margin-top: 4px; }
        .sidebar-mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(4,8,15,.54); }
        .sidebar-mode-btn { min-width: 0; padding: 8px 6px; border-radius: 8px; color: #8f98a6; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; transition: .18s; }
        .sidebar-mode-btn:hover { color: #eef2f7; background: rgba(255,255,255,.05); }
        .sidebar-mode-btn.active { color: #f5f3ff; background: rgba(214,211,209,.2); box-shadow: inset 0 0 0 1px rgba(214,211,209,.4); }
        .sidebar-mode-panel { min-height: 0; }
        /* Platzhalterbereiche des Vereins: sichtbar, aber ohne Ziel */
        .verein-cat { display: flex; align-items: center; justify-content: space-between; gap: 8px;
            padding: 7px 10px; border-radius: 9px; border: 1px dashed rgba(255,255,255,.09);
            font-size: .74rem; font-weight: 700; color: #7f8794; cursor: default; margin-bottom: 5px; }
        .verein-cat .tag { font-size: 7px; letter-spacing: .12em; text-transform: uppercase; font-weight: 900;
            color: #6b7280; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; padding: 2px 5px; }
        .sidebar-mode-panel.hidden { display: none; }
        #sidebar-taxonomy-panel { flex: 1 1 auto; }
        #sidebar-association-panel { flex: 1 1 auto; display: flex; flex-direction: column; }
        #sidebar-association-panel.hidden { display: none; }
        .sidebar-taxonomy-card { background: rgba(5,9,15,.6); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
        .sidebar-taxonomy-empty { padding: 18px 10px; color: #8f98a6; font-size: 11px; line-height: 1.55; text-align: center; }
        /* Ein Rang ist eine Zeile: links der Begriff, rechts der Aufklapp-Pfeil. */
        .taxonomy-row { border-radius: 7px; }
        .taxonomy-row.current > div > .taxonomy-term { color: #f5f3ff; background: rgba(214,211,209,.16); }
        .taxonomy-row.current > div > .taxonomy-term .tx-name { font-weight: 900; }
        .taxonomy-term { flex: 1 1 auto; min-width: 0; text-align: left; padding: 5px 7px; border-radius: 7px;
            color: #c8cdd6; transition: .16s; }
        .taxonomy-term:hover { background: rgba(255,255,255,.06); color: #fff; }
        .taxonomy-term .tx-rank { display: block; font-size: 7px; font-weight: 900; letter-spacing: .1em;
            text-transform: uppercase; color: #7e8794; }
        .taxonomy-term .tx-name { display: block; font-size: 11px; font-style: italic; line-height: 1.3;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .taxonomy-caret { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; color: #8f98a6;
            font-size: 11px; line-height: 1; transition: transform .16s, color .16s, background .16s; }
        .taxonomy-caret:hover { color: #eef2f7; background: rgba(255,255,255,.07); }
        .taxonomy-caret.open { transform: rotate(180deg); color: #d6d3d1; }
        .nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: #9aa0ab;
            font-size: .88rem; font-weight: 600; cursor: pointer; transition: .18s; margin-bottom: 4px; border: 1px solid transparent; }
        .nav-item:hover { background: rgba(255,255,255,.045); color: #e5e7eb; }
        .nav-item.active { background: rgba(214,211,209,.12); color: #d6d3d1; border-color: rgba(214,211,209,.4); }
        .nav-item .ico { font-size: 1rem; width: 20px; text-align: center; }
        /* Kopfzeilen-Navigation (horizontal, Referenz-Stil mit aktiver Unterstreichung) */
        .topnav { display: flex; align-items: stretch; gap: 26px; flex-wrap: wrap; }
        .topnav .nav-item { position: relative; height: 46px; padding: 0; margin: 0; border: none; background: none; border-radius: 0;
            color: #c0c8d3; font-weight: 600; font-size: .92rem; }
        .topnav .nav-item:hover { background: none; color: #e7eaf0; }
        .topnav .nav-item.active { background: none; border: none; color: #b57cff; }
        .topnav .nav-item.active::after { content:""; position:absolute; left:0; right:0; bottom:0; height:2px; border-radius:2px;
            background: linear-gradient(90deg, #a8a29e, #d6d3d1); box-shadow: 0 0 16px rgba(214,211,209,.55); }
        /* Zweite Navigationsebene, direkt unter der Kante der Kopfzeile. */
        .subnav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: -14px 0 22px; }
        .subnav:empty { display: none; }
        .subnav-item { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0;
            padding: 10px 0; color: #9aa0ab; font-size: .82rem; font-weight: 700; cursor: pointer;
            border-bottom: 2px solid transparent; transition: .18s; }
        .subnav-item:hover { color: #e5e7eb; }
        .subnav-item.active { color: #d6d3d1; border-bottom-color: #a8a29e; }
        .subnav-item .tag { font-size: 7px; letter-spacing: .16em; text-transform: uppercase;
            padding: 2px 6px; border-radius: 999px; border: 1px dashed var(--line-strong); color: #6b7280; }
        .account-btn { cursor: pointer; }
        /* Vereinspunkte sind jetzt anklickbar, nicht mehr nur Beschriftung. */
        .verein-cat { width: 100%; background: none; text-align: left; cursor: pointer; }
        .verein-cat:hover { color: #d6d3d1; border-color: var(--line-strong); }
        /* Konto- und Inhaltsfenster */
        .acc-card, .ed-card { background: #141414; border: 1px solid rgba(245,245,244,.12);
            border-radius: 18px; padding: 24px; width: 100%; box-shadow: 0 26px 70px -18px rgba(0,0,0,.6);
            max-height: 86vh; overflow-y: auto; }
        .acc-card { max-width: 30rem; }
        .ed-card { max-width: 62rem; }
        .acc-lbl { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .14em;
            color: #8a8f98; margin: 14px 0 5px; }
        .acc-in { width: 100%; box-sizing: border-box; background: #000; color: #fafaf9; padding: 10px 12px;
            border: 1px solid #3f3f46; border-radius: 9px; font: inherit; font-size: .86rem; resize: vertical; }
        .acc-in:focus { outline: none; border-color: #78716c; }
        .acc-btn { width: 100%; margin-top: 18px; padding: 11px; border: 0; border-radius: 9px;
            background: #d6d3d1; color: #111; font-weight: 800; text-transform: uppercase;
            letter-spacing: .1em; font-size: .72rem; cursor: pointer; }
        .acc-btn:hover { background: #e7e5e4; }
        .acc-btn-sm { width: auto; margin-top: 0; padding: 8px 16px; }
        .acc-link { display: block; width: 100%; margin-top: 12px; background: none; border: 0;
            color: #8a8f98; font-size: .74rem; cursor: pointer; text-align: center; }
        .acc-link:hover { color: #d6d3d1; }
        .acc-news { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line-strong);
            border-radius: 11px; background: rgba(255,255,255,.02); }
        .acc-h { font-size: .64rem; text-transform: uppercase; letter-spacing: .16em; color: #8a8f98;
            font-weight: 900; margin: 22px 0 8px; }
        .acc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
        .acc-list li { border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 9px 11px;
            font-size: .76rem; color: #cfd4db; line-height: 1.55; }
        .acc-empty { font-size: .74rem; color: #6b7280; }
        .acc-row { display: inline-flex; gap: 8px; margin-top: 8px; }
        .acc-row button { background: #262626; color: #d6d3d1; border: 1px solid rgba(255,255,255,.12);
            border-radius: 7px; padding: 5px 11px; font-size: .68rem; font-weight: 800; cursor: pointer; }
        .acc-row button:hover { background: #333; }
        .acc-list li button { background: #262626; color: #d6d3d1; border: 1px solid rgba(255,255,255,.12);
            border-radius: 6px; padding: 3px 8px; font-size: .64rem; font-weight: 800; cursor: pointer; }
        /* Inhaltsfenster: eine Zeile je Feld, darin die drei Sprachen */
        .ed-sec { border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; margin-top: 14px; }
        .ed-sec:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
        .ed-h { font-size: .64rem; text-transform: uppercase; letter-spacing: .16em; color: #a8a29e;
            font-weight: 900; margin: 0 0 10px; }
        .ed-row { margin-bottom: 12px; }
        .ed-lbl { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em;
            color: #8a8f98; margin-bottom: 5px; }
        .ed-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
        .ed-cell { display: block; }
        .ed-cell > span { display: block; font-size: .58rem; font-weight: 900; color: #6b7280;
            letter-spacing: .14em; margin-bottom: 3px; }
        .ed-in { width: 100%; box-sizing: border-box; background: #000; color: #fafaf9; padding: 7px 9px;
            border: 1px solid #3f3f46; border-radius: 7px; font: inherit; font-size: .8rem; resize: vertical; }
        .ed-in:focus { outline: none; border-color: #78716c; }
        .ed-page { border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
        .ed-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
        .ed-ph { font-size: .66rem; color: #8a8f98; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
        .ed-page-btns button { background: #262626; color: #d6d3d1; border: 1px solid rgba(255,255,255,.12);
            border-radius: 6px; padding: 3px 9px; margin-left: 5px; font-size: .7rem; cursor: pointer; }
        .ed-page-btns button[disabled] { opacity: .35; cursor: default; }
        /* Stift und Vermerk an der Kategorie */
        .field-tool { margin-left: 10px; background: none; border: 0; color: #78716c; font-size: .58rem;
            font-weight: 900; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
            border-bottom: 1px dotted currentColor; }
        .field-tool:hover { color: #d6d3d1; }
        .editorial-tag { margin-left: 9px; font-size: .55rem; font-weight: 900; letter-spacing: .14em;
            text-transform: uppercase; color: #6b7280; border: 1px solid rgba(255,255,255,.14);
            border-radius: 5px; padding: 2px 6px; }
        @media (max-width: 700px) {
            .ed-tri { grid-template-columns: 1fr; }
            .acc-card, .ed-card { padding: 18px; border-radius: 14px; }
        }
        /* Vereinsseite: Ueberschrift, Text, und der Hinweis, wenn noch nichts drinsteht. */
        .page-body { overflow-wrap: anywhere; color: #cfd4db; font-size: .95rem; line-height: 1.75; max-width: 46rem; white-space: pre-wrap; }
        .page-empty { color: #6b7280; font-size: .82rem; margin-top: 18px; }
        .status-card { margin-top: auto; background: var(--metal); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -1px 0 rgba(0,0,0,.5); }
        .status-card .lbl { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: #6b7280; font-weight: 800; }
        .status-card .val { font-size: .82rem; font-weight: 800; color: #4ade80; margin-top: 4px; display: flex; align-items: center; gap: 8px; }
        .status-card .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 9px #4ade80; flex-shrink: 0; }

        /* Tierschutzverein-Block in der Nav-Leiste */
        .verein-banner { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgba(214,211,209,.18), rgba(214,211,209,.04));
            border: 1px solid rgba(214,211,209,.3); border-radius: 12px; padding: 11px 13px; margin-bottom: 9px; transition: .2s; }
        .verein-banner:hover { border-color: rgba(214,211,209,.6); }
        .verein-banner .vb-mark { font-size: 1.4rem; }
        /* Startseite des Vereins: eine Karte, sonst nichts */
        .verein-hero { background: var(--metal); border: 1px solid var(--line); border-radius: 20px;
            padding: 40px 32px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
        .verein-hero .vh-mark { font-size: 2.4rem; display: block; margin-bottom: 14px; }
        @media (max-width: 860px){ .verein-hero { padding: 28px 20px; border-radius: 16px; } }
        .verein-banner .vb-name { display: block; font-size: .78rem; font-weight: 900; color: #ece9f7; }
        .verein-banner .vb-sub { display: block; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: #9aa0ab; font-weight: 700; }
        /* Kalender kompakt für die Leiste */

        .hero-card { position: relative; background: var(--metal); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
            display: grid; grid-template-columns: minmax(0, 48%) 1fr; box-shadow: var(--metal-shadow); }
        .hero-card::before { content:""; position:absolute; inset:0; pointer-events:none; z-index:3; background: var(--sheen); }
        .hero-img-wrap { position: relative; overflow: hidden; min-height: 355px; }
        .hero-card .hero-img { height: 100%; width: 100%; min-height: 355px; object-fit: cover; background: #07101a; cursor: pointer; display: block; transform: scale(1.015); transition: transform .6s ease; }
        .hero-card:hover .hero-img { transform: scale(1.05); }
        .hero-img-wrap::after { content:""; position:absolute; inset:0; pointer-events:none;
            background: linear-gradient(90deg, transparent 58%, rgba(5,9,16,.85) 100%), linear-gradient(180deg, transparent 72%, rgba(0,0,0,.28)); }
        .hero-img-wrap .shine { position:absolute; inset:0; pointer-events:none; background: linear-gradient(115deg, rgba(255,255,255,.06), transparent 35%); }
        .hero-credit { position:absolute; z-index:2; right:14px; bottom:12px; color: rgba(255,255,255,.8); font-size: 11px; display:inline-flex; align-items:center; gap:6px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
        .hero-card .hero-body { padding: 42px 38px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
        .hero-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 10px; font-weight: 800;
            letter-spacing: .18em; text-transform: uppercase; color: #d6d3d1; background: rgba(41,37,36,.28);
            border: 1px solid rgba(214,211,209,.38); padding: 7px 13px; border-radius: 999px; margin-bottom: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
        .btn-primary { background: linear-gradient(110deg, rgba(245,245,244,.34), transparent 48%), linear-gradient(180deg, rgba(120,113,108,.58) 0%, rgba(87,83,78,.56) 52%, rgba(68,64,60,.62) 100%);
            color: #f2eeff; font-weight: 800; font-size: .9rem; padding: 12px 24px; border-radius: 12px; cursor: pointer; transition: .2s;
            border: 1px solid rgba(166,190,245,.52);
            box-shadow: inset 0 1px 0 rgba(200,220,255,.34), inset 0 -1px 0 rgba(0,0,0,.32), 0 10px 26px rgba(80,80,200,.2); }
        .btn-primary:hover { background: linear-gradient(110deg, rgba(160,200,255,.4), transparent 48%), linear-gradient(180deg, rgba(164,138,255,.68) 0%, rgba(124,100,238,.66) 52%, rgba(100,84,220,.7) 100%); transform: translateY(-1px); }
        .btn-outline { background: linear-gradient(180deg, rgba(20,27,39,.72), rgba(7,11,18,.92)); color: #d4d4d8; font-weight: 800; font-size: .9rem; padding: 12px 24px; border-radius: 12px; cursor: pointer; transition: .2s; border: 1px solid var(--line); }
        .btn-outline:hover { border-color: rgba(214,211,209,.7); color: #d6d3d1; transform: translateY(-1px); }
        button, a, input, textarea, .nav-item, .nav-header, .sub-item, .snake-card, .group-card, .lang-btn, .map-tgl, .btn-primary, .btn-outline, .verein-banner {
            touch-action: manipulation; -webkit-tap-highlight-color: transparent;
        }
        /* lilane Tailwind-Buttons (Termin buchen, Feedback, Rang-Labels) – leicht transparent, blau-metallischer Akzent */
        .bg-violet-500 { background: linear-gradient(110deg, rgba(245,245,244,.3), transparent 54%), linear-gradient(180deg, rgba(120,113,108,.6), rgba(68,64,60,.64)) !important;
            border: 1px solid rgba(166,188,240,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.28); }
        .bg-violet-500.text-black, .bg-violet-500.text-black > * { color: #f2eeff !important; }
        .bg-violet-500:hover { filter: brightness(1.12); }

        .group-card { position: relative; background: var(--metal); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px 17px; cursor: pointer;
            transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; min-height: 224px; box-shadow: var(--metal-shadow); }
        .group-card::before { content:""; position:absolute; inset:0; border-radius: inherit; pointer-events:none; background: var(--sheen); }
        .group-card:hover { border-color: rgba(214,211,209,.45); box-shadow: 0 24px 55px rgba(0,0,0,.48), 0 0 25px rgba(214,211,209,.10); transform: translateY(-5px); }
        /* Kontinent-/GPS-Silhouetten in den Geo-Kacheln (grün/türkis) */
        .geo-sil { width: 50px; height: 50px; margin-bottom: 16px; color: #35d69b; transition: transform .25s ease; }
        .geo-sil svg { width: 100%; height: 100%; display: block; }
        .group-card:hover .geo-sil { transform: scale(1.06); color: #4ee0aa; }
        .group-card .gc-badge { position: absolute; top: 20px; right: 20px; font-size: 8px; font-weight: 800; letter-spacing: .14em;
            text-transform: uppercase; color: #9aa0ab; border: 1px solid rgba(255,255,255,.12); padding: 4px 9px; border-radius: 999px; opacity: 0; transition: .2s; }
        .group-card:hover .gc-badge { opacity: 1; color: #d6d3d1; border-color: rgba(214,211,209,.4); }
        .search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #6b7280; font-size: 14px; pointer-events: none; }
        @media (max-width: 860px){
            .app-shell { display: block; }
            /* Als Schublade schwebt die Leiste ueber der Seite. Hier ist ein
               eigener Scrollbereich richtig, sonst waere der untere Teil des
               Taxonomiebaums nicht erreichbar. */
            .nav-rail { display: flex; position: fixed; top: 0; right: 0; z-index: 2500; width: min(390px, 92vw); height: 100vh;
                overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
                border-right: none; border-left: 1px solid var(--line); transform: translateX(105%); transition: transform .24s ease;
                box-shadow: -22px 0 70px rgba(0,0,0,.45); }
            .nav-rail::-webkit-scrollbar { display: none; }
            .nav-rail.open { transform: translateX(0); }
            main { width: 100%; padding: 14px !important; }
            .topbar-bar { position: sticky; top: 0; z-index: 1800; display: grid !important; grid-template-columns: minmax(0,1fr) auto auto;
                align-items: center; gap: 10px 12px; margin: -14px -14px 14px; padding: 12px 14px 10px;
                background: rgba(6,10,18,.94); backdrop-filter: blur(18px); }
            .topnav { grid-column: 1 / -1; order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding-bottom: 2px; scrollbar-width: none; }
            .topnav::-webkit-scrollbar { display: none; }
            .topnav .nav-item { flex: 0 0 auto; height: 40px; font-size: .82rem; }
            .lang-switcher { grid-column: 2; order: 1; justify-self: end; }
            .mobile-sidebar-btn { grid-column: 3; display: inline-flex; order: 2; justify-self: end; }
            .search-row { margin-bottom: 20px; }
            #searchInput { min-height: 48px; border-radius: 18px; font-size: 16px; }
            .hero-card { grid-template-columns: 1fr; }
            .hero-img-wrap { min-height: 230px; }
            .hero-card .hero-img { min-height: 230px; }
            .hero-img-wrap::after { background: linear-gradient(180deg, transparent 60%, rgba(5,9,16,.9)); }
        }
        @media (min-width: 861px){
            .sidebar-drawer, .sidebar-backdrop { display: none; }
        }

/* Fusszeile mit den Rechtsseiten. Sie sitzt am Ende des Dokuments, nicht fest
   am Bildrand: ein festgeklebter Streifen nimmt auf dem Handy zu viel Platz. */
.site-footer {
    display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.25rem;
    max-width: 1400px; margin: 3rem auto 0; padding: 1.1rem 1.5rem 1.6rem;
    border-top: 1px solid var(--line, rgba(150,180,230,.2));
    font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.site-footer .sf-name { color: #71717a; font-weight: 800; }
.site-footer .sf-links { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.site-footer .sf-link {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: #a1a1aa; font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.site-footer .sf-link:hover { color: #e7e5e4; text-decoration: underline; }
@media (max-width: 1023px) { .site-footer { padding-left: 1rem; padding-right: 1rem; } }


/* Quellenangabe der Karte. Leaflet setzt sie standardmaessig weiss auf schwarze
   Schrift, was auf der dunklen Karte wie ein Fehler aussieht. Kleiner und
   gedaempft, aber lesbar: sie darf nicht so weit zurueckgenommen werden, dass
   sie praktisch verschwindet, denn genau darauf bestehen beide Lizenzen. */
.leaflet-control-attribution {
    background: rgba(12, 12, 14, .72) !important;
    color: #a1a1aa !important;
    font-size: 9px; line-height: 1.5; padding: 1px 5px;
    border-radius: 4px 0 0 0;
}
.leaflet-control-attribution a { color: #d4d4d8 !important; text-decoration: underline; }
.leaflet-control-attribution a:hover { color: #fff !important; }
