/*
  Gemeinsamer Stil für alle Seiten auf swapveg.de.

  WARUM EINE DATEI: Bis zum 20.08.2026 trug jede Seite ihren eigenen <style>-Block
  mit denselben zwölf Regeln. Beim Umstellen auf die eingetragene Marke hätte man
  sie sechsmal gleich ändern müssen — genau die Sorte Doppelpflege, an der in
  diesem Projekt schon die zweite Website-Kopie auseinandergelaufen ist.

  Seitenspezifisches bleibt im <style>-Block der jeweiligen Seite. Hier steht nur,
  was mehr als eine Seite braucht.

  DIE AKZENTFARBE #487018 ist aus der eingetragenen Wort-/Bildmarke gemessen
  (marke-schriftzug.png), NICHT die App-Themenfarbe #2D7A12. Neben dem Markenbild
  hätten sich zwei Grüntöne gebissen.

  SCHRIFTEN LIEGEN LOKAL unter fonts/ und werden ausdrücklich NICHT von Google
  geladen — sonst ginge bei jedem Seitenaufruf die IP-Adresse des Besuchers in die
  USA. Dafür steht font-src 'self' in .htaccess.
*/

/* ── Schriften ──────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/newsreader-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('fonts/newsreader-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pacifico-normal.woff2') format('woff2');
}

/* ── Werte ──────────────────────────────────────────────────────────────── */
:root {
  --gruen: #487018;
  --gruen-hell: #78A828;   /* die Blätter der Marke */
  --koralle: #B4711A;      /* Kennzeichnung „nur Smartes Kochbuch" */
  --grund: #F8F7F3;
  --flaeche: #FFFFFF;
  --text: #141E10;
  --text-2: #3E4C3A;
  --text-3: #4E5E4A;
  --leise: #A3AE9E;
  --linie: #DCE2D6;
  --rot: #A5201A;
  --serife: 'Newsreader', Georgia, 'Times New Roman', serif;
  --grotesk: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ── Grundgerüst ────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--grotesk);
  background: var(--grund);
  color: var(--text);
  line-height: 1.65;
  padding: 40px 20px 32px;
}
main { max-width: 760px; margin: 0 auto; }

/* ── Kopf mit der eingetragenen Marke ───────────────────────────────────── */
.header {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-bottom: 34px; padding-bottom: 20px;
  border-bottom: 1px solid var(--linie);
}
.header img { width: 124px; height: auto; display: block; }
.header h1 {
  font-family: var(--serife);
  font-weight: 300; font-size: 32px; line-height: 1.15;
  letter-spacing: -0.4px; color: var(--text);
}

/* ── Fließtext ──────────────────────────────────────────────────────────── */
h2 {
  font-family: var(--serife);
  font-weight: 400; font-size: 24px; line-height: 1.25;
  color: var(--text); margin: 34px 0 12px;
}
h3 { font-size: 15px; font-weight: 700; margin: 20px 0 6px; color: var(--text); }
p, ul, ol { margin-bottom: 12px; color: var(--text-2); }
ul, ol { padding-left: 24px; }
li { margin-bottom: 4px; }
strong { color: var(--text); }

a { color: var(--gruen); text-decoration: none; border-bottom: 1px solid rgba(72,112,24,0.3); }
a:hover, a:focus-visible { color: var(--text); border-bottom-color: var(--text); }

/* ── Hervorgehobene Absätze ─────────────────────────────────────────────── */
.note, .geltung {
  background: var(--flaeche);
  border: 1px solid var(--linie); border-left: 4px solid var(--gruen);
  padding: 14px 18px; border-radius: 0 10px 10px 0;
  font-size: 14.5px; margin: 16px 0;
}
.geltung { margin-bottom: 20px; }

/* Sprachumschalter der Rechtstexte (vier Fassungen je Dokument) */
.sprachen { margin: -8px 0 20px; font-size: 0.95rem; color: var(--text-2); }
.sprachen a { white-space: nowrap; }

/* App-spezifische Passagen. Die Beschriftung ist echter Text, kein reines
   Farbsignal — wer nicht farbsehen kann oder die Seite ausdruckt, muss die
   Zuordnung trotzdem erkennen. */
.nur {
  border: 1px solid var(--linie); border-left-width: 5px;
  background: var(--flaeche);
  padding: 14px 18px 6px; border-radius: 0 10px 10px 0; margin: 16px 0;
}
.nur-titel {
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 8px;
}
.nur-swapveg { border-left-color: var(--gruen); }
.nur-kochbuch { border-left-color: var(--koralle); }
.nur ul { margin-bottom: 10px; }

/* ── Tabellen ───────────────────────────────────────────────────────────── */
/* Breite Tabelle auf schmalen Geräten seitlich scrollen lassen, statt die
   Seite selbst waagerecht laufen zu lassen. */
.tabelle-rahmen { overflow-x: auto; margin: 14px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 10px; text-align: left; border: 1px solid var(--linie); vertical-align: top; color: var(--text-2); }
th { background: #EDF1E9; color: var(--text); font-weight: 600; }
.gilt-fuer { white-space: nowrap; font-weight: 600; color: var(--text); }

/* ── Formulare ──────────────────────────────────────────────────────────── */
label { display: block; font-weight: 600; margin: 20px 0 6px; color: var(--text); }
input[type=text], input[type=email], textarea, select {
  width: 100%; padding: 12px 14px; font: inherit; color: inherit;
  background: var(--flaeche); border: 1px solid #C6CFC3; border-radius: 10px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gruen); border-color: var(--gruen); }
textarea { min-height: 150px; resize: vertical; }
input.klein { max-width: 120px; }
.hint { font-size: 13px; color: var(--text-3); margin-top: 5px; }
.fehler { color: var(--rot); font-size: 14px; margin-top: 6px; }
button {
  margin-top: 24px; padding: 13px 28px; font: inherit; font-weight: 700;
  color: #fff; background: var(--gruen); border: 0; border-radius: 10px; cursor: pointer;
}
button:hover { background: #3A5C12; }

/* Auswahl mit grosser Klickflaeche — auf dem Telefon soll nicht danebengetippt
   werden, und bei einer Loeschung ist ein Fehlgriff nicht zurueckzuholen. */
.auswahl { display: grid; gap: 10px; margin-top: 6px; }
.auswahl label {
  display: flex; align-items: center; gap: 12px; font-weight: 500; margin: 0;
  background: var(--flaeche); border: 1px solid #C6CFC3; border-radius: 10px;
  padding: 14px 16px; cursor: pointer;
}
.auswahl label:hover { border-color: var(--gruen); }
.auswahl input[type=radio] { width: 18px; height: 18px; flex: none; }

/* Honeypot — fuer Menschen unsichtbar, fuer Bots ein Koeder. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Meldungen ──────────────────────────────────────────────────────────── */
.kasten { border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; font-size: 15px; }
.kasten.gut { background: #EDF4E7; border: 1px solid var(--gruen); }
.kasten.schlecht { background: #FBEAE9; border: 1px solid var(--rot); }
.kasten.info { background: #FBF6E8; border: 1px solid #C9A227; }

/* ── Fuss ───────────────────────────────────────────────────────────────── */
.meta {
  font-size: 13px; color: var(--leise);
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--linie);
}
.nav { padding-top: 26px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }

@media (max-width: 560px) {
  body { padding: 28px 16px 26px; }
  .header { gap: 14px; margin-bottom: 26px; }
  .header img { width: 104px; }
  .header h1 { font-size: 26px; }
  h2 { font-size: 21px; }
}
