/* machmit: Kursplätze buchen */
.demo-leiste { background: var(--tinte); color: var(--papier); font-size: 13px; line-height: 1.45; text-align: center; padding: 8px 16px; }
.demo-leiste b { color: #F2B896; }
.demo-leiste a { color: var(--papier); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --papier: #F5EFE6;
  --karte: #FFFCF7;
  --tinte: #26211C;
  --tinte-2: #5E554C;
  --tinte-3: #8C8278;
  --linie: #E6DCCE;
  --linie-2: #D6C9B8;
  --akzent: #B4532A;
  --akzent-dunkel: #8F3F1E;
  --akzent-hell: #F6E3D7;
  --frei: #5F7A55;
  --frei-hell: #E5ECDD;
  --knapp: #C27C1A;
  --voll: #9C9086;
  --fehler: #A8322A;

  --terra: #B4532A;  --terra-hell: #F6E3D7;
  --salbei: #5F7A55; --salbei-hell: #E5ECDD;
  --indigo: #44508A; --indigo-hell: #E2E5F2;
  --ocker: #B07A1C;  --ocker-hell: #F5EAD3;
  --pflaume: #7A4468; --pflaume-hell: #F0E2EB;

  --radius: 18px;
  --schatten: 0 1px 2px rgba(38, 33, 28, .05), 0 6px 24px rgba(38, 33, 28, .06);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--tinte); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--akzent-dunkel); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0; font-variation-settings: "opsz" 72; }
.verborgen { display: none !important; }
.klein { font-size: 14px; color: var(--tinte-2); }
.leise { color: var(--tinte-3); }

/* ---------- Kopf ---------- */
.kopf { padding: 28px 20px 8px; max-width: 760px; margin: 0 auto; }
.marke { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--tinte-2); text-decoration: none; }
.marke-punkte { display: inline-flex; gap: 3px; }
.marke-punkte i { width: 6px; height: 6px; border-radius: 50%; background: var(--akzent); display: block; }
.marke-punkte i:nth-child(2) { opacity: .6; } .marke-punkte i:nth-child(3) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--akzent); }
.studio-name { font-size: clamp(34px, 8vw, 52px); margin-top: 18px; }
.studio-leitsatz { margin-top: 6px; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--akzent-dunkel); }
.studio-info { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--tinte-2); font-size: 15px; }
.studio-info a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--linie-2); }
.studio-info .ganz { flex-basis: 100%; }
/* Sprachwahl DE · FR · IT · EN (assets/i18n.js) */
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sprachen { display: inline-flex; gap: 2px; }
.sprachen button { font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 5px 7px; border: 0; border-radius: 6px; background: none; color: var(--tinte-2); cursor: pointer; }
.sprachen button[aria-pressed="true"] { background: var(--akzent); color: #fff; }
.sprachen button:hover:not([aria-pressed="true"]) { color: var(--akzent-dunkel); }
.kurssprache { margin-top: 10px; font-size: 13px; color: var(--tinte-2); }

/* ---------- Inhalt ---------- */
.inhalt { max-width: 760px; margin: 0 auto; padding: 8px 20px 60px; }
.abschnitt-titel { font-size: 22px; margin: 34px 0 14px; }

/* Kurs-Karten (Übersicht + Filter) */
.kurse { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.kurs { text-align: left; background: var(--karte); border: 1.5px solid var(--linie); border-radius: var(--radius); padding: 16px 16px 14px; cursor: pointer; position: relative; transition: border-color .15s, transform .15s; }
.kurs:hover { border-color: var(--linie-2); }
.kurs.aktiv { border-color: var(--k, var(--akzent)); box-shadow: 0 0 0 3px var(--kh, var(--akzent-hell)); }
.kurs-name { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.2; display: block; }
.kurs-wann { font-weight: 700; font-size: 14px; color: var(--k, var(--akzent)); margin-top: 6px; display: block; }
.kurs-text { font-size: 14px; color: var(--tinte-2); margin-top: 6px; display: block; }
/* Lange Beschreibung: 5 Zeilen, «Mehr anzeigen» klappt auf (ohne den Kursfilter auszulösen) */
.kurs-text.zu { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kurs-mehr { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--akzent-dunkel); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.kurs-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.etikett { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--papier); color: var(--tinte-2); }
.f-terra { --k: var(--terra); --kh: var(--terra-hell); }
.f-salbei { --k: var(--salbei); --kh: var(--salbei-hell); }
.f-indigo { --k: var(--indigo); --kh: var(--indigo-hell); }
.f-ocker { --k: var(--ocker); --kh: var(--ocker-hell); }
.f-pflaume { --k: var(--pflaume); --kh: var(--pflaume-hell); }

.filterzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 34px 0 6px; }
.filterzeile .abschnitt-titel { margin: 0; }
.zuruecksetzen { background: none; border: 0; color: var(--akzent-dunkel); font-weight: 700; font-size: 14px; cursor: pointer; padding: 6px 0; }

/* Wochen + Lektionen */
.woche { margin-top: 22px; }
.woche-titel { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tinte-3); margin: 0 0 10px 2px; display: flex; gap: 10px; align-items: baseline; }
.woche-titel span { font-weight: 600; letter-spacing: 0; text-transform: none; }
.pause { background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(38,33,28,.035) 8px 16px); border: 1.5px dashed var(--linie-2); border-radius: var(--radius); padding: 14px 16px; color: var(--tinte-2); font-size: 15px; margin-top: 22px; }
.pause b { color: var(--tinte); }

