#yr-reservation-form {
  --yr-sage: #5F6F58;
  --yr-sage-dark: #455040;
  --yr-bg: #F4F6F2;
  --yr-surface: #FFFFFF;
  --yr-ink: #2A2E27;
  --yr-muted: #7C8478;
  --yr-line: #DDE3D8;
  --yr-red-bg: #FBEAEA;
  --yr-red-text: #A34A4A;

  max-width: 560px;
  background: var(--yr-surface);
  border: 0.5px solid var(--yr-line);
  border-radius: 14px;
  padding: 32px;
  color: var(--yr-ink);
}

#yr-reservation-form .yr-header {
  text-align: center;
  margin-bottom: 24px;
}

#yr-reservation-form .yr-logo {
  max-height: 48px;
  max-width: 200px;
  margin-bottom: 10px;
}

#yr-reservation-form .yr-eyebrow {
  font-size: 12px;
  color: var(--yr-muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

#yr-reservation-form .yr-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--yr-ink);
  margin: 0;
}

.yr-field { margin-bottom: 20px; }

.yr-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yr-muted);
  margin-bottom: 8px;
}

.yr-icon-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--yr-line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}

#yr-date-wrapper.yr-icon-field {
  cursor: pointer;
}

.yr-icon-field:hover,
.yr-icon-field:focus-within {
  border-color: var(--yr-sage);
}

.yr-icon-field .yr-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--yr-sage);
}

.yr-icon-field input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 15px;
  color: var(--yr-ink);
  padding: 0;
  cursor: text;
}

#yr-date-wrapper.yr-icon-field input {
  cursor: pointer;
}

.yr-icon-field input:focus { outline: none; }



.yr-slot-placeholder {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--yr-muted);
  padding: 12px 4px;
  text-align: center;
}

.yr-daily-menu {
  font-size: 13px;
  color: var(--yr-ink);
  background: var(--yr-bg);
  border: 1px solid var(--yr-line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: -8px 0 20px;
  line-height: 1.5;
}

.yr-guest-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.yr-guest-btn {
  flex: 1;
  min-width: 44px;
  padding: 11px 0;
  border: 1px solid var(--yr-line);
  border-radius: 9px;
  background: var(--yr-surface);
  color: var(--yr-ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.yr-guest-btn:hover:not(:disabled) { border-color: var(--yr-sage); }

.yr-guest-btn.active {
  background: var(--yr-sage-dark);
  border-color: var(--yr-sage-dark);
  color: #fff;
  cursor: default;
}

.yr-guest-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.yr-guest-more-wrapper {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.yr-guest-more-wrapper.visible { display: flex; }

.yr-guest-more-wrapper input[type="number"] {
  width: 90px;
  padding: 10px 12px;
  border: 1px solid var(--yr-line);
  border-radius: 9px;
  font-size: 15px;
}

.yr-guest-more-wrapper span {
  font-size: 12px;
  color: var(--yr-muted);
}

/* Hinweis für größere Gruppen (mehr Personen als der größte Tisch) */
.yr-group-notice,
.yr-lead-notice {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--yr-bg);
  border-left: 3px solid var(--yr-sage);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--yr-ink);
}
.yr-group-notice.visible,
.yr-lead-notice.visible { display: block; }
.yr-group-notice p,
.yr-lead-notice p { margin: 0 0 6px; }
.yr-group-notice p:last-child,
.yr-lead-notice p:last-child { margin-bottom: 0; }
.yr-group-notice p:first-child,
.yr-lead-notice p:first-child { font-weight: 600; }
.yr-group-notice a,
.yr-lead-notice a { color: var(--yr-sage-dark); font-weight: 600; }
.yr-lead-notice { grid-column: 1 / -1; margin-top: 0; }

/* Ausnahme „teilweise reserviert“: Hinweis über den Uhrzeiten (normaler Text, nicht fett – Uhrzeiten bleiben wählbar) */
.yr-busy-notice { margin-bottom: 4px; }
.yr-busy-notice p:first-child { font-weight: 400; }

.yr-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.yr-slot-btn {
  padding: 10px 8px;
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  background: var(--yr-surface);
  border: 1.5px solid var(--yr-sage);
}

.yr-slot-btn:hover:not(:disabled) { background: var(--yr-bg); }

.yr-slot-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--yr-ink);
}

.yr-slot-sub {
  font-size: 11px;
  margin-top: 2px;
  color: var(--yr-sage);
}

.yr-slot-btn.selected {
  background: var(--yr-sage-dark);
  border-color: var(--yr-sage-dark);
  cursor: default;
}
.yr-slot-btn.selected .yr-slot-time { color: #fff; }
.yr-slot-btn.selected .yr-slot-sub { color: #C8D4C2; }

.yr-slot-btn.full {
  background: var(--yr-red-bg);
  border-color: var(--yr-red-text);
  cursor: not-allowed;
}
.yr-slot-btn.full .yr-slot-time,
.yr-slot-btn.full .yr-slot-sub { color: var(--yr-red-text); }

.yr-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.yr-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--yr-muted);
}

