/* Mediennest Cloud – im Mediennest-Design */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --grad: linear-gradient(135deg, #ff4b81 0%, #434bff 100%);
  --ink: #13111a; --ink-2: #1b1825; --ink-3: #221e2e; --ink-4: #2a2537;
  --fg: #f5f4fa; --muted: #b7b4c7; --leise: #88849c;
  --line: rgba(217, 215, 230, 0.12);
  --gruen: #3ddc97; --gelb: #ffc65c; --rot: #ff6b7a;
  --r: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.55; font-weight: 500;
  background: radial-gradient(900px 500px at 85% -10%, rgba(67, 75, 255, 0.16), transparent 70%), radial-gradient(700px 420px at -10% 0%, rgba(255, 75, 129, 0.10), transparent 70%), var(--ink);
  background-attachment: fixed; color: var(--fg); -webkit-font-smoothing: antialiased; font-variant-ligatures: no-common-ligatures; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
.ic { width: 20px; height: 20px; flex: none; }
.ic--klein { width: 15px; height: 15px; }
.ic--gross { width: 40px; height: 40px; }
.leise { color: var(--leise); font-size: 14px; }
.klein-text { font-size: 13px; }

/* ---------- Kopfleiste ---------- */
.leiste { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); background: rgba(19, 17, 26, 0.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.marke { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.marke img { height: 30px; width: auto; }
.marke__zusatz { padding: 4px 10px; border-radius: 99px; background: var(--ink-4); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.leiste__nav { display: flex; gap: 8px; }
.leiste__nav form { display: contents; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .2s, transform .1s; }
.knopf:hover { filter: brightness(1.08); }
.knopf:active { transform: scale(0.98); }
.knopf:disabled { opacity: 0.45; cursor: default; filter: none; }
.knopf--voll { width: 100%; height: 52px; font-size: 16px; }
.knopf--rand { background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.knopf--rand:hover { background: linear-gradient(var(--ink-4), var(--ink-4)) padding-box, var(--grad) border-box; filter: none; }
.knopf--klein { height: 40px; padding: 0 16px; font-size: 14px; }
.knopf--klein .ic { width: 17px; height: 17px; }
.knopf--gefahr { background: var(--rot); color: var(--ink); }
.knopf-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--ink-4); color: var(--fg); cursor: pointer; flex: none; text-decoration: none; transition: background .15s; }
.knopf-icon:hover { background: #352f45; }
.knopf-icon--gefahr:hover { background: rgba(255, 107, 122, 0.18); color: var(--rot); }
.knopf-icon--grad { background: var(--grad); color: #fff; }
.knopf-icon--grad:hover { background: var(--grad); filter: brightness(1.1); }
.knopf-icon.ist-kopiert { background: rgba(61, 220, 151, 0.18); color: var(--gruen); }
.knopf-text { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 0; }
.knopf-text:hover { color: var(--fg); }
.knopf-text--gefahr:hover { color: var(--rot); }
.knopf-text.ist-kopiert { color: var(--gruen); }

/* ---------- Seitenaufbau ---------- */
.seite { width: min(1100px, 100%); margin: 0 auto; padding: clamp(22px, 4vw, 44px) clamp(16px, 4vw, 40px) 60px; flex: 1; display: grid; gap: 22px; align-content: start; }
.seite--schmal { width: min(720px, 100%); }
.mitte { flex: 1; display: grid; place-items: center; align-content: center; gap: 18px; padding: 40px 16px; }
.karte { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 4vw, 32px); display: grid; gap: 16px; }
.karte--schmal { width: min(440px, 100%); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.h-karte { font-size: clamp(1.7rem, 5vw, 2.1rem); }
.h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); word-break: break-word; }
.h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.start { text-align: left; }
.start .knopf { justify-self: start; }
.start__team { text-decoration: none; }
.start__team:hover { color: var(--fg); }

.meldung { margin: 16px auto 0; width: min(1100px, calc(100% - 32px)); padding: 13px 18px; border-radius: 14px; background: rgba(61, 220, 151, 0.12); border: 1px solid rgba(61, 220, 151, 0.35); font-size: 15px; }
.meldung--fehler { background: rgba(255, 107, 122, 0.12); border-color: rgba(255, 107, 122, 0.4); }
.hinweis { padding: 12px 16px; border-radius: 14px; background: var(--ink-3); font-size: 14px; }
.hinweis--fehler { background: rgba(255, 107, 122, 0.12); border: 1px solid rgba(255, 107, 122, 0.35); }
.hinweis a { font-weight: 700; }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: 14px; }
.formular label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.formular input:not([type="checkbox"]):not([type="radio"]), .formular select {
  width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink); color: var(--fg); font-size: 16px; font-weight: 500; outline: none; transition: border-color .15s, box-shadow .15s; }
.formular input:focus, .formular select:focus { border-color: rgba(161, 75, 192, 0.8); box-shadow: 0 0 0 3px rgba(161, 75, 192, 0.2); }
.formular .knopf { justify-self: start; }
.formular .knopf--voll { justify-self: stretch; }

.code-form { text-align: left; }
.code-form__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.code-form__icon .ic { width: 26px; height: 26px; }
.formular input.code-eingabe { height: 68px; text-align: center; font-size: 30px; font-weight: 800; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; padding-left: 0.3em; }

/* ---------- Pfad und Kopf ---------- */
.pfad { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--leise); }
.pfad a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 2px 0; }
.pfad a:hover, .pfad a:last-child { color: var(--fg); }
.kopfzeile { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.kopfzeile > div:first-child { display: grid; gap: 8px; min-width: 0; }
.kopfzeile__aktionen { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Verbrauch ---------- */
.verbrauche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.verbrauch { background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; }
.verbrauch__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); font-weight: 600; }
.verbrauch__kopf b { font-size: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.verbrauch__kopf b .leise { -webkit-text-fill-color: var(--leise); color: var(--leise); font-size: 13px; }
.verbrauch__balken { height: 8px; border-radius: 99px; background: var(--ink-4); overflow: hidden; }
.verbrauch__balken i { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: var(--grad); }
.verbrauch--warn .verbrauch__balken i { background: linear-gradient(90deg, var(--gelb), var(--rot)); }

/* ---------- Liste (Ordner und Dateien) ---------- */
.liste { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.eintrag { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-top: 1px solid var(--line); }
.liste > .eintrag:first-of-type, [data-uploads]:empty + .eintrag { border-top: 0; }
.eintrag:hover { background: var(--ink-3); }
.eintrag__haupt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 6px; text-decoration: none; border-radius: 12px; }
.eintrag__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ink-4); color: var(--muted); flex: none; }
.eintrag__icon--ordner { background: var(--grad); color: #fff; }
.eintrag__text { min-width: 0; display: grid; gap: 2px; }
.eintrag__text b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eintrag__aktionen { display: flex; gap: 6px; flex: none; }
.leer { display: grid; justify-items: start; gap: 12px; padding: 34px 26px; color: var(--leise); }
.leer .ic { color: var(--ink-4); }

/* Ablegen per Ziehen: Rahmen um die Liste, Ordner leuchten auf, wenn man darüber ist */
.ablage-hinweis { display: none; align-items: center; gap: 10px; padding: 12px 18px; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--line); background: rgba(161, 75, 192, 0.12); pointer-events: none; }
.ablage-hinweis .ic { width: 18px; height: 18px; }
.liste.ist-ziel { border-color: rgba(161, 75, 192, 0.8); box-shadow: 0 0 0 3px rgba(161, 75, 192, 0.18); }
.liste.ist-ziel .ablage-hinweis { display: flex; }
.eintrag[draggable="true"] { cursor: grab; }
.eintrag.ist-gezogen { opacity: 0.45; }
.ist-drop-ziel { background: rgba(161, 75, 192, 0.18) !important; box-shadow: inset 0 0 0 2px rgba(161, 75, 192, 0.85); border-radius: 12px; }
.pfad a.ist-drop-ziel { padding: 2px 8px; }
.meldung--schwebend { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 60; margin: 0; width: min(520px, calc(100% - 32px)); background: #2a1c26; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6); }

/* Miniaturbilder */
.eintrag__icon--bild { position: relative; overflow: hidden; }
.eintrag__icon--bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Ansicht umschalten */
.ansicht { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); }
.ansicht .knopf-icon { width: 32px; height: 32px; border-radius: 10px; background: transparent; color: var(--leise); }
.ansicht .knopf-icon[aria-pressed="true"] { background: var(--ink-4); color: var(--fg); }

