:root {
  --bg: #ffffff;
  --soft: #f3f6f7;
  --card: #ffffff;
  --text: #14212b;
  --muted: #5d6b76;
  --line: #e1e7ea;
  --accent: #0b6e79;
  --accent-dark: #08545c;
  --accent-soft: #e6f2f3;
  --accent-text: #ffffff;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --err: #b91c1c;
  --err-bg: #fef2f2;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1, h2 { line-height: 1.2; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
main { padding-top: 8px; padding-bottom: 48px; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }

/* Kopf und Fuss */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 800; font-size: 19px; color: var(--accent); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.top nav { display: flex; gap: 14px; align-items: center; font-size: 15px; }
.top nav a { color: var(--text); text-decoration: none; }
.devbadge { font-size: 12px; background: #f59e0b; color: #111; padding: 2px 8px; border-radius: 99px; }
.foot { background: var(--soft); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); padding: 20px 0 28px; text-align: center; }
.foot a { color: var(--muted); }

/* Startseite */
.hero { text-align: center; padding: 28px 0 8px; }
.hero h1 { font-size: clamp(27px, 6vw, 42px); margin: 0 0 10px; letter-spacing: -.02em; }
.hero p { color: var(--muted); margin: 0 auto; max-width: 520px; font-size: 17px; }
.section-title { font-size: 20px; margin: 28px 0 14px; }
.countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.country { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--card); transition: border-color .15s, box-shadow .15s; }
.country:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(11, 110, 121, .12); }
.flag { font-size: 40px; line-height: 1; }
.flag.big { font-size: 52px; }
.cname { font-weight: 700; }
.from { font-size: 14px; color: var(--muted); }

