/* ==========================================================
   Zackto – Grundgestaltung für die Werkzeugseiten (Stand 2026-11-12)
   Richtung „Zeitung“: Papierweiß, Schwarz, Signalrot,
   Serifen-Überschriften, Linien statt Kästen.
   Schriften liegen selbst gehostet unter /fonts/ (CSP: font-src 'self').
   Fehlen die Dateien, greifen Georgia bzw. die Systemschrift.
   ========================================================== */

/* ---------- Schriften (selbst gehostet) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin.woff") format("woff");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff") format("woff");
  font-weight: 400 600; font-style: normal; font-display: swap;
}

/* ---------- Farben und Maße ---------- */
:root {
  --mehl: #FAFAF7;        /* Hintergrund */
  --mehl-hell: #FFFFFF;   /* Flächen, Formularfelder */
  --mehl-dunkel: #F0EFEA; /* Hover, Hinweiskästen */
  --tinte: #161616;       /* Text, Linien */
  --grau: #4A4A45;        /* Nebentext (Kontrast 6,5:1) */
  --roggen: #C8102E;      /* Akzent (Kontrast 6:1) */
  --roggen-dunkel: #B00D27;
  --linie-fein: #D9D8D2;
  --fehler: #9B2C1F;
  --ok: #2F5D3A;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --breite: 1160px;
  --rand: 32px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--mehl);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--tinte); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--roggen); }
:focus-visible { outline: 3px solid var(--roggen); outline-offset: 3px; border-radius: 3px; }
strong { font-weight: 600; }
.wrap { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.serif { font-family: var(--serif); font-weight: 400; }
.akzent { color: var(--roggen); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.site-header { padding: 26px 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinte); }
.marke svg { width: 30px; height: 30px; }
.marke span { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; letter-spacing: -.01em; }
.hauptmenu { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; }
.hauptmenu a { text-decoration: none; padding: 8px 0; }
.hauptmenu a:hover, .hauptmenu a[aria-current="page"] { text-decoration: underline; }
.hauptmenu .linkedin { border-bottom: 1.5px solid var(--tinte); }

/* ---------- Startseite: Einstieg ---------- */
.hero { border-bottom: 1.5px solid var(--tinte); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 40px; padding-bottom: 56px; }
.hero-text { flex: 1 1 520px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 80px); line-height: .98; letter-spacing: -.02em; }
.hero h1 em { color: var(--roggen); }
.hero .lead { margin-top: 26px; max-width: 520px; font-size: 18px; }
.hero .lead + .lead { margin-top: 12px; color: var(--grau); font-size: 16px; }
.illustration { flex: 0 1 400px; width: 100%; }
.illustration svg { width: 100%; height: auto; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 52px 0; }
.abschnitt + .abschnitt { padding-top: 8px; }
.abschnitt h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 42px); line-height: 1.1; margin-bottom: 22px; }
.abschnitt .einleitung { max-width: 640px; color: var(--grau); margin: -10px 0 24px; }

/* ---------- Werkzeuge ---------- */
.werkzeuge { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1.5px solid var(--tinte); list-style: none; }
.werkzeug { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px 0 30px; border-bottom: 1.5px solid var(--tinte); text-decoration: none; color: var(--tinte); }
.werkzeug:hover { color: var(--tinte); }
.werkzeug:hover .werkzeug-name { color: var(--roggen); }
.werkzeug .art { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--roggen); }
.werkzeug-name { font-family: var(--serif); font-size: 36px; line-height: 1.05; transition: color .2s ease; }
.werkzeug p { max-width: 460px; }
.werkzeug .weiter { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 15px; }
.werkzeug .weiter::after { content: " →"; }

/* ---------- Ratgeber ---------- */
.ratgeber { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; list-style: none; border-top: 1px solid var(--linie-fein); }
.ratgeber li { border-bottom: 1px solid var(--linie-fein); }
.ratgeber a { display: block; padding: 18px 0 20px; text-decoration: none; color: var(--tinte); }
.ratgeber h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.15; margin-bottom: 6px; }
.ratgeber a:hover h3 { color: var(--roggen); text-decoration: underline; text-decoration-thickness: 1px; }
.ratgeber p { font-size: 15px; color: var(--grau); line-height: 1.5; }

