/* Oberfläche des Studios (Studio, Werkstatt, Kundenverwaltung, Anmeldung).
   Dunkel, Schrift Geist (selbst ausgeliefert, schriften/LIESMICH.txt). Einzige Farbe ist das Signalgrün oklch(0.92 0.21 122),
   immer voll deckend (keine blassen oder durchsichtigen Abstufungen). Alles andere ist Schwarz, Grau oder Weiß.
   Bewegung nur, wenn das System sie nicht abschaltet (prefers-reduced-motion). */

@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/oberflaeche/schriften/geist-latin-wght-normal.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: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/oberflaeche/schriften/geist-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/oberflaeche/schriften/geist-mono-latin-wght-normal.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --signal: oklch(0.92 0.21 122);
  --signal-text: #0b0b0b;
  --signal-leise: #1c1c1c; /* Fläche für hervorgehobene Bereiche: neutrales Grau, das Grün kommt als Rand oder Schrift dazu */
  --signal-rand: var(--signal);
  /* Augenschonend: kein reines Schwarz, keine reines Weiß (weniger Flimmern), Abstufungen deutlich genug zum Gliedern */
  --grund: #111111;
  --flaeche: #181818;
  --flaeche-2: #202020;
  --flaeche-3: #2a2a2a;
  --text: #ececea;
  --leise: #b3b3ae;
  --linie: #2e2e2e;
  --linie-stark: #444444;
  --akzent: var(--signal);
  --akzent-text: var(--signal-text);
  /* Warnungen und Hinweise ohne eigene Farbe: weiße Schrift auf Grau, markiert mit grünem Rand und Zeichen */
  --warnung: #ececea;
  --warnung-grund: #232323;
  --hinweis: #ececea;
  --hinweis-grund: #1d1d1d;
  --gut: var(--signal);
  --gut-grund: #1d1d1d;
  --ki: #202020;
  --radius: 12px;
  --schatten: 0 18px 50px #000000, 0 0 0 1px #1f1f1f;
  --zeit: 180ms;
  --kurve: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  font-weight: 420;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; font-size: 1rem; line-height: 1.6; letter-spacing: 0.003em; }
::selection { background: var(--signal); color: var(--signal-text); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
a { color: var(--signal); text-underline-offset: 0.18em; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprunglink { position: absolute; left: 1rem; top: -4rem; padding: 0.5rem 1rem; background: var(--signal); color: var(--signal-text); z-index: 50; border-radius: 999px; font-weight: 600; }
.sprunglink:focus { top: 0.75rem; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; font-weight: 620; }
.leise { color: var(--leise); }
code, kbd { font-family: 'Geist Mono', ui-monospace, Consolas, monospace; }
* { scrollbar-width: thin; scrollbar-color: var(--linie-stark) transparent; }

/* ---------- Marke ---------- */
.marke { margin: 0; font-weight: 700; letter-spacing: -0.03em; font-size: 1rem; display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.marke::before { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 3px; background: var(--signal); transform: rotate(45deg); }
.marke span { font-weight: 450; color: var(--leise); }
body.ist-werkstatt .marke span { color: var(--signal); font-weight: 600; }

/* ---------- Knöpfe ---------- */
.knopf {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--linie-stark);
  background: var(--flaeche-2); color: var(--text); font: inherit; font-weight: 550; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--zeit) var(--kurve), border-color var(--zeit) var(--kurve), transform var(--zeit) var(--kurve), box-shadow var(--zeit) var(--kurve), color var(--zeit);
}
.knopf:hover:not(:disabled) { border-color: var(--leise); background: var(--flaeche-3); }
.knopf:active:not(:disabled) { transform: scale(0.97); }
.knopf--haupt { background: var(--signal); border-color: var(--signal); color: var(--signal-text); font-weight: 650; }
.knopf--haupt:hover:not(:disabled) { background: var(--signal); border-color: var(--text); transform: translateY(-1px); }
.knopf--haupt:disabled { background: var(--flaeche-3); border-color: var(--linie-stark); color: var(--leise); opacity: 1; }
.knopf--leise { background: transparent; }
.knopf:disabled { opacity: 0.38; cursor: not-allowed; }
.knopf--klein { min-height: 32px; padding: 0 0.75rem; font-size: 0.875rem; }
.ist-aus { opacity: 0.5; pointer-events: none; }

/* ---------- Felder ---------- */
input, textarea, select {
  font: inherit; color: var(--text); border: 1px solid var(--linie-stark); border-radius: 10px; padding: 0.5rem 0.7rem;
  background: var(--grund); min-height: 40px; transition: border-color var(--zeit), box-shadow var(--zeit);
}
input::placeholder, textarea::placeholder { color: #7a7a7a; }
/* Automatisch ausgefüllte Felder: keine gelbe oder blaue Browserfarbe, sondern wie alle Felder */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--text); caret-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--grund) inset; box-shadow: 0 0 0 1000px var(--grund) inset; transition: background-color 600000s 0s, color 600000s 0s;
}
input:autofill { background: var(--grund); color: var(--text); }
input:hover, textarea:hover, select:hover { border-color: #4a4a4a; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-leise); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--signal); }
progress, meter { accent-color: var(--signal); }
.feld { display: grid; gap: 0.3rem; margin-bottom: 0.8rem; }
.feld label { font-weight: 550; font-size: 0.9375rem; }
.feld small { font-size: 0.875rem; }
.feld-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 0.9rem; }
.feld-reihe .feld--breit { grid-column: span 2; }
@media (max-width: 34rem) { .feld-reihe .feld--breit { grid-column: auto; } }
.haken { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.35rem 0; }
.haken input { min-height: 0; width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex: none; }
.meldung { color: var(--warnung); min-height: 1.4em; margin: 0 0 0.6rem; }

