/* treibervisuals — Kundenbereich /kunden/
   Ohne Code: Kopf wie About/Contact plus Eingabefeld. Mit Code (.is-open): Galerie füllt den Bildschirm. */

/* ---------- Eingabe ---------- */

.kd__box {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 28px;
  padding: 0 var(--pad) clamp(120px, 14vw, 220px);
}
.kd__form { grid-column: 1 / span 7; }
.kd__help { grid-column: 9 / span 4; align-self: end; color: var(--muted); }
.kd__help p + p { margin-top: 12px; }
.kd__help a { color: var(--ink); }
.kd__help .kd__legal { display: flex; gap: 20px; margin-top: 24px; }
.kd__help .kd__legal a { color: var(--muted); }
.kd__label { display: block; margin-bottom: 12px; color: var(--muted); }
.kd__row {
  display: flex;
  align-items: stretch;
  border-bottom: 2px solid var(--ink);
}
.kd__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 0 14px;
  font: inherit;
  font-size: clamp(26px, 3.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
}
.kd__input::placeholder { color: var(--muted); opacity: 0.55; }
.kd__input[aria-invalid="true"] { color: #d4502a; }
.kd__row:focus-within { border-bottom-color: var(--ink); box-shadow: 0 2px 0 0 var(--ink); }
.kd__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 4px 16px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.kd__go .arrow { font-size: 22px; transition: transform 0.4s var(--ease); }
.kd__go:hover .arrow, .kd__go:focus-visible .arrow { transform: translateX(6px); }
.kd__err { min-height: 1.5em; margin-top: 12px; color: #d4502a; font-size: 15px; }
.kd__noscript { padding: 0 var(--pad) 80px; }

/* ---------- Galerie ---------- */

html.kd-lock, html.kd-lock body { height: 100%; overflow: hidden; }
.kd__view {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 18px) var(--pad) clamp(14px, 2svh, 24px);
}
.kd__view[hidden] { display: none; }
.kd__bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 32px;
  margin-bottom: clamp(14px, 2svh, 22px);
}
.kd__title { font-size: clamp(30px, 3vw, 48px); line-height: 0.95; letter-spacing: -0.05em; outline: none; }
.kd__links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.kd__link {
  color: var(--muted);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 0.3s var(--ease), background-size 0.45s var(--ease);
}
.kd__link:hover, .kd__link:focus-visible { color: var(--ink); background-size: 100% 1px; }
.kd__frame {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--placeholder);
}
.kd__frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 899px) {
  .kd__box { grid-template-columns: minmax(0, 1fr); }
  .kd__form, .kd__help { grid-column: 1 / -1; }
  .kd__view { padding-left: 0; padding-right: 0; padding-bottom: 0; }
  .kd__bar { padding: 0 var(--pad); }
}
@media (max-width: 520px) {
  .kd__row { flex-wrap: wrap; }
  .kd__input { flex-basis: 100%; }
  .kd__go { padding: 12px 0 14px; }
}
