/* Private Ablage – Oberfläche.
   Kein Framework, keine Webfonts, kein CDN: Die Seite lädt auch dann, wenn
   irgendein fremder Dienst gerade nicht mag, und verrät keine Adresse nach
   außen. Deshalb kommt die CSP ohne 'unsafe-inline' für Skripte aus.

   Farbe: Das Grün #2f6f4f ist gesetzt und bleibt. Alles andere darum herum ist
   bewusst zurückhaltend – die Inhalte sind bunt genug. */

:root {
    color-scheme: light dark;

    --gruen-900: #1d4a34;
    --gruen-700: #2f6f4f;   /* die Hausfarbe */
    --gruen-500: #4a9c72;
    --gruen-100: #e7f1eb;

    --grund:     #f4f6f5;
    --flaeche:   #ffffff;
    --flaeche-2: #fafbfa;
    --rand:      #e3e7e5;
    --rand-stark:#cfd6d2;
    --text:      #16211c;
    --leise:     #63706a;
    --akzent:      var(--gruen-700);
    --akzent-text: #ffffff;
    --warn:      #a4341f;
    --warn-grund:#fdeeea;

    --schatten-1: 0 1px 2px rgba(16, 30, 24, .05);
    --schatten-2: 0 2px 4px rgba(16, 30, 24, .06), 0 8px 20px rgba(16, 30, 24, .07);
    --schatten-3: 0 10px 40px rgba(16, 30, 24, .18);

    --radius:   10px;
    --radius-s: 7px;
    --radius-l: 16px;

    --tempo: .16s cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --gruen-100: #1a2b22;
        --grund:     #101412;
        --flaeche:   #181d1a;
        --flaeche-2: #1e2521;
        --rand:      #2a322d;
        --rand-stark:#3b453f;
        --text:      #e6ebe8;
        --leise:     #93a099;
        --akzent:      var(--gruen-500);
        --akzent-text: #08130d;
        --warn:      #e58a72;
        --warn-grund:#2a1a16;

        --schatten-1: none;
        --schatten-2: 0 2px 8px rgba(0, 0, 0, .35);
        --schatten-3: 0 10px 40px rgba(0, 0, 0, .55);
    }
}

* { box-sizing: border-box; }

/* ⚠️ Diese Regel trägt die ganze Oberfläche.
   Der Browser versteckt ein Element mit dem Attribut `hidden` über die
   Standardregel `[hidden] { display: none }` – die aber verliert gegen jede
   eigene display-Angabe. `.mitte` setzt `display: flex`, und damit blieb die
   Anmeldemaske nach erfolgreicher Anmeldung stehen, während die Anwendung
   unsichtbar darunter lag (`.mitte` ist 100vh hoch). Von außen sah es aus, als
   käme man nicht herein – tatsächlich war die Anmeldung längst durch.
   Am 05.09.2026 genau so passiert. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--grund);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

h1 { font-size: 1.3rem;  margin: 0 0 .4rem; letter-spacing: -.01em; }
h2 { font-size: 1.02rem; margin: 0 0 .7rem; letter-spacing: -.005em; }

a { color: var(--akzent); }

/* Sichtbar nur für Bildschirmleser. */
.nur-vorlesen {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------- Bausteine -- */

button, .knopfartig {
    font: inherit;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    border: 1px solid var(--akzent);
    border-radius: var(--radius-s);
    background: var(--akzent);
    color: var(--akzent-text);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--tempo), border-color var(--tempo),
                color var(--tempo), box-shadow var(--tempo), transform var(--tempo);
}
button:hover, .knopfartig:hover { background: var(--gruen-900); border-color: var(--gruen-900); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: default; transform: none; }

button:focus-visible, .knopfartig:focus-visible, input:focus-visible,
select:focus-visible, a:focus-visible {
    outline: 2px solid var(--akzent);
    outline-offset: 2px;
}

button.leise, .knopfartig.leise {
    background: var(--flaeche);
    color: var(--leise);
    border-color: var(--rand-stark);
}
button.leise:hover, .knopfartig.leise:hover {
    background: var(--flaeche-2);
    color: var(--text);
    border-color: var(--leise);
}

button.gefahr { background: transparent; border-color: transparent; color: var(--warn); }
button.gefahr:hover { background: var(--warn-grund); border-color: var(--warn-grund); color: var(--warn); }

button.breit { width: 100%; justify-content: center; padding: .6rem; margin-top: .3rem; }

