/* Abmarsch website: dark app world, Nunito (self-hosted), mint/cyan accents.
   Mobile first: short, swipeable, no walls of text. */
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #0a0f14;
  --bg-2: #0e151c;
  --surface: #141b22;
  --surface-2: #1b242d;
  --line: #26313b;
  --fg: #f2f5f7;
  --muted: #9aa7b3;
  --mint: #2ee6c5;
  --mint-2: #7cf3a9;
  --cyan: #12c8e0;
  --late: #ff5a4e;
  --font: "Nunito", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.5; font-weight: 600; }
img { max-width: 100%; display: block; }
a { color: var(--mint); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; font-weight: 900; }
p { margin: 0; }
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: 20px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 15, 20, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(38, 49, 59, 0.6); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 900; font-size: 21px; }
.brand img { width: 28px; height: auto; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 800; font-size: 15px; }
.top nav a:hover { color: var(--fg); }
.cta { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; background: linear-gradient(100deg, var(--mint-2), var(--cyan)); color: #04211d !important; font-weight: 900; text-decoration: none; border: 0; cursor: pointer; font-family: var(--font); font-size: 17px; }
.cta.small { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding-block: 40px 24px; display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); }
.hero .lead { margin-top: 14px; font-size: 20px; color: var(--muted); max-width: 26em; }
.hero .lead b { color: var(--fg); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.store { display: inline-flex; flex-direction: column; padding: 8px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); }
.store small { color: var(--muted); font-size: 12px; }
.store span { font-weight: 900; font-size: 17px; }

/* Phone mockup */
.phone { position: relative; width: 100%; max-width: 280px; aspect-ratio: 9 / 19.5; border-radius: 40px; padding: 9px; background: linear-gradient(160deg, #2a3540, #10161c 40%, #1d262f); box-shadow: 0 30px 70px rgba(18, 200, 224, 0.16), 0 0 0 1px #33414d inset; justify-self: center; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 66px; height: 19px; border-radius: 999px; background: #000; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; }
.phone.small { max-width: 210px; border-radius: 32px; padding: 7px; }
.phone.small::before { top: 12px; width: 50px; height: 15px; }
.phone.small img { border-radius: 26px; }
.hero-phone { max-width: 230px; }

/* Sections */
section { padding-block: 44px; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(28px, 4.4vw, 44px); }
.sub { color: var(--muted); margin-top: 6px; }

/* Morning: swipe strip on phones, four columns on desktop */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin: 22px -20px 0; padding: 0 20px 10px; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step { margin: 0; scroll-snap-align: start; display: grid; gap: 12px; align-content: start; }
.step .phone { max-width: none; }
.step figcaption { color: var(--muted); font-size: 15.5px; }
.step figcaption b { display: block; color: var(--mint); font-size: 17px; }

/* Planner */
.planner { margin-top: 20px; display: grid; gap: 14px; }
.form { display: grid; gap: 12px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
.field { display: grid; gap: 5px; position: relative; }
.field label { font-size: 13px; font-weight: 800; color: var(--muted); }
.field input, .field select { width: 100%; font: inherit; font-weight: 700; color: var(--fg); background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px; }
.field input:focus, .field select:focus { border-color: var(--mint); outline: none; }
.with-btn { display: flex; gap: 8px; }
.with-btn input { flex: 1; min-width: 0; }
.locate { flex: 0 0 48px; height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg-2); color: var(--mint); cursor: pointer; display: grid; place-items: center; }
.locate svg { width: 22px; height: 22px; }
.locate.busy { opacity: 0.5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; margin-top: 4px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.45); }
.suggest button { display: block; width: 100%; text-align: left; padding: 11px 14px; background: none; border: 0; color: var(--fg); font: inherit; font-weight: 700; cursor: pointer; }
.suggest button small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.suggest button:hover, .suggest button:focus { background: rgba(46, 230, 197, 0.1); }
.status { color: var(--muted); font-size: 15px; min-height: 0; }
.status:empty { display: none; }
.status.err { color: var(--late); }
.out { display: grid; gap: 12px; align-content: start; }
.answer { display: grid; justify-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px 18px; }
.answer small { color: var(--muted); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.answer b { font-size: 44px; line-height: 1.05; color: var(--mint); font-variant-numeric: tabular-nums; }
.answer span { color: var(--muted); font-size: 15px; }
.mapbox { position: relative; height: 360px; border-radius: 22px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.mapbox #map { position: absolute; inset: 0; }
.timeline { list-style: none; margin: 0; padding: 4px 4px 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 74px 18px 1fr; gap: 10px; }
.timeline .t { font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; font-size: 15px; }
.timeline .dot { position: relative; display: flex; justify-content: center; }
.timeline .dot::before { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: var(--c, var(--line)); }
.timeline li:last-child .dot::before { bottom: auto; height: 12px; }
.timeline .dot i { position: relative; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: var(--bg); border: 3px solid var(--c, var(--mint)); }
.timeline .what { padding-bottom: 12px; font-size: 15.5px; min-width: 0; }
.timeline .what small { display: block; color: var(--muted); font-weight: 600; font-size: 14px; }
.line-badge { display: inline-block; padding: 0 7px; border-radius: 6px; font-weight: 900; font-size: 14px; margin-right: 6px; color: #fff; }
.note { color: var(--muted); font-size: 13px; margin-top: 12px; }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* Family */
.fam { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr auto; }
.fam .phone { max-width: 150px; }
.bullets { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bullets li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; color: #c9d2da; }
.bullets li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--mint); }

/* FAQ */
.faq { margin-top: 18px; display: grid; gap: 8px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2px 16px; }
.faq summary { cursor: pointer; font-weight: 800; padding-block: 13px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 14px; }
.contact { margin-top: 18px; font-size: 19px; font-weight: 900; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: grid; gap: 12px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
footer .links a { color: var(--fg); text-decoration: none; font-weight: 700; }
footer .src { font-size: 12px; opacity: 0.8; }

/* Legal pages */
.legal { padding-block: 40px 64px; max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.legal h2 { font-size: 21px; margin: 30px 0 10px; }
.legal p, .legal li { color: #c9d2da; font-weight: 500; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; }
.legal .stand { color: var(--muted); }

/* Phones: only the essentials in the header */
@media (max-width: 720px) {
  .top nav a:not(.cta) { display: none; }
  .hero { grid-template-columns: 1fr auto; gap: 16px; padding-top: 28px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 17px; }
  .hero-phone { max-width: 120px; border-radius: 24px; padding: 5px; }
  .hero-phone::before { top: 9px; width: 30px; height: 9px; }
  .hero-phone img { border-radius: 19px; }
  .badges { grid-column: 1 / -1; margin-top: 0; }
  .store { flex: 1; }
}
@media (max-width: 380px) { .hero-phone { display: none; } .hero { grid-template-columns: 1fr; } }

/* Desktop */
@media (min-width: 721px) {
  .hero { grid-template-columns: 1.3fr 0.7fr; padding-block: 64px 48px; }
  .hero-phone { max-width: 280px; transform: rotate(2deg); }
  section { padding-block: 64px; }
  .steps { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 32px 0 0; padding: 0; }
  .fam .phone { max-width: 220px; }
}
@media (min-width: 900px) {
  .planner { grid-template-columns: 360px 1fr; }
  .mapbox { height: 460px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-phone { transform: none !important; } }
