/* ═══════════════════════════════════════════════
   TERMINBUCHUNG — styles.css
   Custom Properties → Components → States → Responsive
   ═══════════════════════════════════════════════ */

/* ── FONT-FACE ── */
@font-face {
  font-family: 'NeulisSans';
  font-style: normal;
  font-weight: 100 500;
  font-display: swap;
  src: url('../fonts/NeulisSans-Regular.woff') format('woff');
}
@font-face {
  font-family: 'NeulisSans';
  font-style: normal;
  font-weight: 501 900;
  font-display: swap;
  src: url('../fonts/NeulisSans-ExtraBold.woff') format('woff');
}

/* ── CUSTOM PROPERTIES ── */
:root {
  --accent: #ff0200;
  --black: #000;
  --white: #fff;
  --f: 'NeulisSans', Arial, sans-serif;
  --g1: #f4f4f4;
  --g2: #ebebeb;
  --g3: #e0e0e0;
  --g4: #bdbdbd;
  --g5: #9e9e9e;
  --g6: #616161;
  --g7: #424242;
  --g8: #212121;
  --r: 2px;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: var(--f);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

svg { display: inline-block; flex-shrink: 0; }
button:focus, button:focus-visible { outline: none; }
.ocard:focus, .day-row:focus, .kunde-card:focus, .wbtn:focus, .wbtn:focus-visible { outline: none; }

/* ── CARD LAYOUT ── */
.card {
  width: 100%;
  max-width: 1100px;
  height: 760px;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(0, 440px);
  gap: 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0, 0, 0, .18);
  background: #fff;
}

/* ── LEFT PANEL ── */
.left {
  display: flex;
  flex-direction: column;
  background: #fff;
  height: 100%;
  overflow: hidden;
}

.left-content {
  flex: 1;
  overflow: hidden;
  padding: 32px 46px 0 46px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.left-content::-webkit-scrollbar { width: 4px; }
.left-content::-webkit-scrollbar-thumb { background: var(--g3); border-radius: 1px; }

/* ── SHARED ROW TOKEN ── */
.ao-row {
  border: 1px solid var(--g3);
  padding: 0 16px;
  min-height: 74px;
  background: #fff;
  border-radius: 4px;
}

/* ── BOTTOM BAR ── */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  border-top: none;
  background: #fff;
  flex-shrink: 0;
  height: 100px;
}

.bottom-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.steps-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--g5);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--g3);
  transition: all .25s;
}

.bar-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── BUTTONS ── */
.btn-back {
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1.9px solid var(--g3);
  border-radius: var(--r);
  font-family: var(--f);
  font-size: 16px;
  font-weight: 600;
  color: var(--g7);
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
}

.btn-back:hover { border-color: var(--g7); background: #fff; }
.btn-back:focus, .btn-back:focus-visible { outline: none; }

.btn-next {
  height: 44px;
  padding: 0 14px;
  background: var(--accent);
  border: none;
  border-radius: var(--r);
  font-family: var(--f);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
}

.btn-next:hover { background: var(--accent); opacity: 1; }
.btn-next:focus, .btn-next:focus-visible { outline: none; }
.btn-next:active { background: var(--accent); }

/* ── SCREENS ── */
.screen { display: none; }

.ptitle {
  font-size: 30px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -.04em;
  margin-bottom: 8px;
}

.psub {
  font-size: 15px;
  color: var(--g5);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 380px;
  display: flex;
  align-items: flex-start;
}

/* ── AREA SWITCH (tabs) ── */
.area-switch {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1.9px solid var(--g3);
  margin-top: 8px;
}

.area-btn {
  padding: 0 18px;
  height: 55px;
  font-family: var(--f);
  font-size: 23px;
  font-weight: 600;
  color: var(--g5);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.area-btn:hover:not(.on) { color: var(--g8); }

.area-btn-badge {
  font-size: 20px;
  font-weight: 700;
  background: var(--g2);
  color: var(--g5);
  margin-left: 5px;
  padding: 1px 20px;
  border-radius: var(--r);
  transition: all .18s;
  display: none;
}

.ac { display: none; flex: 0; }

/* ── SERVICE GRID ── */
.ogrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-content: start;
  padding: 1px;
}

.ocard {
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--g3);
  background: #fff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, background .15s;
}

.ocard:hover { border-color: var(--g7); }

.ocard-hdr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  min-height: 74px;
  user-select: none;
}

.ocard-text { flex: 1; }

.ocard-circle {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--g2);
  flex-shrink: 0;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  align-self: flex-start;
  margin-top: 24px;
}

.ocard-circle svg {
  opacity: 0;
  transition: opacity .15s;
}