/* ---------- Ladekreisel und Bewegung ---------- */
.kreisel { width: 1rem; height: 1rem; flex: none; border-radius: 50%; background: conic-gradient(from 0deg, var(--grund) 0 25%, var(--signal) 25% 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); animation: drehen 0.8s linear infinite; }
@keyframes drehen { to { transform: rotate(1turn); } }
.laden { display: flex; align-items: center; gap: 0.6rem; padding: 1rem; color: var(--leise); list-style: none; }
.knopf[aria-busy='true'] { color: transparent; pointer-events: none; }
.knopf[aria-busy='true']::after { content: ''; position: absolute; inset: 0; margin: auto; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid currentColor; border-color: var(--signal-text) transparent var(--signal-text) transparent; animation: drehen 0.7s linear infinite; }
.knopf--leise[aria-busy='true']::after { border-color: var(--signal) transparent var(--signal) transparent; }
@keyframes einblenden { from { opacity: 0; transform: translateY(6px); } }
@keyframes aufklappen { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
@keyframes aufklappen-oben { from { opacity: 0; transform: translateY(4px) scale(0.98); } }
@keyframes dialog-auf { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes schimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes glimmen { 50% { transform: scale(1.15); } }

/* ---------- Anmelden ---------- */
.anmelden-seite { align-items: center; justify-content: center; padding: 1rem; background: radial-gradient(60rem 30rem at 50% -10%, #1a1a1a, var(--grund) 60%); }
.anmelden { width: min(100%, 24rem); background: var(--flaeche); border-top: 2px solid var(--signal); padding: 2rem; border-radius: 18px; border: 1px solid var(--linie); box-shadow: var(--schatten); animation: dialog-auf 400ms var(--kurve) both; }
.anmelden h1 { font-size: 1.6rem; margin: 1.25rem 0 0.25rem; }
.anmelden .knopf { width: 100%; min-height: 44px; }
.anmelden a { color: var(--signal); }
.klein { font-size: 0.9375rem; color: var(--leise); margin: 1.25rem 0 0; }
.hinweis-ok { padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--flaeche-2); border: 1px solid var(--signal); margin: 0 0 1rem; }
.rechtlich-fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; margin-top: 1rem; font-size: 0.875rem; }
.rechtlich-fuss a { color: var(--leise); }
.rechtlich-fuss a:hover { color: var(--text); }

/* ---------- Kopfzeile ---------- */
.kopf { position: relative; z-index: 30; display: flex; align-items: center; gap: 0.4rem 0.6rem; flex-wrap: wrap; padding: 0.45rem 1rem; background: #0d0d0d; border-bottom: 1px solid var(--linie); }
.kopf__website { display: flex; align-items: center; gap: 0.5rem; min-width: 0; color: var(--text); font-weight: 550; margin: 0; }
.kopf__website .plakette { margin: 0; }
.kopf__websitename { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22rem; }
.kopf__rechts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; min-width: 0; }
.kopf__rechts > .knopf, .kopf .knopf { min-height: 34px; font-size: 0.875rem; padding: 0 0.8rem; }
.zaehler { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 0.35rem; border-radius: 999px; background: var(--signal); color: var(--signal-text); font-size: 0.78rem; font-weight: 750; animation: glimmen 2.4s ease-in-out infinite; }
#kundenansicht[aria-pressed='true'] { background: var(--text); color: var(--grund); border-color: var(--text); }
@media (max-width: 40rem) {
  .kopf__rechts { margin-left: 0; width: 100%; justify-content: flex-start; }
  .menue__liste--rechts { right: auto; left: 0; }
  .kopf__websitename { max-width: 12rem; }
}

/* Menüs */
.menue { position: relative; }
.menue__knopf::after { content: ''; width: 0.4rem; height: 0.4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-inline-start: 0.1rem; transition: transform var(--zeit) var(--kurve); }
.menue__knopf[aria-expanded='true'] { border-color: var(--text); }
.menue__knopf[aria-expanded='true']::after { transform: translateY(2px) rotate(-135deg); }
.menue__liste { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 15rem; max-width: min(26rem, 92vw); max-height: min(70vh, 32rem); overflow-y: auto; display: grid; padding: 0.3rem; background: var(--flaeche-2); border: 1px solid var(--linie-stark); border-radius: 14px; box-shadow: var(--schatten); animation: aufklappen 160ms var(--kurve) both; transform-origin: top left; }
.menue__liste--rechts { left: auto; right: 0; transform-origin: top right; }
.menue__liste--oben { top: auto; bottom: calc(100% + 6px); animation-name: aufklappen-oben; transform-origin: bottom left; }
.menue__punkt { font: inherit; font-size: 0.9375rem; text-align: left; text-decoration: none; color: var(--text); background: none; border: 0; border-radius: 9px; padding: 0.5rem 0.7rem; min-height: 36px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background var(--zeit); }
.menue__punkt:hover:not(:disabled), .menue__punkt:focus-visible { background-color: var(--flaeche-3); }
.menue__punkt[aria-current='true'] { color: var(--signal); font-weight: 650; background: var(--flaeche-3); }
.menue__punkt[aria-current='true']::before { content: '● '; font-size: 0.6rem; vertical-align: middle; }
.menue__punkt:disabled { opacity: 0.45; cursor: default; }
.menue__gruppe { margin: 0.3rem 0 0; padding: 0.55rem 0.7rem 0.2rem; border-top: 1px solid var(--linie); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leise); }
.menue__liste > .menue__gruppe:first-child, .menue__liste > .menue__gruppe[hidden] + #websites-punkte { border-top: 0; margin-top: 0; }
.menue__text { margin: 0; padding: 0.2rem 0.7rem 0.5rem 1.6rem; font-size: 0.875rem; color: var(--leise); display: grid; gap: 0.2rem; white-space: normal; }
#websites-punkte { display: grid; }

/* Streifen unter der Kopfzeile: Kundenansicht, Nachrichten, Warnungen */
.ka-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; padding: 0.4rem 1rem; background: var(--hinweis-grund); border-bottom: 1px solid var(--signal); color: var(--hinweis); font-size: 0.9375rem; }
.ka-leiste p { margin: 0; }
body.ist-kundenansicht .kopf { box-shadow: inset 0 -2px 0 var(--signal); }
.speicher-warnung { margin: 0; padding: 0.45rem 1rem; background: var(--warnung-grund); color: var(--warnung); font-weight: 600; font-size: 0.9375rem; border-bottom: 1px solid var(--linie); border-left: 3px solid var(--signal); animation: einblenden 300ms var(--kurve) both; }
.mitteilungen { display: grid; gap: 0.5rem; padding: 0.6rem 1rem; background: var(--flaeche-2); border-bottom: 1px solid var(--linie); border-left: 3px solid var(--signal); animation: einblenden 300ms var(--kurve) both; }
.mitteilung { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; align-items: start; }
.mitteilung__titel { margin: 0; font-size: 0.9375rem; color: var(--signal); }
.mitteilung p { margin: 0; grid-column: 1; }
.mitteilung .knopf { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.mitteilung__text { white-space: pre-line; font-size: 0.9375rem; }

/* ---------- Arbeitsfläche ---------- */
body:has(.arbeitsflaeche) { height: 100dvh; overflow: hidden; }
.arbeitsflaeche { --chat: clamp(19rem, 27vw, 24rem); flex: 1; display: grid; grid-template-columns: var(--chat) minmax(0, 1fr); min-height: 0; overflow: hidden; transition: grid-template-columns 460ms var(--kurve); animation: einblenden 400ms var(--kurve) both; }
body.ist-werkstatt .arbeitsflaeche { --chat: clamp(21rem, 31vw, 28rem); }
body.chat-zu .arbeitsflaeche { grid-template-columns: 0px minmax(0, 1fr); }
/* Der Chat behält seine Breite und gleitet unter die Vorschau, statt sich zusammenzuquetschen */
.arbeitsflaeche > .chat { width: var(--chat); transition: transform 460ms var(--kurve), opacity 300ms ease; }
body.chat-zu .arbeitsflaeche > .chat { transform: translateX(-30%); opacity: 0; }
.arbeitsflaeche > .vorschau { position: relative; z-index: 1; grid-column: 2; grid-row: 1; }
.arbeitsflaeche > .chat { grid-column: 1; grid-row: 1; }
.pfeil { display: inline-block; width: 0.45rem; height: 0.45rem; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 460ms var(--kurve); margin-inline-end: 0.15rem; }
body.chat-zu .pfeil { transform: rotate(-135deg); }
@media (max-width: 60rem) {
  body:has(.arbeitsflaeche) { height: auto; overflow: visible; }
  .arbeitsflaeche, body.ist-werkstatt .arbeitsflaeche, body.chat-zu .arbeitsflaeche { grid-template-columns: 1fr; }
  .arbeitsflaeche > .chat { width: auto; grid-column: 1; grid-row: auto; }
  .arbeitsflaeche > .vorschau { grid-column: 1; grid-row: auto; }
  .chat { max-height: 80dvh; border-right: 0; border-bottom: 1px solid var(--linie); }
}

/* Chat */
.chat { display: flex; flex-direction: column; border-right: 1px solid var(--linie); background: var(--flaeche); min-height: 0; }
.ki-hinweis { margin: 0; padding: 0.35rem 1rem; font-size: 0.875rem; color: var(--leise); border-bottom: 1px solid var(--linie); }
.ki-hinweis summary { cursor: pointer; padding: 0.1rem 0; list-style-position: inside; }
.ki-hinweis summary::marker { color: var(--signal); }
.ki-hinweis summary strong { color: var(--text); }
.ki-hinweis p { margin: 0.2rem 0; }
.verlauf { list-style: none; margin: 0; padding: 0.8rem 1rem; overflow-y: auto; flex: 1; display: grid; align-content: start; gap: 0.6rem; }
.nachricht { padding: 0.55rem 0.8rem; border-radius: 14px; max-width: 94%; animation: einblenden 260ms var(--kurve) both; }
.nachricht p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.nachricht__text { overflow-wrap: anywhere; }
.nachricht__text p { white-space: normal; }
.nachricht__text > * + * { margin-top: 0.5rem; }
.nachricht__text ul, .nachricht__text ol { margin-block: 0; padding-inline-start: 1.2rem; }
.nachricht__text li + li { margin-top: 0.2rem; }
.nachricht__text code { font-size: 0.875em; background: var(--flaeche-3); padding: 0 0.25em; border-radius: 4px; }
.nachricht__titel { font-weight: 650; }
.nachricht__wer { display: block; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--leise); margin-bottom: 0.15rem; }
.nachricht--ich { background: var(--flaeche-3); justify-self: end; border-bottom-right-radius: 4px; }
.nachricht--ki { background: var(--ki); border: 1px solid var(--linie); border-bottom-left-radius: 4px; }
.nachricht--ki .nachricht__wer { color: var(--signal); }
.nachricht--studio { background: transparent; border: 1px dashed var(--linie-stark); font-size: 0.9375rem; color: var(--leise); }
.nachricht--warnung { background: var(--warnung-grund); border: 1px solid var(--linie-stark); border-left: 3px solid var(--signal); color: var(--warnung); }
.anfrage-angebot { border: 0; padding-top: 0; }
.eingabe { padding: 0.6rem 1rem 0.8rem; border-top: 1px solid var(--linie); display: grid; gap: 0.5rem; background: var(--flaeche); }
.eingabe textarea { resize: vertical; min-height: 4.2rem; max-height: 40vh; background: var(--grund); }
.eingabe__knoepfe { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; }
.alle-websites { order: -1; flex-basis: 100%; display: flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: var(--leise); cursor: pointer; white-space: nowrap; }
.alle-websites:has(input:checked) { color: var(--text); }
.alle-websites input { accent-color: var(--signal); width: 1rem; height: 1rem; margin: 0; }
.hochladen { position: relative; }
.hochladen:focus-within { outline: 2px solid var(--signal); outline-offset: 2px; }
.chat.ablage-aktiv { outline: 2px dashed var(--signal); outline-offset: -6px; }
.ablage-hinweis { margin: 0; padding: 0.5rem; text-align: center; border: 1.5px dashed var(--signal); border-radius: 10px; color: var(--signal); font-weight: 600; background: var(--flaeche-2); }

