/* ============================================================
   WebAdmin – Design
   Farben aus „Mein Farbschema“ (Adobe Color)
   ============================================================ */
:root {
    --gelb: #FFC80D;        /* Hauptakzent */
    --gelb-dunkel: #E8B000;
    --pink: #FF6A97;        /* Fehler & Wichtiges */
    --tuerkis: #9FFFF5;     /* Info, Status, Highlights */
    --creme: #FFEAAA;       /* Hintergrund */
    --grau: #7B7A80;        /* Rahmen, Nebentext */
    --text: #2B2A30;        /* dunkelste Stufe von #7B7A80 – für gute Lesbarkeit */

    --creme-50: rgba(255, 234, 170, .5);
    --grau-08: rgba(123, 122, 128, .08);
    --grau-15: rgba(123, 122, 128, .15);
    --grau-30: rgba(123, 122, 128, .30);
    --pink-15: rgba(255, 106, 151, .15);
    --pink-text: #C2245A;   /* Pink abgedunkelt, damit Text darauf lesbar bleibt */
    --tuerkis-40: rgba(159, 255, 245, .4);
    --tuerkis-text: #0B6E66;
    --flaeche: rgba(255, 253, 245, .78);
    --flaeche-voll: #FFFCF2;

    --radius: 14px;
    --radius-klein: 9px;
    --schatten: 0 1px 2px rgba(43, 42, 48, .05), 0 6px 24px -8px rgba(43, 42, 48, .12);
    --schatten-gross: 0 2px 4px rgba(43, 42, 48, .06), 0 20px 50px -18px rgba(43, 42, 48, .28);
    --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; font: 15px/1.55 var(--schrift); color: var(--text);
    background: var(--creme);
    background-image:
        radial-gradient(900px 500px at 100% -10%, rgba(255, 200, 13, .22), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(159, 255, 245, .35), transparent 60%);
    background-attachment: fixed;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 750; }
h2 { font-size: 1.1rem; font-weight: 700; }
p { margin: .4em 0; }
code, kbd { font-family: var(--mono); font-size: .86em; background: var(--grau-08); padding: .1em .4em; border-radius: 5px; }
kbd { border: 1px solid var(--grau-30); background: rgba(255,255,255,.5); font-size: .72em; }
small { font-size: .82em; }
[hidden], .versteckt { display: none !important; }
::selection { background: var(--gelb); color: var(--text); }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: 6px; }

.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ic-xl { width: 34px; height: 34px; }
.gedaempft { color: var(--grau); }
.klein { font-size: .88rem; }
.rechts { text-align: right; }
.inline { display: inline; }