.ocard.sel .ocard-circle {
  background: var(--accent);
}

.ocard.sel .ocard-circle svg {
  opacity: 1;
}

.ocard-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g5);
  transition: transform .18s;
}

.ocard.is-open .ocard-chevron { transform: rotate(180deg); }

.ocard-info {
  display: none;
  padding: 0 50px 15px 40px;
  font-size: 14px;
  color: var(--g6);
  line-height: 1.4;
}

.ocard-price {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--r);
  letter-spacing: .02em;
  margin-bottom: 10px;
}

.ocard-price.hidden { display: none; }

.ocard-desc {
  display: block;
}

.ocard.is-open .ocard-info { display: block; }

/* Inline separator — vertical bar between Dauer and Preis/Kostenlos */
.om-sep {
  display: inline-block;
  width: 0;
  height: 13px;
  border-left: 1.5px solid currentColor;
  vertical-align: -2px;
  margin: 0 8px;
  opacity: .55;
}

.ot { font-size: 16px; font-weight: 400; color: var(--g7); line-height: 1.3; }
.om { font-size: 15px; color: var(--g4); margin-top: 1px; transition: color .15s; }

/* ── CALENDAR ── */
.day-rows-container {
  overflow-y: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.day-row {
  margin-bottom: 0;
  overflow-x: hidden;
  border: 1px solid var(--g3);
  background: #fff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
}


.day-hdr {
  display: grid;
  grid-template-columns: 1fr auto 28px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  cursor: pointer;
  user-select: none;
  padding: 0 16px;
}

.day-avail-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--black);
  color: #fff;
  padding: 1px 6px;
  border-radius: var(--r);
  white-space: nowrap;
  transition: all .18s;
}

.day-avail-badge.is-booked {
  background: transparent;
  color: var(--g5);
  font-weight: 500;
}

.day-row.is-fully-booked {
  cursor: default;
  pointer-events: none;
  opacity: 0.65;
  background: rgba(0, 0, 0, .025);
  border-color: rgba(0, 0, 0, .08);
}

.day-row.is-fully-booked .day-name { color: var(--g5); }

.day-hdr:not([data-action]) {
  cursor: default;
  grid-template-columns: 1fr auto;
}

.day-name { font-size: 16px; font-weight: 600; color: var(--black); }

.day-slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 4px 14px 10px;
  background: #fff;
}


.day-row-disabled {
  min-height: 74px;
  border: 1.9px solid rgba(0, 0, 0, .08);
  margin-bottom: 6px;
  background: rgba(0, 0, 0, .025);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.65;
  padding: 0 16px;
}

.day-row-disabled .day-hdr {
  padding: 0 16px;
}

.day-dash {
  color: #ddd;
  font-size: 11px;
}

.week-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1.9px solid var(--g3);
  padding-bottom: 0;
  margin-top: 8px;
}

.week-lbl {
  flex: 1;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  padding: 0 20px;
}

.wbtn {
  width: auto;
  height: 44px;
  padding: 0 10px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: all .12s;
  color: var(--g7);
  margin-bottom: -1.5px;
}

.wbtn:hover { color: var(--black); border-bottom-color: var(--black); }

.wbtn-cal { padding: 0 6px 0 0; }

/* ── CALENDAR PICKER ── */
.cal-picker {
  border: 1px solid var(--g3);
  border-radius: 4px;
  background: #fff;
  padding: 14px;
  margin-top: 22px;
  margin-bottom: 16px;
}

.cal-picker-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-picker-nav .wbtn {
  height: 32px;
  padding: 0 6px;
  border-bottom: none;
  margin-bottom: 0;
}

.cal-picker-month {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}

.cal-picker-hdr {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--g5);
  margin-bottom: 4px;
}

.cal-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  border-radius: var(--r);
  cursor: pointer;
  transition: all .12s;
  border: 1.5px solid transparent;
}

.cal-day:hover { background: var(--g1); }

.cal-day.is-today {
  font-weight: 400;
}

.cal-day.is-disabled {
  color: var(--g4);
  cursor: default;
  pointer-events: none;
  opacity: .5;
}

.cal-day.is-available.limited {
  /* color: orange; */
}
.cal-day.is-available {
  color: var(--black);
  font-weight: 400;
}

.cal-day.is-booked {
  color: var(--g4);
  cursor: default;
  pointer-events: none;
  text-decoration: line-through;
  opacity: .55;
}

.cal-day.is-selected {
  background: var(--black);
  color: #fff;
  font-weight: 400;
}

.cal-day-empty {
  height: 34px;
}

