/* ki-oli.de – Stylesheet
   Warme Farben, große Schrift, hoher Kontrast, keine Fremdschriften. */

:root {
  --sand: #FBF5EC;
  --sand-dunkel: #F3E7D6;
  --terrakotta: #C4572E;
  --terrakotta-dunkel: #9E4222;
  --gelb: #F2B34A;
  --gelb-hell: #FCE6B8;
  --braun: #3A2A1F;
  --braun-hell: #6B5647;
  --weiss: #FFFFFF;
  --gruen: #5E7F4B;
  --schatten: 0 4px 18px rgba(58, 42, 31, 0.10);
  --radius: 18px;
  --maxbreite: 1080px;
  --textbreite: 760px;
}

* { box-sizing: border-box; }

html { font-size: 19px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--braun);
  background: var(--sand);
  line-height: 1.6;
}

/* Sprunglink für Tastaturnutzer */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--terrakotta); color: var(--weiss);
  padding: 0.6rem 1rem; border-radius: 0 0 12px 12px; z-index: 100;
}
.skip:focus { left: 1rem; }

a { color: var(--terrakotta-dunkel); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--terrakotta); }
:focus-visible { outline: 4px solid var(--gelb); outline-offset: 3px; }

/* Kopfbereich */
.kopf {
  background: var(--weiss);
  border-bottom: 4px solid var(--gelb);
}
.kopf-innen {
  max-width: var(--maxbreite); margin: 0 auto; padding: 0.9rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--braun); font-weight: 700; font-size: 1.3rem; }
