/* CompuMac Serviceportal — neu gestaltet 05.10.2026 (Inhaber: „looks like its from 2016 … bring it to the next level“).
   Dieselbe Sprache wie die neue Website (cm-hig): Apple-HIG-Anmutung mit großer Schrift, Glas nur auf der Steuerebene
   (Kopfzeile, Tab-Leiste — nie Glas auf Glas), Karten, eine farbige Hauptaktion je Ansicht, weiche Federbewegungen,
   Dunkelmodus, „Bewegung reduzieren“ und „Transparenz reduzieren“. Keine Schriftdatei, kein CDN.
   Mobil zuerst (390 px): die meisten kommen vom Handy aus der Status-Mail. */

:root {
  --label: #1d1d1f;
  --label-2: #5e5e63;
  --label-3: #6e6e73;
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-2: #fbfbfd;
  --fill: rgba(118, 118, 128, 0.12);
  --fill-2: rgba(118, 118, 128, 0.08);
  --separator: rgba(60, 60, 67, 0.13);
  --hairline: rgba(0, 0, 0, 0.06);
  --blue: #0071e3;
  --blue-press: #0062c4;
  --blue-tint: rgba(0, 113, 227, 0.1);
  --indigo: #4f4dd6;
  --purple: #a259ff;
  --green: #1a7f37;
  --green-tint: rgba(36, 138, 61, 0.12);
  --orange: #b25000;
  --orange-tint: rgba(255, 149, 0, 0.14);
  --red: #c4281c;
  --glass: rgba(255, 255, 255, 0.72);
  --blur: saturate(180%) blur(20px);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -14px rgba(15, 23, 42, 0.18);
  --shadow-l: 0 2px 6px rgba(0, 0, 0, 0.04), 0 30px 60px -24px rgba(30, 41, 99, 0.28);
  --radius: 22px;
  --radius-l: 30px;
  --radius-s: 14px;
  --grad: linear-gradient(100deg, #0071e3 0%, #5e5ce6 45%, #a259ff 100%);
  --aurora: radial-gradient(60% 50% at 12% 0%, rgba(94, 92, 230, 0.16), transparent 70%), radial-gradient(50% 45% at 92% 6%, rgba(0, 113, 227, 0.14), transparent 70%), radial-gradient(40% 40% at 60% 30%, rgba(162, 89, 255, 0.08), transparent 70%);
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%, 1.067, 1.089 24.5%, 1.088 27%, 1.057 32.4%, 1.013 41.1%, 0.996 48.6%, 1.001 63.3%, 1);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --label: #f5f5f7;
    --label-2: #b4b4ba;
    --label-3: #98989f;
    --bg: #000000;
    --bg-2: #0b0b0d;
    --card: #1c1c1e;
    --card-2: #232326;
    --fill: rgba(118, 118, 128, 0.26);
    --fill-2: rgba(118, 118, 128, 0.16);
    --separator: rgba(84, 84, 88, 0.55);
    --hairline: rgba(255, 255, 255, 0.07);
    --blue: #2997ff;
    --blue-press: #0a84ff;
    --blue-tint: rgba(41, 151, 255, 0.16);
    --indigo: #9f9dff;
    --purple: #bf8bff;
    --green: #30d158;
    --green-tint: rgba(48, 209, 88, 0.16);
    --orange: #ff9f0a;
    --orange-tint: rgba(255, 159, 10, 0.18);
    --red: #ff6961;
    --glass: rgba(22, 22, 24, 0.7);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.06);
    --shadow-l: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 30px 60px -24px rgba(0, 0, 0, 0.8);
    --grad: linear-gradient(100deg, #4aa8ff 0%, #8e8bff 50%, #c79bff 100%);
    --aurora: radial-gradient(60% 50% at 12% 0%, rgba(94, 92, 230, 0.28), transparent 70%), radial-gradient(50% 45% at 92% 6%, rgba(0, 113, 227, 0.22), transparent 70%), radial-gradient(40% 40% at 60% 30%, rgba(162, 89, 255, 0.12), transparent 70%);
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root { --glass: var(--bg-2); --blur: none; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--label); font: 17px/1.47 var(--font); letter-spacing: -0.022em; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; position: relative; }
body::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; background: var(--aurora); pointer-events: none; z-index: 0; }
body > * { position: relative; z-index: 1; }
body > .topbar { position: sticky; z-index: 30; }
body > .tabbar { position: fixed; z-index: 30; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0 0 0.4em; }
h1 { font-size: clamp(32px, 7.4vw, 44px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
h1.display { font-size: clamp(40px, 10.5vw, 72px); line-height: 1.03; letter-spacing: -0.045em; font-weight: 800; }
h2 { font-size: 22px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 700; }
h3 { font-size: 17px; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0 0 0.8em; text-wrap: pretty; }
img { max-width: 100%; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: 0.06em; }
@media (forced-colors: active) { .grad-text { color: CanvasText; background: none; } }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 60%, transparent); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute !important; left: -999px; top: 8px; background: var(--card); color: var(--label); padding: 10px 14px; border-radius: 12px; z-index: 60 !important; box-shadow: var(--shadow); }
.skip:focus { left: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ------------------------------------------------------------ Kopfzeile: Glas */
.topbar { top: 0; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 -0.5px 0 var(--separator); padding-top: env(safe-area-inset-top); }
.topbar-inner { max-width: 1160px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--label); text-decoration: none !important; min-width: 0; border-radius: 8px; }
.wordmark-svg { display: block; height: 21px; width: auto; color: var(--label); }
.wordmark-sub { font: 650 11px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--label-2); border: 1px solid var(--separator); border-radius: 980px; padding: 5px 9px 4px; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.who { display: inline-flex; align-items: center; gap: 8px; color: var(--label-2); font-size: 14px; min-width: 0; }
.who-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28vw; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--grad); color: #fff; font: 700 12px/1 var(--font); letter-spacing: 0; flex: none; }