button.nur-symbol { padding: .45rem; }
button svg, .knopfartig svg { width: 17px; height: 17px; flex: none; }

/* Alle Symbole werden als Strich gezeichnet – eine Quelle für die Optik. */
svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

input, select, textarea {
    font: inherit;
    width: 100%;
    padding: .48rem .65rem;
    border: 1px solid var(--rand-stark);
    border-radius: var(--radius-s);
    background: var(--flaeche);
    color: var(--text);
    transition: border-color var(--tempo), box-shadow var(--tempo);
}
input:focus, select:focus {
    border-color: var(--akzent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 18%, transparent);
    outline: none;
}
input[type="checkbox"] { width: auto; }
select { cursor: pointer; }

label {
    display: block;
    margin: .8rem 0;
    color: var(--leise);
    font-size: .87rem;
    font-weight: 500;
}
label input, label select { margin-top: .3rem; font-weight: 400; color: var(--text); }
label small { font-weight: 400; }

.karte {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    box-shadow: var(--schatten-1);
    padding: 1.2rem 1.3rem;
}

.mitte {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.schmal { width: min(380px, 100%); box-shadow: var(--schatten-2); }

.hinweis { color: var(--leise); font-size: .87rem; margin: .2rem 0 1rem; }
.fehler  { color: var(--warn); font-size: .87rem; margin: .6rem 0 0; }

.marke-punkt {
    width: 26px; height: 26px; flex: none;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--gruen-500), var(--gruen-700));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.anmelde-marke { display: flex; align-items: center; gap: .6rem; margin-bottom: .2rem; }
.anmelde-marke h1 { margin: 0; }

.ladepunkte { display: flex; gap: .4rem; }
.ladepunkte span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--akzent);
    animation: huepf 1.1s infinite ease-in-out;
}
.ladepunkte span:nth-child(2) { animation-delay: .15s; }
.ladepunkte span:nth-child(3) { animation-delay: .3s; }
@keyframes huepf {
    0%, 80%, 100% { opacity: .25; transform: translateY(0); }
    40%           { opacity: 1;   transform: translateY(-5px); }
}

/* ---------------------------------------------------------------- Kopf --- */

header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: .6rem 1.1rem;
    background: color-mix(in srgb, var(--flaeche) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(10px);
    border-bottom: 1px solid var(--rand);
    position: sticky;
    top: 0;
    z-index: 20;
    flex-wrap: wrap;
}
.marke { display: flex; align-items: center; gap: .55rem; font-weight: 650; letter-spacing: -.01em; }

.reiter-leiste {
    display: flex;
    gap: .15rem;
    background: var(--grund);
    padding: .18rem;
    border-radius: var(--radius-s);
}
.reiter {
    background: transparent;
    color: var(--leise);
    border-color: transparent;
    padding: .32rem .8rem;
    font-weight: 500;
}
.reiter:hover { background: transparent; color: var(--text); border-color: transparent; }
.reiter.aktiv {
    background: var(--flaeche);
    color: var(--text);
    border-color: transparent;
    box-shadow: var(--schatten-1);
}

header .rechts { margin-left: auto; display: flex; align-items: center; gap: .6rem; }

.suchfeld { position: relative; }
.suchfeld svg {
    position: absolute; left: .6rem; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--leise); pointer-events: none;
}
.suchfeld input { width: 200px; padding-left: 2rem; background: var(--grund); border-color: transparent; }
.suchfeld input:focus { background: var(--flaeche); width: 240px; }

.benutzerknopf {
    background: transparent; border-color: transparent; color: var(--text);
    padding: .25rem .5rem .25rem .25rem; gap: .5rem; font-weight: 500;
}
.benutzerknopf:hover { background: var(--grund); border-color: transparent; }
.avatar {
    width: 28px; height: 28px; flex: none;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gruen-500), var(--gruen-700));
    color: #fff;
    display: grid; place-items: center;
    font-size: .76rem; font-weight: 650; letter-spacing: .02em;
}
.wer { font-size: .89rem; }

/* Menüs (Benutzer, Neu, Zeilenaktionen) */
.menuehuelle { position: relative; }
.menue {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    min-width: 190px;
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    box-shadow: var(--schatten-2);
    padding: .3rem;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    animation: aufklappen .13s ease-out;
}
.menue.rechtsbuendig { left: auto; right: 0; }
.menue button {
    background: transparent; border-color: transparent; color: var(--text);
    justify-content: flex-start; width: 100%;
    padding: .45rem .6rem; font-weight: 400; border-radius: var(--radius-s);
}
.menue button:hover { background: var(--grund); border-color: transparent; }
.menue button.gefahr { color: var(--warn); }
.menue button.gefahr:hover { background: var(--warn-grund); }
.menue hr { border: none; border-top: 1px solid var(--rand); margin: .25rem .3rem; }