.logo img, .logo svg { height: 66px; width: auto; }
.navi { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.navi a {
  text-decoration: none; padding: 0.55rem 1rem; border-radius: 999px;
  background: var(--sand); color: var(--braun); font-weight: 600;
}
.navi a:hover, .navi a:focus { background: var(--gelb-hell); }

/* Bühne auf der Startseite */
.buehne {
  background: linear-gradient(135deg, #F8D9A8 0%, #F2B34A 45%, #E58A4A 100%);
  color: var(--braun);
}
.buehne-innen {
  max-width: var(--maxbreite); margin: 0 auto; padding: 3.5rem 1.2rem 3rem;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.buehne h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 1rem; }
.buehne p { font-size: 1.2rem; max-width: 34rem; margin: 0 0 1.6rem; }
.buehne-bild { text-align: center; }
.buehne-bild svg { width: 100%; max-width: 360px; height: auto; }
.buehne-bild img { width: 100%; max-width: 360px; height: auto; border-radius: var(--radius); box-shadow: var(--schatten); }

.knopf {
  display: inline-block; background: var(--terrakotta); color: var(--weiss);
  text-decoration: none; font-weight: 700; font-size: 1.15rem;
  padding: 1rem 1.7rem; border-radius: 999px; box-shadow: var(--schatten);
  border: 0; cursor: pointer; font-family: inherit;
}
.knopf:hover, .knopf:focus { background: var(--terrakotta-dunkel); color: var(--weiss); }
.knopf.zweit { background: var(--weiss); color: var(--terrakotta-dunkel); border: 3px solid var(--terrakotta); }
.knopf.zweit:hover, .knopf.zweit:focus { background: var(--gelb-hell); }

/* Kacheln */
.abschnitt { max-width: var(--maxbreite); margin: 0 auto; padding: 3rem 1.2rem; }
.abschnitt h2 { font-size: 2rem; margin: 0 0 0.4rem; }
.abschnitt .unter { color: var(--braun-hell); font-size: 1.1rem; margin: 0 0 2rem; }

.kacheln {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.kachel {
  background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kachel:hover, .kachel:focus-within { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(58,42,31,0.16); }
.kachel a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.kachel img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--sand-dunkel); }
.kachel-text { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.kachel-nr {
  display: inline-block; background: var(--gelb-hell); color: var(--terrakotta-dunkel);
  font-weight: 700; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.95rem; width: max-content;
}
.kachel h3 { margin: 0.2rem 0 0; font-size: 1.3rem; line-height: 1.3; }
.kachel p { margin: 0; color: var(--braun-hell); font-size: 1rem; flex: 1; }
.kachel-meta { font-size: 0.9rem; color: var(--braun-hell); display: flex; gap: 0.8rem; margin-top: 0.4rem; }
.kachel-weiter { color: var(--terrakotta-dunkel); font-weight: 700; margin-top: 0.4rem; }

/* Infoblöcke Startseite */
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.karte { background: var(--weiss); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--schatten); }
.karte h2 { font-size: 1.6rem; margin-top: 0; }
.platzhalter {
  background: var(--gelb-hell); border: 2px dashed var(--terrakotta); border-radius: 12px;
  padding: 0.9rem 1.1rem; color: var(--terrakotta-dunkel); font-weight: 600;
}
.karte .foto-autor {
  display: block; width: 150px; height: 150px; object-fit: cover; object-position: center 20%;
  border-radius: 50%; box-shadow: var(--schatten); margin: 0 auto 1.2rem; border: 4px solid var(--sand);
}

/* Kapitelseite */
.fortschritt { max-width: var(--textbreite); margin: 0 auto; padding: 1.4rem 1.2rem 0; }
.fortschritt-text { font-weight: 700; color: var(--terrakotta-dunkel); margin: 0 0 0.4rem; }
.balken { height: 12px; background: var(--sand-dunkel); border-radius: 999px; overflow: hidden; }
.balken span { display: block; height: 100%; background: linear-gradient(90deg, var(--gelb), var(--terrakotta)); }

.inhalt { max-width: var(--textbreite); margin: 0 auto; padding: 1rem 1.2rem 3rem; }
.inhalt h1 { font-size: 2.3rem; line-height: 1.2; margin: 0.8rem 0 1.4rem; }
.inhalt h2 { font-size: 1.65rem; margin: 2.4rem 0 0.8rem; padding-top: 0.4rem; border-top: 3px solid var(--gelb-hell); }
.inhalt h3 { font-size: 1.25rem; margin: 1.6rem 0 0.5rem; }
.inhalt p { margin: 0 0 1.1rem; }
.inhalt section:first-of-type h2 { border-top: 0; }

.inhalt ol.schritte { counter-reset: schritt; list-style: none; padding: 0; margin: 0 0 1.4rem; }
.inhalt ol.schritte li {
  counter-increment: schritt; position: relative; padding: 0.9rem 1rem 0.9rem 4.2rem;
  background: var(--weiss); border-radius: 14px; margin-bottom: 0.7rem; box-shadow: var(--schatten);
}
.inhalt ol.schritte li::before {
  content: counter(schritt); position: absolute; left: 1rem; top: 0.85rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--terrakotta); color: var(--weiss);
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}

.kopierbox {
  background: var(--weiss); border-left: 6px solid var(--gelb); border-radius: 12px;
  padding: 1rem 1.2rem; margin: 0 0 1.3rem; box-shadow: var(--schatten);
}
.kopierbox p { margin: 0 0 0.6rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.kopierbox p:last-of-type { margin-bottom: 0.8rem; }
.kopieren {
  background: var(--gelb-hell); color: var(--terrakotta-dunkel); border: 2px solid var(--terrakotta);
  border-radius: 999px; padding: 0.5rem 1.1rem; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit;
}
.kopieren:hover, .kopieren:focus { background: var(--terrakotta); color: var(--weiss); }

section.hilfe { background: var(--gelb-hell); border-radius: var(--radius); padding: 1.2rem 1.5rem 0.6rem; margin-top: 2.4rem; }
section.hilfe h2 { border-top: 0; margin-top: 0; }
section.hilfe p strong { display: block; margin-bottom: 0.2rem; color: var(--terrakotta-dunkel); }

section.andere { background: var(--weiss); border: 3px solid var(--sand-dunkel); border-radius: var(--radius); padding: 1rem 1.5rem 0.4rem; margin-top: 2.4rem; }
section.andere h2 { border-top: 0; margin-top: 0; font-size: 1.3rem; }

section.zusammenfassung { background: var(--weiss); border-radius: var(--radius); padding: 1.2rem 1.5rem 0.4rem; margin-top: 2.4rem; box-shadow: var(--schatten); }
section.zusammenfassung h2 { border-top: 0; margin-top: 0; }

mark.pruefen { background: #FFE08A; color: var(--braun); padding: 0 0.3rem; border-radius: 4px; font-weight: 600; }

.kapitel-navi {
  display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  max-width: var(--textbreite); margin: 0 auto; padding: 0 1.2rem 3rem;
}
.kapitel-navi a { flex: 1; text-align: center; min-width: 180px; }

/* Rechtliche Seiten */
.inhalt.recht h2 { border-top: 0; font-size: 1.4rem; }
.hinweis { background: var(--gelb-hell); border-radius: 12px; padding: 1rem 1.2rem; margin: 1rem 0 1.6rem; }

/* Preistabelle Einzelkurse */
.preise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin: 1.6rem 0 2rem; }
.preis-karte { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1.3rem 1.4rem; }
.preis-karte .betrag { font-size: 1.8rem; font-weight: 800; color: var(--terrakotta-dunkel); margin: 0.3rem 0; }
.preis-karte .dauer { font-weight: 700; margin: 0; }
.preis-karte .wer { color: var(--braun-hell); margin: 0; }

/* Formular */
.formular { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1.8rem 2rem; margin: 1.6rem 0; max-width: var(--textbreite); }
.formular label { display: block; font-weight: 700; margin: 1.1rem 0 0.4rem; }
.formular label:first-of-type { margin-top: 0; }
.formular input[type="text"], .formular input[type="email"], .formular select, .formular textarea {
  width: 100%; font-family: inherit; font-size: 1rem; padding: 0.7rem 0.9rem; border: 2px solid var(--sand-dunkel);
  border-radius: 10px; background: var(--sand); color: var(--braun); box-sizing: border-box;
}
.formular input:focus, .formular select:focus, .formular textarea:focus { border-color: var(--terrakotta); outline: none; }
.formular textarea { min-height: 140px; resize: vertical; }
.formular .pflicht { color: var(--terrakotta-dunkel); }
.formular .absenden { margin-top: 1.4rem; }
.formular-hinweis { color: var(--braun-hell); font-size: 0.95rem; margin-top: 0.6rem; }
.website-feld { position: absolute; left: -9999px; }

/* Fuß */
.fuss { background: var(--braun); color: #EFE3D3; margin-top: 2rem; }
.fuss-innen { max-width: var(--maxbreite); margin: 0 auto; padding: 2rem 1.2rem; display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; font-size: 0.95rem; }
.fuss a { color: var(--gelb); }
.fuss ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.fuss p { margin: 0 0 0.6rem; }

@media (max-width: 800px) {
  html { font-size: 18px; }
  .buehne-innen { grid-template-columns: 1fr; text-align: center; padding: 2.5rem 1.2rem; }
  .buehne p { margin-left: auto; margin-right: auto; }
  .buehne h1 { font-size: 2.1rem; }
  .zweispaltig, .fuss-innen { grid-template-columns: 1fr; }
}

@media print {
  .kopf, .fuss, .kapitel-navi, .kopieren, .skip { display: none; }
  body { background: #fff; }
}

/* Cookie-Consent-Banner (Google Analytics) – als oberste Leiste vor dem Seiteninhalt */
.cookie-banner {
  position: relative;
  z-index: 9999;
  background: #C4572E;
  padding: 0.95rem 1.4rem;
  box-shadow: 0 2px 10px rgba(58, 42, 31, 0.25);
  animation: cookie-banner-rein 0.35s ease-out;
}
.cookie-banner-innen {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner-text {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1 1 340px;
}
.cookie-banner-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.cookie-banner p {
  margin: 0;
  color: #FBF5EC;
  font-size: 0.95rem;
  line-height: 1.5;
}
.cookie-banner a {
  color: #FBF5EC;
  text-decoration: underline;
  font-weight: 600;
}
.cookie-banner-buttons {
  display: flex;
  gap: 0.7rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 2px solid #FBF5EC;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cookie-btn:hover {
  transform: translateY(-1px);
}
.cookie-btn-zustimmen {
  background: #FBF5EC;
  color: #C4572E;
}
.cookie-btn-zustimmen:hover {
  background: #F2B34A;
  border-color: #F2B34A;
}
.cookie-btn-ablehnen {
  background: transparent;
  color: #FBF5EC;
}
.cookie-btn-ablehnen:hover {
  background: rgba(251, 245, 236, 0.15);
}
@keyframes cookie-banner-rein {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  .cookie-banner-innen { flex-direction: column; align-items: stretch; }
  .cookie-banner-buttons { justify-content: flex-end; }
}

/* ===== Schriftgröße (Barrierefreiheit) ===== */
html.schrift-groesser { font-size: 22px; }
html.schrift-am-groessten { font-size: 25px; }

.schriftgroesse { display: flex; align-items: center; gap: 0.4rem; }
.schriftgroesse button {
  background: var(--sand); border: 2px solid var(--sand-dunkel); border-radius: 8px;
  font-weight: 800; cursor: pointer; font-family: inherit; color: var(--braun);
  width: 2.5rem; height: 2.5rem; font-size: 0.95rem; line-height: 1;
}
.schriftgroesse button:hover, .schriftgroesse button:focus { background: var(--gelb-hell); border-color: var(--terrakotta); }

/* ===== Gesamtfortschritt & gelesene Kapitel ===== */
.gesamtfortschritt { max-width: 460px; margin: 0 0 2rem; }
.gesamtfortschritt-text { font-weight: 700; color: var(--terrakotta-dunkel); margin: 0 0 0.5rem; }

.kachel { position: relative; }
.kachel-check {
  display: none; position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--gruen); color: var(--weiss);
  align-items: center; justify-content: center; font-weight: 800; box-shadow: var(--schatten); font-size: 1.1rem;
}
.kachel.gelesen .kachel-check { display: flex; }

/* ===== FAQ-Akkordeon ===== */
.fragen-liste { display: flex; flex-direction: column; gap: 0.9rem; margin: 0; }
.frage { background: var(--weiss); border-radius: 14px; box-shadow: var(--schatten); padding: 0 1.4rem; }
.frage summary {
  cursor: pointer; font-weight: 700; padding: 1.1rem 0; font-size: 1.12rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after { content: "+"; font-size: 1.6rem; color: var(--terrakotta); flex-shrink: 0; line-height: 1; }
.frage[open] summary::after { content: "–"; }
.frage p { margin: 0 0 1.2rem; color: var(--braun-hell); }

/* ===== Rückmeldungen ===== */
.stimmen-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.stimme-karte {
  background: linear-gradient(135deg, #F8D9A8 0%, #F2B34A 45%, #E58A4A 100%);
  border-radius: var(--radius); box-shadow: var(--schatten); padding: 1.8rem 1.7rem 1.6rem; position: relative;
  color: var(--braun);
}
.stimme-karte::before {
  content: "„"; position: absolute; top: 0.2rem; left: 1.2rem; font-family: Georgia, "Times New Roman", serif;
  font-size: 3.6rem; font-weight: 700; color: rgba(58, 42, 31, 0.25); line-height: 1;
}
.stimme-karte p:not(.stimme-wer) {
  margin: 1.6rem 0 0.8rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; position: relative;
}
.stimme-wer { margin: 0; font-weight: 800; color: var(--terrakotta-dunkel); font-size: 0.95rem; }
