/* Zinsklar Website
   Reines CSS, keine externen Requests, keine Webfonts.
   Hell als Standard, Dunkelmodus ueber prefers-color-scheme. */

/* ---------- Tokens ---------- */

:root {
  --bg: #ffffff;
  --surface: #f6f8fc;
  --surface-2: #eef2f9;
  --border: #dde3ee;
  --border-strong: #c6d0e2;
  --text: #0d1526;
  --text-muted: #4c586e;
  --accent: #1a56db;
  --accent-hover: #1445b0;
  --accent-soft: #e8effd;
  --on-accent: #ffffff;
  --warn-bg: #fff8e8;
  --warn-border: #e6cf9a;
  --shadow: 0 1px 2px rgba(13, 21, 38, .06), 0 8px 24px rgba(13, 21, 38, .05);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1060px;
  --maxw-narrow: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b101b;
    --surface: #131a28;
    --surface-2: #1a2231;
    --border: #263041;
    --border-strong: #33405a;
    --text: #eaeef6;
    --text-muted: #a3aec2;
    --accent: #7ea6ff;
    --accent-hover: #a2beff;
    --accent-soft: #16233d;
    --on-accent: #0b101b;
    --warn-bg: #241f12;
    --warn-border: #5a4a24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

/* ---------- Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Lange deutsche Komposita und URLs duerfen umbrechen,
     sonst laeuft die Seite auf 320 px waagerecht ueber. */
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-weight: 650;
  /* Silbentrennung zuerst, harter Umbruch nur als letzte Rettung. */
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

@media (min-width: 720px) {
  h1 { font-size: 2.75rem; letter-spacing: -0.025em; }
  h2 { font-size: 1.875rem; }
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

code, .num {
  font-family: var(--mono);
  font-size: .9em;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding: 3rem 0; }

@media (min-width: 720px) {
  .section { padding: 4.5rem 0; }
}

.section--tint {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 20;
}
.skip-link:focus {
  left: 0;
  color: var(--on-accent);
}

/* ---------- Kopf ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 680;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--text); }

.mark { width: 30px; height: 30px; flex: none; display: block; }
.mark__bg { fill: var(--accent); }
.mark__line {
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mark__dot { fill: var(--on-accent); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  font-size: .95rem;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: .15rem 0;
}
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero { padding: 3rem 0 2.5rem; }

@media (min-width: 720px) {
  .hero { padding: 5rem 0 3.5rem; }
}

.hero__eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: .3rem .8rem;
  margin-bottom: 1.25rem;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 44rem;
}

@media (min-width: 720px) {
  .hero__lead { font-size: 1.28rem; }
  .hero h1 { max-width: 20ch; }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.badges li {
  font-size: .9rem;
  font-weight: 550;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .85rem;
}

.status-note {
  margin-top: 1.75rem;
  font-size: .95rem;
  color: var(--text-muted);
}

/* ---------- Karten ---------- */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.section--tint .card { background: var(--bg); }

.card h3 { margin-bottom: .4rem; }

.card p {
  color: var(--text-muted);
  font-size: .97rem;
}

.card__law {
  display: block;
  margin-top: .8rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .01em;
  color: var(--text-muted);
  opacity: .85;
}

/* ---------- Rechenweg ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .95rem 1.1rem .95rem 3.4rem;
  font-size: 1rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: .95rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps strong { font-weight: 620; }

.steps span {
  display: block;
  color: var(--text-muted);
  font-size: .92rem;
}

/* ---------- Tarife ---------- */

.plans {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

@media (min-width: 820px) {
  .plans { grid-template-columns: 1fr 1fr; }
}

.plan {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.plan--accent { border-color: var(--accent); }

.plan__price {
  font-size: 1.6rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  margin: 0 0 .2rem;
}

.plan__meta {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 1.1rem;
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.plan li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .97rem;
  color: var(--text);
}

.plan li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .52em;
  width: .55rem;
  height: .3rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Hinweiskasten ---------- */

.notice {
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 2rem 0 0;
}

.notice h2, .notice h3 {
  font-size: 1.05rem;
  margin-bottom: .45rem;
}

.notice p {
  font-size: .97rem;
  color: var(--text);
}

.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
}

.callout p { font-size: .97rem; }

/* ---------- Fliesstext der Rechtsseiten ---------- */

.page-head {
  padding: 2.75rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-head p {
  color: var(--text-muted);
  margin: .5rem 0 0;
}

/* Nur Langform, sonst ueberschreibt die Kurzform das seitliche
   Padding von .wrap und der Text klebt am Bildschirmrand. */
.prose {
  padding-top: 2.25rem;
  padding-bottom: 3.5rem;
}

.prose h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.prose h2:first-of-type { margin-top: 1rem; }

.prose h3 {
  font-size: 1.05rem;
  margin-top: 1.75rem;
}

.prose ul, .prose ol {
  margin: 0 0 1em;
  padding-left: 1.35rem;
}

.prose li { margin-bottom: .45rem; }

.prose dl { margin: 0 0 1em; }

.prose dt {
  font-weight: 620;
  margin-top: .9rem;
}

.prose dd {
  margin: .1rem 0 0;
  color: var(--text-muted);
}

.prose address {
  font-style: normal;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
}

.meta-line {
  font-size: .9rem;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */

.faq { margin-top: 1rem; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: .7rem;
}

.faq summary {
  cursor: pointer;
  padding: .9rem 1.1rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: .6rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
  flex: none;
}

.faq details[open] summary::before { content: "\2212"; }

.faq details > *:not(summary) {
  padding: 0 1.1rem;
}

.faq details > *:last-child { padding-bottom: 1.1rem; }

/* ---------- Fuss ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.25rem 0 3rem;
  font-size: .92rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }

.site-footer p { margin-bottom: .6rem; }

.site-footer p:last-child { margin-bottom: 0; }