/* ---------- Werte, über mich ---------- */
.werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.werte h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.werte p { font-size: 15px; color: var(--grau); line-height: 1.55; }
.zweispaltig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 44px; padding-top: 36px; border-top: 1.5px solid var(--tinte); }
.zweispaltig h2 { font-size: 32px; margin-bottom: 12px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 18px; padding: 0 20px; border: 1.5px solid var(--tinte); border-radius: 999px; background: transparent; color: var(--tinte); font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease; }
.knopf:hover { background: var(--tinte); color: var(--mehl); }
.knopf.voll { background: var(--tinte); color: var(--mehl); }
.knopf.voll:hover { background: var(--roggen); border-color: var(--roggen); color: #fff; }
.knopf:disabled { opacity: .55; cursor: default; }

/* ---------- Unterseiten (Rechtstexte, Über mich, Kontakt) ---------- */
.seite { padding: 24px 0 64px; }
.seite .wrap { max-width: 820px; }
.seite-kopf { padding: 20px 0 26px; margin-bottom: 8px; border-bottom: 1.5px solid var(--tinte); }
.seite-kopf h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 58px); line-height: 1.02; letter-spacing: -.01em; }
.seite-kopf p { margin-top: 8px; color: var(--grau); font-size: 17px; }
.text section { padding: 26px 0; border-bottom: 1px solid var(--linie-fein); }
.text h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 30px 0 8px; }
.text section > h2:first-child, .text > h2:first-child { margin-top: 0; }
.text h3 { font-size: 17px; font-weight: 600; margin: 20px 0 4px; }
.text p { margin: 10px 0; }
.text ul { margin: 10px 0 14px 22px; }
.text li { margin: 5px 0; }
.text li::marker { color: var(--roggen); }
.text a { overflow-wrap: anywhere; }
.text small { color: var(--grau); }
.text .meta { margin-top: 10px; font-size: 15px; color: var(--grau); }
.text ol { margin: 10px 0 14px 22px; }
.text ol li { margin-bottom: 6px; }
.text em { font-style: italic; }
.tw { overflow-x: auto; margin: 14px 0; }
.text table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tw table.wide { min-width: 600px; }
.text th, .text td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linie-fein); vertical-align: top; }
.text th { font-weight: 600; color: var(--roggen); border-bottom: 1.5px solid var(--tinte); }
.text .src li { margin-bottom: 8px; font-size: 15px; }
.hinweis { margin: 18px 0; padding: 14px 18px; background: var(--mehl-dunkel); border-radius: 10px; font-size: 15px; }
.zurueck { display: inline-block; margin-top: 30px; font-weight: 600; }
.zurueck::before { content: "← "; }

/* ---------- Formular (Kontakt) ---------- */
.formular { display: grid; gap: 18px; margin-top: 22px; }
.formular label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.formular .opt { color: var(--grau); font-weight: 400; }
.formular input[type=text], .formular input[type=email], .formular textarea {
  width: 100%; padding: 12px 14px; background: var(--mehl-hell); color: var(--tinte);
  border: 1.5px solid var(--tinte); border-radius: 8px; font: inherit; line-height: 1.5;
}
.formular textarea { min-height: 170px; resize: vertical; }
.formular input:focus, .formular textarea:focus { outline: 3px solid var(--roggen); outline-offset: 1px; }
.formular .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 1.5; color: var(--grau); }
.formular .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--roggen); }
.formular .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular button { justify-self: start; margin-top: 0; }
.msg { display: none; padding: 12px 16px; border-radius: 8px; font-size: 15px; }
.msg.show { display: block; }
.msg.err { background: #F6E1DC; color: var(--fehler); border: 1px solid #E3B5AB; }
.msg.ok { background: #E1ECDF; color: var(--ok); border: 1px solid #B9CFB5; }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1.5px solid var(--tinte); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 28px; padding-top: 24px; padding-bottom: 40px; font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .klein { color: var(--grau); }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .ratgeber { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .werte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --rand: 18px; }
  body { font-size: 16px; }
  .site-header { padding: 18px 0; }
  .marke span { font-size: 30px; }
  .hero .wrap { padding-top: 20px; padding-bottom: 40px; gap: 28px; }
  .illustration { flex-basis: 100%; max-width: 340px; }
  .werkzeuge, .ratgeber, .werte, .zweispaltig { grid-template-columns: minmax(0, 1fr); }
  .zweispaltig { gap: 32px; }
  .werkzeug-name { font-size: 32px; }
  .abschnitt { padding: 40px 0; }
  .formular button { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media print {
  body { background: #fff; }
  .site-header nav, .site-footer nav, .illustration { display: none; }
}
