/* ==========================================================
   esim33.de – Stylesheet (Mobile First)
   Basis = Smartphone. Größere Screens erweitern per min-width:
   640px (Phablet/klein), 900px (Tablet/Desktop), 1100px (groß)
   ========================================================== */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6477;
  --border: #e4e7f0;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --accent: #06b6d4;
  --ok: #059669;
  --danger: #e11d48;
  --dark: #0b1220;
  --radius: 16px;
  --tap: 48px; /* Mindest-Touchfläche */
  --header-h: 60px;
  --shadow: 0 10px 30px -12px rgba(30, 41, 90, .25);
  --shadow-sm: 0 4px 14px -6px rgba(30, 41, 90, .2);
  --grad: linear-gradient(135deg, var(--primary), var(--primary-2) 55%, var(--accent));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f1830;
    --surface: #131d38;
    --text: #e8ecf8;
    --muted: #9aa6c3;
    --border: #22304f;
    --ok: #34d399;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-sm: 0 4px 14px -6px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.has-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
code { background: var(--bg-alt); padding: .1em .45em; border-radius: 6px; border: 1px solid var(--border); }

.container { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2rem); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: .8rem 1.4rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: #fff; font: inherit; font-weight: 600; text-align: center;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .7);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  text-decoration: none; touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-small { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--primary); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 800; font-size: 1.15rem; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.2rem;
}
.logo-text span { color: var(--primary); }

