/* ============================================================
   Exec. – Handy des RP-Charakters (Portal → Charakter → Handy)

   Eigene Datei, weil hier bewusst NICHT die Designsprache des Portals
   gilt: das Portal ist dunkles Anthrazit mit weissem Akzent, das Handy
   ahmt iOS nach (helle Systemflaechen, Blau #007AFF, abgerundete Listen,
   unscharfe Leisten). Die beiden sollen sich nicht gegenseitig anfaerben,
   darum steht alles hier unter .ios-* und erbt vom Portal nur die Schrift.

   Groesse: der Bildschirm ist fest 430x932 (iPhone-Punkte, grosses Modell).
   Skaliert wird nur ueber --ios-scale, das phone.js aus dem Platz im Fenster
   und der eingestellten Groesse berechnet - so bleiben alle Abstaende exakt
   so, wie iOS sie hat.
   ============================================================ */

.ios-stage {
  --ios-scale: 1;
  /* Bildschirm in iOS-Punkten (grosses iPhone). MUSS mit SCREEN_W/SCREEN_H in
     phone.js uebereinstimmen - die Karte rechnet dort mit denselben Zahlen. */
  --w: 430px;
  --h: 932px;
  --frame: 12px;                       /* Rahmenbreite des Geraets */
  --radius: 62px;                      /* Eckenradius des Gehaeuses */
  --screen-radius: 52px;

  /* iOS-Systemfarben (Light Mode) */
  --blue: #007aff;
  --green: #34c759;
  --red: #ff3b30;
  --orange: #ff9500;
  --yellow: #ffcc00;
  --pink: #ff2d55;
  --purple: #af52de;
  --gray: #8e8e93;
  --label: #000;
  --label-2: rgba(60, 60, 67, .6);
  --label-3: rgba(60, 60, 67, .3);
  --sep: rgba(60, 60, 67, .29);
  --fill-4: rgba(116, 116, 128, .08);
  --fill-3: rgba(116, 116, 128, .12);
  --sys-bg: #fff;
  --sys-bg-2: #f2f2f7;
  --ios-font: -apple-system, "SF Pro Text", "SF Pro Display", "Inter",
              "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;

  display: flex; justify-content: center; align-items: flex-start;
  width: 100%;
  height: calc((var(--h) + 2 * var(--frame) + 8px) * var(--ios-scale));
}

/* ================= GEHÄUSE ================= */

