/* Kontaktseite im Stil der Startseite: Hero-Verlauf, weiße Formularkarte, dunkle Direktkontakt-Karte */
.contact-page {
  --ct-ink: #0b1b33;
  --ct-muted: #5b6b82;
  --ct-line: #e3e8ef;
  --ct-surface: #f6f8fb;
  --ct-rose: #e8457a;
  --ct-rose-text: #c42a5f;
  --ct-rose-soft: #fdeef3;
}
.contact-page main.contact-main {
  width: 100%;
  max-width: none;
}
.ct-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Hero */
.ct-hero {
  position: relative;
  isolation: isolate;
  width: min(1320px, calc(100% - 24px));
  margin: 8px auto 0;
  padding: clamp(56px, 7vw, 92px) 0 clamp(36px, 5vw, 64px);
  border-radius: 36px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fcfbff 30%, rgb(250 248 255 / 0.85) 44%, rgb(248 245 255 / 0) 66%),
    radial-gradient(ellipse 55% 60% at 0% 100%, #b0a0f9 0%, rgb(176 160 249 / 0) 72%),
    radial-gradient(ellipse 55% 60% at 100% 100%, #f093aa 0%, rgb(240 147 170 / 0) 72%),
    linear-gradient(90deg, #b0a0f9, #f093aa);
}
.ct-hero-copy {
  max-width: 760px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  padding-inline: 20px;
  text-align: center;
}
.home-page .ct-hero h1 {
  margin: 0 0 14px;
  color: var(--ct-ink);
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.home-page .ct-hero h1 span {
  color: var(--ct-muted);
}
.ct-hero-copy > p {
  max-width: 540px;
  margin: 0 auto;
  color: #4a566a;
  font-size: clamp(0.98rem, 1.1vw, 1.04rem);
  line-height: 1.6;
}

.ct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}
.ct-card {
  border-radius: 28px;
  box-shadow: 0 30px 60px -36px rgb(70 45 130 / 0.5);
}

/* Formular */
.ct-form-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgb(11 27 51 / 0.07);
  background: #fff;
  color: var(--ct-ink);
}
.contact-form[hidden],
.ct-success[hidden],
.contact-fallback[hidden] {
  display: none;
}
.ct-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}
.ct-topics legend {
  width: 100%;
  margin-bottom: 12px;
  padding: 0;
  font-size: 1.15rem;
  font-weight: 500;
}
.ct-topics label {
  position: relative;
  cursor: pointer;
}
.ct-topics input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ct-topics span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--ct-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ct-muted);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 0 0 0 rgb(232 69 122 / 0);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}
.ct-topics label:hover span {
  border-color: #f0b6c8;
  color: var(--ct-ink);
}
.ct-topics input:checked + span {
  border-color: transparent;
  background: var(--ct-ink);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgb(11 27 51 / 0.6);
}
.ct-topics input:focus-visible + span {
  outline: 2px solid var(--ct-rose);
  outline-offset: 2px;
}

.ct-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ct-wide {
  grid-column: 1 / -1;
}
.ct-fields label {
  display: grid;
  gap: 7px;
}
.ct-fields label > span {
  font-size: 0.86rem;
  font-weight: 500;
}
.ct-fields small {
  margin-left: 4px;
  color: var(--ct-muted);
  font-size: 0.78rem;
  font-weight: 400;
}
.ct-fields input,
.ct-fields textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--ct-surface);
  color: var(--ct-ink);
  font: inherit;
  font-size: 0.95rem;
  box-shadow: 0 0 0 0 rgb(232 69 122 / 0);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}
.ct-fields textarea {
  min-height: 136px;
  resize: vertical;
  line-height: 1.55;
}
.ct-fields input::placeholder,
.ct-fields textarea::placeholder {
  color: #9aa5b6;
}
.ct-fields input:hover,
.ct-fields textarea:hover {
  background: #eff2f8;
}
.ct-fields input:focus,
.ct-fields textarea:focus {
  outline: none;
  border-color: #f0b6c8;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(232 69 122 / 0.12);
}

.ct-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 22px;
}
.home-page .ct-submit {
  gap: 10px;
  border: 0;
  background: var(--ct-ink);
  color: #fff;
  box-shadow:
    0 0 0 0 rgb(176 160 249 / 0),
    0 14px 30px -14px rgb(11 27 51 / 0.7);
  transition: background 0.3s ease, box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), scale 0.3s ease;
}
.home-page .ct-submit:hover {
  background: #17294a;
  box-shadow:
    0 0 0 3px rgb(176 160 249 / 0.3),
    0 16px 34px -14px rgb(111 95 224 / 0.8);
}
.home-page .ct-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}
.home-page .ct-ghost {
  border: 1px solid var(--ct-line);
  background: #fff;
  color: var(--ct-ink);
  box-shadow: 0 0 0 0 rgb(240 147 170 / 0);
  transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}