/* ---------- Knöpfe ---------- */
.knopf {
    display: inline-flex; align-items: center; gap: .45em; justify-content: center;
    font: inherit; font-weight: 600; font-size: .92rem; line-height: 1;
    padding: .7em 1.05em; border-radius: 10px; cursor: pointer; text-decoration: none; white-space: nowrap;
    background: var(--flaeche-voll); color: var(--text); border: 1px solid var(--grau-30);
    transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.knopf:hover { border-color: var(--grau); background: #fff; }
.knopf:active { transform: translateY(1px); }
.knopf-primaer { background: var(--gelb); border-color: rgba(43,42,48,.12); box-shadow: 0 2px 0 rgba(43,42,48,.12); }
.knopf-primaer:hover { background: var(--gelb-dunkel); border-color: rgba(43,42,48,.2); }
.knopf-leise { background: transparent; border-color: transparent; }
.knopf-leise:hover { background: var(--grau-08); border-color: transparent; }
.knopf-gefahr-leise { background: transparent; border-color: transparent; color: var(--pink-text); }
.knopf-gefahr-leise:hover { background: var(--pink-15); }
.knopf-klein { padding: .5em .7em; font-size: .85rem; border-radius: 8px; }
.knopf-breit { width: 100%; padding: .9em; }
.knopfgruppe { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.knopfgruppe.mitte { justify-content: center; }

/* ---------- Marker / Badges ---------- */
.marker {
    display: inline-flex; align-items: center; gap: .3em; font: inherit; font-size: .76rem; font-weight: 650;
    padding: .28em .65em; border-radius: 999px; border: 1px solid transparent; line-height: 1.2; white-space: nowrap;
}
button.marker { cursor: pointer; }
.marker .ic { width: 13px; height: 13px; vertical-align: -2px; }
.marker-tuerkis { background: var(--tuerkis); color: var(--tuerkis-text); border-color: rgba(11,110,102,.18); }
.marker-grau { background: var(--grau-15); color: #5B5A60; }
.marker-pink { background: var(--pink-15); color: var(--pink-text); border-color: rgba(255,106,151,.35); }
button.marker:hover { filter: brightness(.96); border-color: var(--grau); }

/* ---------- Meldungen ---------- */
.meldung {
    position: relative; padding: .8rem 2.6rem .8rem 1rem; border-radius: var(--radius-klein); margin: 0 0 1rem;
    background: var(--tuerkis-40); border: 1px solid rgba(11,110,102,.2); border-left: 4px solid var(--tuerkis-text);
}
.meldung-fehler { background: var(--pink-15); border-color: rgba(255,106,151,.4); border-left-color: var(--pink); color: #7A1238; font-weight: 550; }
.meldung-info { background: rgba(255,255,255,.55); border-color: var(--grau-30); border-left-color: var(--gelb); }
.meldung-zu { position: absolute; right: .5rem; top: .45rem; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: inherit; opacity: .55; padding: .1rem .4rem; }
.meldung-zu:hover { opacity: 1; }
.meldungen:empty { display: none; }

/* ---------- Kopf / Navigation ---------- */
.kopf {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
    padding: .7rem clamp(1rem, 3vw, 2rem); background: rgba(255, 244, 205, .82);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--grau-15);
}
.kopf-schmal { justify-content: space-between; }
.marke { display: flex; align-items: center; gap: .6rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.marke em { font-style: normal; font-weight: 600; color: var(--grau); }
.marke-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--gelb); color: var(--text); box-shadow: inset 0 -2px 0 rgba(43,42,48,.12); }
.marke-logo svg { width: 22px; height: 22px; }
.marke-logo.gross { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 1.2rem; }
.marke-logo.gross svg { width: 40px; height: 40px; }
.hauptnav { display: flex; gap: .2rem; margin-left: 1rem; overflow-x: auto; scrollbar-width: none; }
.hauptnav::-webkit-scrollbar { display: none; }
.hauptnav a { display: flex; align-items: center; gap: .45rem; padding: .55rem .8rem; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: .92rem; color: #4A4950; white-space: nowrap; }
.hauptnav a:hover { background: var(--grau-08); color: var(--text); }
.hauptnav a.aktiv { background: var(--text); color: var(--gelb); }
.kopf-rechts { margin-left: auto; display: flex; gap: .3rem; align-items: center; }

/* ---------- Seite ---------- */
.seite { max-width: 1180px; margin: 0 auto; padding: clamp(1.2rem, 3vw, 2.2rem) clamp(1rem, 3vw, 2rem) 4rem; }
.seite-schmal { max-width: 860px; }
.seitenkopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.ueberzeile { margin: 0 0 .25rem; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--grau); }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: center; margin: 1.8rem 0 .7rem; }
.abschnitt-kopf:first-child { margin-top: 0; }
.gruppen-titel { margin: 2rem 0 .8rem; display: flex; align-items: center; gap: .5rem; }
.zaehler { font-size: .75rem; background: var(--grau-15); color: #5B5A60; border-radius: 99px; padding: .15em .6em; }
.spalten { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }

.karte { background: var(--flaeche); border: 1px solid var(--grau-15); border-radius: var(--radius); box-shadow: var(--schatten); }
.formular { padding: 1.4rem; display: grid; gap: 1rem; align-content: start; }
.formular h2 { margin-bottom: .2rem; }
.formular .knopf { justify-self: start; }

/* ---------- Kacheln ---------- */
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.8rem; }
.kachel { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--grau-15); box-shadow: var(--schatten); }
.kachel-gelb { background: var(--gelb); border-color: rgba(43,42,48,.1); }
.kachel-tuerkis { background: var(--tuerkis); border-color: rgba(11,110,102,.15); }
.kachel-zahl { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.kachel-text { display: flex; flex-direction: column; font-weight: 600; line-height: 1.3; }
.kachel-text small { font-weight: 500; opacity: .7; }

/* ---------- Bereiche ---------- */
.bereiche { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.bereich { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; padding: .9rem 1rem; text-decoration: none; background: var(--flaeche); border: 1px solid var(--grau-15); border-radius: 12px; transition: transform .12s, border-color .12s, box-shadow .12s; }
.bereich .ic { grid-row: span 2; width: 26px; height: 26px; align-self: center; color: var(--gelb-dunkel); }
.bereich-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bereich-info { font-size: .8rem; color: var(--grau); }
.bereich:hover { transform: translateY(-2px); border-color: var(--gelb); box-shadow: var(--schatten); }

/* ---------- Listen ---------- */
.liste { padding: .35rem; }
.zeile { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 9px; text-decoration: none; }
.zeile + .zeile { border-top: 1px solid var(--grau-08); }
a.zeile:hover, .zeile:hover { background: rgba(255,255,255,.6); }
.zeile > .ic { color: var(--grau); }
.zeile-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; text-decoration: none; }
a.zeile-name:hover { text-decoration: underline; text-decoration-color: var(--gelb); text-decoration-thickness: 2px; }
.zeile-info { font-size: .82rem; color: var(--grau); white-space: nowrap; }
.zeile-log .zeile-name { font-weight: 450; white-space: normal; font-size: .9rem; }
.leer { text-align: center; color: var(--grau); padding: 1.4rem 1rem; margin: 0; }
.leer-karte { text-align: center; padding: 3rem 1.5rem; display: grid; justify-items: center; gap: .5rem; }
.gross-icon { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--tuerkis); color: var(--tuerkis-text); margin-bottom: .6rem; }
.gross-icon.gelb { background: var(--gelb); color: var(--text); }

/* ---------- Tabellen ---------- */
.tabelle-wrap { overflow: visible; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--grau); font-weight: 700; padding: .8rem 1rem; border-bottom: 1px solid var(--grau-15); }
.tabelle th.rechts { text-align: right; }
.tabelle td { padding: .55rem 1rem; border-bottom: 1px solid var(--grau-08); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tbody tr:hover { background: rgba(255,255,255,.55); }
.name-zelle { display: flex; align-items: center; gap: .7rem; min-width: 220px; }
.name-zelle a { text-decoration: none; font-weight: 600; word-break: break-word; }
.name-zelle a:hover { text-decoration: underline; text-decoration-color: var(--gelb); text-decoration-thickness: 2px; }
.datei-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--grau-08); color: #5B5A60; flex: none; }
.datei-icon.ist-ordner { background: rgba(255,200,13,.28); color: #8A6400; }
.aktionen { white-space: nowrap; }
.aktionen > * { vertical-align: middle; }
.zeile-hoch td { padding: .5rem 1rem; }
.zeile-hoch a { display: inline-flex; gap: .5rem; align-items: center; color: var(--grau); font-weight: 600; text-decoration: none; font-size: .9rem; }
.pfad { font-family: var(--mono); font-size: .82rem; color: #5B5A60; text-decoration: none; }
.pfad:hover { text-decoration: underline; }

/* ---------- Ausklapp-Menü ---------- */
.menue { position: relative; display: inline-block; }
.menue summary { list-style: none; letter-spacing: .1em; }
.menue summary::-webkit-details-marker { display: none; }
.menue[open] summary { background: var(--grau-15); }
.menue-inhalt { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 210px; padding: .35rem; background: var(--flaeche-voll); border: 1px solid var(--grau-15); border-radius: 12px; box-shadow: var(--schatten-gross); text-align: left; }
.menue-inhalt a, .menue-knopf { display: flex; width: 100%; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 8px; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--text); text-decoration: none; cursor: pointer; text-align: left; }
.menue-inhalt form { display: block; }
.menue-inhalt a:hover, .menue-knopf:hover { background: var(--creme-50); }
.menue-knopf.gefahr { color: var(--pink-text); }
.menue-knopf.gefahr:hover { background: var(--pink-15); }

/* ---------- Brotkrumen ---------- */
.brotkrumen { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: 1.3rem; font-weight: 700; }
.brotkrumen a { text-decoration: none; padding: .1rem .3rem; border-radius: 6px; display: inline-flex; align-items: center; gap: .35rem; }
.brotkrumen a:hover { background: var(--grau-08); }
.brotkrumen a:last-child { background: rgba(255,200,13,.35); }
.trenner { color: var(--grau-30); }

/* ---------- Upload ---------- */
.upload { margin-bottom: 1.5rem; }
.upload-zone { border: 2px dashed var(--grau-30); border-radius: var(--radius); padding: 1.5rem; text-align: center; background: rgba(255,255,255,.35); transition: background .15s, border-color .15s; }
.upload-zone > .ic { color: var(--grau); margin-bottom: .2rem; }
.upload-zone.drueber { border-color: var(--gelb-dunkel); background: rgba(255,200,13,.18); }
.upload-optionen { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin-top: 1rem; }
.hinweis { font-size: .8rem; color: var(--grau); margin: .7rem 0 0; }
.upload-liste { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .35rem; }
.upload-liste:empty { display: none; }
.upload-eintrag { display: grid; grid-template-columns: 1fr auto; gap: .25rem .8rem; padding: .55rem .8rem; background: var(--flaeche); border: 1px solid var(--grau-15); border-radius: 10px; font-size: .88rem; }
.upload-eintrag .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.upload-eintrag .status { color: var(--grau); font-variant-numeric: tabular-nums; }
.balken { grid-column: 1 / -1; height: 5px; border-radius: 9px; background: var(--grau-15); overflow: hidden; }
.balken span { display: block; height: 100%; width: 0; background: var(--gelb); transition: width .2s; }
.upload-eintrag.fertig .balken span { background: var(--tuerkis-text); }
.upload-eintrag.fertig .status { color: var(--tuerkis-text); font-weight: 650; }
.upload-eintrag.fehler { border-color: rgba(255,106,151,.5); background: var(--pink-15); }
.upload-eintrag.fehler .balken span { background: var(--pink); }
.upload-eintrag.fehler .status { color: var(--pink-text); font-weight: 650; white-space: normal; }

/* ---------- Formulare ---------- */
.feld { display: grid; gap: .35rem; }
.feld > span { font-size: .85rem; font-weight: 650; }
.feld small { font-weight: 450; color: var(--grau); }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input:not([type=checkbox]):not([type=file]), textarea, select {
    width: 100%; font: inherit; color: var(--text); padding: .7rem .85rem; border-radius: 10px;
    border: 1px solid var(--grau-30); background: rgba(255,255,255,.85); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gelb-dunkel); box-shadow: 0 0 0 3px rgba(255,200,13,.4); }
