/* ==========================================================================
   Webdesign VALNOVO — Landing Page
   Mobile First · HTML5 · CSS3 · keine Frameworks
   ========================================================================== */

@import url("fonts.css");

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  /* Etwas dunkler für WCAG-Kontrast (weiße Schrift auf Buttons) */
  --accent: #3a4dd4;
  --accent-hover: #2e3eb0;
  --text-primary: #f0f0f5;
  --text-secondary: #9090a8;
  --card-bg: #16161f;
  --border: #2a2a38;
  --success: #22c55e;
  --footer-bg: #07070d;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --radius-card: 16px;
  --radius-btn: 12px;
  --space: 8px;
  --glow: 0 0 40px rgba(79, 110, 247, 0.2);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-cover-load {
  transition: opacity 0.35s ease, object-position 0.35s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container — 8px Grid */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: calc(var(--space) * 2);
}

.container--narrow {
  max-width: 720px;
}

.container--form {
  max-width: 880px;
}

/* Top Bar */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: calc(var(--space) * 2);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.top-bar--solid {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--space) * 2);
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo__accent {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--space) * 0.5);
  padding: calc(var(--space) * 1.75) calc(var(--space) * 3);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(58, 77, 212, 0.38);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(58, 77, 212, 0.48);
}

.btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--accent);
}

.btn--outline:hover {
  transform: scale(1.03);
  box-shadow: var(--glow);
}

.btn--sm {
  padding: calc(var(--space) * 1.25) calc(var(--space) * 2.5);
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

.btn--submit-form {
  position: relative;
  min-height: 56px;
  height: auto;
  padding-block: 14px;
  padding-inline: 20px;
  border-radius: var(--radius-btn);
  font-size: 1.0625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: none;
  overflow: visible;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.btn--submit-form:hover:not(:disabled) {
  transform: none;
}

.btn--submit-form .btn-submit__arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn--submit-form:hover:not(:disabled) .btn-submit__arrow {
  transform: translateX(4px);
}

.btn-submit__spinner {
  position: absolute;
  display: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: formSpin 0.75s linear infinite;
}

.btn--submit-form.is-loading .btn-submit__text,
.btn--submit-form.is-loading .btn-submit__arrow {
  opacity: 0;
}

.btn--submit-form.is-loading .btn-submit__spinner {
  display: block;
}

@keyframes formSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.field-shake {
  animation: fieldShake 0.35s ease;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  margin-top: calc(var(--space) * 2);
}

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--space) * 10);
  padding-top: calc(var(--header-h) + var(--space) * 4);
  overflow: hidden;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(79, 110, 247, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(79, 110, 247, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 90%, rgba(58, 85, 212, 0.1), transparent 45%);
  animation: meshMove 14s ease-in-out infinite alternate;
}

@keyframes meshMove {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(1.08) translate(-2%, 2%);
    opacity: 0.92;
  }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 5);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 calc(var(--space) * 3);
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .hero__title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-image {
    width: 100%;
    max-width: min(360px, 88vw);
    margin: 32px auto 0;
  }
}

.hero__subline {
  max-width: 520px;
  margin: 0 0 calc(var(--space) * 4);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-secondary);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 2);
  margin-bottom: calc(var(--space) * 4);
}

/* Hero: eine kompakte Vertrauenszeile (24h, persönlich) */
.hero__trust {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  max-width: 520px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.hero__trust-mark {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 600;
}

.hero__trust-text {
  flex: 1;
  min-width: 0;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: min(360px, 88vw);
  margin: 0 auto;
  border: none;
  background: #0a0a12;
  overflow: hidden;
  border-radius: 20px;
  flex-shrink: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: min(82vh, 780px);
  aspect-ratio: 830 / 1024;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}

.hero-image__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2.5rem 1rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    transparent 100%
  );
  pointer-events: none;
}

@media (min-width: 900px) {
  /* Колонка справа: фото bis ~600px; Bildunterschrift am Desktop linksbündig */
  .hero-image {
    width: 100%;
    max-width: min(600px, 100%);
    margin: 0;
  }

  .hero-image__caption {
    padding: 3rem 1.25rem 1.125rem;
    font-size: 0.875rem;
    text-align: left;
  }
}

.about-photo {
  position: relative;
  width: 100%;
  max-width: min(420px, 92vw);
  margin: 0 auto;
  border: none;
  background: transparent;
  overflow: visible;
}

.about-photo img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 680px);
  aspect-ratio: 835 / 1024;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: block;
}

@media (min-width: 900px) {
  .about-photo {
    width: min(440px, 100%);
    max-width: none;
    margin: 0;
  }
}