/* ------------------------------------------------------------ Tab-Leiste: schwebende Glaskapsel (Telefon), Segmente oben (Rechner) */
.tabbar { left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); width: min(420px, calc(100% - 24px)); display: flex; justify-content: space-around; gap: 2px; padding: 6px; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: 26px; box-shadow: 0 0 0 0.5px var(--separator), 0 10px 30px -8px rgba(0, 0, 0, 0.25); }
.tabbar[hidden] { display: none; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; letter-spacing: -0.01em; color: var(--label-3); padding: 6px 0 5px; border-radius: 20px; text-decoration: none !important; transition: background 0.25s var(--ease), color 0.25s var(--ease); min-height: 48px; }
.tab.is-active { color: var(--blue); background: var(--blue-tint); }
.tab-icon { width: 24px; height: 24px; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; background: currentColor; }
.tab-icon--house { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2.5 11h2.7v9.5h5.3v-6h3v6h5.3V11h2.7z'/%3E%3C/svg%3E"); }
.tab-icon--plus { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-4H7v-2h4V7h2v4h4v2h-4z'/%3E%3C/svg%3E"); }
.tab-icon--bubble { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.5 3 2 6.6 2 11c0 2.4 1.3 4.6 3.4 6.1L4.5 21l4.4-2.3c1 .2 2 .3 3.1.3 5.5 0 10-3.6 10-8s-4.5-8-10-8z'/%3E%3C/svg%3E"); }
.tab-icon--person { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.5'/%3E%3Cpath d='M3 21c0-4.4 4-7 9-7s9 2.6 9 7z'/%3E%3C/svg%3E"); }
.tab-icon--box { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 3 6.5v11L12 22l9-4.5v-11zm0 2.2 6.5 3.2L12 10.6 5.5 7.4zM5 9l6 3v7.6l-6-3z'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------ Seite */
.main { flex: 1; width: 100%; outline: none; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.page { max-width: 1160px; margin: 0 auto; padding: 24px 16px 32px; }
.page > * { animation: rise 0.6s var(--spring) both; }
.page > *:nth-child(2) { animation-delay: 40ms; }
.page > *:nth-child(3) { animation-delay: 80ms; }
.page > *:nth-child(4) { animation-delay: 120ms; }
.page > *:nth-child(5) { animation-delay: 160ms; }
.page > *:nth-child(n + 6) { animation-delay: 200ms; }
.page--narrow { max-width: 680px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 20px; }
.page-head h1 { margin: 0; }
.eyebrow { color: var(--label-2); font-size: 13px; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 6px; }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.lead { font-size: clamp(18px, 2.6vw, 21px); line-height: 1.42; color: var(--label-2); max-width: 36em; letter-spacing: -0.02em; }
.muted { color: var(--label-2); }
.small { font-size: 14px; line-height: 1.45; }
.footer { color: var(--label-3); font-size: 12px; text-align: center; padding: 20px 16px calc(110px + env(safe-area-inset-bottom)); }
.footer p { margin: 0 0 6px; }
.footer a { color: var(--label-2); }
.footer-mark { display: block; margin: 0 auto 10px; width: max-content; color: var(--label-3); }
.footer-mark .wordmark-svg { height: 14px; color: var(--label-3); }

@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--blue) 0%, transparent); } }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes breathe { 50% { opacity: 0.55; } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

/* ------------------------------------------------------------ Karten */
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; position: relative; }
.card > :last-child { margin-bottom: 0; }
.card--quiet { background: transparent; box-shadow: none; border: 1px solid var(--separator); }
.card--action { box-shadow: inset 0 0 0 2px var(--blue), var(--shadow); }
.card--success { text-align: center; padding: 34px 22px; }
.card--confirm { box-shadow: inset 0 0 0 2px var(--orange), var(--shadow); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2--tight { gap: 0 12px; grid-template-columns: 1fr 1fr; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack > .card, .stack > .link-list { margin-bottom: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.row--between { justify-content: space-between; }
.row--stack { flex-direction: column; align-items: stretch; }
.toolbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }

/* ------------------------------------------------------------ Knöpfe: eine farbige Hauptaktion je Ansicht */
.btn { -webkit-appearance: none; appearance: none; border: 0; border-radius: 980px; padding: 12px 22px; font: 600 17px/1.2 var(--font); letter-spacing: -0.02em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none !important; transition: transform 0.4s var(--spring), background 0.2s var(--ease), box-shadow 0.2s var(--ease); min-height: 46px; text-align: center; }
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: scale(0.96); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--blue) 80%, transparent); }
.btn--primary:hover { background: var(--blue-press); }
.btn--tinted { background: var(--blue-tint); color: var(--blue); }
.btn--tinted:hover { background: color-mix(in srgb, var(--blue) 18%, transparent); }
.btn--secondary { background: var(--fill); color: var(--label); }
.btn--secondary:hover { background: color-mix(in srgb, var(--label) 14%, transparent); }
.btn--plain { background: transparent; color: var(--blue); padding-left: 10px; padding-right: 10px; }
.btn--plain:hover { background: var(--fill-2); }
.btn--small { padding: 8px 15px; font-size: 15px; min-height: 40px; }
.btn--wide { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy .icon { visibility: hidden; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5); border-top-color: #fff; animation: spin 0.8s linear infinite; }
.btn--secondary.is-busy::after, .btn--plain.is-busy::after, .btn--tinted.is-busy::after { border-color: var(--fill); border-top-color: var(--blue); }

/* ------------------------------------------------------------ Felder */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field--inline { margin-bottom: 0; }
.field--grow { flex: 1; min-width: 200px; }
.field-label { font-size: 14px; font-weight: 600; color: var(--label-2); }
.field-hint { font-size: 13px; color: var(--label-3); line-height: 1.4; }
.field-error { font-size: 14px; color: var(--red); font-weight: 500; }
input, select, textarea { font: 17px/1.35 var(--font); color: var(--label); background: var(--card-2); border: 1px solid var(--separator); border-radius: var(--radius-s); padding: 13px 15px; width: 100%; min-height: 48px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease); }
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--label) 22%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; background: var(--card); border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent); }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--red); }
.code-input { font-size: 30px; letter-spacing: 0.45em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--blue); flex: none; margin: 0; padding: 0; }
.choice { border: 0; padding: 0; margin: 0 0 16px; }
.choice legend { font-weight: 650; margin-bottom: 10px; }
.choice-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.choice-item--card { align-items: flex-start; padding: 15px; border: 1px solid var(--separator); border-radius: var(--radius-s); margin-bottom: 10px; cursor: pointer; transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
.choice-item--card:hover { background: var(--fill-2); }
.choice-item--card:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--blue-tint); }
.choice-item--card > span { display: flex; flex-direction: column; gap: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.question { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--separator); }
.question > span { flex-basis: 100%; font-weight: 500; }