/* Kacheln */
.liste.ist-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 12px; }
.liste.ist-kacheln > .ablage-hinweis, .liste.ist-kacheln > [data-uploads], .liste.ist-kacheln > .leer { grid-column: 1 / -1; }
.liste.ist-kacheln .eintrag { position: relative; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--ink); overflow: hidden; }
.liste.ist-kacheln .eintrag__haupt { flex-direction: column; align-items: stretch; gap: 10px; padding: 0 0 12px; border-radius: 0; }
.liste.ist-kacheln .eintrag__icon { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.liste.ist-kacheln .eintrag__icon .ic { width: 34px; height: 34px; }
.liste.ist-kacheln .eintrag__text { padding: 0 12px; }
.liste.ist-kacheln .eintrag__text b { font-size: 14px; }
.liste.ist-kacheln .eintrag__aktionen { position: absolute; top: 8px; right: 8px; gap: 4px; opacity: 0; transition: opacity .15s; }
.liste.ist-kacheln .eintrag:hover .eintrag__aktionen, .liste.ist-kacheln .eintrag:focus-within .eintrag__aktionen { opacity: 1; }
.liste.ist-kacheln .eintrag__aktionen .knopf-icon { width: 34px; height: 34px; background: rgba(19, 17, 26, 0.82); backdrop-filter: blur(6px); }
.liste.ist-kacheln .eintrag__aktionen .knopf-icon--grad { background: var(--grad); }
@media (hover: none) { .liste.ist-kacheln .eintrag__aktionen { opacity: 1; } }

/* Vorschau-Fenster */
.betrachter { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0a090e; color: var(--fg); }
.betrachter[open] { display: grid; grid-template-rows: auto 1fr; }
.betrachter::backdrop { background: rgba(10, 9, 14, 0.9); }
.betrachter__kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 3vw, 28px); padding-top: max(14px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.betrachter__titel { min-width: 0; display: grid; }
.betrachter__titel b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.betrachter__knoepfe { display: flex; gap: 10px; flex: none; }
.betrachter__buehne { position: relative; display: grid; place-items: center; min-height: 0; padding: clamp(12px, 3vw, 32px) clamp(12px, 6vw, 84px); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.betrachter__inhalt { max-width: 100%; max-height: 100%; border-radius: 12px; }
img.betrachter__inhalt { object-fit: contain; width: auto; height: auto; max-height: calc(100dvh - 140px); }
video.betrachter__inhalt { width: min(100%, 1280px); max-height: calc(100dvh - 140px); background: #000; }
audio.betrachter__inhalt { width: min(100%, 560px); }
iframe.betrachter__inhalt { width: min(100%, 1000px); height: calc(100dvh - 130px); border: 0; background: #fff; }
.betrachter__leer { display: grid; justify-items: center; gap: 14px; color: var(--leise); text-align: center; }
.betrachter__leer .ic { width: 48px; height: 48px; }
.betrachter__pfeil { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(42, 37, 55, 0.85); color: var(--fg); cursor: pointer; z-index: 2; }
.betrachter__pfeil:hover { background: #352f45; }
.betrachter__pfeil--zurueck { left: clamp(8px, 2vw, 24px); }
.betrachter__pfeil--weiter { right: clamp(8px, 2vw, 24px); }
.betrachter.ist-einzeln .betrachter__pfeil { display: none; }
@media (max-width: 700px) {
  .betrachter__pfeil { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); transform: none; width: 44px; height: 44px; }
  .betrachter__buehne { padding: 12px 12px 72px; }
  .betrachter__knoepfe .knopf { width: 40px; padding: 0; }
  .betrachter__knoepfe .knopf { font-size: 0; gap: 0; }
  .liste.ist-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; }
}

/* Uploads */
.upload { display: grid; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--ink-3); }
.upload__text { display: flex; justify-content: space-between; gap: 12px; min-width: 0; font-size: 14px; }
.upload__text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__text .leise { flex: none; font-variant-numeric: tabular-nums; }
.upload__balken { height: 6px; border-radius: 99px; background: var(--ink-4); overflow: hidden; }
.upload__balken i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.upload--fertig .upload__balken i { background: var(--gruen); }
.upload--fehler .upload__balken i { background: var(--rot); width: 100% !important; }
.upload--fehler .leise { color: var(--rot); }

/* ---------- Freigaben ---------- */
.freigaben { display: grid; gap: 12px; }
.freigaben__kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.freigabe { background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 12px; }
.freigabe--gesperrt, .freigabe--abgelaufen { opacity: 0.7; }
.freigabe__kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.marke-status { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(61, 220, 151, 0.14); color: var(--gruen); white-space: nowrap; }
.marke-status--gesperrt, .marke-status--abgelaufen { background: rgba(255, 107, 122, 0.14); color: var(--rot); }
.freigabe__felder { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.feld-kopie { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--ink); border: 1px solid var(--line); }
.feld-kopie__titel { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leise); flex: none; }
.feld-kopie code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.feld-kopie--code code { font-size: 18px; font-weight: 800; letter-spacing: 0.12em; font-family: inherit; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.feld-kopie .knopf-icon { width: 36px; height: 36px; }
.freigabe__fuss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; }
.freigabe__knoepfe { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.freigabe__knoepfe form { display: contents; }

/* ---------- Dialoge ---------- */
.dialog { margin: auto; width: min(460px, calc(100% - 32px)); background: var(--ink-2); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.dialog::backdrop { background: rgba(10, 9, 14, 0.7); backdrop-filter: blur(4px); }
.dialog__knoepfe { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.dialog .formular .knopf { justify-self: auto; }

/* ---------- Einstellungen ---------- */
.werte { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 15px; }
.werte dt { color: var(--leise); }
.werte dd { word-break: break-all; }
.pruefung { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.pruefung li { padding: 10px 14px; border-radius: 12px; }
.pruefung .ok { background: rgba(61, 220, 151, 0.12); }
.pruefung .fehler { background: rgba(255, 107, 122, 0.12); }
.sicher { display: flex; align-items: center; gap: 8px; }

/* ---------- Fuß ---------- */
.fuss { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 26px 16px 32px; font-size: 13px; color: var(--leise); border-top: 1px solid var(--line); }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--fg); }

/* ---------- Handy ---------- */
@media (max-width: 700px) {
  .leiste { padding: 14px 16px; }
  .marke img { height: 26px; }
  .verbrauche { grid-template-columns: 1fr; }
  .kopfzeile { align-items: stretch; }
  .kopfzeile__aktionen { width: 100%; }
  .kopfzeile__aktionen .knopf { flex: 1; }
  .freigabe__felder { grid-template-columns: 1fr; }
  .eintrag { padding: 8px 10px 8px 6px; gap: 6px; }
  .eintrag__haupt { gap: 12px; }
  .eintrag__icon { width: 42px; height: 42px; border-radius: 12px; }
  .ist-admin .eintrag__aktionen .knopf-icon { width: 36px; height: 36px; }
  .ist-admin .liste:not(.ist-kacheln) .eintrag__aktionen a.knopf-icon { display: none; }
}
@media (hover: none) { .eintrag:hover { background: none; } }


/* ======================= Version 1.3 ======================= */
.inhalt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
body.laedt::before { content: ""; position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 80; background: var(--grad); transform-origin: left; animation: laden 1.1s ease-in-out infinite; }
@keyframes laden { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(.85); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* Suche in der Kopfleiste */
.leiste { flex-wrap: nowrap; }
.suche { flex: 1; max-width: 460px; margin: 0 auto 0 12px; position: relative; display: flex; align-items: center; }
.suche .ic { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--leise); pointer-events: none; }
.suche input { width: 100%; height: 42px; padding: 0 14px 0 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); color: var(--fg); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.suche input::-webkit-search-cancel-button { filter: invert(.7); }
.suche input:focus { border-color: rgba(161, 75, 192, 0.8); box-shadow: 0 0 0 3px rgba(161, 75, 192, 0.2); }

/* Mehr-Knopf nur am Handy */
.eintrag__mehr { display: none !important; }

/* Symbole ohne Vorschaubild: Farbe je Typ und Endung */
.eintrag__icon { position: relative; }
.eintrag__typ { display: none; }
.eintrag__icon--video { color: #9fa4ff; }
.eintrag__icon--pdf { color: #ff9db8; }
.eintrag__icon--audio { color: #c9a0ff; }
.eintrag__icon--zip { color: #ffd38a; }
.eintrag__icon--abspielen::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; max-width: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(19, 17, 26, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7.5v9l7.5-4.5z' fill='%23fff'/%3E%3C/svg%3E") center / 62% no-repeat; backdrop-filter: blur(4px); z-index: 1; }
.liste.ist-kacheln .eintrag__typ { display: block; position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 8px; background: rgba(19, 17, 26, 0.7); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.liste.ist-kacheln .eintrag__icon:not(.eintrag__icon--bild):not(.eintrag__icon--ordner) { background: radial-gradient(120% 90% at 30% 20%, #2f2a3e, #1d1a28); }

/* Vorschau: erst unscharf (klein), dann scharf */
img.betrachter__inhalt { transition: filter .25s; }
img.betrachter__inhalt.ist-unscharf { filter: blur(6px); }
.betrachter__knoepfe .knopf .ic { width: 17px; height: 17px; }

/* Upload-Fenster */
.uploads { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 380px; max-height: min(60vh, 520px); display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7); overflow: hidden; }
.uploads[hidden] { display: none; }
.uploads__kopf { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.uploads__kopf .leise { margin-right: auto; font-variant-numeric: tabular-nums; }
.uploads__kopf .knopf-icon { width: 34px; height: 34px; }
.uploads__liste { overflow-y: auto; overscroll-behavior: contain; }
.uploads .upload { background: none; }
.uploads.ist-klein .uploads__liste { display: none; }
.uploads.ist-klein .uploads__kopf { border-bottom: 0; }

/* Aktionsblatt (Handy) */
.blatt { padding: 14px 14px max(14px, env(safe-area-inset-bottom)); }
.blatt__titel { padding: 6px 10px 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 14px; }
.blatt__liste { display: grid; margin-bottom: 12px; border-radius: 16px; background: var(--ink-3); overflow: hidden; }
.blatt__punkt { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 18px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--fg); font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.blatt__punkt:first-child { border-top: 0; }
.blatt__punkt .ic { width: 20px; height: 20px; color: var(--muted); }
.blatt__punkt--gefahr, .blatt__punkt--gefahr .ic { color: var(--rot); }
.blatt__punkt:active { background: var(--ink-4); }

/* ---------- Handy: alles auf Daumen und kleine Bildschirme ausgelegt ---------- */
@media (max-width: 700px) {
  .leiste { flex-wrap: wrap; gap: 10px 8px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
  .marke { margin-right: auto; }
  .marke__zusatz { padding: 3px 8px; font-size: 11px; }
  .suche { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .suche input { height: 44px; font-size: 16px; }
  .seite { padding: 18px 16px 90px; gap: 18px; }
  .h1 { font-size: clamp(1.6rem, 7.5vw, 2rem); }
  .kopfzeile__aktionen { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; }
  .kopfzeile__aktionen > :only-child { grid-column: 1 / -1; }
  .kopfzeile__aktionen .knopf { min-height: 44px; }
  .kopfzeile__aktionen:has(> .knopf:only-of-type) { grid-template-columns: auto 1fr; }
  .ansicht .knopf-icon { width: 36px; height: 36px; }
  .eintrag__mehr { display: inline-grid !important; }
  .ist-admin .eintrag__aktionen > :not(.eintrag__mehr) { display: none; }
  .eintrag__haupt { min-height: 56px; }
  .eintrag__text b { font-size: 15px; }
  .eintrag__text .leise { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pfad { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; margin: 0 -16px; padding: 0 16px; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .pfad::-webkit-scrollbar { display: none; }
  .freigabe { padding: 14px; }
  .freigabe__knoepfe { gap: 2px 16px; }
  .freigabe__knoepfe .knopf-text { min-height: 40px; }
  .feld-kopie .knopf-icon { width: 40px; height: 40px; }
  .dialog { margin: auto auto 0; width: 100%; max-width: none; border-radius: 24px 24px 0 0; border-bottom: 0; padding: 22px 18px max(18px, env(safe-area-inset-bottom)); max-height: 92dvh; overflow-y: auto; }
  .dialog[open] { animation: hochfahren .22s ease-out; }
  .dialog__knoepfe { display: grid; grid-template-columns: 1fr 1fr; }
  .dialog__knoepfe .knopf { width: 100%; min-height: 50px; }
  .uploads { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; max-height: 55dvh; }
  .liste.ist-kacheln .eintrag__aktionen { opacity: 1; }
  .liste.ist-kacheln .eintrag__text b { font-size: 13px; }
  .liste.ist-kacheln .eintrag__text .leise { font-size: 12px; }
  .liste.ist-kacheln .eintrag__haupt { min-height: 0; }
  .verbrauch { padding: 14px 16px; }
  .meldung--schwebend { top: auto; bottom: max(84px, calc(env(safe-area-inset-bottom) + 70px)); }
  .fuss { padding-bottom: max(26px, env(safe-area-inset-bottom)); }
  .code-form { padding: 22px 18px; }
}
@keyframes hochfahren { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

/* Auswahl Link mit / ohne Code */
.wahl { border: 0; display: grid; gap: 8px; }
.wahl legend { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.wahl__punkt { display: flex !important; align-items: flex-start; gap: 12px !important; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink); cursor: pointer; color: var(--fg) !important; }
.wahl__punkt input { margin-top: 3px; width: 18px; height: 18px; accent-color: #a14bc0; flex: none; }
.wahl__punkt > span { display: grid; gap: 2px; }
.wahl__punkt b { font-size: 15px; }
.wahl__punkt:has(input:checked) { border-color: rgba(161, 75, 192, 0.8); background: rgba(161, 75, 192, 0.1); }
.feld-kopie--offen { padding: 12px 14px; }
.wahl__punkt input:focus { box-shadow: none; outline: none; }
.wahl__punkt input:focus-visible { outline: 2px solid rgba(161, 75, 192, 0.9); outline-offset: 2px; }
.eintrag__icon--bild video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; background: #000; }

.knopf-text--stark { color: var(--fg); }
