/* ==========================================================================
   PEKiP-Einzelkurs – Sabine Max-Eder
   Zentrale Gestaltung für alle Seiten (index, impressum, datenschutz).

   Aufbau dieser Datei:
     1. Schrift (lokal eingebunden, DSGVO-freundlich)
     2. Farben & Grundwerte (hier zentral ändern!)
     3. Grundlagen
     4. Bausteine (Buttons, Container, Wellen, Punkte)
     5. Seitenbereiche (Kopf, Start, Angebot, Für wen, Über mich,
        Preise, Gutschein, Gruppe, Kontakt, Fußzeile)
     6. Unterseiten (Impressum / Datenschutz)
     7. Handy-Anpassungen
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Schrift
   Die Schrift "Nunito" wird von der eigenen Website geladen (Ordner /fonts),
   NICHT von Google. So werden keine Daten an Google übertragen.
   Fehlen die Dateien, greift automatisch eine ähnliche Systemschrift.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-v26-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-v26-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nunito-v26-latin-800.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/nunito-v26-latin-900.woff2") format("woff2");
}


/* --------------------------------------------------------------------------
   2. Farben & Grundwerte
   -------------------------------------------------------------------------- */
:root {
  --gelb: #F6C623;          /* PEKiP-Gelb, Hauptfarbe */
  --gelb-hell: #FAD95C;     /* Kreise hinter den Fotos */
  --creme: #FFF6D6;         /* helle Flächen, Karten */
  --weiss: #ffffff;
  --text: #2A2620;          /* fast Schwarz */
  --text-leise: #5C554A;    /* Fließtext zweitrangig */
  --linie: #B8AE96;

  /* Farben der bunten Punkte (wie PEKiP-Bälle) */
  --punkt-rot: #E5484D;
  --punkt-blau: #2F6FDB;
  --punkt-gruen: #2E9E5B;

  --schrift: "Nunito", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold",
             system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --breite: 1120px;         /* maximale Inhaltsbreite */
  --rund: 28px;             /* Ecken von Karten und Fotos */
  --schatten: 0 18px 40px rgba(42, 38, 32, 0.18);
}


/* --------------------------------------------------------------------------
   3. Grundlagen
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
  overflow-x: hidden;       /* gedrehte Fotos/Punkte erzeugen keinen Querscroll */
}

img { max-width: 100%; display: block; }

a { color: var(--text); }
a:hover { color: #000; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; hyphens: auto; overflow-wrap: break-word; }
h1 { font-weight: 900; }
h2 { font-weight: 900; font-size: 40px; }
h3 { font-weight: 800; font-size: 21px; }
p  { margin: 0 0 16px; }

.leise { color: var(--text-leise); }

/* Sichtbarer Fokusrahmen für Tastatur-Bedienung */
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }


/* --------------------------------------------------------------------------
   4. Bausteine
   -------------------------------------------------------------------------- */

/* Container: zentriert den Inhalt */
.container {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 24px;
}

/* Bereich mit Platz oben/unten */
.bereich { position: relative; padding: 48px 0 56px; }
.bereich--gelb  { background: var(--gelb); }
.bereich--creme { background: var(--creme); }
.bereich--weiss { background: var(--weiss); }

/* Buttons */
.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  background: var(--text);
  color: var(--weiss);
  transition: transform 0.15s ease;
}
.button:hover { color: var(--weiss); transform: translateY(-2px); }
.button--hell { background: var(--weiss); color: var(--text); }
.button--hell:hover { color: var(--text); }
.button--gelb { background: var(--gelb); color: var(--text); }
.button--gelb:hover { color: var(--text); }

.button-reihe { display: flex; flex-wrap: wrap; gap: 12px; }

/* Wellen-Übergang am Ende eines Bereichs.
   Die Farbe der Welle (fill) = Farbe des NÄCHSTEN Bereichs. */
.welle { display: block; width: 100%; height: 70px; }

