/* kleinhersteller.de — gemeinsames Stylesheet */

/* Schriften liegen lokal unter assets/fonts/ und werden vom eigenen Server
 * ausgeliefert. Bewusst kein Google-Fonts-CDN: das überträgt die IP-Adresse
 * der Besucher an einen Dritten. Wer die Schriften austauscht, lädt die
 * .woff2-Dateien dazu und ergänzt hier — nicht per <link> nachladen.
 *
 * Familjen Grotesk und Work Sans sind Variable Fonts: eine Datei je Subset
 * deckt den ganzen Gewichtsbereich ab. DM Mono ist statisch, daher je Gewicht
 * eine Datei. Subsets: latin und latin-ext, vietnamese wird nicht gebraucht.
 */

@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/familjen-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/familjen-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/work-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/work-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper:     #F4F3F0;
  --surface:   #FCFBFA;
  --sunken:    #EAE8E3;
  --ink:       #16191A;
  --ink-soft:  #575D5E;
  --ink-faint: #8A9091;
  --rule:      #D3D1CB;
  --rule-soft: #E4E2DD;

  --teal:      #0F5F5C;
  --teal-bg:   #DCEBEA;
  --hit:       #B35309;
  --hit-bg:    #F8E8D6;
  --offen:     #8A6A1F;
  --clear:     #2A6B3F;
  --clear-bg:  #DEEDE2;

  --f-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, Consolas, monospace;

  --wrap: 820px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #121414;
    --surface:   #1A1D1D;
    --sunken:    #222626;
    --ink:       #E8E9E7;
    --ink-soft:  #9EA5A5;
    --ink-faint: #6E7575;
    --rule:      #2F3434;
    --rule-soft: #242929;
    --teal:      #62B8B2;
    --teal-bg:   #14302F;
    --hit:       #E2985A;
    --hit-bg:    #34220F;
    --offen:     #C9A961;
    --clear:     #74B98A;
    --clear-bg:  #16301F;
  }
}

:root[data-theme="dark"] {
  --paper:     #121414;
  --surface:   #1A1D1D;
  --sunken:    #222626;
  --ink:       #E8E9E7;
  --ink-soft:  #9EA5A5;
  --ink-faint: #6E7575;
  --rule:      #2F3434;
  --rule-soft: #242929;
  --teal:      #62B8B2;
  --teal-bg:   #14302F;
  --hit:       #E2985A;
  --hit-bg:    #34220F;
  --offen:     #C9A961;
  --clear:     #74B98A;
  --clear-bg:  #16301F;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* ---------- Kopfzeile ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.brand .dot { color: var(--teal); }
.site-head nav {
  display: flex;
  gap: 20px;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}
.site-head nav a { color: var(--ink-soft); text-decoration: none; }
.site-head nav a:hover { color: var(--teal); }

/* ---------- Typografie ---------- */

.kicker {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 0 0 18px;
  text-wrap: balance;
}

h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0 0 10px;
  text-wrap: balance;
}

h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.006em;
  margin: 0 0 6px;
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 56ch; }
.col { max-width: 62ch; }

section { padding: 54px 0; border-top: 1px solid var(--rule); }
section.first { border-top: 0; padding-top: 56px; }

/* ---------- Schaltflächen ---------- */

.btn {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 14px 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.btn:hover { opacity: 0.86; text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }

/* Abgeschaltet, aber lesbar: Die Kaufschaltfläche wartet auf die Zustimmung
   zum sofortigen Beginn und soll dabei sichtbar bleiben, nicht verschwinden.
   Wer nicht sieht, was da wartet, kreuzt auch nichts an. */
.btn:disabled {
  background: transparent;
  color: var(--ink-faint);
  border-color: var(--rule);
  cursor: not-allowed;
}
.btn:disabled:hover { opacity: 1; }

.cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 26px; }
.cta-note { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-faint); }

/* ---------- Karten ---------- */

.cards { display: grid; gap: 12px; margin-top: 26px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--rule);
  padding: 18px 20px;
}
.card.hit { border-left-color: var(--hit); }
.card.ok { border-left-color: var(--clear); }
.card.info { border-left-color: var(--teal); }
.card p { font-size: 0.95rem; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .claim {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--hit);
  margin: 0 0 8px;
}
.card .basis {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px dashed var(--rule);
}

.stepnum {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 8px;
}

/* ---------- Schrittfolge ---------- */

.steps {
  list-style: none;
  counter-reset: schritt;
  margin: 26px 0 0;
  padding: 0;
  max-width: 62ch;
}
.steps li {
  counter-increment: schritt;
  position: relative;
  padding: 0 0 22px 50px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  background: var(--paper);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Verbindungslinie zum nächsten Schritt */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 4px;
  width: 1px;
  background: var(--rule);
}
.steps h3 {
  margin: 3px 0 5px;
  font-size: 1.05rem;
}
.steps p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Grenzen, flach statt Kasten ---------- */

.limits {
  max-width: 62ch;
  margin-top: 26px;
  border-top: 1px solid var(--rule-soft);
}
.limits > div {
  padding: 18px 0 19px;
  border-bottom: 1px solid var(--rule-soft);
}
.limits h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.limits p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 9px;
}
.limits p:last-child { margin-bottom: 0; }

/* ---------- Formular ---------- */

.form { max-width: 46rem; margin-top: 26px; }
.feld { display: block; margin-bottom: 18px; }
.feld label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.feld input,
.feld textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 10px 12px;
}
.feld textarea { resize: vertical; min-height: 9em; }
.feld input:focus-visible,
.feld textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.feld-hilfe {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 5px;
}
/* Honigtopf gegen Bots: fuer Menschen unsichtbar, fuer Vorleseprogramme
   ueber aria-hidden ausgeblendet. Nicht display:none — das faellt auf. */
.honig {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Hinweiskasten ---------- */

.note {
  background: var(--sunken);
  border-left: 3px solid var(--teal);
  padding: 17px 20px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.note b { color: var(--ink); }
.note.warn { border-left-color: var(--hit); }

/* ---------- Fusszeile ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  margin-top: 40px;
  padding: 26px 0 44px;
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  line-height: 1.8;
  color: var(--ink-faint);
}
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--teal); }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* § 356a Abs. 1 BGB: die Widerrufsfunktion „hervorgehoben“ und gut lesbar —
   deshalb nicht so blass wie die übrigen Fußzeilenlinks. */
.widerruf-link, .site-foot a.widerruf-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Rechtsseiten ---------- */

.legal { padding: 46px 0; }
.legal h2 { font-size: 1.25rem; margin-top: 34px; }
.legal h2:first-of-type { margin-top: 22px; }
/* Eine Ebene tiefer, seit der Abschnitt zum Aktionsplan drei Themen trennt:
   Beleg, Zahlung, Bestätigung. Deutlich kleiner als h2, damit die Gliederung
   auf einer langen Seite noch lesbar bleibt. */
.legal h3 { font-size: 1.02rem; margin-top: 26px; color: var(--ink-soft); }
.legal p, .legal li { font-size: 0.97rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 7px; }
/* Das AUSFÜLLEN-Schildchen auf den Rechtsseiten. Bewusst auf .legal begrenzt:
   Unbeschränkt traf die Klasse auch auf "card todo" im Ergebnis des Selbstchecks
   und machte daraus ein orangefarbenes Schild mitten in der Liste. */
.legal .todo {
  background: var(--hit-bg);
  border: 1px dashed var(--hit);
  color: var(--hit);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  padding: 3px 8px;
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 42px 0; }
}
