/* Kontakt – eigener Aufbau (20.11.2026). Leitidee: zwei Anschlüsse. Nur auf /vis/kontakt eingebunden. */

/* ---------- Kopf ---------- */
.ka-kopf { padding-top: clamp(24px, 3.4vw, 44px); padding-bottom: clamp(40px, 4.6vw, 64px); }
.ka-titelzeile {
  display: grid; grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.4fr); gap: 20px clamp(32px, 5vw, 80px); align-items: end;
}
.ka-titelzeile h1 {
  font-size: clamp(2.2rem, 4.5vw, 4.1rem); font-stretch: 116%; font-weight: 720; line-height: 1.02;
  letter-spacing: -0.03em; max-width: 17ch;
}
.ka-lead { font-size: 18px; line-height: 1.6; max-width: 44ch; padding-bottom: 6px; }
.ka-frage {
  margin-top: clamp(40px, 4.6vw, 64px); font-family: var(--mono); font-size: 12px; font-weight: 500; font-stretch: 87.5%;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--tusche);
}

/* ---------- Auswahl: zwei Profile, die gewählte Seite rastet ein ---------- */
.ka-wahl { position: relative; margin-top: 14px; container-type: inline-size; --hub: 2.143cqw; --oben: 8.57%; }
.ka-profil { display: block; width: 100%; height: auto; overflow: visible; }
.ka-profil-klein { display: none; }
.ka-profil pattern line { stroke: var(--linie-hell); stroke-width: 1.1; }
.ka-flaeche { stroke: none; transition: fill 0.35s ease; }
.ka-kante { fill: none; stroke: var(--tusche); stroke-width: 2.4; stroke-linejoin: miter; }
.ka-bruch { fill: none; stroke: var(--tusche); stroke-width: 1.1; }
.ka-mitte { display: none; }
.ka-rast {
  fill: none; stroke: var(--signal); stroke-width: 5; stroke-linejoin: miter;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.8s var(--schnell);
}
.ka-stueck, .ka-wahl-knopf { transition: transform 0.6s cubic-bezier(0.34, 1.32, 0.64, 1); }
/* Grundlage: beide Teile liegen offen, mit Fuge */
.ka-profil-gross .ka-st-buero { transform: translateX(-24px); }
.ka-profil-gross .ka-st-ing { transform: translateX(24px); }
.ka-profil-klein .ka-st-buero { transform: translateX(-8px); }
.ka-profil-klein .ka-st-ing { transform: translateX(8px); }
/* Gewählt: das Teil fährt in sein Gegenstück und rastet ein */
.ka-wahl[data-wahl="buero"] .ka-profil-gross .ka-st-buero { transform: translateX(24px); }
.ka-wahl[data-wahl="ing"] .ka-profil-gross .ka-st-ing { transform: translateX(-24px); }
.ka-wahl[data-wahl="buero"] .ka-profil-klein .ka-st-buero { transform: translateX(8px); }
.ka-wahl[data-wahl="ing"] .ka-profil-klein .ka-st-ing { transform: translateX(-8px); }
.ka-wahl[data-wahl="buero"] .ka-st-buero .ka-flaeche,
.ka-wahl[data-wahl="ing"] .ka-st-ing .ka-flaeche { fill: var(--tusche); }
.ka-wahl[data-wahl="buero"] .ka-st-buero .ka-rast,
.ka-wahl[data-wahl="ing"] .ka-st-ing .ka-rast { stroke-dashoffset: 0; transition-delay: 0.45s; }

