/* Zeichenfabrik -- Kursdetailseite, sektionsspezifische Stile. */
/* .breadcrumb* wurde nach basis.css verschoben (jetzt auch vom Buchungsformular genutzt). */

/* ---- Hero -- oben durch die Breadcrumb-Trennlinie, unten durch die eigene begrenzt ---- */
.detail-hero {
  display: grid;
  gap: 24px;
  border-bottom: 1px solid var(--farbe-rand);
}
.detail-hero-pad { padding: 32px 24px; display: flex; flex-direction: column; justify-content: center; }
.detail-badges { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.detail-hero h1 { letter-spacing: -0.02em; }
.detail-untertitel { margin: 22px 0 0; font-size: 19px; line-height: 1.55; color: #4A463F; max-width: 30em; }
.detail-meta-zeile { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; font-size: 14px; }
.detail-meta-label {
  font-family: var(--schrift-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A8377;
  margin: 0 0 3px;
}
.detail-meta-wert { margin: 0; font-weight: 700; }
.detail-hero-bild { position: relative; min-height: 260px; }
.detail-hero-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 600px) { .detail-hero h1 { font-size: 50px; } }
@media (min-width: 1024px) {
  .detail-hero { grid-template-columns: 1.05fr 0.95fr; gap: 0; }
  .detail-hero-pad { padding: 56px 56px 52px; }
  /* Trennlinie nur in der Zwei-Spalten-Ansicht -- auf schmalen Bildschirmen wirkte der
     border-left als 1px-Strich am linken Bildrand (Abnahme R2 K1/M5). */
  .detail-hero-bild { min-height: 440px; border-left: 1px solid var(--farbe-rand); }
}

/* ---- Body: Hauptspalte + Preisbox ---- */
.detail-body-sektion { border-bottom: 1px solid var(--farbe-rand); }
.detail-koerper { display: grid; grid-template-columns: 1fr; }
.detail-hauptspalte { padding: 32px 24px; }
.detail-abschnitt { margin-bottom: 40px; }
.detail-label {
  font-family: var(--schrift-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7C766B;
  margin: 0 0 12px;
}
.detail-label--termine { margin-bottom: 14px; }
.detail-inhalt-text { font-size: 18px; line-height: 1.7; color: #37342D; max-width: 36em; }
.detail-inhalt-text p { margin: 0 0 40px; }
.detail-inhalt-text :is(h1, h2, h3) { margin: 1.4em 0 0.5em; font-size: 1.2em; }
.detail-inhalt-text--material { font-size: 16px; line-height: 1.65; }
.detail-inhalt-text--material p { margin: 0 0 16px; }

.lernpunkte-liste { list-style: none; margin: 0 0 44px; padding: 0; display: grid; gap: 14px 28px; max-width: 44em; }
.lernpunkte-liste li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid #EFECE5;
  padding-top: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: #37342D;
}
.lernpunkt-pfeil { color: var(--farbe-teal); flex: 0 0 auto; display: inline-flex; margin-top: 2px; }
@media (min-width: 700px) { .lernpunkte-liste { grid-template-columns: 1fr 1fr; } }

.material-status { font-weight: 700; margin: 0 0 10px; }

/* ---- Termine ---- */
.termin-zeile { border: 1px solid var(--farbe-rand); background: #fff; max-width: 44em; margin-bottom: 12px; }
.termin-zeile[role="radio"] { cursor: pointer; }
.termin-zeile[role="radio"]:focus-visible { outline: 2px solid var(--farbe-teal); outline-offset: 2px; }
.termin-zeile.aktiv { border-color: var(--farbe-teal); background: rgba(177, 206, 210, 0.35); }
.termin-kopfzeile { display: flex; align-items: center; gap: 16px; padding: 16px 18px; flex-wrap: wrap; }
.termin-wochentag-badge {
  width: 46px;
  height: 46px;
  background: var(--farbe-teal-hell);
  color: #22403F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex: 0 0 auto;
}
.termin-info { flex: 1; min-width: 140px; }
.termin-zeit { font-weight: 700; font-size: 16px; margin: 0; }
.termin-meta { font-size: 13px; color: #6B665E; margin: 2px 0 0; }
.termin-frei { font-family: var(--schrift-mono); font-size: 11px; color: #8A8377; white-space: nowrap; margin-right: 4px; }
.termin-ausgebucht { color: var(--farbe-terrakotta); font-weight: 700; }
.termin-buchen-btn {
  border: none;
  background: var(--farbe-teal);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 15px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: filter 0.15s ease;
}
.termin-buchen-btn:not([disabled]):hover { filter: brightness(1.12); }
.termin-buchen-btn[disabled] { cursor: default; opacity: 0.92; }

.termin-kurstage summary {
  list-style: none;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--farbe-creme);
  border-top: 1px solid #EFECE5;
  padding: 11px 18px;
  font-family: var(--schrift-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--farbe-teal);
}
.termin-kurstage summary::-webkit-details-marker { display: none; }
.termin-kurstage-label-aus { display: none; }
.termin-kurstage[open] .termin-kurstage-label-an { display: none; }
.termin-kurstage[open] .termin-kurstage-label-aus { display: inline; }
.termin-chevron { display: inline-block; transition: transform 0.18s ease; }
.termin-kurstage[open] .termin-chevron { transform: rotate(180deg); }
.termin-kurstage-liste { border-top: 1px solid #EFECE5; padding: 6px 18px 14px; }
.termin-kurstag-zeile {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #F1EEE8;
}
.termin-kurstag-zeile:last-child { border-bottom: none; }
.termin-kurstag-nr { font-family: var(--schrift-mono); font-size: 11px; color: #B1936B; width: 34px; flex: 0 0 auto; }
.termin-kurstag-datum { flex: 1; font-size: 14px; font-weight: 600; color: #37342D; }
.termin-kurstag-zeit { font-size: 14px; color: #37342D; white-space: nowrap; }

/* ---- Testimonial -- weiße Karte mit Schatten, leicht gedreht ---- */
.testimonial-karte {
  margin: 52px 0 12px;
  position: relative;
  background: #fff;
  padding: 38px 40px 32px;
  max-width: 39em;
  transform: rotate(-0.6deg);
  box-shadow: 0 24px 60px -20px rgba(20, 15, 10, 0.32), 0 6px 18px -8px rgba(20, 15, 10, 0.14);
}
.testimonial-anfuehrungszeichen {
  position: absolute;
  top: 14px; left: 30px;
  font-family: var(--schrift-hand);
  font-size: 74px;
  line-height: 0.4;
  color: var(--farbe-teal-hell);
  pointer-events: none;
}
.testimonial-label {
  position: relative;
  font-family: var(--schrift-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8A8377;
  margin: 0 0 14px;
}
.testimonial-karte blockquote { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 500; color: #211C14; }
.testimonial-karte figcaption { margin-top: 20px; display: flex; align-items: center; gap: 11px; font-size: 13px; color: #6B665E; }
.testimonial-strich { width: 28px; height: 2px; background: var(--farbe-terrakotta); flex: 0 0 auto; }

/* ---- Preisbox (Sidebar) ---- */
.detail-sidebar { padding: 28px 24px; background: #F4F1EA; }
.sidebar-preis-label {
  font-family: var(--schrift-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A8377;
  margin: 0 0 6px;
}
.sidebar-preis { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin: 0; }
.sidebar-preis-hinweis { font-size: 12px; color: #8A8377; margin: 6px 0 0; }
.sidebar-kennzahlen {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid #E1DCD1;
  border-bottom: 1px solid #E1DCD1;
  font-size: 14px;
}
.sidebar-kennzahlen div { display: flex; justify-content: space-between; }
.sidebar-kennzahlen span:first-child { color: #6B665E; }
.sidebar-kennzahlen span:last-child { font-weight: 600; }
.sidebar-fussnote { font-size: 12px; color: #8A8377; text-align: center; margin: 12px 0 0; line-height: 1.5; }
/* FAQ-Hinweis unter der Buchungsbox (wie in der Design-Vorlage) -- Trennlinie darüber,
   Fragezeichen-Icon + Petrol-Link zur FAQ-Seite. */
.sidebar-faq-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--farbe-rand);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--farbe-teal);
}
.sidebar-faq-link .icon { width: 15px; height: 15px; }
.sidebar-faq-link:hover { color: #2b4e54; }

@media (min-width: 1024px) {
  .detail-koerper { grid-template-columns: 1fr 360px; }
  .detail-hauptspalte { padding: 52px 56px 60px; border-right: 1px solid var(--farbe-rand); }
  .detail-sidebar { position: sticky; top: 78px; align-self: start; padding: 34px 28px; }
}

/* ---- Weitere Kurse ---- */
.detail-weitere { padding: 32px 24px 56px; border-bottom: 1px solid var(--farbe-rand); }
.detail-weitere h2 { margin: 0 0 28px; font-size: 28px; }
.detail-weitere .kurs-karten { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .detail-weitere .kurs-karten { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .detail-weitere { padding: 52px 56px 64px; }
  .detail-weitere .kurs-karten { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Mobile Bottom-Bar ---- */
.mobile-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--farbe-rand);
  padding: 12px 24px;
  z-index: 15;
}
.mobile-bottom-bar .sidebar-preis { font-size: 20px; }
.mobile-bottom-bar .sidebar-preis-hinweis { margin: 0; }
@media (min-width: 1024px) {
  .mobile-bottom-bar { display: none; }
}
@media (max-width: 1023px) {
  body:has(.mobile-bottom-bar) { padding-bottom: 84px; }
}