/* ------------------------------------------------------------ Hinweise, Etiketten */
.notice { background: var(--fill-2); border-radius: var(--radius-s); padding: 13px 15px; margin: 0 0 12px; }
.notice--error { background: color-mix(in srgb, var(--red) 11%, transparent); color: var(--label); box-shadow: inset 3px 0 0 var(--red); }
.notice--ok { background: var(--green-tint); box-shadow: inset 3px 0 0 var(--green); animation: fade 0.4s var(--ease); }
.pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 980px; padding: 5px 12px; font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill--blue { background: var(--blue-tint); color: var(--blue); }
.pill--orange { background: var(--orange-tint); color: var(--orange); }
.pill--gray { background: var(--fill); color: var(--label-2); }
.pill--green { background: var(--green-tint); color: var(--green); }
.status-line { margin-bottom: 16px; }

/* ------------------------------------------------------------ Start */
.hero { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; padding: 8px 0 12px; }
.hero-copy .lead { margin-bottom: 18px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--label-2); font-size: 14px; margin: 0; padding: 0; list-style: none; }
.hero-trust li { display: inline-flex; gap: 6px; align-items: center; }
.hero-trust .icon { color: var(--green); width: 16px; height: 16px; }
.hero-card { border-radius: var(--radius-l); box-shadow: var(--shadow-l); padding: 26px; margin: 0; }
.steps-row { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 28px 0 16px; padding: 0; list-style: none; }
.how { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: start; }
.how-icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.how-icon .icon { width: 22px; height: 22px; }
.how h3 { margin: 2px 0 0; }
.how p { margin: 0; color: var(--label-2); font-size: 15px; }
.login-band { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: center; background: var(--card); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow); margin-bottom: 16px; }
.login-band h2 { margin-bottom: 6px; }
.login-band p { margin-bottom: 4px; }