/* ── SLOT CELLS ── */
.slot-cell {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  font-family: var(--f);
  transition: all .15s;
  border: 1.5px solid #d8d8d8;
  border-radius: var(--r);
  background: #fff;
  color: var(--black);
  cursor: pointer;
}

.slot-cell:hover { border-color: var(--g7); }

/* ── FORMS ── */
.flbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--g5);
  margin-bottom: 6px;
  display: block;
}

.flbl-optional {
  font-weight: 400;
  text-transform: none;
}

.finp {
  height: 46px;
  border: 1px solid var(--g3);
  background: #fff;
  padding: 0 15px;
  font-size: 16px;
  color: var(--g7);
  outline: none;
  font-family: var(--f);
  transition: all .15s;
  border-radius: 4px;
  width: 100%;
}

.finp:focus { border-color: var(--black); }
textarea.finp { height: 72px; padding: 11px 13px; resize: none; }
textarea.finp.finp-anmerkungen { height: 52px; }

.ferr {
  font-size: 11px;
  color: var(--accent);
  margin-top: 3px;
  font-weight: 500;
}

.fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 9px;
}

.fgrid.full { grid-template-columns: 1fr; }
.fgrid-full { grid-column: 1 / -1; }
.fg { display: flex; flex-direction: column; }
.req { color: var(--accent); }

.info-kunde-section {
  margin-bottom: 11px;
  margin-top: 15px;
}

.info-kunde-label {
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}

.pflichtfeld-hint {
  font-size: 11px;
  color: var(--g5);
}

.kunde-row {
  display: flex;
  gap: 9px;
  margin-bottom: 13px;
}

.kunde-card {
  flex: 1;
  border: 1px solid var(--g3);
  background: #fff;
  padding: 0 16px;
  min-height: 56px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all .12s;
}

.kunde-card:hover { border-color: var(--g7); background: #fff; }

.rdot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--g4);
  flex-shrink: 0;
  margin-top: 1px;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kc-t { font-size: 16px; font-weight: 700; color: var(--black); }
.kc-s { font-size: 15px; color: var(--g5); margin-top: 3px; }

#screen-danke {
  overflow-y: auto;
}

/* ── AGB CHECKBOX ── */
.agb-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--g6);
}

.agb-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--g3);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

.agb-label { cursor: pointer; line-height: 1.5; font-size: 12px; }
.agb-row-info { padding-left: 28px; cursor: default; }
.agb-row-info .agb-label { cursor: default; }
.agb-label a { color: var(--black); text-decoration: underline; text-decoration-color: var(--black); cursor: pointer; }
.agb-label a:hover { text-decoration-thickness: 2px; }
.agb-label .req { font-size: 11px; font-weight: 700; vertical-align: baseline; }

/* ── SUMMARY TABLE ── */
.sum-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.sum-table tr { border-bottom: 1.9px solid var(--g2); }
.sum-table tr:last-child { border-bottom: none; }
.sum-table td { padding: 0; height: 52px; vertical-align: middle; font-size: 16px; }
.sum-table .key { color: var(--g5); width: 140px; font-weight: 500; }
.sum-table .val { color: var(--g7); font-weight: 700; }

.summary-email-hint {
  font-size: 12px;
  color: var(--g5);
  margin-bottom: 18px;
}

/* ── DANKE ── */
.danke-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 32px 24px;
  gap: 0;
}

.danke-anim {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(137, 117, 96, .35);
}

.danke-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -.04em;
  margin-bottom: 8px;
}

.danke-sub {
  font-size: 15px;
  color: var(--g5);
  margin-bottom: 22px;
  max-width: 320px;
  line-height: 1.6;
}

.danke-card {
  background: var(--g1);
  border-radius: var(--r);
  padding: 16px 20px;
  margin-bottom: 16px;
  text-align: left;
  width: 100%;
  max-width: 360px;
}

.danke-card-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1.9px solid var(--g2);
  font-size: 12px;
}

.danke-card-row:last-child { border-bottom: none; }
.danke-card-row .dk { color: var(--g5); font-weight: 500; font-size: 14px; }
.danke-card-row .dv { color: var(--g8); font-weight: 700; text-align: right; max-width: 200px; font-size: 14px; }

.danke-mail {
  font-size: 14px;
  color: var(--g6);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--g2);
  border-radius: var(--r);
}

/* ── CALENDAR SECTION ── */
.danke-cal-section {
  margin-top: 28px;
  width: 100%;
  max-width: 360px;
}

.danke-cal-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--g5);
  margin-bottom: 10px;
}

.danke-cal-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.danke-cal-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 44px;
  border: 1px solid var(--g3);
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--g7);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
  font-family: var(--f);
  flex-shrink: 0;
}