.yr-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.yr-legend-free { background: #fff; border: 1.5px solid var(--yr-sage); }
.yr-legend-sel { background: var(--yr-sage-dark); }
.yr-legend-full { background: var(--yr-red-bg); border: 1.5px solid var(--yr-red-text); }

.yr-area-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--yr-sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 6px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid var(--yr-line);
}

.yr-area-label svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--yr-sage);
}

.yr-area-group { margin-bottom: 18px; }

.yr-table-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.yr-table-btn {
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  background: var(--yr-surface);
  border: 1.5px solid var(--yr-sage);
  color: var(--yr-ink);
}

.yr-table-btn:hover:not(:disabled) { background: var(--yr-bg); }

.yr-table-btn.selected {
  background: var(--yr-sage-dark);
  border-color: var(--yr-sage-dark);
  color: #fff;
  cursor: default;
}

.yr-table-btn.full {
  background: var(--yr-red-bg);
  border-color: var(--yr-red-text);
  color: var(--yr-red-text);
  cursor: not-allowed;
}

/* zu klein für die Gruppe (nicht belegt) – zurückhaltender als „belegt“ */
.yr-table-btn.full.yr-too-small {
  background: transparent;
  border-color: var(--yr-line);
  color: var(--yr-ink);
  opacity: .5;
}

#yr-guests-field,
#yr-time-field,
#yr-table-field,
#yr-personal-field {
  scroll-margin-top: 60px;
}

.yr-tear-divider {
  border: none;
  border-top: 1.5px dashed var(--yr-line);
  margin: 28px 0;
}

.yr-field select,
.yr-field textarea {
  border: 1px solid var(--yr-line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  max-width: 100%;
  font-size: 15px;
  color: var(--yr-ink);
  box-sizing: border-box;
  font-family: inherit;
  background: var(--yr-surface);
}

.yr-field select:focus,
.yr-field textarea:focus {
  outline: none;
  border-color: var(--yr-sage);
}

.yr-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-transform: none;
  font-size: 12px;
  color: var(--yr-muted);
  line-height: 1.5;
}

.yr-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--yr-sage-dark);
  flex-shrink: 0;
}

.yr-error {
  color: var(--yr-red-text);
  font-size: 13px;
  margin: 6px 0 0;
  display: none;
}
.yr-error.active { display: block; }

.yr-success {
  color: #3B6D11;
  font-weight: 600;
  font-size: 15px;
  margin: 20px 0;
  padding: 14px 16px;
  background: #EAF3DE;
  border-radius: 10px;
  display: none;
}
.yr-success.active { display: block; }

#yr-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--yr-sage-dark);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
}

#yr-submit-btn:hover:not(:disabled) { background: var(--yr-sage); }
#yr-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 600px) {
  #yr-reservation-form { padding: 22px 18px; }
  #yr-reservation-form .yr-title { font-size: 21px; }
  .yr-slot-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Kombinierte Tische für größere Gruppen (ab 0.10.0) */
.yr-combo-info {
  padding: 12px 14px;
  border: 1px solid var(--yr-line);
  border-left: 3px solid var(--yr-sage);
  border-radius: 6px;
  background: var(--yr-surface);
  color: var(--yr-ink);
  line-height: 1.5;
}

/* Raumplan – Link neben „Tisch“ und Dialog (0.10.1) */
.yr-field-head {
  display: flex;
  align-items: baseline;
  margin-bottom: 6px;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Raumplan-Button als Pille (0.11.0): gut sichtbar, aber zweitrangig neben der Tischwahl */
#yr-reservation-wrapper .yr-plan-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--yr-sage);
  border-radius: 999px;
  background: var(--yr-surface);
  box-shadow: none;
  color: var(--yr-sage);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

#yr-reservation-wrapper .yr-plan-link:hover,
#yr-reservation-wrapper .yr-plan-link:focus-visible {
  background: var(--yr-sage);
  color: var(--yr-surface);
}

#yr-reservation-wrapper .yr-plan-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--yr-surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  overflow: hidden;
}

#yr-reservation-wrapper .yr-plan-dialog[open] {
  display: flex;
  flex-direction: column;
}

#yr-reservation-wrapper .yr-plan-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-bottom: 1px solid var(--yr-line);
  color: var(--yr-ink);
  font-size: 15px;
}

#yr-reservation-wrapper .yr-plan-dialog::backdrop {
  background: rgba(23, 22, 20, .6);
}

#yr-reservation-wrapper .yr-plan-scroll {
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#yr-reservation-wrapper .yr-plan-img {
  display: block;
  width: 100%;
  min-width: 560px;
  height: auto;
}

#yr-reservation-wrapper .yr-plan-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--yr-line);
  border-radius: 50%;
  background: var(--yr-surface);
  color: var(--yr-ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#yr-reservation-wrapper .yr-plan-close:hover {
  border-color: var(--yr-sage);
}