@keyframes aufklappen {
    from { opacity: 0; transform: translateY(-4px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

main { padding: 1.4rem 1.1rem 3rem; max-width: 1080px; margin: 0 auto; }

/* --------------------------------------------------------------- Ablage -- */

.leiste {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.leiste h2 { margin: 0; }
.werkzeuge { margin-left: auto; display: flex; gap: .45rem; align-items: center; }
.sortierwahl select { width: auto; padding: .42rem 1.8rem .42rem .6rem; font-size: .88rem; }

.pfad { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; font-size: 1.02rem; }
.pfad button {
    background: transparent; border: none; color: var(--leise);
    padding: .15rem .35rem; font-weight: 500; border-radius: var(--radius-s);
}
.pfad button:hover { background: var(--grund); color: var(--text); border-color: transparent; }
.pfad .jetzt { color: var(--text); font-weight: 650; padding: .15rem .35rem; letter-spacing: -.01em; }
.pfad .trenner { color: var(--rand-stark); }

.ablageflaeche { position: relative; min-height: 240px; }
.ablageflaeche.zieht::after {
    content: "";
    position: absolute; inset: -8px;
    border: 2px dashed var(--akzent);
    border-radius: var(--radius-l);
    pointer-events: none;
}
.ablegen-hinweis {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
    background: color-mix(in srgb, var(--grund) 88%, transparent);
    color: var(--akzent); font-weight: 600;
    z-index: 3; border-radius: var(--radius-l);
}
.ablegen-hinweis svg { width: 30px; height: 30px; }

.fortschritt {
    height: 3px; background: var(--rand); border-radius: 2px;
    overflow: hidden; margin-bottom: .9rem;
}
.fortschritt > div {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--gruen-500), var(--gruen-700));
    transition: width .2s;
}

/* --- Liste --- */

.liste { display: flex; flex-direction: column; gap: .3rem; }

.zeile {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .5rem .7rem;
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    transition: border-color var(--tempo), box-shadow var(--tempo), transform var(--tempo);
}
.zeile:hover {
    border-color: var(--rand-stark);
    box-shadow: var(--schatten-1);
}

/* Das Symbol ist ein Knopf: anklicken öffnet die Vorschau bzw. den Ordner. */
.kachel {
    width: 46px; height: 46px; flex: none;
    border-radius: var(--radius-s);
    border: 1px solid var(--rand);
    background: var(--flaeche-2);
    display: grid; place-items: center;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: transform var(--tempo), box-shadow var(--tempo), border-color var(--tempo);
}
.kachel:hover {
    transform: scale(1.06);
    box-shadow: var(--schatten-2);
    border-color: var(--rand-stark);
    background: var(--flaeche-2);
}
.kachel svg { width: 23px; height: 23px; stroke-width: 1.7; }
.kachel img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    animation: einblenden .25s ease-out;
}
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }

/* Farbe je Dateiart – dezent, nur das Symbol, nie die ganze Fläche. */
.art-ordner  { color: var(--gruen-700); background: var(--gruen-100); border-color: transparent; }
.art-bild    { color: #2f7d6b; }
.art-video   { color: #7a5aa8; }
.art-ton     { color: #b06f2a; }
.art-pdf     { color: #b23b2c; }
.art-text    { color: #2f5f9e; }
.art-tabelle { color: #2f7d4a; }
.art-praesentation { color: #b3672a; }
.art-archiv  { color: #7a6a4a; }
.art-sonst   { color: var(--leise); }

@media (prefers-color-scheme: dark) {
    .art-bild { color: #6fd0b8; } .art-video { color: #b39ae0; }
    .art-ton  { color: #e0a86a; } .art-pdf   { color: #ea8272; }
    .art-text { color: #7fb0ea; } .art-tabelle { color: #74c78f; }
    .art-praesentation { color: #e2a271; } .art-archiv { color: #c2b28d; }
}

.zeile .haupt { flex: 1; min-width: 0; }
.zeile .name {
    display: block;
    background: none; border: none; padding: 0; margin: 0;
    font: inherit; font-weight: 500; color: inherit;
    text-align: left; cursor: pointer;
    max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    border-radius: 3px;
}
.zeile .name:hover { color: var(--akzent); background: none; border-color: transparent; text-decoration: underline; }
.zeile .meta {
    display: block;
    color: var(--leise); font-size: .8rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.zeile .tat { display: flex; gap: .2rem; align-items: center; flex: none; }
.zeile .tat button { padding: .38rem; color: var(--leise); background: transparent; border-color: transparent; }
.zeile .tat button:hover { background: var(--grund); color: var(--text); border-color: transparent; }

/* Die Schiebepfeile treten erst hervor, wenn die Zeile gemeint ist –
   sonst stünden vor jeder Zeile zwei Knöpfe, die selten jemand braucht. */
.schieber { display: flex; flex-direction: column; gap: 1px; flex: none; opacity: 0; transition: opacity var(--tempo); }
.zeile:hover .schieber, .schieber:focus-within { opacity: 1; }
.schieber button {
    padding: 0; width: 20px; height: 15px;
    background: transparent; border-color: transparent; color: var(--leise);
}
.schieber button:hover { color: var(--akzent); background: transparent; border-color: transparent; }
.schieber button:disabled { opacity: .2; }
.schieber svg { width: 13px; height: 13px; }
@media (hover: none) { .schieber { opacity: 1; } }

/* --- Überschrift zwischen den Dateien --- */

.ueberschrift {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 1.2rem .2rem .35rem;
}
.ueberschrift:first-child { margin-top: .2rem; }
.ueberschrift .text {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--leise);
    background: none; border: none; padding: 0;
    cursor: default;
}
.ueberschrift .linie { flex: 1; height: 1px; background: var(--rand); }
.ueberschrift .tat { display: flex; gap: .1rem; opacity: 0; transition: opacity var(--tempo); }
.ueberschrift:hover .tat, .ueberschrift .tat:focus-within { opacity: 1; }
.ueberschrift .tat button, .ueberschrift .schieber button {
    padding: .2rem; background: transparent; border-color: transparent; color: var(--leise);
}
.ueberschrift .tat button:hover { color: var(--text); background: var(--grund); border-color: transparent; }
.ueberschrift .schieber { opacity: 0; }
.ueberschrift:hover .schieber { opacity: 1; }

/* --- Kachelansicht --- */

.raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .7rem;
}
.raster .ueberschrift { grid-column: 1 / -1; }

.kachelzelle {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color var(--tempo), box-shadow var(--tempo), transform var(--tempo);
}
.kachelzelle:hover { border-color: var(--rand-stark); box-shadow: var(--schatten-2); transform: translateY(-2px); }

.kachelzelle .bild {
    aspect-ratio: 4 / 3;
    background: var(--flaeche-2);
    display: grid; place-items: center;
    cursor: pointer; padding: 0; border: none; border-radius: 0;
    border-bottom: 1px solid var(--rand);
    width: 100%;
}
.kachelzelle .bild:hover { background: var(--flaeche-2); }
.kachelzelle .bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kachelzelle .bild svg { width: 34px; height: 34px; stroke-width: 1.5; }

.kachelzelle .fuss { padding: .5rem .6rem; display: flex; align-items: center; gap: .3rem; }
.kachelzelle .fuss .haupt { min-width: 0; flex: 1; }
.kachelzelle .name { font-size: .87rem; }
.kachelzelle .meta { font-size: .74rem; }

.leer {
    color: var(--leise);
    padding: 3.5rem 1rem;
    text-align: center;
    border: 1px dashed var(--rand-stark);
    border-radius: var(--radius-l);
    background: var(--flaeche-2);
}
.leer svg { width: 34px; height: 34px; opacity: .5; margin-bottom: .6rem; }
.leer p { margin: 0; }

.abschnitt-titel {
    font-size: .76rem; text-transform: uppercase; letter-spacing: .07em;
    color: var(--leise); font-weight: 700; margin: 1.3rem .2rem .45rem;
}

/* --------------------------------------------------------- Leuchtkasten -- */

.leuchtkasten {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(10, 16, 13, .93);
    display: flex; align-items: center; justify-content: center;
    animation: einblenden .16s ease-out;
}
.lk-kopf {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: center; gap: 1rem;
    padding: .8rem 1rem;
    background: linear-gradient(rgba(0, 0, 0, .55), transparent);
    color: #fff;
}
.lk-name {
    font-weight: 500; flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lk-tat { display: flex; gap: .4rem; align-items: center; }
.lk-tat .leise {
    background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25);
}
.lk-tat .leise:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.lk-buehne {
    max-width: 92vw; max-height: 84vh;
    display: flex; align-items: center; justify-content: center;
}
.lk-buehne img, .lk-buehne video {
    max-width: 92vw; max-height: 84vh;
    border-radius: var(--radius-s);
    box-shadow: var(--schatten-3);
    display: block;
}
.lk-buehne iframe {
    width: 90vw; height: 84vh; border: none;
    border-radius: var(--radius-s); background: #fff;
}
.lk-buehne .lk-hinweis { color: rgba(255, 255, 255, .75); text-align: center; }
.lk-buehne audio { width: min(480px, 86vw); }

.lk-pfeil {
    background: rgba(255, 255, 255, .1);
    border-color: transparent;
    color: #fff;
    padding: .7rem;
    border-radius: 50%;
    position: absolute;
    top: 50%; transform: translateY(-50%);
}
.lk-pfeil:hover { background: rgba(255, 255, 255, .22); border-color: transparent; transform: translateY(-50%); }
.lk-pfeil.links  { left: 1rem; }
.lk-pfeil.rechts { right: 1rem; }
.lk-pfeil svg { width: 21px; height: 21px; }

/* ----------------------------------------------------------- Verwaltung -- */

.karten { display: grid; gap: 1.1rem; }
.zustand { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; }
.zustand div {
    background: var(--flaeche-2); border: 1px solid var(--rand);
    border-radius: var(--radius-s); padding: .65rem .8rem;
}
.zustand b { display: block; font-size: 1.2rem; letter-spacing: -.02em; }
.zustand span { color: var(--leise); font-size: .78rem; }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .55rem .5rem; border-top: 1px solid var(--rand); vertical-align: middle; }
th { color: var(--leise); font-weight: 600; border-top: none; font-size: .78rem;
     text-transform: uppercase; letter-spacing: .05em; }
td .tat { display: flex; gap: .2rem; }
td button { padding: .28rem .55rem; font-size: .82rem; }

.marke-rolle {
    display: inline-block; padding: .1rem .5rem; border-radius: 99px;
    font-size: .74rem; font-weight: 600;
    background: var(--grund); border: 1px solid var(--rand); color: var(--leise);
}
.marke-rolle.admin { color: var(--akzent); border-color: color-mix(in srgb, var(--akzent) 40%, transparent);
                     background: var(--gruen-100); }
.aus { opacity: .5; }

.baumzeile { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--rand); }
.baumzeile:first-child { border-top: none; }
.baumzeile .wer-sieht { color: var(--leise); font-size: .82rem; margin-left: auto; }

.protokoll { max-height: 320px; overflow: auto; font-size: .85rem; }
.protokoll div { padding: .35rem 0; border-top: 1px solid var(--rand); }
.protokoll div:first-child { border-top: none; }
.protokoll .zeit { color: var(--leise); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- Dialog -- */

dialog {
    border: 1px solid var(--rand);
    border-radius: var(--radius-l);
    background: var(--flaeche);
    color: var(--text);
    padding: 1.4rem;
    width: min(440px, calc(100vw - 2rem));
    box-shadow: var(--schatten-3);
}
dialog::backdrop { background: rgba(10, 16, 13, .5); backdrop-filter: blur(2px); }
dialog menu { display: flex; justify-content: flex-end; gap: .5rem; margin: 1.4rem 0 0; padding: 0; }
dialog .auswahl {
    max-height: 220px; overflow: auto;
    border: 1px solid var(--rand); border-radius: var(--radius-s); padding: .5rem;
    background: var(--flaeche-2);
}
dialog .auswahl label { display: flex; align-items: center; gap: .5rem; margin: .3rem 0; color: var(--text); }

/* -------------------------------------------------------------- Meldung -- */

.meldung {
    position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
    background: var(--text); color: var(--grund);
    padding: .6rem 1.1rem; border-radius: 99px;
    box-shadow: var(--schatten-3);
    z-index: 200; max-width: min(560px, calc(100vw - 2rem));
    font-size: .9rem;
    animation: hochkommen .2s ease-out;
}
.meldung.schlecht { background: var(--warn); color: #fff; }
@keyframes hochkommen {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 700px) {
    header { gap: .6rem; padding: .55rem .7rem; }
    .suchfeld input { width: 130px; }
    .suchfeld input:focus { width: 160px; }
    .benutzerknopf .wer { display: none; }
    main { padding: 1rem .7rem 2.5rem; }
    .zeile .meta { font-size: .76rem; }
    .sortierwahl { display: none; }
    .raster { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