.ios-device {
  position: relative;
  width: calc(var(--w) + 2 * var(--frame));
  height: calc(var(--h) + 2 * var(--frame));
  flex: none;
  padding: var(--frame);
  border-radius: var(--radius);
  transform: scale(var(--ios-scale));
  transform-origin: top center;
  font-family: var(--ios-font);
  /* Titan-Rahmen: heller Grat oben links, dunkler Schatten unten rechts */
  background:
    linear-gradient(150deg, #8f8f95 0%, #4a4a4f 18%, #2c2c30 44%,
                    #45454a 70%, #8b8b91 88%, #38383c 100%);
  box-shadow:
    0 0 0 1.5px rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    0 2px 3px rgba(255, 255, 255, .1) inset,
    0 42px 90px -30px rgba(0, 0, 0, .95),
    0 12px 34px -14px rgba(0, 0, 0, .7);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Seitentasten – reine Optik, sie sitzen halb unter dem Gehäuse */
.ios-key {
  position: absolute; border-radius: 2px; z-index: 0;
  background: linear-gradient(180deg, #6c6c72, #3a3a3e 40%, #2b2b2f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(0, 0, 0, .6);
}
.ios-key.action { left: -2.5px; top: 128px; width: 3px; height: 32px; }
.ios-key.up     { left: -2.5px; top: 190px; width: 3px; height: 68px; }
.ios-key.down   { left: -2.5px; top: 274px; width: 3px; height: 68px; }
.ios-key.power  { right: -2.5px; top: 222px; width: 3px; height: 108px; }

/* ================= BILDSCHIRM ================= */

.ios-screen {
  position: relative; overflow: hidden;
  width: var(--w); height: var(--h);
  border-radius: var(--screen-radius);
  background: #000;
  color: var(--label);
  font-size: 15px; line-height: 1.35;
  letter-spacing: -.01em;
  isolation: isolate;
}
.ios-screen *, .ios-screen *::before, .ios-screen *::after { box-sizing: border-box; }
/* :where() nimmt dem Reset seine Gewichtung - sonst schlaegt ".ios-screen button"
   jede einzelne Klasse dahinter (.ios-chip, .ios-btn-fill, .ios-row …) und alle
   Knoepfe waeren farblos und ohne Innenabstand. */
.ios-screen :where(button) { font: inherit; color: inherit; background: none; border: 0;
                             padding: 0; cursor: pointer; letter-spacing: inherit; }
.ios-screen :where(input, textarea) { font: inherit; letter-spacing: inherit; }
.ios-screen ::-webkit-scrollbar { width: 0; height: 0; }
.ios-screen .scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
                      overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* Hintergrundbild: weiche Farbverläufe wie ein iOS-Standardbild.
   Auswahl in der Einstellungen-App, gemerkt wird sie je Charakter. */
.ios-wall {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(90% 60% at 18% 8%, #6f7ff2 0%, transparent 60%),
    radial-gradient(80% 55% at 88% 22%, #f26f9b 0%, transparent 58%),
    radial-gradient(90% 70% at 70% 92%, #2c1f6b 0%, transparent 62%),
    radial-gradient(70% 50% at 6% 88%, #21c9c0 0%, transparent 60%),
    linear-gradient(165deg, #221a4d 0%, #120d2c 55%, #060512 100%);
}
.ios-wall[data-wall="sunset"] {
  background:
    radial-gradient(85% 55% at 22% 10%, #ffb35c 0%, transparent 58%),
    radial-gradient(80% 60% at 88% 30%, #ff5f6d 0%, transparent 60%),
    radial-gradient(95% 65% at 60% 96%, #3b1053 0%, transparent 64%),
    linear-gradient(170deg, #5a1f4a 0%, #2a0f2e 55%, #0b0510 100%);
}
.ios-wall[data-wall="forest"] {
  background:
    radial-gradient(85% 55% at 16% 12%, #3ddc97 0%, transparent 58%),
    radial-gradient(80% 55% at 86% 26%, #1f8a70 0%, transparent 58%),
    radial-gradient(95% 70% at 66% 94%, #06281f 0%, transparent 64%),
    linear-gradient(168deg, #10402f 0%, #08211a 55%, #030b09 100%);
}
.ios-wall[data-wall="ink"] {
  background:
    radial-gradient(80% 55% at 20% 8%, #2f4a7a 0%, transparent 58%),
    radial-gradient(75% 50% at 84% 30%, #1d2a4d 0%, transparent 58%),
    linear-gradient(170deg, #131a2b 0%, #0a0d16 60%, #04050a 100%);
}
.ios-wall[data-wall="mono"] {
  background: linear-gradient(168deg, #3a3a40 0%, #1c1c20 55%, #08080a 100%);
}
.ios-wall::after {          /* leichte Körnung, damit die Verläufe nicht bandeln */
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/></svg>");
}

/* ================= STATUSLEISTE & INSEL ================= */

.ios-status {
  position: absolute; top: 0; left: 0; right: 0; height: 58px; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 34px 0; pointer-events: none;
  font-size: 16px; font-weight: 620; letter-spacing: .01em;
  color: #fff; transition: color .25s;
}
.ios-status.dark { color: #000; }
.ios-status .right { display: flex; align-items: center; gap: 6px; }
.ios-status svg { display: block; fill: currentColor; }

.ios-island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 128px; height: 37px; border-radius: 20px; background: #000; z-index: 70;
  pointer-events: none;
}
.ios-island::after {        /* Frontkamera */
  content: ""; position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #24304a, #05070c 70%);
  box-shadow: inset 0 0 2px rgba(120, 170, 255, .5);
}

/* Homeleiste */
.ios-hbar {
  position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%);
  width: 148px; height: 5px; border-radius: 3px; z-index: 70;
  background: rgba(255, 255, 255, .9); cursor: pointer;
  transition: background .25s, opacity .2s;
}
.ios-hbar.dark { background: rgba(0, 0, 0, .82); }
.ios-hbar:active { opacity: .5; }

/* ================= SPERRBILDSCHIRM ================= */

.ios-lock {
  position: absolute; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center;
  padding: 104px 26px 38px; color: #fff; text-align: center;
  transition: transform .55s cubic-bezier(.32, .72, 0, 1), opacity .45s;
}
.ios-lock.gone { transform: translateY(-46%); opacity: 0; pointer-events: none; }
.ios-lock .lock-ico { opacity: .95; margin-bottom: 6px; }
.ios-lock .date { font-size: 21px; font-weight: 590; opacity: .95; }
.ios-lock .time {
  font-size: 92px; font-weight: 300; line-height: 1.02; letter-spacing: -.035em;
  margin-top: -2px; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}
.ios-lock .who {
  margin-top: 20px; font-size: 13.5px; font-weight: 560; opacity: .85;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(14px);
}
.ios-lock .lock-note {
  margin-top: 16px; max-width: 250px; font-size: 12.5px; opacity: .7; line-height: 1.45;
}
.ios-lock .swipe {
  margin-top: auto; font-size: 13px; font-weight: 560; opacity: .9;
  display: grid; gap: 12px; justify-items: center;
}
.ios-lock .swipe .chev { animation: ios-bob 1.9s ease-in-out infinite; }
@keyframes ios-bob { 0%, 100% { transform: translateY(0); opacity: .55; }
                     50% { transform: translateY(-5px); opacity: 1; } }

/* ================= HOMESCREEN ================= */

.ios-home {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column;
  padding: 74px 26px 0;
  transition: transform .42s cubic-bezier(.32, .72, 0, 1), opacity .3s, filter .42s;
}
.ios-home.behind { transform: scale(.92); opacity: 0; filter: blur(6px); pointer-events: none; }

.ios-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.ios-widget {
  border-radius: 22px; padding: 14px; text-align: left; color: #fff;
  min-height: 148px;                   /* iOS-Widget: 2x2 bzw. 4x2 Felder */
  /* Die Deckkraft ist bewusst hoch: mit Milchglas sieht es wie iOS aus, ohne
     (aeltere Browser, deaktivierte GPU) bleibt der Text trotzdem lesbar. */
  background: linear-gradient(180deg, rgba(30, 30, 36, .66), rgba(16, 16, 22, .72));
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: 0 6px 22px -8px rgba(0, 0, 0, .55), inset 0 0 0 .5px rgba(255, 255, 255, .16);
  transition: transform .16s;
  display: flex; flex-direction: column; overflow: hidden;
}
.ios-widget:active { transform: scale(.96); }
.ios-widget.wide { grid-column: span 2; }
.ios-widget .w-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 640; letter-spacing: .01em; text-transform: uppercase;
  opacity: .82;
}
.ios-widget .w-dot { width: 15px; height: 15px; border-radius: 4.5px; flex: none; }
.ios-widget .w-title {
  margin-top: 8px; font-size: 15px; font-weight: 640; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ios-widget .w-sub {
  margin-top: 5px; font-size: 12px; opacity: .74; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ios-widget .w-big {
  margin-top: auto; padding-top: 8px;
  font-size: 25px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.ios-widget .w-foot { font-size: 11.5px; opacity: .7; margin-top: 2px; }

.ios-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 14px; }
.ios-appbtn {
  display: grid; justify-items: center; gap: 6px; width: 100%;
  transition: transform .16s cubic-bezier(.32, .72, 0, 1);
}
.ios-appbtn:active { transform: scale(.88); }
.ios-appbtn .label {
  font-size: 11.5px; font-weight: 500; color: #fff; letter-spacing: -.005em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5); white-space: nowrap;
}
.ios-icon {
  position: relative; width: 65px; height: 65px; border-radius: 23%;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 3px 10px -3px rgba(0, 0, 0, .55), inset 0 0 0 .5px rgba(255, 255, 255, .14);
}
.ios-icon svg { display: block; }
.ios-badge {
  position: absolute; top: -4px; right: -5px; min-width: 21px; height: 21px; padding: 0 6px;
  border-radius: 11px; background: var(--red); color: #fff;
  font-size: 12.5px; font-weight: 640; line-height: 21px; text-align: center;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .18); z-index: 2;
}

.ios-pages { display: flex; justify-content: center; gap: 7px; margin: auto 0 12px; }
.ios-pages i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .38); }
.ios-pages i.on { background: #fff; }

.ios-searchpill {
  align-self: center; margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px; color: #fff; font-size: 12.5px; font-weight: 560;
  background: rgba(0, 0, 0, .3); backdrop-filter: blur(18px);
}

/* Im Dock stehen nur Kontakte und Einstellungen - alle uebrigen Apps liegen
   auf dem Homescreen. Darum zentriert statt vierspaltig. */
.ios-dock {
  margin: 0 -6px 14px; padding: 12px 16px; border-radius: 36px;
  display: flex; justify-content: center; gap: 34px;
  background: rgba(255, 255, 255, .17);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .18);
}
.ios-dock .ios-appbtn { width: auto; }
.ios-dock .ios-appbtn .label { display: none; }

/* ================= APP-RAHMEN ================= */

.ios-app {
  position: absolute; inset: 0; z-index: 30;
  display: flex; flex-direction: column;
  background: var(--sys-bg-2);
  transform-origin: 50% 82%;
  animation: ios-open .44s cubic-bezier(.32, .72, 0, 1);
}
.ios-app.closing { animation: ios-close .36s cubic-bezier(.32, .72, 0, 1) forwards; }
@keyframes ios-open  { from { opacity: 0; transform: scale(.28); border-radius: 23%; }
                       60%  { opacity: 1; }
                       to   { opacity: 1; transform: scale(1); border-radius: 0; } }
@keyframes ios-close { from { opacity: 1; transform: scale(1); border-radius: 0; }
                       to   { opacity: 0; transform: scale(.28); border-radius: 23%; } }

/* Navigationsleiste: durchscheinend mit Haarlinie, links Zurück, rechts Aktion */
.ios-nav {
  position: relative; z-index: 5; flex: none;
  padding: 58px 12px 10px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px;
  background: rgba(249, 249, 249, .82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 .5px 0 var(--sep);
}
.ios-nav.dark {
  background: rgba(20, 20, 22, .8); box-shadow: 0 .5px 0 rgba(255, 255, 255, .12);
}
.ios-nav .title {
  font-size: 16.5px; font-weight: 640; text-align: center; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ios-nav .sub { font-size: 11px; font-weight: 500; color: var(--label-2); text-align: center; }
.ios-nav.dark .sub { color: #79828b; }
/* Seiten mit grosser Ueberschrift zeigen den kleinen Titel erst beim Scrollen –
   genau wie iOS. Die Haarlinie kommt dann mit. */
.ios-nav.large .title { opacity: 0; transition: opacity .18s; }
.ios-nav.large { box-shadow: none; }
.ios-nav.large.scrolled .title { opacity: 1; }
.ios-nav.large.scrolled { box-shadow: 0 .5px 0 var(--sep); }
.ios-nav.large.scrolled.dark { box-shadow: 0 .5px 0 rgba(255, 255, 255, .12); }
.ios-nav .back, .ios-nav .act {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--blue); font-size: 16px; font-weight: 450; white-space: nowrap;
}
.ios-nav .act { justify-self: end; }
.ios-nav .back:active, .ios-nav .act:active { opacity: .4; }

.ios-body { flex: 1; min-height: 0; }
.ios-large {
  padding: 4px 20px 8px; font-size: 33px; font-weight: 700; letter-spacing: -.035em;
}

/* Eingerückte Listen (Settings-Optik) */
.ios-list {
  margin: 0 16px 22px; border-radius: 11px; overflow: hidden; background: var(--sys-bg);
}
.ios-list-title {
  margin: 22px 32px 7px; font-size: 12.5px; font-weight: 500;
  color: var(--label-2); text-transform: uppercase; letter-spacing: .04em;
}
.ios-row {
  position: relative; width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; text-align: left; background: var(--sys-bg); min-height: 46px;
}
.ios-row + .ios-row::before {
  content: ""; position: absolute; top: 0; left: 14px; right: 0; height: .5px; background: var(--sep);
}
.ios-row.inset + .ios-row.inset::before { left: 62px; }
.ios-row:active { background: #d9d9de; }
.ios-row .grow { flex: 1; min-width: 0; }
.ios-row .r-title { display: block; font-size: 15.5px; font-weight: 500; }
.ios-row .r-sub {
  display: block; font-size: 13px; color: var(--label-2); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ios-row .r-val { font-size: 14.5px; color: var(--label-2); white-space: nowrap; }
.ios-chev { flex: none; color: var(--label-3); }
/* Profilbild. WICHTIG: display kommt hier her und darf nicht von einem
   allgemeineren Selektor (".ios-mycard span") ueberschrieben werden - sonst
   sitzt das Bild bzw. der Buchstabe neben statt in dem Kreis. */
.ios-avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 600;
  background: linear-gradient(180deg, #b6b6bb, #8e8e93);
  line-height: 1;
}
.ios-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ios-empty {
  display: grid; justify-items: center; gap: 9px; text-align: center;
  padding: 64px 34px; color: var(--label-2);
}
.ios-empty b { font-size: 17px; font-weight: 620; color: var(--label); }
.ios-empty p { font-size: 13.5px; line-height: 1.45; }
.ios-empty .e-ico {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fill-3); color: var(--label-2); margin-bottom: 2px;
}

.ios-btn-fill {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 18px; border-radius: 12px; background: var(--blue); color: #fff;
  font-size: 16px; font-weight: 600; width: 100%;
}
.ios-btn-fill:active { filter: brightness(.88); }
.ios-btn-fill:disabled { opacity: .4; }
.ios-btn-tint {
  padding: 10px 16px; border-radius: 11px; background: var(--fill-3); color: var(--blue);
  font-size: 15.5px; font-weight: 590;
}

/* Tableiste unten */
.ios-tabs {
  flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 8px 4px 26px;
  background: rgba(249, 249, 249, .84);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 -.5px 0 var(--sep);
}
.ios-tabs.dark { background: rgba(20, 20, 22, .82); box-shadow: 0 -.5px 0 rgba(255, 255, 255, .12); }
.ios-tab {
  display: grid; justify-items: center; gap: 2px; color: var(--gray);
  font-size: 10.5px; font-weight: 520; padding: 2px 0;
}
.ios-tab.on { color: var(--blue); }
.ios-tabs.dark .ios-tab.on { color: #35d07f; }

/* Modales Blatt (schiebt sich von unten herein) */
.ios-sheet-wrap {
  position: absolute; inset: 0; z-index: 80; display: flex; align-items: flex-end;
  background: rgba(0, 0, 0, .32); animation: ios-fade .3s ease;
}
.ios-sheet-wrap.closing { animation: ios-fade .25s ease reverse forwards; }
@keyframes ios-fade { from { opacity: 0 } to { opacity: 1 } }
.ios-sheet {
  width: 100%; max-height: 88%; display: flex; flex-direction: column;
  background: var(--sys-bg-2); border-radius: 12px 12px 0 0; padding-bottom: 22px;
  animation: ios-up .42s cubic-bezier(.32, .72, 0, 1);
}
.ios-sheet-wrap.closing .ios-sheet { animation: ios-up .28s cubic-bezier(.32, .72, 0, 1) reverse forwards; }
@keyframes ios-up { from { transform: translateY(100%) } to { transform: translateY(0) } }
.ios-sheet .grab {
  width: 36px; height: 5px; border-radius: 3px; background: var(--label-3);
  margin: 6px auto 0; flex: none;
}
.ios-sheet .s-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 12px 16px 10px; flex: none;
}
.ios-sheet .s-head b { font-size: 16.5px; font-weight: 640; text-align: center; }
.ios-sheet .s-head button { color: var(--blue); font-size: 16px; }
.ios-sheet .s-head button:last-child { justify-self: end; font-weight: 600; }

.ios-field {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--sys-bg);
}
.ios-field label { font-size: 15.5px; width: 88px; flex: none; }
.ios-field input, .ios-field textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font-size: 15.5px; color: var(--label); resize: none;
}
.ios-field input::placeholder, .ios-field textarea::placeholder { color: var(--label-3); }
.ios-err {
  margin: 10px 32px 0; font-size: 13px; color: var(--red); text-align: center; min-height: 17px;
}

/* Mitteilungsbanner (fällt oben herein) */
.ios-banner {
  position: absolute; top: 12px; left: 10px; right: 10px; z-index: 90;
  display: flex; gap: 10px; align-items: center; padding: 11px 13px;
  border-radius: 22px; color: #fff;
  background: rgba(38, 38, 42, .74);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 12px 34px -12px rgba(0, 0, 0, .8), inset 0 0 0 .5px rgba(255, 255, 255, .17);
  animation: ios-drop .5s cubic-bezier(.32, .72, 0, 1);
  cursor: pointer;
}
.ios-banner.gone { animation: ios-drop .35s cubic-bezier(.32, .72, 0, 1) reverse forwards; }
@keyframes ios-drop { from { transform: translateY(-130%); opacity: 0 }
                      to   { transform: translateY(0); opacity: 1 } }
.ios-banner .b-ico { width: 34px; height: 34px; border-radius: 9px; flex: none;
                     display: grid; place-items: center; }
.ios-banner .b-txt { min-width: 0; }
.ios-banner .b-txt b { display: block; font-size: 13px; font-weight: 640; }
.ios-banner .b-txt span {
  display: block; font-size: 13px; opacity: .85;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ================= KARTEN ================= */

.ios-maps { position: relative; flex: 1; min-height: 0; background: #0d1013; overflow: hidden; }
.ios-mapview { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; }
.ios-mapview.drag { cursor: grabbing; }
.ios-mapinner { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; }
.ios-mapinner img { display: block; width: 100%; height: 100%; }

.ios-pin {
  position: absolute; transform: translate(-50%, -100%); z-index: 2;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45));
  transition: transform .16s cubic-bezier(.32, .72, 0, 1);
}
.ios-pin:active { transform: translate(-50%, -100%) scale(1.18); }
.ios-pin.sel { z-index: 4; transform: translate(-50%, -100%) scale(1.3); }
.ios-pin .cap {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  margin-top: 2px; padding: 1px 5px; border-radius: 5px;
  /* Gedeckelt, sonst schieben sich lange Namen bei dichten Nadeln uebereinander */
  display: block; max-width: 104px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  font-size: 8.5px; font-weight: 640; color: #1b1b1f;
  background: rgba(255, 255, 255, .92); box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.ios-maptop { position: absolute; top: 58px; left: 12px; right: 12px; z-index: 6; }
.ios-searchbar {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 26px;
  background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}
.ios-searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 15px; }
.ios-chips { display: flex; gap: 7px; margin-top: 9px; overflow-x: auto; padding-bottom: 3px;
             scrollbar-width: none; }
.ios-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; background: #fff; color: #202124;
  font-size: 12.5px; font-weight: 560; box-shadow: 0 1px 5px rgba(0, 0, 0, .26);
  white-space: nowrap;
}
.ios-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ios-chip.on { background: #202124; color: #fff; }

.ios-maps.listing .ios-mapzoom { display: none; }
.ios-mapzoom {
  position: absolute; right: 10px; bottom: 132px; z-index: 6;
  display: grid; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .32);
}
.ios-mapzoom button { width: 38px; height: 38px; display: grid; place-items: center; color: #3c4043; }
.ios-mapzoom button + button { box-shadow: 0 -.5px 0 rgba(0, 0, 0, .14); }
.ios-mapzoom button:active { background: #eee; }

.ios-mapsheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
  background: #fff; border-radius: 14px 14px 0 0; padding: 8px 18px 26px;
  box-shadow: 0 -6px 28px -10px rgba(0, 0, 0, .5);
  animation: ios-up .38s cubic-bezier(.32, .72, 0, 1);
  max-height: 62%; overflow-y: auto; scrollbar-width: none;
}
.ios-mapsheet .grab { width: 36px; height: 5px; border-radius: 3px;
                      background: rgba(0, 0, 0, .18); margin: 0 auto 10px; }
.ios-mapsheet h3 { font-size: 21px; font-weight: 680; letter-spacing: -.025em; }
.ios-mapsheet .cat { display: inline-flex; align-items: center; gap: 6px;
                     font-size: 13px; color: var(--label-2); margin-top: 3px; }
.ios-mapsheet .cat i { width: 9px; height: 9px; border-radius: 50%; }
.ios-mapsheet .about { margin-top: 10px; font-size: 14px; color: #3c4043; line-height: 1.45; }
.ios-mapsheet .facts { margin-top: 12px; display: grid; gap: 8px; }
.ios-mapsheet .fact { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.ios-mapsheet .fact svg { flex: none; margin-top: 1px; color: var(--gray); }
.ios-mapsheet .acts { display: flex; gap: 9px; margin-top: 14px; }
.ios-mapsheet .g-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: 22px; font-size: 14px; font-weight: 600;
  background: #1a73e8; color: #fff;
}
.ios-mapsheet .g-btn.ghost { background: #fff; color: #1a73e8; box-shadow: inset 0 0 0 1px #dadce0; }
.ios-mapsheet .g-btn:active { filter: brightness(.92); }

/* Die Ergebnisliste legt sich ueber die Karte, aber UNTER die Suchleiste
   (z-index 5 < 6) - man kann also weitersuchen, ohne sie zu schliessen. */
.ios-maplist { position: absolute; inset: 0; z-index: 5; background: #fff;
               padding-top: 142px; display: flex; flex-direction: column; }

/* ================= NEWS ================= */

.ios-news { background: var(--sys-bg); }
.ios-news .kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #fa233b;
}
.ios-news .lead { padding: 6px 20px 18px; border-bottom: .5px solid var(--sep); }
.ios-news .lead h2 {
  font-size: 27px; line-height: 1.15; font-weight: 720; letter-spacing: -.035em; margin-top: 7px;
}
.ios-news .lead p { margin-top: 8px; font-size: 14.5px; color: var(--label-2); line-height: 1.45; }
.ios-news .meta { margin-top: 10px; font-size: 12px; color: var(--label-3); }
.ios-news .item {
  width: 100%; text-align: left; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 20px; border-bottom: .5px solid var(--sep); background: var(--sys-bg);
}
.ios-news .item:active { background: var(--fill-4); }
.ios-news .item h3 { font-size: 16px; font-weight: 640; line-height: 1.28; letter-spacing: -.02em; }
.ios-news .item p { margin-top: 4px; font-size: 13px; color: var(--label-2); line-height: 1.4;
                    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
                    overflow: hidden; }
.ios-news .thumb {
  flex: none; width: 64px; height: 64px; border-radius: 8px; display: grid; place-items: center;
  color: #fff; font-size: 22px; font-weight: 700;
}
.ios-article { padding: 12px 22px 40px; background: var(--sys-bg); }
.ios-article h1 { font-size: 29px; font-weight: 730; line-height: 1.15; letter-spacing: -.035em;
                  margin: 8px 0 10px; }
.ios-article .teaser { font-size: 17px; color: #3a3a3c; line-height: 1.45; font-weight: 500; }
.ios-article .meta { margin: 14px 0 18px; padding-bottom: 14px; border-bottom: .5px solid var(--sep);
                     font-size: 12.5px; color: var(--label-2); }
.ios-article .text { font-size: 16px; line-height: 1.62; white-space: pre-wrap; color: #1c1c1e; }

/* ================= NACHRICHTEN ================= */

.ios-thread {
  flex: 1; min-height: 0; display: flex; flex-direction: column-reverse;
  /* seitlich 16px, damit der Zipfel der Sprechblase (ragt 9px heraus) nicht
     am Bildschirmrand klebt */
  padding: 14px 16px 8px; background: var(--sys-bg); gap: 2px;
}
.ios-bubble-row { display: flex; margin-top: 2px; }
.ios-bubble-row.me { justify-content: flex-end; }
.ios-bubble-row.gap { margin-top: 9px; }
.ios-bubble {
  position: relative; max-width: 74%; padding: 8px 13px; border-radius: 19px;
  font-size: 15.5px; line-height: 1.32; word-break: break-word; white-space: pre-wrap;
  background: #e9e9eb; color: #000;
}
.ios-bubble-row.me .ios-bubble { background: linear-gradient(180deg, #29a1ff, #0a7cff); color: #fff; }
/* Sprechblasen-Zipfel wie in iMessage. Die Farbe steht hier ausgeschrieben und
   wird nicht geerbt: die eigene Blase hat einen Verlauf, der sich auf einem
   18px-Zipfel anders aufteilen und als hellerer Fleck sichtbar wuerde. */
.ios-bubble-row.tail .ios-bubble::before {
  content: ""; position: absolute; bottom: 0; left: -6px; width: 18px; height: 18px;
  background: #e9e9eb; border-bottom-right-radius: 15px; z-index: -1;
}
.ios-bubble-row.me.tail .ios-bubble::before { left: auto; right: -6px;
  background: #0a7cff;                       /* = unteres Ende des Blauverlaufs */
  border-bottom-right-radius: 0; border-bottom-left-radius: 15px; }
.ios-bubble-row.tail .ios-bubble::after {
  content: ""; position: absolute; bottom: 0; left: -9px; width: 10px; height: 18px;
  background: var(--sys-bg); border-bottom-right-radius: 12px;
}
.ios-bubble-row.me.tail .ios-bubble::after { left: auto; right: -9px;
  border-bottom-right-radius: 0; border-bottom-left-radius: 12px; }
.ios-bubble { z-index: 1; }
.ios-daystamp {
  align-self: center; padding: 10px 0 4px; font-size: 11px; font-weight: 560; color: var(--label-2);
  text-align: center;
}
.ios-readmark { align-self: flex-end; font-size: 10.5px; color: var(--label-2); padding: 2px 4px 0; }

.ios-compose {
  flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px 28px;
  background: rgba(249, 249, 249, .88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -.5px 0 var(--sep);
}
.ios-compose .box {
  flex: 1; min-width: 0; display: flex; align-items: center;
  border-radius: 19px; padding: 6px 10px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(60, 60, 67, .22);
}
.ios-compose textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; resize: none;
  font-size: 15.5px; line-height: 1.3; max-height: 90px; padding: 1px 2px;
}
.ios-send {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; margin-bottom: 1px; transition: transform .15s, opacity .15s;
}
.ios-send:disabled { opacity: .3; transform: scale(.86); }
.ios-compose.dark { background: rgba(14, 15, 17, .9); box-shadow: 0 -.5px 0 rgba(255, 255, 255, .12); }
.ios-compose.dark .box { background: #1a1c20; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.ios-compose.dark textarea { color: #d7ffe6; }
.ios-compose.dark .ios-send { background: #2fbf6d; }

/* ================= DARKNET ================= */

.ios-dark { background: #0b0c0e; color: #d6dbdf; }
.ios-dark .ios-body { background: #0b0c0e; }
.ios-dark .ios-list { background: #16181c; }
.ios-dark .ios-row { background: #16181c; color: #d6dbdf; }
.ios-dark .ios-row:active { background: #22252b; }
.ios-dark .ios-row + .ios-row::before { background: rgba(255, 255, 255, .09); }
.ios-dark .ios-row .r-sub { color: #7d868f; }
.ios-dark .ios-list-title { color: #6d757d; }
.ios-dark .ios-chev { color: #4a5058; }
.ios-dark .ios-large { color: #e6ebef; }
.ios-dark .ios-empty { color: #79828b; }
.ios-dark .ios-empty b { color: #cfd6db; }
.ios-dark .ios-empty .e-ico { background: #1a1d22; color: #6f7880; }

.ios-dark .dn-banner {
  margin: 2px 16px 16px; padding: 11px 13px; border-radius: 11px;
  background: rgba(53, 208, 127, .08); box-shadow: inset 0 0 0 1px rgba(53, 208, 127, .22);
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 11.5px; line-height: 1.5; color: #6fe0a4;
}

.ios-dnthread {
  flex: 1; min-height: 0; display: flex; flex-direction: column-reverse;
  padding: 12px 14px 8px; background: #0b0c0e; gap: 11px;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
.ios-dnmsg { font-size: 12.5px; line-height: 1.5; }
.ios-dnmsg .who { color: #35d07f; font-weight: 600; }
.ios-dnmsg.me .who { color: #7aa2ff; }
.ios-dnmsg .when { color: #575f68; margin-left: 6px; font-size: 10.5px; }
.ios-dnmsg .txt { color: #c3cbd2; white-space: pre-wrap; word-break: break-word; margin-top: 2px; }

/* ================= BANK ================= */

.ios-bank { background: var(--sys-bg-2); }
.ios-card {
  margin: 4px 18px 18px; padding: 18px; border-radius: 18px; color: #fff;
  background: linear-gradient(140deg, #2b3f7a 0%, #16224a 46%, #0a0f22 100%);
  box-shadow: 0 16px 34px -18px rgba(10, 20, 60, .95), inset 0 0 0 .5px rgba(255, 255, 255, .16);
  position: relative; overflow: hidden;
}
.ios-card::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 190px; height: 190px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 68%);
}
.ios-card .c-top { display: flex; justify-content: space-between; align-items: flex-start;
                   font-size: 11.5px; font-weight: 620; letter-spacing: .09em;
                   text-transform: uppercase; opacity: .75; }
.ios-card .c-bal { margin-top: 14px; font-size: 37px; font-weight: 700; letter-spacing: -.035em;
                   font-variant-numeric: tabular-nums; }
.ios-card .c-iban { margin-top: 12px; font-family: "JetBrains Mono", ui-monospace, monospace;
                    font-size: 12.5px; opacity: .8; letter-spacing: .06em; }
.ios-card .c-holder { margin-top: 3px; font-size: 12.5px; opacity: .75; }
.ios-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 18px 20px; }
.ios-flow div { background: var(--sys-bg); border-radius: 12px; padding: 11px 13px; }
.ios-flow .l { font-size: 11.5px; color: var(--label-2); font-weight: 560; }
.ios-flow .v { font-size: 17.5px; font-weight: 660; margin-top: 2px; letter-spacing: -.02em; }
.ios-flow .v.in { color: #1e9a52; }
.ios-flow .v.out { color: var(--red); }
.ios-bankacts { display: flex; gap: 10px; margin: 0 18px 8px; }
.ios-tx-ico {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fill-3); color: var(--label-2);
}
.ios-tx-amt { font-size: 15.5px; font-weight: 620; font-variant-numeric: tabular-nums; }
.ios-tx-amt.in { color: #1e9a52; }
.ios-amount {
  text-align: center; padding: 22px 20px 8px;
  font-size: 46px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.ios-amount input {
  width: 100%; border: 0; outline: 0; background: none; text-align: center;
  font: inherit; letter-spacing: inherit; color: var(--label);
}

/* ================= KONTAKTE ================= */

.ios-mycard {
  margin: 0 16px 20px; padding: 16px; border-radius: 14px; background: var(--sys-bg);
  display: flex; align-items: center; gap: 14px;
}
.ios-mycard .ios-avatar { width: 58px; height: 58px; font-size: 20px; }
.ios-mycard .txt { min-width: 0; }
.ios-mycard b { display: block; font-size: 19px; font-weight: 660; letter-spacing: -.02em; }
/* Nur die Textzeilen in der Karte - NICHT der Kreis daneben (siehe .ios-avatar) */
.ios-mycard .txt > span { display: block; font-size: 13.5px; color: var(--label-2); margin-top: 2px; }
.ios-mycard .tag {
  display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px;
  background: var(--fill-3); color: var(--label-2); font-size: 11.5px; font-weight: 560;
}
/* Buchstabenkopf einer Kontaktgruppe */
.ios-alpha {
  padding: 5px 32px 4px; font-size: 13px; font-weight: 660; color: var(--label-2);
  background: var(--sys-bg-2); position: sticky; top: 0; z-index: 2;
}

.ios-detail { padding: 22px 20px 40px; text-align: center; }
.ios-detail .ios-avatar { width: 96px; height: 96px; font-size: 34px; margin: 0 auto 12px; }
.ios-detail h2 { font-size: 25px; font-weight: 690; letter-spacing: -.03em; }
.ios-detail .sub { font-size: 14px; color: var(--label-2); margin-top: 3px; }
.ios-detail .acts { display: flex; justify-content: center; gap: 14px; margin: 20px 0 24px; }
.ios-detail .act {
  display: grid; justify-items: center; gap: 4px; width: 78px; padding: 9px 0;
  border-radius: 12px; background: var(--fill-3); color: var(--blue);
  font-size: 11.5px; font-weight: 560;
}
.ios-detail .act:active { filter: brightness(.94); }
.ios-detail .ios-list { margin-left: 0; margin-right: 0; text-align: left; }

/* ================= INSTA & TWEET ================= */

.ios-social { background: var(--sys-bg); }
.ios-avatar.xl { width: 88px; height: 88px; font-size: 30px; }

/* Kopf der Kontaktmaske / Anmeldung: Bild über allem, Text darunter */
.ios-onboard, .ios-cardhead {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 20px 30px 18px;
}
.ios-onboard b { font-size: 19px; font-weight: 660; margin-top: 4px; }
.ios-onboard p, .ios-cardhead span {
  font-size: 13.5px; color: var(--label-2); line-height: 1.45; max-width: 34ch;
}
.ios-cardhead .ios-avatar { color: var(--label-3); background: var(--fill-3); }

/* --- Beitrag (Insta) --- */
.s-post { border-bottom: .5px solid var(--sep); padding-bottom: 10px; margin-bottom: 4px; }
.s-head {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 14px;
}
.s-head .ios-avatar { width: 34px; height: 34px; font-size: 12px; }
.s-who { min-width: 0; line-height: 1.25; }
.s-who b { display: block; font-size: 14px; font-weight: 620; }
.s-who span { display: block; font-size: 12px; color: var(--label-2); }

.s-photo {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1;
  background-color: #111; background-repeat: no-repeat;
}
.s-photo.small { aspect-ratio: 16 / 10; border-radius: 14px; margin: 8px 14px 0;
                 width: calc(100% - 28px); overflow: hidden; }
.s-place {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 560;
  background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(8px);
}

.s-acts { display: flex; align-items: center; gap: 4px; padding: 8px 10px 2px; }
.s-acts.small { padding: 4px 0 0; }
.s-act {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 9px;
  color: var(--label-2); font-size: 13px; font-weight: 560; font-variant-numeric: tabular-nums;
}
.s-act:active { background: var(--fill-4); }
.s-act.on { color: var(--red); }
.s-act.rp.on { color: #1e9a52; }
.s-act.del { margin-left: auto; color: var(--label-3); }
.s-cap { padding: 2px 14px 0; font-size: 14.5px; line-height: 1.4; }
.s-cap b { font-weight: 620; }
.s-more { padding: 6px 14px 0; font-size: 13.5px; color: var(--label-2); }
.s-time { padding: 5px 14px 0; font-size: 11px; color: var(--label-3);
          text-transform: uppercase; letter-spacing: .03em; }

/* --- Post (Tweet) --- */
.s-tweet { border-bottom: .5px solid var(--sep); padding: 2px 14px 8px; }
.s-tweet .s-head { padding: 9px 0 4px; }
.s-tweet .s-acts { padding: 2px 0 0; justify-content: space-between; max-width: 300px; }
.s-text { font-size: 15px; line-height: 1.42; white-space: pre-wrap; word-break: break-word; }
.s-tweet.big .s-text { font-size: 19px; line-height: 1.35; padding: 4px 0 8px; }

.s-reply {
  display: flex; gap: 10px; padding: 11px 14px; border-bottom: .5px solid var(--sep);
}
.s-reply .ios-avatar { width: 32px; height: 32px; font-size: 12px; }
.s-reply .s-who { display: flex; align-items: baseline; gap: 6px; }
.s-reply .s-who b { display: inline; font-size: 13.5px; }
.s-reply .s-who span { display: inline; font-size: 12px; }
.s-reply .s-text { font-size: 14.5px; margin-top: 2px; }

/* --- Profil --- */
.s-profile { display: flex; align-items: center; gap: 20px; padding: 16px 18px 10px; }
.s-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.s-stats b { display: block; font-size: 17px; font-weight: 680; }
.s-stats span { display: block; font-size: 12px; color: var(--label-2); }
.s-about { padding: 0 18px 12px; }
.s-about b { font-size: 15px; font-weight: 640; }
.s-about > span { display: block; font-size: 13px; color: var(--label-2); }
.s-about p { margin-top: 5px; font-size: 14px; line-height: 1.42; white-space: pre-wrap; }
.s-about .s-since { margin-top: 6px; font-size: 12px; color: var(--label-3); }
.s-pbtns { display: flex; gap: 9px; padding: 0 18px 14px; }
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
/* Quadratisch ueber ein Pseudoelement statt aspect-ratio: ein <button> ohne
   Inhalt bekommt sonst je nach Browser gar keine Hoehe. */
.s-cell { position: relative; background-color: #111; background-repeat: no-repeat; }
.s-cell::before { content: ""; display: block; padding-top: 100%; }

/* ================= EINSTELLUNGEN ================= */

/* Farbiges Quadrat links in jeder Zeile - das Erkennungszeichen der App */
.ios-set-ico {
  flex: none; width: 30px; height: 30px; border-radius: 7.5px;
  display: grid; place-items: center; color: #fff;
}
.ios-seg {
  display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--fill-3);
}
.ios-seg button {
  flex: 1; padding: 5px 9px; border-radius: 7px; font-size: 13px; font-weight: 520;
  white-space: nowrap; color: var(--label);
}
.ios-seg button.on { background: var(--sys-bg); box-shadow: 0 1px 3px rgba(0, 0, 0, .16); font-weight: 590; }
.ios-walls { display: flex; gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
.ios-wallpick {
  width: 46px; height: 68px; border-radius: 9px; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.ios-wallpick.on { box-shadow: 0 0 0 2.5px var(--blue); }
/* Schalter im iOS-Stil */
.ios-switch {
  flex: none; width: 51px; height: 31px; border-radius: 16px; background: var(--fill-3);
  position: relative; transition: background .22s;
}
.ios-switch.on { background: var(--green); }
.ios-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .28);
  transition: transform .22s cubic-bezier(.32, .72, 0, 1);
}
.ios-switch.on::after { transform: translateX(20px); }

/* ================= Rahmen im Portal ================= */

.phone-frame { display: grid; gap: 16px; justify-items: center; }
.phone-frame .phone-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
}
.phone-frame .phone-hint {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  justify-content: center; color: var(--text-3); font-size: 12.5px;
}
.phone-frame .phone-hint b { color: var(--text-dim); font-weight: 560; }

/* Vollbild: das Handy legt sich als eigene Ebene ueber die ganze Seite. */
.phone-frame.fullscreen {
  position: fixed; inset: 0; z-index: 4000; margin: 0; padding: 20px 12px;
  align-content: center; overflow: auto;
  background: radial-gradient(120% 80% at 50% 0%, #16171d, #05060a 70%);
}
.phone-frame.fullscreen .phone-hint { color: rgba(255, 255, 255, .38); }
.phone-close {
  position: fixed; top: 16px; right: 18px; z-index: 4001;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07);
  color: #e9ecf0; font-size: 13px; font-weight: 560;
}
.phone-close:hover { background: rgba(255, 255, 255, .13); }

/* Platzhalter, solange das Handy in einem eigenen Fenster laeuft */
.phone-away {
  display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: 70px 26px; border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--text-3); width: min(520px, 100%);
}
.phone-away b { color: var(--text-dim); font-size: 14.5px; }

/* ================= Eigenes Fenster (phone.html / Bild-in-Bild) ================= */

body.ios-solo {
  margin: 0; min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(120% 80% at 50% 0%, #17181e, #05060a 72%);
  font-family: system-ui, sans-serif;
}
body.ios-solo .ios-stage { align-items: center; }
body.ios-solo .ios-msg { color: #8b939c; font-size: 13px; text-align: center; padding: 30px; }

@media (max-width: 720px) {
  .ios-stage { --ios-scale: .8; }
}
