/* =============================================
   TERMIN-SEITE
   ============================================= */

.termin-page {
  background: var(--cream);
  min-height: calc(100vh - 60px);
}

.termin-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: calc(100vh - 300px);
}

/* -----------------------------------------------
   Linke Info-Spalte – hell, passend zur Website
----------------------------------------------- */
.termin-info {
  background: var(--cream);
  color: var(--dark);
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--light);
}

.termin-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.termin-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.termin-subtext {
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--mid);
  max-width: 280px;
}

.termin-divider {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  margin: 2rem 0;
  opacity: 0.7;
}

/* Kontaktinfos horizontal nebeneinander */
.termin-contact-details {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.termin-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.termin-detail-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.termin-detail-value {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s;
}

a.termin-detail-value:hover {
  color: var(--gold);
}

/* Dekoratives SVG */
.termin-deco {
  position: absolute;
  bottom: 3rem;
  right: 2rem;
  opacity: 0.15;
  width: 60px;
}

/* -----------------------------------------------
   Rechte Formular-Spalte
----------------------------------------------- */
.termin-form-wrap {
  background: var(--white);
  padding: 3.5rem 3rem;
  border-left: 1px solid var(--light);
}

.termin-form-intro {
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
}

.termin-form-intro abbr {
  text-decoration: none;
  color: var(--gold);
}

/* Zeilen */
.termin-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.termin-row--2 {
  grid-template-columns: 1fr 1fr;
}

/* Einzelnes Feld */
.termin-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.termin-row .termin-field {
  margin-bottom: 0;
}

.termin-field label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark);
}

.termin-field label span {
  color: var(--gold);
  font-weight: 400;
}

.termin-field input,
.termin-field textarea {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: var(--dark);
  background: var(--cream);
  border: 1px solid var(--light);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.25s, background 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

.termin-field input::placeholder,
.termin-field textarea::placeholder {
  color: #bbb;
  font-size: 0.8rem;
}

.termin-field input:focus,
.termin-field textarea:focus {
  border-color: var(--gold);
  background: #fff;
}

.termin-field input[type="date"],
.termin-field input[type="time"] {
  cursor: pointer;
  color-scheme: light;
}

.termin-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

/* Fehler */
.termin-field.has-error input,
.termin-field.has-error textarea {
  border-color: #c0392b;
  background: #fff9f9;
}

.termin-field-error {
  font-size: 0.72rem;
  color: #c0392b;
  letter-spacing: 0.04em;
}

/* Abschicken */
.termin-submit-row {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

/* -----------------------------------------------
   Button – gleiche Goldfarbe wie Termin-Button in Nav
----------------------------------------------- */
.termin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
  -webkit-appearance: none;
}

.termin-btn:hover {
  background: #b5924f;
  color: #fff;
}

.termin-btn-arrow {
  font-size: 1rem;
  transition: transform 0.2s;
}

.termin-btn:hover .termin-btn-arrow {
  transform: translateX(4px);
}

/* -----------------------------------------------
   Erfolgs-Meldung
----------------------------------------------- */
.termin-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 300px;
  gap: 1.25rem;
}

.termin-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.termin-success h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--dark);
}

.termin-success p {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.8;
  max-width: 360px;
}

/* -----------------------------------------------
   Fehler-Alert
----------------------------------------------- */
.termin-alert {
  background: #fff3f3;
  border: 1px solid #f5c6c6;
  color: #8b1a1a;
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.termin-alert a {
  color: #8b1a1a;
  font-weight: 600;
}

/* =============================================
   RESPONSIVE – Termin-Seite
   ============================================= */

/* ── Termin: Tablet-Layout bleibt bis 480px erhalten ── */
@media (max-width: 900px) {
  .termin-container {
    grid-template-columns: 300px 1fr;
    min-height: unset;
  }

  .termin-info {
    padding: 2.5rem 1.75rem;
  }

  .termin-form-wrap {
    padding: 2.5rem 2rem;
  }

  .termin-heading {
    font-size: 2.4rem;
  }

  .termin-deco {
    display: none;
  }
}

@media (max-width: 680px) {
  .termin-container {
    grid-template-columns: 200px 1fr;
  }

  .termin-info {
    padding: 2rem 1.25rem;
  }

  .termin-form-wrap {
    padding: 2rem 1.25rem;
  }

  .termin-heading {
    font-size: 1.9rem;
  }

  .termin-subtext {
    font-size: 0.78rem;
    max-width: 100%;
  }

  .termin-detail-label {
    font-size: 0.55rem;
  }

  .termin-detail-value {
    font-size: 0.78rem;
  }

  .termin-row--2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .termin-submit-row {
    justify-content: stretch;
  }

  .termin-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Nur auf sehr kleinen Phones: dann stacked ── */
@media (max-width: 420px) {
  .termin-container {
    grid-template-columns: 1fr;
  }

  .termin-info {
    border-right: none;
    border-bottom: 1px solid var(--light);
    padding: 1.75rem 1.25rem;
  }

  .termin-heading {
    font-size: 2rem;
  }

  .termin-contact-details {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 2rem;
  }
}

/* ── Mobil: Heading zentriert auf Cream, Details/Formular auf Weiß ── */
@media (max-width: 600px) {
  .termin-page {
    background: var(--white);
  }

  .termin-container {
    grid-template-columns: 1fr;
  }

  /* Heading-Bereich: Cream-Hintergrund, zentriert – wie ulm-intro-band */
  .termin-info {
    border-right: none;
    border-bottom: none;
    padding: 2.5rem 1.5rem 0;
    background: var(--cream);
    text-align: center;
    overflow: visible;
  }

  .termin-eyebrow {
    animation: pageHeadingFadeUp 0.9s ease both;
  }

  .termin-heading {
    font-size: clamp(2.2rem, 8vw, 3rem);
    animation: pageHeadingFadeUp 0.9s ease 0.15s both;
  }

  .termin-subtext {
    animation: pageHeadingFadeUp 0.9s ease 0.3s both;
    max-width: 100%;
    display: inline-block;
  }

  /* Divider: zentriert */
  .termin-divider {
    animation: pageHeadingFadeUp 0.9s ease 0.25s both;
    margin-left: auto;
    margin-right: auto;
  }

  /* Ab Kontaktdetails: weißer Hintergrund, linksbündig */
  .termin-contact-details {
    background: var(--white);
    margin: 2rem -1.5rem 0;
    padding: 2rem 1.5rem;
    text-align: left;
    animation: none;
  }

  .termin-detail,
  .termin-detail-label,
  .termin-detail-value {
    animation: none;
  }

  .termin-deco {
    display: none;
  }

  /* Formular-Bereich */
  .termin-form-wrap {
    padding: 2rem 1.5rem;
    background: var(--white);
  }
}
