/* ============================================================
   Kontakt: einladend, mit Gesichtern und einem klaren Ablauf.
   Das Formular und die Karte behalten ihre Struktur und IDs.
   ============================================================ */

:root {
  --ct-arrive: cubic-bezier(0.16, 1, 0.3, 1);
  --ct-travel: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Hero: Team und Antwortzeit ---------- */
.ct-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 38px; }
.ct-faces { display: inline-flex; }
.ct-faces picture { display: block; width: 46px; height: 46px; margin-left: -12px; border-radius: 50%; overflow: hidden; border: 2px solid var(--night); background: #17384A; animation: ct-face 0.8s var(--ct-arrive) backwards; }
.ct-faces picture:first-child { margin-left: 0; animation-delay: 0.7s; }
.ct-faces picture:nth-child(2) { animation-delay: 0.82s; }
.ct-faces picture:nth-child(3) { animation-delay: 1.05s; }
.ct-faces img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
@keyframes ct-face { from { opacity: 0; transform: translateY(14px) scale(0.7); } }
.ct-hero-txt { color: rgba(230, 238, 242, 0.7); font-size: 14.5px; line-height: 1.35; }
.ct-hero-txt b { display: block; color: #fff; font-family: var(--font-head); font-size: 16px; }
.ct-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(245, 194, 107, 0.3); background: rgba(245, 194, 107, 0.07);
  color: var(--orange-soft); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
}
.ct-pill i { width: 8px; height: 8px; border-radius: 50%; background: #35C26B; animation: ct-ping 2.4s ease-in-out infinite; }
@keyframes ct-ping {
  0% { box-shadow: 0 0 0 0 rgba(53, 194, 107, 0.55); }
  60%, 100% { box-shadow: 0 0 0 9px rgba(53, 194, 107, 0); }
}

/* ---------- Wer antwortet ---------- */
.ct-who { padding: 28px; }
.ct-who-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ct-person { display: block; text-align: center; color: var(--ink); transition: transform 0.4s var(--ct-arrive); }
.ct-person:hover { transform: translateY(-4px); text-decoration: none; }
.ct-person picture { display: block; width: 86px; height: 86px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--orange), var(--shadow-card); }
.ct-person img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ct-arrive); }
.ct-person:hover img { transform: scale(1.12); }
.ct-person b { display: block; font-family: var(--font-head); font-size: 17px; }
.ct-person span { display: block; font-size: 12.5px; color: var(--gray); line-height: 1.3; }
.ct-who-p { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); color: var(--gray); font-size: 15px; }

/* ---------- Ablauf nach dem Absenden ---------- */
.ct-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ct-track { grid-column: 1 / -1; position: relative; height: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: center; }
.ct-st { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); position: relative; z-index: 1; }
.ct-bar { position: absolute; left: 8px; top: 12px; width: calc(66.667% + 14.67px); height: 2px; background: var(--line); }
.ct-bar::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(0); }
.ct-mail {
  position: absolute; left: -5px; top: 0; width: 26px; height: 26px; border-radius: 8px; z-index: 2;
  background: var(--orange); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(237, 152, 42, 0.4);
  opacity: 0;
}
.ct-mail svg { width: 15px; height: 15px; }
.ct-step {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 24px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  opacity: 0; transform: translateY(18px);
}
.ct-step .n {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; background: rgba(237, 152, 42, 0.14); color: var(--orange-deep);
}
.ct-step b { font-family: var(--font-head); font-size: 19px; }
.ct-step > span:last-child { color: var(--gray); font-size: 15px; line-height: 1.55; }

