/*
 * app/mock-warteliste: das ALTE Display des Hero-Handys (Vertraege-Geschichte), EINGEFROREN am 02.09.2026.
 * Stand: app/mock/* bei Commit 7577d110. Cyrill (02.09.2026, ~17:25, Landing-Chat): «Das Mockup beim Handy wollte ich
 * nur anders auf vemo.ch/app, nicht bei der Gate- und Warteliste-Seite, dort bleibt das Alte.» Darum gibt es zwei
 * Display-Programme: app/mock/ (Landing, wird weiterentwickelt) und dieses hier (Warteliste und Einladungsseite,
 * bleibt stehen). Eine Kopie ist hier ehrlich, weil zwei verschiedene Displays gewollt sind, nicht ein geteiltes.
 * Importe zeigen auf diesen Ordner; Cache-Schluessel ?v=1-warteliste-eingefroren an allen Ladern (Waechter
 * app/tests/hero-handy-bausteine-frei-und-ein-schluessel.test.mjs).
 */
/* ═══════════════════════════════════════════════════════════════════════════
   DIE iOS-APP IM HERO-HANDY — 1:1 nach vemo-reclaim-ios (SwiftUI).
   Ersetzt seit 25.07.2026 den nachgebauten Web-App-Inhalt im Hero-Mockup.
   Gehaeuse, 3D-Tiefe, Startanimation (Neige-Rampe) und die zwei Chips links
   und rechts kommen unveraendert aus hero-phone-3d.js — hier steckt NUR der
   Display-Inhalt.
   Herkunft und Begruendung jeder Zahl: Desktop/Vemo/reclaim-mockups/LIESMICH.md
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   DIE ECHTE iOS-APP — 1:1 nach vemo-reclaim-ios (SwiftUI).
   Jede Zahl stammt aus dem Swift-Quellcode, nicht aus dem Augenmass.
   Projektregel der App: 1px Web = 1pt iOS (AppFonts.swift:22) → direkt als px.
     Theme.swift ......... Farben, Radien
     SafeArea.swift ...... TopBar: Inhalt 34, Polster 10, Luft 12
     AppBackground.swift . MeshGradient 3×3, Basis #F4F7FB + 4 Akzenttöne
     AuroraBackground .... nur Login/Splash
     RootTabView.swift ... Tab-Leiste 12/9 innen, 14 aussen, Icon 21, Label 9.6
     DashboardView.swift . Topbar, Return-Hero, Karten
     PolicyDetailView .... Kopfband 70, Kachel 48, Stat-Zeile
     PostfachChatView .... Blasen, „Frage an dich", Eingabeleiste
     EmpfehlenView.swift . Hero #282F47, Rang-Karte
   Bühne = iPhone 17 Pro in Punkten: 402 × 874.

   ⚠️ JEDE Regel hier ist auf `.ios` eingesperrt — den Handy-Bildschirm.
   Die App arbeitet mit kurzen Klassennamen (.lg, .pol, .row, .k, .v, .b, .ic).
   Ungesperrt greifen die auf die ganze Webseite durch: `.lg` (Login-Schirm der
   App) hat die Rechtslinks der Fusszeile senkrecht an den linken Rand geworfen,
   weil app.css nach story.css lädt. Das ist keine Ausnahme, sondern eine ganze
   Klasse von Kollisionen — mit dem `.ios`-Käfig kann sie nicht mehr auftreten,
   egal welche Klassennamen die Seite oder die App künftig benutzt.
   NEUE REGELN DESHALB IMMER mit `.ios ` beginnen.
   ═══════════════════════════════════════════════════════════════════════════ */


.ios {
  /* Theme.swift */
  --green:      #7ED957;
  --green-text: #2F9E44;
  --green-hero: #8EDC59;
  --navy1: #0F1729; --navy2: #1A2540; --navy3: #1F2C4D;
  --ink:      #0F172A;
  --ink-soft: #64748B;
  --dark:     #282F47;
  --tab-off:  #7A8296;
  --amber:    #F2C14E;
  --label:    #94A3B8;   /* Micro-Labels „RETURN" */

  /* Geräte-/Leistenmasse */
  --safe-top: 62px;
  --safe-bot: 34px;
  --bar-h: 54px;            /* 34 Inhalt + 2×10 Polster */
  --bar-gap: 12px;
  --inset-top: calc(var(--safe-top) + var(--bar-h) + var(--bar-gap));

  position: absolute; inset: 0;
  font-family: 'Poppins', system-ui, sans-serif;   /* laedt die Seite bereits */
  color: var(--ink);
  /* ZEILENHÖHE AN DER WURZEL — der wichtigste Wert im ganzen File.
     SwiftUI gibt jeder Textzeile die Höhe der Schrift selbst: UIFont.lineHeight
     = (ascender + |descender|) / unitsPerEm. Für Poppins steht in der TTF
     asc 1050, desc −350, upem 1000 → 1.40.
     Ohne diese Zeile rechnet der Browser mit „normal" (~1.2) und JEDER Block
     wird zu niedrig — auf dem Dashboard summierte sich das auf 20 px. Einmal
     hier gesetzt, stimmen alle Blöcke: Karten, Chatblasen, Detailzeilen,
     Empfehlen. Eigene line-height nur dort, wo die App wirklich eine setzt.  */
  line-height: 1.4;
  overflow: hidden; isolation: isolate;
  -webkit-font-smoothing: antialiased;
}

/* Bruchstück-Betrieb: dieselben App-Bausteine dürfen AUSSERHALB des Handys als
   schwebende 3D-Mockups auftreten (Cyrill 25.07.: „3D-Mockups überlagernd").
   Nur die Bühnen-Eigenschaften werden zurückgenommen — Schrift, Farben und
   alle Masse bleiben identisch, damit die Bruchstücke echte App-Teile sind.  */
.ios.ios-frag {
  position: relative; inset: auto; overflow: visible; isolation: auto;
  width: 100%; height: auto;
}

/* ── Hintergrund: MeshGradient 3×3 (AppBackground.swift) ────────────────────
   Die 9 Farben sind mit der Swift-Formel ausgerechnet — opakes Mischen in die
   Basis #F4F7FB, nie Alpha. Der Akzent rotiert pro Tab.                      */
