/* Dopawise Website. Tokens aus dem Dopawise-Design-System (tokens.json). Nacht ist Standard. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }

:root {
  --ground: #0E1720; --surface: #16222D; --surface-raised: #1F2E3B; --line: #2B3B49;
  --ink: #EAF0EE; --ink-muted: #9AAAB2; --tide: #4CC3B0; --on-tide: #0E1720; --tide-soft: #173A3A;
  --ember: #F2AE48; --coral: #EF7A68;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --r-sm: 10px; --r-md: 16px; --r-lg: 26px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --ground: #F1F4F3; --surface: #FFFFFF; --surface-raised: #E6ECEA; --line: #CDD6D3; --ink: #0E1720; --ink-muted: #4E5D66;
          --tide: #1F7F72; --on-tide: #FFFFFF; --tide-soft: #D5EEEA; --ember: #A85F00; --coral: #B83A2A; color-scheme: light; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tide); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--tide); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 750; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 720px; }
.label { font: 600 13px/16px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: var(--r-md); background: var(--tide); color: var(--on-tide); font: 600 16px/1 var(--font-body); text-decoration: none; }
.btn.secondary { background: var(--surface-raised); color: var(--ink); }

/* Navigation */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 22px/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { width: 40px; height: 40px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--ink); }

/* Startseite */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-block: 48px 72px; }
.hero p.lead { font-size: 20px; color: var(--ink-muted); margin-top: 20px; max-width: 34ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.hero .dopa { position: relative; }
.bubble { background: var(--surface-raised); border-radius: var(--r-md); padding: 12px 16px; font-weight: 500; max-width: 300px; margin: 0 auto 8px; text-align: center; position: relative; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); border: 9px solid transparent; border-bottom: 0; border-top-color: var(--surface-raised); }
.section { padding-block: 72px; border-top: 1px solid var(--line); }
.section > .wrap > h2 { margin-bottom: 12px; }
.section > .wrap > p.muted { max-width: 60ch; margin-bottom: 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--surface); border-radius: var(--r-lg); padding: 28px; min-width: 0; }
.card h3 { margin-bottom: 8px; }
.card .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-raised); display: grid; place-items: center; color: var(--tide); margin-bottom: 16px; font-weight: 700; }
.phone { background: var(--ground); border: 1px solid var(--line); border-radius: 36px; padding: 40px 24px 24px; max-width: 340px; margin: 0 auto; }
.phone .big { font: 700 40px/1 var(--font-display); letter-spacing: -0.02em; margin: 12px 0; }
.phone .why { background: var(--surface); border-radius: var(--r-lg); padding: 16px; margin: 16px 0; font-weight: 600; }
.phone .btn { width: 100%; }
.phone .textbtn { text-align: center; color: var(--ink-muted); font-weight: 600; margin-top: 12px; font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; }
.steps figure { margin: 0; text-align: center; }
.steps figcaption { font-size: 13px; color: var(--ink-muted); margin-top: 8px; }
.price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price .card.best { outline: 2px solid var(--tide); }
.price .amount { font: 700 36px/1 var(--font-display); margin: 12px 0 4px; }
.faq details { background: var(--surface); border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.faq details p { margin-top: 10px; color: var(--ink-muted); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.post-card { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border-radius: var(--r-lg); padding: 28px; min-width: 0; }
.post-card:hover { background: var(--surface-raised); }
.post-card h3 { margin: 8px 0; }
.post-card p { color: var(--ink-muted); font-size: 16px; }
article.post { padding-block: 32px 72px; }
article.post header { margin-bottom: 32px; }
article.post header h1 { font-size: clamp(34px, 5.5vw, 54px); margin: 12px 0 16px; }
article.post header p { color: var(--ink-muted); font-size: 19px; }
.tldr { background: var(--tide-soft); border-radius: var(--r-md); padding: 20px 24px; margin: 24px 0 32px; }
.tldr strong { display: block; margin-bottom: 6px; }
.tldr ul { margin: 0; padding-left: 20px; }
.prose h2 { font-size: 30px; margin: 44px 0 14px; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--tide); color: var(--ink-muted); }
.note { background: var(--surface); border-radius: var(--r-md); padding: 18px 22px; margin: 24px 0; font-size: 15px; color: var(--ink-muted); }
.sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-muted); }
.sources ol { padding-left: 20px; }
.sources li { margin-bottom: 8px; overflow-wrap: anywhere; }
.app-cta { display: flex; gap: 20px; align-items: center; background: var(--surface); border-radius: var(--r-lg); padding: 24px; margin-top: 40px; }
.app-cta img { width: 96px; flex: none; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 14px; color: var(--ink-muted); }
footer .row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer a { color: var(--ink-muted); }

@media (max-width: 860px) {
  .hero, .grid3, .grid2, .price, .posts { grid-template-columns: 1fr; }
  .hero { padding-block: 24px 48px; gap: 24px; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .nav ul { gap: 16px; }
  .nav ul li.hide-sm { display: none; }
  .app-cta { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 5s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-8px); } }
}

/* SEO-Struktur: Brotkrumen, FAQ, verwandte Artikel, Selbsttest */
.crumbs { font-size: 14px; color: var(--ink-muted); padding-block: 0 8px; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.byline { font-size: 14px !important; margin-top: 12px; }
article .faq, section.faq { margin-top: 48px; }
article .faq h2, section.faq h2 { font-size: 26px; margin-bottom: 16px; }
.faq details { background: var(--surface); border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.faq details p { margin-top: 10px; color: var(--ink-muted); }
.related { margin-top: 48px; }
.related h2 { font-size: 26px; margin-bottom: 16px; }
.related .posts { grid-template-columns: 1fr; }
.foot-hubs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; }
.foot-hubs a { color: var(--ink); text-decoration: none; font-weight: 600; }
.test { display: grid; gap: 14px; }
.test fieldset { border: 0; margin: 0; padding: 18px 20px; background: var(--surface); border-radius: var(--r-md); min-width: 0; }
.test legend { font-weight: 600; font-size: 17px; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.test .opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.test label { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-raised); border-radius: var(--r-sm); padding: 8px 12px; cursor: pointer; font-size: 15px; }
.test label:has(input:checked) { background: var(--tide); color: var(--on-tide); }
.test input { accent-color: var(--tide); }
.test .btn { justify-self: start; border: 0; cursor: pointer; margin-top: 8px; }
.result { margin-top: 24px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border-left: 0; }
.result h2 { margin: 8px 0 10px; font-size: 30px; }
.result p { color: var(--ink-muted); margin-bottom: 10px; }
.result.ok { outline: 2px solid var(--tide); } .result.mid { outline: 2px solid var(--ember); } .result.high { outline: 2px solid var(--coral); }
