/* TB2B Termin (09.11.2026)
   Zweiter Weg neben dem Formular: links die Aussage, rechts eine Karte mit
   angedeutetem Wochenblatt, Calendly-Logo und Knopf. Der Kalender liegt erst
   nach dem Klick auf der Seite (assets/tb2b-termin.js). */

:is(.bklp, body) .termin {
  background-color: var(--panel);
  background-image: linear-gradient(rgba(11, 28, 48, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 28, 48, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  padding-block: clamp(56px, 7vw, 88px) !important;
  scroll-margin-top: 96px;
}

:is(.bklp, body) .termin .wrap { width: 100%; }

:is(.bklp, body) .termin .termin-kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 32px 72px;
  align-items: center;
}

:is(.bklp, body) .termin .termin-kopf:has(.termin-aktion[hidden]) { grid-template-columns: 1fr; }

:is(.bklp, body) .termin h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

:is(.bklp, body) .termin .termin-text p {
  margin: 16px 0 0;
  font-size: 1.125rem;
  color: var(--ink);
}

:is(.bklp, body) .termin .termin-text p.termin-hinweis {
  margin: 28px 0 0;
  max-width: 46ch;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--grey);
  opacity: 1;
}

:is(.bklp, body) .termin .termin-hinweis a { text-decoration: underline; }

:is(.bklp, body) .termin .termin-aktion {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--r-m);
  padding: 20px;
}

:is(.bklp, body) .termin .termin-aktion[hidden] { display: none; }

:is(.bklp, body) .termin .termin-logo {
  display: block;
  /* !important: eine allgemeine Bildregel zieht Bilder auf dem Handy sonst auf volle Breite. */
  width: 123px !important;
  max-width: none !important;
  height: 25px !important;
  margin-bottom: 18px;
}

:is(.bklp, body) .termin .termin-blatt {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
}

:is(.bklp, body) .termin .termin-tag {
  padding-bottom: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--grey);
  text-align: center;
}

:is(.bklp, body) .termin .termin-feld {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: var(--r-s);
  box-shadow: inset 0 0 0 1px rgba(195, 197, 217, 0.45);
  transition: background 0.2s, color 0.2s;
}

:is(.bklp, body) .termin .termin-feld.frei {
  background: var(--panel);
  box-shadow: none;
}

:is(.bklp, body) .termin .termin-feld.wahl {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--signal);
  color: var(--signal);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
}

:is(.bklp, body) .termin:has([data-termin-start]:hover) .termin-feld.wahl,
:is(.bklp, body) .termin:has([data-termin-start]:focus-visible) .termin-feld.wahl {
  background: var(--signal);
  color: #fff;
}

:is(.bklp, body) .termin .termin-aktion .btn {
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

:is(.bklp, body) .termin .termin-rahmen {
  margin-top: 24px;
  scroll-margin-top: 96px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 8px;
}

:is(.bklp, body) .termin .termin-rahmen[hidden] { display: none; }

:is(.bklp, body) .termin .termin-rahmen iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
}

@media (max-width: 860px) {
  :is(.bklp, body) .termin .termin-kopf { grid-template-columns: minmax(0, 1fr); }
  :is(.bklp, body) .termin .termin-aktion { padding: 14px; }
}

@media (max-width: 767px) {
  :is(.bklp, body) .termin .termin-rahmen iframe { height: 980px; }
}
