/* Terminanfrage (Quiz + Kalender) – Farben aus DESIGN.md */

main.termin-main { padding-block: 48px 80px; max-width: 920px; }
.termin-head h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 14px; }
.termin-intro { color: var(--muted); max-width: 620px; font-size: 1.05rem; }
.termin-muted { color: var(--muted); }
/* style.css färbt Links in main.container; Buttons behalten ihre Farben */
main.termin-main a.button { text-decoration: none; }
main.termin-main a.button-dark { color: #fff; }
main.termin-main a.button-lime { color: var(--navy); }

.termin-card {
  position: relative;
  margin-top: 30px;
  padding: 34px 38px 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 25px #112d6214;
  overflow: hidden;
}
.termin-progress { position: absolute; inset: 0 0 auto; height: 5px; background: var(--light); }
.termin-progress span { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s; }
.termin-step-label { color: #567333; font-size: .73rem; letter-spacing: .16em; font-weight: 750; text-transform: uppercase; margin-bottom: 10px; }
.termin-step:focus { outline: none; }
.termin-step h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 22px; }
.termin-step h3 { font-size: 1.05rem; margin-bottom: 12px; }

.termin-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.termin-option {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  text-align: left;
  transition: border-color .2s, background .2s, transform .2s;
}
.termin-option:hover { border-color: var(--navy); background: var(--light); transform: translateY(-2px); }
.termin-option[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }

.termin-back {
  margin-top: 26px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font-weight: 650;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.termin-change { margin: 0 0 22px; }

/* Kalender */
.termin-picker { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.termin-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.termin-month strong { font-size: 1.05rem; }
.termin-nav {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1;
}
.termin-nav:disabled { opacity: .35; cursor: default; }
.termin-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.termin-weekday { text-align: center; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding-bottom: 4px; }
.termin-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 6px;
  font-size: .92rem;
}
button.termin-day {
  border: 1px solid #b6d97d;
  background: #f1f7e9;
  color: var(--navy);
  font-weight: 700;
}
button.termin-day:hover { background: #e2f1c7; }
button.termin-day[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.termin-day-off { color: #a3afbb; }
.termin-times { min-height: 120px; padding: 20px; border-radius: 6px; background: var(--light); }
.termin-time-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.termin-time { justify-content: center; min-height: 50px; padding: 10px; }

/* Zusammenfassung */
.termin-summary {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 22px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border-left: 3px solid var(--green);
  background: var(--light);
  font-size: .94rem;
}
.termin-summary dt { color: var(--muted); }
.termin-summary dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; white-space: pre-line; }

/* Formular */
.termin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.termin-field-wide { grid-column: 1 / -1; }
.termin-form label, .termin-decide label { display: block; font-size: .82rem; font-weight: 650; margin: 14px 0 6px; }
.termin-required { color: #b42318; }
.termin-form input:not([type="checkbox"]), .termin-form textarea, .termin-decide textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5df;
  border-radius: 4px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
}
.termin-form input:focus-visible, .termin-form textarea:focus-visible, .termin-decide textarea:focus-visible,
.termin-option:focus-visible, .termin-day:focus-visible, .termin-nav:focus-visible, .termin-back:focus-visible {
  outline: 3px solid #629c14;
  outline-offset: 2px;
}
.termin-form ::placeholder, .termin-decide ::placeholder { color: #74808c; }
.termin-form .termin-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--muted); margin-top: 18px; }
.termin-check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--navy); }
.termin-check a { color: var(--navy); text-decoration: underline; }
.termin-form .button { margin-top: 22px; }
.termin-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.termin-error, .termin-success { font-size: .9rem; padding: 12px 14px; margin: 16px 0 0; border-left: 3px solid; }
.termin-error { background: #fdf0f0; border-color: #b42318; color: #7a1a12; }
.termin-success { background: #f1f7e9; border-color: #78a926; color: var(--ink); }
.termin-hint { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }

/* Fertig */
.termin-done { text-align: center; padding: 18px 0 6px; }
.termin-done-mark {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  font-size: 1.9rem;
  font-weight: 700;
}
.termin-done p { max-width: 560px; margin-inline: auto; }
.termin-done .button { margin-top: 12px; }

/* Annehmen / Ablehnen */
.termin-decide h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 20px; }
.termin-decide .eyebrow { margin-bottom: 12px; }
.termin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.termin-actions[hidden], .termin-actions button[hidden] { display: none; }
.termin-actions .button:disabled { opacity: .6; cursor: wait; transform: none; }

@media (max-width: 780px) {
  .termin-picker { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  main.termin-main { padding-block: 32px 56px; }
  .termin-card { padding: 28px 18px 26px; }
  .termin-options { grid-template-columns: 1fr; }
  .termin-form { grid-template-columns: 1fr; }
  .termin-summary { grid-template-columns: 1fr; gap: 2px; }
  .termin-summary dd { margin-bottom: 8px; }
  .termin-days { gap: 4px; }
  .termin-actions .button { width: 100%; }
}

/* Gegenvorschlag Glasreinigung */
.glass-propose { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.glass-propose[hidden] { display: none; }
.glass-propose h2 { font-size: 1.4rem; margin-bottom: 8px; }
.glass-propose .termin-month { margin-top: 18px; max-width: 420px; }
.glass-propose .termin-days { max-width: 420px; }
