:root {
  --accent: #1f5fe0;
  --accent-d: #1748b8;
  --green: #15a36e;
  --ink: #0f1828;
  --ink-2: #5a6a83;
  --ink-3: #8a97ab;
  --muted: #9aa6b8;
  --line: #eef1f7;
  --line-2: #e7ebf3;
  --bg: #f4f6fb;
  --navy: #0f2147;
  --amber: #f5a623;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
}
button { font-family: inherit; }
a { color: var(--accent); text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* ===== Phone frame ===== */
.app-bg {
  min-height: 100vh; min-height: 100dvh; width: 100%;
  display: flex; align-items: center; justify-content: center; padding: 32px;
  background: radial-gradient(1200px 700px at 50% -10%, #e9edf6 0%, #dfe4ee 55%, #d6dbe6 100%);
}
.phone {
  position: relative; width: 392px; height: 840px; background: var(--bg);
  border-radius: 46px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 6px rgba(16,24,40,.08), 0 40px 90px -30px rgba(16,30,60,.45), 0 0 0 11px #0e1828, 0 0 0 12px #283449;
}

/* status bar */
.statusbar {
  position: relative; z-index: 5; flex: 0 0 auto; height: 50px; padding: 0 30px 9px 34px;
  display: flex; align-items: flex-end; justify-content: space-between; background: #fff; color: var(--ink);
}
.sb-time { font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.sb-right { display: flex; align-items: center; gap: 7px; }
.sb-signal { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.sb-signal span { width: 3px; background: var(--ink); border-radius: 1px; }
.sb-signal span:nth-child(1){height:4px}.sb-signal span:nth-child(2){height:6px}.sb-signal span:nth-child(3){height:9px}.sb-signal span:nth-child(4){height:11px}
.sb-batt { display: flex; align-items: center; gap: 2px; }
.sb-batt-body { width: 22px; height: 11px; border: 1.4px solid rgba(15,24,40,.5); border-radius: 3px; padding: 1.4px; }
.sb-batt-body > div { width: 72%; height: 100%; background: var(--ink); border-radius: 1px; }
.sb-batt-tip { width: 1.5px; height: 4px; background: rgba(15,24,40,.5); border-radius: 1px; }

/* app header */
.appbar {
  flex: 0 0 auto; padding: 6px 20px 14px; display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; letter-spacing: -.4px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo-mark { width: 26px; height: 24px; display: block; flex: none; }
.brand-accent { color: var(--accent); }
.appbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 13px; border: 1px solid var(--line); background: #f7f9fd;
  display: grid; place-items: center; cursor: pointer; color: #3a485f; transition: background .15s, transform .1s;
}
.icon-btn:active { transform: scale(.93); background: #eef2f9; }
.avatar {
  width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(135deg, var(--accent), var(--accent-d));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.avatar:hover { text-decoration: none; }
.avatar-guest { background: linear-gradient(135deg, #7c8aa3, #5a6a83); }

/* scroll area */
.screen { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 18px 116px; background: var(--bg); }
.sb-scroll::-webkit-scrollbar { width: 0; height: 0; }
.sb-scroll { scrollbar-width: none; }
.screen-tab { padding-top: 18px; animation: fade .25s ease; }
.screen-tab[hidden] { display: none; }
.screen-title { margin: 0 2px 4px; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.screen-sub { margin: 0 2px 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.screen-h2 { margin: 26px 2px 12px; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }

/* ===== Start: hero ===== */
.hero { position: relative; border-radius: 26px; overflow: hidden; padding: 24px 22px 22px; background-color: var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, #0f2147 0%, #16356a 100%); }
.hero-glow { position: absolute; top: -40px; right: -30px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(33,134,99,.55), transparent 65%); }
.hero-inner { position: relative; }
.hero-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #dbe6fb; font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; }
.hero h1 { margin: 14px 0 8px; font-size: 27px; line-height: 1.12; letter-spacing: -.6px; color: #fff; font-weight: 800; }
.hero p { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: #b9c8e6; }
.hero-search { display: flex; align-items: center; gap: 11px; width: 100%; background: rgba(255,255,255,.95); border: 0; border-radius: 15px; padding: 13px 16px; cursor: pointer; color: var(--accent); transition: transform .12s, background .15s; }
.hero-search:active { transform: scale(.98); background: #fff; }
.hero-search span { flex: 1; text-align: left; font-size: 14.5px; color: #74809a; font-weight: 500; }

/* trust row */
.trust { display: flex; gap: 9px; margin-top: 14px; }
.trust-item { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 10px; text-align: center; font-size: 11.5px; color: var(--ink-2); font-weight: 600; line-height: 1.3; }
.trust-ic { font-size: 19px; margin-bottom: 4px; }

/* regional cards */
.regional-card { width: 100%; text-align: left; margin-top: 16px; border: 0; cursor: pointer; border-radius: 22px; padding: 20px; background: linear-gradient(135deg, #15264a, #1f4488); position: relative; overflow: hidden; transition: transform .12s; }
.regional-card:active { transform: scale(.985); }
.regional-badge { position: absolute; top: 16px; right: 16px; background: var(--amber); color: #3a2600; font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.regional-globe { font-size: 30px; }
.regional-title { font-size: 17px; font-weight: 800; color: #fff; margin-top: 10px; line-height: 1.25; }
.regional-sub { font-size: 12.5px; color: #c2d2ef; margin-top: 3px; }
.regional-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.regional-price { font-size: 13px; color: #c2d2ef; }
.regional-price strong { color: #ffd479; font-weight: 800; font-size: 17px; }
.regional-cta { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: #15264a; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 12px; }
.regional-row { width: 100%; text-align: left; border: 0; cursor: pointer; border-radius: 20px; padding: 18px; background: linear-gradient(135deg, #15264a, #1f4488); display: flex; align-items: center; gap: 13px; margin-bottom: 12px; transition: transform .12s; }
.regional-row:active { transform: scale(.985); }
.regional-globe-sm { font-size: 30px; }
.regional-row-main { flex: 1; }
.regional-row-title { font-size: 15.5px; font-weight: 800; color: #fff; }
.regional-row-sub { font-size: 12px; color: #c2d2ef; margin-top: 2px; }
.regional-row-price { text-align: right; }
.regional-row-price > div { font-size: 11px; color: #c2d2ef; }
.regional-row-price strong { font-size: 16px; font-weight: 800; color: #ffd479; }

/* section head */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 2px 12px; }
.section-head h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.link-btn { background: none; border: 0; color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; }

/* country grid */
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.ccard { position: relative; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 15px; cursor: pointer; transition: transform .12s, box-shadow .2s; }
.ccard:active { transform: scale(.97); }
.ccard:hover { box-shadow: 0 10px 26px -14px rgba(16,30,60,.4); }
.ccard-badge { position: absolute; top: 11px; right: 11px; background: var(--amber); color: #3a2600; font-size: 9.5px; font-weight: 800; padding: 3px 7px; border-radius: 999px; }
.ccard-flag { font-size: 30px; line-height: 1; }
.ccard-name { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-top: 9px; line-height: 1.2; }
.ccard-from { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.ccard-from span { color: var(--accent); font-weight: 700; }

/* filter */
.filter-sticky { position: sticky; top: 0; z-index: 3; padding: 6px 0 12px; background: linear-gradient(var(--bg) 70%, rgba(244,246,251,0)); }
.filter-box { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-2); border-radius: 15px; padding: 12px 14px; box-shadow: 0 6px 16px -12px rgba(16,30,60,.3); color: var(--ink-3); }
.filter-box input { flex: 1; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 15px; color: var(--ink); }
.no-results { text-align: center; padding: 40px 20px; color: var(--ink-3); font-size: 14px; }

/* ===== Anleitung ===== */
.steps { display: grid; gap: 12px; }
.step { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.step-num { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 13px; font-weight: 800; font-size: 16px; display: grid; place-items: center; }
.step-blue { background: #eaf1fd; color: var(--accent); }
.step-green { background: #e7f8ee; color: var(--green); }
.step h3 { margin: 2px 0 4px; font-size: 15.5px; }
.step p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 15px; }
.why-ic { font-size: 20px; }
.why-t { font-size: 13.5px; font-weight: 700; margin-top: 8px; }
.why-p { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
.faqs { display: grid; gap: 10px; }
.faq { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; cursor: pointer; }
.faq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-head > span:first-child { font-size: 14px; font-weight: 700; line-height: 1.3; }
.faq-toggle { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; background: #f1f4fa; display: grid; place-items: center; color: var(--ink-2); transition: transform .2s; }
.faq.open .faq-toggle { transform: rotate(45deg); }
.faq-body { margin: 11px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }

/* ===== Konto ===== */
.profile { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.profile-avatar { width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-d)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.profile-name { font-size: 16.5px; font-weight: 800; }
.profile-email { font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.esim-empty { background: #fff; border: 1px dashed #c8d3e4; border-radius: 22px; padding: 26px 20px; text-align: center; }
.esim-empty-ic { font-size: 30px; }
.esim-empty-t { font-size: 15px; font-weight: 800; margin-top: 8px; }
.esim-empty-p { font-size: 12.5px; color: var(--ink-2); margin: 4px 0 14px; }
.t-list { display: grid; gap: 11px; }
.t-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 15px; }
.t-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.t-meta > span:first-child { font-size: 11.5px; color: var(--ink-3); }
.t-badge { font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.t-done { background: #e7f8ee; color: #0c5132; }
.t-open { background: #fff4e0; color: #92500a; }
.t-q { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.t-answer { font-size: 13px; background: #eef3fb; border-radius: 11px; padding: 10px 12px; color: #1a3c5e; line-height: 1.5; }
.t-pending { font-size: 12.5px; color: var(--ink-3); font-style: italic; }
.t-empty { font-size: 13px; color: var(--ink-3); padding: 6px 2px; }
.settings { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid #f1f4fa; font-size: 14px; font-weight: 600; color: var(--ink); }
.settings-row:last-child { border-bottom: 0; }
.settings-row:hover { text-decoration: none; background: #fafbfe; }
.settings-row svg { color: #c0c9d8; }
.settings-val { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.lang-switch a { font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 4px 9px; border-radius: 999px; background: #f1f4fa; }
.lang-switch a:hover { text-decoration: none; background: #e7ecf6; }
.lang-switch a.on { background: var(--accent); color: #fff; }
.auth-hero { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 22px; }
.auth-hero-ic { width: 56px; height: 52px; margin: 0 auto 6px; }
.auth-hero-ic .logo-mark { width: 56px; height: 52px; }
.auth-hero h2 { margin: 6px 0 6px; font-size: 19px; font-weight: 800; }
.auth-hero p { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* buttons */
.btn-primary { display: block; width: 100%; background: var(--accent); color: #fff; border: 0; border-radius: 14px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; text-align: center; transition: transform .1s, background .15s; }
.btn-primary:hover { background: var(--accent-d); text-decoration: none; color: #fff; }
.btn-primary:active { transform: scale(.98); }
.btn-ghost { display: block; width: 100%; margin-top: 10px; background: #eef3fb; color: var(--accent); border: 0; border-radius: 14px; padding: 13px; font-size: 14.5px; font-weight: 700; text-align: center; cursor: pointer; }
.btn-ghost:hover { text-decoration: none; background: #e4ecfa; }
.btn-logout { display: block; width: 100%; margin-top: 14px; background: #fff; border: 1px solid #f0d4d4; color: #c0392b; font-size: 14px; font-weight: 700; padding: 14px; border-radius: 15px; text-align: center; cursor: pointer; transition: transform .1s; }
.btn-logout:hover { text-decoration: none; background: #fdf5f5; }
.btn-logout:active { transform: scale(.98); }

/* ===== FAB + support panel ===== */
.fab { position: absolute; right: 18px; bottom: 92px; z-index: 30; width: 56px; height: 56px; border-radius: 19px; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--accent), var(--accent-d)); box-shadow: 0 12px 28px -8px rgba(31,95,224,.7); display: grid; place-items: center; transition: transform .15s cubic-bezier(.34,1.56,.64,1); }
.fab:hover { transform: translateY(-2px); }
.fab:active { transform: scale(.9); }
.support-root { position: absolute; inset: 0; z-index: 35; }
.support-root[hidden] { display: none; }
.support-backdrop { position: absolute; inset: 0; background: rgba(11,18,32,.45); animation: fade .2s ease; }
.support-panel { position: absolute; left: 18px; right: 18px; bottom: 92px; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px -18px rgba(13,30,60,.55); animation: panel .24s cubic-bezier(.34,1.3,.64,1); }
.support-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: linear-gradient(135deg, #102347, #1c3f7d); }
.support-title { font-size: 15.5px; font-weight: 800; color: #fff; }
.support-subtitle { font-size: 12px; color: #aebfe0; margin-top: 2px; }
.support-close { width: 32px; height: 32px; border-radius: 10px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.support-body { padding: 16px 18px 18px; display: grid; gap: 11px; }
.support-body input, .support-body textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 13px; padding: 13px 14px; font-family: inherit; font-size: 14.5px; color: var(--ink); outline: none; background: #f7f9fd; resize: none; }
.support-body input:focus, .support-body textarea:focus { border-color: var(--accent); background: #fff; }
.support-status { margin: 0; font-size: 13px; text-align: center; min-height: 1px; }
.support-status.ok { color: var(--green); }
.support-status.err { color: #c0392b; }

/* ===== Country sheet ===== */
.sheet-root { position: absolute; inset: 0; z-index: 45; }
.sheet-root[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(11,18,32,.5); animation: fade .2s ease; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg); border-radius: 28px 28px 0 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -16px 50px -16px rgba(13,30,60,.5); animation: sheetUp .3s cubic-bezier(.32,1.12,.5,1); max-height: 86%; overflow-y: auto; }
.sheet-grip { width: 40px; height: 5px; border-radius: 999px; background: #d3d9e6; margin: 0 auto 16px; }
.sheet-top { display: flex; align-items: center; gap: 13px; margin-bottom: 6px; }
.sheet-flag { font-size: 38px; line-height: 1; }
.sheet-name { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.sheet-coverage { font-size: 12.5px; color: var(--ink-3); }
.sheet-close { width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: 19px; cursor: pointer; display: grid; place-items: center; }
.sheet-intro { margin: 8px 0 16px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.plan-list { display: grid; gap: 11px; }
.plan { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; }
.plan.featured { border-color: var(--accent); }
.plan-main { flex: 1; }
.plan-data { display: flex; align-items: center; gap: 8px; }
.plan-data > span:first-child { font-size: 18px; font-weight: 800; }
.plan-tag { background: #eaf1fd; color: var(--accent); font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.plan-days { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.plan-price { font-size: 18px; font-weight: 800; color: var(--accent); }
.plan-buy { flex: 0 0 auto; background: var(--accent); color: #fff; border: 0; border-radius: 12px; padding: 11px 15px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: transform .1s, background .15s; }
.plan-buy:hover { background: var(--accent-d); }
.plan-buy:active { transform: scale(.94); }
.sheet-secure { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 0 4px; font-size: 12px; color: var(--ink-2); }

/* ===== bottom nav ===== */
.bottomnav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; padding: 9px 14px calc(16px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); backdrop-filter: saturate(150%) blur(14px); border-top: 1px solid var(--line); display: flex; justify-content: space-around; }
.nav-item { flex: 1; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; color: var(--muted); transition: transform .1s; }
.nav-item span { font-size: 10.5px; font-weight: 700; }
.nav-item:active { transform: scale(.9); }
.nav-item.active { color: var(--accent); }

/* ===== toast ===== */
.toast-wrap { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 40; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 11px 18px; border-radius: 14px; box-shadow: 0 14px 36px -10px rgba(16,30,60,.6); animation: toast .25s ease; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.toast-check { width: 18px; height: 18px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }

/* ===== standalone pages (auth / legal / 404) ===== */
.page-bg { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(1000px 600px at 50% -10%, #e9edf6 0%, #dfe4ee 60%, #d6dbe6 100%); }
.page-card { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 28px 26px; box-shadow: 0 30px 70px -28px rgba(16,30,60,.45); }
.page-brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.page-brand .logo-mark { width: 28px; height: 26px; }
.page-title { margin: 0 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.page-sub { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.page-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; font-family: inherit; font-size: 15px; color: var(--ink); background: #f7f9fd; outline: none; }
.field input:focus { border-color: var(--accent); background: #fff; }
.page-alt { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.alert { padding: 10px 14px; border-radius: 11px; font-size: 13.5px; }
.alert-err { background: #fdecec; border: 1px solid #f5b5b5; color: #b42318; }
.alert-ok { background: #e7f8ee; border: 1px solid #aee3c4; color: #0c5132; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table td { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.legal-table td:first-child { color: var(--ink-2); width: 42%; }
.legal-table td:last-child { font-weight: 600; }

/* ===== animations ===== */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes panel { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sheetUp { from { transform: translateY(102%); } to { transform: translateY(0); } }
@keyframes toast { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }

/* ===== responsive: real phones get fullscreen, no bezel ===== */
@media (max-width: 480px) {
  .app-bg { padding: 0; align-items: stretch; background: var(--bg); }
  .phone { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none; }
  .statusbar { display: none; }
}

/* 481–899px: keep the centered phone frame (tablet preview) — default styles. */

/* ===== desktop (≥900px): break out of the phone frame into a web layout ===== */
@media (min-width: 900px) {
  .app-bg { display: block; padding: 0; background: var(--bg); }
  .phone {
    width: 100%; max-width: none; height: auto; min-height: 100vh;
    border-radius: 0; box-shadow: none; background: var(--bg);
    overflow: visible; display: flex; flex-direction: column;
  }
  .statusbar { display: none; }

  /* top app bar (full-bleed, content centered to 1080px) */
  .appbar {
    order: 0; position: sticky; top: 0; z-index: 40;
    padding: 14px max(28px, calc((100% - 1080px) / 2));
  }
  .brand { font-size: 21px; }

  /* bottom nav becomes a horizontal tab bar under the app bar */
  .bottomnav {
    order: 1; position: static; left: auto; right: auto; bottom: auto;
    padding: 0 max(28px, calc((100% - 1080px) / 2));
    justify-content: flex-start; gap: 4px;
    background: #fff; border-top: 0; border-bottom: 1px solid var(--line);
    backdrop-filter: none;
  }
  .nav-item { flex: 0 0 auto; flex-direction: row; gap: 9px; padding: 13px 16px; border-bottom: 2px solid transparent; border-radius: 0; }
  .nav-item span { font-size: 14px; }
  .nav-item.active { border-bottom-color: var(--accent); }

  /* main content area */
  .screen {
    order: 2; overflow: visible; height: auto; min-height: 0;
    padding: 28px max(28px, calc((100% - 1080px) / 2)) 100px;
  }
  .screen-tab { animation: none; }
  .screen-tab[data-tab="anleitung"], .screen-tab[data-tab="konto"] { max-width: 760px; margin: 0 auto; }
  .filter-sticky { position: static; background: none; padding: 6px 0 16px; }

  .hero { padding: 46px 46px; }
  .hero h1 { font-size: 36px; max-width: 640px; }
  .hero p { font-size: 16px; max-width: 580px; }
  .hero-search { max-width: 520px; }
  .hero-glow { width: 260px; height: 260px; }

  .cgrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }

  /* FAB pinned to the viewport */
  .fab { position: fixed; right: 32px; bottom: 32px; }

  /* overlays become centered modals (root already fixed inset:0) */
  .support-root, .sheet-root { position: fixed; }
  .support-panel {
    position: fixed; inset: 0; margin: auto; width: 380px; height: -moz-fit-content; height: fit-content;
  }
  .sheet {
    position: fixed; inset: 0; margin: auto; width: 460px; height: -moz-fit-content; height: fit-content;
    max-height: 84vh; border-radius: 24px; padding: 22px 24px;
    animation: panel .24s cubic-bezier(.34,1.3,.64,1);
  }
  .sheet-grip { display: none; }
  .toast-wrap { position: fixed; top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===== language switcher (header) ===== */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 13px; background: #f7f9fd; display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12.5px; color: #3a485f; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: #eef2f9; }
.lang-menu[open] summary { background: #eef2f9; border-color: #d8e0ee; }
.lang-menu-pop { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px -12px rgba(16,30,60,.35); padding: 6px; display: grid; gap: 2px; z-index: 60; min-width: 150px; }
.lang-menu-pop a { padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink); }
.lang-menu-pop a:hover { background: #f1f4fa; text-decoration: none; }
.lang-menu-pop a.on { background: var(--accent); color: #fff; }

/* ===== plan sections + unlimited (sheet) ===== */
.plan-section + .plan-section { margin-top: 18px; }
.plan-section-title { font-size: 12px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .6px; margin: 0 2px 9px; }
.plan.unlimited { border-color: #d6e6ff; background: linear-gradient(180deg, #f6faff, #fff); }
.plan.unlimited .plan-data > span:first-child { color: var(--accent); }
.unlimited-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.45; margin: 10px 2px 0; }

/* ===== mobile sheet: cleaner, touch-friendly ===== */
@media (max-width: 480px) {
  .sheet { padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); }
  .plan { padding: 14px; gap: 11px; }
  .plan-buy { min-height: 42px; padding: 11px 16px; }
  .plan-data > span:first-child { font-size: 17px; }
}

/* ===== support thread (account) ===== */
.support-asacct { font-size: 13px; color: var(--ink-2); background: #eef3fb; border-radius: 10px; padding: 9px 12px; margin: 0; }
.support-asacct strong { color: var(--accent); }
.t-thread { display: grid; gap: 8px; margin-bottom: 10px; }
.t-msg { border-radius: 12px; padding: 9px 12px; }
.t-msg-cust { background: #f7f9fd; border: 1px solid var(--line); }
.t-msg-team { background: #eef3fb; border: 1px solid #d9e6fb; }
.t-msg-who { font-size: 11px; color: var(--ink-3); margin-bottom: 3px; font-weight: 600; }
.t-msg-text { font-size: 14px; color: var(--ink); line-height: 1.5; white-space: pre-wrap; }
.t-reply { display: flex; gap: 8px; align-items: flex-end; }
.t-reply textarea { flex: 1; border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 12px; font-family: inherit; font-size: 14px; resize: none; background: #fff; }
.t-reply textarea:focus { outline: none; border-color: var(--accent); }
.t-reply .btn-primary { width: auto; padding: 11px 16px; white-space: nowrap; }