/* Fortschritt der KI */
.fortschritt { margin: 0 1rem 0.6rem; padding: 0.6rem 0.75rem; border: 1px solid var(--linie-stark); border-radius: var(--radius); background: linear-gradient(90deg, var(--flaeche-2), var(--flaeche-3), var(--flaeche-2)); background-size: 200% 100%; animation: schimmer 2.6s linear infinite, einblenden 220ms var(--kurve) both; font-size: 0.9375rem; display: grid; gap: 0.35rem; }
.fortschritt__titel { margin: 0; display: flex; align-items: center; gap: 0.55rem; font-weight: 550; }
.fortschritt__punkt { width: 1rem; height: 1rem; flex: none; border-radius: 50%; background: conic-gradient(from 0deg, var(--grund) 0 25%, var(--signal) 25% 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); animation: drehen 0.8s linear infinite; }
.fortschritt__liste { margin: 0; padding-left: 1.2rem; color: var(--leise); display: grid; gap: 0.1rem; font-size: 0.875rem; }
.fortschritt__liste:empty { display: none; }
.fortschritt__liste li { overflow-wrap: anywhere; animation: einblenden 200ms var(--kurve) both; }
.fortschritt .knopf { justify-self: start; }
.hochladen progress, .paket-fortschritt progress { width: 100%; height: 0.4rem; }
.hochladen__liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.2rem; max-height: 10rem; overflow-y: auto; font-size: 0.875rem; }
.hochladen__liste li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 0.75rem; padding: 0.15rem 0.35rem; border-radius: 6px; min-width: 0; }
.hochladen__name { overflow-wrap: anywhere; min-width: 0; }
.hochladen__status { color: var(--leise); }
.hochladen__liste li.ist-aktiv { background: var(--flaeche-3); }
.hochladen__liste li.ist-fertig .hochladen__status { color: var(--gut); }
.hochladen__liste li.ist-fehler .hochladen__status { color: var(--warnung); }