.ct-steps.in .ct-step { animation: ct-in 0.7s var(--ct-arrive) forwards; }
.ct-steps.in .ct-step:nth-of-type(2) { animation-delay: 0.3s; }
.ct-steps.in .ct-step:nth-of-type(3) { animation-delay: 1.3s; }
.ct-steps.in .ct-step:nth-of-type(4) { animation-delay: 2.65s; }
@keyframes ct-in { to { opacity: 1; transform: none; } }
.ct-steps.in .ct-st { animation: ct-lit 0.5s var(--ct-arrive) forwards; }
.ct-steps.in .ct-st:nth-of-type(2) { animation-delay: 0.2s; }
.ct-steps.in .ct-st:nth-of-type(3) { animation-delay: 1.25s; }
.ct-steps.in .ct-st:nth-of-type(4) { animation-delay: 2.6s; }
@keyframes ct-lit { to { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(237, 152, 42, 0.2); } }
/* Der Umschlag fährt an, bremst an jeder Station und bleibt bei Schritt 3 */
.ct-steps.in .ct-mail { animation: ct-mail 3s 0.25s forwards; }
.ct-steps.in .ct-bar::after { animation: ct-bar 3s 0.25s forwards; }
@keyframes ct-mail {
  0% { opacity: 0; left: -5px; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  6% { opacity: 1; left: -5px; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  34% { left: calc(33.333% + 2.33px); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  46% { left: calc(33.333% + 2.33px); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  84% { left: calc(66.667% + 9.67px); }
  100% { opacity: 1; left: calc(66.667% + 9.67px); }
}
@keyframes ct-bar {
  0% { transform: scaleX(0); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  6% { transform: scaleX(0); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  34% { transform: scaleX(0.5); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  46% { transform: scaleX(0.5); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  84%, 100% { transform: scaleX(1); }
}

@media (max-width: 1024px) {
  .ct-steps { grid-template-columns: 1fr; }
  .ct-track { display: none; }
}
@media (max-width: 720px) {
  .ct-who { padding: 22px; }
  .ct-person picture { width: 72px; height: 72px; }
  .ct-who-row { gap: 8px; }
  .ct-hero-meta { margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-faces picture, .ct-pill i { animation: none; }
  .ct-step { opacity: 1; transform: none; animation: none !important; }
  .ct-mail { display: none; }
  .ct-bar::after { transform: scaleX(1); animation: none !important; }
  .ct-st { animation: none !important; background: var(--orange); border-color: var(--orange); }
}

/* ---------- Hero mit echtem Foto ---------- */
.ct-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
.ct-hero-main { min-width: 0; }
.ct-hero-photo {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.ct-hero-photo picture { display: block; width: 100%; height: 100%; }
.ct-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: saturate(0.9) contrast(1.05); }
.ct-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 26, 34, 0.7) 0%, rgba(10, 26, 34, 0) 45%); pointer-events: none; }
.ct-hero-glass {
  position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(10, 26, 34, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(230, 238, 242, 0.8); font-size: 14px; line-height: 1.4;
}
.ct-hero-glass b { display: block; color: #fff; font-family: var(--font-head); font-size: 16px; }

/* ---------- Dunkles Band: Ablauf ---------- */
.ct-after { isolation: isolate; }
.ct-after-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; opacity: 0.22; }
.ct-after-bg picture { display: block; width: 100%; height: 100%; }
.ct-after-bg img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.ct-after .ct-step { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ct-after .ct-step b { color: #fff; }
.ct-after .ct-step > span:last-child { color: rgba(230, 238, 242, 0.78); }
.ct-after .ct-step .n { background: rgba(245, 194, 107, 0.18); color: var(--orange-soft); }
.ct-after .ct-st { background: var(--night-2); border-color: rgba(255, 255, 255, 0.28); }
.ct-after .ct-bar { background: rgba(255, 255, 255, 0.2); }

/* Portraits: Farbe kommt beim Hover */
.ct-person img { filter: grayscale(0.7); transition: transform 0.8s var(--ct-arrive), filter 0.6s var(--ct-travel); }
.ct-person:hover img, .ct-person:focus-visible img { filter: none; }

@media (max-width: 1024px) {
  .ct-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .ct-hero-photo { aspect-ratio: 16 / 10; max-width: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-person img { transition: none; }
}