/* ------------------------------------------------------------ Auftrag: Kopf mit Gerät und Fortschritt */
.order-hero { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: center; background: var(--card); border-radius: var(--radius-l); padding: 22px; box-shadow: var(--shadow-l); margin-bottom: 16px; overflow: hidden; position: relative; }
.order-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 100%, color-mix(in srgb, var(--purple) 14%, transparent), transparent 70%), radial-gradient(50% 90% at 70% 120%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 70%); pointer-events: none; z-index: 0; }
.order-hero > * { position: relative; z-index: 1; }
.order-hero h1 { margin: 2px 0 8px; font-size: clamp(28px, 6.6vw, 44px); overflow-wrap: anywhere; }
.order-hero .eyebrow { margin: 0; }
.device-frame { width: 88px; height: 88px; border-radius: 22px; background: linear-gradient(160deg, var(--bg), var(--card-2)); display: grid; place-items: center; box-shadow: inset 0 0 0 0.5px var(--hairline); overflow: hidden; color: var(--label-2); }
.device-frame img { width: 80px; height: 80px; object-fit: contain; }
.device-icon { width: 46px; height: 46px; color: var(--label-2); }
.order-hero .status-line { margin: 0; }
.progress { grid-column: 1 / -1; margin-top: 4px; }
.progress-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.progress-seg { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.progress-seg > i { display: block; height: 100%; border-radius: inherit; background: var(--grad); background-size: 500% 100%; transform-origin: left; animation: fill 0.9s var(--spring) both; }
.progress-seg:nth-child(2) > i { background-position: 25% 0; animation-delay: 80ms; }
.progress-seg:nth-child(3) > i { background-position: 50% 0; animation-delay: 160ms; }
.progress-seg:nth-child(4) > i { background-position: 75% 0; animation-delay: 240ms; }
.progress-seg:nth-child(5) > i { background-position: 100% 0; animation-delay: 320ms; }
.progress-seg.is-current > i { background: var(--blue); animation: fill 0.9s var(--spring) both, breathe 2.4s ease-in-out 1.2s infinite; }
.progress-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 7px; font-size: 11px; font-weight: 600; color: var(--label-3); letter-spacing: -0.005em; }
.progress-labels span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-labels .is-done { color: var(--label-2); }
.progress-labels .is-current { color: var(--blue); }
.next-card { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; align-items: start; }
.next-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); }
.next-icon .icon { width: 21px; height: 21px; }
.next-card h2 { font-size: 15px; letter-spacing: 0; text-transform: uppercase; color: var(--label-2); margin: 2px 0 2px; font-family: var(--font); font-weight: 700; }
.next-card p { margin: 0; font-size: 18px; letter-spacing: -0.02em; font-weight: 500; }
.ready-banner { display: flex; gap: 14px; align-items: center; background: var(--green-tint); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.ready-banner .icon { width: 28px; height: 28px; color: var(--green); animation: pop 0.6s var(--spring) both; }
.ready-banner p { margin: 0; font-weight: 600; }

/* ------------------------------------------------------------ Auftragskarten (Übersicht) */
.group { margin-bottom: 26px; }
.group-title { display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: -0.01em; color: var(--label-2); font-weight: 700; margin: 0 0 10px; cursor: default; }
details.group > summary { cursor: pointer; list-style: none; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::after { content: "›"; display: inline-block; transform: rotate(90deg); transition: transform 0.3s var(--spring); color: var(--label-3); font-size: 18px; }
details.group[open] > summary::after { transform: rotate(-90deg); }
.count { display: inline-block; min-width: 22px; text-align: center; border-radius: 11px; background: var(--fill); font-size: 12px; padding: 2px 7px; color: var(--label-2); }
.group--action .group-title { color: var(--orange); }
.group--action .count { background: var(--orange-tint); color: var(--orange); }
.order-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
.order-card { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); color: var(--label); text-decoration: none !important; transition: transform 0.45s var(--spring), box-shadow 0.3s var(--ease); }
.order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.order-card:active { transform: scale(0.985); }
.order-card.is-action { box-shadow: inset 0 0 0 2px var(--orange), var(--shadow); }
.order-thumb { width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(160deg, var(--bg), var(--card-2)); display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 0.5px var(--hairline); }
.order-thumb img { width: 54px; height: 54px; object-fit: contain; display: block; }
.order-thumb .device-icon { width: 30px; height: 30px; }
.order-body { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.order-device { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.02em; }
.order-status { color: var(--label); font-size: 15px; }
.order-meta { color: var(--label-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps { display: inline-flex; gap: 4px; }
.steps-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fill); }
.steps-dot.is-done { background: var(--green); }
.steps-dot.is-current { background: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }

/* Leer */
.empty { text-align: center; padding: 36px 22px; }
.empty-art { position: relative; width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 30px; display: grid; place-items: center; background: linear-gradient(160deg, var(--blue-tint), color-mix(in srgb, var(--purple) 14%, transparent)); color: var(--blue); }
.empty-device { width: 50px; height: 50px; }
.empty-check { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg); animation: pop 0.7s var(--spring) 0.2s both; }
.empty-check .icon { width: 18px; height: 18px; }
.empty h2 { margin-bottom: 6px; }
.empty p { max-width: 30em; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------ Zeitstrahl */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-step { display: flex; gap: 14px; position: relative; padding: 0 0 22px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--fill); }
.tl-step:last-child::before { display: none; }
.tl-done::before { background: linear-gradient(var(--green), color-mix(in srgb, var(--green) 45%, var(--fill))); }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--card); border: 2px solid var(--fill); position: relative; z-index: 1; }
.tl-done .tl-dot { background: var(--green); border-color: var(--green); }
.tl-done .tl-dot::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.tl-current .tl-dot { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 22%, transparent); animation: pulse 2.4s ease-in-out infinite; }
.tl-current .tl-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.tl-skipped .tl-label { text-decoration: line-through; color: var(--label-3); }
.tl-skipped .tl-dot { border-style: dashed; }
.tl-todo .tl-label { color: var(--label-3); }
.tl-text { display: flex; flex-direction: column; padding-top: 1px; }
.tl-label { font-weight: 650; letter-spacing: -0.015em; }
.tl-current .tl-label { color: var(--blue); }
.tl-when { font-size: 13px; color: var(--label-3); }

