/* ==========================================================================
   Bäßler Digital — App-Oberfläche „Liquid Glass“ (Stand 11.10.2026)
   Übernommen aus Dashboard v2 (dashboard/dashboard-neues design/, aurora.css),
   für Formulare und Masken größer gesetzt.

   Voraussetzung: vorher die Marken-Tokens laden
     ../design_handoff_baessler_digital/design-system/styles.css
   Diese Datei bleibt in den reinen Firmenfarben (Mint, Türkis, Cyan, Azur) und ist
   damit auch für Seiten erlaubt, die Kunden sehen (z. B. „IT-Hilfe“).
   Lavendel/Apricot nur über app-akzente-intern.css – ausschließlich interne Apps.
   ========================================================================== */

:root {
  --app-rand: rgba(219, 238, 250, .24);
  --app-rand-oben: rgba(232, 242, 255, .29);
  --app-flaeche: linear-gradient(133deg, rgba(220, 234, 255, .09), rgba(9, 24, 40, .26));
  --app-schatten: inset 0 1px 0 #ffffff2b, inset 0 -1px 0 #d1e7ff08, 0 18px 42px #00000032, 0 3px 9px #00000012;
  --app-glas: blur(22px) saturate(145%);
  --app-text-leise: #bdd0db;
  --app-text-sehr-leise: #9eb9c8;
  --app-feld: rgba(7, 25, 35, .69);
  --app-feld-rand: rgba(184, 223, 237, .28);
  --app-hinweis: #47F4D5;       /* Hinweise ohne Zusatzfarben: Mint */
  --app-warnung: #FFE08A;       /* Warnung: helles Gelb, kein Orange */
  --app-radius-gross: 22px;
  --app-radius-mittel: 14px;
  --app-radius-pille: 999px;

  /* Größer als im Dashboard: Masken werden während eines Telefonats bedient */
  --app-schrift: 15px;
  --app-schrift-label: 13px;
  --app-schrift-feld: 16px;
  --app-feld-hoehe: 46px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body.app {
  background: #06131D;
  color: var(--text, #F4FBFF);
  font-family: var(--font-sans, Inter, "Helvetica Neue", Arial, sans-serif);
  font-size: var(--app-schrift);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprunglink { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--tuerkis, #18DACC); color: #06131D; padding: 8px 14px; border-radius: 8px; }
.sprunglink:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--focus, #47F4D5); outline-offset: 2px; }

/* ---------- Atmosphäre (statisch, keine Animation) ---------- */
.app-atmosphaere {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse at 79% 18%, rgba(8, 120, 239, .28), transparent 43%),
    radial-gradient(ellipse at 17% 70%, rgba(24, 218, 204, .14), transparent 40%),
    radial-gradient(ellipse at 91% 80%, rgba(71, 244, 213, .16), transparent 38%),
    radial-gradient(ellipse at 56% 43%, rgba(24, 141, 172, .15), transparent 43%);
  transition: opacity .35s;
}
.app-atmosphaere svg { width: 100%; height: 100%; min-height: 1100px; mix-blend-mode: screen; }
.app[data-licht="reduziert"] .app-atmosphaere { opacity: .14; }

/* ---------- Gerüst: Seitenleiste + Inhalt ---------- */
.app-geruest { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 18px; padding: 16px; min-height: 100dvh; position: relative; isolation: isolate; }
.glas {
  background: var(--app-flaeche);
  border: 1px solid var(--app-rand);
  border-top-color: var(--app-rand-oben);
  box-shadow: var(--app-schatten);
  backdrop-filter: var(--app-glas);
  -webkit-backdrop-filter: var(--app-glas);
}
.app-leiste {
  position: sticky; top: 16px; height: calc(100dvh - 32px);
  display: flex; flex-direction: column; padding: 26px 13px 16px;
  border-radius: 24px;
}
.app-logo { display: block; padding: 0 12px; margin-bottom: 22px; }
.app-logo img { width: 168px; height: auto; display: block; }
.app-arbeitsplatz { display: flex; align-items: center; gap: 8px; margin: 0 12px 22px; font-size: 12px; color: var(--app-text-leise); }
.app-punkt { width: 6px; height: 6px; border-radius: 50%; background: #47F4D5; box-shadow: 0 0 12px #47f4d55c; flex: none; }
.app-nav-titel { margin: 18px 12px 8px; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--app-text-sehr-leise); }
.app-nav { display: grid; gap: 4px; }
.app-nav a {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 12px;
  border: 1px solid transparent; border-radius: 12px; text-decoration: none;
  font-size: 14px; color: #c3d7e0;
}
.app-nav a:hover { background: rgba(184, 223, 237, .06); }
.app-nav a[aria-current="page"] {
  background: linear-gradient(120deg, rgba(46, 222, 199, .17), rgba(83, 181, 215, .07));
  border-color: rgba(139, 245, 227, .21); color: #c9fff3;
  box-shadow: inset 0 1px rgba(198, 255, 238, .1), 0 5px 18px #0002;
}
.app-nav svg { flex: none; opacity: .9; }
.app-leiste-unten { margin-top: auto; }
.app-profil { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 14px 12px 0; border-top: 1px solid rgba(184, 223, 237, .14); font-size: 13px; }
.app-profil-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(139, 245, 227, .3); background: rgba(24, 218, 204, .12); color: #c9fff3; font-weight: 600; }
.app-profil div span { display: block; color: var(--app-text-sehr-leise); font-size: 12px; }

.app-inhalt { min-width: 0; display: flex; flex-direction: column; }
.app-kopf { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 0 24px; border-radius: 18px; }
.app-pfad { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--app-text-leise); }
.app-pfad strong { color: var(--text, #F4FBFF); font-weight: 600; }
.app-suche {
  margin-left: auto; display: flex; align-items: center; gap: 10px; height: 38px; width: 300px; padding: 0 14px;
  border: 1px solid rgba(184, 223, 237, .16); border-radius: var(--app-radius-pille); background: rgba(197, 233, 239, .04);
  color: var(--app-text-leise); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.app-suche kbd { margin-left: auto; font: inherit; font-size: 11px; border: 1px solid rgba(184, 223, 237, .2); border-radius: 5px; padding: 1px 6px; }
.app-pille-knopf {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px;
  border: 1px solid rgba(184, 223, 237, .2); border-radius: var(--app-radius-pille);
  background: rgba(184, 223, 237, .04); color: #d2e7ef; font: inherit; font-size: 13px; cursor: pointer;
}
.app-pille-knopf[aria-pressed="true"] { color: #8fabba; background: rgba(6, 19, 29, .5); }
.app-status { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--app-text-leise); }

.app-haupt { padding: 30px 26px 20px; }
.app-fuss { display: flex; justify-content: space-between; gap: 16px; padding: 10px 26px 4px; font-size: 12px; color: var(--app-text-sehr-leise); margin-top: auto; }

/* ---------- Seitenkopf ---------- */
.seitenkopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #a6e3e3; margin-bottom: 10px; }
.seitenkopf h1 { font-size: 36px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.seitenkopf h1 .punkt { color: #47F4D5; }
.seitenkopf p { color: var(--app-text-leise); margin-top: 8px; }
.knopfreihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--app-radius-pille);
  border: 1px solid rgba(145, 219, 226, .25); background: rgba(167, 219, 239, .05);
  color: #d6eaf1; font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px #ffffff14; transition: background .18s, border-color .18s;
}
.knopf:hover { border-color: rgba(117, 234, 218, .45); background: rgba(167, 219, 239, .09); }
.knopf-haupt { background: var(--tuerkis, #18DACC); border-color: transparent; color: #06131D; font-weight: 600; box-shadow: 0 6px 22px rgba(24, 218, 204, .25), inset 0 1px #ffffff55; }
.knopf-haupt:hover { background: #3ee6d6; }
.knopf:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Karten ---------- */
.karte { border-radius: var(--app-radius-gross); padding: 24px 26px; }
.karte + .karte { margin-top: 18px; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.karte-kopf h2 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.karte-nr { font-size: 12px; letter-spacing: .14em; color: var(--app-text-sehr-leise); text-transform: uppercase; margin-bottom: 4px; }
.karte-symbol {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none;
  border: 1px solid rgba(202, 255, 235, .27); background: linear-gradient(135deg, rgba(182, 255, 241, .17), rgba(79, 187, 165, .03));
  box-shadow: inset 0 1px 2px rgba(212, 255, 249, .19), 0 5px 14px #0002; color: #b1fbea;
}

/* ---------- Formular (größer gesetzt) ---------- */
.raster { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 16px; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s6 { grid-column: 1 / -1; }
.feld { display: grid; gap: 7px; align-content: start; }
.feld label, .feld .label { font-size: var(--app-schrift-label); font-weight: 600; color: #d3e6ee; }
.feld .pflicht { color: #47F4D5; margin-left: 2px; }
.feld .hilfe { font-size: 13px; color: var(--app-text-sehr-leise); }
.feld input, .feld select, .feld textarea {
  width: 100%; min-height: var(--app-feld-hoehe); padding: 10px 14px;
  font: inherit; font-size: var(--app-schrift-feld); color: #F4FBFF;
  background: var(--app-feld); border: 1px solid var(--app-feld-rand); border-radius: 12px;
}
.feld textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.feld input::placeholder, .feld textarea::placeholder { color: #7f9cab; }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible { outline: none; border-color: #47F4D5; box-shadow: 0 0 0 3px rgba(71, 244, 213, .18); }

/* Auswahl als Segmente (Radio-Knöpfe, funktioniert ohne JavaScript) */
.segmente { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.segmente legend { font-size: var(--app-schrift-label); font-weight: 600; color: #d3e6ee; margin-bottom: 7px; padding: 0; }
.segmente label {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--app-radius-pille);
  border: 1px solid var(--app-feld-rand); background: rgba(7, 25, 35, .45);
  font-size: 15px; color: #cfe2ea; cursor: pointer;
}
.segmente input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmente label:has(input:checked) { border-color: rgba(71, 244, 213, .55); background: rgba(24, 218, 204, .14); color: #d6fff7; }
.segmente label:has(input:focus-visible) { outline: 2px solid #47F4D5; outline-offset: 2px; }

/* Hinweise und Status */
.hinweis { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; border: 1px solid rgba(71, 244, 213, .25); background: rgba(24, 218, 204, .07); color: #d7f6f1; }
.hinweis.warnung { border-color: rgba(255, 224, 138, .35); background: rgba(255, 224, 138, .07); color: #fff2cc; }
.etikett { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--app-radius-pille); font-size: 12px; font-weight: 600; border: 1px solid rgba(71, 244, 213, .3); color: #bff8ee; background: rgba(24, 218, 204, .08); }
.etikett.warnung { border-color: rgba(255, 224, 138, .4); color: #ffe9a8; background: rgba(255, 224, 138, .07); }
.etikett::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Liste in der Zusammenfassung */
.liste-zeilen { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.liste-zeilen li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(184, 223, 237, .12); font-size: 14px; }
.liste-zeilen li:last-child { border-bottom: 0; }
.liste-zeilen span:last-child { font-variant-numeric: tabular-nums; text-align: right; color: #e6f3f8; }
.zahl-gross { font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- Spaltenaufbau Maske ---------- */
.maske { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.maske-seite { position: sticky; top: 16px; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1180px) {
  .maske { grid-template-columns: 1fr; }
  .maske-seite { position: static; }
}
@media (max-width: 900px) {
  .app-geruest { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .app-leiste { position: relative; top: auto; height: auto; padding: 16px 12px; border-radius: 20px; }
  .app-leiste .app-nav-titel, .app-leiste-unten, .app-arbeitsplatz { display: none; }
  .app-leiste { min-width: 0; }
  .app-leiste .app-nav { grid-auto-flow: column; justify-content: start; overflow-x: auto; max-width: 100%; }
  .app-leiste .app-nav a { white-space: nowrap; }
  .app-logo { margin-bottom: 12px; }
  .app-kopf { padding: 0 12px; }
  .app-suche { width: auto; }
  .app-suche span, .app-suche kbd, .app-status { display: none; }
  .app-haupt { padding: 22px 4px 14px; }
  .raster { grid-template-columns: 1fr; }
  .s2, .s3, .s4, .s6 { grid-column: 1 / -1; }
  .seitenkopf h1 { font-size: 29px; }
  .karte { padding: 20px 18px; }
  .app-fuss { flex-direction: column; padding: 10px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
