/* Gemeinsames Design der Apps (Vorschlag 04.10.2026, in die Vorlage
   uebernommen). Flaechen und Text wie todo. Gruen, Orange und Rot bedeuten nur
   Zustand; der Akzent steht fuer Handlung und Auswahl.

   AKZENT JE APP: eine der sieben Zeilen in BEIDEN Bloecken eintragen
   (--ac / --ac-dim / --on-ac). Alle sind gleich hell und gleich kraeftig.
                 dunkel                          hell
     Indigo   #8EA2FF 142,162,255  #0B1030    #4453D6 68,83,214    #FFFFFF
     Himmel   #7CC4FA 124,196,250  #04263D    #0369A1 3,105,161    #FFFFFF
     Cyan     #67E8F9 103,232,249  #062A30    #0E7490 14,116,144   #FFFFFF
     Tuerkis  #5EEAD4 94,234,212   #042F2A    #0F766E 15,118,110   #FFFFFF
     Violett  #C4A1FF 196,161,255  #22104A    #7C3AED 124,58,237   #FFFFFF
     Rosa     #F0A6C8 240,166,200  #3B0A22    #BE185D 190,24,93    #FFFFFF
     Gold     #F5C451 245,196,81   #3A2A00    #A16207 161,98,7     #FFFFFF  */
:root {
  color-scheme: dark;
  --bg: #0B0E14;
  --bg2: #141821;
  --bg3: #1B202B;
  --bg4: #232937;
  --line: #262C39;
  --line2: #333A4A;
  --text: #EDF0F5;
  --text2: #9AA2B4;
  --text3: #7A8296;
  --ac: #8EA2FF;
  --ac-dim: rgba(142,162,255,.14);
  --on-ac: #0B1030;
  --ok: #4ADE80;
  --ok-dim: rgba(74,222,128,.12);
  --warn: #FB923C;
  --warn-dim: rgba(251,146,60,.15);
  --bad: #F87171;
  --bad-dim: rgba(248,113,113,.14);
  --toast: #E9ECF2;
  --toast-text: #14171F;
  --scrim: rgba(4,6,10,.62);
  --sh1: 0 1px 2px rgba(0,0,0,.4);
  --sh3: 0 1px 0 rgba(255,255,255,.06) inset, 0 18px 40px rgba(0,0,0,.5);
  --ease: cubic-bezier(.2,0,0,1);
  --sidebar-w: 232px;
  --r: 14px;
  --r-sm: 10px;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F7F9;
  --bg2: #FFFFFF;
  --bg3: #F0F2F5;
  --bg4: #E6E9EF;
  --line: #E3E6EC;
  --line2: #D1D6DF;
  --text: #14171F;
  --text2: #5B6374;
  --text3: #6E7686;
  --ac: #4453D6;
  --ac-dim: rgba(68,83,214,.10);
  --on-ac: #FFFFFF;
  --ok: #15803D;
  --ok-dim: rgba(21,128,61,.09);
  --warn: #C2500A;
  --warn-dim: rgba(234,88,12,.11);
  --bad: #DC2626;
  --bad-dim: rgba(220,38,38,.09);
  --toast: #1B202B;
  --toast-text: #EDF0F5;
  --scrim: rgba(20,23,31,.35);
  --sh1: 0 1px 2px rgba(20,23,31,.08);
  --sh3: 0 2px 6px rgba(20,23,31,.06), 0 18px 40px rgba(20,23,31,.14);
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  /* 100svh: die kleine Viewport-Hoehe passt am Telefon immer, 100vh ragt um
     die Werkzeugleiste ueber das Sichtbare hinaus. */
  min-height: 100vh;
  min-height: 100svh;
  overscroll-behavior: none;
  /* Ein einziger Lichtfleck oben im Akzent - Tiefe, kein Schmuckverlauf. */
  background:
    radial-gradient(900px 420px at 50% -160px, var(--ac-dim), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ac); }
.num { font-variant-numeric: tabular-nums; }
.flex1 { flex: 1; }
.hint { font-size: 13px; color: var(--text3); }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }

/* ===== SYMBOLE UND KNOEPFE ===== */
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn {
  position: relative; height: 42px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; white-space: nowrap; background: none;
  transition: transform 90ms var(--ease), background-color 140ms var(--ease), border-color 140ms var(--ease), opacity 140ms;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn .ico { width: 20px; height: 20px; }
.btn-p { background: var(--ac); color: var(--on-ac); box-shadow: var(--sh1); }
.btn-p:hover { filter: brightness(1.06); }
.btn-s { background: var(--bg3); color: var(--text); border-color: var(--line2); }
.btn-s:hover { border-color: var(--text3); }
.btn-leise { color: var(--text2); }
.btn-leise:hover { background: var(--bg3); color: var(--text); }
.btn-block { width: 100%; }
.btn-gross { height: 50px; font-size: 15.5px; border-radius: 13px; }
/* Laeuft: der Text bleibt (er sagt, was geschieht), davor ein Punkt, der
   pulsiert. Kein Kreisel, der den Knopf springen laesst. */
.btn.laeuft::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  animation: puls 900ms var(--ease) infinite alternate;
}
.btn.laeuft .ico { display: none; }
@keyframes puls { from { opacity: .25; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.ibtn {
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--text2);
  display: inline-grid; place-items: center; text-decoration: none; flex: none;
  transition: background-color 120ms var(--ease), color 120ms;
}
.ibtn:hover { background: var(--bg3); color: var(--text); }
.ibtn-weg:hover { background: var(--bad-dim); color: var(--bad); }
.ibtn-platz { width: 44px; flex: none; }
.link-knopf { border: 0; background: none; color: var(--ac); font-size: 13px; font-weight: 600; padding: 6px 2px; }
[data-theme="light"] .icon-dark, [data-theme="dark"] .icon-light { display: none; }
.chip {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px;
  font-size: 11px; font-weight: 700; vertical-align: 1px; background: var(--bg3); color: var(--text2);
}
.chip-ac { background: var(--ac-dim); color: var(--ac); }

/* ===== SEITE ===== */
.seite {
  min-height: 100vh; min-height: 100svh; display: flex; justify-content: center;
  padding: calc(28px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  animation: auf 320ms var(--ease);
}
@keyframes auf { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.logo {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; flex: none;
  background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line2), var(--sh1);
}
.titel { font-size: 23px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }

/* ===== ANMELDEN ===== */
/* Zentriert ueber margin: bei align-items rutscht eine hohe Karte (Telefon
   quer) nach oben aus dem Sichtbaren. Am Telefon ohne Kasten - der Rand des
   Bildschirms ist Rahmen genug; ab 560 px als schwebende Karte. */
.karte { margin: auto; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.karte-mitte { align-items: center; text-align: center; }
/* Zwei Teile wie eine Visitenkarte: links die App, zu der es geht, in ihrer
   Farbe (--app, aus app.js), rechts das Formular. Am Telefon ist die Flaeche
   ein Band oben ueber die volle Breite - alles passt ohne Scrollen, auch auf
   dem iPhone SE. Die grosse Rundung zur Formularseite hin ist das Motiv. */
.seite-anmelden { padding-top: 0; }
.duo {
  --app: #4453D6;
  width: 100%; max-width: 420px; margin: 0 auto auto; display: flex; flex-direction: column; gap: 22px;
}
.app-flaeche {
  position: relative; display: flex; align-items: center; gap: 14px; color: #fff;
  margin: 0 -16px; padding: calc(16px + env(safe-area-inset-top)) 10px 18px 20px;
  border-radius: 0 0 30px 30px;
  background:
    radial-gradient(420px 200px at 0 0, rgba(255,255,255,.16), transparent 70%),
    linear-gradient(160deg, var(--app), color-mix(in srgb, var(--app) 78%, #000));
  box-shadow: var(--sh1);
}
.app-ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none;
  font-size: 28px; line-height: 1; background: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.app-text { flex: 1; min-width: 0; }
.app-name { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-beschr {
  margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: rgba(255,255,255,.84);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.app-flaeche .theme-toggle { color: rgba(255,255,255,.85); align-self: flex-start; margin-top: -4px; }
.app-flaeche .theme-toggle:hover { background: rgba(255,255,255,.14); color: #fff; }
.duo-form { display: flex; flex-direction: column; gap: 16px; }
/* Der Hauptknopf traegt die Farbe der App, Fokus und Felder bleiben neutral. */
.duo .btn-p { background: var(--app); color: #fff; }

.formular { display: flex; flex-direction: column; gap: 14px; }
.formular .btn { margin-top: 4px; }
.bio .ico { width: 22px; height: 22px; }
.btn-s.bio, .bio:not(.btn-p) { background: var(--bg2); color: var(--text); border-color: var(--line2); box-shadow: var(--sh1); }
.trenner { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text3); }
.trenner::before, .trenner::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.angebot-ico {
  width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; margin-bottom: 4px;
  background: var(--ac-dim); color: var(--ac); box-shadow: inset 0 0 0 1px var(--line2);
}
.angebot-ico .ico { width: 44px; height: 44px; stroke-width: 1.5; }
.angebot-text { color: var(--text2); font-size: 15px; margin: -6px 0 8px; }

/* ===== FELDER: leer, Fokus, gefuellt, Fehler, gesperrt, gezeigt ===== */
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbl { font-size: 13px; font-weight: 600; color: var(--text2); }
.inp {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--bg2); color: var(--text); font-size: 15.5px; outline: none;
  transition: border-color 120ms var(--ease), box-shadow 160ms var(--ease), background-color 120ms;
}
.inp::placeholder { color: var(--text3); }
.inp:hover { border-color: var(--text3); }
.inp:focus { border-color: var(--ac); box-shadow: 0 0 0 4px var(--ac-dim); }
.inp.is-err { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-dim); }
.inp:disabled { background: var(--bg3); color: var(--text3); border-style: dashed; }
.inp-mit { position: relative; }
.inp-mit .inp { padding-right: 50px; }
.inp-knopf {
  position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: none; color: var(--text3); display: grid; place-items: center;
}
.inp-knopf:hover { color: var(--text); }
.fehler { font-size: 13px; font-weight: 600; color: var(--bad); animation: auf 200ms var(--ease); }
.regel { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text3); transition: color 160ms var(--ease); }
.regel .ico { width: 15px; height: 15px; stroke-width: 2.4; opacity: .35; transition: opacity 160ms var(--ease); }
.regel.erfuellt { color: var(--ok); }
.regel.erfuellt .ico { opacity: 1; }

/* ===== KONTO ===== */
.seite-konto { padding-top: calc(16px + env(safe-area-inset-top)); }
.spalte { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 22px; }
.konto-kopf { display: flex; align-items: center; gap: 2px; min-height: 64px; margin-right: -10px; }
.av {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-right: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: .02em; background: var(--ac); color: var(--on-ac); box-shadow: var(--sh1);
}
.konto-wer { flex: 1; min-width: 0; }
.konto-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.konto-sub { font-size: 13px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp { display: flex; flex-direction: column; gap: 8px; }
.grp-h { display: flex; align-items: center; justify-content: space-between; }
.sec { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); padding: 0 4px; }
/* Gruppierte Liste: eine Flaeche, Zeilen durch eine Haarlinie ab dem Text
   getrennt (Naehe statt Rahmen um jede Zeile). */
.liste { background: var(--bg2); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line), var(--sh1); overflow: hidden; }
.liste:empty { display: none; }
.zeile { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 4px 6px 14px; width: 100%; }
.zeile + .zeile::before, #pk-liste .zeile::before, #pk-neu::before {
  content: ""; position: absolute; top: 0; left: 58px; right: 0; height: 1px; background: var(--line);
}
.zeile-eng + .zeile-eng::before { left: 14px; }
.zeile-knopf { border: 0; background: none; text-align: left; transition: background-color 120ms var(--ease); }
.zeile-knopf:hover { background: var(--bg3); }
.zeile-knopf:active { background: var(--bg4); }
.zeile-ico {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--bg3); color: var(--text2);
}
.zeile-ico .ico { width: 18px; height: 18px; }
.zeile-ico-ok { background: var(--ok-dim); color: var(--ok); }
.zeile-ico-ac { background: var(--ac-dim); color: var(--ac); }
.zeile-neu .zeile-titel { color: var(--ac); }
.zeile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.zeile-titel { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile-notiz { font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile-zeit { font-size: 12.5px; color: var(--text3); white-space: nowrap; flex: none; }
.zeile-pfeil { width: 18px; height: 18px; color: var(--text3); margin-right: 10px; }
/* Der Name des Passkeys ist direkt das Feld: sieht aus wie Text, bis man tippt. */
.zeile-inp {
  width: 100%; min-width: 0; height: 28px; margin-left: -6px; padding: 0 6px; border-radius: 6px;
  border: 1px solid transparent; background: none; font-weight: 600; outline: none;
}
.zeile-inp:hover { border-color: var(--line2); }
.zeile-inp:focus { border-color: var(--ac); background: var(--bg); box-shadow: 0 0 0 3px var(--ac-dim); }
/* Verlauf: dicht, drei Spalten */
.zeile-eng { min-height: 42px; padding: 6px 14px; gap: 12px; font-size: 13.5px; }
.e-zeit { width: 96px; flex: none; color: var(--text3); white-space: nowrap; }
.e-was { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e-bad { color: var(--bad); }
.e-wo { color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.leer-klein { padding: 16px 14px; font-size: 14px; color: var(--text3); }

/* ===== VERWALTUNG (Konten und Gruppen, 06.10.2026) ===== */
.spalte-breit { max-width: 760px; }
.spalte-eng { display: flex; flex-direction: column; gap: 12px; }
a.zeile { color: inherit; text-decoration: none; }
.v-leiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.segment { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--bg3); border: 1px solid var(--line); align-self: flex-start; }
.segment button {
  height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--text2);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.segment button[aria-checked="true"], .segment button[aria-selected="true"] { background: var(--bg2); color: var(--text); box-shadow: var(--sh1); }
.segment-voll { display: flex; align-self: stretch; width: 100%; }
.segment-voll button { flex: 1; }
.chip-knopf { border: 0; cursor: pointer; height: 30px; padding: 0 10px; gap: 6px; }
.chip-knopf .ico { width: 14px; height: 14px; }
.chip-ok { background: var(--ok-dim); color: var(--ok); }
.chip-bad { background: var(--bad-dim); color: var(--bad); }
.av-klein { width: 32px; height: 32px; font-size: 12px; margin-right: 0; }
.g-namen { font-size: 12.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38%; }
.zusatz { font-weight: 400; color: var(--text3); }
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.zwei .fld, .blatt-inhalt .fld { min-width: 0; }
.blatt-gross .blatt-inhalt { padding-right: 4px; margin-right: -4px; }
#v-inhalt { display: flex; flex-direction: column; gap: 22px; }
.inp-zeile { display: flex; gap: 8px; }
.inp-zeile .inp { flex: 1; min-width: 0; }
.inp-zeile .btn { height: 46px; flex: none; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-weg { color: var(--bad); }
.btn-weg .ico { width: 17px; height: 17px; }
.link-knopf .ico { width: 15px; height: 15px; vertical-align: -3px; margin-right: 3px; }
.haken-liste { display: grid; grid-template-columns: 1fr; gap: 2px; max-height: 42vh; overflow-y: auto; padding: 4px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); }
.haken-z { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: 8px; cursor: pointer; }
.haken-z:hover { background: var(--bg3); }
.haken-z input { width: 19px; height: 19px; accent-color: var(--ac); flex: none; }
.haken-text { display: flex; flex-direction: column; min-width: 0; }
.haken-titel { font-weight: 600; font-size: 14px; }
.haken-notiz { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prot .zeile-text { gap: 2px; }
.prot-det { white-space: normal; }
@media (min-width: 700px) { .haken-liste { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .g-namen { display: none; } }

/* ===== BLATT: am Telefon von unten, ab 700 px als Dialog ===== */
.scrim {
  position: fixed; inset: 0; z-index: 40; background: var(--scrim);
  opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease);
}
.scrim.offen { opacity: 1; pointer-events: auto; }
.blatt {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: calc(100% - 40px);
  display: flex; flex-direction: column; background: var(--bg2); border-top: 1px solid var(--line2);
  border-radius: 22px 22px 0 0; box-shadow: var(--sh3);
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(105%); visibility: hidden;
  transition: transform 300ms cubic-bezier(.32,.72,0,1), visibility 0s linear 300ms;
}
.blatt.offen { transform: none; visibility: visible; transition: transform 300ms cubic-bezier(.32,.72,0,1), visibility 0s; }
.griff { width: 40px; height: 5px; border-radius: 3px; background: var(--line2); align-self: center; margin-bottom: 6px; flex: none; }
.blatt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-right: -8px; }
.blatt-titel { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.blatt-inhalt { display: flex; flex-direction: column; gap: 16px; padding: 10px 0 2px; overflow-y: auto; }
.blatt-fuss { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.blatt-fuss .btn-p { min-width: 128px; }

/* ===== TOAST ===== */
.toasts {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 50; width: min(440px, calc(100% - 32px)); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; min-height: 48px; border-radius: 12px;
  background: var(--toast); color: var(--toast-text); font-size: 14px; font-weight: 500; box-shadow: var(--sh3);
  pointer-events: auto; animation: hoch 240ms var(--ease);
}
.toast span { flex: 1; min-width: 0; }
.toast-fehler { background: var(--bad); color: #fff; }
.toast-aktion {
  height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
  color: inherit; font-weight: 700; text-decoration: underline; flex: none;
}
@keyframes hoch { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Zierde darf ruhen. Der Puls im Knopf traegt eine Aussage (laeuft) und
   bleibt; Safari meldet reduce schon im Stromsparmodus. */
@media (prefers-reduced-motion: reduce) {
  .seite, .toast, .fehler { animation: none; }
}

/* iOS zoomt in jedes Feld unter 16 px und bleibt gezoomt (Audit 29.09.2026,
   B1). Am Zeiger, nicht an der Breite: quer gelegt ist das Telefon breiter. */
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]) { font-size: 16px !important; }
}

@media (min-width: 560px) {
  .karte {
    max-width: 400px; padding: 30px 28px 28px; border-radius: 22px;
    background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line), var(--sh3);
  }
  .karte .inp { background: var(--bg); }
}
@media (min-width: 560px) {
  .seite-anmelden { padding-top: calc(28px + env(safe-area-inset-top)); }
  .duo {
    margin: auto; overflow: hidden; gap: 0; border-radius: 22px;
    background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line), var(--sh3);
  }
  .duo .inp { background: var(--bg); }
  .app-flaeche { margin: 0; padding: 22px 12px 22px 24px; border-radius: 22px 22px 34px 34px; }
  .duo-form { padding: 24px 28px 28px; }
}
/* Ab hier nebeneinander: die Flaeche steht links, mittig, mit der grossen
   Rundung zum Formular hin. */
@media (min-width: 760px) {
  .duo { max-width: 780px; flex-direction: row; min-height: 460px; }
  .app-flaeche {
    width: 46%; flex: none; flex-direction: column; justify-content: center; text-align: center; gap: 18px;
    padding: 48px 36px; border-radius: 22px 120px 120px 22px;
  }
  .app-ico { width: 88px; height: 88px; border-radius: 26px; font-size: 46px; }
  .app-text { flex: none; width: 100%; }
  .app-name { font-size: 28px; white-space: normal; }
  .app-beschr { margin-top: 6px; font-size: 14.5px; -webkit-line-clamp: 3; }
  .app-flaeche .theme-toggle { position: absolute; top: 12px; left: 12px; margin: 0; }
  .duo-form { flex: 1; min-width: 0; justify-content: center; padding: 40px 44px; }
  .duo-form .titel { margin-bottom: 4px; }
}
@media (min-width: 700px) {
  .blatt {
    left: 50%; right: auto; bottom: auto; top: 50%; width: min(440px, calc(100% - 48px));
    border: 1px solid var(--line2); border-radius: 20px; padding: 18px 22px 22px;
    transform: translate(-50%, -46%) scale(.98); opacity: 0;
    transition: transform 220ms var(--ease), opacity 220ms var(--ease), visibility 0s linear 220ms;
  }
  .blatt.offen { transform: translate(-50%, -50%); opacity: 1; transition: transform 220ms var(--ease), opacity 220ms var(--ease), visibility 0s; }
  .griff { display: none; }
  .blatt-gross { width: min(640px, calc(100% - 48px)); max-height: calc(100% - 48px); }
}