/* About: unter 900px — Foto über Text; klarer Abstand zur Überschrift */
@media (max-width: 899px) {
  .about-grid__photo {
    margin-bottom: calc(var(--space) * 4);
  }

  .about-grid__text {
    padding-top: calc(var(--space) * 1);
  }
}

/* Sections */
.section {
  padding-block: 100px;
}

.section--alt {
  background: var(--bg-secondary);
}

.section--form {
  padding-bottom: 120px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 calc(var(--space) * 3);
  line-height: 1.2;
}

.section__title--center {
  text-align: center;
}

.section__title--left {
  text-align: left;
}

.section__subline {
  text-align: center;
  color: var(--text-secondary);
  margin: calc(var(--space) * -2) auto calc(var(--space) * 6);
  max-width: 560px;
}

.section__cta {
  text-align: center;
  margin-top: calc(var(--space) * 6);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Grid */
.grid {
  display: grid;
  gap: calc(var(--space) * 3);
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

/* Video-Testimonials: vertikal 3:4, Desktop 4 nebeneinander, Tablet 2, Mobile horizontal scroll + Peek */
.video-testimonials-scroll-wrap {
  position: relative;
  margin-bottom: calc(var(--space) * 4);
}

.video-testimonials-hint {
  display: none;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: calc(var(--space) * 1) 0 0;
  letter-spacing: 0.02em;
}

.video-testimonials-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding-bottom: calc(var(--space) * 2);
  margin-bottom: 0;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.video-testimonials-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.video-testimonials-row .video-card {
  flex: 0 0 auto;
  width: 100%;
  max-width: 220px;
  scroll-snap-align: start;
}

/* Mobile: zwei Karten + sichtbarer Ausschnitt der nächsten (Scroll-Affordance) */
@media (max-width: 767px) {
  .video-testimonials-hint {
    display: block;
  }

  .video-testimonials-scroll-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 4.5rem;
    width: min(64px, 18vw);
    height: auto;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
      to left,
      var(--bg-secondary) 0%,
      rgba(17, 17, 24, 0.65) 45%,
      transparent 100%
    );
    opacity: 1;
    transition: opacity 0.25s ease;
  }

  .video-testimonials-scroll-wrap.is-scroll-end::after {
    opacity: 0;
  }

  .video-testimonials-scroll-wrap.is-no-overflow .video-testimonials-hint {
    display: none;
  }

  .video-testimonials-row .video-card {
    flex: 0 0 calc(50% - 14px);
    max-width: none;
    min-width: 0;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .video-testimonials-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    scroll-snap-type: none;
  }

  .video-testimonials-row .video-card {
    max-width: none;
    width: 100%;
  }
}

@media (min-width: 1025px) {
  /* 4 Spalten, zentriert; letzte Zeile mit 2 Karten explizit in Spalte 2+3 (nicht linksbündig) */
  .video-testimonials-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 220px));
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .video-testimonials-row .video-card {
    max-width: 220px;
    width: 100%;
  }

  /* Genau 6 Videos: untere Zeile (5. + 6. Karte) mittig unter dem 4er-Block */
  .video-testimonials-row:has(> .video-card:nth-child(6):last-child) > .video-card:nth-child(5) {
    grid-column: 2;
  }

  .video-testimonials-row:has(> .video-card:nth-child(6):last-child) > .video-card:nth-child(6) {
    grid-column: 3;
  }

  /* Genau 5 Videos: einzelne Karte in der letzten Zeile zentrieren */
  .video-testimonials-row:has(> .video-card:nth-child(5):last-child) > .video-card:nth-child(5) {
    grid-column: 2 / span 2;
    justify-self: center;
    width: 220px;
    max-width: 220px;
  }
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .hero__grid {
    flex-direction: row;
    align-items: center;
    gap: calc(var(--space) * 6);
  }

  .hero__content {
    flex: 0 0 52%;
    max-width: 52%;
  }

  .hero__visual {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: calc(var(--space) * 7);
    align-items: center;
  }
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: calc(var(--space) * 3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card--pain:hover {
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.card__icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: calc(var(--space) * 2);
}

.card__icon--accent {
  filter: none;
  text-shadow: 0 0 20px rgba(79, 110, 247, 0.5);
}

.card__title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 calc(var(--space) * 2);
}

.card__text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.card--service {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  background: var(--card-bg);
}

.card--service:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(79, 110, 247, 0.15);
  transform: translateY(-4px);
}

.badge {
  position: absolute;
  top: calc(var(--space) * 2);
  right: calc(var(--space) * 2);
  background: rgba(79, 110, 247, 0.2);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: calc(var(--space) * 0.75) calc(var(--space) * 1.5);
  border-radius: 999px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 1);
  margin-top: auto;
  padding-top: calc(var(--space) * 3);
}

