/* =========================================================
   Success Webdesign – Seite „Kontakt“
   Baut auf css/style.css auf.
   ========================================================= */

/* ================= HERO MIT FORMULAR ================= */
.kt-hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 120px); }
.kt-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 380px at 80% 10%, rgba(47,98,255,.14), transparent 70%),
    radial-gradient(circle, rgba(15,17,21,.08) 1px, transparent 1.4px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.kt-hero-in {
  max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start;
}
.kt-intro { position: sticky; top: 110px; }
.kt-title { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; color: var(--ink); margin: 0 0 22px; text-wrap: balance; }
.kt-lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); margin: 0 0 32px; max-width: 30em; }

.kt-direct { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kt-direct a, .kt-direct li > div {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 18px;
  border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.kt-direct a:hover { border-color: rgba(47,98,255,.5); transform: translateX(4px); box-shadow: 0 18px 36px -26px rgba(47,98,255,.5); }
.kt-d-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--blue-soft); display: grid; place-items: center; flex: none; transition: background-color .25s; }
.kt-d-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.kt-direct a:hover .kt-d-ic { background: var(--blue); }
.kt-direct a:hover .kt-d-ic svg { stroke: #fff; }
.kt-direct span:last-child { display: flex; flex-direction: column; font-weight: 700; font-size: 15.5px; min-width: 0; overflow-wrap: anywhere; }
.kt-direct small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }

