/* Öffentliche Webseiten der Kursanbieterinnen.
   Farben und Schriften kommen pro Mandant als CSS-Variablen (siehe oeffentlich/basis.html). */

@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-400-normal.7bfd10a3def3.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-600-normal.4376f5953b85.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-400-normal.15ccd91d7a8f.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-600-normal.b8dca52ca5f9.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-500-normal.efeea72c7a42.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-600-normal.bf1e09fb81d7.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --breite: 68rem;
  --text-breite: 38rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
}

* { box-sizing: border-box; }

html {
  font-family: var(--schrift-text), system-ui, sans-serif;
  font-size: 106.25%;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--grund);
  -webkit-text-size-adjust: 100%;
}
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--akzent); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--schrift-titel), Georgia, serif;
  font-weight: var(--titel-gewicht, 600);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.leise { color: var(--leise); }
.zahl { font-variant-numeric: tabular-nums; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.text { max-width: var(--text-breite); }
main { min-height: 60vh; }
section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
section + section:not(.band) { padding-top: 0; }
.band + section { padding-top: clamp(2.5rem, 7vw, 5rem); }

/* --- Kopf -------------------------------------------------------------------------------- */

.kopf { padding: 1rem 0; }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.marke { font-family: var(--schrift-titel), serif; font-weight: var(--titel-gewicht, 600); font-size: 1.35rem; color: var(--tinte); text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }
.marke img { height: 2.6rem; width: auto; }
.hauptnav { display: flex; gap: 0.25rem 1.25rem; align-items: center; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hauptnav a { color: var(--tinte); text-decoration: none; white-space: nowrap; padding: 0.4rem 0; }
.hauptnav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.hauptnav a.buchen { background: var(--akzent); color: var(--akzent-text); padding: 0.45rem 1rem; border-radius: 999px; }
@media (max-width: 40rem) {
  .kopf .huelle { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .hauptnav { flex-wrap: wrap; overflow: visible; gap: 0.1rem 1rem; }
  .hauptnav a.buchen { order: -1; flex-basis: 100%; text-align: center; margin-bottom: 0.4rem; }
}

/* --- Erster Eindruck --------------------------------------------------------------------- */

.einstieg { padding-top: clamp(1.5rem, 4vw, 3rem); }
.einstieg .lead { font-size: 1.15rem; color: var(--leise); max-width: 34rem; }

.einstieg.geteilt .huelle { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 52rem) { .einstieg.geteilt .huelle { grid-template-columns: 1.1fr 1fr; } }
.einstieg.geteilt .bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.einstieg.gross { padding: 0; }
.einstieg.gross .flaeche { position: relative; min-height: min(78vh, 44rem); display: flex; align-items: flex-end; color: #fff; }
.einstieg.gross .flaeche img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.einstieg.gross .flaeche::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 60%); }
.einstieg.gross .flaeche .huelle { position: relative; z-index: 1; padding-bottom: clamp(2rem, 6vw, 4rem); width: 100%; }
.einstieg.gross .lead { color: rgba(255,255,255,.9); }
.einstieg.gross.ohne-bild .flaeche { color: var(--tinte); min-height: auto; padding-top: 3rem; }
.einstieg.gross.ohne-bild .flaeche::after { display: none; }
.einstieg.gross.ohne-bild .lead { color: var(--leise); }

.knopf, button {
  font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0 1.4rem; border-radius: 999px; border: 1px solid var(--akzent);
  background: var(--akzent); color: var(--akzent-text); text-decoration: none; cursor: pointer;
}
.knopf.leise, button.leise { background: transparent; color: var(--akzent); }
button.klein, .knopf.klein { min-height: 2.2rem; padding: 0 1rem; font-size: 0.92rem; }
.knopfreihe { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }

/* --- Stundenplan: die grossen Zeiten ----------------------------------------------------- */

.tag { margin: 2rem 0 0.25rem; font-family: var(--schrift-titel), serif; font-size: 1.25rem; }
.plan { list-style: none; margin: 0; padding: 0; }
.plan li a, .plan li > div {
  display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1rem 0; border-bottom: 1px solid var(--flaeche-dunkel); color: inherit; text-decoration: none;
}
.plan li:first-child a, .plan li:first-child > div { border-top: 1px solid var(--flaeche-dunkel); }
.plan li.abgesagt .uhr, .plan li.abgesagt .titel { text-decoration: line-through; color: var(--leise); }
.plan li.abgesagt .status { color: var(--leise); font-weight: 400; }
.plan .uhr { font-size: 1.8rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.02em; }
.plan .titel { font-weight: 600; font-size: 1.08rem; }
.plan a:hover .titel { text-decoration: underline; }
.plan .neben { color: var(--leise); font-size: 0.92rem; }
.plan .status { font-size: 0.9rem; white-space: nowrap; color: var(--akzent); font-weight: 600; }
.plan .status.voll { color: var(--leise); font-weight: 400; }
@media (max-width: 30rem) {
  .plan li a, .plan li > div { grid-template-columns: 4.6rem 1fr; }
  .plan .uhr { font-size: 1.5rem; }
  .plan .status { grid-column: 2; }
}

/* --- Stundenplan: Tag, Woche, Monat ------------------------------------------------------ */

.kalender-kopf { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; margin: 1.5rem 0 1.25rem; }
.ansichten { display: inline-flex; border: 1px solid var(--flaeche-dunkel); border-radius: 999px; padding: 3px; background: #fff; }
.ansichten a { padding: 0.4rem 1rem; border-radius: 999px; color: var(--tinte); text-decoration: none; font-size: 0.95rem; min-height: 2.4rem; display: inline-flex; align-items: center; }
.ansichten a[aria-current] { background: var(--akzent); color: var(--akzent-text); }
.blaettern { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.blaettern > a:not(.heute-link), .blaettern > span {
  display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem;
  border-radius: 999px; border: 1px solid var(--flaeche-dunkel); color: var(--tinte); text-decoration: none; font-size: 1.3rem;
}
.blaettern > span { opacity: 0.3; }
.blaettern .zeitraum { font-family: var(--schrift-titel), serif; font-size: 1.15rem; min-width: 11rem; text-align: center; }
.heute-link { font-size: 0.95rem; }
.nichts-geplant { color: var(--leise); margin: 1.5rem 0; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tagesansicht: Datumsleiste Mo–So, darunter die Tage hintereinander */
.tagesleiste { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.4rem; margin: 0 0 1.25rem; }
.tagesleiste > a, .tagesleiste > span {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.5rem 0;
  border: 1px solid var(--flaeche-dunkel); border-radius: var(--radius); background: #fff;
  color: var(--tinte); text-decoration: none; font-variant-numeric: tabular-nums; min-height: 3.6rem;
}
.tagesleiste .wt { font-size: 0.82rem; color: var(--leise); }
.tagesleiste .zahl { font-size: 1.2rem; font-weight: 600; line-height: 1; }
.tagesleiste > a:hover { border-color: var(--akzent); }
.tagesleiste > a.heute .zahl { color: var(--akzent); }
.tagesleiste > a.gewaehlt { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.tagesleiste > a.gewaehlt .wt, .tagesleiste > a.gewaehlt .zahl { color: var(--akzent-text); }
.tagesleiste > span.gesperrt { opacity: 0.35; background: transparent; }
.liste-tag { margin: 1.75rem 0 0.25rem; font-size: 1.15rem; }
.tagesliste > .liste-tag:first-child { margin-top: 0.5rem; }

/* Filter nach Kurs und Lehrperson */
.plan-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: -0.25rem 0 1.25rem; }
.plan-filter label { flex: 1 1 9rem; max-width: 20rem; }
.plan-filter select {
  width: 100%; min-height: 2.6rem; padding: 0 0.5rem; border: 1px solid var(--flaeche-dunkel);
  border-radius: var(--radius); background: #fff; color: var(--tinte); font: inherit; font-size: 0.9rem;
}
.filter-weg { font-size: 0.92rem; }

/* Woche: am Handy untereinander (leere Tage weg), ab Tablet sieben Spalten */
.woche { display: grid; gap: 0; }
.wtag-kopf { font-size: 1.15rem; margin: 1.5rem 0 0.25rem; }
.wtag-kopf .kurz { display: none; }
.heute-marke { font-family: var(--schrift-text), sans-serif; font-size: 0.75rem; font-weight: 600; background: var(--akzent); color: var(--akzent-text); padding: 0.1rem 0.5rem; border-radius: 999px; vertical-align: middle; }
.wtag.leer { display: none; }
.eintrag {
  display: grid; grid-template-columns: 4.6rem 1fr auto; column-gap: 1rem; align-items: baseline;
  padding: 0.9rem 0; border-bottom: 1px solid var(--flaeche-dunkel); color: inherit; text-decoration: none;
}
.eintrag .uhr { grid-row: span 2; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.02em; }
.eintrag .titel { font-weight: 600; }
.eintrag:hover .titel { text-decoration: underline; }
.eintrag .neben { grid-column: 2; color: var(--leise); font-size: 0.9rem; }
.eintrag .status { grid-column: 3; grid-row: 1; font-size: 0.9rem; color: var(--akzent); font-weight: 600; white-space: nowrap; }
.eintrag.voll .status { color: var(--leise); font-weight: 400; }
.eintrag.abgesagt .uhr, .eintrag.abgesagt .titel { text-decoration: line-through; color: var(--leise); }
.eintrag.abgesagt .status { color: var(--leise); font-weight: 400; }
.wtag .nichts { display: none; }
@media (min-width: 56rem) {
  .woche { grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--flaeche-dunkel); }
  .wtag, .wtag.leer { display: block; padding: 0 0.5rem 1rem; border-left: 1px solid var(--flaeche-dunkel); min-height: 12rem; }
  .wtag:first-child { border-left: 0; padding-left: 0; }
  .wtag.heute { background: var(--flaeche); border-radius: 0 0 var(--radius) var(--radius); }
  .wtag.vorbei { opacity: 0.55; }
  .wtag-kopf { font-size: 1rem; margin: 0.75rem 0 0.5rem; }
  .wtag-kopf .lang { display: none; }
  .wtag-kopf .kurz { display: inline; }
  .heute-marke { display: none; }
  .wtag .nichts { display: block; color: var(--leise); margin: 0; }
  .eintrag { display: block; padding: 0.6rem 0.5rem; margin-bottom: 0.4rem; border: 1px solid var(--flaeche-dunkel); border-radius: var(--radius); background: #fff; }
  a.eintrag:hover { border-color: var(--akzent); }
  .eintrag.abgesagt { background: transparent; }
  .eintrag > span { display: block; }
  .eintrag .uhr { font-size: 1.25rem; margin-bottom: 0.2rem; }
  .eintrag .titel { font-size: 0.95rem; line-height: 1.25; overflow-wrap: anywhere; }
  .eintrag .neben { font-size: 0.8rem; margin-top: 0.15rem; }
  .eintrag .status { font-size: 0.8rem; margin-top: 0.3rem; }
}

/* Monat: Kalender, auch am Handy mit Kurstiteln (dort ohne Uhrzeit, auf zwei Zeilen gekürzt) */
.monat { width: 100%; border-collapse: collapse; table-layout: fixed; }
.monat th { font-weight: 600; font-size: 0.85rem; color: var(--leise); padding: 0.4rem 0; text-align: center; }
.monat td { vertical-align: top; border: 1px solid var(--flaeche-dunkel); height: 4.5rem; padding: 0.15rem; text-align: center; }
.monat td.fremd { background: transparent; border-color: transparent; }
.monat td.vorbei { color: var(--leise); opacity: 0.6; }
.monat td.heute .mtag { background: var(--akzent); color: var(--akzent-text); }
.monat .mtag { display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; border-radius: 999px; color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; }
.monat td.belegt a.mtag { font-weight: 600; color: var(--akzent); }
.monat td.belegt.heute a.mtag { color: var(--akzent-text); }
.monat ul { list-style: none; margin: 0.15rem 0 0; padding: 0; text-align: left; }
.monat li > a, .monat li > span {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 0.62rem; line-height: 1.2; max-height: calc(2.4em + 2px); padding: 1px 2px; margin-bottom: 2px; border-radius: 3px;
  background: var(--flaeche); color: var(--tinte); text-decoration: none; overflow-wrap: break-word; hyphens: auto; letter-spacing: -0.01em;
}
.monat li a:hover { background: var(--akzent); color: var(--akzent-text); }
.monat li a.voll { opacity: 0.6; }
.monat li .abgesagt { text-decoration: line-through; color: var(--leise); background: transparent; }
.monat li .uhr { display: none; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 56rem) {
  .monat td { height: 7rem; text-align: left; padding: 0.35rem; }
  .monat .mtag { width: 2rem; height: 2rem; }
  .monat li > a, .monat li > span { display: block; font-size: 0.82rem; line-height: 1.25; padding: 0.2rem 0.3rem; margin-bottom: 0.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; max-height: none; letter-spacing: 0; }
  .monat li .uhr { display: inline; }
}

/* --- Angebote ---------------------------------------------------------------------------- */

.angebote { display: grid; gap: 2.5rem 3rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); margin-top: 1.5rem; }
.angebot-bild { display: block; margin-bottom: 1rem; }
.angebot-bild img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--flaeche); }
.titelbild { display: block; width: 100%; max-height: 32rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 0.5rem 0 2rem; background: var(--flaeche); }
.lead { font-size: 1.15rem; }
.angebot h3 a { color: inherit; text-decoration: none; }
.angebot h3 a:hover { text-decoration: underline; }
.angebot .eckdaten { color: var(--leise); font-size: 0.95rem; margin-bottom: 0.5rem; }
.preise { list-style: none; padding: 0; margin: 1rem 0 0; max-width: var(--text-breite); }
.preise li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--flaeche-dunkel); }