textarea { resize: vertical; }
.schalter { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; user-select: none; }
.schalter input { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 23px; border-radius: 99px; background: var(--grau-30); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.schalter input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.schalter input:checked { background: var(--gelb-dunkel); }
.schalter input:checked::after { transform: translateX(17px); }
.schalter input:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.schalter > span { display: grid; font-weight: 550; padding-top: 1px; }
.schalter small { color: var(--grau); font-weight: 450; }
.schalter.klein { font-size: .88rem; align-items: center; }
.schalter.klein input { width: 34px; height: 20px; }
.schalter.klein input::after { width: 14px; height: 14px; }
.schalter.klein input:checked::after { transform: translateX(14px); }

/* ---------- Dialoge ---------- */
.dialog { border: 0; padding: 0; border-radius: 18px; width: min(460px, calc(100vw - 2rem)); background: var(--flaeche-voll); color: var(--text); box-shadow: var(--schatten-gross); }
.dialog-breit { width: min(640px, calc(100vw - 2rem)); }
.dialog::backdrop { background: rgba(43,42,48,.38); backdrop-filter: blur(3px); }
.dialog form { padding: 1.5rem; display: grid; gap: 1rem; }
.dialog h2 { font-size: 1.25rem; }
.dialog-knoepfe { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .3rem; }
.dialog[open] { animation: rein .18s ease-out; }
@keyframes rein { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- Editor ---------- */
.editor textarea { min-height: 68vh; font-family: var(--mono); font-size: .88rem; line-height: 1.6; tab-size: 4; background: #2B2A30; color: #FFF4D0; border-color: #2B2A30; border-radius: var(--radius); padding: 1.1rem; white-space: pre; overflow: auto; }
.editor textarea:focus { box-shadow: 0 0 0 3px rgba(255,200,13,.55); }

/* ---------- System ---------- */
.system td:first-child { font-weight: 600; width: 42%; }
.system small { color: var(--grau); }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .6rem; background: var(--grau-30); }
.check-ok .punkt { background: #19B5A5; box-shadow: 0 0 0 3px var(--tuerkis-40); }
.check-warn .punkt { background: var(--gelb-dunkel); box-shadow: 0 0 0 3px rgba(255,200,13,.3); }
.check-fehler .punkt { background: var(--pink); box-shadow: 0 0 0 3px var(--pink-15); }
.check-fehler td { color: #7A1238; }
.check-wartet .punkt { animation: puls 1s infinite alternate; }
@keyframes puls { to { opacity: .3; } }

/* ---------- Login / Einrichtung ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-content: center; padding: 2rem 1rem; }
.login-karte { width: min(400px, calc(100vw - 2rem)); padding: 2rem; display: grid; gap: 1rem; text-align: left; }
.login-karte .gross-icon { margin: 0 auto .2rem; }
.login-karte h1, .login-karte > p.gedaempft { text-align: center; }
.login-karte h1 { font-size: 1.5rem; }
.auth-fuss { text-align: center; margin-top: 1.2rem; }
.auth-fuss a { color: var(--grau); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; font-size: .9rem; }
.auth-fuss a:hover { color: var(--text); }

/* ---------- Startseite ---------- */
.startseite { display: flex; flex-direction: column; overflow-x: hidden; }
.start { flex: 1; display: grid; align-content: center; justify-items: center; padding: 3rem 1.2rem; position: relative; z-index: 1; }
.start-kopf { text-align: center; margin-bottom: 2.6rem; }
.start-kopf h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; }
.start-kopf p { color: #5B5A60; font-size: 1.1rem; margin-top: .5rem; }
.wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 1.3rem; width: 100%; justify-content: center; }
.wahl-karte {
    position: relative; display: grid; gap: .5rem; padding: 2rem 1.8rem 1.8rem; text-decoration: none; border-radius: 22px;
    background: var(--flaeche); border: 1px solid var(--grau-15); box-shadow: var(--schatten);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.wahl-karte:hover, .wahl-karte:focus-visible { transform: translateY(-4px); box-shadow: var(--schatten-gross); }
.wahl-besucher:hover { border-color: #3CD6C6; }
.wahl-admin:hover { border-color: var(--gelb-dunkel); }
.wahl-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: .6rem; }
.wahl-besucher .wahl-icon { background: var(--tuerkis); color: var(--tuerkis-text); }
.wahl-admin .wahl-icon { background: var(--gelb); color: var(--text); }
.wahl-titel { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.wahl-text { color: #5B5A60; }
.wahl-pfeil { position: absolute; top: 1.8rem; right: 1.6rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grau-08); transition: background .18s, transform .18s; }
.wahl-karte:hover .wahl-pfeil { transform: translateX(3px); background: var(--text); color: var(--creme); }
.fuss { text-align: center; padding: 1.5rem; font-size: .85rem; color: var(--grau); position: relative; z-index: 1; }
.deko span { position: fixed; border-radius: 50%; filter: blur(2px); z-index: 0; pointer-events: none; }
.deko span:nth-child(1) { width: 340px; height: 340px; right: -110px; top: -90px; background: rgba(255,200,13,.35); }
.deko span:nth-child(2) { width: 220px; height: 220px; left: -70px; bottom: 8%; background: rgba(159,255,245,.55); }
.deko span:nth-child(3) { width: 90px; height: 90px; left: 14%; top: 12%; background: rgba(255,106,151,.18); }

/* ---------- Besucher ---------- */
.suche { position: relative; display: block; width: min(300px, 100%); }
.suche .ic { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--grau); }
.suche input { padding-left: 2.4rem !important; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .5rem; }
.chip { font: inherit; font-size: .88rem; font-weight: 600; padding: .45em 1em; border-radius: 99px; border: 1px solid var(--grau-30); background: rgba(255,255,255,.5); cursor: pointer; color: var(--text); }
.chip:hover { border-color: var(--grau); }
.chip.aktiv { background: var(--text); color: var(--gelb); border-color: var(--text); }
.projekte { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.projekt { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem; background: var(--flaeche); border: 1px solid var(--grau-15); border-radius: var(--radius); box-shadow: var(--schatten); transition: transform .15s, box-shadow .15s, border-color .15s; }
.projekt:hover { transform: translateY(-3px); box-shadow: var(--schatten-gross); border-color: var(--gelb); }
.projekt-kopf { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.projekt-icon + .marker { margin-left: auto; }
.projekt-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grau-15); }
.projekt-icon .ic { width: 22px; height: 22px; }
.projekt-icon.typ-webapp { background: var(--gelb); }
.projekt-icon.typ-ordner { background: var(--tuerkis); color: var(--tuerkis-text); }
.projekt h3 { font-size: 1.1rem; }
.projekt h3 a { text-decoration: none; }
.projekt h3 a:hover { text-decoration: underline; text-decoration-color: var(--gelb); text-decoration-thickness: 2px; }
.projekt p { color: #5B5A60; font-size: .92rem; margin: 0; }
.projekt-fuss { margin-top: auto; padding-top: .7rem; display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
    .spalten { grid-template-columns: 1fr; }
    .nur-breit { display: none !important; }
    .hauptnav span { display: none; }
    .hauptnav a { padding: .6rem; }
}
@media (max-width: 640px) {
    .kacheln { grid-template-columns: 1fr; }
    .wahl { grid-template-columns: 1fr; max-width: 420px; }
    .feld-reihe { grid-template-columns: 1fr; }
    .kopf { gap: .4rem; flex-wrap: wrap; }
    .hauptnav { order: 3; width: 100%; margin: 0; }
    .hauptnav span { display: inline; }
    .marke > span:last-child { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
    .tabelle td, .tabelle th { padding-left: .6rem; padding-right: .6rem; }
    .name-zelle { min-width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
.tabelle-wrap + .spalten, .tabelle-wrap + .tabelle-wrap { margin-top: 1.5rem; }