/* ------------------------------------------------------------ Fakten, Listen */
.facts { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 10px 16px; margin: 0; }
.facts dt { color: var(--label-2); font-size: 15px; }
.facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; font-weight: 500; }
.link-list { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.link-list a { padding: 14px 18px; border-bottom: 1px solid var(--separator); color: var(--label); display: flex; align-items: center; gap: 12px; text-decoration: none; transition: background 0.2s var(--ease); min-height: 52px; }
.link-list a:hover { background: var(--fill-2); }
.link-list a .icon { color: var(--blue); width: 20px; height: 20px; }
.link-list a::after { content: "›"; color: var(--label-3); font-size: 22px; line-height: 1; margin-left: auto; }
.link-list a:last-child { border-bottom: 0; }
.doc-list { list-style: none; margin: 0 0 16px; padding: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.doc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--separator); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list li > span { display: flex; flex-direction: column; min-width: 0; }

/* ------------------------------------------------------------ Zusatzangebote: Hülle + Schutzglas */
.upsell { padding: 22px 0 18px; overflow: hidden; }
.upsell > * { margin-left: 22px; margin-right: 22px; }
.upsell > .shelf { margin: 0; padding-left: 22px; padding-right: 22px; }
.upsell-head { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; margin-bottom: 12px; }
.upsell-head h2 { margin-bottom: 4px; }
.upsell-head p { margin: 0; }
.upsell-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.upsell-icon .icon { width: 22px; height: 22px; }
.upsell-deal { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 650; color: var(--indigo); margin-top: 0; margin-bottom: 12px; }
.upsell-deal .icon { width: 18px; height: 18px; }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 62%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 4px; padding-bottom: 14px; scroll-padding-left: 22px; overscroll-behavior-x: contain; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf > [role="listitem"] { scroll-snap-align: start; display: flex; min-width: 0; }
.tile { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; background: var(--card-2); border-radius: 20px; padding: 12px 12px 14px; box-shadow: inset 0 0 0 1px var(--hairline); transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease); }
.tile.is-picked { box-shadow: inset 0 0 0 2px var(--blue); background: color-mix(in srgb, var(--blue) 5%, var(--card-2)); }
.tile-img { position: relative; aspect-ratio: 1; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; margin-bottom: 8px; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; }
.tile-glyph { color: var(--blue); display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(160deg, var(--blue-tint), color-mix(in srgb, var(--purple) 12%, transparent)); }
.tile-glyph .icon { width: 46px; height: 46px; }
.tile-tick { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(0.6); transition: opacity 0.2s var(--ease), transform 0.45s var(--spring); }
.tile-tick .icon { width: 15px; height: 15px; }
.tile.is-picked .tile-tick { opacity: 1; transform: none; }
.tile-kind { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label-3); margin: 0; }
.tile-title { font-size: 16px; margin: 0; }
.tile-price { font-weight: 650; margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.tile-deal { display: inline-block; font-size: 12px; font-weight: 700; color: var(--indigo); background: color-mix(in srgb, var(--indigo) 12%, transparent); border-radius: 980px; padding: 2px 8px; margin-left: 2px; }
.tile-variant { font-size: 14px; color: var(--label-2); margin: 0 0 6px; }
.tile .tile-add { margin-top: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.swatch { position: relative; display: inline-flex; }
.swatch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatch span { display: inline-block; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 980px; background: var(--fill); color: var(--label); min-height: 32px; line-height: 20px; }
.swatch input:checked + span { background: var(--label); color: var(--bg-2); }
.swatch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--blue) 60%, transparent); outline-offset: 2px; }
.upsell-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--separator); }
.upsell-sum { font-weight: 650; font-variant-numeric: tabular-nums; }
.upsell-note { margin-top: 10px; margin-bottom: 0; }
#extras-msg:not(:empty), #protect-msg:not(:empty) { margin-top: 12px; }
.chosen-list { list-style: none; margin-top: 4px; margin-bottom: 10px; padding: 0; }
.chosen-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--separator); }
.chosen-list li > span:nth-child(2) { display: flex; flex-direction: column; }
.chosen-tick { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.chosen-tick .icon { width: 15px; height: 15px; }
.chosen-price { font-weight: 650; font-variant-numeric: tabular-nums; }

/* WERTGARANTIE nach der Reparatur */
.protect { display: grid; grid-template-columns: 1fr; gap: 16px; background: linear-gradient(150deg, color-mix(in srgb, var(--green) 10%, var(--card)), var(--card) 60%); overflow: hidden; }
.protect-art { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, #34c759, #0a84ff); box-shadow: 0 12px 26px -12px rgba(10, 132, 255, 0.6); }
.protect-art .icon { width: 34px; height: 34px; }
.protect-body h2 { margin-bottom: 8px; }
.protect-body p { margin-bottom: 12px; }
.protect-legal { margin: 14px 0 0 !important; }

/* ------------------------------------------------------------ Kostenvoranschlag */
.options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.option { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--separator); border-radius: var(--radius-s); cursor: pointer; transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
.option:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--blue-tint); }
.option-text { flex: 1; display: flex; flex-direction: column; }
.option-price { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 19px; letter-spacing: -0.02em; }