.ios-bg {
  position: absolute; inset: -2px; z-index: 0;
  background-color: #F4F7FB;
  transition: background-image .45s ease-in-out;
}
.ios[data-accent="0"] .ios-bg {          /* Verträge — grün führt */
  background-image:
    radial-gradient(72% 58% at 0% 0%,    #E5F3E6 0%, transparent 74%),
    radial-gradient(62% 46% at 50% 0%,   #E8F2F9 0%, transparent 72%),
    radial-gradient(72% 58% at 100% 0%,  #E3F0F8 0%, transparent 74%),
    radial-gradient(56% 62% at 0% 50%,   #ECF5EF 0%, transparent 72%),
    radial-gradient(56% 62% at 100% 50%, #EFF0FB 0%, transparent 72%),
    radial-gradient(72% 58% at 0% 100%,  #F4EFF6 0%, transparent 74%),
    radial-gradient(62% 46% at 50% 100%, #F4F2F8 0%, transparent 72%),
    radial-gradient(72% 58% at 100% 100%,#ECECFA 0%, transparent 74%);
}
.ios[data-accent="1"] .ios-bg {          /* Postfach — blau führt */
  background-image:
    radial-gradient(72% 58% at 0% 0%,    #DEEEF7 0%, transparent 74%),
    radial-gradient(62% 46% at 50% 0%,   #EFF0FB 0%, transparent 72%),
    radial-gradient(72% 58% at 100% 0%,  #ECEDFA 0%, transparent 74%),
    radial-gradient(56% 62% at 0% 50%,   #E8F2F9 0%, transparent 72%),
    radial-gradient(56% 62% at 100% 50%, #F4F1F7 0%, transparent 72%),
    radial-gradient(72% 58% at 0% 100%,  #E9F4EC 0%, transparent 74%),
    radial-gradient(62% 46% at 50% 100%, #EDF5F1 0%, transparent 72%),
    radial-gradient(72% 58% at 100% 100%,#F4EDF5 0%, transparent 74%);
}
.ios[data-accent="2"] .ios-bg {          /* Optimieren — violett führt */
  background-image:
    radial-gradient(72% 58% at 0% 0%,    #EAEAFA 0%, transparent 74%),
    radial-gradient(62% 46% at 50% 0%,   #F4F1F7 0%, transparent 72%),
    radial-gradient(72% 58% at 100% 0%,  #F4EEF5 0%, transparent 74%),
    radial-gradient(56% 62% at 0% 50%,   #EFF0FB 0%, transparent 72%),
    radial-gradient(56% 62% at 100% 50%, #ECF5EF 0%, transparent 72%),
    radial-gradient(72% 58% at 0% 100%,  #E5F1F8 0%, transparent 74%),
    radial-gradient(62% 46% at 50% 100%, #EAF3F9 0%, transparent 72%),
    radial-gradient(72% 58% at 100% 100%,#E7F4E9 0%, transparent 74%);
}
.ios[data-accent="3"] .ios-bg {          /* Empfehlen — pink führt */
  background-image:
    radial-gradient(72% 58% at 0% 0%,    #F4EBF4 0%, transparent 74%),
    radial-gradient(62% 46% at 50% 0%,   #ECF5EF 0%, transparent 72%),
    radial-gradient(72% 58% at 100% 0%,  #E8F4EB 0%, transparent 74%),
    radial-gradient(56% 62% at 0% 50%,   #F4F1F7 0%, transparent 72%),
    radial-gradient(56% 62% at 100% 50%, #E8F2F9 0%, transparent 72%),
    radial-gradient(72% 58% at 0% 100%,  #EDEEFA 0%, transparent 74%),
    radial-gradient(62% 46% at 50% 100%, #EFF1FB 0%, transparent 72%),
    radial-gradient(72% 58% at 100% 100%,#E2EFF8 0%, transparent 74%);
}

/* Aurora — NUR Login/Splash (AuroraBackground.swift:79-83) */
.ios-aurora { position: absolute; inset: 0; overflow: hidden; background: #F4F7FB; }
.ios-aurora i { position: absolute; display: block; filter: blur(28px); border-radius: 50%; }
.ios-aurora .a1 { width: 52%; height: 60%; left: 62%; top: -22%; background: radial-gradient(circle, rgba(168,145,245,.46), transparent 70%); animation: aur 10s ease-in-out infinite alternate; }
.ios-aurora .a2 { width: 50%; height: 58%; left: -19%; top: 67%; background: radial-gradient(circle, rgba(76,175,220,.41), transparent 70%); animation: aur 10s ease-in-out -3.3s infinite alternate; }
.ios-aurora .a3 { width: 70%; height: 52%; left: 17%; top: 80%; background: radial-gradient(circle, rgba(126,217,87,.38), transparent 70%); animation: aur 10s ease-in-out -6.6s infinite alternate; }
@keyframes aur {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(-8.5%, 6.5%) scale(1.24) rotate(8deg); }
  100% { transform: translate(6.5%, -6%) scale(1.12) rotate(-7deg); }
}

/* ── Statusleiste ─────────────────────────────────────────────────────────*/
.ios-status {
  position: absolute; top: 0; left: 0; right: 0; height: var(--safe-top);
  z-index: 40; display: flex; align-items: center; padding: 0 32px;
  pointer-events: none; font-size: 15.5px; font-weight: 600; color: #05070F;
}
.ios-status .st-time, .ios-status .st-right { margin-top: 7px; }
.ios-status .st-right { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.ios-island { position: absolute; top: 13.7px; left: 50%; transform: translateX(-50%); width: 124px; height: 37.3px; border-radius: 20px; background: #000; z-index: 41; }
.ios .st-bat { width: 25px; height: 12px; border-radius: 3.5px; background: #05070F; position: relative; display: block; }
.ios .st-bat::after { content: ''; position: absolute; right: -3px; top: 3.5px; width: 2px; height: 5px; border-radius: 0 2px 2px 0; background: rgba(5,7,15,.4); }

/* ── Glas-Kopfleiste (GlassTopBar) ────────────────────────────────────────*/
.ios-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  height: calc(var(--safe-top) + var(--bar-h));
  padding: var(--safe-top) 14px 0;
  display: flex; align-items: center;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
}
.ios-topbar::after {                     /* #282F47 5 % → transparent, 10 hoch, y+10 */
  content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(to bottom, rgba(40,47,71,.05), transparent); pointer-events: none;
}
.ios-topbar > div { width: 100%; height: 34px; display: flex; align-items: center; }
.ios-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.ios .tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.ios-bell {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.72); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(40,47,71,.08), 0 2px 4px rgba(40,47,71,.08);
}
.ios-bell svg { width: 17px; height: 17px; stroke: #4A5165; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ios-badge {
  position: absolute; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--green); color: #fff; font-size: 9px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(255,255,255,.9);
}
.ios-bell .ios-badge { top: -4px; right: -6px; }
/* Der runde Behaelter fuer ein Gesicht — hier steht NUR die Form, nie ein Foto:
   Bild oder Buchstaben entscheidet die eine Rechnung in app/avatar.js. Sie legt das
   Foto absolut in den Kreis (darum position: relative) und laesst bei Ausfall die
   zwei Buchstaben stehen, statt ein dunkles Loch zu hinterlassen. */
.ios .ios-ava {
  position: relative; overflow: hidden; flex: none; border-radius: 50%;
  background: var(--dark); color: #fff; font-weight: 600; font-size: 11px; letter-spacing: .2px;
  display: grid; place-items: center;
}
.ios-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--dark); position: relative;
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .2px;
  display: grid; place-items: center; overflow: hidden;
}
/* Profilbild füllt den Kreis (AvatarView: .clipShape(Circle()), DashboardView:820).
   `object-fit: cover` — ohne das quetscht ein nicht-quadratisches Foto das Gesicht. */
.ios-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bearbeiten-Modus */
.ios .tb-edit { display: none !important; }
.ios[data-edit="1"] .tb-normal { display: none !important; }
.ios[data-edit="1"] .tb-edit { display: flex !important; }
.ios .tb-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--dark);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 2px 5px rgba(40,47,71,.10);
}
.ios .tb-pill.is-bold { font-weight: 700; margin-left: auto; }
.ios .tb-pill svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ── Seiten-Pager ─────────────────────────────────────────────────────────*/
.ios-pager {
  position: absolute; inset: 0; z-index: 10; display: flex; width: 400%;
  transition: transform .42s cubic-bezier(.32,.72,0,1); will-change: transform;
}
.ios-page { width: 25%; height: 100%; position: relative; overflow: hidden; }
/* Jede Seite bringt ihr eigenes Polster mit — im Swift-Code steht es je View
   (Dashboard 12 seitlich + 14 oben, Empfehlen 14 seitlich). Darum zwei Regler
   statt fester Zahlen: so kann eine neue Seite ihr Mass setzen, ohne dass
   jemand die Grundregel anfasst.
     Dashboard: contentMargins(top: inset) + padding(.top,14)   DashboardView:177,442
     Empfehlen: contentMargins(top: inset) + padding(.top,4)    EmpfehlenView:29,50
                — gemessen liegt die Karte bei 146.3 (_shots/tab4-empfehlen.png) */
.ios { --pad-x: 12px; --pad-top: calc(var(--inset-top) + 14px); }
.ios[data-page="empfehlen"] { --pad-x: 14px; --pad-top: 146.3px; }
/* Die Postfach-Liste hat EIGENE Masse (PostfachListView.swift:72,75):
   seitlich 14 statt 12, und oben nur `TopBar.inset` (128) — OHNE die
   zusaetzlichen 14, die das Dashboard hat. Mit den Dashboard-Werten sass die
   Liste 14 zu tief und 2 zu schmal; das war die schiefe Anordnung oben. */
.ios .st-postfach .ios-scroll { padding-top: var(--inset-top); padding-left: 14px; padding-right: 14px; }
.ios-scroll { position: absolute; inset: 0; padding: var(--pad-top) var(--pad-x) calc(var(--safe-bot) + 92px); overflow: hidden; }
.ios .sc-inner { transition: transform .9s cubic-bezier(.4,0,.2,1); will-change: transform; }

/* ── Return-Hero (DashboardView.swift:826-891) ────────────────────────────*/
.ios .rt-hero {
  position: relative; border-radius: 20px; padding: 17px 20px;
  background:
    radial-gradient(circle 220px at 92% 6%, rgba(126,217,87,.10), transparent 70%),
    linear-gradient(135deg, var(--navy1) 0%, var(--navy2) 55%, var(--navy3) 100%);
  color: #fff; box-shadow: inset 0 0 0 1px rgba(126,217,87,.08);
}
.ios .rt-hero .rt-lbl { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85); }
.ios .rt-hero .rt-lbl span { font-weight: 400; color: rgba(255,255,255,.55); margin-left: 6px; }
.ios .rt-hero .rt-val { font-size: 37px; font-weight: 600; letter-spacing: -1.1px; margin: 6px 0 0; }
.ios .rt-hero .rt-foot { font-size: 11.5px; color: rgba(255,255,255,.6); padding-top: 7px; }
.ios .rt-hero .rt-chev {
  position: absolute; top: 19px; right: 20px; width: 12px; height: 12px;
  stroke: rgba(255,255,255,.5); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s ease;
}
.ios[data-expand="1"] .rt-hero .rt-chev { transform: rotate(180deg); }
/* Aufgeklappt: „So funktioniert dein Return" */
.ios .rt-more { max-height: 0; overflow: hidden; transition: max-height .42s cubic-bezier(.2,.8,.2,1); }
.ios[data-expand="1"] .rt-more { max-height: 260px; }
.ios .rt-more .sep { height: 1px; background: rgba(255,255,255,.12); margin: 16px -20px 0; }
.ios .rt-more h5 { font-size: 12.5px; font-weight: 700; letter-spacing: .2px; color: rgba(255,255,255,.9); margin: 16px 0 0; }
/* Drei Schritte auf EINEM Pfad — die Punkte tragen Symbole (ReturnSteps: arrow.uturn.down.circle,
   checkmark.seal, signature), verbunden durch eine feine Linie von Punkt zu Punkt.            */
.ios .rt-step { position: relative; display: flex; gap: 13px; margin-top: 14px; }
.ios .rt-step + .rt-step::before {
  content: ''; position: absolute; left: 16px; top: -14px; width: 1px; height: 14px;
  background: rgba(255,255,255,.20);
}
.ios .rt-step .c { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ios .rt-step .c svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ios .rt-step .c.g { background: rgba(142,220,89,.16); box-shadow: inset 0 0 0 1px rgba(142,220,89,.38); color: var(--green-hero); }
.ios .rt-step .c.a { background: rgba(242,193,78,.16); box-shadow: inset 0 0 0 1px rgba(242,193,78,.38); color: var(--amber); }
.ios .rt-step b { display: block; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.94); }
.ios .rt-step span { display: block; font-size: 11.8px; color: rgba(255,255,255,.5); }

/* ── „Nicht abgeholt" (DashboardView.swift:1095-1141) ─────────────────────*/
.ios .rt-open {
  position: relative; margin-top: 12px; border-radius: 18px; padding: 15px 18px; overflow: hidden;
  background:
    radial-gradient(circle 150px at 4% 50%, rgba(242,193,78,.12), transparent 70%),
    linear-gradient(135deg, var(--navy1) 0%, var(--navy2) 60%, var(--navy3) 100%);
  color: #fff; display: flex; align-items: center; gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(242,193,78,.22), 0 5px 10px rgba(15,23,42,.10);
}
.ios .rt-open .ro-t { font-size: 14.4px; font-weight: 600; color: rgba(255,255,255,.9); }
.ios .rt-open .ro-s { font-size: 11.5px; color: rgba(255,255,255,.45); margin-top: 2px; }  /* VStack spacing 2 */
.ios .rt-open .ro-amt { margin-left: auto; font-size: 17px; font-weight: 700; color: var(--amber); white-space: nowrap; }
.ios .rt-open .ro-amt i { font-style: normal; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.45); }
.ios .rt-open .ro-chev { width: 13px; height: 13px; stroke: rgba(255,255,255,.55); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Lichtbänder (LightRibbons) */
.ios .rt-open::before {
  content: ''; position: absolute; inset: -40%; pointer-events: none; mix-blend-mode: plus-lighter;
  background:
    radial-gradient(ellipse 60% 14% at 30% 40%, rgba(242,193,78,.16), transparent 70%),
    radial-gradient(ellipse 50% 10% at 70% 62%, rgba(255,255,255,.10), transparent 70%);
  filter: blur(18px); animation: ribbon 9s ease-in-out infinite alternate;
}
@keyframes ribbon { 0% { transform: translate(-4%, 0) } 100% { transform: translate(5%, 3%) } }

/* ── Vertragskarte — Raster (gridBody, DashboardView.swift:1319-1378) ─────*/
.ios .pol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ios .pol {
  border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 1px rgba(15,23,42,.04), 0 4px 8px rgba(15,23,42,.04);
  opacity: 0; transform: translateY(22px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.25,1);
}
.ios .pol.is-in { opacity: 1; transform: none; }
.ios .pol-head { height: 44px; display: flex; align-items: center; padding: 0 13px; }
.ios .pol-logo {
  width: 34px; height: 34px; border-radius: 10px; background: #fff; padding: 5px;
  display: grid; place-items: center; box-shadow: 0 2px 4px rgba(15,23,42,.16);
}
/* ⚠️ `width/height: 100%` statt `max-*`: mit `max-*` bestimmt das Bild seine
   Groesse SELBST — vor dem Laden ist die 0, und die SVGs hier haben teils
   widerspruechliche Masse (axa.svg: viewBox 28x28, aber width/height
   1920x1001). Dadurch sass das Logo je nach Ladezeitpunkt mal richtig, mal
   winzig — „rendert nicht bei jedem Reload sauber" (Cyrill 25.07.).
   Mit fester Box ist das Ergebnis vom Ladezeitpunkt unabhaengig. */
.ios .pol-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ios .pol-body { padding: 9px 13px 11px; }
.ios .pol-t { font-size: 13.5px; font-weight: 600; letter-spacing: -.15px; }
.ios .pol-k { font-size: 9.9px; font-weight: 600; letter-spacing: .8px; color: var(--label); margin-top: 15px; }
.ios .pol-v { font-size: 14px; font-weight: 700; margin-top: 2px; }
.ios .pol-v i { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--ink-soft); }
.ios .pol-v.is-pending { font-size: 13.6px; font-weight: 500; font-style: italic; color: var(--label); }
@keyframes jiggle { 0%,100% { transform: rotate(-.7deg) } 50% { transform: rotate(.7deg) } }
.ios[data-edit="1"] .pol.is-in { animation: jiggle .3s ease-in-out infinite; }
.ios[data-edit="1"] .pol:nth-child(2).is-in { animation-delay: .06s; }
.ios[data-edit="1"] .pol:nth-child(3).is-in { animation-delay: .12s; }

/* ── Vertragskarte — BREIT / untereinander (detailedBody, DashboardView:1253) ──
   Die Standard-Anordnung der App (DashboardPrefs.layout = .single). Links eine
   78 breite Farbspalte über die GANZE Kartenhöhe mit 46er Logo-Kachel, rechts
   Titel, Versicherer, Deckungen, Haarlinie, Return.
   Gemessen am laufenden Build: Karte 138 hoch, Abstand 12 (_shots/tab1-untereinander.png). */
.ios .pol-list { display: grid; gap: 12px; margin-top: 12px; }
.ios .pol-wide {
  display: flex; align-items: stretch; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 1px rgba(15,23,42,.04), 0 4px 8px rgba(15,23,42,.04);
  /* Kommt von UNTEN herein und waechst dabei auf — vorher kleiner und
     blasser, wie die App eine Karte am unteren Rand zeigt (Cyrill 25.07.).  */
  opacity: 0; transform: translateY(46px) scale(.9);
  transform-origin: top center;
  transition: opacity .5s ease, transform .62s cubic-bezier(.2,.8,.22,1);
}
.ios .pol-wide.is-in { opacity: 1; transform: none; }
/* Farbspalte: 78 breit, Kachel 46 r12 mit 18 Luft oben (logoColumn:1388-1399) */
.ios .pol-col { width: 78px; flex: none; display: flex; justify-content: center; padding-top: 18px; }
.ios .pol-col .pol-logo {
  width: 46px; height: 46px; border-radius: 12px; padding: 6px;
  box-shadow: 0 3px 6px rgba(15,23,42,.16);
}
.ios .pol-main { flex: 1; min-width: 0; padding: 14px 18px; }
.ios .pol-name { font-size: 15px; font-weight: 600; letter-spacing: -.15px; color: var(--ink); }
.ios .pol-ins { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); padding-top: 2px; }
/* Deckungen als EINE Zeile, Trenner sind Schriftzeichen (coverageLine:1275) */
.ios .pol-cov {
  font-size: 12.8px; font-weight: 500; color: #475569; padding-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ios .pol-cov i { font-style: normal; font-weight: 400; color: rgba(15,23,42,.35); padding: 0 5px; }
.ios .pol-cov u { text-decoration: none; font-weight: 600; color: var(--label); }
.ios .pol-rule { height: 1px; background: rgba(15,23,42,.10); margin-top: 11px; }
.ios .pol-ret { display: flex; align-items: baseline; padding-top: 10px; }
.ios .pol-ret .k { font-size: 9.9px; font-weight: 600; letter-spacing: .8px; color: var(--label); }
.ios .pol-ret .v { margin-left: auto; font-size: 15.2px; font-weight: 700; }
.ios .pol-ret .v i { font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.ios .pol-ret .v.is-pending { font-size: 13px; font-weight: 500; font-style: italic; color: var(--label); }

.ios-empty { text-align: center; color: var(--ink-soft); font-size: 15.5px; padding: 46px 20px; }

/* ── Geschobene Ebene (Detail / Chat / Login) ─────────────────────────────*/
.ios-stack {
  position: absolute; inset: 0; z-index: 35;
  transform: translateX(100%); transition: transform .46s cubic-bezier(.32,.72,0,1);
  will-change: transform; pointer-events: none;
}
.ios[data-stack="detail"] .st-detail,
.ios[data-stack="chat"] .st-chat { transform: none; pointer-events: auto; }

/* Detail-Kopf — der Name lebt im INHALT und fliegt beim Hochscrollen in die Leiste
   (PolicyDetailView.swift:55-77: titleInBar ab contentOffset > 34, 220 ms).
   Solange er unten steht, ist die Leiste GLASLOS — sonst läge ein milchiges Band
   über dem leeren Kopf. `data-dtitle="1"` setzt story.js beim Scrollen.          */
.ios .sk-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  height: calc(var(--safe-top) + var(--bar-h)); padding: var(--safe-top) 14px 0;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0);
  transition: background .22s ease, backdrop-filter .22s ease;
}
.ios[data-dtitle="1"] .sk-head {
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
}
.ios .sk-back { width: 36px; height: 36px; border-radius: 50%; flex: none; background: rgba(255,255,255,.8); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(40,47,71,.10); }
.ios .sk-back svg { width: 17px; height: 17px; stroke: var(--dark); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ios .sk-title {
  font-size: 15.5px; font-weight: 600; color: var(--dark); flex: 1; text-align: center; padding-right: 36px;
  opacity: 0; transform: translateY(6px); transition: opacity .22s ease, transform .22s ease;
}
.ios[data-dtitle="1"] .sk-title { opacity: 1; transform: none; }
/* contentMargins(.top, TopBar.inset − 10) — PolicyDetailView.swift:88 */
.ios .sk-scroll { position: absolute; inset: 0; padding: calc(var(--inset-top) - 10px) 12px 40px; overflow: hidden; }
/* grosser Titel im Inhalt: 18/700 kerning −.3, Polster 6 seitlich (pageTitle) */
.ios .dt-big { font-size: 18px; font-weight: 700; letter-spacing: -.3px; line-height: 1.24; padding: 0 6px 11px; }

.ios .dt-card { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px #EBEDF2, 0 3px 8px rgba(40,47,71,.05); }
.ios .dt-band { height: 70px; display: flex; align-items: center; padding: 0 18px; }
.ios .dt-band .pol-logo { width: 48px; height: 48px; border-radius: 13px; padding: 7px; box-shadow: 0 3px 5px rgba(15,23,42,.16); }
.ios .dt-brand { font-size: 15px; font-weight: 700; color: var(--dark); padding: 14px 18px 13px; }
.ios .dt-stats { display: flex; padding: 0 18px; }
.ios .dt-stat { flex: 1; position: relative; }
.ios .dt-stat + .dt-stat { padding-left: 20px; }
.ios .dt-stat + .dt-stat::before { content: ''; position: absolute; left: 10px; top: 50%; margin-top: -13px; width: 1px; height: 26px; background: rgba(40,47,71,.10); }
.ios .dt-stat .k { font-size: 9.6px; font-weight: 600; letter-spacing: .6px; color: var(--label); }
.ios .dt-stat .v { font-size: 14.5px; font-weight: 700; letter-spacing: -.2px; margin-top: 3px; }
.ios .dt-prog { height: 5px; border-radius: 3px; background: rgba(15,23,42,.07); margin: 13px 18px 18px; overflow: hidden; }
.ios .dt-prog i { display: block; height: 100%; width: 50%; border-radius: 3px; background: rgba(15,23,42,.28); }

.ios .dt-sec { margin-top: 22px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px #EBEDF2, 0 3px 8px rgba(40,47,71,.05); }
/* cardHeader: Titel + grüner Punkt, Polster 18 oben / 12 unten. Die Deckungs-Karte
   trägt in derselben Zeile die Spaltenüberschrift „PRÄMIE" und schliesst mit 9.     */
.ios .dt-sec h3 { font-size: 15px; font-weight: 700; color: var(--dark); display: flex; align-items: baseline; padding: 18px 18px 12px; margin: 0; }
.ios .dt-sec h3.is-cov { padding-bottom: 9px; }
.ios .dt-sec h3 .k { margin-left: auto; font-size: 9.3px; font-weight: 600; letter-spacing: .6px; color: var(--label); width: 90px; text-align: right; }
.ios .dt-row { padding: 10px 18px; border-top: 1px solid rgba(40,47,71,.055); }
.ios .dt-row:first-of-type { border-top: 0; }
.ios .dt-row:last-of-type { padding-bottom: 18px; }
.ios .dt-row .rt { display: flex; align-items: baseline; }
.ios .dt-row .rt b { font-size: 13.5px; font-weight: 600; }
.ios .dt-row .rt span { margin-left: auto; width: 90px; text-align: right; font-size: 13px; font-weight: 600; color: #1F2638; }
.ios .dt-row p { font-size: 11.8px; color: #7C8AA0; line-height: 1.42; margin: 3px 0 0; }
/* Unterlagen-Zeile — EINE Zeile: Name links, Datum rechts, Pfeil.
   Die frühere Beschreibungszeile („PDF · Original · Nr. 12.345.678 …") ist am 25.07.
   gelöscht worden (PolicyDetailView.swift:406-410: „zu viel Text — nenn einfach den Titel"). */
.ios .dt-list { display: grid; gap: 10px; padding: 0 18px 18px; }
.ios .dt-doc { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 14px; background: #FAFBFD; box-shadow: inset 0 0 0 1px #EEF0F5; }
.ios .dt-doc .ic { width: 38px; height: 38px; border-radius: 11px; background: #F3FCE9; display: grid; place-items: center; flex: none; }
.ios .dt-doc .ic svg { width: 17px; height: 17px; stroke: #5CB338; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ios .dt-doc b { font-size: 14px; font-weight: 600; color: #1A1F2E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios .dt-doc time { margin-left: auto; padding-left: 8px; font-size: 12.5px; color: var(--label); white-space: nowrap; }
.ios .dt-doc .ch { width: 12px; height: 12px; stroke: #C0C4CF; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Offene Rechnung — Entwurf „Kopfband" (invoiceRow). Auf der Farbe steht NIE Text:
   das 52er Band trägt nur die 38er Logo-Kachel, alle Schrift liegt auf Weiss.       */
.ios .dt-inv { border-radius: 15px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px #EEF0F5; }
.ios .dt-inv .band { height: 52px; display: flex; align-items: center; padding: 0 14px; }
.ios .dt-inv .band .pol-logo { width: 38px; height: 38px; border-radius: 10px; padding: 6px; box-shadow: 0 2px 4px rgba(15,23,42,.16); }
.ios .dt-inv .in { padding: 14px 15px; }
.ios .dt-inv .l1 { display: flex; align-items: center; gap: 8px; }
.ios .dt-inv .l1 .k { font-size: 9.6px; font-weight: 700; letter-spacing: .85px; color: var(--label); }
.ios .dt-inv .l1 .stt { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.ios .dt-inv .l1 .stt::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ios .dt-inv .amt { font-size: 23px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; padding-top: 4px; }
.ios .dt-inv .due { font-size: 12.5px; color: #6B7384; padding-top: 2px; }
.ios .dt-inv .acts { display: flex; gap: 8px; padding-top: 12px; }
.ios .dt-inv .acts .p { flex: 1; text-align: center; padding: 10px 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.ios .dt-inv .acts .s { padding: 10px 16px; border-radius: 999px; background: #F1F5F9; color: var(--ink); font-size: 13px; font-weight: 600; }
/* Aktions-Zeilen */
.ios .dt-act { position: relative; display: flex; align-items: center; gap: 13px; padding: 9px 18px; }
/* Trenner beginnt erst hinter dem Symbol (Swift: .padding(.leading, 65)) */
.ios .dt-act + .dt-act::before { content: ''; position: absolute; left: 65px; right: 0; top: 0; height: 1px; background: rgba(40,47,71,.06); }
.ios .dt-act .ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(15,23,42,.05); display: grid; place-items: center; flex: none; }
.ios .dt-act .ic svg { width: 16px; height: 16px; stroke: #4A5165; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ios .dt-act .tx b { display: block; font-size: 14px; font-weight: 600; color: #1A1F2E; }
.ios .dt-act .tx span { display: block; font-size: 11.8px; color: #6B7384; }
.ios .dt-act .ch { margin-left: auto; width: 12px; height: 12px; stroke: #C0C4CF; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ios .dt-sec .dt-act:last-child { padding-bottom: 16px; }

/* ── Postfach-Liste (PostfachListView.swift) ──────────────────────────────*/
.ios .pf-search { display: flex; align-items: center; gap: 10px; }
.ios .pf-field { flex: 1; height: 46px; border-radius: 999px; background: rgba(255,255,255,.7); display: flex; align-items: center; gap: 10px; padding: 0 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.ios .pf-field svg { width: 15px; height: 15px; stroke: rgba(40,47,71,.55); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.ios .pf-field span { font-size: 15px; color: #9AA4B6; }
.ios .pf-new { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #7ED957, #6BC948); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 4px 8px rgba(126,217,87,.3); }
.ios .pf-new svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ios .pf-chips { display: flex; gap: 8px; margin-top: 14px; }   /* VStack spacing 14 */
.ios .pf-chip { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #475569; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.ios .pf-chip.is-on { background: var(--green); color: #fff; font-weight: 700; box-shadow: none; }
.ios .pf-arch { display: flex; align-items: center; gap: 14px; padding: 9px 4px; margin-top: 14px; font-size: 14.5px; font-weight: 500; color: #475569; }
.ios .pf-arch svg { width: 16px; height: 16px; stroke: #8A94A6; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ios .pf-zero { text-align: center; padding: 50px 24px 0; }
.ios .pf-zero img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto; }
.ios .pf-zero h4 { font-size: 15.5px; font-weight: 600; margin: 14px 0 0; }
.ios .pf-zero p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 6px 0 0; }
.ios .pf-card { margin-top: 14px; border-radius: 22px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 6px 14px rgba(15,23,42,.06); overflow: hidden; }
.ios .pf-item { display: flex; gap: 14px; padding: 13px 18px; align-items: center; min-height: 64px; }
.ios .pf-item > .ios-ava { width: 48px; height: 48px; }
.ios .pf-item .tx { min-width: 0; flex: 1; }
.ios .pf-item .l1 { display: flex; align-items: baseline; gap: 8px; }
.ios .pf-item b { font-size: 14.7px; font-weight: 600; }
.ios .pf-item time { margin-left: auto; font-size: 11.5px; color: var(--ink-soft); font-family: ui-monospace, Menlo, monospace; }
.ios .pf-item p { font-size: 13px; color: var(--ink-soft); margin: 1px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Chat (PostfachChatView.swift) ────────────────────────────────────────*/
.ios .ch-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  padding: calc(var(--safe-top) + 10px) 16px 10px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(15,23,42,.06);
}
.ios .ch-head .bkw { width: 36px; height: 36px; display: grid; place-items: center; flex: none; margin-left: -8px; }
.ios .ch-head .bkw svg { width: 19px; height: 19px; stroke: var(--dark); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ios .ch-head > .ios-ava { width: 44px; height: 44px; }
.ios .ch-head .nm { font-size: 16.5px; font-weight: 600; color: #1A1F3A; }
.ios .ch-head .su { font-size: 12.5px; color: #6B7280; display: flex; align-items: center; gap: 6px; }
.ios .ch-head .su::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.ios .ch-body {
  position: absolute; left: 0; right: 0; top: calc(var(--safe-top) + 64px);
  bottom: calc(var(--safe-bot) + 66px); padding: 30px 16px 12px;
  /* ⚠️ `overflow: auto`, nicht `hidden`: bei `hidden` laesst sich `scrollTop`
     nicht setzen — der Chat konnte gar nicht nachrutschen und die untersten
     Nachrichten verschwanden unter dem Rand (Cyrill 25.07.). Die Leiste wird
     ausgeblendet, gescrollt wird nur vom Drehbuch. */
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  /* Ein Chat ist UNTEN verankert: die neueste Nachricht klebt an der
     Eingabeleiste, aelteres schiebt nach oben raus. Ohne das stapelt der
     Verlauf von oben und laesst unten ein 51 pt grosses Loch stehen. */
  /* ⚠️ Der Verlauf beginnt OBEN und bleibt stehen. Mit `flex-end` klebt er an
     der Eingabeleiste — dann schiebt JEDE neue Nachricht alle vorherigen nach
     oben, und der Chat wirkt beim Aufbau unruhig (Cyrill 25.07.: „nicht mal
     runter, mal hochschieben"). Oben angesetzt wachsen neue Blasen einfach
     unten an, nichts Bestehendes bewegt sich mehr. */
  display: flex; flex-direction: column; justify-content: flex-start;
  /* Der Verlauf beginnt oben. Wird er laenger als das Fenster, rutscht er
     nach — oben laeuft er raus, die neueste Nachricht bleibt immer sichtbar.
     `scroll-behavior: smooth` macht daraus ein Gleiten statt eines Sprungs. */
  scroll-behavior: smooth;
}
.ios .ch-body::-webkit-scrollbar { width: 0; height: 0; }
.ios .ch-day { text-align: center; margin: 4px 0; }
.ios .ch-day span { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #E9EEF2; color: #54606A; font-size: 11.5px; font-weight: 500; }
.ios .ch-msg { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 14px; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.ios .ch-msg.is-in, .ios .ch-day.is-in { opacity: 1; transform: none; }
.ios .ch-day { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.ios .ch-msg > .ios-ava { width: 30px; height: 30px; }
.ios .ch-msg .sp { width: 30px; flex: none; }
.ios .ch-bub { position: relative; font-size: 15px; line-height: 1.32; }
.ios .ch-msg.them .ch-bub {
  max-width: 300px; background: #F6F7F9; color: #1A1F3A;
  border-radius: 5px 18px 18px 18px; padding: 8px 12px 6px;
  box-shadow: inset 0 0 0 1px #EEF0F3;
}
.ios .ch-msg.me { justify-content: flex-end; padding-left: 44px; }
.ios .ch-msg.me .ch-bub {
  max-width: 292px; color: #fff; background: linear-gradient(135deg, #7ED957, #5DB93A);
  border-radius: 18px 5px 18px 18px; padding: 7px 11px 6px;
  box-shadow: 0 2px 5px rgba(126,217,87,.22);
}
.ios .ch-bub time { font-size: 10px; margin-left: 8px; }
.ios .ch-msg.them time { color: rgba(40,47,71,.42); }
.ios .ch-msg.me time { color: rgba(255,255,255,.75); }
/* Zitat */
.ios .ch-quote { border-radius: 8px; padding: 7px 9px; margin-bottom: 5px; border-left: 3px solid; }
.ios .ch-msg.me .ch-quote { background: rgba(255,255,255,.16); border-left-color: rgba(255,255,255,.9); }
.ios .ch-msg.them .ch-quote { background: #EEF2F7; border-left-color: var(--green); }
.ios .ch-quote b { display: block; font-size: 11.5px; font-weight: 700; }
.ios .ch-msg.me .ch-quote b { color: #fff; }
.ios .ch-msg.them .ch-quote b { color: var(--green-text); }
.ios .ch-quote span { font-size: 12px; }
.ios .ch-msg.me .ch-quote span { color: rgba(255,255,255,.85); }
.ios .ch-msg.them .ch-quote span { color: var(--ink-soft); }
/* „Frage an dich" */
.ios .ch-msg.them .ch-bub.ch-ask { background: #FFF8EE; box-shadow: inset 3px 0 0 #F59E0B, inset 0 0 0 1px #F3E3CB; }
.ios .ch-ask .hd { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .3px; color: #B45309; margin-bottom: 2px; }
.ios .ch-ask .hd svg { width: 12px; height: 12px; flex: none; }

.ios .ch-input {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 16px calc(var(--safe-bot) + 12px);
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(15,23,42,.06);
}
.ios .ch-input .pl { width: 44px; height: 44px; display: grid; place-items: center; flex: none; margin-left: -12px; }
.ios .ch-input .pl svg { width: 17px; height: 17px; stroke: #475569; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.ios .ch-input .fld { flex: 1; border-radius: 14px; background: #fff; padding: 11px 16px; font-size: 16px; color: #9AA4B6; box-shadow: inset 0 0 0 1px rgba(15,23,42,.06); }
.ios .ch-input .mic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, #7ED957, #5CB338); box-shadow: 0 3px 8px rgba(126,217,87,.35); }
.ios .ch-input .mic svg { width: 17px; height: 17px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ── Empfehlen (EmpfehlenView.swift) ──────────────────────────────────────*/
.ios .ef-hero { border-radius: 22px; padding: 22px; background: var(--dark); color: #fff; box-shadow: 0 6px 14px rgba(15,23,42,.12); }
.ios .ef-hero .k { font-size: 10px; font-weight: 700; letter-spacing: .6px; color: #9AA6C2; }
.ios .ef-hero .v { font-size: 38px; font-weight: 700; letter-spacing: -1px; margin: 6px 0 0; }
.ios .ef-hero .s { font-size: 12px; color: #AEB6CC; margin-top: 6px; }
.ios .ef-hero .bar { width: 46px; height: 4px; border-radius: 2px; background: var(--green); margin-top: 10px; }
.ios .ef-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; color: var(--ink-soft); margin: 18px 0 10px; padding-left: 4px; }
.ios .ef-link { display: flex; align-items: center; gap: 10px; }
.ios .ef-link .fld { flex: 1; border-radius: 12px; background: rgba(255,255,255,.7); padding: 12px 14px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--dark); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; }
.ios .ef-link .b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ios .ef-link .b.g { background: linear-gradient(135deg, #7ED957, #5CB338); }
.ios .ef-link .b.w { background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.ios .ef-link .b svg { width: 16px; height: 16px; stroke-width: 2.1; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ios .ef-link .b.g svg { stroke: #fff; }
.ios .ef-link .b.w svg { stroke: var(--ink-soft); }
/* Rang-Karte — Catalyst: accent #2AD4C4, Karte rgb(9,49,48), Glühen #06B1A6 */
.ios .ef-rank { margin-top: 18px; border-radius: 22px; overflow: hidden; position: relative; color: #fff; padding: 20px 20px 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 8px 16px rgba(6,177,166,.35); }
.ios .ef-rank .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ios .ef-rank .sh { position: absolute; inset: 0; background: radial-gradient(circle 240px at 25% 5%, rgba(255,255,255,.16), transparent 70%), radial-gradient(circle 220px at 92% 95%, rgba(6,177,166,.5), transparent 70%), rgba(9,49,48,.66); }
.ios .ef-rank .ct { position: relative; }
.ios .ef-rank .k { font-size: 9.5px; font-weight: 700; letter-spacing: .7px; color: rgba(255,255,255,.6); }
.ios .ef-rank .row { display: flex; align-items: center; gap: 12px; margin-top: 11px; }
/* Rang-Abzeichen: freigestelltes PNG, scaledToFit — NICHT beschneiden, kein Radius
   (EmpfehlenView.swift:261). Der Hintergrund der Karte ist ein eigenes Bild.        */
.ios .ef-rank .row img { width: 54px; height: 54px; object-fit: contain; }
.ios .ef-rank .nm { font-size: 20px; font-weight: 700; }
.ios .ef-rank .sub { font-size: 11.5px; color: rgba(255,255,255,.62); }
.ios .ef-rank .mult { font-size: 34px; font-weight: 300; margin-top: 11px; display: flex; align-items: baseline; gap: 9px; }
.ios .ef-rank .mult small { font-size: 10px; font-weight: 400; font-family: 'Poppins', sans-serif; color: rgba(255,255,255,.7); }
.ios .ef-perk { margin-top: 8px; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.ios .ef-perk b { font-weight: 800; }
.ios .ef-line { display: flex; align-items: center; gap: 10px; padding: 8.5px 0; border-top: 1px solid rgba(255,255,255,.16); font-size: 12.5px; color: rgba(255,255,255,.86); }
.ios .ef-line:first-of-type { margin-top: 11px; }
.ios .ef-line svg { width: 13px; height: 13px; stroke: rgba(255,255,255,.72); stroke-width: 2; fill: none; flex: none; }
.ios .ef-line b { margin-left: auto; font-size: 13px; font-weight: 700; color: #fff; }

/* ── Login ────────────────────────────────────────────────────────────────*/
.ios .lg { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 24px calc(var(--safe-bot) + 18px); }
.ios .lg-mark { margin: auto; font-size: 52px; font-weight: 400; letter-spacing: -1.6px; color: var(--ink); }
.ios .lg-mark .dot { color: var(--green); }
.ios .lg-btn { height: 62px; border-radius: 16px; display: grid; place-items: center; font-size: 19px; font-weight: 700; }
.ios .lg-btn.g { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(126,217,87,.4); }
.ios .lg-btn.w { background: rgba(255,255,255,.9); color: var(--ink); margin-top: 12px; box-shadow: inset 0 0 0 1px rgba(40,47,71,.07); }
.ios .lg-or { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--ink-soft); font-size: 15px; }
.ios .lg-or::before, .ios .lg-or::after { content: ''; flex: 1; height: 1px; background: rgba(40,47,71,.13); }
.ios .lg-goog { height: 62px; border-radius: 16px; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 19px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(40,47,71,.07); }
.ios .lg-goog img { width: 24px; height: 24px; }
.ios .lg-legal { text-align: center; font-size: 14px; color: var(--ink-soft); line-height: 1.45; margin-top: 18px; }

/* ── Glas-Tab-Leiste (RootTabView.swift) ──────────────────────────────────*/
.ios-tabbar {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 30;
  padding: 12px 12px; border-radius: 34px; display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 8px 12px rgba(40,47,71,.13), inset 0 0 0 1px rgba(255,255,255,.5);
}
.ios-drop {
  position: absolute; top: 12px; height: 44px; border-radius: 22px;
  background: linear-gradient(to bottom, rgba(255,255,255,.55), rgba(255,255,255,.12) 55%, rgba(255,255,255,.3));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 3px 7px rgba(40,47,71,.12), 0 -1px 1px rgba(255,255,255,.6);
  transition: transform .34s cubic-bezier(.2,.8,.22,1), width .34s cubic-bezier(.2,.8,.22,1);
  will-change: transform;
}
/* Der Tropfen ist genau 44 hoch = die volle Innenhöhe der Leiste (RootTabView:312),
   die Tab-Inhalte sitzen darin mittig — nicht mit eigenem Polster darüber hinaus.   */
.ios-tab { flex: 1; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative; z-index: 1; }
.ios-tab .ic { width: 21px; height: 21px; position: relative; }
.ios-tab svg { width: 21px; height: 21px; stroke: var(--tab-off); stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease; }
.ios-tab .lb { font-size: 9.6px; font-weight: 600; color: var(--tab-off); transition: color .2s ease; }
.ios-tab.is-on svg { stroke: var(--dark); }
.ios-tab.is-on .lb { color: var(--dark); font-weight: 700; }
.ios-tab .ios-badge { top: -6px; right: -11px; }

/* ── Tipp-Kringel ─────────────────────────────────────────────────────────*/
.ios-tapdot { position: absolute; z-index: 60; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255,255,255,.42); box-shadow: 0 0 0 2px rgba(255,255,255,.75), 0 4px 14px rgba(15,23,41,.22); opacity: 0; pointer-events: none; }
@keyframes tapRing { 0% { opacity: 0; transform: scale(.5) } 22% { opacity: 1; transform: scale(1) } 100% { opacity: 0; transform: scale(1.5) } }
.ios-tapdot.is-tap { animation: tapRing .62s ease-out; }

/* ── Milchglas in der 3D-Ebene ───────────────────────────────────────────
   `backdrop-filter` braucht den Hintergrund HINTER dem Element. Im gedrehten
   Handy entsteht ein eigener Stacking-Context — der Filter greift ins Leere
   und legt einen grauen Schleier ueber Kopf- und Tab-Leiste. Ersatz: derselbe
   Ton als deckender Verlauf.                                              */
.ios .ios-topbar { backdrop-filter: none; -webkit-backdrop-filter: none;
  background: linear-gradient(to bottom, rgba(250,251,253,.97), rgba(248,250,252,.90)); }
.ios .ios-tabbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(252,253,254,.94); }
.ios .ch-head, .ios .ch-input { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(252,253,254,.96); }
/* ⚠️ Der Detail-Header brauchte EBENFALLS einen Ersatz — ich hatte hier nur
   den Filter abgeschaltet und nichts hingesetzt. Uebrig blieb halbdurch-
   sichtiges Weiss: auf dem Rechner faellt das kaum auf, auf dem Handy sieht
   es aus, als „ziehe der Blur nicht" (Cyrill 25.07.). Jetzt derselbe deckende
   Verlauf wie bei der Kopfleiste — und ein etwas langsamerer Uebergang, damit
   das Band beim Zurueckscrollen nicht wegspringt. */
.ios .sk-head, .ios .tb-pill { backdrop-filter: none; -webkit-backdrop-filter: none; }
.ios .sk-head { transition: background .34s ease, box-shadow .34s ease; }
.ios[data-dtitle="1"] .sk-head {
  /* Deckend WEISS statt fast-weiss-durchscheinend, plus eine sichtbare Kante
     darunter. Echtes Milchglas hebt sich vom bunten Mesh-Hintergrund ab; mein
     Ersatz war fast weiss auf fast weissem Grund und auf dem Handy — wo der
     Kopf nur ein paar Pixel hoch ist — praktisch unsichtbar (Cyrill 25.07.:
     „immer noch zu schwach"). Die Kante macht die Trennung, nicht die Farbe. */
  background: linear-gradient(to bottom, #FFFFFF 0%, #FBFCFE 72%, rgba(251,252,254,.94) 100%);
  box-shadow: 0 1px 0 rgba(15,23,42,.10), 0 6px 12px -6px rgba(15,23,42,.16);
  /* ⚠️ HIER nochmal abschalten — und das war die eigentliche Ursache:
     `.ios[data-dtitle="1"] .sk-head` (Attribut-Selektor) ist SPEZIFISCHER als
     mein `.ios .sk-head { backdrop-filter: none }`. Der Filter blieb also
     aktiv, war in der gedrehten 3D-Ebene aber wirkungslos — sichtbar blieb
     nur halbdurchsichtiges Weiss. Genau das sah nach „Blur zieht nicht" aus. */
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.ios[data-dtitle="1"] .sk-title { transition: opacity .34s ease, transform .34s ease; }
.ios .dt-sec h3 .dot { color: var(--green); }

/* Letzte Karte tritt zurueck (wie die App beim Scrollen).
   ⚠️ OHNE `translateY`: das zog die Karte nach oben und frass den Abstand zur
   Karte darueber auf (Cyrill 25.07.: „zu wenig Abstand zur Krankenkasse").
   `transform-origin: top center` laesst die Oberkante stehen — die Karte wird
   nach unten kleiner, der Abstand bleibt genau der der anderen Karten.     */
.ios .pol-list .pol-wide:last-child.is-in { transform: scale(.93); transform-origin: top center; opacity: .78; }
.ios .pol-list .pol-wide:nth-last-child(2).is-in { transform: scale(.985); transform-origin: top center; }

/* „Vera schreibt ..." */
.ios .ch-msg.st-typing .ch-bub { display: flex; gap: 4px; padding: 12px 14px; align-items: center; }
.ios .ch-msg.st-typing .ch-bub i { width: 7px; height: 7px; border-radius: 50%; background: #B6BECD; animation: veraTippt 1.25s ease-in-out infinite; }
.ios .ch-msg.st-typing .ch-bub i:nth-child(2) { animation-delay: .18s; }
.ios .ch-msg.st-typing .ch-bub i:nth-child(3) { animation-delay: .36s; }
@keyframes veraTippt { 0%,60%,100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-4px); opacity: 1; } }
.ios .ios-tapdot { position: absolute; }

/* ── Postfach-Liste als eigene Ebene ─────────────────────────────────────
   Liegt ueber dem Dashboard und wird beim Tab-Wechsel eingeblendet — so
   sieht man erst die Faeden und geht dann in den Chat, wie auf dem Handy. */
.ios .st-postfach {
  position: absolute; inset: 0; z-index: 20;
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.ios[data-tab="postfach"] .st-postfach { opacity: 1; pointer-events: auto; }
/* ⚠️ Das Dashboard MUSS dabei weg. Sonst stehen Vertragskarten und
   Gespraechsliste uebereinander — beide sind teils durchscheinend, das ergab
   den Ueberlappungs-Eindruck (Cyrill 25.07.). Ein Tab zeigt genau eine Seite. */
.ios[data-tab="postfach"] > .ios-scroll { opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.ios > .ios-scroll { transition: opacity .22s ease; }

/* ── Sprachnachricht — 1:1 nach PostfachChatView.swift ───────────────────
   Meine erste Fassung war erfunden. So macht es die App wirklich:
   Beim Halten des Mikrofons wird das Eingabefeld gegen eine Aufnahme-Leiste
   getauscht — roter Punkt, Timer, Live-Wellenform, „abbrechen". Nach dem
   Loslassen erscheint KEINE Audio-Blase: es wird transkribiert, das Feld
   zeigt „Transkribiere …", und am Ende steht nur der Text da.
   Fundstellen: Hold-Leiste 290-308, Wellenform 1167-1171 (46 Balken,
   Abstand 2, Mindesthöhe 3), roter Punkt 1119-1127, Timer 293-294.        */
.ios .ch-rec {
  flex: 1; height: 46px; border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
}
/* Roter Punkt 9x9, pulsiert 0.7 s (RecordingDot). */
.ios .ch-rec .punkt {
  width: 9px; height: 9px; border-radius: 50%; background: #EF4444; flex: none;
  animation: recPunkt .7s ease-in-out infinite alternate;
}
@keyframes recPunkt { from { opacity: 1 } to { opacity: .3 } }
/* Timer: 13.5 halbfett, Ziffern gleich breit, #475569. */
.ios .ch-rec .zeit {
  font-size: 13.5px; font-weight: 600; color: #475569;
  font-variant-numeric: tabular-nums; flex: none;
}
/* Live-Wellenform: 46 Balken, Abstand 2, Mindesthöhe 3, Verlauf Indigo. */
/* ⚠️ WENIGER BALKEN ALS DIE APP — mit Absicht. Die App zeichnet 46 Balken auf
   einem 402 pt breiten Display in voller Groesse. Hier ist das Display auf
   ~2/3 verkleinert, und die Wellenform teilt sich die Zeile noch mit Punkt,
   Timer und „abbrechen": bei 46 Balken bleiben 0.45 px pro Balken. Die
   Animation LAEUFT dann zwar, aber eine Hoehenaenderung auf einer halben
   Pixelbreite sieht niemand — es wirkt wie ein stehender Strich
   (Cyrill 25.07.: „die farbige Welle wird nicht mehr animiert").
   18 Balken mit fester Mindestbreite zeigen dieselbe Bewegung sichtbar. */
.ios .ch-rec .welle { flex: 1; height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 2px; overflow: hidden; }
.ios .ch-rec .welle i {
  flex: 1 1 auto; min-width: 2.5px; min-height: 3px; border-radius: 2px;
  background: linear-gradient(180deg, #6366F1, #0EA5E9);
  animation: recWelle .58s ease-out infinite alternate;
  will-change: height;
}
@keyframes recWelle { from { height: 5px } to { height: 21px } }
/* „abbrechen" — der Wortlaut ist genau so kurz, kein „Zum Abbrechen wischen". */
.ios .ch-rec .abbr {
  display: flex; align-items: center; gap: 3px; flex: none;
  font-size: 12px; font-weight: 600; color: #94A3B8;
}
.ios .ch-rec .abbr svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 2.6; fill: none; }
/* Mikrofon während der Aufnahme: rot statt grün. */
.ios .ch-input.is-rec .mic { background: #EF4444; box-shadow: 0 3px 8px rgba(239,68,68,.35); }
/* Danach: Spinner statt Mikro, Feld zeigt „Transkribiere …". */
.ios .ch-spinner {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
}
.ios .ch-spinner i {
  width: 19px; height: 19px; border-radius: 50%;
  border: 2px solid rgba(15,23,42,.15); border-top-color: #64748B;
  animation: recDreht .8s linear infinite;
}
@keyframes recDreht { to { transform: rotate(360deg) } }


/* Aktionen-Karte: die Überschrift hat unten nur 6 Polster (nicht 12 wie die
   anderen Karten — PolicyDetailView.swift:298), die Karte unten 8.        */
.ios .dt-sec--act { padding-bottom: 8px; }
.ios .dt-sec h3.is-act { padding-bottom: 6px; }


/* ══ SPRACHMEMO — 1:1 die WEB-Fassung ════════════════════════════════════
   Cyrill 25.07.: „Die farbige Transkript-Animation ist in der Web-Version."
   Stimmt — die native App zeigt das Transkript schlagartig als normale gruene
   Blase, die Web-App macht etwas ganz anderes. Vorlage: claim-flow.css:1402-1481.

   Ablauf: beim Senden erscheint SOFORT eine WEISSE Blase (nicht gruen!) mit
   einer farbig durchlaufenden Ladelinie. Ist das Transkript da, verschwindet
   die Linie und der Text schreibt sich Zeichen fuer Zeichen — jeder frische
   Buchstabe taucht unscharf aus einem wandernden Farbverlauf auf und kuehlt
   nach 430 ms einzeln auf Dunkelgrau ab. Ergibt eine farbige Schreibkante
   mit dunklem Schweif.                                                     */

/* Die Blase ist von Anfang an GRUEN — wie jede andere Nachricht von dir
   (Cyrill 25.07.: „Sie muss von Anfang an gruen sein"). Die Web-App macht sie
   waehrend der Transkription weiss; das faellt hier im Mockup als Farbsprung
   auf, weil man die fertige Nachricht direkt daneben sieht. Die Animation
   bleibt — sie laeuft jetzt AUF dem Gruen statt auf Weiss.                 */
.ios .ch-msg.me .ch-bub.is-memo { min-width: 150px; }

/* Ladelinie waehrend der Transkription (claim-flow.css:1438-1455). */
.ios .memo-loader {
  height: 7px; min-width: 150px; border-radius: 999px; margin: 11px 2px 3px;
  /* Zwei Ebenen: die helle Schiene als FARBE (eine Farbe ist kein
     background-image — als zweiter Verlaufs-Layer geschrieben ignoriert der
     Browser sie einfach), darauf das wandernde Farbband. */
  background-color: rgba(255,255,255,.28);
  background-image: linear-gradient(90deg, transparent 0%, #A5B4FC 20%, #E0F2FE 50%, #99F6E4 80%, transparent 100%);
  background-size: 55% 100%;
  background-repeat: no-repeat;
  animation: memoScan 1.5s linear infinite;
}
@keyframes memoScan {
  from { background-position: -125% 0; }
  to   { background-position:  225% 0; }
}

/* Der Text: waehrend des Schreibens ein wandernder Farbverlauf IM Text. */
.ios .memo-text {
  color: #fff; font-size: 14.7px; line-height: 1.46; margin: 9px 2px 0;
}
.ios .memo-text.is-typing {
  background-image: linear-gradient(100deg, #E8EAFF 0%, #DFF3FF 28%, #DCFCF2 52%, #E8EAFF 76%, #DFF3FF 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: memoShimmer 2.4s linear infinite;
}
@keyframes memoShimmer { from { background-position: 0 0 } to { background-position: 250% 0 } }

/* Jeder Buchstabe einzeln: taucht unscharf auf, kuehlt nach 430 ms ab. */
.ios .memo-text .ch {
  transition: -webkit-text-fill-color .55s ease, color .55s ease, filter .28s ease, opacity .28s ease;
}
.ios .memo-text .ch.is-draw { opacity: 0; filter: blur(5px); }
.ios .memo-text .ch.is-cool { -webkit-text-fill-color: #fff; color: #fff; }