.lektion { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; background: var(--karte); border-radius: var(--radius); padding: 14px 14px 14px 12px; margin-bottom: 8px; box-shadow: var(--schatten); border-left: 4px solid var(--k, var(--akzent)); }
.datum { text-align: center; line-height: 1.05; }
.datum-tag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--k, var(--akzent)); }
.datum-zahl { font-family: var(--serif); font-size: 28px; font-weight: 600; display: block; margin: 2px 0; }
.datum-monat { font-size: 12px; color: var(--tinte-3); font-weight: 600; }
.lektion-name { font-weight: 800; font-size: 16px; line-height: 1.25; }
.lektion-zeit { font-size: 14px; color: var(--tinte-2); margin-top: 2px; }
.matten { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; max-width: 220px; }
.matten i { width: 13px; height: 6px; border-radius: 3px; background: var(--k, var(--frei)); display: block; }
.matten i.weg { background: var(--linie-2); opacity: .7; }
.platz-text { font-size: 13px; font-weight: 800; margin-top: 5px; color: var(--frei); }
.platz-text.knapp { color: var(--knapp); }
.platz-text.voll, .platz-text.aus { color: var(--voll); }
.vertretung-info { display: inline-block; margin-top: 6px; background: var(--ocker-hell); color: #5E4310; border-radius: 8px; padding: 3px 9px; font-size: 13px; font-weight: 700; }
.lektion.ist-voll, .lektion.ist-aus { opacity: .72; box-shadow: none; }
.lektion.ist-aus .lektion-name { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.lektion.ist-meins { box-shadow: 0 0 0 2px var(--frei), var(--schatten); }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 99px; padding: 11px 18px; font-weight: 800; font-size: 15px; cursor: pointer; background: var(--tinte); color: #fff; text-decoration: none; white-space: nowrap; transition: transform .1s, background .15s; }
.knopf:active { transform: scale(.97); }
.knopf:disabled { opacity: .45; cursor: default; }
.knopf.akzent { background: var(--akzent); }
.knopf.akzent:hover { background: var(--akzent-dunkel); }
.knopf.hell { background: var(--karte); color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--linie-2); }
.knopf.klein { padding: 7px 13px; font-size: 13px; }
.knopf.breit { width: 100%; padding: 14px 18px; font-size: 16px; }
.knopf.gefahr { background: transparent; color: var(--fehler); box-shadow: inset 0 0 0 1.5px #E5B8B3; }
.knopf-platz { background: var(--k, var(--akzent)); color: #fff; }
.meins-marke { font-size: 13px; font-weight: 800; color: var(--frei); white-space: nowrap; }
/* Eigene Buchung in der Lektionsliste: gut sichtbare Pille, darunter Abmelden oder Hinweis */
.lektion .aktion:has(.meins-marke) { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.lektion .aktion .meins-marke:not(.warte) { background: var(--frei); color: #fff; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.lektion .aktion .knopf.meins-ab { padding: 7px 14px; font-size: 13px; }
.meins-ab-info { font-size: 12px; line-height: 1.3; color: var(--tinte-3); text-align: right; max-width: 130px; }
.meins-ab-info a { color: inherit; white-space: nowrap; }
.meine-suchen { text-align: center; margin: 18px 0 0; }
.meine-suchen a { color: var(--tinte-2, inherit); }

.mehr { display: flex; justify-content: center; margin-top: 22px; }
.leer { text-align: center; padding: 40px 10px; color: var(--tinte-3); }

/* ---------- Blatt (Buchen) ---------- */
.schleier { position: fixed; inset: 0; background: rgba(38, 33, 28, .42); display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: ein .18s ease-out; }
.blatt { background: var(--karte); width: 100%; max-width: 520px; border-radius: 24px 24px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; animation: hoch .22s ease-out; }
@media (min-width: 640px) { .schleier { align-items: center; } .blatt { border-radius: 24px; } }
@keyframes ein { from { opacity: 0; } }
@keyframes hoch { from { transform: translateY(40px); opacity: .5; } }
.blatt-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.blatt h2 { font-size: 26px; }
.schliessen { background: var(--papier); border: 0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; flex: none; }
.zusammenfassung { background: var(--kh, var(--papier)); border-radius: 14px; padding: 14px 16px; margin: 16px 0 18px; }
.zusammenfassung b { display: block; font-size: 17px; }
.zusammenfassung span { font-size: 14px; color: var(--tinte-2); }

.feld { display: block; margin-bottom: 12px; }
.feld > span { display: block; font-size: 13px; font-weight: 700; color: var(--tinte-2); margin-bottom: 5px; }
.feld input, .feld select, .feld textarea { width: 100%; border: 1.5px solid var(--linie-2); background: #fff; border-radius: 12px; padding: 12px 13px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.feld textarea { resize: vertical; min-height: 70px; }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* iPhone: Datum- und Zeitfelder haben in Safari eine feste Mindestbreite und ragen sonst ins Nachbarfeld */
.zwei > *, .drei > * { min-width: 0; }
.feld input[type=date], .feld input[type=time] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; display: block; min-height: 49px; }
.feld input::-webkit-date-and-time-value { text-align: left; margin: 0; }
@media (max-width: 420px) { .feld input[type=date], .feld input[type=time] { padding-left: 10px; padding-right: 8px; } }
.meldung { background: #F8E1DE; color: var(--fehler); border-radius: 12px; padding: 10px 13px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.meldung.gut { background: var(--frei-hell); color: #3D5535; }
.hinweis { font-size: 13px; color: var(--tinte-3); margin-top: 12px; text-align: center; }

.erfolg { text-align: center; padding-top: 6px; }
.haken { width: 64px; height: 64px; border-radius: 50%; background: var(--frei-hell); color: var(--frei); display: grid; place-items: center; margin: 0 auto 14px; }
.erfolg h2 { font-size: 28px; }
.erfolg .zusammenfassung { text-align: left; }
.knoepfe { display: grid; gap: 8px; margin-top: 14px; }
.prototyp-hinweis { font-size: 13px; background: var(--ocker-hell); color: #6E4D12; border-radius: 12px; padding: 10px 12px; margin-top: 14px; text-align: left; }
.linkfeld { display: flex; gap: 6px; margin-top: 6px; }
.linkfeld input { flex: 1; min-width: 0; font-size: 13px; border: 1.5px solid var(--linie-2); border-radius: 10px; padding: 8px 10px; background: #fff; }

.fuss { text-align: center; font-size: 13px; color: var(--tinte-3); padding: 30px 20px 40px; }
.fuss a { color: inherit; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--tinte); color: #fff; padding: 11px 18px; border-radius: 99px; font-weight: 700; font-size: 14px; z-index: 80; box-shadow: var(--schatten); animation: hoch .2s ease-out; max-width: calc(100vw - 32px); text-align: center; }

@media (max-width: 420px) {
  .lektion { grid-template-columns: 44px 1fr auto; gap: 10px; padding: 12px 12px 12px 8px; }
  .lektion .aktion .knopf { padding: 9px 13px; font-size: 14px; }
  .lektion-zeit { font-size: 13px; }
  .matten { max-width: 150px; }
  .matten i { width: 10px; }
  .datum-zahl { font-size: 24px; }
  .kurse { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none; }
  .kurse::-webkit-scrollbar { display: none; }
  .kurs { flex: 0 0 78%; scroll-snap-align: start; scroll-margin-left: 20px; }
}
.knoepfe .knopf { min-width: 0; white-space: normal; text-align: center; }

/* Warteliste */
.knopf-warte { background: transparent; color: var(--k, var(--akzent)); box-shadow: inset 0 0 0 1.5px var(--k, var(--akzent)); }
.knopf-warte:hover { background: var(--kh, var(--akzent-hell)); }
.meins-marke.warte { color: var(--knapp); text-align: right; line-height: 1.2; }
.lektion.ist-voll:has(.knopf-warte) { opacity: 1; }
.warte-info { background: var(--ocker-hell); color: #5E4310; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.warte-info b { display: block; margin-bottom: 3px; color: #4A340C; }
.warte-haken { background: var(--ocker-hell); color: var(--knapp); font-family: var(--serif); font-size: 30px; font-weight: 600; }
.platz-text.warte { color: var(--knapp); }

/* Hinweise vom Admin (assets/hinweise.js) */
.hinweis-leiste { display: flex; align-items: center; gap: 8px 10px; background: var(--karte); border: 1px solid var(--linie-2); border-radius: 14px; padding: 8px 8px 8px 12px; font-size: 14px; line-height: 1.4; margin: 14px 0 0; }
.hinweis-leiste.stoerung { background: #F8E1DE; border-color: #E5B8B3; color: #7A2A1F; }
.hinweis-leiste .hw-ic { flex: none; font-size: 15px; }
.hinweis-leiste .hw-tx { flex: 1; min-width: 0; }
.hinweis-leiste .hw-tx a { color: inherit; font-weight: 800; text-decoration: underline; white-space: nowrap; }
.hinweis-leiste .hw-nav { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--tinte-3); flex: none; }
.hinweis-leiste button { background: none; border: 0; cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 7px; border-radius: 8px; color: inherit; }
.hinweis-leiste button:hover { background: rgba(0,0,0,.06); }
.hw-rahmen { padding-top: 0 !important; padding-bottom: 0 !important; min-height: 0 !important; }
[hidden] { display: none !important; }
/* Auswahlfelder wie die übrigen Felder (ohne Systemoptik), mit eigenem Pfeil */
.feld select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235E554C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
/* Schreibweise der Marke (assets/marke.js): «mit» in der Logofarbe, im Text fett */
/* «mach» dunkel, «mit» Terrakotta. Auf Terrakotta: «mit» weiss. Auf dunklem Grund: «mach» hell (sonst unsichtbar), «mit» helles Terrakotta */
.mm { color: var(--mm-mach, var(--tinte)); }
.mm-mit { color: var(--mm-farbe, var(--akzent)); }
b.mm { font-weight: 800; }
.leiste, .demo-leiste, .adminleiste, .toast, .knopf:not(.hell):not(.akzent):not(.gefahr) { --mm-mach: #F5EFE6; --mm-farbe: #EE9B74; }
.btn-akzent, .knopf.akzent { --mm-mach: var(--tinte); --mm-farbe: #fff; }

/* Probelektion: Häkchen im Buchungsformular */
.probe-wahl { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 2px 0 16px; cursor: pointer; }
.probe-wahl input { width: 20px; height: 20px; flex: none; accent-color: var(--akzent); }