.ka-wahl-knopf {
  position: absolute; top: var(--oben); bottom: var(--oben); width: 38%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px;
  padding: 0; margin: 0; border: 0; background: transparent; font: inherit; text-align: left;
  color: var(--tusche); text-decoration: none; cursor: pointer;
}
.ka-k-buero { left: 7%; transform: translateX(calc(var(--hub) * -1)); }
.ka-k-ing { right: 7%; align-items: flex-end; text-align: right; transform: translateX(var(--hub)); }
.ka-wahl[data-wahl="buero"] .ka-k-buero { transform: translateX(var(--hub)); color: #fff; }
.ka-wahl[data-wahl="ing"] .ka-k-ing { transform: translateX(calc(var(--hub) * -1)); color: #fff; }
.ka-wahl-nr, .ka-wahl-sub {
  font-family: var(--mono); font-size: 12px; font-weight: 500; font-stretch: 87.5%; letter-spacing: 0.06em;
  text-transform: uppercase; line-height: 1.4; background: #fff; padding: 2px 6px; margin: 0 -6px;
  transition: background-color 0.35s, color 0.35s;
}
.ka-wahl-nr { color: var(--leise); }
.ka-wahl-titel {
  font-size: clamp(1.6rem, 3.3vw, 3.1rem); font-weight: 760; font-stretch: 120%; letter-spacing: -0.03em; line-height: 1;
  background: #fff; padding: 4px 8px 6px; margin: 0 -8px; hyphens: manual; transition: background-color 0.35s;
}
.ka-wahl[data-wahl="buero"] .ka-k-buero :is(.ka-wahl-nr, .ka-wahl-sub, .ka-wahl-titel),
.ka-wahl[data-wahl="ing"] .ka-k-ing :is(.ka-wahl-nr, .ka-wahl-sub, .ka-wahl-titel) { background: transparent; color: #fff; }
.ka-wahl[data-wahl="buero"] .ka-k-buero .ka-wahl-nr,
.ka-wahl[data-wahl="ing"] .ka-k-ing .ka-wahl-nr { color: var(--signal-auf-blau); }
.ka-wahl-knopf:focus-visible { outline: 2px solid var(--signal); outline-offset: 10px; }
html:not(.ka-js) .ka-wahl-knopf:hover .ka-wahl-titel { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
@media (hover: hover) and (pointer: fine) {
  .ka-wahl.bereit:not([data-wahl="buero"]):has(.ka-k-buero:hover) .ka-profil-gross .ka-st-buero { transform: translateX(-14px); }
  .ka-wahl.bereit:not([data-wahl="ing"]):has(.ka-k-ing:hover) .ka-profil-gross .ka-st-ing { transform: translateX(14px); }
  .ka-wahl.bereit:not([data-wahl="buero"]) .ka-k-buero:hover { transform: translateX(calc(var(--hub) * -0.58)); }
  .ka-wahl.bereit:not([data-wahl="ing"]) .ka-k-ing:hover { transform: translateX(calc(var(--hub) * 0.58)); }
}
/* Haken an der Fuge, sobald eingerastet */
.ka-haken {
  position: absolute; left: 50%; bottom: var(--oben); width: 24px; height: 24px; margin: 0 0 -12px -12px;
  display: grid; place-items: center; background: var(--signal); pointer-events: none;
  transform: translateX(var(--hx, 0)) scale(0); transition: transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1) 0.5s;
}
.ka-haken svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; }
.ka-wahl[data-wahl="buero"] .ka-haken { --hx: var(--hub); transform: translateX(var(--hx)) scale(1); }
.ka-wahl[data-wahl="ing"] .ka-haken { --hx: calc(var(--hub) * -1); transform: translateX(var(--hx)) scale(1); }
.ka-wahl-hinweis { margin-top: 14px; font-size: 14.5px; color: var(--leise); }

/* ---------- Formular und Seitenspalte ---------- */
.ka-anschluss { padding: clamp(40px, 4.6vw, 64px) 0 clamp(80px, 9vw, 128px); }
.ka-raster {
  display: grid; grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.2fr); grid-template-areas: "felder seite";
  gap: clamp(28px, 4vw, 64px); align-items: start;
}
.ka-raster.ka-rechts { grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.6fr); grid-template-areas: "seite felder"; }
.ka-felder { grid-area: felder; min-width: 0; }
.ka-feld { position: relative; border: 1.5px solid var(--tusche); border-top: 4px solid var(--signal); background: #fff; }
.ka-feld[hidden] { display: none; }
.ka-feld:not([hidden]) + .ka-feld:not([hidden]) { margin-top: 40px; }
.ka-bereit-felder .ka-feld { animation: ka-auf 0.45s var(--schnell); }
@keyframes ka-auf { from { opacity: 0; transform: translateY(10px); } }
.ka-feld-kopf { padding: clamp(22px, 3vw, 36px) clamp(20px, 3vw, 40px) 0; }
.ka-feld-nr {
  font-family: var(--mono); font-size: 11.5px; font-stretch: 87.5%; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--signal-text); margin-bottom: 8px;
}
.ka-feld-kopf h3 { font-size: clamp(1.4rem, 2.2vw, 1.95rem); font-stretch: 118%; letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 10px; }
.ka-feld-kopf p:not(.ka-feld-nr) { font-size: 16px; line-height: 1.55; max-width: 60ch; }
.ka-feld-kopf p:not(.ka-feld-nr) + p { margin-top: 10px; }
.ka-feld .formular { padding: clamp(22px, 2.6vw, 32px) clamp(20px, 3vw, 40px) clamp(24px, 3vw, 36px); }
.ka-ablauf {
  border-top: 1px dashed var(--linie); background: var(--papier);
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 3vw, 40px) clamp(20px, 2.6vw, 28px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px clamp(20px, 3vw, 40px);
}
.ka-ablauf h4 {
  grid-column: 1 / -1; margin: 0; font-family: var(--mono); font-size: 11.5px; font-weight: 500; font-stretch: 87.5%;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--tusche);
}
.ka-ablauf p { font-size: 15px; line-height: 1.55; }
.ka-ablauf-zusatz { color: var(--leise); }
.ka-ablauf-zusatz a { color: var(--tusche); }
.ka-ablauf .text-link-klein { margin-left: 0; }
.ka-punkte { list-style: none; }
.ka-punkte li { position: relative; padding: 0 0 6px 20px; font-size: 15px; line-height: 1.5; }
.ka-punkte li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border: 1.5px solid var(--tusche); }

