/* Öffentliche Seiten der Terminbuchung (Buchung, Absage, Adresse).
   Farben wie sunline-sonnenstudios.de: Gold #ffad00 nur als Fläche (dunkle Schrift darauf),
   Anthrazit #1B323E für Schrift und Auswahl. Gold als Schriftfarbe auf Weiß wäre zu blass
   (Kontrast < 2:1), deshalb gibt es dafür ein dunkleres Gold. Keine externen Schriften:
   Montserrat nur, wenn sie auf dem Gerät schon installiert ist. */
:root {
  --gold: #ffad00;
  --gold-hell: #fff4dc;
  --gold-linie: #f0cf85;
  --gold-text: #7f5300;
  --anthrazit: #1b323e;
  --text: #1b323e;
  --grau: #4f5d66;
  --linie: #d5dade;
  --flaeche: #f6f7f8;
  --karte: #ffffff;
  --fehler-bg: #fdecea;
  --fehler-text: #8b1a10;
  --fehler-linie: #e8a59b;
  --ok-bg: #ecf6ee;
  --ok-text: #1d5b2a;
  --ok-linie: #9fcfab;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--flaeche);
  overflow-wrap: anywhere;
}
/* Im iframe misst die Seite ihre Höhe selbst: kein Mindestmaß, kein Außenrand, sonst wächst
   das iframe nie mehr zurück. */
html.eingebettet body { background: transparent; }

.seite { width: 100%; max-width: 560px; margin: 0 auto; padding: 20px 16px 28px; }
html.eingebettet .seite { padding: 6px 6px 10px; }

.kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.kopf .logo { width: 44px; height: 44px; flex: none; }
.kopf h1 { font-size: 1.4rem; line-height: 1.25; margin: 0; }
.kopf .unter { margin: 2px 0 0; color: var(--grau); font-size: .95rem; }
html.eingebettet .kopf .logo { display: none; }

.karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 14px;
}
h2 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 10px; }
h3 { font-size: 1rem; margin: 18px 0 8px; }
h2:focus, h1:focus { outline: none; }
h2:focus-visible, h1:focus-visible { outline: 3px solid var(--anthrazit); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 10px; }
.text { color: var(--text); }
.leise { color: var(--grau); font-size: .92rem; }

a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 2px; }

label, legend { display: block; font-weight: 600; margin: 14px 0 6px; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hilfe { color: var(--grau); font-size: .9rem; margin: 6px 0 0; }

input[type=text], input[type=email], select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  font: inherit;
  font-size: 1.05rem;           /* ab 16 px zoomt iOS beim Antippen nicht */
  color: var(--text);
  background: #fff;
  border: 1.5px solid #8a969e;  /* 3:1 zum Hintergrund – Feldgrenze erkennbar */
  border-radius: 10px;
}
select { appearance: auto; }
input[aria-invalid=true] { border-color: var(--fehler-text); }

button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--anthrazit); outline-offset: 2px; }