.home-page .ct-ghost:hover {
  border-color: #f0b6c8;
  box-shadow: 0 0 0 3px rgb(240 147 170 / 0.15);
}
.home-page .ct-submit:hover,
.home-page .ct-submit:focus-visible,
.home-page .ct-submit:active,
.home-page .ct-ghost:hover,
.home-page .ct-ghost:active {
  transform: none;
}
.home-page .ct-submit:active,
.home-page .ct-ghost:active {
  scale: 0.98;
}
.home-page .ct-submit:focus-visible,
.home-page .ct-ghost:focus-visible {
  outline: 2px solid var(--ct-rose);
  outline-offset: 3px;
}
.ct-note {
  flex: 1;
  min-width: 220px;
  margin: 0;
  color: var(--ct-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.ct-note a,
.contact-fallback a {
  color: var(--ct-rose-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
}
.contact-status:empty {
  display: none;
}
.contact-status[data-state="error"] {
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--ct-rose-soft);
  color: var(--ct-rose-text);
}
.contact-fallback {
  margin: 0;
  color: var(--ct-muted);
}

/* Danke-Zustand nach dem Senden */
.ct-success {
  display: grid;
  justify-items: start;
  align-content: center;
  min-height: 100%;
  padding: 12px 4px;
  outline: none;
  animation: ct-in 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ct-success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b0a0f9, #f093aa);
  box-shadow: 0 14px 30px -14px rgb(111 95 224 / 0.8);
}
.ct-success-mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: ct-check 0.5s 0.25s ease forwards;
}
.home-page .ct-success h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.ct-success p {
  max-width: 420px;
  margin: 0 0 24px;
  color: var(--ct-muted);
  line-height: 1.6;
}
.ct-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@keyframes ct-in {
  from { opacity: 0; transform: translateY(10px); }
}
@keyframes ct-check {
  to { stroke-dashoffset: 0; }
}

/* Direktkontakt: dunkle Karte mit kleinem Chat und Glas-Zeilen */
.ct-direct {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  background: #101012;
  color: #fff;
}
.ct-bubbles {
  display: grid;
  gap: 6px;
  margin-bottom: 26px;
}
.ct-bubble {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.35;
}
.ct-bubble--in {
  justify-self: start;
  border-bottom-left-radius: 5px;
  background: rgb(255 255 255 / 0.1);
  color: #e6e7ec;
}
.ct-bubble--out {
  justify-self: end;
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, #b0a0f9, #f093aa);
  color: #fff;
}
.home-page .ct-direct h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.ct-direct > p {
  margin: 0 0 20px;
  color: #b9bcc6;
  font-size: 0.95rem;
  line-height: 1.55;
}
.ct-channels {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  font-style: normal;
}
.ct-channels a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.05);
  color: #fff;
  box-shadow: 0 0 0 0 rgb(240 147 170 / 0);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.45s ease;
}
.ct-channels a:hover {
  border-color: rgb(240 147 170 / 0.45);
  background: rgb(255 255 255 / 0.09);
  box-shadow: 0 0 0 3px rgb(240 147 170 / 0.12);
}
.ct-channels a:focus-visible {
  outline: 2px solid #f093aa;
  outline-offset: 3px;
}
.ct-channel-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.12);
}
.ct-channel-icon svg,
.ct-channel-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ct-channel-text {
  display: grid;
  flex: 1;
  min-width: 0;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}
.ct-channel-text small {
  color: #9fa3ae;
  font-size: 0.78rem;
}
.ct-channel-arrow {
  color: #f093aa;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ct-channels a:hover .ct-channel-arrow {
  transform: translate(2px, -2px);
}
.ct-legal {
  margin: auto 0 0;
  color: #8d919c;
  font-size: 0.82rem;
  line-height: 1.5;
}
.ct-legal a {
  color: #cfd2da;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Häufige Anliegen */
.ct-more {
  padding-block: clamp(64px, 8vw, 104px) clamp(72px, 9vw, 120px);
}
.home-page .ct-more h2 {
  max-width: 640px;
  margin: 0 auto clamp(28px, 3vw, 40px);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-align: center;
}
.ct-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ct-tile {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 22px 22px 24px;
  border: 1px solid rgb(11 27 51 / 0.06);
  border-radius: 24px;
  background: var(--ct-surface);
  color: var(--ct-ink);
  box-shadow: 0 0 0 0 rgb(70 45 130 / 0);
  transition: background 0.35s ease, box-shadow 0.45s ease, border-color 0.35s ease;
}
.ct-tile:hover {
  border-color: var(--ct-line);
  background: #fff;
  box-shadow: 0 24px 50px -34px rgb(70 45 130 / 0.45);
}
.ct-tile:focus-visible {
  outline: 2px solid var(--ct-rose);
  outline-offset: 3px;
}
.ct-tile b {
  font-size: 1.05rem;
  font-weight: 500;
}
.ct-tile > span:not(.ct-tile-icon):not(.ct-tile-arrow) {
  color: var(--ct-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.ct-tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 14px;
  color: #fff;
}
.ct-tile-icon--rose { background: linear-gradient(150deg, #f06a93, #c42a5f); }
.ct-tile-icon--lilac { background: linear-gradient(150deg, #9b8cf6, #6f5fe0); }
.ct-tile-icon--peach { background: linear-gradient(150deg, #ffa27a, #f2665e); }
.ct-tile-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ct-tile-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px -6px rgb(11 27 51 / 0.3);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ct-tile-arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--ct-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ct-tile:hover .ct-tile-arrow,
.ct-tile:focus-visible .ct-tile-arrow {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .ct-tile-arrow {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .ct-layout,
  .ct-more-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .ct-hero {
    width: calc(100% - 16px);
    border-radius: 26px;
  }
  .ct-fields {
    grid-template-columns: 1fr;
  }
  .ct-actions .ct-submit {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct-success,
  .ct-success-mark svg {
    animation: none;
    stroke-dashoffset: 0;
  }
}