.tag {
  font-size: 0.75rem;
  padding: calc(var(--space) * 0.75) calc(var(--space) * 1.5);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
}

/* About */
.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 calc(var(--space) * 2);
}

.prose p {
  margin: 0 0 calc(var(--space) * 2.5);
  color: var(--text-secondary);
  line-height: 1.82;
}

.prose p:last-child {
  margin-bottom: 0;
}

.stats {
  list-style: none;
  margin: calc(var(--space) * 4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 2.5);
  font-size: 0.9375rem;
}

.stats__icon {
  margin-right: calc(var(--space) * 1);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  gap: calc(var(--space) * 3);
  grid-template-columns: 1fr;
}

.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.portfolio-card:hover {
  border-color: var(--border);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.portfolio-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.portfolio-card__visual {
  position: relative;
  overflow: hidden;
}

.portfolio-img {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: radial-gradient(ellipse at center, #1a1a24 0%, #0e0e14 100%);
  overflow: hidden;
}

.portfolio-img__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease, opacity 0.35s ease;
}

.portfolio-card:hover .portfolio-img__img {
  transform: scale(1.03);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.85), rgba(10, 10, 15, 0.35));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.portfolio-card__overlay span {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--space) * 2);
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.7);
}

.portfolio-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.portfolio-card__tag {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
}