/* Bunte Deko-Punkte (rein dekorativ, per style="…" positioniert) */
.punkt {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.punkt--rot   { background: var(--punkt-rot); }
.punkt--blau  { background: var(--punkt-blau); }
.punkt--gruen { background: var(--punkt-gruen); }
.punkt--weiss { background: var(--weiss); }
.punkt--gelb  { background: var(--gelb); }

/* Fotos: runde Ecken, leicht gedreht, weicher Schatten */
.foto {
  position: relative;
  border-radius: var(--rund);
  box-shadow: var(--schatten);
  object-fit: cover;
  height: auto;
}
.foto--rechts { transform: rotate(2.5deg); }
.foto--links  { transform: rotate(-2.5deg); }

/* Foto mit gelbem Kreis dahinter */
.foto-buehne {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.foto-buehne__kreis {
  position: absolute;
  width: 85%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--gelb-hell);
}
.foto-buehne__kreis--gelb { background: var(--gelb); }


/* --------------------------------------------------------------------------
   5. Seitenbereiche
   -------------------------------------------------------------------------- */

/* ---- Kopfzeile ---- */
.kopf { background: var(--gelb); }
.kopf__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.kopf__marke {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}
.kopf__marke img { height: 56px; width: auto; }
.menue {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-weight: 700;
  font-size: 16px;
}
.menue a { text-decoration: none; padding: 10px 0; }
.menue a:hover { text-decoration: underline; }

/* ---- Startbereich (Hero) ---- */
.start { background: var(--gelb); position: relative; }
.start__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 40px;
  position: relative;
}
.start__text  { flex: 1 1 460px; min-width: 0; }
.start__bild  { flex: 1 1 340px; min-width: 0; }
.start__bild .foto { width: 100%; max-width: 300px; aspect-ratio: 982 / 1602; }
.dachzeile {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.start h1 { font-size: 60px; line-height: 1.05; text-wrap: balance; }
/* Weißer "Textmarker" unter "bei euch zu Hause" */
.markiert {
  background: linear-gradient(transparent 62%, var(--weiss) 62%, var(--weiss) 92%, transparent 92%);
}
.start__einleitung { font-size: 21px; max-width: 34ch; margin-bottom: 32px; }

/* ---- Angebot ---- */
.angebot__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  margin-bottom: 56px;
}
.angebot__text { flex: 1 1 420px; min-width: 0; }
.angebot__text p { max-width: 58ch; }
.angebot__bild { flex: 0 1 360px; min-width: 0; position: relative; display: flex; justify-content: center; }
.angebot__bild .foto { width: 360px; aspect-ratio: 1 / 1; }

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.karte {
  background: var(--creme);
  border-radius: var(--rund);
  padding: 28px;
}
.karte p { margin: 0; font-size: 17px; color: var(--text-leise); }
.karte__symbol {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gelb);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.karte h3 { margin-bottom: 6px; }