.danke-cal-btn:hover {
  border-color: var(--g7);
  color: var(--black);
}

/* ── NEW BOOKING BUTTON ── */
.danke-new-btn {
  margin-top: 24px;
  height: 44px;
  padding: 0 24px;
  background: var(--accent);
  border: none;
  border-radius: var(--r);
  font-family: var(--f);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.danke-new-btn:hover { background: #cc0000; }
.danke-new-btn:focus { outline: none; }

/* ── RIGHT PANEL ── */
.right { position: relative; overflow: hidden; }

.rp-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.rp-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 10%,
    rgba(0, 0, 0, .3) 38%,
    rgba(0, 0, 0, .7) 55%,
    rgba(0, 0, 0, .88) 100%
  );
}
.rp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sum-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.sum-table tr { border-bottom: 1.9px solid var(--g2); }
.sum-table tr:last-child { border-bottom: none; }
.sum-table td { padding: 0; height: 52px; vertical-align: middle; font-size: 16px; }
.sum-table .key { color: var(--g5); width: 140px; font-weight: 500; }
.sum-table .val { color: var(--g7); font-weight: 700; }

.rp-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 28px 108px;
  z-index: 10;
}

.rp-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 20;
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  background: rgba(0, 0, 0, .35);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all .15s;
  font-family: var(--f);
}

.rp-close:hover { background: rgba(0, 0, 0, .55); color: #fff; }

.rp-sum-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 16px;
}

.rp-row {
  height: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 10px 0;
  border-bottom: 1.9px solid rgb(255 255 255 / 25%);
  overflow: hidden;
  margin-bottom: 15px;
}

.rp-row:last-child { border-bottom: none; margin-bottom: 0; }

.rp-lbl {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.rp-lbl svg { display: none; }

.rp-val {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.rp-sub { font-size: 15px; color: rgba(255, 255, 255, .55); margin-top: 4px; }

/* ── MOBILE NAV BAR + DRAWER (nur mobile) ── */
.mob-nav-bar {
  display: none;
}
.mob-sum-wrap {
  display: none;
}
.mob-invis {
  visibility: hidden;
  pointer-events: none;
}

#screen-summary .content {
  margin-top: 2rem;
}

.sum-hint {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--g2);
  font-size: 13px;
  color: var(--g5);
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   STATE CLASSES
   ═══════════════════════════════════════════════ */

/* Generic hidden */
.is-hidden { display: none !important; }

/* Screen active */
.screen.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* Informationen screen needs scrolling for AGB */
#screen-informationen.active {
  overflow-y: auto;
}

/* Dot states */
.dot.is-active { background: var(--g8); width: 20px; border-radius: 2px; }
.dot.is-done { background: var(--g5); border-radius: 2px; }