/* ------------------------------------------------------------ Nachrichten */
.thread { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 20px; display: flex; flex-direction: column; gap: 2px; animation: rise 0.45s var(--spring) both; }
.bubble--them { background: var(--card); box-shadow: var(--shadow); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble--me { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.bubble-from { font-size: 12px; opacity: 0.78; }
.bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-state { font-size: 12px; opacity: 0.85; }
.bubble-state.is-failed { font-weight: 700; }

/* ------------------------------------------------------------ Schritte des Formulars */
.stepper { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 6px; }
.stepper li { flex: 1; font-size: 12px; color: var(--label-3); text-align: center; padding-top: 11px; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.stepper li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 3px; background: var(--fill); }
.stepper li.is-done::before { background: var(--green); }
.stepper li.is-current::before { background: var(--grad); }
.stepper li.is-done { color: var(--label-2); }
.stepper li.is-current { color: var(--blue); }
.big-number { font: 800 clamp(26px, 7vw, 36px)/1.15 var(--font-display); letter-spacing: -0.03em; margin: 12px 0; }
.success-art { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; animation: pop 0.7s var(--spring) both; box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--green) 80%, transparent); }
.success-art .icon { width: 38px; height: 38px; }
.sign-pad { width: 100%; height: auto; aspect-ratio: 600 / 220; background: var(--card-2); border: 1.5px dashed var(--label-3); border-radius: var(--radius-s); touch-action: none; display: block; margin-bottom: 4px; }
.intake-extras { margin: 0 -22px 8px; }