.portfolio-more {
  text-align: center;
  margin-top: calc(var(--space) * 6);
  margin-inline: auto;
  max-width: 560px;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.link-accent {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}

.link-accent:hover {
  color: var(--accent-hover);
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Nur mobil: zusätzliche Referenzen (Desktop bleibt bei 6 Karten) */
  .portfolio-card--mobile-only {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.portfolio-dots {
  margin-top: calc(var(--space) * 2);
}

@media (max-width: 767px) {
  .portfolio-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 20px 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-grid::-webkit-scrollbar {
    display: none;
  }

  .portfolio-grid .portfolio-card {
    min-width: 85vw;
    max-width: 85vw;
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}

/* Social proof — einheitliche Sektion */
.trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: calc(var(--space) * 2);
  margin: 0 auto calc(var(--space) * 4);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--space) * 1.5);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.trust-badge--tp {
  border: 1.5px solid #00b67a;
  color: var(--text-primary);
  background: rgba(0, 182, 122, 0.12);
}

.trust-badge--tp .trust-badge__logo {
  color: #00b67a;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.trust-badge--google {
  border: 1.5px solid #4285f4;
  color: var(--text-primary);
  background: rgba(66, 133, 244, 0.12);
}

.trust-badge--google .trust-badge__logo {
  color: #4285f4;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.source-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: calc(var(--space) * 4) 0 0;
  text-align: center;
}

.scroll-top {
  position: fixed;
  bottom: calc(var(--space) * 3);
  right: calc(var(--space) * 3);
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: rgba(17, 17, 24, 0.95);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.video-consent-hint {
  text-align: center;
  font-size: 0.9rem;
  max-width: 640px;
  margin: calc(var(--space) * -2) auto calc(var(--space) * 4);
  line-height: 1.65;
}

.video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 0 0 calc(var(--space) * 2);
  background: transparent;
  border: none;
  border-radius: 0;
}

.video-card .video-testimonial {
  width: 100%;
  border-radius: 16px;
}

.video-card__name,
.video-card__company {
  text-align: center;
  width: 100%;
}

.video-card__name {
  margin: calc(var(--space) * 2) 0 0;
  font-weight: 700;
}

.video-card__company {
  margin: calc(var(--space) * 0.5) 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}

.video-testimonial {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #0e0e14;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.video-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
  z-index: 1;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  z-index: 1;
}

.video-fallback span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display), Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.video-testimonial.is-playing .video-fallback {
  display: none !important;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(10, 10, 15, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2;
}

.video-play-overlay:hover {
  background: rgba(10, 10, 15, 0.4);
}

.video-play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-play-overlay__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.video-play-overlay__tri {
  display: block;
  margin-left: 3px;
}

.video-testimonial .video-testimonial__media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  vertical-align: top;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.video-testimonial.is-playing .video-testimonial__media {
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}

.video-testimonial.is-playing .video-poster-fallback {
  display: none !important;
}

/* Review carousel */
.review-carousel-wrap {
  margin-top: calc(var(--space) * 6);
}

.review-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.review-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.review-carousel__slide {
  flex-shrink: 0;
  display: flex;
  min-width: 0;
  box-sizing: border-box;
}

/* Fallback, falls JS (inline-flex) nicht greift: 3 Spalten Desktop, 1 Mobile */
@media (min-width: 900px) {
  .review-carousel__slide {
    flex: 0 0 calc((100% - 32px) / 3);
  }
}

@media (max-width: 899px) {
  .review-carousel__slide {
    flex: 0 0 100%;
  }
}

.review-slide-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: calc(var(--space) * 3);
  padding-bottom: calc(var(--space) * 5);
  min-height: 220px;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-slide-card__title {
  margin: 0 0 calc(var(--space) * 2);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  font-style: normal;
  color: var(--text-primary);
  line-height: 1.35;
}

.review-carousel__viewport--solo-last .review-carousel__slide:last-child .review-slide-card {
  max-width: 380px;
  margin-inline: auto;
}

.review-source-badge {
  position: absolute;
  bottom: calc(var(--space) * 2);
  right: calc(var(--space) * 2);
  background: transparent;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.review-source-badge--tp {
  border: 1px solid #00b67a;
  color: #00b67a;
}

.review-source-badge--google {
  border: 1px solid #4285f4;
  color: #4285f4;
}

.trustpilot-link {
  display: block;
  text-align: center;
  margin-top: 32px;
  color: #00b67a;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.8;
}

.trustpilot-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.review-stars-svg {
  margin: 0 0 calc(var(--space) * 2);
  display: block;
}

.review-slide-card__stars {
  margin: 0 0 calc(var(--space) * 2);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: #fbbf24;
  line-height: 1;
}

.review-slide-card__quote {
  margin: 0;
  font-style: italic;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  flex: 1;
}

.review-slide-card__author {
  margin: calc(var(--space) * 3) 0 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.review-slide-card__author strong {
  font-weight: 700;
}

.review-slide-card__company {
  margin: calc(var(--space) * 1) 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Tippfläche je 44×44 px, aber per negativem Margin überlappend — sichtbare Punkte näher */
.review-carousel__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  row-gap: 8px;
  padding-inline: 22px;
  margin-top: calc(var(--space) * 3);
}

/* Mindest-Tippfläche ~44×44 px; sichtbarer Punkt per ::after */
.review-carousel__dot {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin-inline: -16px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.review-carousel__dot::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
}

.review-carousel__dot.is-active::after {
  background: var(--accent);
  transform: scale(1.15);
}

.review-carousel__dot:hover::after {
  background: var(--accent-hover);
}

.review-carousel__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Form */
.path-selection-block {
  width: 100%;
}

.form-intro {
  width: 100%;
  text-align: center;
  margin-bottom: calc(var(--space) * 5);
}

.form-intro__text {
  max-width: 560px;
  margin-inline: auto;
}

.form-badge {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: calc(var(--space) * 3) auto 0;
  padding: calc(var(--space) * 1.5) calc(var(--space) * 2.5);
  text-align: center;
  line-height: 1.45;
  background: rgba(79, 110, 247, 0.12);
  border: 1px solid rgba(79, 110, 247, 0.35);
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  box-sizing: border-box;
}

/* Pfadwahl (Kacheln) */
.path-selector {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: calc(var(--space) * 2);
  margin-bottom: calc(var(--space) * 2);
  width: 100%;
  min-width: 0;
}

.path-selector__tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--space) * 2);
  width: 100%;
  min-width: 0;
}

/* Ab ~500px Breite zwei Spalten (früher 640px — wirkte oft wie „nur eine Spalte“) */
@media (min-width: 500px) {
  .path-selector__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.path-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  min-width: 0;
  width: 100%;
  padding: calc(var(--space) * 3);
  padding-top: calc(var(--space) * 4);
  font-family: inherit;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  overflow-wrap: anywhere;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.path-tile--featured {
  border-color: rgba(79, 110, 247, 0.55);
  box-shadow:
    0 0 0 1px rgba(79, 110, 247, 0.2),
    0 4px 24px rgba(0, 0, 0, 0.3);
}

.path-tile--beratung {
  padding-top: calc(var(--space) * 3);
}

.path-tile__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 0;
  box-shadow: 0 2px 8px rgba(79, 110, 247, 0.4);
}

.path-tile:hover {
  border-color: var(--accent);
  background: rgba(79, 110, 247, 0.07);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.path-tile--featured:hover {
  box-shadow:
    0 0 0 1px rgba(79, 110, 247, 0.35),
    0 10px 32px rgba(79, 110, 247, 0.18);
}

.path-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.path-tile:active {
  transform: translateY(0);
}

.path-tile__icon {
  font-size: 1.75rem;
  margin-bottom: calc(var(--space) * 1);
}

.path-tile__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: calc(var(--space) * 1);
  color: var(--text-primary);
  padding-right: 4.5rem;
}

.path-tile--beratung .path-tile__title {
  padding-right: 0;
}

.path-tile__desc {
  font-size: 0.875rem;
  color: #a3a3b8;
  line-height: 1.5;
}

.path-tile__meta {
  display: block;
  margin-top: calc(var(--space) * 1.25);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.path-tile__cta {
  display: block;
  width: 100%;
  margin-top: auto;
  padding-top: calc(var(--space) * 2.5);
}

.path-tile .path-tile__btn-label {
  pointer-events: none;
  transform: none !important;
  margin: 0;
  width: 100%;
  min-height: 52px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.path-tile:hover .path-tile__btn-label.btn--primary {
  background: var(--accent-hover);
}

.path-tile:hover .path-tile__btn-label.btn--outline {
  border-color: var(--accent-hover);
  background: rgba(79, 110, 247, 0.1);
  box-shadow: var(--glow);
}

.path-back {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-bottom: calc(var(--space) * 3);
  padding: 0;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.path-back:hover {
  color: var(--accent-hover);
}

.form-flow-context {
  margin: 0 0 calc(var(--space) * 3);
  padding: calc(var(--space) * 1.5) calc(var(--space) * 2);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.form-flow-context strong {
  color: var(--text-primary);
  font-weight: 700;
}

.form-flow-context--consult {
  margin-bottom: calc(var(--space) * 4);
}

.form-step__intro {
  margin: 0 0 calc(var(--space) * 3);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.form-shell--consult {
  padding-top: calc(var(--space) * 2);
}

.form-shell {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  margin-top: calc(var(--space) * 3);
  overflow: visible;
  min-height: 0;
}

/* Frühere Version: dekorative 3px-Akzent-Linie oben (::before) — absichtlich entfernt */
.form-shell::before {
  content: none !important;
  display: none !important;
}

@media (max-width: 767px) {
  .form-shell {
    padding: 24px 20px;
  }
}

.form-progress {
  margin-bottom: calc(var(--space) * 4);
}

/* scrollIntoView: Abstand zur sticky Top-Bar */
#angebotProgress {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.form-progress__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-progress__bar.form-progress-bar,
.form-progress-bar {
  height: 6px;
  width: 100%;
  max-width: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.form-progress__fill.form-progress-fill,
.form-progress-fill {
  height: 100%;
  width: 33.333%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Breite über data-step — zuverlässig auf Desktop (kein Konflikt mit älteren Inline-Styles) */
#angebotProgress[data-step="1"] .form-progress-fill,
#angebotProgress[data-step="1"] .form-progress__fill {
  width: 33.333%;
}
#angebotProgress[data-step="2"] .form-progress-fill,
#angebotProgress[data-step="2"] .form-progress__fill {
  width: 66.666%;
}
#angebotProgress[data-step="3"] .form-progress-fill,
#angebotProgress[data-step="3"] .form-progress__fill {
  width: 100%;
}

.form-progress__step {
  font-weight: 500;
}

.form-progress__step--active {
  color: var(--accent);
  font-weight: 600;
}

.form-progress__steps--3 {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  margin-top: calc(var(--space) * 1.25);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: center;
}

.form-progress__steps--3 .form-progress__step {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0 2px;
  box-sizing: border-box;
}

@media (max-width: 520px) {
  .form-progress__steps--3 {
    font-size: 0.75rem;
  }
}

.form-wrapper {
  height: auto !important;
  min-height: unset !important;
}

.form-steps-outer {
  overflow: visible;
}

.form-steps {
  display: block;
  width: 100%;
}

.form-step {
  display: none;
  width: 100%;
  box-sizing: border-box;
}

.form-step.is-active {
  display: block;
}

/* Beim Wechsel: nicht unter dem Sticky-Header verschwinden */
#step2,
#step3 {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.form-step__heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: calc(var(--space) * 2) 0 calc(var(--space) * 2);
  padding-bottom: calc(var(--space) * 1);
  border-bottom: 1px solid var(--border);
}

.form-step__heading:first-child {
  margin-top: 0;
}

/* Schritt 3: gleichmäßigere vertikale Abstände */
#step3 .form-step__heading {
  margin-top: calc(var(--space) * 2);
  margin-bottom: calc(var(--space) * 1.25);
  padding-bottom: calc(var(--space) * 1);
}
#step3 .form-step__heading:first-child {
  margin-top: 0;
  text-transform: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
}
#step3 .form-group {
  margin-bottom: calc(var(--space) * 2);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1.5L6 6l5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  gap: calc(var(--space) * 2);
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 520px) {
  .form-row--2 {
    grid-template-columns: 1fr;
  }
}

.form-conditional--anim {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.form-conditional--anim:not(.is-visible) {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.form-conditional--anim.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-group--stack {
  grid-template-columns: 1fr;
}

.btn--min-h {
  min-height: 48px;
}

/* Inline-Kalender Beratung — minmax(0,1fr) + min-width:0 verhindert Overflow auf schmalen Viewports */
.calendar-widget {
  margin: calc(var(--space) * 2) 0;
  padding: clamp(10px, 3vw, calc(var(--space) * 2));
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.calendar-widget__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: calc(var(--space) * 2);
  min-width: 0;
}

.calendar-widget__month {
  font-weight: 600;
  font-size: clamp(0.8125rem, 3.5vw, 0.9375rem);
  color: var(--text-primary);
  text-align: center;
  flex: 1;
  min-width: 0;
}

.calendar-widget__arrow {
  flex-shrink: 0;
  width: clamp(36px, 10vw, 48px);
  height: clamp(36px, 10vw, 48px);
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 4vw, 1.25rem);
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.calendar-widget__arrow:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(79, 110, 247, 0.08);
}

.calendar-widget__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-widget__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(2px, 1vw, 6px);
  margin-bottom: clamp(4px, 1.5vw, 8px);
  width: 100%;
  min-width: 0;
  font-size: clamp(0.5625rem, 2.8vw, 0.6875rem);
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.calendar-widget__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(2px, 1vw, 6px);
  width: 100%;
  min-width: 0;
}

.calendar-widget__cell {
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.calendar-widget__cell--empty {
  visibility: hidden;
  pointer-events: none;
}

.calendar-widget__day {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: clamp(0.625rem, 3.8vw, 0.875rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: clamp(4px, 12%, 8px);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.calendar-widget__day:hover:not(:disabled):not(.calendar-widget__day--disabled) {
  border-color: var(--accent);
}

.calendar-widget__day--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
}

.calendar-widget__day--selected {
  border-color: var(--accent);
  background: rgba(79, 110, 247, 0.15);
  color: var(--accent);
}

.consult-cal-block {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.consult-cal-block__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 calc(var(--space) * 2);
  color: var(--text-primary);
}

.consult-time-wrap {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.consult-time-wrap.consult-time-wrap--visible {
  opacity: 1;
  transform: translateY(0);
}

.consult-cal-hint {
  margin-top: calc(var(--space) * 2);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.multi-form {
  margin: 0;
}

.form-fieldset {
  border: 0;
  margin: 0 0 calc(var(--space) * 3);
  padding: 0;
}

.form-label {
  display: block;
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-primary);
}

/* Unterüberschrift im gleichen Fieldset (z. B. Online-Shop) — Abstand wie zwischen Fieldsets */
.form-label.form-label--sub {
  margin-top: calc(var(--space) * 3);
  margin-bottom: calc(var(--space) * 2);
  font-size: 0.875rem;
}

/* Pflichtfeld — nur Stern, kein Unterstrich (kein <abbr>-Styling) */
.form-req {
  color: var(--accent);
  font-weight: 700;
  margin-left: 0.15em;
  text-decoration: none;
  border: 0;
}

.form-optional {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.875em;
}

.form-group {
  margin-bottom: calc(var(--space) * 3);
}

.form-hint {
  margin: calc(var(--space) * -1) 0 calc(var(--space) * 2);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.form-hint--next {
  margin: calc(var(--space) * 1) 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  min-height: 1.25rem;
  transition: opacity 0.2s ease;
}

.form-trust-note {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 16px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  min-height: 48px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: #1c1c28;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #5a5a72;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.15);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 96px;
}

.field-error {
  min-height: 1.25rem;
  margin: calc(var(--space) * 1) 0 0;
  font-size: 0.8125rem;
  color: #f87171;
}

.btn-group {
  display: grid;
  gap: 8px;
}

.btn-group--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 767px) {
  .btn-group--2 {
    grid-template-columns: 1fr;
  }
}

.btn-group--inline {
  grid-template-columns: 1fr 1fr;
}

.btn-group--budget {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 768px) {
  .btn-group--budget {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobil: letzte Option bei ungerader Anzahl über volle Breite (z. B. 5 Buttons) */
@media (max-width: 767px) {
  .btn-group--budget .choice-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .btn-group--stack-mobile {
    grid-template-columns: 1fr;
  }
}

.choice-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.choice-btn__emoji {
  margin-right: 8px;
  font-size: 15px;
  flex-shrink: 0;
}

.choice-btn__text {
  flex: 1 1 auto;
  text-align: left;
}

.choice-btn__check {
  flex-shrink: 0;
  width: 1.25rem;
  margin-left: auto;
  text-align: right;
  font-size: 1rem;
  color: var(--accent);
}

.choice-btn__check::after {
  content: "";
}

.choice-btn[aria-pressed="true"] .choice-btn__check::after {
  content: "✓";
  font-weight: 700;
}

.choice-btn--sm {
  font-size: 14px;
  padding: 10px 12px;
  justify-content: flex-start;
}

.choice-btn:hover {
  border-color: var(--accent);
}

.choice-btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(79, 110, 247, 0.08);
  color: var(--text-primary);
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 2);
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--space) * 2);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.check-label input:not(.check-input-hidden) {
  margin-top: 0.35rem;
  accent-color: var(--accent);
  width: 1.1rem;
  height: 1.1rem;
}

/* Native Checkbox vollständig verstecken — sonst doppelte Kästchen / „Geister“-Spalte */
.check-label--custom .check-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  z-index: 2;
}

.check-label--custom .check-input-hidden:focus-visible + .check-label__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.check-label--custom {
  position: relative;
  align-items: flex-start;
  padding-left: 0;
  gap: calc(var(--space) * 1.5);
}

.check-label__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 0.15rem;
  margin-right: 0;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.check-label--custom input:checked + .check-label__box {
  background: var(--accent);
  border-color: var(--accent);
}

.check-label--custom input:checked + .check-label__box::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.check-label__txt {
  flex: 1;
}

.check-label--legal {
  align-items: flex-start;
  line-height: 1.5;
}

.check-label__txt--legal {
  font-size: 13px;
  color: var(--text-secondary);
}

.link-inline {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-inline:hover {
  color: var(--accent-hover);
}

.link-inline--dsgvo {
  text-decoration: none;
}

.link-inline--dsgvo:hover {
  text-decoration: underline;
}

.form-group--conditional[hidden] {
  display: none !important;
}

/* Dropzone */
.dropzone-wrap {
  margin-top: calc(var(--space) * 1);
}

.dropzone {
  position: relative;
  display: block;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone:hover,
.dropzone:focus-within,
.dropzone.dropzone--active {
  border-color: var(--accent);
  background: rgba(79, 110, 247, 0.06);
}

.dropzone__icon {
  display: flex;
  justify-content: center;
  margin-bottom: calc(var(--space) * 2);
  color: var(--accent);
}

.dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.dropzone__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
}

.dropzone__sub {
  position: relative;
  z-index: 1;
  margin: calc(var(--space) * 1) 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.dropzone__list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: calc(var(--space) * 2) 0 0;
  padding: 0;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.dropzone__list li {
  padding: calc(var(--space) * 1) 0;
  border-bottom: 1px solid var(--border);
}

/* Success */
.form-success {
  text-align: center;
  padding: calc(var(--space) * 6) calc(var(--space) * 2);
}

.form-success__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: calc(var(--space) * 3) 0 calc(var(--space) * 2);
}

.form-success__text {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

.form-success__contact {
  margin-top: calc(var(--space) * 3);
  font-size: 1.125rem;
}

.form-success__contact a {
  color: var(--accent);
  font-weight: 600;
}

.success-check {
  display: flex;
  justify-content: center;
  color: var(--success);
}

.success-check__circle {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawCircle 0.6s ease forwards 0.1s;
}

.success-check__mark {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: drawMark 0.45s ease forwards 0.55s;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawMark {
  to {
    stroke-dashoffset: 0;
  }
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  padding: calc(var(--space) * 4) 0;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 2);
  align-items: center;
  text-align: center;
}

.site-footer__email {
  margin: calc(var(--space) * 0.5) 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.site-footer__email a:hover {
  color: var(--accent);
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.site-footer__nav {
  display: flex;
  align-items: center;
  gap: calc(var(--space) * 2);
  font-size: 0.875rem;
}

.site-footer__nav a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: var(--accent);
}

.site-footer__sep {
  color: var(--border);
}

/* —— Mobile: spacing & typography (FIX 8) —— */
@media (max-width: 767px) {
  .section {
    padding: 60px 20px;
  }

  .section--form {
    padding-bottom: 60px;
  }

  .container {
    padding-inline: 20px;
  }

  .section > .container,
  .hero > .container {
    padding-inline: 0;
  }

  .hero {
    padding: 60px 20px;
    padding-top: calc(var(--header-h) + 24px);
  }

  .section__title {
    font-size: clamp(24px, 6vw, 36px);
  }

  body {
    font-size: 15px;
    line-height: 1.6;
  }

  .card {
    padding: 16px;
  }

  .trust-badges-row {
    gap: 10px;
  }

  .video-testimonials-row {
    padding-bottom: 16px;
    box-sizing: border-box;
  }

  .site-footer__copy,
  .site-footer__nav {
    font-size: 13px;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 12px;
  }

  .site-footer__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================================================
   Rechtliche Seiten (Impressum, Datenschutz)
   ========================================================================== */

.body--legal-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.body--legal-page .legal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-legal {
  position: relative;
  flex: 1;
  padding: calc(var(--header-h) + var(--space) * 2) 0 calc(var(--space) * 8);
  overflow: hidden;
  background: var(--bg-secondary);
}

.page-legal__mesh {
  z-index: 0;
  pointer-events: none;
}

.legal-page__container {
  position: relative;
  z-index: 1;
}

.legal-page__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: calc(var(--space) * 4);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
  .legal-page__card {
    padding: calc(var(--space) * 5) calc(var(--space) * 6);
  }
}

.body--legal-page .site-footer {
  margin-top: auto;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: calc(var(--space) * 3);
  line-height: 1.25;
}

.legal-page h2 {
  font-size: 1.125rem;
  margin-top: calc(var(--space) * 5);
  margin-bottom: calc(var(--space) * 2);
  color: var(--text-primary);
  line-height: 1.35;
}

.legal-page h3 {
  font-size: 1rem;
  margin-top: calc(var(--space) * 3);
  margin-bottom: calc(var(--space) * 1);
  color: var(--text-primary);
}

/* Lange Gesetzestitel / Komposita umbrechen — nur auf rechtlichen Seiten */
.legal-page h1,
.legal-page h2,
.legal-page h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 calc(var(--space) * 2);
  padding-left: 1.25rem;
}

.legal-page li {
  margin-bottom: calc(var(--space) * 1);
}

.legal-page a {
  color: var(--accent);
}

.legal-back {
  display: inline-block;
  margin-bottom: calc(var(--space) * 4);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-page .legal-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: calc(var(--space) * 6);
}

/* ==========================================================================
   404 — Fehlerseite
   ========================================================================== */

.body--error-404 {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.body--error-404 .page-404-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-404 {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space) * 6) var(--space) calc(var(--space) * 10);
  overflow: hidden;
}

.page-404__mesh {
  z-index: 0;
  pointer-events: none;
}

.page-404__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
}

.page-404__code {
  margin: 0 0 calc(var(--space) * 1);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: 0.4;
  user-select: none;
}

.page-404__eyebrow {
  margin: 0 0 calc(var(--space) * 2);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.page-404__title {
  margin: 0 0 calc(var(--space) * 3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-404__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 42ch;
}

.page-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 2);
  justify-content: center;
  margin-top: calc(var(--space) * 5);
}

.body--error-404 .site-footer {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Cookie-Banner & Einstellungen (DSGVO)
   -------------------------------------------------------------------------- */

body.cookie-banner-visible {
  padding-bottom: max(120px, env(safe-area-inset-bottom, 0));
}

.cookie-banner {
  position: fixed;
  z-index: 200;
  left: 0;
  right: 0;
  bottom: 0;
  padding: calc(var(--space) * 2);
  padding-bottom: max(calc(var(--space) * 2), env(safe-area-inset-bottom, 0));
  background: rgba(7, 7, 13, 0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 2);
  max-width: 1120px;
  margin-inline: auto;
}

.cookie-banner__text p {
  margin: 0 0 calc(var(--space) * 1);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.cookie-banner__text p:first-child {
  margin-bottom: calc(var(--space) * 1);
  color: var(--text-primary);
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: var(--text-primary);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 1.5);
  align-items: center;
}

/* Mobil: erste zwei Buttons nebeneinander, „Einstellungen“ volle Breite */
@media (max-width: 767px) {
  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--space) * 1.5);
    align-items: stretch;
  }

  .cookie-banner__actions #cookieBtnAccept,
  .cookie-banner__actions #cookieBtnReject {
    min-width: 0;
  }

  .cookie-banner__actions #cookieBtnSettings {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space) * 2);
}