.primaer, .zweit, .gefahr {
  display: block;
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: 25px;
  text-align: center;
}
.primaer { background: var(--gold); color: var(--anthrazit); border: 2px solid var(--gold); }
.primaer:hover:not(:disabled) { background: #f0a200; border-color: #f0a200; }
.zweit { background: #fff; color: var(--anthrazit); border: 2px solid var(--anthrazit); }
.zweit:hover:not(:disabled) { background: var(--gold-hell); }
.gefahr { background: var(--fehler-text); color: #fff; border: 2px solid var(--fehler-text); }
.primaer:disabled, .zweit:disabled, .gefahr:disabled { opacity: .55; }
.knopfreihe { display: flex; gap: 10px; flex-wrap: wrap; }
.knopfreihe > button { flex: 1 1 200px; }

/* Meldungen: Fehler rot, Hinweis gold, Erfolg grün – nie nur über die Farbe, immer mit Text. */
.meldung { border-radius: 10px; padding: 11px 13px; margin-top: 14px; border: 1px solid; }
.meldung p:last-child { margin-bottom: 0; }
.fehler { background: var(--fehler-bg); color: var(--fehler-text); border-color: var(--fehler-linie); }
.hinweis { background: var(--gold-hell); color: var(--text); border-color: var(--gold-linie); }
.erfolg { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-linie); }

/* Termin-Zusammenfassung */
.termin { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.termin dt { color: var(--grau); }
.termin dd { margin: 0; font-weight: 600; }

.regeln { margin: 14px 0 0; padding: 12px 14px 12px 32px; background: var(--flaeche); border-radius: 10px; font-size: .94rem; }
.regeln li + li { margin-top: 6px; }

/* Vorschlag */
.vorschlag-kopf { padding: 12px 14px; border-radius: 10px; background: var(--gold-hell); border: 1px solid var(--gold-linie); }
.vorschlag-kopf .quelle { font-size: .88rem; color: var(--grau); margin: 0 0 2px; }
.vorschlag-kopf .studio { font-weight: 700; font-size: 1.08rem; margin: 0; }
.vorschlag-kopf .detail { margin: 2px 0 0; }
.zeitliste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.zeitliste .zeitknopf { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  min-height: 52px; padding: 10px 16px; text-align: left; }
.zeitliste .zeitknopf b { font-size: 1.1rem; }

/* Auswahl: Leistung, Kabine */
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl label { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 9px; min-height: 48px;
  padding: 10px 14px; border: 1.5px solid #8a969e; border-radius: 10px; background: #fff; cursor: pointer; flex: 1 1 140px; }
.wahl input { width: 20px; height: 20px; margin: 0; accent-color: var(--anthrazit); flex: none; }
.wahl label:has(input:checked) { border-color: var(--anthrazit); background: var(--gold-hell); }
.wahl label:has(input:focus-visible) { outline: 3px solid var(--anthrazit); outline-offset: 2px; }
.wahl input:focus-visible { outline: none; }
.feldname { font-weight: 600; margin: 14px 0 4px; }
.einzeln { margin: 0; }

/* Kalender: 7 Spalten Mo–So, Tage außerhalb des Horizonts bleiben leer. */
.monat { font-weight: 600; margin: 0 0 6px; }
.kalender { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.kalender .wt { text-align: center; font-size: .78rem; color: var(--grau); padding-bottom: 2px; }
.kalender .tag {
  position: relative;
  min-height: 46px;
  padding: 4px 0 8px;
  border-radius: 9px;
  border: 1.5px solid var(--linie);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  line-height: 1.1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.kalender .tag .mon { font-size: .66rem; font-weight: 600; color: var(--grau); }
.kalender .tag.frei::after { content: ""; position: absolute; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.kalender .tag.frei { border-color: #8a969e; }
.kalender .tag.frei:hover { background: var(--gold-hell); }
.kalender .tag:disabled { background: transparent; border-color: transparent; color: #8d989f; font-weight: 400; }
.kalender .tag.limit { background: repeating-linear-gradient(135deg, #fff, #fff 5px, #eef0f2 5px, #eef0f2 9px); border-color: var(--linie); color: var(--grau); }
.kalender .tag[aria-pressed=true] { background: var(--anthrazit); border-color: var(--anthrazit); color: #fff; }
.kalender .tag[aria-pressed=true] .mon { color: #fff; }
.kalender .tag[aria-pressed=true]::after { background: var(--gold); }
.legende { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--grau); margin: 8px 0 0; padding: 0; list-style: none; }
.legende .punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 5px; vertical-align: middle; }
.legende .streifen { display: inline-block; width: 14px; height: 10px; margin-right: 5px; vertical-align: middle;
  border: 1px solid var(--linie); background: repeating-linear-gradient(135deg, #fff, #fff 3px, #dfe3e6 3px, #dfe3e6 5px); }

/* Uhrzeiten im Viertelstunden-Raster */
.tageszeit { font-size: .9rem; color: var(--grau); font-weight: 600; margin: 12px 0 6px; }
.zeiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.zeiten button, .zeitknopf {
  min-height: 46px;
  border-radius: 10px;
  border: 1.5px solid #8a969e;
  background: #fff;
  color: var(--text);
  font-weight: 600;
}
.zeiten button:hover, .zeitknopf:hover { background: var(--gold-hell); border-color: var(--anthrazit); }
.laedt { color: var(--grau); }

.fuss { text-align: center; font-size: .85rem; color: var(--grau); margin-top: 6px; }
.fuss a { color: var(--grau); }
html.eingebettet .fuss .links { display: none; }

.aktion { margin-top: 16px; }
@media (min-width: 480px) {
  .seite { padding-top: 28px; }
  .karte { padding: 22px 22px; }
  .kalender .tag { min-height: 50px; }
}
