/* Lohngleich — Gestaltung. Schriften selbst gehostet (kein Google-Abruf, DSGVO). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/fraunces-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}

:root {
  --papier: #f8f6f1;
  --karte: #ffffff;
  --tinte: #142638;
  --tinte-weich: #43536a;
  --grau: #67748a;
  --rand: #e5dfd3;
  --rand-stark: #d3cbba;
  --akzent: #175e54;
  --akzent-dunkel: #0f473f;
  --akzent-hell: #e9f2ef;
  --messing: #b48a26;
  --messing-hell: #f6efdd;
  --rot: #b3261e;
  --rot-hell: #fbeceb;
  --gruen: #1e7d3f;
  --gruen-hell: #e9f4ec;
  --orange: #c46a11;
  --gelb: #fdf6e3;
  --schatten: 0 1px 2px rgba(20, 38, 56, 0.05), 0 10px 30px -12px rgba(20, 38, 56, 0.12);
  --schatten-gross: 0 2px 4px rgba(20, 38, 56, 0.06), 0 24px 60px -20px rgba(20, 38, 56, 0.22);
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--tinte);
  background: var(--papier);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--akzent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--akzent-dunkel); }
::selection { background: var(--messing-hell); }
:focus-visible { outline: 3px solid rgba(23, 94, 84, 0.45); outline-offset: 2px; border-radius: 4px; }

/* ---------- Kopf ---------- */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 241, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rand);
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
nav.main { display: flex; align-items: center; gap: 26px; height: 68px; }
nav.main .logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem;
  color: var(--tinte); text-decoration: none; letter-spacing: -0.01em;
}
nav.main .logo .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--tinte); color: var(--papier);
  font-family: var(--sans); font-weight: 700; font-size: 1.05rem;
  line-height: 1;
}
nav.main .logo span.g { color: var(--akzent); }
nav.main a.item { color: var(--tinte-weich); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; }
nav.main a.item:hover { color: var(--tinte); border-bottom-color: var(--messing); }
nav.main .spacer { flex: 1; }