/* --- Stimmen ----------------------------------------------------------------------------- */

.stimmen { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.stimmen blockquote { margin: 0; font-family: var(--schrift-titel), serif; font-size: 1.2rem; line-height: 1.45; }
.stimmen figcaption { margin-top: 0.75rem; color: var(--leise); font-size: 0.95rem; }

/* --- Formatierte Texte aus dem Editor ---------------------------------------------------- */

.formatiert h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 1.6em; }
.formatiert h3 { font-size: 1.2rem; margin-top: 1.4em; }
.formatiert > :first-child { margin-top: 0; }
.formatiert ul, .formatiert ol { padding-left: 1.3rem; margin: 0 0 1em; }
.formatiert li { margin-bottom: 0.3em; }
.formatiert blockquote { margin: 0 0 1em; padding-left: 1rem; border-left: 3px solid var(--akzent); }

/* --- Flächen, Formulare ------------------------------------------------------------------ */

.band { background: var(--flaeche); }
.kasten { background: var(--flaeche); border-radius: var(--radius); padding: 1.25rem 1.4rem; max-width: var(--text-breite); }
.feld { margin-bottom: 1rem; }
.feld label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.feld .fehler { color: #a3261f; font-size: 0.92rem; }
.feld .hilfe { color: var(--leise); font-size: 0.9rem; }
input[type=text], input[type=email], input[type=tel], textarea {
  font: inherit; width: 100%; padding: 0.6rem 0.8rem; min-height: 2.9rem; color: var(--tinte);
  border: 1px solid var(--flaeche-dunkel); border-radius: var(--radius); background: #fff;
}
.formular { max-width: 30rem; }
.meldung { padding: 0.9rem 1.1rem; border-radius: var(--radius); background: var(--flaeche); margin-bottom: 1.25rem; max-width: var(--text-breite); }
.meldung.fehler { background: #f8e3e1; color: #8e1f19; }
dl.fakten { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin: 1.5rem 0; }
dl.fakten dt { color: var(--leise); }
dl.fakten dd { margin: 0; }
details.frage { border-bottom: 1px solid var(--flaeche-dunkel); padding: 1rem 0; max-width: var(--text-breite); }
details.frage summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; }
details.frage[open] summary { margin-bottom: 0.5rem; }
.liste { list-style: none; padding: 0; margin: 0; max-width: var(--text-breite); }
.liste li { padding: 0.9rem 0; border-bottom: 1px solid var(--flaeche-dunkel); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }

/* --- Fuss -------------------------------------------------------------------------------- */

.fuss { border-top: 1px solid var(--flaeche-dunkel); padding: 2.5rem 0 3rem; margin-top: 3rem; color: var(--leise); font-size: 0.95rem; }
.fuss .huelle { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.fuss a { color: var(--leise); }
.fuss nav { display: flex; flex-direction: column; gap: 0.3rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