.cookie-modal[hidden] {
  display: none !important;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.cookie-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: calc(var(--space) * 3);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.cookie-modal__close {
  position: absolute;
  top: calc(var(--space) * 1.5);
  right: calc(var(--space) * 1.5);
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.cookie-modal__close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.cookie-modal__title {
  margin: 0 0 calc(var(--space) * 2);
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.cookie-modal__intro {
  margin: 0 0 calc(var(--space) * 3);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cookie-modal__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: calc(var(--space) * 2);
  padding: calc(var(--space) * 2) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.cookie-modal__row--check {
  cursor: pointer;
}

.cookie-modal__row--check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.cookie-modal__hint {
  display: block;
  margin-top: calc(var(--space) * 0.5);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.cookie-modal__badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.cookie-modal__legal {
  margin: calc(var(--space) * 2) 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.cookie-modal__legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 1.5);
  justify-content: flex-end;
  margin-top: calc(var(--space) * 3);
}

.site-footer__link-btn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__link-btn:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .cookie-banner__text {
    flex: 1;
    min-width: min(100%, 520px);
  }

  .cookie-banner__actions {
    flex-shrink: 0;
  }

  body.cookie-banner-visible {
    padding-bottom: max(96px, env(safe-area-inset-bottom, 0));
  }
}