/* ---- Für wen / Was steckt hinter PEKiP ---- */
.zweispaltig {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.zweispaltig > * { flex: 1 1 420px; min-width: 0; }
.infokasten {
  background: var(--weiss);
  border-radius: var(--rund);
  padding: 36px;
  transform: rotate(1deg);
}
.infokasten h2 { font-size: 32px; }
.infokasten p:last-child { margin-bottom: 0; }

/* ---- Über mich ---- */
.ueber {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
}
.ueber__bild { flex: 1 1 300px; min-width: 0; }
.ueber__bild .foto { width: 100%; max-width: 320px; aspect-ratio: 1122 / 1402; }
.ueber__text { flex: 2 1 480px; min-width: 0; }

.eigenschaften {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.eigenschaften li {
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  font-size: 16px;
}
/* abwechselnd gelb/creme und leicht schief */
.eigenschaften li:nth-child(odd)  { background: var(--gelb);  transform: rotate(-1.5deg); }
.eigenschaften li:nth-child(even) { background: var(--creme); transform: rotate(1.5deg); }

/* ---- Preise ---- */
.preise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.preis {
  background: var(--weiss);
  border-radius: var(--rund);
  padding: 32px;
}
.preis:nth-child(odd)  { transform: rotate(-1deg); }
.preis:nth-child(even) { transform: rotate(1deg); }
.preis h3 { margin-bottom: 4px; font-size: 22px; }
.preis p { margin: 0 0 12px; color: var(--text-leise); }
.preis__betrag { font-size: 52px; font-weight: 900; line-height: 1.1; color: var(--text) !important; margin: 0 !important; }
.preise__hinweis { margin: 32px 0 0; font-size: 20px; font-weight: 800; }
.preise__klein { margin: 8px 0 0; font-size: 17px; }

/* ---- Gutschein ---- */
.gutschein {
  position: relative;
  background: var(--text);
  color: var(--weiss);
  border-radius: var(--rund);
  padding: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  transform: rotate(-0.8deg);
}
.gutschein__inhalt { display: flex; align-items: center; gap: 24px; flex: 1 1 460px; min-width: 0; }
.gutschein__symbol {
  width: 72px; height: 72px; flex: none;
  border-radius: 50%;
  background: var(--gelb);
  display: flex; align-items: center; justify-content: center;
}
.gutschein h2 { font-size: 32px; margin-bottom: 6px; }
.gutschein p { margin: 0; color: #EDE6D3; }

/* ---- Lieber in der Gruppe ---- */
.gruppe {
  background: var(--creme);
  border-radius: var(--rund);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.gruppe > div { flex: 1 1 420px; min-width: 0; }
.gruppe h2 { font-size: 30px; margin-bottom: 8px; }
.gruppe p { margin: 0; color: var(--text-leise); }

/* ---- Kontakt ---- */
.kontakt {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.kontakt__text { flex: 1 1 320px; min-width: 0; }
.kontakt__wege { flex: 2 1 480px; min-width: 0; }
.kontakt__wege > p { font-weight: 700; margin-bottom: 12px; }

/* Drei große Mail-Buttons */
.mailkarten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.mailkarte {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--creme);
  border-radius: 22px;
  padding: 22px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.mailkarte:hover { background: var(--gelb); transform: translateY(-3px); }
.mailkarte strong { font-size: 19px; font-weight: 900; }
.mailkarte span { font-size: 15px; color: var(--text-leise); }
.mailkarte:hover span { color: var(--text); }

.kontakt__direkt {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-leise);
}
.kontakt__direkt a { font-weight: 800; }

/* ---- Fußzeile ---- */
.fuss { background: var(--text); color: var(--weiss); }
.fuss a { color: var(--weiss); }
.fuss .welle { background: var(--weiss); height: 60px; }
.fuss__innen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 40px;
  padding-top: 24px;
  padding-bottom: 48px;
  font-size: 16px;
}
.fuss__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 800; }


/* --------------------------------------------------------------------------
   6. Unterseiten (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.rechtstext {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.rechtstext h1 { font-size: 44px; margin-bottom: 32px; }
.rechtstext h2 { font-size: 24px; margin: 40px 0 12px; }
.rechtstext h3 { font-size: 19px; margin: 24px 0 8px; }
.rechtstext ul { padding-left: 22px; margin: 0 0 16px; }
.rechtstext li { margin-bottom: 4px; }
.rechtstext .stand { color: var(--text-leise); font-size: 16px; margin-top: 40px; }
.zurueck { display: inline-block; margin-bottom: 24px; font-weight: 800; }


/* --------------------------------------------------------------------------
   7. Handy-Anpassungen
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  body { font-size: 17px; }
  h2 { font-size: 32px; }
  .start h1 { font-size: 42px; }
  .start__einleitung { font-size: 19px; }
  .start__innen { gap: 32px; }
  .angebot__intro, .ueber { gap: 40px; }
  .kopf__marke img { height: 46px; }
  .infokasten, .gutschein, .gruppe { padding: 28px; }
  .gutschein__inhalt { flex-direction: column; align-items: flex-start; }
  .welle { height: 44px; }
  .rechtstext h1 { font-size: 28px; }

  /* Deko-Punkte in den großen Flächen auf dem Handy ausblenden,
     damit sie nicht über Text liegen */
  .start > .punkt,
  .bereich > .punkt { display: none; }
}

/* Wer reduzierte Bewegung eingestellt hat, bekommt keine Animationen */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .mailkarte { transition: none; }
}