/* Formular-Karte */
.kt-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 30px;
  padding: clamp(24px, 3.5vw, 40px); box-shadow: 0 40px 80px -48px rgba(15,17,21,.4);
}
.kt-progress { height: 4px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; margin-bottom: 20px; }
.kt-progress span { display: block; height: 100%; width: 33.33%; background: var(--blue); border-radius: 4px; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.kt-steps-nav { list-style: none; margin: 0 0 28px; padding: 0; display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 14px; color: #9AA0AB; }
.kt-steps-nav li { display: flex; align-items: center; gap: 8px; }
.kt-steps-nav b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; background: var(--bg-soft); color: var(--muted); transition: background-color .3s, color .3s; }
.kt-steps-nav li.is-on { color: var(--ink); font-weight: 700; }
.kt-steps-nav li.is-on b { background: var(--blue); color: #fff; }
.kt-steps-nav li.is-done b { background: var(--ink); color: #fff; }

.kt-step { border: 0; margin: 0; padding: 0; min-width: 0; animation: kt-in .4s ease both; }
.kt-q { padding: 0; margin: 0 0 14px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.kt-q2 { margin-top: 28px; }
.kt-chips { gap: 8px; }
.kt-chip span { border-color: var(--line) !important; color: var(--ink) !important; background: #fff; }
.kt-chip:hover span { border-color: var(--ink) !important; }
.kt-chip input:checked + span { background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important; }
.kt-chip input:focus-visible + span { outline: 2px solid var(--blue) !important; }

.kt-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.kt-field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.kt-field label i { font-style: normal; font-weight: 400; color: var(--muted); }
.kt-field input, .kt-field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.kt-field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.kt-field input:focus, .kt-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.kt-field input[aria-invalid="true"], .kt-field textarea[aria-invalid="true"] { border-color: #C9372C; }
.kt-field ::placeholder { color: #9AA0AB; }
.kt-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.kt-err { font-size: 13px; color: #B42318; min-height: 0; }
.kt-err:empty { display: none; }
.kt-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 8px; cursor: pointer; }
.kt-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.kt-consent a { color: var(--blue); }
.kt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kt-actions { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.kt-actions .btn { margin-left: auto; min-width: 180px; border: 0; cursor: pointer; font-family: var(--font); }
.kt-actions .btn:disabled { opacity: .6; cursor: wait; }
.kt-back { border: 0; background: transparent; color: var(--muted); font: 700 15px var(--font); cursor: pointer; padding: 12px 4px; }
.kt-back:hover { color: var(--ink); }
.kt-status { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.kt-status:empty { display: none; }
.kt-status.is-error { color: #B42318; }

.kt-done { text-align: center; padding: 40px 10px; animation: kt-in .5s ease both; }
.kt-done:focus { outline: none; }
.kt-done-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--blue); display: inline-grid; place-items: center; margin-bottom: 22px; box-shadow: 0 0 0 10px var(--blue-soft); }
.kt-done-ic svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.kt-done h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -.03em; color: var(--ink); }
.kt-done p { margin: 0 auto 26px; max-width: 26em; color: var(--muted); }
@keyframes kt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ================= EINSATZGEBIET-KARTE ================= */
.kt-area { padding: 0 max(12px, env(safe-area-inset-right, 0px)) clamp(24px, 4vw, 48px) max(12px, env(safe-area-inset-left, 0px)); }
.kt-area-in {
  max-width: 1440px; margin: 0 auto; border-radius: 40px; background: var(--ink); color: #A9AFBB; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 96px);
}
.kt-area .sx-h2 { color: #fff; margin-bottom: 18px; }
.kt-area-text > p:not(.sx-label) { margin: 0 0 26px; font-size: 16.5px; max-width: 32em; }
.kt-legend { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #C3C8D2; }
.kt-legend span { display: flex; align-items: center; gap: 10px; }
.kt-lg-home { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(47,98,255,.25); }
.kt-lg-ring { width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed #5A6273; }
.kt-map-wrap { min-width: 0; }
.kt-map { width: 100%; height: auto; display: block; overflow: visible; }
.kt-ring { fill: none; stroke: #2F3542; stroke-width: .4; stroke-dasharray: 1.6 1.6; }
.kt-ring-in { fill: rgba(47,98,255,.08); stroke: rgba(47,98,255,.5); }
.kt-ring-l { font: 4px var(--mono); fill: #5A6273; }
.kt-city circle { fill: #C3C8D2; r: 1.8px; }
.kt-city text { font: 700 5.4px var(--font); fill: #C3C8D2; }
.kt-city:hover circle { fill: #fff; }
.kt-home { fill: var(--blue); stroke: #fff; stroke-width: .8; }
.kt-pulse { fill: var(--blue); opacity: .5; transform-box: fill-box; transform-origin: center; animation: kt-pulse 2.4s ease-out infinite; }
.kt-home-l { font: 700 6px var(--font); fill: #fff; }
@keyframes kt-pulse { from { transform: scale(1); opacity: .5; } to { transform: scale(4); opacity: 0; } }


.kt-d-onsite { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }
.kt-d-onsite .kt-d-ic { background: var(--blue); }
.kt-d-onsite .kt-d-ic svg { stroke: #fff; }
.kt-d-onsite small { color: #7AA2FF !important; }

/* ================= DIGITALE VISITENKARTE ================= */
.kt-vc { padding-block: clamp(80px, 10vw, 136px); }
.kt-vc-in {
  max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: center;
}
.kt-vc-text > p:not(.sx-label) { margin: 18px 0 30px; color: var(--muted); font-size: 17px; max-width: 30em; }
.kt-vc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.kt-vc-actions .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-right: 8px; }
.kt-vc-actions button.btn { cursor: pointer; font-family: var(--font); }
.kt-vc-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.kt-vc-stage::before { content: ""; position: absolute; inset: 10% 5% 20%; background: radial-gradient(closest-side, rgba(47,98,255,.28), transparent); filter: blur(10px); z-index: -1; }
.kt-vc-card {
  position: relative; width: min(100%, 520px); aspect-ratio: 85 / 55; border: 0; padding: 0; cursor: pointer;
  border-radius: 22px; font: inherit; text-align: left;
  box-shadow: 0 2px 4px rgba(15,17,21,.06), 0 40px 70px -30px rgba(15,17,21,.55);
  transform: rotate(-4deg); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.kt-vc-card:hover { transform: rotate(-2deg) translateY(-6px); }
.kt-vc-card.is-flip { animation: vc-flip .56s cubic-bezier(.65,0,.35,1); }
@keyframes vc-flip { 0% { transform: rotate(-4deg) scaleX(1); } 50% { transform: rotate(-4deg) scaleX(0); } 100% { transform: rotate(-4deg) scaleX(1); } }
.kt-vc-face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; display: flex; }
.kt-vc-front { flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(90% 120% at 85% 0%, #22305F 0%, var(--ink) 60%); }
.kt-vc-front img { width: 46%; height: auto; }
.kt-vc-claim { font-family: var(--mono); font-size: clamp(10px, 1.2vw, 12.5px); letter-spacing: .28em; text-transform: uppercase; color: #8A91A0; }
.kt-vc-mark { position: absolute; right: -6%; bottom: -24%; width: 46%; height: auto; opacity: .08; }
.kt-vc-mark path { fill: #fff; }
.kt-vc-back { flex-direction: column; justify-content: space-between; padding: 7% 8%; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.kt-vc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.kt-vc-top > span { display: flex; flex-direction: column; gap: 4px; }
.kt-vc-top b { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.03em; }
.kt-vc-top i { font-style: normal; font-size: clamp(12px, 1.3vw, 14px); color: var(--muted); }
.kt-vc-top svg { width: 13%; height: auto; flex: none; }
.kt-vc-top path:first-child { fill: var(--ink); } .kt-vc-top path:last-child { fill: var(--blue); }
.kt-vc-lines { display: flex; flex-direction: column; gap: 6px; font-size: clamp(12px, 1.35vw, 15px); font-weight: 700; }
.kt-vc-lines span { display: flex; gap: 12px; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.kt-vc-lines em { font-style: normal; font-family: var(--mono); font-weight: 400; font-size: .8em; color: var(--blue); width: 3.2em; flex: none; }
.kt-vc-hint { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .kt-hero-in { grid-template-columns: minmax(0, 1fr); }
  .kt-intro { position: static; }
  .kt-area-in { grid-template-columns: minmax(0, 1fr); }
  .kt-vc-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .kt-grid2 { grid-template-columns: minmax(0, 1fr); }
  .kt-card { border-radius: 24px; padding: 22px 18px; }
  .kt-q { font-size: 18px; }
  .kt-actions .btn { min-width: 0; flex: 1; }
  .kt-area-in { border-radius: 28px; padding: 36px 18px; }
  .kt-steps-nav { gap: 8px 14px; font-size: 13px; }
  .kt-city text { font-size: 8.5px; }
  .kt-home-l { font-size: 9px; }
  .kt-ring-l { font-size: 6px; }
  .kt-city circle { r: 2.6px; }
  .kt-vc-card { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .kt-pulse { animation: none; opacity: 0; }
  .kt-step, .kt-done, .kt-vc-card.is-flip { animation: none; }
}