/* Mobile-Menü: Panel unter dem Header */
.nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  display: flex; flex-direction: column; align-items: stretch;
  padding: .4rem 1rem calc(1.2rem + env(safe-area-inset-bottom));
  background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .2s ease, opacity .2s ease, visibility .2s;
}
.nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.nav a:not(.btn) { display: flex; align-items: center; min-height: var(--tap); color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); }
.nav-cta { margin-top: .9rem; color: #fff; }

.burger { display: grid; place-content: center; width: var(--tap); height: var(--tap); margin-right: -.5rem; border: 0; background: transparent; cursor: pointer; border-radius: 12px; }
.burger span { display: block; width: 22px; height: 2px; margin: 3px 0; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 2rem 0 2.5rem; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(420px 300px at 90% 0%, rgba(124, 58, 237, .22), transparent 70%),
    radial-gradient(380px 300px at 0% 20%, rgba(6, 182, 212, .20), transparent 70%),
    radial-gradient(400px 300px at 50% 100%, rgba(79, 70, 229, .15), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.pill {
  display: inline-block; padding: .35rem .8rem; margin-bottom: 1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: .8rem; font-weight: 600; box-shadow: var(--shadow-sm);
}
h1 { font-size: clamp(1.95rem, 8.4vw, 3.7rem); font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 56ch; margin-block: .9rem 1.4rem; }

/* Suche: Mobil gestapelt (Feld + voller Button) */
.hero-search {
  display: flex; flex-direction: column; gap: .6rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: .7rem; box-shadow: var(--shadow); max-width: 620px;
}
.hero-search svg { display: none; }
.hero-search input {
  width: 100%; min-height: var(--tap); border: 1.5px solid var(--border); border-radius: 14px; background: var(--bg);
  font: inherit; font-size: 16px; /* verhindert iOS-Zoom */ color: var(--text); padding: .6rem 1rem; outline: none;
}
.hero-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.hero-points { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; list-style: none; padding: 0; margin: 1.2rem 0 0; color: var(--muted); font-weight: 500; font-size: .9rem; }

/* Telefon-Grafik: mobil ausgeblendet, damit der Shop schneller erreichbar ist */
.hero-visual { display: none; position: relative; place-items: center; min-height: 400px; }
.phone {
  position: relative; width: 230px; aspect-ratio: 9 / 18.5; border-radius: 38px; padding: 10px;
  background: linear-gradient(160deg, #1e293b, #0b1220); box-shadow: 0 40px 70px -25px rgba(79, 70, 229, .55);
  animation: float 6s ease-in-out infinite;
}
.phone-notch { position: absolute; top: 14px; left: 50%; width: 76px; height: 21px; background: #000; border-radius: 99px; transform: translateX(-50%); z-index: 2; }
.phone-screen {
  height: 100%; border-radius: 29px; background: linear-gradient(180deg, #eef0ff, #ffffff);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: 1.2rem; color: #0f172a; text-align: center;
}
.qr { width: 140px; height: 140px; padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35); }
.qr svg { width: 100%; height: 100%; }
.phone-title { font-weight: 700; margin: .8rem 0 0; }
.phone-sub { font-size: .85rem; color: #5b6477; margin: 0; }
.phone-chip { margin-top: .6rem; padding: .35rem .8rem; border-radius: 99px; background: #e8fbf3; color: #047857; font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.phone-chip i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: pulse 1.6s infinite; }

.float-card {
  position: absolute; display: flex; flex-direction: column; padding: .6rem .9rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .9rem;
  animation: float 5s ease-in-out infinite;
}
.float-card small { color: var(--muted); }
.fc1 { top: 12%; left: 4%; animation-delay: -1s; }
.fc2 { top: 46%; right: 2%; animation-delay: -2.5s; }
.fc3 { bottom: 8%; left: 6%; animation-delay: -4s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); } 100% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } }

/* ---------- Stats ---------- */
.stats { background: var(--dark); color: #fff; padding: 1.6rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem 1rem; text-align: center; }
.stats strong { display: block; font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 800; line-height: 1.2; background: linear-gradient(135deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: #aab4d0; font-size: .88rem; }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 1.8rem; }
.section-head h2, .compat h2 { font-size: clamp(1.55rem, 6vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1rem; }
.eyebrow { display: inline-block; margin-bottom: .5rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-no { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.15rem; }
.step h3 { font-size: 1.1rem; margin-bottom: .2rem; align-self: end; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.shop-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; flex-direction: column; align-items: stretch; gap: .7rem; margin-bottom: .9rem; }
.panel-head h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: .6rem; }
.badge { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .85rem; font-weight: 700; }
.search-inline { display: flex; align-items: center; gap: .6rem; min-height: var(--tap); padding: 0 1rem; border: 1.5px solid var(--border); border-radius: 14px; background: var(--bg); color: var(--muted); }
.search-inline:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.search-inline input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); width: 100%; min-height: 44px; }
.selected-country { font-weight: 600; color: var(--primary); font-size: .95rem; }

/* Regions-Buttons: umbrechen auf mehrere Zeilen, nichts wird abgeschnitten */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .9rem; }
.chip {
  flex: none; min-height: 38px; padding: 0 .8rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text);
  font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; transition: background .15s, color .15s, border-color .15s; touch-action: manipulation;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Länder: 2 Spalten, kein verschachteltes Scrollen */
.country-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.country {
  display: flex; align-items: center; gap: .5rem; min-height: 60px; padding: .55rem .6rem; text-align: left;
  border: 1.5px solid var(--border); border-radius: 14px; background: var(--bg); color: var(--text);
  font: inherit; cursor: pointer; transition: border-color .15s, background .15s; touch-action: manipulation;
}
.country:active { transform: scale(.98); }
.country.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.country .flag { font-size: 1.4rem; line-height: 1; flex: none; }
.country > span:last-child { min-width: 0; flex: 1; }
.country .cname { display: block; font-weight: 600; font-size: .84rem; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.country small { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; }
/* Schmale Handys: Flagge über dem Namen, damit lange Ländernamen die volle Kartenbreite haben */
@media (max-width: 479px) {
  .country { flex-direction: column; align-items: flex-start; justify-content: center; gap: .3rem; min-height: 88px; padding: .65rem .75rem; }
  .country .flag { font-size: 1.6rem; }
  .country > span:last-child { flex: none; width: 100%; }
  .country .cname { font-size: .88rem; }
}
.more-btn { margin-top: .9rem; }

/* Flaggen (Bilder) und Lade-/Fehlerzustand der API-Daten */
.flag-img { width: 30px; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); flex: none; }
.flag-emoji { font-size: 1.6rem; line-height: 1; }
.flag-img.sm { width: 22px; display: inline-block; vertical-align: -3px; margin-right: .45rem; }
.flag-emoji.sm { font-size: 1.1rem; margin-right: .35rem; vertical-align: -1px; }
.catalog-status { display: flex; align-items: center; gap: .7rem; padding: .9rem 0 1rem; color: var(--muted); }
.catalog-status:empty { display: none; }
.catalog-status.err { flex-direction: column; align-items: stretch; padding: .5rem 0 1rem; color: var(--danger); }
.catalog-status.err p { margin: 0 0 .7rem; font-weight: 500; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.plan-hint { grid-column: 1 / -1; margin: 0; padding: .6rem 0; color: var(--muted); text-align: center; }
.plan-kinds { margin-bottom: .4rem; }
.plan .fup { margin-top: .35rem; font-size: .72rem; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; color: var(--muted); padding: 1.2rem 0 .3rem; }

/* Pakete: 2 Spalten */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; padding-top: .5rem; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: .15rem; min-height: 112px; padding: .95rem .9rem; text-align: left;
  border: 1.5px solid var(--border); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .15s, background .15s; touch-action: manipulation;
}
.plan:active:not(:disabled) { transform: scale(.98); }
.plan:disabled { opacity: .5; cursor: not-allowed; }
.plan.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.plan .gb { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.plan .days { color: var(--muted); font-size: .85rem; }
.plan .price { margin-top: .35rem; font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.plan .per { color: var(--muted); font-size: .75rem; }
.plan .tag { position: absolute; top: -9px; right: 10px; padding: .1rem .55rem; border-radius: 99px; background: var(--ok); color: #fff; font-size: .7rem; font-weight: 700; }
[data-theme] .plan .tag { color: #fff; }

/* Bestellung (Schritt 3) */
.summary {
  display: grid; grid-template-columns: 1fr; gap: 0; padding: 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.summary h3 { font-size: 1.1rem; }
.summary-title { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.summary-info, .summary form { min-width: 0; }
.summary-list { margin: 0 0 .6rem; }
.summary-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 600; text-align: right; }
.discount-row dd { color: var(--ok); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: .8rem 0 1.2rem; }
.sum-total strong { font-size: 1.7rem; letter-spacing: -.02em; }
.sum-amount { display: inline-flex; align-items: baseline; gap: .6rem; }
.sum-amount s { color: var(--muted); font-size: 1rem; }

.summary label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; }
.summary input[type="email"],
.summary .voucher-row input[type="text"] {
  width: 100%; min-height: var(--tap); padding: .7rem 1rem; border: 1.5px solid var(--border); border-radius: 14px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
.summary input[type="email"] { margin-bottom: 1rem; }
.summary input[type="email"]:focus,
.summary .voucher-row input[type="text"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.optional { font-weight: 400; color: var(--muted); }
.voucher-row { display: flex; gap: .5rem; margin-bottom: .5rem; }
.voucher-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.voucher-row .btn { flex: none; padding-inline: 1rem; }
.voucher-msg { margin: 0 0 1rem; font-size: .88rem; font-weight: 500; }
.voucher-msg.ok { color: var(--ok); }
.voucher-msg.err { color: var(--danger); }
.summary label.check { display: flex; gap: .7rem; align-items: flex-start; margin-top: .6rem; font-weight: 400; font-size: .86rem; color: var(--muted); }
.check input { margin-top: .15rem; accent-color: var(--primary); width: 22px; height: 22px; flex: none; }
.form-error { margin: .6rem 0 .8rem; color: var(--danger); font-size: .9rem; font-weight: 500; }
.summary .btn-block { margin-top: .8rem; }
.secure { margin: .8rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

/* Feste Bestellleiste am unteren Rand (nur Smartphone/Tablet) */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -14px rgba(30, 41, 90, .35);
}
.mb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.mb-info strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-info span { font-size: .85rem; color: var(--muted); }
.mobile-bar .btn { flex: none; padding-inline: 1.2rem; color: #fff; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.feature { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.ico { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; font-size: 1.5rem; border-radius: 14px; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); }
.feature h3 { font-size: 1.05rem; margin-bottom: .2rem; align-self: end; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Compat ---------- */
.compat { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
.compat p { color: var(--muted); }
.hint { padding: .9rem 1rem; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.compat-cards { display: grid; gap: .8rem; }
.compat-card { padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compat-card h3 { margin-bottom: .2rem; font-size: 1.05rem; }
.compat-card p { margin: 0 0 .3rem; color: var(--text); }
.compat-card small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 1rem; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.faq summary { cursor: pointer; list-style: none; min-height: var(--tap); padding: .9rem 0; font-weight: 600; font-size: .98rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-alt); color: var(--primary); font-size: 1.3rem; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin: 0; font-size: .95rem; }

/* ---------- CTA ---------- */
.cta { padding: 2.8rem 0; background: var(--grad); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(1.55rem, 6vw, 2.4rem); font-weight: 800; }
.cta p { opacity: .92; font-size: 1.02rem; margin-bottom: 1.4rem; }
.cta .btn { width: 100%; max-width: 360px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #aab4d0; padding: 2.4rem 0 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 1.2rem; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .5rem; }
.site-footer a { display: flex; align-items: center; min-height: 40px; color: #aab4d0; }
.logo-footer { color: #fff; display: inline-flex !important; margin-bottom: .6rem; }
.logo-footer .logo-text span { color: #a5b4fc; }
.footer-bottom { margin-top: 1.8rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* ---------- Modal: mobil als Bottom-Sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(5, 10, 25, .6); backdrop-filter: blur(4px); }
.modal-box {
  position: relative; width: 100%; max-height: 90dvh; overflow-y: auto;
  padding: 1.6rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom));
  background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--shadow); animation: sheet .25s ease;
}
.modal-box h3 { font-size: 1.25rem; padding-right: 2.5rem; }
.modal-box p { color: var(--muted); }
.modal-box .btn { width: 100%; }
.modal-close { position: absolute; top: .7rem; right: .8rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-alt); color: var(--text); font-size: 1.5rem; cursor: pointer; }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   ≥ 640px  (große Handys quer, kleine Tablets)
   ========================================================== */
@media (min-width: 640px) {
  .container { width: min(1160px, 100% - 3rem); }
  .narrow { width: min(820px, 100% - 3rem); }
  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2.4rem; }
  .hero { padding: 3.2rem 0 3rem; }
  .hero-points { font-size: .95rem; gap: .4rem 1.4rem; }

  .hero-search { flex-direction: row; align-items: center; border-radius: 999px; padding: .4rem .4rem .4rem 1.1rem; }
  .hero-search svg { display: block; color: var(--muted); flex: none; }
  .hero-search input { border: 0; background: transparent; min-height: 46px; padding: .5rem .3rem; }
  .hero-search input:focus { box-shadow: none; }
  .hero-search .btn { flex: none; }

  .stats-grid { gap: 1.5rem 1rem; }

  .panel { padding: 1.4rem; }
  .panel-head { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .search-inline { min-width: 240px; }
  .country-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }

  .features { grid-template-columns: repeat(2, 1fr); }
  .feature { display: block; padding: 1.5rem; }
  .ico { margin-bottom: .9rem; width: 52px; height: 52px; }
  .feature h3 { font-size: 1.15rem; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  .modal { align-items: center; padding: 1.2rem; }
  .modal-box { width: min(460px, 100%); border-radius: 22px; padding: 2rem; animation: pop .22s ease; }
  .modal-box .btn { width: auto; }
  .cta .btn { width: auto; max-width: none; }
}

/* ==========================================================
   ≥ 900px  (Tablet quer / Desktop)
   ========================================================== */
@media (min-width: 900px) {
  :root { --header-h: 68px; }
  body.has-bar { padding-bottom: 0; }
  .mobile-bar { display: none !important; }

  /* Navigation in einer Zeile */
  .burger { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 1.6rem; padding: 0;
    background: transparent; border: 0; box-shadow: none;
    transform: none; opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav a:not(.btn) { display: inline; min-height: 0; border: 0; font-size: .98rem; opacity: .85; }
  .nav a:not(.btn):hover { opacity: 1; color: var(--primary); }
  .nav-cta { margin-top: 0; }
  .logo { font-size: 1.25rem; }
  .logo-mark { width: 36px; height: 36px; }

  .hero { padding: 4.5rem 0 4rem; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3rem; }
  .lead { font-size: 1.15rem; margin-bottom: 1.8rem; }
  .pill { font-size: .88rem; margin-bottom: 1.2rem; }
  .hero-visual { display: grid; }
  .phone { width: 250px; }
  .qr { width: 150px; height: 150px; }
  .fc1 { left: -2%; } .fc2 { right: -4%; } .fc3 { left: 2%; }

  .stats { padding: 2rem 0; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats span { font-size: .95rem; }

  .section { padding: 5rem 0; }
  .section-head { margin-bottom: 3rem; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .step { display: block; padding: 2rem; transition: transform .2s, box-shadow .2s; }
  .step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
  .step-no { width: 46px; height: 46px; margin-bottom: 1rem; }
  .step h3 { font-size: 1.2rem; }

  .shop-layout, .shop-main { gap: 1.5rem; }
  .panel { padding: 1.5rem; }
  .chip:hover { border-color: var(--primary); }
  .country:hover { border-color: var(--primary); transform: translateY(-2px); }
  .plan:hover:not(:disabled) { border-color: var(--primary); transform: translateY(-3px); }
  .plan-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  .summary { grid-template-columns: 1fr 1fr; gap: 0 2.5rem; align-items: start; padding: 1.5rem; }
  .summary-title { grid-column: 1 / -1; margin-bottom: 1rem; }

  .features { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .feature { padding: 1.8rem; transition: transform .2s, box-shadow .2s; }
  .feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

  .compat { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
  .cta { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
  .footer-grid > div:first-child { grid-column: auto; }
  .site-footer { padding: 3.5rem 0 1.5rem; }
  .site-footer a { min-height: 0; display: block; margin-bottom: .45rem; }
  .site-footer a:hover { color: #fff; }
  .btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(79, 70, 229, .8); }
  .btn-outline:hover:not(:disabled) { background: var(--primary); color: #fff; box-shadow: none; }
}

/* Nur Geräte mit Maus: Hover-Effekte; Touch bleibt ruhig */
@media (hover: none) {
  .btn:hover, .country:hover, .plan:hover, .step:hover, .feature:hover { transform: none; }
}

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

/* ==========================================================
   Sprachauswahl (Flagge) + Schriften für Chinesisch/Japanisch
   ========================================================== */
.lang { position: relative; margin-left: auto; flex: none; }
.lang-btn {
  display: flex; align-items: center; gap: .35rem; min-height: var(--tap); padding: 0 .55rem;
  border: 0; border-radius: 12px; background: transparent; color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; touch-action: manipulation;
}
.lang-btn:hover { background: var(--bg-alt); }
.lang-btn .flag-img { width: 28px; border-radius: 4px; }
.lang-btn svg { width: 14px; height: 14px; opacity: .6; transition: transform .2s; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; margin: 0; padding: .35rem; list-style: none;
  min-width: 180px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
.lang-item {
  display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 44px; padding: 0 .75rem;
  border: 0; border-radius: 10px; background: transparent; color: var(--text);
  font: inherit; font-size: .95rem; text-align: left; cursor: pointer; touch-action: manipulation;
}
.lang-item:hover { background: var(--bg-alt); }
.lang-item.active { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); font-weight: 600; }
.lang-item .flag-img { width: 24px; }

@media (min-width: 900px) {
  .lang { margin-left: 1.2rem; }
}
/* Enge Desktop-Breiten: längere Übersetzungen (RU/FR/DE) sollen die Navigation nicht sprengen */
@media (min-width: 900px) and (max-width: 1139px) {
  .nav { gap: 1rem; }
  .nav a:not(.btn) { font-size: .9rem; }
}

html:lang(zh) body { font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; line-height: 1.75; }
html:lang(ja) body { font-family: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; line-height: 1.75; }
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3, html:lang(zh) h4,
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3, html:lang(ja) h4 { letter-spacing: 0; line-height: 1.3; }
html:lang(zh) .eyebrow, html:lang(ja) .eyebrow { letter-spacing: .04em; }

/* Sprachflaggen (inline SVG) */
.lang-btn .flag-img, .lang-item .flag-img { display: block; height: auto; aspect-ratio: 4 / 3; }
.lang-btn .flag-img { width: 28px; }
.lang-item .flag-img { width: 26px; }
.lang-btn svg.flag-img { width: 28px; height: auto; opacity: 1; transform: none; }
.lang-btn[aria-expanded="true"] svg.flag-img { transform: none; }
