/* Ruhe-Schicht für /ausbildung, Vorschlag A „hell bleiben“ (18.11.2026, live).
   Die Seite bleibt Sand und hell. Neu: eine Sandfläche statt zwei wechselnder Töne, die dunklen Abschnitte liegen als
   abgerundete Nacht-Inseln auf dem Sand statt die Seite quer zu teilen, Akzentwörter in Serifen-Kursiv, Eyebrows in
   Work Sans und Braun statt Mono und Türkis, warmes Licht und Knopf atmen im Takt der übrigen Seiten (4 s / 6 s),
   H2 dunkeln beim Scrollen Wort für Wort nach (js/ruhe.js). Aufbau, Copy, Karten, Tabellen und Kaufwege unverändert. */

/* ---------- eine Fläche ---------- */
/* --ab-dark: Nachtviolett der übrigen Website statt neutralem Fast-Schwarz (Fabian 18.11.: „mit dem Lila spielen, damit man kapiert, dass es zum Rest der Seite gehört“) */
main.ab { position: relative; isolation: isolate; background: var(--ab-bg); --ab-teal: #8A5A2B; --ab-dark: #14102a; --ab-ink: #1a1433; }
.ab .ab-sec, .ab .ab-sec--t { background: transparent; }

/* warme Lichter auf dem Sand, laufen über die Abschnittsgrenzen */
main.ab::before, main.ab::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  filter: blur(110px);
}
main.ab::before { top: 14%; right: -14%; width: 62%; height: 70rem; background: radial-gradient(closest-side, rgba(242,184,160,0.5), rgba(242,184,160,0)); }
main.ab::after { top: 54%; left: -18%; width: 66%; height: 80rem; background: radial-gradient(closest-side, rgba(233,199,154,0.6), rgba(233,199,154,0)); }
/* ein drittes, lavendelfarbenes Licht: der Sand bekommt einen Hauch vom Violett der übrigen Seiten */
.ab > .ab-sec:nth-of-type(2n+4):not(.ab-dk)::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  top: -10%; left: 8%; width: 46%; height: 34rem; filter: blur(110px);
  background: radial-gradient(closest-side, rgba(200,193,255,0.4), rgba(200,193,255,0));
}
.ab > .ab-sec:nth-of-type(4n+6):not(.ab-dk)::before { left: auto; right: 4%; }
.ab > .ab-sec:not(.ab-dk) { position: relative; }
@media (max-width: 767px) {
  main.ab::before, main.ab::after { width: 130%; filter: blur(80px); }
  main.ab::before { right: -50%; }
  main.ab::after { left: -55%; }
}

/* ---------- Hero und dunkle Abschnitte als Nacht-Inseln ---------- */
.ab .ab-hero { border-radius: 0 0 28px 28px; }
.ab .ab-hero, .ab-foot { background-color: #14102a; }
.ab .ab-sec.ab-dk {
  position: relative; overflow: hidden;
  width: calc(100% - 24px); max-width: 1240px; margin: 28px auto; border-radius: 26px;
  background: linear-gradient(160deg, #1d1640 0%, #14102a 55%, #14102a 100%);
}
.ab .ab-sec.ab-dk::before {
  content: ''; position: absolute; inset: -30% -10% auto auto; width: 70%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(233,199,154,0.2), rgba(233,199,154,0)); filter: blur(60px);
}
.ab .ab-sec.ab-dk > * { position: relative; }
@media (min-width: 900px) {
  .ab .ab-hero { border-radius: 0 0 40px 40px; }
  .ab .ab-sec.ab-dk { width: calc(100% - 64px); margin: 48px auto; border-radius: 36px; }
}

/* ---------- Schrift: Kursive als Akzent, Eyebrows ohne Mono und Türkis ---------- */
.ab .ab-acc { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.ab .ab-eb { font-family: 'Work Sans', system-ui, sans-serif; font-weight: 600; font-size: 12.5px; letter-spacing: 0.14em; color: var(--ab-acc); }
.ab .ab-hero .ab-eb, .ab .ab-dk .ab-eb, .ab .sp-audio .ab-eb { color: #E9C79A; }
/* im Hero dieselbe Größe wie vorher, damit der Knopf auf dem Handy im ersten Bildschirm bleibt */
.ab .ab-hero .ab-eb { font-size: 11.5px; }
.ab .ab-row--chk::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A5A2B' stroke-width='2.4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

/* ---------- Atem: Hero-Foto, Knopf im Hero, Licht der Inseln ---------- */
@media (prefers-reduced-motion: no-preference) {
  main.ab::before, main.ab::after { animation: raLicht 10s ease-in-out infinite; }
  .ab .ab-sec.ab-dk::before { animation: raInsel 10s ease-in-out infinite; }
  .ab > .ab-sec:not(.ab-dk)::before { animation: raLicht 10s ease-in-out infinite; }
  .ab .ab-hero picture { overflow: hidden; }
  .ab .ab-hero picture img { animation: raFoto 10s ease-in-out infinite; }
  .ab .ab-hero .ab-btn { animation: raKnopf 10s ease-in-out infinite; }
}
@keyframes raLicht { 0%, 100% { opacity: 0.6; transform: scale(1); } 40% { opacity: 1; transform: scale(1.06); } }
@keyframes raInsel { 0%, 100% { opacity: 0.55; } 40% { opacity: 1; } }
@keyframes raFoto { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.035); } }
@keyframes raKnopf { 0%, 100% { box-shadow: 0 0 0 0 rgba(233,199,154,0.4); } 40% { box-shadow: 0 0 0 12px rgba(233,199,154,0.1); } }

/* ---------- Überschriften dunkeln nach (js/ruhe.js setzt html.rh-on und --rh-o je Wort) ---------- */
.rh-on .ab .rh-w { opacity: var(--rh-o, 0.28); transition: opacity 0.3s linear; }

/* ---------- iPhone-Test 18.11.2026 ---------- */
/* Safari färbt den Bereich hinter seiner Leiste und beim Überscrollen mit der Seitenfarbe: oben und unten stand Sand
   um Kopfleiste und Footer. Die Grundfarbe ist deshalb Nachtviolett, der Sand kommt von main. */
html:has(main.ab):has(.rs-footer), html:has(main.ab):has(.rs-footer) body { background: #14102a; }
/* Audio-Karte in Nachtviolett wie die Inseln (stand in Fast-Schwarz) */
.ab .sp-audio { background: #14102a; border-color: #14102a; }
/* Handy: Hero-Foto flacher, damit der Knopf nicht unter Safaris Leiste rutscht */
@media (max-width: 1023px) { .ab .ab-hero--a picture img { height: clamp(170px, 46vw, 440px); } }