/* Mobil-Menü (nur CSS) */
.mnav-knopf { display: none; }
@media (max-width: 860px) {
  nav.main { flex-wrap: wrap; height: auto; padding: 12px 0; row-gap: 10px; }
  nav.main .logo { margin-right: auto; }
  .mnav-knopf {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 38px; padding: 8px 10px; border: 1px solid var(--rand-stark);
    border-radius: 8px; background: var(--karte); cursor: pointer;
  }
  .mnav-knopf span { display: block; height: 2px; background: var(--tinte); border-radius: 2px; }
  #mnav { display: none; }
  #mnav:checked ~ .mgroup { display: flex; }
  .mgroup { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 4px; border-top: 1px solid var(--rand); }
  .mgroup a.item { padding: 10px 4px; border-bottom: 0; font-size: 1.02rem; }
  .mgroup form.inline { padding: 8px 0; }
  nav.main .spacer { display: none; }
}
@media (min-width: 861px) {
  .mgroup { display: contents; }
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-block;
  background: var(--akzent); color: #fff !important;
  text-decoration: none; text-align: center;
  padding: 11px 20px; border-radius: 10px; border: 0;
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 71, 63, 0.25);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--akzent-dunkel); transform: translateY(-1px); box-shadow: 0 4px 14px -4px rgba(15, 71, 63, 0.4); }
.btn:active { transform: translateY(0); }
.btn.sec { background: var(--karte); color: var(--tinte) !important; border: 1.5px solid var(--rand-stark); box-shadow: none; }
.btn.sec:hover { border-color: var(--tinte); background: var(--karte); box-shadow: var(--schatten); }
.btn.klein { padding: 7px 13px; font-size: 0.88rem; border-radius: 8px; }
.btn.rot { background: var(--rot); }
.btn.rot:hover { background: #8f1e17; }

/* ---------- Grundraster ---------- */
main { min-height: 60vh; padding: 40px 0 80px; }
h1, h2 { font-family: var(--serif); font-weight: 600; color: var(--tinte); letter-spacing: -0.015em; }
h1 { font-size: 2.3rem; line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: 1.6rem; line-height: 1.25; margin: 44px 0 14px; }
h3 { font-family: var(--sans); font-size: 1.06rem; font-weight: 650; color: var(--tinte); margin: 22px 0 6px; }
p.lead { font-size: 1.18rem; color: var(--tinte-weich); max-width: 720px; line-height: 1.55; }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 22px 0; }
.card {
  border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 22px 24px; background: var(--karte); box-shadow: var(--schatten);
}
.card h3 { margin-top: 0; }
.card.hell { background: var(--akzent-hell); border-color: #cfe2dc; box-shadow: none; }

.kpi { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; color: var(--tinte); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi.rot { color: var(--rot); }
.kpi.gruen { color: var(--gruen); }
.kpi-l { color: var(--grau); font-size: 0.88rem; margin-top: 4px; line-height: 1.4; }

/* Schritte */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 20px 0; }
.steps div {
  position: relative; padding: 20px 20px 20px 62px;
  border: 1px solid var(--rand); border-radius: var(--radius);
  background: var(--karte); box-shadow: var(--schatten); line-height: 1.5;
}
.steps div::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 18px; top: 19px; width: 30px; height: 30px;
  border-radius: 10px; background: var(--tinte); color: var(--papier);
  font-family: var(--serif); font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { font-weight: 650; }

/* ---------- Tabellen ---------- */
table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.95rem; background: var(--karte); border: 1px solid var(--rand); border-radius: 12px; overflow: hidden; box-shadow: var(--schatten); }
th, td { border-bottom: 1px solid var(--rand); padding: 10px 14px; text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: #f3f0e8; font-weight: 600; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--tinte-weich); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.flag { color: var(--rot); font-weight: 700; }
.ok { color: var(--gruen); font-weight: 700; }

/* ---------- Meldungen ---------- */
.note { background: var(--gelb); border: 1px solid #ecd9a0; padding: 12px 16px; border-radius: 10px; margin: 14px 0; }
.fehler { background: var(--rot-hell); border: 1px solid #f0b6b1; color: #7a1a13; padding: 12px 16px; border-radius: 10px; margin: 14px 0; }
.hinweis { background: var(--gruen-hell); border: 1px solid #bfe0cb; color: #14532d; padding: 12px 16px; border-radius: 10px; margin: 14px 0; }

/* ---------- Formulare ---------- */
form.f { max-width: 540px; }
form.f label { display: block; font-weight: 600; margin: 16px 0 5px; font-size: 0.95rem; }
form.f input[type=text], form.f input[type=email], form.f input[type=password], form.f input[type=number], form.f input[type=date], form.f select, form.f textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--rand-stark); border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: var(--karte); color: var(--tinte);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form.f input:focus, form.f select:focus, form.f textarea:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(23, 94, 84, 0.14); outline: none; }
form.f input[type=file] { margin: 6px 0; }
form.f .hint { color: var(--grau); font-size: 0.88rem; margin-top: 4px; }
form.f .check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-weight: 400; }
form.inline { display: inline; }

/* Schmale Formularseiten (Anmelden, Registrieren) */
.enge { max-width: 480px; margin: 0 auto; }
.enge .card { padding: 30px 32px; }
.enge h1 { font-size: 1.8rem; }

/* ---------- Preise ---------- */
.preise { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin: 28px 0; align-items: start; }
.preis {
  border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 26px; position: relative; background: var(--karte); box-shadow: var(--schatten);
}
.preis.top { border: 2px solid var(--akzent); box-shadow: var(--schatten-gross); }
.preis .tag {
  position: absolute; top: -13px; left: 22px;
  background: var(--akzent); color: #fff; font-size: 0.78rem;
  padding: 4px 12px; border-radius: 999px; font-weight: 600; letter-spacing: 0.02em;
}
.preis h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.preis .p { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--tinte); margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.preis .p small { font-family: var(--sans); font-size: 0.92rem; color: var(--grau); font-weight: 400; }
.preis ul { padding-left: 0; margin: 18px 0 20px; list-style: none; }
.preis li { margin: 8px 0; padding-left: 26px; position: relative; font-size: 0.95rem; }
.preis li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--akzent); font-weight: 700; }