/* ------------------------------------------------------------ Druck */
.print-sheet { background: #fff; color: #000; border-radius: 16px; padding: 26px; margin: 16px 0; box-shadow: var(--shadow); }
.print-sheet .wordmark-svg { color: #000; height: 20px; width: auto; display: block; }
.print-label { max-width: 380px; text-align: center; }
.pl-brand { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font-display); color: #555; }
.print-label .pl-brand { justify-content: center; flex-direction: column; gap: 6px; }
.pl-number { font: 800 34px/1.1 var(--font-display); margin: 10px 0 6px; letter-spacing: 0.02em; }
.pl-device { font-weight: 600; margin-top: 6px; }
.pl-meta { font-size: 13px; color: #444; }
.barcode { max-width: 100%; height: auto; }
.ps-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #000; margin-bottom: 12px; padding-bottom: 8px; gap: 12px; }
.ps-head h1 { font-size: 20px; margin: 0; letter-spacing: -0.02em; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 12px; }
.ps-grid span { display: block; font-size: 12px; color: #555; }
.print-slip h2 { font-size: 15px; margin-top: 14px; }
.ps-terms { list-style: none; padding: 0; font-size: 14px; }
.ps-terms li { margin: 4px 0; }
.ps-sign { display: flex; gap: 24px; margin-top: 36px; }
.ps-sign > div { flex: 1; border-top: 1px solid #000; padding-top: 4px; font-size: 12px; }
.ps-note { font-size: 12px; color: #444; margin-top: 18px; }
.ps-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ps-table th, .ps-table td { text-align: left; border-bottom: 1px solid #ccc; padding: 6px 4px; }

/* Versand einer Einsendung: zwei Wege nebeneinander, auf dem Telefon untereinander. */
.ship-options { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 12px 0; }
.ship-option { border: 1px solid var(--separator); border-radius: var(--radius-s); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ship-option h3 { margin: 0; font-size: 17px; }
.ship-option p { margin: 0; }
.ship-address { white-space: pre-line; }
.ship-tips { margin: 8px 0 0; padding-left: 20px; }
.ship-tips li { margin: 4px 0; }
.label-list { list-style: none; padding: 0; margin: 8px 0 12px; }
.label-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--separator); }
.label-list li > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ------------------------------------------------------------ Größen */
@media (max-width: 420px) {
  .who-name { display: none; }
  .btn--wide-phone { width: 100%; }
  .card { padding: 20px 18px; }
  .upsell { padding: 20px 0 16px; }
  .upsell > * { margin-left: 18px; margin-right: 18px; }
  .upsell > .shelf { padding-left: 18px; padding-right: 18px; scroll-padding-left: 18px; }
  .intake-extras { margin: 0 -18px 8px; }
  .order-hero { grid-template-columns: 72px minmax(0, 1fr); padding: 18px; gap: 14px; }
  .device-frame { width: 72px; height: 72px; border-radius: 18px; }
  .device-frame img { width: 64px; height: 64px; }
  .wordmark-svg { height: 19px; }
}

@media (min-width: 640px) {
  .shelf { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; scroll-snap-type: none; padding-bottom: 16px; }
  .steps-row { grid-template-columns: repeat(3, 1fr); }
  .protect { grid-template-columns: 64px 1fr; gap: 20px; }
}

@media (min-width: 760px) {
  .ship-options { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2--wide-left { grid-template-columns: 1.15fr 1fr; }
  .order-list { grid-template-columns: 1fr 1fr; }
  .login-band { grid-template-columns: 1fr auto; padding: 28px 32px; }
  .order-hero { grid-template-columns: 120px minmax(0, 1fr); padding: 28px 30px; gap: 26px; }
  .device-frame { width: 120px; height: 120px; border-radius: 30px; }
  .device-frame img { width: 108px; height: 108px; }
  .order-hero .device-icon { width: 60px; height: 60px; }
}

@media (min-width: 960px) {
  .main { padding-bottom: 40px; }
  .footer { padding-bottom: 28px; }
  body > .tabbar { position: sticky; }
  .tabbar { top: calc(56px + env(safe-area-inset-top)); bottom: auto; left: auto; transform: none; width: auto; margin: 0; border-radius: 0; justify-content: center; gap: 6px; padding: 8px; box-shadow: inset 0 -0.5px 0 var(--separator); }
  .tab { flex: 0 0 auto; flex-direction: row; gap: 7px; font-size: 15px; padding: 7px 16px; border-radius: 980px; min-height: 38px; }
  .tab-icon { width: 18px; height: 18px; }
  .page { padding-top: 36px; }
  .wordmark-svg { height: 24px; }
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 48px; padding: 28px 0 8px; }
  .progress { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; }
  body::before { display: none; }
  .topbar, .tabbar, .footer, .no-print, .skip { display: none !important; }
  .main { padding: 0; }
  .page { padding: 0; }
  .page > * { animation: none; }
  .print-sheet { box-shadow: none; margin: 0; padding: 0; border-radius: 0; }
}