.ka-seite { grid-area: seite; position: sticky; top: 100px; border: 1.5px solid var(--tusche); background: #fff; }
.ka-seite h2 {
  font-size: clamp(1.2rem, 1.5vw, 1.4rem); font-stretch: 116%; letter-spacing: -0.01em; line-height: 1.2;
  padding: 14px 18px 13px; border-bottom: 1.5px solid var(--tusche);
}
.ka-blick > div, .ka-daten > div { padding: 11px 18px 12px; border-bottom: 1px solid #D3DCE8; }
.ka-daten { background: var(--papier); }
.ka-daten > div:last-child { border-bottom: 0; }
.ka-blick > div:last-child { border-bottom: 1.5px solid var(--tusche); }
.ka-seite dt {
  font-family: var(--mono); font-size: 10.5px; font-stretch: 87.5%; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--leise); margin-bottom: 3px;
}
.ka-seite dd { font-size: 14.5px; line-height: 1.5; color: var(--text); }
.ka-daten dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ka-daten a { color: var(--tusche); font-weight: 600; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .ka-titelzeile { grid-template-columns: minmax(0, 1fr); }
  .ka-raster, .ka-raster.ka-rechts { grid-template-columns: minmax(0, 1fr); grid-template-areas: "felder" "seite"; }
  .ka-seite { position: static; }
}

/* ---------- Handy ---------- */
@media (max-width: 640px) {
  .ka-titelzeile h1 { font-size: clamp(2rem, 9vw, 2.5rem); font-stretch: 110%; letter-spacing: -0.025em; }
  .ka-lead { font-size: 16.5px; }
  .ka-wahl { --hub: 2.151cqw; --oben: 5%; }
  .ka-profil-gross { display: none; }
  .ka-profil-klein { display: block; }
  .ka-wahl-knopf { width: 37%; gap: 10px; }
  .ka-k-buero { left: 6.5%; }
  .ka-k-ing { right: 6.5%; }
  .ka-wahl-titel { font-size: clamp(1.25rem, 6vw, 1.5rem); font-stretch: 108%; line-height: 1.05; }
  .ka-wahl-nr, .ka-wahl-sub { font-size: 10.5px; letter-spacing: 0.03em; }
  .ka-ablauf { grid-template-columns: minmax(0, 1fr); }
  .ka-feld .formular { gap: 18px; }
}
