/* Buchungsseite der Brillenschmiede: ruhig, hell, Grün als Akzent. */
:root {
  --gruen: #205e50;
  --gruen-dunkel: #193c35;
  --gruen-hell: #e4ecea;
  --text: #2b2f2e;
  --leise: #6b7270;
  --blass: #b9bebd;
  --grau: #ececec;
  --linie: #dddfde;
  --seite: #f4f4f4;
  --flaeche: #ffffff;
  --fehler: #9b2c1f;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.5; color: var(--text); background: var(--seite); }
.breite { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
a { color: var(--gruen); }
.leise { color: var(--leise); }
.klein { font-size: 14px; }
.sym { width: 20px; height: 20px; flex: none; }
.sym.klein { width: 14px; height: 14px; }
.sym.gross { width: 46px; height: 46px; }

/* Kopf */
.kopf { padding-top: 24px; padding-bottom: 28px; }
.kopf h1 { font-size: 44px; font-weight: 400; margin: 0 0 18px; padding-left: 8%; color: #333; }
.kopf hr { width: 240px; border: 0; border-top: 1px solid #d6d6d6; margin: 0 auto 26px; }
.kopf p { margin: 0; padding-left: 8%; color: #444; }

/* Tafel mit dem eigentlichen Ablauf */
.tafel { background: var(--flaeche); padding: 28px 7% 24px; margin-bottom: 40px; }
h2 { font-size: 30px; font-weight: 400; color: #4a4f4e; margin: 30px 0 18px; line-height: 1.25; }
h3 { font-size: 21px; margin: 0 0 8px; }

/* Schrittleiste */
.schritte ol { display: flex; justify-content: space-between; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
.schritte li { display: flex; align-items: flex-start; flex: 1; justify-content: flex-end; }
.schritte li:first-child { flex: 0 0 auto; }
.schritte .schritt { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 96px; color: #c9cccb; font-size: 19px; background: none; border: 0; padding: 0; font: inherit; font-size: 19px; }
.schritte .trenner { width: 32px; height: 32px; margin: 8px auto 0; color: #c9cccb; }
.schritte li.fertig .schritt, .schritte li.fertig .trenner { color: #9a9f9e; }
.schritte li.an .schritt { color: #4a4f4e; font-weight: 600; }
.schritte li.an .trenner { color: #4a4f4e; }
.schritte button.schritt { cursor: pointer; }
.schritte button.schritt:hover { color: var(--gruen); }

/* Graue Kästen mit der Auswahl */
.kaesten { display: grid; gap: 20px; margin-top: 26px; }
.kaesten.k2 { grid-template-columns: 1fr 1fr; }
.kaesten.k3 { grid-template-columns: repeat(3, 1fr); }
.kasten { display: flex; align-items: center; gap: 22px; background: var(--grau); padding: 18px 22px; min-height: 76px; }
.kasten .sym { color: #555; }
.kasten small { display: block; color: var(--leise); }

/* Listen (Standort, Leistung) */
.liste { list-style: none; margin: 0; padding: 0; }
.zeile { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--linie); }
.mit-symbol { display: flex; align-items: center; gap: 12px; }
.mit-symbol .sym { color: #666; }
.leistung { align-items: center; padding: 22px 20px; }
.beschreibung { margin: 8px 0 4px; }
.eckdaten { font-size: 14px; margin: 10px 0 0; line-height: 1.6; }
button.mehr, button.auswahl { background: none; border: 0; padding: 0; font: inherit; color: #0b5cad; text-decoration: underline; cursor: pointer; text-align: left; }
button.auswahl { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 18px; flex: none; }
button.auswahl .sym { color: var(--text); }
button.auswahl:hover, button.mehr:hover { color: var(--gruen); }

/* Mitarbeiter */
.personen { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 24px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 4px; font: inherit; cursor: pointer; min-width: 120px; }
.person .bild { position: relative; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: #aab3ba; color: #fff; }
.person .bild > .sym { width: 64px; height: 64px; }
.person .kuerzel { font-size: 36px; font-weight: 600; letter-spacing: 0.04em; }
.person .name { font-weight: 600; }
.person.an .bild { background: var(--gruen); }
.person .gewaehlt { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #1fa33a; border: 3px solid #fff; }
.person .gewaehlt .sym { width: 18px; height: 18px; color: #fff; }
.person:hover .bild { box-shadow: 0 0 0 3px var(--gruen-hell); }

/* Wochenraster */
.wochenleiste { display: flex; align-items: center; justify-content: space-between; background: var(--grau); padding: 4px 6px; font-size: 22px; }
.wochenleiste strong { font-weight: 500; }
.blaettern { background: none; border: 0; padding: 6px; cursor: pointer; color: #555; display: grid; place-items: center; }
.blaettern .sym { width: 30px; height: 30px; }
.blaettern:disabled { color: #d0d3d2; cursor: default; }
.raster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 20px; }
.spalte { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tagkopf { display: flex; flex-direction: column; align-items: center; background: var(--grau); border: 0; padding: 10px 4px; font: inherit; font-size: 22px; line-height: 1.6; color: var(--text); margin-bottom: 20px; }
.tagkopf strong { font-weight: 500; }
.tagkopf:disabled { cursor: default; }
.slots { display: flex; flex-direction: column; gap: 10px; }
.slot { display: flex; align-items: center; justify-content: center; height: 40px; margin: 0; padding: 0 4px; background: #f1f1f1; color: #c4c7c6; font: inherit; font-weight: 600; font-size: 18px; line-height: 1; border: 0; }
.slot.frei { background: var(--gruen); color: #fff; cursor: pointer; }
.slot.frei:hover, .slot.frei:focus-visible { background: var(--gruen-dunkel); }
.tageszeiten { display: none; }
.legende { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 18px 0 0; font-size: 18px; }
.punkt { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--gruen); }

/* Formular */
.formular { display: flex; flex-direction: column; gap: 14px; }
.spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.spalten .links { display: flex; flex-direction: column; gap: 14px; }
.spalten .rechts { display: flex; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld > span { font-size: 18px; }
.feld input, .feld textarea, .feld select { font: inherit; font-size: 18px; padding: 10px 14px; border: 1px solid #ccc; border-radius: 0; background: #fff; color: var(--text); width: 100%; }
.feld input::placeholder, .feld textarea::placeholder { color: #c9cccb; }
.feld.bemerkung { flex: 1; }
.feld.bemerkung textarea { flex: 1; min-height: 180px; resize: vertical; }
.zaehler { font-size: 13px; color: var(--leise); }
.feld.fehlerhaft input { border-color: var(--fehler); }
small.fehler { color: var(--fehler); }
.haken { display: flex; gap: 10px; align-items: flex-start; }
.haken input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--gruen); }
.haken.fehlerhaft span { color: var(--fehler); }
.versteckt { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.meldung { background: #fdeceb; color: var(--fehler); padding: 10px 14px; }

/* Knöpfe */
.knoepfe { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.knoepfe > :only-child.haupt { margin-left: auto; }
.knoepfe button { font: inherit; font-size: 19px; font-weight: 700; border: 0; padding: 10px 24px; min-height: 44px; cursor: pointer; }
button.zweit { background: #5d5f63; color: #fff; }
button.zweit:hover { background: #45474a; }
button.haupt { background: var(--gruen); color: #fff; }
button.haupt:hover { background: var(--gruen-dunkel); }
button.gefahr { background: var(--fehler); }
button:disabled { opacity: 0.6; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #90afa8; outline-offset: 2px; }

.erfolg { width: 64px; height: 64px; border-radius: 50%; background: var(--gruen); color: #fff; display: grid; place-items: center; margin-top: 8px; }
.erfolg .sym { width: 38px; height: 38px; }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); margin-top: 40px; padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.fuss .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 18px; }
.fuss a { color: #0b5cad; display: inline-flex; align-items: center; gap: 4px; }

/* Eingebettet in die eigene Internetseite: ohne eigenen Kopf, ohne Rand */
.eingebettet body { background: transparent; }
.eingebettet .kopf, .eingebettet .fuss .links { display: none; }
.eingebettet .fuss { border-top: 0; margin-top: 16px; padding-top: 0; }
.eingebettet .breite { max-width: none; padding: 0; }
.eingebettet .tafel { margin-bottom: 0; padding-left: 16px; padding-right: 16px; }

/* Tablet */
@media (max-width: 900px) {
  .kopf h1 { font-size: 34px; padding-left: 0; }
  .kopf p { padding-left: 0; }
  .tafel { padding-left: 20px; padding-right: 20px; }
  h2 { font-size: 24px; }
  .kaesten.k3 { grid-template-columns: 1fr; }
  .tagkopf { font-size: 17px; }
  .slot { font-size: 15px; height: 34px; }
}

/* Handy: Tagesleiste und die Zeiten des gewählten Tages */
@media (max-width: 640px) {
  .kopf h1 { font-size: 28px; }
  .schritte .schritt { min-width: 0; font-size: 13px; }
  .schritte .sym.gross { width: 30px; height: 30px; }
  .schritte .trenner { width: 18px; height: 18px; margin-top: 6px; }
  .kaesten.k2 { grid-template-columns: 1fr; }
  .kaesten { gap: 10px; }
  .kasten { gap: 14px; padding: 12px 14px; min-height: 0; }
  .zeile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 4px; }
  .person { min-width: 80px; }
  .person .bild { width: 72px; height: 72px; }
  .person .bild > .sym { width: 40px; height: 40px; }
  .person .kuerzel { font-size: 24px; }
  .wochenleiste { font-size: 16px; }
  .raster { gap: 4px; }
  .raster .slots { display: none; }
  .tagkopf { font-size: 13px; padding: 6px 0; margin-bottom: 0; line-height: 1.4; }
  .tagkopf.an { background: var(--gruen); color: #fff; }
  .tagkopf.leer { color: #c4c7c6; }
  .tageszeiten { display: block; margin-top: 18px; }
  .tageszeiten h3 { font-size: 17px; font-weight: 600; }
  .tageszeiten .slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
  .tageszeiten .slot { height: 46px; font-size: 17px; }
  .legende { display: none; }
  .spalten { grid-template-columns: 1fr; gap: 14px; }
  .feld.bemerkung textarea { min-height: 110px; }
  .knoepfe button { font-size: 16px; padding: 10px 16px; }
}