/* Area tab active */
.area-btn.on { color: var(--black); font-weight: 700; border-bottom-color: var(--black); }
.area-btn.on .area-btn-badge { background: var(--black); color: #fff; }

/* Area content active */
.ac.on { display: flex; flex-direction: column; flex: 1; overflow-y: auto; }

/* Service card selected */
.ocard.sel { border: 1px solid var(--black); background: #fff; }
.ocard.sel .ot { color: var(--black); }
.ocard.sel .om { color: var(--g6); }

/* Slot states */
.slot-cell.is-disabled {
  border-color: #eee;
  color: #ccc;
  cursor: not-allowed;
}

.slot-cell.is-selected {
  font-weight: 700;
  background: var(--black);
  color: #fff;
  border-color: var(--black);
  cursor: pointer;
}

/* Day name disabled */
.day-name.is-disabled { color: var(--g5); }

/* Day rows container scrollable */
.day-rows-container.is-scrollable { overflow-y: auto; }

/* Kunde card selected */
.kunde-card.sel { border-color: var(--black); background: #fff; }

/* Radio dot selected */
.rdot.sel { border-color: var(--accent); background: var(--accent); }
.rdot.sel::after { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* Form input error */
.finp.err { border-color: var(--accent); }
.ferr { display: none; }
.ferr.is-visible { display: block; }

/* AGB checkbox checked */
.agb-check.checked { background: var(--black); border-color: var(--black); }
.agb-check.checked::after {
  content: '';
  display: block;
  width: 10px;
  height: 7px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* Button next disabled */
.btn-next.disabled {
  background: var(--g3);
  color: var(--g5);
  cursor: not-allowed;
  pointer-events: none;
}

/* Right panel value empty */
.rp-val.mt {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, .38);
  font-style: italic;
}


  /* ── Mobile Booking Drawer ── */
  .mob-sum-drawer {
    background: #fff;
    border: 1px solid var(--g2);
    padding: 8px 14px 4px;
  }
  #mobSumWrap .mob-sum-drawer {
    border-top: none;
  }
  .mob-sum-drawer-sum {
    background: transparent;
    border: none;
    padding: 0;
  }
  .mob-sum-drawer.is-hidden { display: none; }

  .mob-sum-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    border-top: 1px solid var(--g1);
  }
  .mob-sum-row:first-child { border-top: none; }
  .mob-sum-key {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--g4);
    min-width: 120px;
    flex-shrink: 0;
  }
  .mob-sum-val-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .mob-sum-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--g8);
  }
  .mob-sum-sub {
    font-size: 12px;
    color: var(--g6);
    font-weight: 600;
  }
  .mob-sum-sub:empty { display: none; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* ── MOBILE < 960px ── */
@media (max-width: 959px) {
  .card {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: unset;
    background: #f4efea;
  }

  .right { display: none; }

  .left {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f4efea;
    position: relative;
  }

  .left-content { padding: 20px 16px 16px 16px; overflow-y: auto; flex: 1; }
  .ptitle { font-size: 26px; }
  .psub { font-size: 14px; height: auto; }
  .fgrid { grid-template-columns: 1fr; }

  .bottom-bar {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    height: auto;
    border-top: none;
    background: #f4efea;
  }

  .bottom-bar-left { margin-right: auto; display: flex; align-items: center; gap: 10px; }
  .btn-back { width: 150px; flex: none; }
  .btn-next { width: 150px; flex: none; }
  .bar-btns { gap: 8px; }

  /* ── Mobile Nav Bar ── */
  .mob-nav-bar {
    display: block;
    position: absolute;
    top: 20px;
    right: 16px;
    z-index: 20;
  }

  .ptitle { padding-right: 44px; }

  .mob-nav-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--g2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--g6);
    -webkit-tap-highlight-color: transparent;
  }
  .mob-nav-close:active { background: var(--g3); }

  /* ── Mobile Buchungsübersicht (inline) ── */
  .mob-sum-drawer {
    display: block;
  }

  .mob-sum-wrap {
    display: block;
    flex-shrink: 0;
    margin: 0;
    order: 1;
    position: relative;
    z-index: 10;
  }

  .bottom-bar { order: 2; }

  .mob-sum-drawer {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, .05);
  }

  .mob-sum-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--g7);
    background: var(--g1);
    border: 1px solid var(--g2);
    border-radius: 0;
    padding: 9px 14px;
    cursor: pointer;
    justify-content: space-between;
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-sum-toggle:active { background: var(--g2); }
  .mob-sum-toggle svg { transition: transform .2s; flex-shrink: 0; }
  .mob-sum-toggle.open svg { transform: rotate(180deg); }

  .day-slots { grid-template-columns: repeat(4, 1fr); }
}

/* ── Kunde-Auswahl untereinander ab 482px ── */
@media (max-width: 482px) {
  .kunde-row { flex-direction: column; }
}

/* ── VERY SMALL SCREENS ≤ 450px ── */
@media (max-width: 450px) {
  .mob-nav-bar { top: 16px; right: 10px; }
  .left-content { padding: 16px 10px 12px 10px; }

  .bottom-bar {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-between;
  }

  .bottom-bar-left { margin-right: auto; }
  .bar-btns { flex-direction: row; }

  /* Danke calendar buttons: 1 column */
  .danke-cal-btns { flex-direction: column; align-items: stretch; }
  .ao-row { padding: 0 10px; }
  .area-btn { padding: 0 12px; font-size: 20px; height: 48px; }
  .day-slots { padding: 10px 0; gap: 4px; }
  .day-hdr { padding: 0; }
  .btn-back { gap: 6px; width: 100px; }
  .btn-next { width: 150px; }
  .day-name { font-size: 14px; }
  .day-row-disabled { padding: 0 10px; }
}

/* ── 360px — absolute minimum ── */
@media (max-width: 360px) {
  .left-content { padding: 12px 10px 10px 10px; }
  .mob-nav-bar { top: 12px; right: 10px; }
  .day-slots { grid-template-columns: repeat(4, 1fr); }
  .area-btn { padding: 0 8px; font-size: 18px; }
}



/* https://cssloaders.github.io/ */
#screen-loading {
  padding: calc(50% - 24px);
}
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top: 4px solid #444;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  min-height: 50px;
}
.loader::after {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-left: 4px solid var(--accent);
  border-bottom: 4px solid transparent;
  animation: rotation 0.5s linear infinite reverse;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 