/* ==========================================================================
   Toiletten Scout / Bathroom Scout — mobilino.de
   Designsystem „Wegweiser": Porzellanweiß, Signal-Grün, Barlow (DIN-Erbe).
   Signatur: der grüne Suchradius-Ring aus der App.
   ========================================================================== */

/* ---------- Schriften (selbst gehostet) ---------- */
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Token ---------- */
:root {
  --paper: #FAFBF8;
  --card: #FFFFFF;
  --tile: #EFF4EA;
  --ink: #1D2620;
  --muted: #57665A;
  --line: rgba(29, 38, 32, 0.12);
  --green: #52A02E;
  --green-deep: #39761B;
  --green-tint: #E4F0DA;
  --ring: #7AB46E; /* aus dem App-Screenshot gesampelte Suchradius-Farbe */
  --blue: #33628C;
  --blue-tint: #E7EEF5;
  --footer-bg: #16211A;
  --footer-ink: #DCE7DA;
  --shadow: 0 10px 30px rgba(29, 38, 32, 0.10);
  --radius: 14px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121A14;
    --card: #182319;
    --tile: #16201A;
    --ink: #EAF1E6;
    --muted: #A2B1A3;
    --line: rgba(234, 241, 230, 0.15);
    --green: #71BE47;
    --green-deep: #8ED164;
    --green-tint: #21331C;
    --ring: #7AB46E; /* identisch zu hell: der Ring setzt den Kreis im (hellen) Screenshot fort */
    --blue: #7FA8CC;
    --blue-tint: #1B2836;
    --footer-bg: #0D140F;
    --footer-ink: #C9D6C6;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--green-deep); color: #fff; padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.7rem, 6.5vw, 4.3rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 600; font-family: var(--body); letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section--tile { background: var(--tile); }
.section-head { max-width: 46em; margin-bottom: 2rem; }

/* ---------- Türschild-Chip (Eyebrow) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--green-tint); color: var(--green-deep);
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.35rem 0.75rem; border-radius: 9px; margin-bottom: 1.1rem;
}
.chip svg { width: 15px; height: 15px; flex: none; }
.chip--blue { background: var(--blue-tint); color: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em; }
.brand span { color: var(--muted); font-size: 0.8rem; margin-top: 0.35rem; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green-deep); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--green); }
.lang-switch {
  border: 1.5px solid var(--line); border-radius: 8px; padding: 0.25rem 0.6rem;
  font-weight: 600; font-size: 0.85rem; text-decoration: none; color: var(--muted);
}
.lang-switch:hover { border-color: var(--green); color: var(--green-deep); }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px;
  padding: 0.4rem 0.55rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; display: block; }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-of-type { border-bottom: 0; }
  .lang-switch { align-self: flex-start; margin-top: 0.6rem; }
}

/* ---------- Hero mit Suchradius-Ring ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero-copy .lead { margin-bottom: 1.6rem; }
.store-badges { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-bottom: 1.2rem; }
.store-badges img { height: 52px; width: auto; display: block; }
.store-badges a { display: inline-block; border-radius: 9px; }
.hero-links { font-size: 0.98rem; }
.hero-links a { margin-right: 1.4rem; font-weight: 500; }

/* Der Ring setzt den Suchradius-Kreis aus dem App-Screenshot außerhalb des
   Telefons fort. Position/Größe sind aus dem Screenshot vermessen (Kreisfit):
   Zentrum bei 49,9 % / 55,4 % der Telefonfläche; Durchmesser je Screenshot
   verschieden -> --ring-d wird pro Seite am .ring gesetzt (DE-Karte: 144,2 %,
   EN-Karte: 114,9 %). Marker stehen mit der unteren Spitze exakt auf der
   Kreislinie (translate(-50%,-100%)); Positionen = Kreispunkte, inline je
   Seite gesetzt. Details: measure_circle.py in website-tools/. */
.ring-stage { position: relative; display: grid; place-items: center; min-height: 480px; }
.phone-wrap { position: relative; width: min(280px, 68%); }
.ring {
  position: absolute; left: 49.9%; top: 55.4%;
  width: var(--ring-d, 144.2%); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid var(--ring); border-radius: 50%;
  opacity: 0.9;
  animation: ring-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ring-pin {
  position: absolute; width: 15.7%; height: auto;
  transform: translate(-50%, -100%); transform-origin: bottom center;
  z-index: 2;
  filter: drop-shadow(0 3px 6px rgba(29, 38, 32, 0.25));
  animation: pin-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.ring-pin--1 { animation-delay: 0.45s; }
.ring-pin--2 { animation-delay: 0.6s; }
.ring-pin--3 { animation-delay: 0.75s; }
.phone {
  position: relative; z-index: 1; width: 100%;
  border: 9px solid #202a23; border-radius: 38px;
  overflow: hidden; box-shadow: var(--shadow);
  background: #202a23;
  animation: phone-in 0.8s ease-out both;
}
.phone img { display: block; width: 100%; border-radius: 28px; }
@keyframes ring-in { from { transform: translate(-50%, -50%) scale(0.55); opacity: 0; } }
@keyframes pin-in { from { transform: translate(-50%, -100%) translateY(14px) scale(0.4); opacity: 0; } }
@keyframes phone-in { from { transform: translateY(26px); opacity: 0; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .ring-stage { min-height: 420px; }
}

/* ---------- Zahlen-Schilder ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-plate {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; border-top: 4px solid var(--green);
}
.stat-plate b { display: block; font-family: var(--display); font-weight: 700; font-size: 2.3rem; line-height: 1.05; }
.stat-plate span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }

/* ---------- Feature-Karten ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { margin-bottom: 0; color: var(--muted); }
.icon-sign {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--green-tint); color: var(--green-deep);
}
.icon-sign--blue { background: var(--blue-tint); color: var(--blue); }
.icon-sign svg { width: 25px; height: 25px; }
.feature-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.98rem; }

/* ---------- Screenshot-Streifen ---------- */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 68vw);
  gap: 1.2rem; overflow-x: auto; padding: 0.5rem 0.25rem 1.2rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img {
  display: block; width: 100%; border-radius: 22px;
  border: 6px solid #202a23; background: #202a23; box-shadow: var(--shadow);
}
.shots figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.55rem; padding-left: 0.2rem; }

/* ---------- Zitate ---------- */
.quote-card { border-left: 4px solid var(--green); }
.quote-card blockquote { margin: 0 0 0.8rem; font-size: 1.15rem; font-weight: 500; line-height: 1.45; color: var(--ink); }
.quote-card cite { font-style: normal; color: var(--muted); font-size: 0.92rem; }

/* ---------- Wegweiser-Panels (CTA / Teaser) ---------- */
.panel {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem; text-decoration: none; color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.panel:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green); color: var(--ink); }
.panel h3 { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel h3 .arrow { color: var(--green-deep); font-family: var(--display); font-weight: 700; font-size: 1.6rem; transition: transform 0.15s ease; }
.panel:hover .arrow { transform: translateX(5px); }
.panel p { color: var(--muted); margin: 0; }

.cta-panel {
  background: var(--green-tint); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
  border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.5rem); text-align: center;
}
.cta-panel h2 { margin-bottom: 0.4rem; }
.cta-panel p { max-width: 40em; margin-inline: auto; }
.cta-mail {
  display: inline-block; margin-top: 0.8rem;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  color: var(--green-deep); text-decoration-thickness: 3px;
  overflow-wrap: anywhere;
}

/* ---------- Schritte (Kommunen) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 4.6rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 1.3rem; top: 1.45rem;
  width: 2.2rem; height: 2.2rem; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin-bottom: 0; color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 2.45rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px; background: color-mix(in srgb, var(--green) 45%, transparent);
}
.timeline li { position: relative; padding: 0 0 1.3rem 6.4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .year {
  position: absolute; left: 0; top: -0.1rem; width: 5rem; text-align: center;
  background: var(--green-tint); color: var(--green-deep);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  border-radius: 8px; padding: 0.15rem 0;
}
.timeline p { margin: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  align-items: baseline; padding: 1.05rem 0.2rem; font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--green-deep); flex: none; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 0.2rem 1.2rem; color: var(--muted); max-width: 60em; }
.faq .faq-a p { margin-bottom: 0.6em; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Code-Beispiel (B2B) ---------- */
.code-sample {
  background: var(--footer-bg); color: #CBE3BC;
  border-radius: var(--radius); padding: 1.3rem 1.5rem;
  font-family: var(--mono); font-size: 0.88rem; line-height: 1.55;
  overflow-x: auto; margin: 0;
}
.code-sample .k { color: #8ED164; }
.code-sample .c { color: #7d8f80; }

/* ---------- Vignetten ---------- */
.vignette h3 { display: flex; align-items: center; gap: 0.6rem; }
.vignette h3 svg { width: 22px; height: 22px; color: var(--green-deep); flex: none; }

/* ---------- Prosa (Rechtsseiten, Wissen) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.8rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); margin-top: clamp(3rem, 7vw, 5rem); }
.site-footer a { color: #A9D48B; }
.site-footer a:hover { color: #C8E7AF; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-block: 3rem 2rem;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }
.footer-brand b { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: #fff; }
.site-footer h4 {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #8fa691; margin: 0 0 0.7rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.footer-note { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.2rem; font-size: 0.88rem; color: #8fa691; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.footer-note p { margin: 0; }

/* ---------- Utility ---------- */
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring, .ring-pin, .phone { animation: none; }
  .panel, .panel:hover { transform: none; transition: none; }
}
