/* Tankblick — Webseite
   Farben aus der App: Tiefblau als Grund, Bernstein als Akzent. */

:root {
  --grund:        #2c4a63;
  --grund-tief:   #22394c;
  --bernstein:    #d97706;
  --bernstein-hell: #f3c98b;
  --text:         #1c2733;
  --text-leise:   #5b6b7c;
  --flaeche:      #ffffff;
  --flaeche-sanft:#f4f6f8;
  --linie:        #dde3e9;
  --breite:       62rem;
  --radius:       14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text:         #e7ebef;
    --text-leise:   #a3b0bd;
    --flaeche:      #16202b;
    --flaeche-sanft:#1c2836;
    --linie:        #2c3b4a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--flaeche);
  -webkit-text-size-adjust: 100%;
}

.mitte { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; }

a { color: #1b5e8c; text-decoration-thickness: 1px; text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) { a { color: var(--bernstein-hell); } }

h1, h2, h3 { line-height: 1.22; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 3rem 0 .75rem; }
h3 { font-size: 1.12rem; margin: 1.75rem 0 .4rem; }

p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin: .3rem 0; }

/* ── Kopf ──────────────────────────────────────────────────────────────── */

.kopf {
  background: var(--grund);
  color: #fff;
  border-bottom: 3px solid var(--bernstein);
}
.kopf .mitte {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem;
}
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.marke img { width: 44px; height: auto; display: block; }
.marke span { font-size: 1.28rem; font-weight: 600; letter-spacing: -0.02em; }

.navi { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.navi a { color: #d5e2ec; text-decoration: none; font-size: .97rem; }
.navi a:hover, .navi a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* ── Aufmacher ─────────────────────────────────────────────────────────── */

.aufmacher { background: var(--grund); color: #fff; padding: 3rem 0 3.5rem; }
.aufmacher .mitte { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 46rem) { .aufmacher .mitte { grid-template-columns: 1.15fr .85fr; } }
.aufmacher h1 { color: #fff; }
.aufmacher p { color: #cdd9e4; font-size: 1.1rem; max-width: 34rem; }
.aufmacher img { width: 100%; max-width: 300px; height: auto; margin: 0 auto; display: block; }

.preis {
  display: inline-block; margin-top: .5rem; padding: .5rem 1rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; font-size: .95rem; color: #fff;
}
.preis strong { color: var(--bernstein-hell); }

/* ── Bausteine ─────────────────────────────────────────────────────────── */

main { padding-bottom: 4rem; }

.karten { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 40rem) { .karten { grid-template-columns: 1fr 1fr; } }
.karte {
  background: var(--flaeche-sanft);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.karte h3 { margin-top: 0; }
.karte p:last-child { margin-bottom: 0; }

.hinweis {
  border-left: 4px solid var(--bernstein);
  background: var(--flaeche-sanft);
  padding: .9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.hinweis p:last-child { margin-bottom: 0; }

.bilder { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
@media (min-width: 40rem) { .bilder { grid-template-columns: repeat(4, 1fr); } }
.bilder figure { margin: 0; }
.bilder img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--linie); border-radius: 10px;
}
.bilder figcaption { font-size: .88rem; color: var(--text-leise); margin-top: .45rem; }

table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .96rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { color: var(--text-leise); font-weight: 600; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .92em;
  background: var(--flaeche-sanft);
  border: 1px solid var(--linie);
  border-radius: 5px;
  padding: .08em .35em;
}
pre {
  background: var(--flaeche-sanft); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: .9rem 1rem; overflow-x: auto;
}
pre code { background: none; border: 0; padding: 0; }

.schritte { counter-reset: schritt; list-style: none; padding-left: 0; }
.schritte > li {
  counter-increment: schritt;
  position: relative;
  padding-left: 2.6rem;
  margin: 1.1rem 0;
}
.schritte > li::before {
  content: counter(schritt);
  position: absolute; left: 0; top: .05rem;
  width: 1.85rem; height: 1.85rem;
  display: grid; place-items: center;
  background: var(--grund); color: #fff;
  border-radius: 50%; font-size: .92rem; font-weight: 600;
}

/* ── Fuß ───────────────────────────────────────────────────────────────── */

.fuss {
  background: var(--grund-tief); color: #b9c8d5;
  padding: 2rem 0; font-size: .93rem;
}
.fuss .mitte { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; }
.fuss a { color: #dbe6ee; }
.fuss .rechts { margin-left: auto; }

.stand { color: var(--text-leise); margin-top: -.35rem; }