/* ---------- Ampel, Balken, Maßnahmen ---------- */
.light { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: middle; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.light.green { background: var(--gruen); }
.light.orange { background: #e0891a; }
.light.red { background: var(--rot); }
.light.grey { background: #a9a9a9; }
.bar { height: 12px; background: #ece7db; border-radius: 999px; overflow: hidden; min-width: 120px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--akzent), #2b8a7c); border-radius: 999px; }
.measure { border-left: 4px solid var(--akzent); padding: 12px 16px; margin: 12px 0; background: var(--karte); border-radius: 0 10px 10px 0; box-shadow: var(--schatten); }
.measure.p1 { border-color: var(--rot); }
.measure .t { font-weight: 650; }

/* ---------- Fuß ---------- */
footer.bottom { border-top: 1px solid var(--rand); padding: 40px 0 44px; color: var(--grau); font-size: 0.92rem; background: #f2efe7; }
.fuss { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.fuss h4 { font-family: var(--sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tinte-weich); margin: 0 0 10px; }
.fuss a { display: block; color: var(--tinte-weich); text-decoration: none; margin: 6px 0; }
.fuss a:hover { color: var(--akzent); text-decoration: underline; }
.fuss .marke { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--tinte); margin-bottom: 8px; }
.fuss .marke .g { color: var(--akzent); }
.fuss p { margin: 6px 0; max-width: 340px; line-height: 1.5; }
.fuss-unten { border-top: 1px solid var(--rand); margin-top: 30px; padding-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 760px) { .fuss { grid-template-columns: 1fr 1fr; } }

/* ---------- Startseite ---------- */
.hero { padding: 44px 0 30px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 30px; } }
.hero h1 { font-size: 2.9rem; line-height: 1.12; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--akzent); }
@media (max-width: 720px) { .hero h1 { font-size: 2.1rem; } }
.hero .cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .cta .small { color: var(--grau); font-size: 0.9rem; flex-basis: 100%; }
.frist-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--messing-hell); border: 1px solid #e3d3a8; color: #6d5314;
  font-size: 0.85rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
}
.frist-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--messing); }