/* Material (Werkstatt) */
.material { margin: 0 1rem 0.5rem; font-size: 0.875rem; display: grid; gap: 0.35rem; }
.material__titel { margin: 0; font-weight: 600; }
.material__knoepfe { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.material__knoepfe label { position: relative; }
.material__knoepfe label:focus-within { outline: 2px solid var(--signal); outline-offset: 2px; }
.material__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; max-height: 4.6rem; overflow-y: auto; }
.material__eintrag { padding: 0.1rem 0.55rem; border: 1px solid var(--linie-stark); border-radius: 999px; background: var(--flaeche-2); overflow-wrap: anywhere; }
.paket-fortschritt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.3rem 0.6rem; padding: 0.45rem 0.6rem; border: 1px solid var(--signal); border-radius: 10px; background: var(--flaeche-2); }
.paket-fortschritt progress { grid-column: 1 / -1; }

.ohne-website { margin: 0; padding: 0.6rem 1rem; border-top: 1px solid var(--linie); font-size: 0.9375rem; }

/* Vorschau: Website groß, Leiste unten */
.vorschau { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--grund); }
.leiste { display: flex; align-items: center; gap: 0.4rem 0.5rem; flex-wrap: nowrap; padding: 0.4rem 0.75rem; border-top: 1px solid var(--linie); background: var(--flaeche); }
.status { margin: 0; color: var(--leise); font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.leiste > * { flex-shrink: 0; }
.leiste > .status { flex-shrink: 1; }
@media (max-width: 75rem) { .leiste { flex-wrap: wrap; } }
.leiste__knoepfe { margin-left: auto; display: flex; gap: 0.4rem; }
.geraete { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--linie-stark); border-radius: 999px; background: var(--grund); }
.geraet { font: inherit; font-size: 0.875rem; min-height: 28px; padding: 0 0.7rem; border: 0; background: transparent; color: var(--leise); border-radius: 999px; cursor: pointer; transition: background var(--zeit), color var(--zeit); }
.geraet:hover { color: var(--text); }
.geraet[aria-pressed='true'] { background: var(--flaeche-3); color: var(--text); font-weight: 600; }
.vorschau__buehne { flex: 1; display: flex; min-height: 0; background: #fff; position: relative; }
.vorschau__rahmen { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; transition: opacity 360ms ease, filter 360ms ease, width 320ms var(--kurve); }
.vorschau__buehne.laedt .vorschau__rahmen { opacity: 0.35; filter: grayscale(1) blur(2px); }
.vorschau__buehne.laedt::after { content: ''; position: absolute; inset: 0; margin: auto; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: conic-gradient(from 0deg, #0b0b0b 0 25%, var(--signal) 25% 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); animation: drehen 0.8s linear infinite; }
.vorschau__buehne--geraet { background: radial-gradient(circle at 50% 0%, #1a1a1a, var(--grund) 70%); justify-content: center; padding: 1rem; overflow: auto; }
.vorschau__buehne--geraet .vorschau__rahmen { flex: none; box-shadow: 0 0 0 8px #1c1c1c, 0 0 0 9px #333, 0 30px 80px rgb(0 0 0 / 0.7); border-radius: 18px; max-width: 100%; animation: geraet-auf 420ms var(--kurve) both; }
@keyframes geraet-auf { from { transform: scale(0.96) translateY(10px); opacity: 0.4; } }
@media (max-width: 60rem) { .vorschau__buehne { min-height: 70vh; } }

/* Streifen über der Vorschau (eine Zeile, platzsparend) */
.streifen, .live-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; padding: 0.35rem 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--linie); animation: einblenden 250ms var(--kurve) both; }
.streifen p { margin: 0; flex: 1 1 18rem; }
.live-status { background: var(--flaeche); color: var(--leise); }
.live-status__text { margin: 0; flex: 1 1 auto; }
.live-status__zu { flex: none; inline-size: 1.75rem; block-size: 1.75rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background-color 150ms; }
.live-status__zu:hover { background-color: var(--flaeche-3); }
.live-status__zu:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.live-status progress { flex: 1 1 100%; block-size: 0.35rem; }
.live-status.ist-online { color: var(--text); background: var(--gut-grund); border-left: 3px solid var(--signal); }
.live-status.ist-fehler, .live-status.ist-wartet { color: var(--text); background: var(--warnung-grund); border-left: 3px solid var(--signal); font-weight: 600; }
.live-status a { color: inherit; }
.waechter { background: var(--warnung-grund); color: var(--warnung); border-left: 3px solid var(--signal); }
.waechter p { font-weight: 600; overflow-wrap: anywhere; }
.waechter__knoepfe { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sperre { background: var(--flaeche-2); color: var(--leise); }
.recht-hinweis { background: var(--hinweis-grund); color: var(--hinweis); border-left: 3px solid var(--signal); }

/* Plaketten: Zustände in hellem Grau, „Live“ und „Erledigt“ in vollem Grün, Fehler in Weiß */
.plakette { display: inline-flex; align-items: center; gap: 0.3rem; margin-inline-start: 0.4rem; padding: 0.05rem 0.55rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; background: #d6d6d6; color: #0b0b0b; border: 1px solid #d6d6d6; vertical-align: middle; white-space: nowrap; }
.plakette::before { content: ''; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: #0b0b0b; }
.plakette[data-art='live'], .plakette[data-status='erledigt'] { background: var(--signal); border-color: var(--signal); }
.plakette[data-art='fehler'] { background: #ffffff; border-color: #ffffff; }
.plakette[data-art='laeuft']::before, .plakette[data-status='in_bearbeitung']::before { animation: glimmen 1.4s ease-in-out infinite; }

/* Balken (Hochladen, Live-Übertragung): grauer Grund, volles Grün, nie die Warnfarben des Browsers */
meter, progress { -webkit-appearance: none; appearance: none; border: 0; border-radius: 999px; background: var(--flaeche-3); overflow: hidden; }
meter::-webkit-meter-bar { background: var(--flaeche-3); border: 0; border-radius: 999px; height: 100%; }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value, meter::-webkit-meter-even-less-good-value { background: var(--signal); border-radius: 999px; }
meter::-moz-meter-bar, meter:-moz-meter-optimum::-moz-meter-bar, meter:-moz-meter-sub-optimum::-moz-meter-bar, meter:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: var(--signal); border-radius: 999px; }
progress::-webkit-progress-bar { background: var(--flaeche-3); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--signal); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--signal); border-radius: 999px; }

/* Modus Pflegen/Gestalten */
.modus { display: inline-flex; border: 1px solid var(--linie-stark); border-radius: 999px; padding: 2px; background: var(--grund); }
.modus__knopf { font: inherit; font-size: 0.875rem; font-weight: 550; border: 0; background: transparent; color: var(--leise); min-height: 30px; padding: 0 0.85rem; border-radius: 999px; cursor: pointer; transition: background var(--zeit), color var(--zeit); }
.modus__knopf:hover { color: var(--text); }
.modus__knopf[aria-pressed='true'] { background: var(--signal); color: var(--signal-text); font-weight: 650; }
.modus__knopf:disabled { cursor: not-allowed; opacity: 0.5; }

/* ---------- Dialoge ---------- */
.dialog { border: 1px solid var(--linie-stark); border-radius: 18px; padding: 0; width: min(100% - 2rem, 36rem); max-height: calc(100dvh - 2rem); color: var(--text); background: var(--flaeche); box-shadow: var(--schatten); }
.dialog[open] { animation: dialog-auf 260ms var(--kurve) both; }
.dialog::backdrop { background: rgb(0 0 0 / 0.75); }
.dialog--breit { width: min(100% - 2rem, 48rem); }
.dialog__form { padding: 1.4rem; display: grid; gap: 0.25rem; }
.dialog__form > * { min-width: 0; }
.dialog__form h2 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.dialog__form h3 { font-size: 0.875rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leise); margin-top: 0.9rem; margin-bottom: 0.2rem; }
.dialog__form > p { margin: 0 0 0.6rem; }
.dialog__knoepfe { position: sticky; bottom: -1.4rem; display: flex; justify-content: flex-end; gap: 0.5rem; margin: 0.5rem -1.4rem -1.4rem; padding: 0.8rem 1.4rem; background: linear-gradient(transparent, var(--flaeche) 30%); }
.dialog__knoepfe--umbruch { flex-wrap: wrap; }

/* Listen in Dialogen */
.zugaenge__liste { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.4rem; }
.zugang { border: 1px solid var(--linie); border-radius: var(--radius); padding: 0.55rem 0.75rem; display: grid; gap: 0.3rem; background: var(--flaeche-2); transition: border-color var(--zeit); }
.zugang:hover { border-color: var(--linie-stark); }
.zugang__kopf { display: flex; flex-wrap: wrap; gap: 0.2rem 0.75rem; align-items: baseline; }
.zugang__mail { font-weight: 600; overflow-wrap: anywhere; }
.zugang__status { font-size: 0.875rem; color: var(--leise); }
.zugang__knoepfe { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.zugaenge__link { display: grid; gap: 0.35rem; padding: 0.7rem; border-radius: var(--radius); background: var(--flaeche-2); border: 1px solid var(--signal); margin-bottom: 0.7rem; }
.zugaenge__link input { font-size: 0.875rem; }
.zugaenge__meldung { min-height: 1.4em; margin: 0 0 0.4rem; font-weight: 550; color: var(--signal); }
.zugaenge__meldung.ist-fehler { color: var(--warnung); }
.kontingent { display: flex; flex-wrap: wrap; align-items: end; gap: 0.5rem; margin-bottom: 0.6rem; }
.kontingent label { flex-basis: 100%; font-weight: 550; font-size: 0.9375rem; }
.kontingent input { width: 8rem; }
.kontingent .haken { font-weight: 400; font-size: 0.9375rem; }
.kontingent .haken input { width: 1.15rem; }
.einladen { display: grid; gap: 0.2rem; }
.live-ergebnis { min-height: 1.4em; margin: 0.5rem 0; white-space: pre-wrap; font-size: 0.9375rem; }
.live-ergebnis.ist-fehler { color: var(--warnung); }
#kuendigung-eingang { width: 11rem; }
#paket { max-width: 100%; }

@media (max-width: 30rem) { .feld-reihe .feld--breit { grid-column: auto; } }
.freigabe__liste { margin: 0 0 0.7rem; padding-left: 1.2rem; max-height: 12rem; overflow: auto; }

.preis-felder { flex-basis: 100%; display: grid; gap: 0.5rem; }
.preis-feld { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
.preis-feld > label:first-child { flex-basis: 100%; font-weight: 450; }
.kontingent .preis-feld .haken { flex-basis: auto; font-weight: 400; margin: 0; }
.preis-feld input { width: 10rem; }
.preis-feld .haken input { width: 1.15rem; }

/* Rechtstexte */
.recht__wahl { justify-self: start; margin-block: 0.25rem 0.5rem; max-width: 100%; }
.recht__stand { margin: 0 0 0.5rem; font-size: 0.9375rem; color: var(--leise); }
.recht__stand.ist-vorlage { color: var(--hinweis); font-weight: 600; }
.recht__text { font: 0.875rem/1.55 'Geist Mono', ui-monospace, Consolas, monospace; min-height: 16rem; resize: vertical; }
.recht__aktionen { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 0.5rem; }
.recht__fakten { border: 1px solid var(--linie); border-radius: var(--radius); padding: 0.7rem 0.9rem; margin-block: 0.7rem; background: var(--flaeche-2); }
.recht__merkmale { padding: 0; margin: 0 0 0.7rem; list-style: none; display: grid; gap: 0.55rem; font-size: 0.9375rem; }
.recht__merkmale strong { display: block; }
.recht__merkmale ul { margin: 0.2rem 0 0; padding-inline-start: 1.2rem; }
.recht__merkmale > li, .recht__fakten { min-width: 0; overflow-wrap: anywhere; }
.recht__merkmal.ist-neu { border-inline-start: 3px solid var(--signal); padding-inline-start: 0.6rem; }
.recht__neu { display: inline-block; margin-inline-start: 0.4rem; padding: 0 0.5rem; border-radius: 999px; background: var(--signal); color: var(--signal-text); font-size: 0.8125rem; font-weight: 600; }
.recht__offen { margin-top: 0.7rem; padding: 0.6rem 0.8rem; background: var(--hinweis-grund); color: var(--hinweis); border-radius: 10px; border-left: 3px solid var(--signal); }
.recht__offen p { margin: 0 0 0.5rem; }
.recht__meldung { min-height: 1.4em; margin: 0.25rem 0; }
.recht__meldung.ist-fehler { color: var(--warnung); }
@media (max-width: 30rem) {
  .recht__wahl { display: flex; justify-self: stretch; }
  .recht__wahl .modus__knopf { flex: 1 1 auto; padding: 0.25rem 0.5rem; }
}

/* Zwei-Faktor-Anmeldung */
.zf__schritte { margin: 0 0 0.5rem; padding-inline-start: 1.25rem; }
.zf__qr { display: block; width: 12.5rem; height: 12.5rem; background: #fff; padding: 0.5rem; border-radius: 12px; margin-block: 0.25rem 0.5rem; }
.zf__geheimnis { font-family: 'Geist Mono', ui-monospace, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.zf__codes { columns: 2; margin: 0 0 0.5rem; padding: 0; list-style: none; font: 0.9375rem 'Geist Mono', ui-monospace, Consolas, monospace; }

/* Gestaltungsanfragen */
.anfrage-neu { display: grid; gap: 0.4rem; }
.anfrage-neu button { justify-self: start; }
.anfragen { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.anfrage { border: 1px solid var(--linie); border-radius: var(--radius); padding: 0.55rem 0.75rem; display: grid; gap: 0.3rem; background: var(--flaeche-2); animation: einblenden 240ms var(--kurve) both; }
.anfrage__kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; }
.anfrage__kopf .plakette { margin-inline-start: auto; }
.anfrage__text { margin: 0; white-space: pre-line; }
.anfrage__verlauf { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: 0.2rem; font-size: 0.9375rem; }
.anfrage__eintrag { white-space: pre-line; color: var(--leise); }
.anfrage__eintrag--dd { color: var(--text); }
.anfrage__eintrag--dd::marker { color: var(--signal); }
.anfrage__nachtrag form { display: grid; gap: 0.4rem; margin-top: 0.4rem; }
.anfrage__nachtrag button { justify-self: start; }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .kreisel, .fortschritt__punkt { animation: drehen 2.4s linear infinite !important; }
}

/* ---------- Mehr Bewegung (alles abschaltbar über prefers-reduced-motion) ---------- */
.kopf { animation: von-oben 420ms var(--kurve) both; }
.leiste { animation: von-unten 420ms var(--kurve) 80ms both; }
@keyframes von-oben { from { transform: translateY(-100%); opacity: 0; } }
@keyframes von-unten { from { transform: translateY(100%); opacity: 0; } }
/* Menüpunkte erscheinen nacheinander */
.menue__liste > *, #websites-punkte > * { animation: einblenden 220ms var(--kurve) both; }
.menue__liste > :nth-child(2), #websites-punkte > :nth-child(2) { animation-delay: 25ms; }
.menue__liste > :nth-child(3), #websites-punkte > :nth-child(3) { animation-delay: 50ms; }
.menue__liste > :nth-child(4), #websites-punkte > :nth-child(4) { animation-delay: 75ms; }
.menue__liste > :nth-child(n + 5), #websites-punkte > :nth-child(n + 5) { animation-delay: 100ms; }
/* Pfeil im Menüknopf, Knöpfe mit kleiner Reaktion */
.knopf--leise:hover:not(:disabled) { transform: translateY(-1px); }
.geraet[aria-pressed='true'], .modus__knopf[aria-pressed='true'] { animation: einrasten 260ms var(--kurve); }
@keyframes einrasten { 0% { transform: scale(0.92); } 60% { transform: scale(1.04); } }
/* Unterstreichung, die von links einläuft */
.rechtlich-fuss a, .menue__punkt { background-image: linear-gradient(var(--signal), var(--signal)); background-repeat: no-repeat; background-size: 0 1px; background-position: 0.7rem calc(100% - 0.3rem); transition: background-size 260ms var(--kurve), background-color var(--zeit); }
.menue__punkt:hover:not(:disabled):not([aria-current='true']) { background-size: calc(100% - 1.4rem) 1px; }
.rechtlich-fuss a { background-position: 0 100%; text-decoration: none; }
.rechtlich-fuss a:hover { background-size: 100% 1px; }
/* Material, Zugänge, Plaketten */
.material__eintrag { animation: aufpoppen 260ms var(--kurve) both; }
@keyframes aufpoppen { from { transform: scale(0.85); opacity: 0; } }
.plakette { animation: aufpoppen 300ms var(--kurve) both; }
.zugang, .website { transition: border-color var(--zeit), transform var(--zeit) var(--kurve); }
.zugang:hover, .website:hover { transform: translateX(2px); }
/* Eingabefeld: grüne Linie läuft beim Fokus ein */
.eingabe { position: relative; }
.eingabe::before { content: ''; position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--kurve); }
.eingabe:focus-within::before { transform: scaleX(1); }
/* Senden-Knopf: kurzer Schub beim Klick */
#senden:active:not(:disabled) { transform: scale(0.94) translateX(2px); }
/* Dialoge: Hintergrund blendet ein */
.dialog[open]::backdrop { animation: abdunkeln 260ms ease both; }
@keyframes abdunkeln { from { background: rgb(0 0 0 / 0); } }

/* ---------- Lesbarkeit ---------- */
.nachricht { line-height: 1.6; }
.nachricht--ki .nachricht__text, .nachricht p { font-weight: 430; }
.leise, .zugang__status, .status, .ki-hinweis, .anfrage__eintrag { font-weight: 430; }
h1, h2, h3, h4, strong, b { font-weight: 640; }
input, textarea, select { font-weight: 450; }
.menue__punkt { font-weight: 480; }

/* Website prüfen */
.pruef-knopf { gap: 0.4rem; }
.pruef-punkt { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--leise); flex: none; }
.pruef-knopf[data-stand='ok'] .pruef-punkt { background: var(--signal); }
.pruef-knopf[data-stand='fehler'] { border-color: var(--text); }
.pruef-knopf[data-stand='fehler'] .pruef-punkt { background: var(--text); }
.pruef-knopf[data-stand='laeuft'] .pruef-punkt { background: conic-gradient(from 0deg, var(--flaeche) 0 25%, var(--signal) 25% 100%); animation: drehen 0.8s linear infinite; }
.pruef-lauf { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border: 1px solid var(--signal); border-radius: 12px; background: var(--flaeche-2); margin: 0.3rem 0 0.6rem; }
.pruef-lauf__zeit { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--leise); }
.pruef-ergebnis { display: grid; gap: 0.5rem; }
.pruef-ergebnis__kopf { margin: 0; }
.pruef-veraltet { margin: 0; padding: 0.4rem 0.7rem; border-left: 3px solid var(--signal); background: var(--flaeche-2); }
.pruef-gruppe { border: 1px solid var(--linie); border-radius: 12px; padding: 0.5rem 0.75rem; margin-bottom: 0.4rem; background: var(--flaeche-2); animation: einblenden 220ms var(--kurve) both; }
.pruef-gruppe h3 { margin: 0 0 0.25rem; font-family: 'Geist Mono', ui-monospace, monospace; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 0.875rem; }
.pruef-gruppe ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.25rem; }
.pruef-gruppe li { overflow-wrap: anywhere; }

/* Freigabe von Widgets fremder Anbieter (Werkstatt) */
.freigabe { border: 1px solid var(--signal); border-radius: 0.75rem; padding: 0.75rem 1rem; display: grid; gap: 0.5rem; }
.freigabe__titel { margin: 0; font-weight: 600; color: var(--text); }
.freigabe__angaben { display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 0.75rem; margin: 0; font-size: 0.8125rem; }
.freigabe__angaben dt { color: var(--leise); }
.freigabe__angaben dd { margin: 0; overflow-wrap: anywhere; }
.freigabe__warnung { margin: 0; font-weight: 600; border-left: 3px solid var(--signal); padding-left: 0.5rem; }
.freigabe__knoepfe { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.freigabe__knoepfe p { margin: 0; }
