/* Mediennest Kundenportal – Design nach dem Mediennest Style Sheet */
@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%);
  --pink: #ff4b81; --blau: #434bff; --violett: #a14bc0;
  --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;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.55; font-weight: 500; background: var(--ink); color: var(--fg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.15; }
.ic { width: 20px; height: 20px; flex: none; }
.leise { color: var(--leise); font-size: 14px; }
.klein-text { font-size: 13px; }
.leise a, .klein-text a { color: var(--fg); }

/* ---------- 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) border-box; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter 0.2s, transform 0.2s; }
.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: 38px; padding: 0 16px; font-size: 14px; }
.knopf--klein .ic { width: 17px; height: 17px; }
.knopf-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--ink-4); color: var(--fg); cursor: pointer; flex: none; text-decoration: none; transition: background 0.2s; }
.knopf-icon:hover { background: #352f45; }
.knopf-icon--gefahr:hover { background: rgba(255, 107, 122, 0.18); color: var(--rot); }
.knopf-text { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--leise); font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 0; }
.knopf-text--gefahr:hover { color: var(--rot); }
.inline { display: inline-flex; }

/* ---------- 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="file"]), .formular select, .formular textarea, .kommentar__form textarea, select.klein {
  width: 100%; min-height: 48px; 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 0.2s, box-shadow 0.2s;
}
.formular textarea, .kommentar__form textarea { resize: vertical; min-height: 48px; line-height: 1.45; }
.formular input:focus, .formular select:focus, .formular textarea:focus, .kommentar__form textarea:focus { border-color: rgba(255, 75, 129, 0.6); box-shadow: 0 0 0 3px rgba(255, 75, 129, 0.15); }
.formular input[type="file"] { padding: 10px 0; font-size: 14px; color: var(--muted); }
.formular .knopf { justify-self: start; margin-top: 4px; }
.formular .knopf--voll { justify-self: stretch; }
.formular--raster { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.formular--raster .breit, .formular--raster .haken--breit { grid-column: 1 / -1; }
.formular__reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.haken { display: flex !important; align-items: center; gap: 10px; color: var(--fg) !important; font-weight: 500 !important; cursor: pointer; }
.haken input { width: 18px; height: 18px; accent-color: var(--pink); flex: none; }
select.klein { min-height: 38px; width: auto; padding: 6px 30px 6px 12px; font-size: 14px; border-radius: 12px; }
h3 { font-size: 17px; }
.formular h3 { margin-bottom: 2px; }

/* ---------- Meldungen & Abzeichen ---------- */
.meldung { padding: 14px 18px; border-radius: 16px; font-size: 15px; margin-bottom: 20px; transition: opacity 0.5s, transform 0.5s; }
.meldung--ok { background: rgba(61, 220, 151, 0.12); color: #c9f7e3; box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.3); }
.meldung--fehler { background: rgba(255, 107, 122, 0.12); color: #ffd3d8; box-shadow: inset 0 0 0 1px rgba(255, 107, 122, 0.35); }
.meldung.weg { opacity: 0; transform: translateY(-6px); }
.abz { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; flex: none; }
.abz--gelb { background: rgba(255, 198, 92, 0.14); color: var(--gelb); }
.abz--gruen { background: rgba(61, 220, 151, 0.14); color: var(--gruen); }
.abz--rot { background: rgba(255, 107, 122, 0.15); color: var(--rot); }
.abz--grau { background: var(--ink-4); color: var(--muted); }
.zahl { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; vertical-align: 3px; margin-left: 6px; letter-spacing: 0; }

/* ---------- Anmeldeseiten ---------- */
.auth { min-height: 100vh; min-height: 100dvh; background:
  radial-gradient(50% 40% at 15% 0%, rgba(255, 75, 129, 0.16), transparent 70%),
  radial-gradient(50% 45% at 90% 100%, rgba(67, 75, 255, 0.18), transparent 70%), var(--ink); }
.auth__rahmen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; }
.auth__marke img { height: 36px; width: auto; margin-bottom: 30px; }
.auth__karte { width: min(440px, 100%); padding: 34px 30px; border-radius: 28px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.auth__karte h1 { font-size: 28px; margin-bottom: 8px; }
.auth__unter { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.auth__unter strong { color: var(--fg); }
.auth__links { margin-top: 18px; text-align: center; font-size: 14px; }
.auth__links a, .auth__hinweis a { color: var(--fg); text-underline-offset: 3px; }
.auth__hinweis { margin-top: 22px; font-size: 14px; color: var(--leise); text-align: center; }
.auth__rahmen > .meldung { width: min(440px, 100%); }

/* ---------- App-Rahmen ---------- */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.seitenleiste { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; padding: 26px 18px; background: var(--ink-2); border-right: 1px solid var(--line); }
.marke { display: grid; gap: 6px; text-decoration: none; padding: 0 10px; }
.marke img { height: 30px; width: auto; }
.marke span { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--leise); }
.hauptnav { display: grid; gap: 4px; }
.hauptnav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-decoration: none; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; }
.hauptnav a:hover { background: var(--ink-3); color: var(--fg); }
.hauptnav a[aria-current] { background: linear-gradient(var(--ink-4), var(--ink-4)) padding-box, var(--grad) border-box; border: 1px solid transparent; color: #fff; }
.seitenleiste__fuss { margin-top: auto; display: grid; gap: 10px; }
.ich { display: flex; align-items: center; gap: 12px; padding: 10px; }
.ich > span:last-child { display: grid; min-width: 0; }
.ich strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ich small { font-size: 12.5px; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ich__kreis { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; flex: none; }
.abmelden { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 14px; border: 0; background: none; color: var(--leise); font-weight: 600; cursor: pointer; }
.abmelden:hover { background: var(--ink-3); color: var(--fg); }
.inhalt { padding: 40px clamp(20px, 4vw, 56px) 80px; max-width: 1240px; width: 100%; }

/* ---------- Inhalte ---------- */
.kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.kopf h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
.kopf p { margin-top: 8px; color: var(--muted); max-width: 70ch; }
.zurueck { display: inline-block; margin-bottom: 14px; color: var(--leise); text-decoration: none; font-size: 14px; font-weight: 600; }
.zurueck:hover { color: var(--fg); }
.block { margin-bottom: 40px; }
.block > h2, .karte > h2 { font-size: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.karte { padding: 24px; border-radius: var(--r); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-bottom: 40px; }
.zwei > .block { margin-bottom: 0; }
.leer { padding: 30px; border-radius: var(--r); border: 1.5px dashed var(--line); text-align: center; color: var(--leise); }
.leer h2 { color: var(--fg); margin-bottom: 8px; }
.leer .knopf { margin-top: 18px; }
.mehr { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--fg); font-weight: 600; font-size: 14px; text-decoration: none; }
.mehr .ic { width: 16px; height: 16px; }

/* Projekte */
.projekt { display: grid; gap: 12px; text-decoration: none; transition: transform 0.25s, box-shadow 0.25s; }
.projekt:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 75, 129, 0.35); }
.projekt__kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 26px; }
.projekt__phase { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leise); }
.projekt h3 { font-size: 19px; }
.projekt__fuss { display: flex; justify-content: space-between; font-size: 13px; color: var(--leise); }
.balken { display: block; height: 8px; border-radius: 99px; background: var(--ink-4); overflow: hidden; }
.balken > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 0.4s; }

