/* ==========================================================================
   NPA Immobilien — Terminwahl, helle Fassung
   Fuer Formulare auf hellem Grund, etwa die Kontaktseite.
   Die dunkle Fassung fuer die Objektseite steht in objekt.css.
   ========================================================================== */

.tk-hell .tk-titel {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.tk-hell .tk-ersatz { display: flex; flex-direction: column; gap: 6px; }
.tk-hell .tk {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
}
.tk-hell .tk[hidden] { display: none; }

.tk-hell .tk-kopf {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.tk-hell .tk-monat {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
}
.tk-hell .tk-pfeil {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gold-dark);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.tk-hell .tk-pfeil:hover:not(:disabled) { background: var(--cream-2); border-color: var(--gold); }
.tk-hell .tk-pfeil:disabled { opacity: 0.32; cursor: default; }
.tk-hell .tk-pfeil svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.tk-hell .tk-wochentage, .tk-hell .tk-gitter {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.tk-hell .tk-wochentage {
  margin-bottom: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
}
.tk-hell .tk-leer { display: block; }
.tk-hell .tk-tag {
  aspect-ratio: 1 / 1;
  min-height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.tk-hell .tk-tag:hover { background: var(--cream-2); border-color: var(--gold); }
.tk-hell .tk-tag-aus {
  background: transparent;
  border-color: transparent;
  color: #bdb4a4;
  cursor: default;
}
.tk-hell .tk-tag-aus:hover { background: transparent; border-color: transparent; }
.tk-hell .tk-tag-aktiv, .tk-hell .tk-tag-aktiv:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
  font-weight: 600;
}
.tk-hell .tk-tag:focus-visible,
.tk-hell .tk-zeit:focus-visible,
.tk-hell .tk-pfeil:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.tk-hell .tk-zeit-hinweis {
  margin: 14px 0 8px;
  font-size: 0.78rem;
  color: var(--text-light);
}
.tk-hell .tk-zeiten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 7px;
}
.tk-hell .tk-zeit {
  padding: 9px 4px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.tk-hell .tk-zeit:hover { background: var(--cream-2); border-color: var(--gold); }
.tk-hell .tk-zeit-aktiv, .tk-hell .tk-zeit-aktiv:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
  font-weight: 600;
}
.tk-hell .tk-gewaehlt {
  margin: 12px 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--gold-dark);
}
@media (prefers-reduced-motion: reduce) {
  .tk-hell .tk-tag, .tk-hell .tk-zeit, .tk-hell .tk-pfeil { transition: none; }
}

/* ---------- Sehr schmale Handys ----------
   Sieben Wochentage nebeneinander brauchen Platz. Die Innenraender und
   Abstaende werden kleiner, die Tagesfelder duerfen mitschrumpfen. */
@media (max-width: 400px) {
  .tk-hell .tk { padding: 12px 9px 12px; }
  .tk-hell .tk-gitter, .tk-hell .tk-wochentage { gap: 2px; }
  .tk-hell .tk-tag { min-height: 26px; min-width: 0; font-size: 0.78rem; border-radius: 7px; }
  .tk-hell .tk-zeiten { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 5px; }
  .tk-hell .tk-zeit { padding: 8px 3px; font-size: 0.76rem; }
}