/* Berichts-Vorschau rechts im Hero — reines CSS, kein Bild */
.vorschau { position: relative; }
.vorschau .blatt {
  background: var(--karte); border: 1px solid var(--rand); border-radius: 16px;
  box-shadow: var(--schatten-gross); padding: 26px 28px;
  transform: rotate(1.2deg);
}
.vorschau .blatt2 {
  position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  background: #efece3; border: 1px solid var(--rand); border-radius: 16px;
  transform: rotate(-1.6deg);
}
.vorschau .kopf { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--tinte); padding-bottom: 10px; margin-bottom: 16px; }
.vorschau .kopf .t { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; }
.vorschau .kopf .j { font-size: 0.8rem; color: var(--grau); }
.vorschau .zeile { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--rand); font-size: 0.88rem; }
.vorschau .zeile .w { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.vorschau .zeile .w.gut { color: var(--gruen); }
.vorschau .zeile .w.schlecht { color: var(--rot); }
.vorschau .quart { margin-top: 14px; }
.vorschau .quart .ql { font-size: 0.78rem; color: var(--grau); margin-bottom: 6px; }
.vorschau .qbar { display: flex; height: 16px; border-radius: 6px; overflow: hidden; margin: 4px 0; }
.vorschau .qbar .f { background: var(--akzent); }
.vorschau .qbar .m { background: #c9c2b2; }
.vorschau .stempel {
  position: absolute; right: 18px; bottom: -14px;
  background: var(--akzent); color: #fff; font-size: 0.8rem; font-weight: 700;
  padding: 8px 14px; border-radius: 10px; transform: rotate(-3deg);
  box-shadow: 0 8px 20px -6px rgba(15, 71, 63, 0.5);
}

/* Vertrauenszeile */
.vertrauen { display: flex; gap: 12px 34px; flex-wrap: wrap; padding: 20px 0 6px; margin-top: 12px; border-top: 1px solid var(--rand); color: var(--tinte-weich); font-size: 0.92rem; }
.vertrauen span::before { content: "✓ "; color: var(--akzent); font-weight: 700; }

/* Abschluss-Band */
.band {
  margin-top: 56px; padding: 44px 40px; border-radius: 20px;
  background: linear-gradient(135deg, var(--tinte) 0%, #1d3a55 100%);
  color: #eef2f6; text-align: center; box-shadow: var(--schatten-gross);
}
.band h2, .band h3 { color: #fff; margin-top: 0; font-family: var(--serif); font-size: 1.7rem; }
.band p { color: #c3cfdb; max-width: 560px; margin: 10px auto 22px; }
.band .btn { background: #fff; color: var(--tinte) !important; }
.band .btn:hover { background: var(--papier); }

/* Abschnittsmarke: das Gleichheitszeichen */
.abschnitt { margin-top: 60px; }
.abschnitt .marke { font-family: var(--serif); color: var(--messing); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.1em; }
.abschnitt h2 { margin-top: 6px; }

/* ---------- Sonstiges ---------- */
.prose { max-width: 780px; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.4rem; margin-top: 36px; }
.prose table { font-size: 0.9rem; }
.prose img { max-width: 100%; }
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--rand); border-radius: 12px; padding: 0; margin: 10px 0; background: var(--karte); box-shadow: var(--schatten); }
.faq summary { cursor: pointer; font-weight: 600; padding: 15px 18px; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-52%); font-family: var(--serif); font-size: 1.4rem; color: var(--messing); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 15px; margin: 0; color: var(--tinte-weich); }
.klein { font-size: 0.88rem; color: var(--grau); }
.krumen { font-size: 0.85rem; color: var(--grau); margin-bottom: 14px; }
.krumen a { color: var(--grau); text-decoration: none; }
.krumen a:hover { color: var(--akzent); text-decoration: underline; }
.artikel-meta { margin: -6px 0 16px; }
dl.glossar dt { margin: 0; }
dl.glossar dd { margin: 0 0 6px; color: var(--tinte); }
.artikel-meta a { color: var(--grau); }
p.lead.kurz { border-left: 4px solid var(--messing); padding: 6px 0 6px 16px; margin: 0 0 22px; font-size: 1.08rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
pre.antwort { white-space: pre-wrap; background: var(--papier); border: 1px solid var(--rand); padding: 14px 16px; border-radius: 10px; font-family: inherit; font-size: 0.92rem; }
.artikelkarte { margin-bottom: 16px; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.artikelkarte:hover { box-shadow: var(--schatten-gross); transform: translateY(-2px); }
.artikelkarte h3 a { color: var(--tinte); text-decoration: none; font-family: var(--serif); font-size: 1.15rem; }
.artikelkarte h3 a:hover { color: var(--akzent); }

.einwilligung {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60;
  width: min(680px, calc(100% - 32px)); background: var(--karte); border: 1px solid var(--rand-stark);
  border-radius: 14px; box-shadow: var(--schatten-gross); padding: 16px 20px;
}
.einwilligung p { margin: 0 0 12px; font-size: 0.95rem; }
.tom { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 18px 0; }
.tom div { background: var(--karte); border: 1px solid var(--rand); border-radius: 12px; padding: 14px 16px; font-size: 0.95rem; }
.tom strong { display: block; margin-bottom: 4px; }
@media (max-width: 720px) {
  html { font-size: 16px; }
  .wrap { padding: 0 18px; }
  main { padding: 28px 0 60px; }
  .band { padding: 32px 22px; }
  table { display: block; overflow-x: auto; }
}
@media print {
  header.top, footer.bottom, .btn, .band { display: none !important; }
  body { background: #fff; }
}