.trust { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.trust li { background: var(--soft); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.trust b { font-size: 15px; }
.trust b::before { content: "✓ "; color: var(--accent); }
.trust span { font-size: 14px; color: var(--muted); }

.steps ol { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: s; display: grid; gap: 2px; padding-left: 44px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps span { color: var(--muted); font-size: 15px; }

/* Landesseite */
.crumbs { font-size: 14px; color: var(--muted); margin: 12px 0; }
.crumbs a { color: var(--muted); }
.country-head { display: flex; align-items: center; gap: 14px; }
.country-head h1 { margin: 0; font-size: clamp(26px, 5vw, 36px); }
.country-head p { margin: 2px 0 0; }
.intro { max-width: 640px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 24px 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--card); text-align: center; transition: border-color .15s, box-shadow .15s; }
.plan:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(11, 110, 121, .12); }
.plan.popular { border: 2px solid var(--accent); background: var(--accent-soft); }
.plan .tag { position: absolute; top: -11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.plan .days { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .gb, .bigdeal .gb { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--accent-dark); }
.plan .daily, .bigdeal .daily { color: var(--muted); font-size: 13px; }
.plan .price { font-size: 24px; font-weight: 800; margin-top: 10px; }
.plan .perday { color: var(--muted); font-size: 13px; }
.plan .button { margin-top: 12px; width: 100%; }
.notes { font-size: 14px; color: var(--muted); padding-left: 18px; max-width: 640px; }
.notes li { margin-bottom: 4px; }
.netbadge { display: inline-block; margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 2px 10px; border-radius: 99px; }
.network { margin: 28px 0 0; padding: 20px; border-radius: var(--radius); background: var(--accent); color: #fff; }
.network h2 { margin: 0 0 10px; font-size: 20px; }
.network ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.network li { padding-left: 26px; position: relative; }
.network li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }
.network .sources { margin: 12px 0 0; font-size: 12px; opacity: .8; }
.featured .section-title .muted { font-weight: 400; font-size: 16px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }

@media (max-width: 600px) {
  .plans { grid-template-columns: 1fr; gap: 16px; }
  .plan { display: grid; grid-template-columns: 1fr auto; align-items: end; text-align: left; padding: 18px 16px 16px; gap: 0 12px; }
  .plan .days { grid-column: 1; grid-row: 1; }
  .plan .gb { grid-column: 1; grid-row: 2; }
  .plan .daily { grid-column: 1; grid-row: 3; }
  .plan .price { grid-column: 2; grid-row: 2; margin: 0; text-align: right; }
  .plan .perday { grid-column: 2; grid-row: 3; text-align: right; }
  .plan .button { grid-column: 1 / -1; grid-row: 4; margin-top: 12px; }
  .plan .tag { left: 16px; }
}

/* Karten, Formulare */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.narrow { max-width: 580px; margin-left: auto; margin-right: auto; }
.summary { display: flex; gap: 14px; align-items: center; }
.summary h1 { font-size: 22px; margin: 0; }
.summary p { margin: 2px 0 0; }
.bigdeal { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 18px 0 12px; padding: 16px; border-radius: 12px; background: var(--accent-soft); }
.bigdeal > div { display: grid; }
.bigdeal .right { text-align: right; }
.bigdeal .price { font-size: 26px; font-weight: 800; }
.checks { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 6px; font-size: 15px; }
.checks li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.facts-list { list-style: none; padding: 0; margin: 16px 0; border-top: 1px solid var(--line); }
.facts-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts-list span { color: var(--muted); }
.facts-list .price { font-size: 20px; }
.hint { margin: 12px 0; font-size: 14px; }
.hint summary { cursor: pointer; color: var(--accent); }
form.buy { display: grid; gap: 14px; margin-top: 16px; }
label { display: grid; gap: 6px; font-size: 14px; }
label.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
label.check input { margin-top: 2px; width: 20px; height: 20px; accent-color: var(--accent); }
input, textarea { font: inherit; font-size: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
button, .button { font: inherit; font-weight: 700; background: var(--accent); color: var(--accent-text); border: 0; border-radius: 10px; padding: 13px 18px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
button:hover, .button:hover { background: var(--accent-dark); }
button.secondary { background: var(--line); color: var(--text); }
button.danger { background: var(--err); }
.error { background: var(--err-bg); color: var(--err); padding: 10px 12px; border-radius: 10px; }
.ok { background: var(--ok-bg); color: var(--ok); padding: 10px 12px; border-radius: 10px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 8px 0 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.guide h2 { font-size: 19px; margin-top: 26px; }
.guide li { margin-bottom: 6px; }
.legal p { font-size: 15px; }

/* Admin */
body.admin { background: var(--soft); }
.tablewrap { overflow-x: auto; }
table.orders { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.orders th, .orders td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.orders tbody tr { cursor: pointer; }
.orders tbody tr:hover { background: var(--soft); }
.badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--line); vertical-align: middle; }
.s-bezahlt { background: #fde68a; color: #111; }
.s-geliefert { background: var(--ok-bg); color: var(--ok); }
.s-erstattet { background: var(--err-bg); color: var(--err); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-all; }
.drop { position: relative; border: 2px dashed var(--line); border-radius: 10px; padding: 28px 16px; text-align: center; color: var(--muted); background: var(--bg); }
.drop.over { border-color: var(--accent); color: var(--accent); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* eSIM-Check, Hinweise */
.compat { margin: 16px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid #f3d38a; background: #fff8e6; font-size: 15px; }
.compat p { margin: 4px 0 6px; }
.finalnotice { margin: 0; font-size: 13px; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: var(--soft); }
.bigtest { margin: 16px 0; padding: 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent); }
.bigtest p { margin: 6px 0 0; }
.duration { display: inline-block; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 12px; border-radius: 99px; }
#devsearch { margin: 8px 0 16px; }
#devlist .brand h3 { margin: 16px 0 6px; font-size: 16px; }
#devlist ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
#devlist li { font-size: 14px; background: var(--soft); border-radius: 8px; padding: 4px 10px; }
#devlist li[hidden], #devlist .brand[hidden] { display: none; }
.top nav a[hreflang] { font-weight: 700; border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; font-size: 13px; }

/* Bewertungen */
.stars { color: #f5a524; letter-spacing: 1px; }
.stars .off { color: var(--line); }
.rsum { font-size: 17px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.review { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.review blockquote { margin: 8px 0; }
.review figcaption { font-size: 13px; color: var(--muted); }
.verified { color: var(--ok); }
.starpick { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.starpick label { font-size: 40px; color: var(--line); cursor: pointer; display: block; }
.starpick input:checked ~ label, .starpick label:hover, .starpick label:hover ~ label { color: #f5a524; }
.starpick input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }
.hiddenrow { opacity: .45; }
.wrapcell { white-space: normal !important; max-width: 360px; }
.top nav a { white-space: nowrap; }
@media (max-width: 480px) {
  .top nav { gap: 10px; }
  .top nav .nav-check { display: none; }
}
mark.missing { background: #fde2e2; color: var(--err); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.legal h2 { font-size: 18px; margin-top: 24px; }
.legal li { margin-bottom: 4px; }

/* Hilfe-Seite und Meldungen */
.trouble { padding-left: 22px; }
.trouble li { margin-bottom: 10px; }
.trouble li span { display: block; color: var(--muted); font-size: 15px; }
select { font: inherit; font-size: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); width: 100%; }
input[type="file"] { padding: 10px; }
.button.secondary-link { background: var(--soft); color: var(--accent-dark); border: 1px solid var(--line); }
.s-meldung { background: var(--err-bg); color: var(--err); }
.ticket.open { border: 2px solid var(--err); }
.shots { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.shots img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.autorefund { background: #fff8e6; border: 1px solid #f3d38a; padding: 10px 12px; border-radius: 10px; }
.ticket form + form { margin-top: 8px; }