/* Listen */
.liste { display: grid; gap: 8px; }
.zeile { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; flex-wrap: wrap; }
a.zeile:hover { background: var(--ink-3); }
.zeile__text { display: grid; flex: 1 1 200px; min-width: 0; }
.zeile__text strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile__text small { font-size: 13px; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile__betrag { font-weight: 700; font-variant-numeric: tabular-nums; }
.zeile__pfeil { color: var(--leise); }
.symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--ink-4); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); flex: none; overflow: hidden; }
.symbol--bild img { width: 100%; height: 100%; object-fit: cover; }
.symbol--rechnung { background: rgba(255, 75, 129, 0.14); color: var(--pink); }
.symbol--angebot { background: rgba(67, 75, 255, 0.18); color: #9fa4ff; }
.symbol--kunde { background: var(--grad); color: #fff; font-size: 16px; }

/* Verlauf */
.verlauf { list-style: none; padding: 0; display: grid; gap: 4px; }
.verlauf li { display: flex; gap: 14px; padding: 10px 4px; }
.verlauf__punkt { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--grad); flex: none; box-shadow: 0 0 0 4px rgba(161, 75, 192, 0.15); }
.verlauf p { font-size: 15px; }
.verlauf a { color: var(--fg); text-decoration: none; }
.verlauf a:hover { text-decoration: underline; }
.verlauf small { font-size: 13px; color: var(--leise); }

/* Status & Phasen */
.status { display: grid; gap: 18px; margin-bottom: 32px; }
.status__oben { display: flex; gap: 40px; flex-wrap: wrap; }
.status__oben > div { display: grid; gap: 2px; }
.status__oben strong { font-size: 22px; }
.phasen { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.phasen li { display: grid; justify-items: center; gap: 8px; text-align: center; position: relative; }
.phasen li + li::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 2px; background: var(--ink-4); z-index: 0; }
.phasen li.fertig + li::before, .phasen li.fertig + li.aktiv::before { background: var(--violett); }
.phasen__punkt { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink-4); color: var(--leise); font-weight: 700; font-size: 14px; }
.phasen li.fertig .phasen__punkt { background: var(--violett); color: #fff; }
.phasen li.aktiv .phasen__punkt { background: var(--grad); color: #fff; box-shadow: 0 0 0 5px rgba(255, 75, 129, 0.18); }
.phasen__punkt .ic { width: 18px; height: 18px; }
.phasen__name { font-size: 13px; font-weight: 600; color: var(--leise); }
.phasen li.aktiv .phasen__name, .phasen li.fertig .phasen__name { color: var(--fg); }

/* Dateien */
.dateien { display: grid; gap: 16px; }
.datei { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; padding: 16px; scroll-margin-top: 24px; }
.datei:target { box-shadow: inset 0 0 0 2px rgba(255, 75, 129, 0.55); }
.datei__vorschau { border-radius: 16px; overflow: hidden; background: var(--ink); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.datei__vorschau a, .datei__vorschau img, .datei__vorschau video { width: 100%; height: 100%; object-fit: cover; }
.datei__vorschau video { object-fit: contain; background: #000; }
.datei__typ { font-size: 22px; font-weight: 800; color: var(--leise); letter-spacing: 0.06em; }
.datei__info { display: grid; gap: 10px; align-content: start; min-width: 0; }
.datei__kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.datei__kopf h3 { font-size: 17px; overflow-wrap: anywhere; }
.datei__aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kommentare { display: grid; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.kommentar { padding: 10px 14px; border-radius: 14px; background: var(--ink-3); max-width: 92%; }
.kommentar--team { background: rgba(161, 75, 192, 0.14); justify-self: end; }
.kommentar strong { font-size: 13px; }
.kommentar p { font-size: 15px; overflow-wrap: anywhere; }
.kommentar small { font-size: 12px; color: var(--leise); }
.kommentar__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.kommentar__form textarea { min-height: 42px; padding: 10px 14px; font-size: 15px; }
.kommentar__form .haken { grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
.kommentar__form .knopf { height: 42px; }

/* Admin */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 36px; }
.kennzahl { display: grid; gap: 2px; padding: 20px; }
.kennzahl strong { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content; }
.kennzahl span { font-size: 14px; color: var(--muted); }
.werkzeuge { margin-bottom: 36px; display: grid; gap: 20px; box-shadow: inset 0 0 0 1px rgba(161, 75, 192, 0.35); }
.werkzeuge > h2 { margin-bottom: 0; }
.werkzeuge__raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.werkzeuge__raster > div { display: grid; gap: 28px; align-content: start; }
.aufklapp { margin-top: 16px; }
.aufklapp summary { cursor: pointer; font-weight: 700; list-style: none; }
.aufklapp summary::-webkit-details-marker { display: none; }
.aufklapp[open] summary { margin-bottom: 18px; }
.aufklapp--innen { padding: 16px 0 0; border-top: 1px solid var(--line); margin-top: 0; }
.gefahr { padding-top: 6px; }
.upload__feld { position: relative; display: block !important; padding: 26px 18px; border-radius: 18px; border: 1.5px dashed rgba(217, 215, 230, 0.28); text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.upload__feld:hover, .upload__feld.ist-drueber { border-color: var(--pink); background: rgba(255, 75, 129, 0.06); }
.upload__feld input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__feld span { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-weight: 500; }
.upload__feld strong { color: var(--fg); }
.upload__feld small { font-size: 13px; color: var(--leise); }
.upload__feld .ic { width: 28px; height: 28px; color: var(--pink); }
.upload__liste { display: grid; gap: 8px; }
.upload__liste:empty { display: none; }
.upload__zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 14px; border-radius: 14px; background: var(--ink-3); font-size: 14px; }
.upload__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__info { color: var(--leise); }
.upload__zeile .balken { grid-column: 1 / -1; height: 5px; }
.upload__zeile.fertig .upload__info { color: var(--gruen); }
.upload__zeile.fehler .upload__info { color: var(--rot); }
.kontakt { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.kontakt h2 { margin-bottom: 4px; }
.kontakt p { color: var(--muted); }
.kontakt__knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Tablet & Handy ---------- */
@media (max-width: 1100px) {
  .datei { grid-template-columns: 200px minmax(0, 1fr); }
  .werkzeuge__raster { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .seitenleiste { position: fixed; z-index: 40; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: rgba(27, 24, 37, 0.97); }
  .marke, .ich { display: none; }
  .hauptnav { display: flex; flex: 1; gap: 2px; }
  .hauptnav a, .abmelden { flex: 1; flex-direction: column; gap: 3px; padding: 8px 4px; font-size: 11.5px; justify-content: center; border-radius: 12px; }
  .hauptnav a[aria-current] { border: 0; background: var(--ink-4); }
  .hauptnav a[aria-current] .ic { color: var(--pink); }
  .seitenleiste__fuss { margin: 0; display: flex; }
  .seitenleiste__fuss form { display: flex; }
  .inhalt { padding: 28px 16px calc(100px + env(safe-area-inset-bottom)); }
  .zwei { grid-template-columns: minmax(0, 1fr); }
  .formular--raster { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .datei { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 14px; }
  .datei__vorschau { aspect-ratio: 16 / 10; }
  .phasen__name { font-size: 11px; }
  .phasen__punkt { width: 30px; height: 30px; font-size: 13px; }
  .phasen li + li::before { top: 14px; }
  .status__oben { gap: 22px; }
  .status__oben strong { font-size: 19px; }
  .kopf { margin-bottom: 22px; }
  .karte { padding: 18px; }
  .zeile { gap: 10px 12px; }
  .zeile__betrag { margin-left: 56px; }
  .kommentar { max-width: 100%; }
  .auth__karte { padding: 28px 22px; }
}

/* ---------- Profilbilder, Logos, Personen ---------- */
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 15px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--klein { width: 30px; height: 30px; font-size: 12px; }
.avatar--mittel { width: 48px; height: 48px; font-size: 18px; }
.avatar--gross { width: 112px; height: 112px; font-size: 40px; box-shadow: 0 0 0 4px var(--ink-2), 0 0 0 6px rgba(161, 75, 192, 0.55); }
.logo-feld { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #fff; padding: 5px; flex: none; overflow: hidden; }
.logo-feld img { width: 100%; height: 100%; object-fit: contain; }
.logo-feld--gross, .symbol.logo-feld--gross { width: 72px; height: 72px; border-radius: 18px; font-size: 26px; padding: 8px; }
.ich { text-decoration: none; border-radius: 14px; }
.ich:hover { background: var(--ink-3); }
.personen { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 16px; }
.person { display: flex; align-items: center; gap: 12px; }
.person > span { display: grid; }
.person strong { font-size: 15px; }
.person small { font-size: 13px; color: var(--leise); }
.person a { font-size: 13px; color: var(--fg); text-decoration: none; }
.kommentar { display: flex; gap: 10px; align-items: flex-start; }
.kommentar > div { min-width: 0; }
.verlauf li > .avatar { margin-top: 2px; }
.profil { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 34px; align-items: center; margin-bottom: 28px; }
.profil__bild { display: grid; justify-items: center; gap: 14px; width: 190px; text-align: center; }
.profil__bild-knoepfe { display: grid; justify-items: center; gap: 6px; }
.profil__bild-knoepfe small { font-size: 12px; }
.bild-form label { cursor: pointer; }
.trenner { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; justify-items: start; }
.firma { margin-top: 28px; display: grid; gap: 14px; }
.firma__kopf { display: flex; align-items: center; gap: 16px; }
.firma__kopf > div { display: grid; }
.firma__kopf strong { font-size: 19px; }
.kunde-kopf { display: flex; align-items: center; gap: 20px; }
.kunde-kopf .kopf { flex: 1; }
.logo-verwalten { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.zeile__mehr summary { list-style: none; cursor: pointer; }
.zeile__mehr summary::-webkit-details-marker { display: none; }
.zeile__mehr[open] { flex-basis: 100%; display: grid; gap: 12px; padding-top: 6px; }
.aufklapp--gefahr summary { color: var(--rot); }
.knopf--gefahr { background: #d6455a; }
/* Schalter */
.schalter { display: flex !important; align-items: center; gap: 12px; color: var(--fg) !important; font-weight: 500 !important; cursor: pointer; }
.schalter input { position: absolute; opacity: 0; pointer-events: none; }
.schalter__knopf { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--ink-4); flex: none; transition: background 0.2s; }
.schalter__knopf::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.25s; }
.schalter input:checked + .schalter__knopf { background: var(--grad); }
.schalter input:checked + .schalter__knopf::after { transform: translateX(18px); }
.schalter input:focus-visible + .schalter__knopf { outline: 2px solid #fff; outline-offset: 2px; }
.system dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.system dt { font-size: 13px; color: var(--leise); }
.system dd { margin: 2px 0 0; font-weight: 700; }
.kontakt { align-items: flex-start; }
@media (max-width: 760px) {
  .profil { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .profil__bild { width: 100%; }
  .kunde-kopf { align-items: flex-start; gap: 14px; }
  .logo-feld--gross, .symbol.logo-feld--gross { width: 56px; height: 56px; }
}

/* =====================================================================
   Version 2 – Navigation, Reiter, Dateien, Viewer, Nachrichten, Support
   ===================================================================== */
[hidden] { display: none !important; }
.abz--blau { background: rgba(67, 75, 255, 0.2); color: #a9adff; }
.abz .ic { width: 14px; height: 14px; margin-right: 5px; }
.rot { color: var(--rot); }
.abstand-oben { margin-top: 26px; }
.meldung--info { background: rgba(67, 75, 255, 0.14); color: #d6d8ff; box-shadow: inset 0 0 0 1px rgba(67, 75, 255, 0.35); }
.meldung a { color: inherit; font-weight: 700; }
.leer--klein { padding: 20px; font-size: 15px; }
.punkt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; border-radius: 99px; background: var(--pink); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1; letter-spacing: 0; }
.punkt--klein { min-width: 9px; width: 9px; height: 9px; padding: 0; position: absolute; top: 6px; right: calc(50% - 16px); box-shadow: 0 0 0 2px var(--ink-2); }
.aufleuchten { animation: aufleuchten 1.8s ease-out; }
@keyframes aufleuchten { 0%, 30% { box-shadow: inset 0 0 0 2px var(--pink), 0 0 0 6px rgba(255, 75, 129, 0.2); } 100% { box-shadow: inset 0 0 0 1px var(--line); } }
.formular__aktionen { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.formular__aktionen .knopf { margin-top: 0; }
.aufklapp summary { display: flex; align-items: center; gap: 10px; }
.aufklapp summary .ic { color: var(--pink); }
.aufklapp summary .abz { margin-left: auto; }
.karte.aufklapp:not([open]) { padding-top: 18px; padding-bottom: 18px; }

/* Navigation */
.suche { position: relative; display: flex; align-items: center; margin: -8px 0 -10px; }
.suche .ic { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--leise); pointer-events: none; }
.suche input { width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 13px; border: 1px solid var(--line); background: var(--ink); color: var(--fg); font-size: 15px; outline: none; }
.suche input:focus { border-color: rgba(255, 75, 129, 0.6); }
.hauptnav a { position: relative; }
.nur-klein { display: none !important; }
.mehr-menue { position: relative; }
.mehr-menue summary { list-style: none; cursor: pointer; }
.mehr-menue summary::-webkit-details-marker { display: none; }
.mehr-menue__liste { position: absolute; right: 0; bottom: calc(100% + 12px); display: grid; gap: 2px; min-width: 230px; padding: 8px; border-radius: 18px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -10px rgba(0, 0, 0, 0.7); }
.mehr-menue__liste a, .mehr-menue__liste button { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px; width: 100%; padding: 12px 14px !important; border: 0; border-radius: 12px; background: none; color: var(--fg); font-size: 15px !important; font-weight: 600; text-decoration: none; cursor: pointer; justify-content: flex-start !important; }
.mehr-menue__liste a:hover, .mehr-menue__liste button:hover { background: var(--ink-4); }
.kopfleiste { position: sticky; top: 0; z-index: 30; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(19, 17, 26, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.kopfleiste__marke { margin-right: auto; }
.kopfleiste__marke img { height: 26px; width: auto; }
.glocke { position: relative; }
.glocke .punkt { position: absolute; top: -4px; right: -4px; margin: 0; }

/* Reiter */
.reiter { display: flex; gap: 4px; margin: -6px 0 26px; padding: 5px; border-radius: 16px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: 12px; z-index: 20; }
.reiter::-webkit-scrollbar { display: none; }
.reiter a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; color: var(--muted); font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.reiter a:hover { color: var(--fg); background: var(--ink-3); }
.reiter a[aria-current] { background: var(--ink-4); color: #fff; box-shadow: inset 0 -2px 0 var(--pink); }
.reiter .punkt { margin-left: 0; }
.reiter-inhalt { scroll-margin-top: 90px; }

/* Übersicht */
.kennzahlen--klein { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
a.kennzahl { text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
a.kennzahl:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 75, 129, 0.35); }
.hinweis-zeile { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; padding: 16px 20px; font-size: 15px; }
.hinweis-zeile > .ic { color: var(--gelb); }
.hinweis-zeile--gruen { box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.35); }
.hinweis-zeile--gruen > .ic { color: var(--gruen); }
.termine { display: grid; gap: 8px; }
.termin { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 18px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.termin:hover { background: var(--ink-3); }
.termin__datum { display: grid; place-items: center; width: 50px; height: 52px; border-radius: 14px; background: linear-gradient(var(--ink-4), var(--ink-4)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; flex: none; line-height: 1.05; }
.termin__datum strong { font-size: 19px; }
.termin__datum small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.symbol--aufgabe { background: rgba(255, 198, 92, 0.14); color: var(--gelb); }
.symbol--aufgabe .ic { width: 20px; height: 20px; }
.symbol--ticket { background: rgba(67, 75, 255, 0.18); color: #a9adff; font-size: 12px; }
.zeile__link { text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.zeile__link:hover { text-decoration: underline; }
.leistungen { list-style: none; padding: 0; display: grid; gap: 8px; }
.leistungen li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.leistungen .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--gruen); }
.neuigkeit-form { margin-bottom: 18px; }
.werkzeuge { margin-bottom: 32px; }

/* Zeitplan */
.zeitplan { list-style: none; padding: 0; display: grid; }
.zeitplan li { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.zeitplan li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 46px; bottom: -10px; width: 2px; background: var(--ink-4); }
.zeitplan li.erledigt:not(:last-child)::after { background: var(--violett); }
.zeitplan__punkt { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink-4); color: var(--muted); flex: none; }
.zeitplan__punkt .ic { width: 17px; height: 17px; }
.zeitplan li.erledigt .zeitplan__punkt { background: var(--violett); color: #fff; }
.zeitplan li:not(.erledigt):not(.vorbei) .zeitplan__punkt { background: linear-gradient(var(--ink-3), var(--ink-3)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; color: var(--fg); }
.zeitplan__text { display: grid; flex: 1; min-width: 0; }
.zeitplan__text strong { font-size: 15px; }
.zeitplan__text small { font-size: 13px; color: var(--leise); }
.zeitplan li.erledigt .zeitplan__text strong { color: var(--muted); }

/* Aufgaben */
.aufgaben { display: grid; gap: 12px; }
.aufgabe { display: grid; gap: 12px; padding: 18px 20px; scroll-margin-top: 90px; }
.aufgabe__kopf { display: flex; align-items: center; gap: 14px; }
.aufgabe__text { display: grid; flex: 1; min-width: 0; }
.aufgabe__text strong { font-size: 16px; }
.aufgabe__text small { font-size: 13px; color: var(--leise); }
.aufgabe__beschreibung { color: var(--muted); font-size: 15px; padding-left: 52px; }
.aufgabe__antwort { padding-left: 52px; }
.aufgabe--fertig { opacity: 0.72; }
.aufgabe--fertig .aufgabe__text strong { text-decoration: line-through; text-decoration-color: var(--leise); }
.haken-knopf { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(217, 215, 230, 0.3); background: none; color: transparent; cursor: pointer; flex: none; transition: all 0.2s; }
.haken-knopf .ic { width: 18px; height: 18px; }
button.haken-knopf:hover { border-color: var(--gruen); color: var(--gruen); }
.haken-knopf[aria-pressed="true"] { background: var(--gruen); border-color: var(--gruen); color: var(--ink); }
.haken-knopf--info { border: 0; background: rgba(255, 198, 92, 0.14); color: var(--gelb); }
.antwort { margin-left: 52px; padding: 12px 16px; border-radius: 14px; background: var(--ink-3); font-size: 15px; }
.erledigte { margin-top: 16px; }
.erledigte summary { cursor: pointer; color: var(--leise); font-weight: 700; font-size: 14px; margin-bottom: 12px; }

/* Briefing */
.briefing { display: grid; gap: 16px; margin-bottom: 16px; }
.briefing__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.briefing__kopf h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.briefing__kopf .ic { color: var(--pink); }
.briefing__antworten { display: grid; gap: 14px; }
.briefing__antworten dt { font-size: 13px; font-weight: 700; color: var(--leise); }
.briefing__antworten dd { margin: 3px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.briefing__aktionen { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Dateien: Filter, Auswahl, Karten */
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--ink-2); color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.chip .ic { width: 16px; height: 16px; }
.chip span { color: var(--leise); font-weight: 700; }
.chip:hover { color: var(--fg); border-color: rgba(217, 215, 230, 0.3); }
.chip[aria-pressed="true"] { background: linear-gradient(var(--ink-4), var(--ink-4)) padding-box, var(--grad) border-box; border-color: transparent; color: #fff; }
.auswahl { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; padding: 10px 12px; border-radius: 18px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.auswahl.hat-auswahl { box-shadow: inset 0 0 0 1px rgba(255, 75, 129, 0.45); position: sticky; top: 76px; z-index: 15; }
.auswahl__zahl { font-size: 14px; color: var(--muted); margin-right: auto; padding-left: 4px; }
.auswahl__zahl strong { color: var(--fg); }
.teilen-dialog { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; padding-top: 10px; border-top: 1px solid var(--line); }
.teilen-dialog label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.teilen-dialog input, .teilen-dialog select { height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink); color: var(--fg); font-size: 15px; width: 100%; }
.dateiraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.dkarte { position: relative; padding: 0; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; transition: box-shadow 0.2s, transform 0.2s; }
.dkarte:hover { box-shadow: inset 0 0 0 1px rgba(217, 215, 230, 0.25); }
.dkarte.gewaehlt { box-shadow: inset 0 0 0 2px var(--pink); }
.dkarte__vorschau { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; text-decoration: none; }
.dkarte__vorschau img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.dkarte:hover .dkarte__vorschau img { transform: scale(1.04); }
.dkarte__typ { display: grid; place-items: center; gap: 6px; font-size: 20px; font-weight: 800; letter-spacing: 0.06em; color: var(--leise); }
.dkarte__typ--video .ic { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--grad); color: #fff; }
.dkarte__typ small { font-size: 12px; }
.dkarte__info { display: grid; gap: 6px; padding: 12px 14px 14px; min-width: 0; }
.dkarte__name { font-weight: 700; font-size: 14.5px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.dkarte__name:hover { text-decoration: underline; }
.dkarte__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.dkarte__meta .abz { height: 22px; font-size: 11.5px; padding: 0 9px; }
.dkarte__info small { font-size: 12.5px; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.dkarte__info small .ic { width: 13px; height: 13px; }
.dkarte__info .knopf { margin-top: 4px; justify-self: start; }
.dkarte__wahl, .dkarte__stern { position: absolute; top: 10px; z-index: 2; }
.dkarte__wahl { left: 10px; cursor: pointer; }
.dkarte__wahl input { position: absolute; opacity: 0; }
.dkarte__wahl span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(19, 17, 26, 0.75); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); backdrop-filter: blur(6px); transition: all 0.15s; }
.dkarte__wahl input:checked + span { background: var(--pink); box-shadow: none; }
.dkarte__wahl input:checked + span::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.dkarte__wahl input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.dkarte__stern { right: 10px; }
.dkarte__stern button, .stern-knopf { cursor: pointer; }
.dkarte__stern button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(19, 17, 26, 0.75); color: #fff; backdrop-filter: blur(6px); }
.dkarte__stern .ic { width: 17px; height: 17px; }
[aria-pressed="true"] > .ic[data-i="stern"], .dkarte__stern button[aria-pressed="true"] .ic, .stern-knopf[aria-pressed="true"] .ic { fill: var(--gelb); color: var(--gelb); }
.stern-knopf[aria-pressed="true"] { color: var(--gelb); }
.geteilt { margin-top: 22px; display: grid; gap: 10px; }
.geteilt > h2 { margin-bottom: 4px; }
.neuer-link { display: flex; gap: 8px; }
.neuer-link input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255, 75, 129, 0.5); background: var(--ink); color: var(--fg); font-size: 14px; }
.upload-bereich { margin-top: 22px; }
.upload.laeuft .upload__feld { opacity: 0.5; pointer-events: none; }

/* Viewer */
.ansicht { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.ansicht__medien { padding: 14px; display: grid; gap: 12px; position: sticky; top: 20px; }
.ansicht__medien > video, .ansicht__medien .bildfeedback img { width: 100%; max-height: 72vh; border-radius: 14px; background: #000; object-fit: contain; }
.ansicht__medien .pdf { width: 100%; height: 76vh; border: 0; border-radius: 14px; background: #fff; }
.ansicht__seite { display: grid; gap: 18px; min-width: 0; }
.ansicht__knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.ansicht__tipp { display: flex; align-items: center; gap: 8px; }
.ansicht__tipp .ic { width: 16px; height: 16px; color: var(--pink); }
.datei-gross { display: grid; place-items: center; gap: 10px; padding: 70px 20px; border-radius: 14px; background: var(--ink); text-align: center; }
.bildfeedback { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.bildfeedback--aktiv img { cursor: crosshair; }
.pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50% 50% 50% 4px; border: 2px solid #fff; background: var(--pink); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); transition: transform 0.15s; }
.pin:hover { transform: scale(1.15); }
.pin--erledigt { background: var(--gruen); color: var(--ink); }
.pin--neu { background: var(--blau); animation: pinpuls 1.4s infinite; pointer-events: none; }
@keyframes pinpuls { 50% { box-shadow: 0 0 0 8px rgba(67, 75, 255, 0.3); } }
.feedback { display: grid; gap: 12px; }
.feedback > h2 { margin-bottom: 0; }
.feedback__form { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.feedback__form.ist-aenderung textarea { border-color: rgba(255, 107, 122, 0.5); }
.feedback__marke { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(67, 75, 255, 0.16); color: #d6d8ff; font-size: 14px; font-weight: 600; }
.feedback__marke .knopf-text { padding: 0; font-size: 13px; }
.umschalter { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.umschalter label { display: block !important; cursor: pointer; }
.umschalter input { position: absolute; opacity: 0; }
.umschalter span { display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border-radius: 10px; font-size: 14px; color: var(--muted); font-weight: 700; transition: all 0.2s; }
.umschalter span .ic { width: 16px; height: 16px; }
.umschalter input:checked + span { background: var(--ink-4); color: #fff; }
.umschalter input[value="aenderung"]:checked + span { background: rgba(255, 107, 122, 0.18); color: var(--rot); }
.umschalter input:focus-visible + span { outline: 2px solid #fff; }
.runde { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leise); margin-top: 6px; }
.feedback .kommentar { max-width: 100%; scroll-margin-top: 90px; border-radius: 14px; }
.kommentar--aenderung { box-shadow: inset 3px 0 0 var(--rot); }
.kommentar--erledigt { opacity: 0.7; box-shadow: inset 3px 0 0 var(--gruen); }
.kommentar__marken { display: flex; gap: 6px; flex-wrap: wrap; margin: 3px 0; }
.kommentar__marken:empty { display: none; }
.kommentar__marken .abz { height: 22px; font-size: 11.5px; }
.zeitmarke { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; border: 0; background: rgba(67, 75, 255, 0.22); color: #c4c7ff; font-size: 12px; font-weight: 800; cursor: pointer; font-variant-numeric: tabular-nums; }
.zeitmarke .ic { width: 13px; height: 13px; }
.zeitmarke:hover { background: var(--blau); color: #fff; }
.pinmarke { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50% 50% 50% 3px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; }
.versionen { list-style: none; padding: 0; display: grid; gap: 6px; }
.versionen li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--ink-3); }
.versionen li[aria-current] { box-shadow: inset 0 0 0 1.5px var(--pink); }
.versionen a { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; text-decoration: none; }
.versionen a span { font-size: 13px; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Nachrichten & Chat */
.postfach { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.postfach__liste { display: grid; gap: 4px; position: sticky; top: 20px; }
.postfach__liste > a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; text-decoration: none; transition: background 0.2s; }
.postfach__liste > a:hover { background: var(--ink-2); }
.postfach__liste > a[aria-current] { background: linear-gradient(var(--ink-3), var(--ink-3)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.postfach__neu select { width: 100%; height: 44px; margin-top: 8px; padding: 0 12px; border-radius: 14px; border: 1.5px dashed rgba(217, 215, 230, 0.25); background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.postfach__verlauf { display: grid; gap: 14px; }
.postfach__verlauf > h2 { margin-bottom: 0; }
.chat { display: grid; gap: 14px; max-height: 62vh; overflow-y: auto; padding: 4px 2px 8px; overscroll-behavior: contain; }
.reiter-inhalt > .chat, .ticket .chat { max-height: 58vh; }
.chat__nachricht { display: flex; gap: 10px; align-items: flex-end; max-width: 82%; }
.chat__nachricht--meins { flex-direction: row-reverse; margin-left: auto; }
.chat__blase { display: grid; gap: 3px; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--ink-3); min-width: 0; }
.chat__nachricht--team .chat__blase { background: rgba(161, 75, 192, 0.16); }
.chat__nachricht--meins .chat__blase { border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, rgba(255, 75, 129, 0.22), rgba(67, 75, 255, 0.22)); }
.chat__blase strong { font-size: 12.5px; color: var(--muted); }
.chat__blase p { font-size: 15px; overflow-wrap: anywhere; }
.chat__blase small { font-size: 11.5px; color: var(--leise); }
.chat__form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: end; margin-top: 14px; }
.chat__form textarea { width: 100%; min-height: 48px; padding: 12px 15px; border-radius: 16px; border: 1px solid var(--line); background: var(--ink); color: var(--fg); font-size: 16px; resize: none; outline: none; line-height: 1.4; }
.chat__form textarea:focus { border-color: rgba(255, 75, 129, 0.6); }
.chat__form .knopf { height: 48px; }
.chat__anhang { width: 48px; height: 48px; border-radius: 16px; }
.chat__dateiname { grid-column: 1 / -1; }
.chat__dateiname:empty { display: none; }
.anhang { display: grid; gap: 6px; margin-top: 4px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); font-size: 13.5px; text-decoration: none; max-width: 300px; }
.anhang span { display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anhang .ic { width: 15px; height: 15px; flex: none; }
.anhang--bild img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; }
.anhang:hover span { text-decoration: underline; }

/* Support */
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.ticket__seite { display: grid; gap: 14px; position: sticky; top: 20px; }
.ticket__seite > h2 { margin-bottom: 0; }
.ticketstatus { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticketstatus li { display: flex; align-items: center; gap: 10px; color: var(--leise); font-weight: 600; font-size: 15px; }
.ticketstatus .ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--ink-4); color: transparent; }
.ticketstatus li.fertig { color: var(--fg); }
.ticketstatus li.fertig .ic { background: var(--gruen); color: var(--ink); }

/* Benachrichtigungen */
.meldungen { display: grid; gap: 6px; }
.meldungen__eintrag { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.meldungen__eintrag:hover { background: var(--ink-3); }
.meldungen__punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-4); flex: none; }
.meldungen__eintrag.ungelesen .meldungen__punkt { background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 75, 129, 0.18); }
.meldungen__eintrag:not(.ungelesen) strong { font-weight: 500; color: var(--muted); }

/* Suche */
.suchfilter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; padding: 14px; }
.suchfilter__q { position: relative; flex: 1 1 260px; display: flex !important; align-items: center; }
.suchfilter__q .ic { position: absolute; left: 14px; color: var(--leise); pointer-events: none; }
.suchfilter input[type="search"] { width: 100%; height: 44px; padding: 0 14px 0 44px; border-radius: 13px; border: 1px solid var(--line); background: var(--ink); color: var(--fg); font-size: 16px; outline: none; }
.suchfilter select { height: 44px; padding: 0 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--ink); color: var(--fg); font-size: 15px; }

/* Angebot */
.angebot { overflow-x: auto; margin-bottom: 20px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabelle th { text-align: left; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--leise); padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
.tabelle td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabelle tfoot td { border-bottom: 0; font-weight: 700; font-size: 17px; padding-top: 18px; }
.tabelle tfoot strong { font-size: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tabelle .zahlen { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.angebot__aktionen { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.annehmen { display: grid; gap: 14px; box-shadow: inset 0 0 0 1.5px rgba(61, 220, 151, 0.4); }
.angebot-form { gap: 18px; }
.positionen { display: grid; gap: 8px; }
.positionen__kopf, .position { display: grid; grid-template-columns: minmax(0, 1fr) 80px 130px 38px; gap: 8px; align-items: start; }
.positionen__kopf { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--leise); padding: 0 4px; }
.positionen [data-positionen-liste] { display: grid; gap: 8px; }
.position textarea, .position input { width: 100%; min-height: 44px !important; padding: 10px 12px !important; border-radius: 12px !important; font-size: 15px !important; }
.position input { text-align: right; }
.position .knopf-icon { height: 44px; }
.positionen__fuss { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; font-size: 15px; color: var(--muted); }
.positionen__fuss strong { color: var(--fg); font-size: 18px; }

/* Geteilte Seite (ohne Login) */
.teilen-seite { width: min(1000px, 100%); display: grid; gap: 18px; }
.teilen-seite h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.teilen-seite > form { justify-self: start; }

/* ---------- Responsive v2 ---------- */
@media (max-width: 1100px) {
  .ansicht { grid-template-columns: minmax(0, 1fr); }
  .ansicht__medien { position: static; }
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket__seite { position: static; grid-row: 1; }
}
@media (max-width: 900px) {
  .nur-klein { display: flex !important; }
  .nur-gross { display: none !important; }
  .suche, .seitenleiste__fuss { display: none !important; }
  .hauptnav { position: relative; }
  .mehr-menue { flex: 1; display: block !important; }
  .mehr-menue > summary { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; padding: 8px 4px; border-radius: 12px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
  .mehr-menue[open] > summary { background: var(--ink-4); color: #fff; }
  .hauptnav a .punkt { position: absolute; top: 3px; right: calc(50% - 22px); margin: 0; min-width: 18px; height: 18px; font-size: 10.5px; }
  .mehr-menue__liste .punkt { position: static !important; margin-left: auto !important; }
  .inhalt { padding-top: 22px; }
  .reiter { top: calc(58px + env(safe-area-inset-top)); margin-left: -16px; margin-right: -16px; border-radius: 0; box-shadow: inset 0 -1px 0 var(--line), inset 0 1px 0 var(--line); }
  .postfach { grid-template-columns: minmax(0, 1fr); }
  .postfach__liste { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .postfach__liste > a { flex: none; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); max-width: 240px; }
  .postfach__neu { flex: none; }
  .postfach__neu select { margin: 0; height: 100%; min-height: 58px; }
  .auswahl.hat-auswahl { top: calc(116px + env(safe-area-inset-top)); }
  .teilen-dialog { grid-template-columns: 1fr 1fr; }
  .teilen-dialog .knopf { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .dateiraster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dkarte__info { padding: 10px; }
  .chat__nachricht { max-width: 94%; }
  .chat__form { grid-template-columns: minmax(0, 1fr) auto auto; }
  .chat__form .knopf span { display: none; }
  .chat__form .knopf { width: 48px; padding: 0; }
  .aufgabe { padding: 14px; }
  .aufgabe__beschreibung, .aufgabe__antwort { padding-left: 0; }
  .antwort { margin-left: 0; }
  .positionen__kopf { display: none; }
  .position { grid-template-columns: 70px minmax(0, 1fr) 38px; }
  .position textarea { grid-column: 1 / -1; }
  .teilen-dialog { grid-template-columns: minmax(0, 1fr); }
  .auswahl .knopf { flex: 1 1 auto; }
  .ansicht__medien { padding: 8px; margin: 0 -6px; }
  .tabelle th, .tabelle td { padding-left: 6px; padding-right: 6px; }
  .kennzahl strong { font-size: 26px; }
}
.inhalt, .ansicht > *, .bildfeedback { min-width: 0; }
.ansicht__medien { overflow: hidden; }
.bildfeedback img { max-width: 100%; height: auto; }
.ansicht__seite, .ticket > *, .postfach__verlauf { grid-template-columns: minmax(0, 1fr); }
.versionen a span, .kommentar p { min-width: 0; }
.versionen, .liste, .aufgaben, .meldungen, .termine { grid-template-columns: minmax(0, 1fr); }
.auth__rahmen { padding-top: calc(40px + env(safe-area-inset-top)); padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

/* =====================================================================
   Version 2.1 – einfacher: Projekt = Übersicht · Dateien · Nachrichten
   ===================================================================== */
.status__text { color: var(--muted); font-size: 15px; padding-top: 4px; border-top: 1px solid var(--line); }
.symbol--nachricht { background: rgba(161, 75, 192, 0.18); color: #d9a6ff; }
.symbol--nachricht .ic { width: 20px; height: 20px; }
.dateien-kopf { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.upload-bereich { margin: 0 0 18px; }
.favoriten-senden { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 18px; padding: 14px 18px; border-radius: 18px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
/* Auswahl-Kästchen nur im Auswahl-Modus */
.dkarte__wahl { opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.dateiraster.waehlen .dkarte__wahl { opacity: 1; pointer-events: auto; }
.dateiraster.waehlen .dkarte__vorschau { cursor: pointer; }
@media (hover: hover) { .dkarte:hover .dkarte__wahl { opacity: 1; pointer-events: auto; } }
.auswahl { position: sticky; bottom: 16px; z-index: 25; margin: 16px 0 0; box-shadow: inset 0 0 0 1px rgba(255, 75, 129, 0.45), 0 20px 40px -12px rgba(0, 0, 0, 0.7); background: var(--ink-3); }
.auswahl.hat-auswahl { position: sticky; top: auto; }
.dok-ansicht { padding: 10px; margin-bottom: 16px; }
.dok-ansicht .pdf { width: 100%; height: 78vh; border: 0; border-radius: 14px; background: #fff; display: block; }
.konto-fuss { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; margin-bottom: 14px; }
.verlauf-box summary .leise { margin-left: auto; }
.kopfleiste__zurueck { font-size: 26px; line-height: 1; padding-bottom: 3px; background: none; width: 34px; margin-left: -8px; }
/* Hinweis unten (Downloads) */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 16px; background: var(--ink-4); color: var(--fg); font-size: 14.5px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -10px rgba(0, 0, 0, 0.7); }
.toast__inhalt { display: flex; align-items: center; gap: 14px; }
.toast__inhalt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Bild groß */
.bildbox { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; place-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom)); background: rgba(10, 9, 14, 0.94); }
.bildbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; grid-row: 2; }
.bildbox__zu { grid-row: 1; justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink-4); color: #fff; font-size: 20px; cursor: pointer; }
.bildbox__leiste { grid-row: 3; }
@media (max-width: 900px) {
  .auswahl { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .hauptnav a { min-width: 0; }
}
@media (max-width: 640px) { .zeile__pfeil { display: none; } }
.kundenansicht { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 22px; padding: 12px 16px; border-radius: 16px; background: rgba(67, 75, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(67, 75, 255, 0.45); font-size: 14.5px; }
.kundenansicht span { display: flex; align-items: center; gap: 8px; }

/* =====================================================================
   Chat wie WhatsApp
   ===================================================================== */
.chat-box { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; border-radius: 20px; overflow: hidden; background: #15131c; box-shadow: inset 0 0 0 1px var(--line); }
.chat-box.ist-drueber { box-shadow: inset 0 0 0 2px var(--pink); }
.chat-box .chat { display: flex; flex-direction: column; gap: 3px; height: min(66vh, 680px); max-height: none; overflow-y: auto; padding: 14px 12px 10px; margin: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px); background-size: 18px 18px; }
.postfach__verlauf .chat-box .chat, .ticket .chat-box .chat { height: min(62vh, 640px); }
.chat-box .chat__leer { margin: auto; border: 0; }
.chat__tag { align-self: center; margin: 12px 0 6px; }
.chat__tag span { display: inline-block; padding: 4px 12px; border-radius: 10px; background: var(--ink-4); color: var(--muted); font-size: 12px; font-weight: 700; }
.chat__system { align-self: center; margin: 6px 0; }
.chat__system span { display: inline-block; padding: 4px 12px; border-radius: 10px; background: rgba(67, 75, 255, 0.16); color: #c4c7ff; font-size: 12.5px; font-weight: 600; }
.chat-box .chat__nachricht { display: flex; align-items: flex-end; gap: 8px; max-width: min(78%, 520px); margin-top: 8px; }
.chat-box .chat__nachricht.folge { margin-top: 0; }
.chat-box .chat__nachricht.folge > .avatar { visibility: hidden; }
.chat-box .chat__nachricht.folge .chat__name { display: none; }
.chat-box .chat__nachricht--meins { margin-left: auto; flex-direction: row; }
.chat-box .chat__blase { position: relative; display: block; min-width: 76px; padding: 7px 10px 6px 11px; border-radius: 4px 16px 16px 16px; background: #262233; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25); }
.chat-box .chat__nachricht.folge .chat__blase { border-radius: 16px; }
.chat-box .chat__nachricht--team .chat__blase { background: #2b2140; }
.chat-box .chat__nachricht--meins .chat__blase { border-radius: 16px 4px 16px 16px; background: linear-gradient(135deg, #8e2f62, #3f3c9a); }
.chat-box .chat__nachricht--meins.folge .chat__blase { border-radius: 16px; }
.chat__name { display: block; font-size: 12.5px; font-weight: 700; color: #ff8fb4; margin-bottom: 2px; }
.chat-box .chat__blase p { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; white-space: normal; }
.chat-box .chat__blase p::after { content: ""; display: inline-block; width: 58px; }
.chat__zeit { position: absolute; right: 9px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: rgba(255, 255, 255, 0.62); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chat__haken { font-size: 11px; letter-spacing: -3px; padding-right: 3px; color: rgba(255, 255, 255, 0.6); }
.chat__haken.gelesen { color: #6fd3ff; }
/* Bilder */
.chat__bild { display: block; margin: 2px -6px 4px -7px; border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, 0.25); width: min(300px, 62vw); max-height: 380px; cursor: zoom-in; }
.chat__bild img { display: block; width: 100%; height: 100%; max-height: 380px; object-fit: cover; }
.chat-box .chat__blase--bild { padding: 4px; }
.chat-box .chat__blase--bild .chat__bild { margin: 0; }
.chat-box .chat__blase--bild .chat__name { padding: 2px 6px 4px; }
.chat-box .chat__blase--bild .chat__zeit { right: 10px; bottom: 9px; padding: 2px 7px; border-radius: 10px; background: rgba(0, 0, 0, 0.45); color: #fff; }
/* Dateien */
.chat__datei { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); text-decoration: none; min-width: 210px; }
.chat__datei .ic { width: 20px; height: 20px; margin-left: auto; color: rgba(255, 255, 255, 0.7); flex: none; }
.chat__datei-symbol { display: grid; place-items: center; width: 40px; height: 44px; border-radius: 8px; background: rgba(255, 255, 255, 0.12); font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; flex: none; }
.chat__datei-text { display: grid; min-width: 0; }
.chat__datei-text strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__datei-text small { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.chat__nachricht.wird-gesendet { opacity: 0.85; }
.chat__nachricht.fehlgeschlagen .chat__blase { box-shadow: inset 0 0 0 1.5px var(--rot); cursor: pointer; }
.chat__nachricht.fehlgeschlagen .chat__zeit { position: static; display: block; margin-top: 4px; color: #ffb3bc; white-space: normal; }
/* Eingabe */
.chat-box .chat__form { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: #1b1825; border-top: 1px solid var(--line); }
.chat-box .chat__form textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 160px; padding: 11px 16px; border-radius: 22px; border: 0; background: var(--ink-4); color: var(--fg); font-size: 16px; line-height: 1.35; resize: none; outline: none; }
.chat__anhang { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); cursor: pointer; flex: none; }
.chat__anhang:hover { background: var(--ink-4); color: var(--fg); }
.chat__anhang .ic { width: 22px; height: 22px; transform: rotate(-45deg); }
.chat__senden { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; cursor: pointer; flex: none; }
.chat__senden .ic { width: 20px; height: 20px; margin-left: -2px; }
.chat__vorschau { flex-basis: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 14px; background: var(--ink-4); }
.chat__vorschau img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.chat__vorschau-name { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__vorschau-weg { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; flex: none; }
.reiter-inhalt > .chat-box { margin-top: 0; }
@media (max-width: 640px) {
  .reiter-inhalt > .chat-box, .postfach__verlauf .chat-box { margin: 0 -16px; border-radius: 0; box-shadow: none; }
  .chat-box .chat, .postfach__verlauf .chat-box .chat { height: calc(100dvh - 270px - env(safe-area-inset-bottom, 0px)); min-height: 320px; }
  .chat-box .chat__nachricht { max-width: 86%; }
  .postfach__verlauf { padding: 14px 16px 0; overflow: hidden; }
}
.chat-box .chat__blase:has(.chat__bild) { width: min(310px, 66vw); }
.chat-box .chat__bild { width: auto; }
.kunde-neu { margin-top: 28px; }
.kunde-neu > h2 { margin-bottom: 6px; } .kunde-neu > p { margin-bottom: 18px; }
/* Handy: Chat-Seiten passen genau auf den Bildschirm */
@media (max-width: 900px) {
  .inhalt > .zurueck { display: none; }
  .seite-nachrichten .inhalt > .kopf { display: none; }
  .chat-voll .inhalt { padding-bottom: 0; }
  .chat-voll .ticket { gap: 10px; }
  .postfach { gap: 10px; }
  .postfach__liste { gap: 6px; }
  .postfach__liste > a { padding: 7px 12px; border-radius: 12px; }
  .postfach__liste > a .zeile__text strong { font-size: 14px; }
  .postfach__liste > a .zeile__text small { font-size: 11.5px; }
  .postfach__neu select { min-height: 0; height: 100%; padding: 0 12px; font-size: 14px; border-radius: 12px; }
  .postfach__verlauf { padding: 0 !important; background: none; box-shadow: none; overflow: visible; }
  .postfach__verlauf > h2 { display: none; }
  .reiter-inhalt > .chat-box, .postfach__verlauf .chat-box, .ticket .chat-box { margin: 0 -16px; border-radius: 0; box-shadow: none; }
  .chat-box .chat, .postfach__verlauf .chat-box .chat, .ticket .chat-box .chat { min-height: 0; }
}
@media (max-width: 640px) {
  .kopf h1 { font-size: 1.7rem; }
  .kopf { margin-bottom: 16px; }
  .seite-projekte .reiter, .seite-kunden .reiter { margin-bottom: 12px; }
  .inhalt { padding-top: 16px; }
}
/* Menü: nichts ragt über die Seitenleiste */
.hauptnav a { min-width: 0; }
.hauptnav a > span:not(.punkt) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Auswahl-Kreis im Mediennest-Stil (wie die Knöpfe) */
.dkarte__wahl span { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(rgba(19, 17, 26, 0.7), rgba(19, 17, 26, 0.7)) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); backdrop-filter: blur(6px); }
.dkarte__wahl span .ic { width: 16px; height: 16px; color: #fff; opacity: 0; transition: opacity 0.15s; }
.dkarte__wahl input:checked + span { background: var(--grad) border-box; border-color: transparent; }
.dkarte__wahl input:checked + span::after { content: none; }
.dkarte__wahl input:checked + span .ic { opacity: 1; }
.dkarte.gewaehlt { box-shadow: inset 0 0 0 2px #c24bb0; }
.knopf--loeschen:not(:disabled):hover { color: var(--rot); }
.video-hinweis { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 198, 92, 0.1); color: #ffe2a8; font-size: 14px; }
.video-hinweis .ic { color: var(--gelb); flex: none; }
.dkarte__vorschau { position: relative; }
.dkarte__vorschau img + .dkarte__typ--video { position: absolute; inset: 0; display: grid; place-items: center; }
.dkarte__typ--video .ic { padding: 13px 11px 13px 15px; }
/* Handy: Kopfzeile immer oben, kein Gummiband-Effekt, Menü weg beim Tippen */
html, body { overscroll-behavior-y: none; }
@media (max-width: 900px) {
  .kopfleiste { position: fixed; top: 0; left: 0; right: 0; }
  .inhalt { padding-top: calc(74px + env(safe-area-inset-top)); }
  .tippt .seitenleiste { display: none; }
  .chat-voll, .chat-voll body { overflow: hidden; }
  html:has(body.chat-voll) { overflow: hidden; }
}
@media (max-width: 640px) {
  .inhalt { padding-top: calc(70px + env(safe-area-inset-top)); }
}
/* Chat-Bilder: quadratische Vorschau, Tippen zeigt das ganze Bild */
.chat-box { --bildw: min(250px, 60vw); }
.chat-box .chat__blase:has(.chat__bild) { width: calc(var(--bildw) + 8px); max-width: calc(var(--bildw) + 8px); }
.chat-box .chat__bild { width: auto; aspect-ratio: 1 / 1 !important; max-height: none; }
.chat-box .chat__bild img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
/* Handy: kompakte Kopfzeile – mehr Platz für Inhalt */
@media (max-width: 900px) {
  .kopfleiste { padding: calc(4px + env(safe-area-inset-top)) 12px 6px; gap: 6px; }
  .kopfleiste .knopf-icon { width: 36px; height: 36px; border-radius: 11px; }
  .kopfleiste__marke img { height: 22px; }
  .inhalt { padding-top: calc(60px + env(safe-area-inset-top)); }
  .reiter { top: calc(47px + env(safe-area-inset-top)); }
  .chat-voll .inhalt { padding-top: calc(54px + env(safe-area-inset-top)); }
  .chat-voll .kopf { margin-bottom: 8px; }
  .chat-voll .kopf h1 { font-size: 1.2rem; }
  .chat-voll .reiter { margin-bottom: 0; }
  .chat-voll .reiter a { padding: 8px 14px; font-size: 14px; }
  .postfach__liste--einzeln { display: none !important; }
  .chat-voll .postfach { gap: 8px; }
}
@media (max-width: 640px) {
  .inhalt { padding-top: calc(60px + env(safe-area-inset-top)); }
  .chat-voll .inhalt { padding-top: calc(54px + env(safe-area-inset-top)); }
}
/* Ausgewählte Datei: Rahmen mit Farbverlauf wie die Knöpfe */
.dkarte.gewaehlt { box-shadow: none; }
.dkarte.gewaehlt::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 2px; background: var(--grad); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
/* Datumsfelder (iPhone): bleiben in ihrer Breite */
.formular input[type="date"], .formular input[type="time"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.formular label { min-width: 0; }
/* Leerraum zwischen Kopfzeile und Titel kleiner */
@media (max-width: 900px) { .inhalt > .kopf:first-child, .inhalt > .meldung + .kopf { margin-top: 0; } }
@media (max-width: 640px) { .werkzeuge > summary .abz { display: none; } }
/* Zwei Ordner im Projekt */
.ordner-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.ordner-wahl__knopf { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid transparent; background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box, linear-gradient(var(--line), var(--line)) border-box; color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; text-align: left; transition: color 0.2s; }
.ordner-wahl__knopf .ic { color: var(--leise); flex: none; }
.ordner-wahl__knopf span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ordner-wahl__knopf small { min-width: 26px; height: 24px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: 99px; background: var(--ink-4); font-size: 12.5px; }
.ordner-wahl__knopf[aria-pressed="true"] { background: linear-gradient(var(--ink-3), var(--ink-3)) padding-box, var(--grad) border-box; color: #fff; }
.ordner-wahl__knopf[aria-pressed="true"] .ic { color: var(--pink); }
.ordner .dateiraster { margin-top: 2px; }
.dkarte__info small { display: block; }
/* Einfache Datei-Ansicht */
.ansicht-einfach { padding: 12px; display: grid; gap: 12px; }
.ansicht-einfach__medien { position: relative; display: grid; place-items: center; min-height: 240px; border-radius: 14px; background: #0c0b10; overflow: hidden; }
.ansicht-einfach__medien > img, .ansicht-einfach__medien > video { display: block; max-width: 100%; max-height: 76vh; width: auto; height: auto; object-fit: contain; }
.ansicht-einfach__medien > video { width: 100%; background: #000; }
.ansicht-einfach__medien .pdf { width: 100%; height: 78vh; border: 0; background: #fff; }
.ansicht-einfach__medien .datei-gross { width: 100%; }
.ansicht-einfach__pfeil { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(19, 17, 26, 0.75); color: #fff; font-size: 28px; line-height: 1; text-decoration: none; backdrop-filter: blur(6px); padding-bottom: 3px; }
.ansicht-einfach__pfeil--links { left: 10px; }
.ansicht-einfach__pfeil--rechts { right: 10px; }
.ansicht-einfach__zahl { margin-left: auto; }
@media (max-width: 640px) {
  .ordner-wahl__knopf { padding: 11px 12px; font-size: 14px; gap: 8px; }
  .ansicht-einfach { padding: 6px; margin: 0 -10px; }
  .ansicht-einfach__medien > img, .ansicht-einfach__medien > video { max-height: 62vh; }
}
.ordner-wahl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ordner-wahl__knopf { min-width: 0; }
@media (max-width: 640px) {
  .reiter { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 4px; }
  .reiter a { justify-content: center; padding: 10px 4px; font-size: 13.5px; gap: 5px; }
  .reiter .punkt { min-width: 17px; height: 17px; font-size: 10.5px; padding: 0 5px; }
}
@media (max-width: 640px) { .ordner-wahl { gap: 8px; } .ordner-wahl__knopf { padding: 11px 10px 11px 13px; font-size: 14px; } .ordner-wahl__knopf .ic { display: none; } .ordner-wahl__knopf small { min-width: 22px; height: 22px; padding: 0 6px; font-size: 12px; } }
@media (max-width: 640px) { .reiter .punkt { min-width: 7px; width: 7px; height: 7px; padding: 0; font-size: 0; align-self: flex-start; margin-top: 2px; } }
/* Kästchen & Auswahlfelder im Mediennest-Stil */
.haken input[type="checkbox"], .formular input[type="checkbox"]:not([hidden]) {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; flex: none; border-radius: 7px; cursor: pointer;
  border: 2px solid transparent; background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--grad) border-box; transition: background 0.15s;
}
.haken input[type="checkbox"]:checked, .formular input[type="checkbox"]:checked {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat, var(--grad) border-box;
}
.haken input[type="checkbox"]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.formular select, select.klein, .suchfilter select, .teilen-dialog select, .postfach__neu select {
  -webkit-appearance: none; appearance: none; padding-right: 42px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4b81' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.anfrage-box { display: grid; gap: 12px; margin-bottom: 24px; box-shadow: inset 0 0 0 1.5px rgba(67, 75, 255, 0.45); }
.anfrage-box h2 { margin-bottom: 0; }
.anfrage-box h2 .ic { color: var(--pink); }
.anfrage-box__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.anfragen { margin-top: 22px; }
.anfragen > .leise { margin-bottom: 14px; }
.aktuelles__projekt { font-size: 13px; font-weight: 700; color: var(--pink) !important; text-decoration: none; }
.aktuelles__neu p { padding: 8px 12px; margin: 4px 0; border-radius: 4px 14px 14px 14px; background: var(--ink-3); }
.postfach--einzeln { grid-template-columns: minmax(0, 1fr); }
/* Ausgewählt = Knopf mit Farbverlauf (wie „Kunde anlegen“) – überall gleich */
.reiter a[aria-current], .chip[aria-pressed="true"], .ordner-wahl__knopf[aria-pressed="true"], .hauptnav a[aria-current], .postfach__liste > a[aria-current] {
  background: var(--grad) border-box !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 6px 18px -8px rgba(255, 75, 129, 0.6) !important;
}
.reiter a[aria-current] .ic, .chip[aria-pressed="true"] .ic, .chip[aria-pressed="true"] span, .ordner-wahl__knopf[aria-pressed="true"] .ic, .hauptnav a[aria-current] .ic, .postfach__liste > a[aria-current] small { color: #fff !important; }
.reiter a[aria-current] .punkt, .hauptnav a[aria-current] .punkt, .ordner-wahl__knopf[aria-pressed="true"] small, .postfach__liste > a[aria-current] .punkt { background: #fff; color: var(--pink); }
.reiter a { border-radius: 999px; }
.reiter { border-radius: 999px; }
@media (max-width: 900px) {
  .hauptnav a[aria-current] { border-radius: 14px; }
  .reiter { border-radius: 0; }
}
/* Datei anhängen als Knopf */
.datei-knopf { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px; cursor: pointer; }
.datei-knopf .knopf { pointer-events: none; }
a.chip { text-decoration: none; }

/* =====================================================================
   Großansicht (Fotos, Videos, PDFs) wie im Messenger
   ===================================================================== */
.medien-offen, .medien-offen body { overflow: hidden; }
.medien { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(8, 7, 12, 0.96); color: #fff; animation: medienAuf 0.18s ease-out; touch-action: none; }
@keyframes medienAuf { from { opacity: 0; transform: scale(0.98); } }
.medien__oben { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
.medien__zu { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 19px; cursor: pointer; flex: none; }
.medien__zu:hover { background: rgba(255, 255, 255, 0.2); }
.medien__name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.medien__zahl { font-size: 13px; color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }
.medien__stufe { display: grid; place-items: center; min-height: 0; padding: 0 8px; transition: transform 0.2s; overflow: hidden; }
.medien__stufe > img, .medien__stufe > video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-select: none; }
.medien__stufe > video { width: 100%; background: #000; }
.medien__pdf { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #fff; }
.medien--pdf .medien__stufe { padding: 0 10px; }
.medien__vor, .medien__nach { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 30px; line-height: 1; padding-bottom: 4px; cursor: pointer; }
.medien__vor { left: 14px; } .medien__nach { right: 14px; }
.medien__unten { display: flex; justify-content: center; gap: 10px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); }
@media (pointer: coarse) { .medien__vor, .medien__nach { display: none; } }

/* Passwort-Auge */
.pw-feld { position: relative; display: block; }
.pw-feld input { padding-right: 52px !important; }
.pw-auge { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; color: var(--leise); cursor: pointer; display: grid; place-items: center; }
.pw-auge svg { width: 21px; height: 21px; }
.pw-auge:hover { color: var(--fg); background: var(--ink-3); }

/* Chat-Kopf, „schreibt …“, Video im Chat, Runter-Knopf */
.chat-box { grid-template-rows: auto minmax(0, 1fr) auto; }
.chat__kopf { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #1b1825; border-bottom: 1px solid var(--line); }
.chat__kopf .logo-feld, .chat__kopf .avatar { width: 38px; height: 38px; }
.chat__kopf-text { display: grid; min-width: 0; }
.chat__kopf-text strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__kopf-text small { font-size: 12.5px; color: var(--leise); }
.chat__kopf-text small.tippt { color: #6fd3ff; font-weight: 700; }
.chat__video { position: relative; }
.chat__video video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.chat__play { position: absolute; inset: 0; display: grid; place-items: center; }
.chat__play .ic { width: 54px; height: 54px; padding: 15px 13px 15px 17px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; backdrop-filter: blur(4px); }
.chat__runter { position: absolute; right: 14px; bottom: 76px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink-4); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); cursor: pointer; display: grid; place-items: center; }
.chat__runter .ic { transform: rotate(90deg); width: 20px; height: 20px; }
.chat__runter span { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--grad); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }

/* Handy: beim Tippen bekommt der Chat den ganzen Platz */
@media (max-width: 900px) {
  .tippt .chat-box .chat__form { padding-bottom: 8px; }
  .tippt.chat-voll .kopfleiste, .tippt.chat-voll .postfach__liste, .tippt.chat-voll .reiter, .tippt.chat-voll .inhalt > .kopf, .tippt.chat-voll .inhalt > .zurueck, .tippt.chat-voll .ticket__seite { display: none !important; }
  .tippt.chat-voll .inhalt { padding-top: env(safe-area-inset-top) !important; }
  .chat-voll .chat-box { border-radius: 0; }
  .chat__runter { bottom: 70px; }
}
.medien { background: #08070c; } .medien__stufe { touch-action: pinch-zoom; }
/* App-Updates */
.app-update { display: grid; gap: 12px; }
.app-update__kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-update__version { padding: 3px 10px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 800; }
.app-update__kopf strong { font-size: 16px; }
.app-update__kopf small { margin-left: auto; }
.app-update__liste { list-style: none; padding: 0; display: grid; gap: 9px; }
.app-update__liste li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14.5px; }
.app-update__liste .abz { justify-content: center; height: 24px; font-size: 11.5px; }
.app-updates__alle { display: grid; gap: 14px; }
.app-version { display: block; padding: 2px 14px; font-size: 12px; color: var(--leise); text-decoration: none; }
.app-version:hover { color: var(--fg); }
.punkt[hidden] { display: none !important; }
@media (max-width: 640px) { .app-update__liste li { grid-template-columns: minmax(0, 1fr); gap: 4px; } .app-update__liste .abz { justify-self: start; } }
/* Mitteilungen aufs Handy */
.push-karte { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px; box-shadow: inset 0 0 0 1.5px rgba(255, 75, 129, 0.35); }
.push-karte__text { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; min-width: 0; }
.push-karte__text .ic { width: 26px; height: 26px; color: var(--pink); flex: none; }
.push-karte__text div { display: grid; }
.push-karte__text small { color: var(--leise); font-size: 13.5px; }
/* ===== 2.6: schneller Seitenwechsel, Uploads im Hintergrund, Chat-Fotos, Downloads ===== */
.ladebalken { position: fixed; top: 0; left: 0; z-index: 200; height: 3px; width: 0; background: var(--grad); box-shadow: 0 0 10px rgba(255, 75, 129, 0.6); opacity: 0; pointer-events: none; transition: width 0.25s, opacity 0.3s; }
.ladebalken.laedt { opacity: 1; width: 80%; transition: width 6s cubic-bezier(0.1, 0.7, 0.2, 1), opacity 0.1s; }
.ladebalken.fertig { opacity: 0; width: 100%; transition: width 0.2s, opacity 0.35s 0.15s; }
main, .inhalt { animation: seite-rein 0.18s ease-out; }
@keyframes seite-rein { from { opacity: 0.6; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main, .inhalt { animation: none; } }

/* Fortschrittsring */
.ul-ring, .ladekarte__symbol { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: none; }
.ul-ring svg, .ladekarte__symbol svg, .chat__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ul-ring__bahn, .chat__ring circle { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 3.2; }
.ul-ring__wert, .chat__ring circle.wert { fill: none; stroke: var(--pink); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; transition: stroke-dashoffset 0.3s; }
.ul-ring__haken { font-size: 15px; font-weight: 800; color: var(--gruen); opacity: 0; transform: scale(0.4); transition: all 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }

/* Upload-Anzeige unten rechts (bleibt beim Seitenwechsel) */
.ul-dock { position: fixed; right: 20px; bottom: 20px; z-index: 85; width: min(360px, calc(100vw - 32px)); border-radius: 20px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -12px rgba(0, 0, 0, 0.75); overflow: hidden; animation: dock-rein 0.35s cubic-bezier(0.2, 1.2, 0.4, 1); }
@keyframes dock-rein { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }
.ul-dock__kopf { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.ul-dock__text { display: grid; min-width: 0; flex: 1; }
.ul-dock__text strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ul-dock__text small { font-size: 12.5px; color: var(--leise); }
.ul-dock__pfeil { color: var(--leise); transition: transform 0.2s; }
.ul-dock__kopf[aria-expanded="true"] .ul-dock__pfeil { transform: rotate(180deg); }
.ul-dock__liste { display: grid; gap: 6px; max-height: 46vh; overflow: auto; padding: 0 10px 10px; }
.ul-dock.ist-fertig .ul-ring__wert { stroke: var(--gruen); }
.ul-dock.ist-fertig .ul-ring__haken { opacity: 1; transform: none; }
.ul-dock.ist-fehler .ul-ring__wert { stroke: var(--rot); }
.ul-dock:not(.ist-fertig):not(.ist-fehler) .ul-ring svg { animation: ring-dreh 2.4s linear infinite; }
@keyframes ring-dreh { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }

/* Upload-Zeilen (im Projekt und in der Anzeige) */
.ul-zeile { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 8px 10px; border-radius: 14px; background: var(--ink-4); font-size: 14px; overflow: hidden; animation: zeile-rein 0.3s ease-out; }
.upload__liste .ul-zeile { background: var(--ink-3); }
@keyframes zeile-rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ul-zeile__bild { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--ink-2); font-size: 10.5px; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; }
.ul-zeile__bild img { width: 100%; height: 100%; object-fit: cover; }
.ul-zeile__text { display: grid; min-width: 0; }
.ul-zeile__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ul-zeile__info { font-size: 12.5px; color: var(--leise); }
.ul-zeile__balken { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.06); }
.ul-zeile__balken > span { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.3s; }
.ul-zeile.ist-laeuft .ul-zeile__balken > span, .ul-zeile.ist-speichert .ul-zeile__balken > span { background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%), var(--grad); background-size: 60px 100%, 100% 100%; background-repeat: no-repeat; animation: glanz 1.1s linear infinite; }
@keyframes glanz { from { background-position: -60px 0, 0 0; } to { background-position: 360px 0, 0 0; } }
.ul-zeile.ist-fertig .ul-zeile__info { color: var(--gruen); }
.ul-zeile.ist-fertig .ul-zeile__balken > span { background: var(--gruen); }
.ul-zeile.ist-fehler { cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 107, 122, 0.4); }
.ul-zeile.ist-fehler .ul-zeile__info { color: var(--rot); }
.ul-zeile.ist-wartet { opacity: 0.7; }
.upload__liste { margin-top: 2px; }

/* Download-Karte */
.toast:has(.ladekarte) { padding: 0; background: transparent; box-shadow: none; width: min(420px, calc(100vw - 32px)); }
.ladekarte { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 20px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -12px rgba(0, 0, 0, 0.75); animation: dock-rein 0.3s cubic-bezier(0.2, 1.2, 0.4, 1); }
.ladekarte__symbol span { font-size: 15px; color: var(--pink); }
.ladekarte.ist-fertig .ul-ring__wert { stroke: var(--gruen); stroke-dashoffset: 0; }
.ladekarte.ist-fertig .ladekarte__symbol span { color: var(--gruen); }
.ladekarte.ist-fehler .ul-ring__wert { stroke: var(--rot); }
.ladekarte__text { display: grid; min-width: 0; flex: 1; }
.ladekarte__text strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ladekarte__text small { font-size: 12.5px; color: var(--leise); font-weight: 500; }
.ladekarte__knopf { flex: none; }
.ladekarte__zu { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--ink-4); color: var(--muted); cursor: pointer; }

/* Chat: Foto wird gesendet */
.chat__bild { position: relative; }
.chat__ring { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(10, 9, 14, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chat__ring circle.wert { stroke: #fff; stroke-dashoffset: 90; }
.chat__haken--uhr { display: inline-flex; letter-spacing: 0; padding-right: 0; vertical-align: -2px; }
.chat__haken--uhr svg { width: 12px; height: 12px; }
.chat__nachricht.wird-gesendet { opacity: 1; }
.chat__nachricht.wird-gesendet .chat__bild img { filter: brightness(0.82); }

@media (max-width: 900px) {
  .ul-dock { right: 16px; left: 16px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.tippt .ul-dock, body.chat-voll .ul-dock { bottom: calc(12px + env(safe-area-inset-bottom)); top: auto; }
  body.chat-voll .ul-dock { top: calc(64px + env(safe-area-inset-top)); bottom: auto; }
}
/* ===== 2.7: Rechtliches, Ergebnisse, Neu für Dich ===== */
.rechts-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 22px 0 8px; font-size: 13.5px; }
.rechts-links a { color: var(--leise); text-decoration: none; }
.rechts-links a:hover { color: var(--fg); }
.seitenleiste__fuss .rechts-links { justify-content: flex-start; margin: 8px 0 0; font-size: 12.5px; gap: 4px 14px; }
.konto-fuss + .leise + .rechts-links, .inhalt > .rechts-links { justify-content: flex-start; }
.rechtstext { max-width: 760px; padding: clamp(20px, 4vw, 36px); line-height: 1.65; }
.rechtstext h1 { font-size: clamp(26px, 5vw, 34px); margin-bottom: 18px; }
.rechtstext h2 { font-size: 17px; margin: 26px 0 8px; }
.rechtstext p, .rechtstext li { color: var(--muted); }
.rechtstext ul { padding-left: 20px; display: grid; gap: 6px; }
.rechtstext a { color: var(--fg); }
.rechtstext__kurz { padding: 14px 16px; border-radius: 14px; background: var(--ink-4); color: var(--fg) !important; }
.zurueck--knopf { border: 0; background: none; font: inherit; cursor: pointer; padding: 0; }
.auth__rahmen .rechtstext { margin-top: 10px; text-align: left; }
.ergebnis { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px; margin-bottom: 20px; background: linear-gradient(135deg, rgba(61, 220, 151, 0.14), rgba(67, 75, 255, 0.10)); box-shadow: inset 0 0 0 1.5px rgba(61, 220, 151, 0.35); }
.ergebnis__text { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 280px; }
.ergebnis__symbol { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gruen); color: #0e2a1e; flex: none; }
.ergebnis__symbol .ic { width: 24px; height: 24px; }
.ergebnis h2 { font-size: 18px; margin: 0 0 2px; }
.ergebnis p { margin: 0; color: var(--muted); }
.ergebnis__aktionen { display: flex; flex-wrap: wrap; gap: 10px; }
.ergebnis__aktionen form { margin: 0; }
.symbol--fertig { background: rgba(61, 220, 151, 0.18) !important; color: var(--gruen) !important; }
.symbol--neu { background: rgba(255, 75, 129, 0.16) !important; color: var(--pink) !important; }
.symbol--fertig .ic, .symbol--neu .ic { width: 20px; height: 20px; }
.anfragen--oben { margin: 0 0 22px; }
.mehr-menue > summary[aria-current="page"] { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -8px rgba(255, 75, 129, 0.6); }
.mehr-menue > summary[aria-current="page"] .ic { color: #fff; }
/* ===== 2.8: Chat wie WhatsApp, Großansicht für alle Dateien ===== */
/* Großansicht: Foto immer komplett sichtbar (vorher am Computer abgeschnitten) */
.medien__stufe { position: relative; }
.medien__stufe > img, .medien__stufe > video { position: absolute; inset: 0 8px; width: calc(100% - 16px); height: 100%; max-width: none; max-height: none; margin: auto; object-fit: contain; border-radius: 4px; }
.medien__stufe > video { background: transparent; }
.medien__karte { display: grid; justify-items: center; gap: 8px; width: min(420px, calc(100% - 32px)); padding: 32px 24px; border-radius: 22px; background: var(--ink-3); text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.medien__karte-symbol { display: grid; place-items: center; width: 84px; height: 100px; margin-bottom: 6px; border-radius: 14px; background: var(--grad); color: #fff; font-size: 17px; font-weight: 800; letter-spacing: 0.04em; box-shadow: 0 16px 34px -14px rgba(255, 75, 129, 0.7); }
.medien__karte strong { font-size: 16px; overflow-wrap: anywhere; }
.medien__karte small { color: var(--leise); }
.medien__karte p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.medien__audio { width: 100%; margin-top: 10px; }
.medien__text { width: 100%; height: 100%; overflow: auto; padding: 18px 20px; border-radius: 12px; background: var(--ink-2); color: var(--fg); font-size: 14px; -webkit-overflow-scrolling: touch; }
.medien__text pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.medien__text table { border-collapse: collapse; font-size: 13.5px; }
.medien__text th, .medien__text td { padding: 6px 10px; border: 1px solid var(--line); text-align: left; white-space: nowrap; }
.medien__text th { background: var(--ink-4); position: sticky; top: -18px; }

/* Chat-Hintergrund mit dezentem Muster */
.chat-box .chat { background-color: #110f17; background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1.2px), radial-gradient(rgba(255, 75, 129, 0.035) 1px, transparent 1.2px); background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px; }
.chat__tag { position: sticky; top: 4px; z-index: 3; }
.chat__tag span { background: rgba(42, 37, 55, 0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
/* Sprechblasen mit Zipfel bei der ersten Nachricht einer Reihe */
.chat-box .chat__nachricht { max-width: min(80%, 540px); margin-top: 10px; transition: transform 0.18s; }
.chat-box .chat__nachricht.folge { margin-top: 2px; }
.chat-box .chat__blase { border-radius: 10px; padding: 6px 9px 7px 10px; }
.chat-box .chat__nachricht .chat__blase::before { content: ""; position: absolute; top: 0; width: 10px; height: 13px; }
.chat-box .chat__nachricht:not(.chat__nachricht--meins):not(.folge) .chat__blase { border-top-left-radius: 0; }
.chat-box .chat__nachricht:not(.chat__nachricht--meins):not(.folge) .chat__blase::before { left: -8px; background: #262233; clip-path: polygon(100% 0, 0 0, 100% 100%); }
.chat-box .chat__nachricht--team:not(.chat__nachricht--meins):not(.folge) .chat__blase::before { background: #2b2140; }
.chat-box .chat__nachricht--meins:not(.folge) .chat__blase { border-top-right-radius: 0; }
.chat-box .chat__nachricht--meins:not(.folge) .chat__blase::before { right: -8px; background: #7a3270; clip-path: polygon(0 0, 100% 0, 0 100%); }
.chat-box .chat__nachricht.folge .chat__blase, .chat-box .chat__nachricht--meins.folge .chat__blase { border-radius: 10px; }
.chat-box .chat__nachricht--meins .chat__blase { background: linear-gradient(160deg, #7a3270 0%, #4a3a96 100%); }
.chat-box .chat__blase p { font-size: 15.5px; line-height: 1.38; }
.chat__name { font-size: 13px; color: #ff8fb4; }
.chat__haken { display: inline-flex; letter-spacing: 0; padding: 0; }
.chat__haken svg { width: 17px; height: 11px; }
.chat__haken.gelesen { color: #53bdeb; }
/* Zitat (Antwort auf eine Nachricht) */
.chat__zitat { display: grid; gap: 1px; margin: 2px -3px 5px -4px; padding: 6px 10px 7px; border-radius: 7px; border-left: 4px solid #ff8fb4; background: rgba(0, 0, 0, 0.22); text-decoration: none; color: inherit; cursor: pointer; min-width: 0; }
.chat__zitat--meins { border-left-color: #8f95ff; }
.chat__zitat strong { font-size: 12.5px; color: #ff8fb4; }
.chat__zitat--meins strong { color: #a9adff; }
.chat__zitat span { font-size: 13.5px; color: rgba(255, 255, 255, 0.72); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-box .chat__blase--bild .chat__zitat { margin: 2px 2px 4px; }
/* Reaktionen */
.chat-box .chat__blase:has(.chat__reaktionen) { margin-bottom: 16px; }
.chat__reaktionen { position: absolute; bottom: -17px; left: 8px; display: inline-flex; align-items: center; gap: 1px; height: 26px; padding: 0 7px; border-radius: 99px; border: 2px solid #110f17; background: #2e2a3b; font-size: 14px; line-height: 1; cursor: pointer; z-index: 1; }
.chat__nachricht--meins .chat__reaktionen { left: auto; right: 8px; }
.chat__reaktionen span { margin-left: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
/* Gelöscht */
.chat__geloescht { display: flex; align-items: center; gap: 6px; font-style: italic; color: rgba(255, 255, 255, 0.55) !important; }
.chat__geloescht .ic { width: 15px; height: 15px; }
.chat__nachricht--geloescht .chat__blase { background: #1f1c29 !important; }
.chat__nachricht--geloescht .chat__blase::before { background: #1f1c29 !important; }
/* Pfeil für das Menü (Computer, beim Drüberfahren) */
.chat__mehr { position: absolute; top: 3px; right: 3px; z-index: 2; display: none; place-items: center; width: 26px; height: 22px; border: 0; border-radius: 0 8px 0 12px; background: radial-gradient(circle at 70% 30%, rgba(30, 27, 40, 0.95) 40%, transparent 75%); color: #fff; cursor: pointer; }
.chat__mehr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .chat__nachricht[data-menue]:hover .chat__mehr { display: grid; } }
.chat__nachricht.ist-markiert .chat__blase { box-shadow: 0 0 0 2px rgba(255, 143, 180, 0.8); }
.chat__nachricht.aufleuchten .chat__blase { animation: zitat-blink 1.4s ease-out; }
@keyframes zitat-blink { 0%, 40% { box-shadow: 0 0 0 3px rgba(255, 143, 180, 0.9); } 100% { box-shadow: 0 0 0 0 rgba(255, 143, 180, 0); } }
.chat__nachricht.wisch-bereit .chat__blase { box-shadow: -6px 0 0 -2px rgba(255, 143, 180, 0.8); }
@media (pointer: coarse) { .chat-box .chat__nachricht { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } .chat-box .chat a, .chat-box .chat img { -webkit-touch-callout: none; } }
/* Menü (lange drücken / Rechtsklick) */
.chat-menue { position: fixed; inset: 0; z-index: 160; background: rgba(5, 4, 9, 0.35); animation: menue-rein 0.12s ease-out; }
@keyframes menue-rein { from { opacity: 0; } to { opacity: 1; } }
.chat-menue__karte { position: absolute; display: grid; gap: 8px; width: 240px; animation: dock-rein 0.22s cubic-bezier(0.2, 1.2, 0.4, 1); }
.chat-menue__reaktionen { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 99px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -10px rgba(0, 0, 0, 0.8); }
.chat-menue__reaktionen button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; font-size: 23px; line-height: 1; cursor: pointer; transition: transform 0.15s; }
.chat-menue__reaktionen button:hover, .chat-menue__reaktionen button:active { transform: scale(1.3); background: rgba(255, 255, 255, 0.08); }
.chat-menue__liste { display: grid; padding: 6px; border-radius: 16px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -10px rgba(0, 0, 0, 0.8); }
.chat-menue__liste button { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; gap: 12px; padding: 11px 12px; border: 0; border-radius: 10px; background: none; color: var(--fg); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
.chat-menue__liste button:hover { background: var(--ink-4); }
.chat-menue__liste button.rot { color: var(--rot); }
.chat-menue__liste svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Eingabe: Antworten-Leiste, Feld mit Kamera */
.chat__antwort { flex-basis: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 12px; background: var(--ink-4); }
.chat__antwort .chat__zitat { flex: 1; margin: 0; cursor: default; }
.chat__antwort-weg { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; flex: none; }
.chat__feld { position: relative; flex: 1; min-width: 0; display: flex; }
.chat__feld textarea { flex: 1; }
@media (max-width: 900px) { .chat__feld:has(.chat__kamera) textarea { padding-right: 46px; } }
.chat__kamera { position: absolute; right: 4px; bottom: 2px; display: grid; place-items: center; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); cursor: pointer; }
.chat__kamera .ic { width: 22px; height: 22px; }
/* Handy: keine Scrollleisten */
@media (max-width: 900px) {
  * { scrollbar-width: none; }
  *::-webkit-scrollbar { display: none; width: 0; height: 0; }
}

/* Spamschutz: Honeypot-Feld ist für Menschen unsichtbar */
.falle { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Sofortige Rückmeldung beim Absenden */
.knopf--fertig { opacity: 1 !important; pointer-events: none; }
