/* =========================================================================
   AutomaNext – gemeinsames Designsystem
   Abgeleitet aus der Startseite (home-header.css, websites.css,
   erst-sprechen.css …). Wird auf allen öffentlichen Seiten als letztes
   Stylesheet geladen und bildet die älteren Tokens aus style.css auf
   dieselben Werte ab, damit Unterseiten wie die Startseite wirken.
   ========================================================================= */

:root {
  /* Startseiten-Tokens (werden von den Startseiten-Komponenten bereits
     als var(--blue, …) usw. abgefragt) */
  --blue: #1735ff;
  --blue-hover: #2b47ff;
  --blue-active: #102bdb;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --bg-light: #f5f5f7;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius-pill: 980px;
  --radius-card-lg: 28px;
  --line: #e8e8ed;

  /* Ältere Tokens aus style.css auf das Startseiten-System abbilden */
  --ink: var(--text);
  --ink-soft: #424245;
  --muted: var(--text-secondary);
  --brand: var(--blue);
  --brand-deep: var(--blue-active);
  --brand-soft: #eef0ff;
  --brand-light: #8494ff;
  --radius-btn: var(--radius-pill);
  /* war transparent: Formularfelder, FAQ-Trennlinien und Zeitleisten waren unsichtbar */
  --border-strong: #d2d2d7;
}

/* ---------- Typografie im Inhaltsbereich ---------- */

main {
  font-family: var(--font-text);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main :is(h1, h2, h3, h4) {
  font-family: var(--font-display);
}

/* Überschriften ohne eigenes Gewicht erben sonst das Browser-Default „bold“ */
main :is(h1, h2) {
  font-weight: 600;
}

/* ---------- Buttons (wie .hh-btn der Startseite) ---------- */

main .btn,
.conversation-cta__button {
  min-height: 44px;
  padding: 11px 21px;
  border-radius: var(--radius-pill);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.17648;
  transition: background-color .1s linear, color .1s linear, box-shadow .1s linear, transform .2s ease;
}
main .btn-lg { padding: 14px 26px; }
main .btn-solid { background: var(--blue); color: #fff; }
main .btn-solid:hover { background: var(--blue-hover); color: #fff; }
main .btn-solid:active { background: var(--blue-active); }
main .btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
main .btn-ghost:hover { background: var(--blue); color: #fff; box-shadow: inset 0 0 0 1px var(--blue); }
main .btn-light { background: #fff; color: var(--blue); }
main .btn-light:hover { background: #f5f5f7; color: var(--blue-active); }
main .btn:focus-visible,
.conversation-cta__button:focus-visible { outline: 3px solid rgb(23 53 255 / .55); outline-offset: 2px; }

/* ---------- Eyebrows (wie .es-eyebrow der Startseite) ---------- */

main :is(
  .section-eyebrow, .lp-eyebrow, .corporate-eyebrow, .hero-kicker,
  .cro-eyebrow, .bw-eyebrow, .sys-eyebrow,
  .op-kicker, .op-why-kicker, .wp-process-eyebrow, .corporate-section-index span, [class*="__eyebrow"],
  [class*="-eyebrow"]:not([class*="dashboard"])
),
.conversation-cta__eyebrow {
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.23536;
  text-transform: none;
}

/* ---------- Globaler Abschluss „Erst sprechen.“ wie <erst-sprechen> ---------- */

.conversation-cta {
  position: relative;
  overflow: hidden;
  padding: 140px 0 150px;
  background: #fff;
  font-family: var(--font-text);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.conversation-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 60% at 78% 50%, rgb(23 53 255 / .07), rgb(23 53 255 / 0) 70%);
  pointer-events: none;
}
.conversation-cta__shell {
  position: relative;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(56px, 7vw, 96px);
  width: min(calc(100% - 80px), 1180px);
  max-width: 1180px;
  min-height: 0;
  padding-inline: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.conversation-cta__content { padding: 0; }
.conversation-cta__eyebrow { margin: 0 0 14px; color: var(--blue); }
.conversation-cta h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(46px, 4.8vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.0625;
  white-space: normal;
  text-wrap: balance;
}
.conversation-cta__line { display: block; }
/* Akzentzeile wie „Dann entscheiden.“ auf der Startseite */
.conversation-cta__line--accent {
  width: fit-content;
  max-width: 100%;
  padding-bottom: .06em;
  background-image: linear-gradient(90deg, var(--blue) 0%, #7b5cff 50%, var(--blue) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* Längere, mehrzeilige Titel (SEO, Wartung) fließen natürlich auf Section-Größe */
.conversation-cta--long h2 { font-size: clamp(36px, 3.4vw, 48px); line-height: 1.08; }
.conversation-cta--long .conversation-cta__line { display: inline; }
.conversation-cta__note { margin: 16px 0 0; font-size: 14px; line-height: 1.43; }
.conversation-cta__text {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--text-secondary);
  font-size: 21px;
  letter-spacing: .011em;
  line-height: 1.381;
  text-wrap: pretty;
}
.conversation-cta__features { color: var(--text); }
.conversation-cta__button {
  justify-content: center;
  gap: 10px;
  min-width: 0;
  margin-top: 36px;
  padding: 14px 26px;
  background: var(--blue);
  box-shadow: none;
}
.conversation-cta__button span { font-size: 1em; font-weight: 400; line-height: 1; }
.conversation-cta__note { color: var(--text-secondary); }
.conversation-cta__trust { flex-wrap: wrap; gap: 10px; margin-top: 32px; color: var(--text); }
.conversation-cta__trust li {
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-light);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.016em;
  line-height: 1.28577;
}
.conversation-cta__trust li + li { margin-left: 0; padding-left: 12px; }
.conversation-cta__trust li + li::before { display: none; }
.conversation-cta__trust li > span {
  width: 16px;
  height: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
}
.conversation-cta__visual {
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: 32px;
  background: #e8e8ed;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .35);
  isolation: isolate;
}
@media (hover: hover) and (pointer: fine) {
  .conversation-cta__button:hover { background: var(--blue-hover); box-shadow: none; transform: none; }
  .conversation-cta__button:hover span { transform: translateX(3px); }
}
@media (max-width: 1068px) {
  .conversation-cta { padding: 110px 0 120px; }
  .conversation-cta__shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
    width: min(calc(100% - 80px), 640px);
    text-align: center;
  }
  .conversation-cta__content { align-items: center; padding: 0; }
  .conversation-cta__line--accent { margin-inline: auto; }
  .conversation-cta__text { margin-inline: auto; }
  .conversation-cta__button { align-self: center; }
  .conversation-cta__trust { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; }
  .conversation-cta__features { justify-content: center; }
  .conversation-cta__features li { text-align: left; }
  .conversation-cta__visual { width: 100%; max-width: 520px; margin: 0 auto; }
  .conversation-cta h2 { font-size: 56px; line-height: 1.07143; }
}
@media (max-width: 734px) {
  .conversation-cta { padding: 88px 0 96px; }
  .conversation-cta__shell { gap: 48px; width: calc(100% - 44px); }
  .conversation-cta__eyebrow { margin-bottom: 10px; font-size: 15px; }
  .conversation-cta h2 { font-size: clamp(32px, 9.6vw, 40px); line-height: 1.1; letter-spacing: 0; }
  .conversation-cta__text { margin-top: 18px; font-size: 17px; line-height: 1.47059; letter-spacing: -0.022em; }
  .conversation-cta__button { width: auto; margin-top: 28px; padding: 12px 22px; font-size: 15px; }
  .conversation-cta__trust { margin-top: 24px; }
  .conversation-cta__visual { border-radius: 24px; }
}

/* ---------- Formularfelder: Felder wieder sichtbar begrenzen ---------- */

.form-field :is(input, select, textarea) { font-family: var(--font-text); border-radius: 12px; }
.form-field :is(input, select, textarea):focus-visible { box-shadow: 0 0 0 4px rgb(23 53 255 / .14); }
main :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--blue); }

/* ---------- Footer-Feinschliff ---------- */

.footer-privacy-button {
  display: block;
  padding: .22rem 0;
  color: var(--on-dark-muted);
  font-size: .95rem;
  line-height: inherit;
  transition: color .15s var(--ease-out);
}
.footer-affiliate-link { border-radius: var(--radius-pill); }

@media (prefers-reduced-motion: reduce) {
  main .btn, .conversation-cta__button, .conversation-cta__button span { transition: none; }
}

@media (max-width: 1068px) {
  .conversation-cta--long h2 { font-size: 40px; line-height: 1.1; }
}
@media (max-width: 734px) {
  .conversation-cta--long h2 { font-size: 30px; line-height: 1.13; }
}

/* =========================================================================
   Gemeinsame Bausteine auf Startseiten-Niveau
   ========================================================================= */

/* ---------- FAQ-Einträge (alle Seiten mit .faq-item) ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { gap: 24px; padding: 26px 0; }
.faq-item summary h3 {
  color: var(--text);
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.32;
}
.faq-item summary:hover h3 { color: var(--blue); }
.faq-item > p,
.faq-item .faq-answer {
  max-width: 680px;
  padding: 0 48px 28px 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-more { margin-top: 28px; color: var(--text-secondary); font-size: 15px; }
.faq-more a { color: var(--blue); font-weight: 600; }

/* ---------- Hero mit Demo (/web, Business-Webseiten) – wie .hh der Startseite ---------- */
main .page-head--web { padding: 0; background: #fff; }
main .page-head--web .page-head-grid {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(40px, 4.5vw, 88px);
  max-width: 1680px;
  min-height: 640px;
  padding: 72px clamp(22px, 4.7vw, 90px) 88px;
}
main .page-head--web .page-title {
  color: var(--text);
  font-size: clamp(44px, 3.9vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
main .page-head--web .page-intro {
  max-width: 540px;
  margin-top: 28px;
  color: var(--text-secondary);
  font-size: clamp(19px, 1.45vw, 24px);
  letter-spacing: 0.009em;
  line-height: 1.5;
}
main .page-head--web .hero-actions { gap: 14px 16px; margin-top: 36px; }
main .page-head--web .hero-actions .btn {
  min-height: 44px;
  padding: 11px 21px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.17648;
}
main .page-head--web .btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--blue); }
main .page-head--web .btn-ghost:hover { background: var(--blue); color: #fff; }
main .page-head--web .web-demo-frame-wrap {
  border: 1px solid rgb(0 0 0 / .06);
  border-radius: 28px;
  box-shadow: 0 40px 80px -36px rgb(0 0 0 / .28), 0 2px 6px rgb(0 0 0 / .04);
}
main .page-head--web .web-demo-fullscreen { border-radius: 980px; }

@media (max-width: 1068px) {
  main .page-head--web .page-head-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; min-height: 0; padding: 64px 40px 72px; text-align: center; }
  main .page-head--web .page-title { font-size: 56px; }
  main .page-head--web .page-intro { max-width: 600px; margin-inline: auto; font-size: 21px; }
  main .page-head--web .hero-actions { justify-content: center; }
}
@media (max-width: 734px) {
  main .page-head--web .page-head-grid { gap: 40px; padding: 48px 22px 56px; }
  main .page-head--web .page-title { font-size: 40px; line-height: 1.1; }
  main .page-head--web .page-intro { margin-top: 18px; font-size: 19px; line-height: 1.42; }
  main .page-head--web .hero-actions .btn { padding: 9px 18px; font-size: 15px; }
}

/* =========================================================================
   Einfache Seiten (Kontakt, Impressum, Datenschutz, 404)
   Kopfbereich wie .hh der Startseite: große Headline, ruhiges Intro, viel Luft.
   ========================================================================= */
main > .page-head:not(.page-head--web) { padding: 112px 0 64px; background: #fff; }
main > .page-head:not(.page-head--web) > .container,
main .legal > .container,
main .contact > .container { max-width: 1260px; padding-inline: clamp(22px, 4.7vw, 64px); }
main > .page-head:not(.page-head--web) .page-title {
  max-width: 820px;
  font-size: clamp(44px, 3.9vw, 64px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
main > .page-head:not(.page-head--web) .page-intro {
  max-width: 640px;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: clamp(19px, 1.45vw, 22px);
  line-height: 1.5;
}
main > .page-head.notfound { padding: 160px 0 176px; text-align: center; }
main > .page-head.notfound :is(.page-title, .page-intro) { margin-inline: auto; }
main > .page-head.notfound .hero-actions { justify-content: center; gap: 14px 16px; margin-top: 40px; }

/* Rechtstexte: ruhige Lesespalte */
main .legal { padding: 0 0 136px; }
main .legal-inner.container { max-width: 1260px; }
main .legal-inner > * { max-width: 760px; }
main .legal h2 { margin: 56px 0 14px; padding-top: 32px; border-top: 1px solid var(--line); font-size: clamp(21px, 1.6vw, 24px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
main .legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
main .legal :is(p, li) { color: var(--text-secondary); font-size: 17px; line-height: 1.6; }
main .legal a { color: var(--blue); }

/* ---------- Kontakt: Formular als weiße Karte auf Hellgrau ---------- */
.contact-page .contact { padding: 88px 0 136px; background: var(--bg-light); }
.contact-page .contact-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); }
.contact-page .contact-form-wrap {
  padding: clamp(28px, 3.6vw, 56px);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 70px -44px rgb(0 0 0 / .22);
}
.contact-page .form-row { gap: 20px; }
.contact-page .form-field { margin-bottom: 22px; }
.contact-page :is(.form-field label, .form-legend) { color: var(--text); font-size: 15px; font-weight: 600; }
.contact-page .form-field :is(input:not([type="radio"], [type="checkbox"]), select, textarea) {
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 17px;
}
.contact-page .form-field textarea { min-height: 160px; }
.contact-page .form-field :is(input:not([type="radio"], [type="checkbox"]), select, textarea):focus-visible { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(23 53 255 / .14); }
.contact-page .radio-row { gap: 24px; }
.contact-page :is(.radio-label, .consent-label span) { color: var(--text-secondary); font-size: 15px; }
.contact-page :is(.radio-label input, .consent-label input) { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--blue); flex-shrink: 0; }
.contact-page .radio-label { display: inline-flex; align-items: center; gap: 10px; }
.contact-page .form-field .consent-label { display: flex; align-items: flex-start; gap: 12px; }
.contact-page .consent-label input { margin-top: 3px; }
.contact-page .contact-form .btn { min-height: 52px; margin-top: 12px; font-size: 17px; }
.contact-page :is(.form-success, .form-alert) { border-radius: 18px; }

/* Seitenleiste: Typografie statt bunter Kästen */
.contact-page .contact-aside { gap: 0; padding-top: 8px; }
.contact-page .aside-block { padding: 32px 0; border: 0; border-top: 1px solid #d2d2d7; border-radius: 0; background: none; }
.contact-page .aside-block:first-child { padding-top: 0; border-top: 0; }
.contact-page .aside-block h2 { margin-bottom: 18px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.contact-page .after-list { gap: 16px; }
.contact-page .after-list li { gap: 14px; color: var(--text-secondary); font-size: 17px; line-height: 1.45; }
.contact-page .step-num--sm { width: 28px; height: 28px; margin-top: -2px; background: var(--text); font-size: 13px; font-weight: 600; }
.contact-page .aside-contact { gap: 6px; }
.contact-page .aside-contact a { color: var(--blue); font-size: 19px; font-weight: 500; }
.contact-page .aside-note { margin-top: 12px; color: var(--text-secondary); font-size: 15px; }
.contact-page .aside-block--quiet p { color: var(--text); font-size: 17px; line-height: 1.5; }
.contact-page .aside-block--affiliate { margin-top: 8px; padding: 28px; border-top: 0; border-radius: 22px; background: #fff; }
.contact-page .aside-block--affiliate h2 { margin: 8px 0 0; }
.contact-page .aside-block--affiliate p { color: var(--text-secondary); font-size: 15px; line-height: 1.5; }
.contact-page .aside-affiliate-label { color: var(--blue); font-size: 12px; letter-spacing: .06em; }

@media (max-width: 1068px) {
  main > .page-head:not(.page-head--web) { padding: 88px 0 56px; }
  main > .page-head:not(.page-head--web) .page-title { font-size: 56px; }
  .contact-page .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-page .contact-aside { display: flex; flex-direction: column; max-width: 680px; padding-top: 0; }
}
@media (max-width: 734px) {
  main > .page-head:not(.page-head--web) { padding: 64px 0 40px; }
  main > .page-head.notfound { padding: 96px 0 112px; }
  main > .page-head:not(.page-head--web) .page-title { font-size: 40px; line-height: 1.1; }
  main > .page-head:not(.page-head--web) .page-intro { margin-top: 18px; font-size: 19px; }
  main .legal { padding-bottom: 96px; }
  .contact-page .contact { padding: 40px 0 96px; }
  .contact-page .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-page .contact-form-wrap { border-radius: 22px; }
}

/* ---------- FAQ-Seite (corporate-page ohne Über-uns-Aufbau) ---------- */
.corporate-page .corporate-hero { min-height: 0; padding: 48px 0 96px; }
.corporate-page .corporate-hero > .container,
.corporate-page .corporate-faq > .container { max-width: 1260px; padding-inline: clamp(22px, 4.7vw, 64px); }
.corporate-page .corporate-hero-copy { margin-top: 88px; }
.corporate-page .corporate-hero h1 { margin-top: 14px; font-size: clamp(44px, 3.9vw, 64px); line-height: 1.07; letter-spacing: -0.025em; }
.corporate-page .corporate-hero-intro { max-width: 640px; margin-top: 24px; color: var(--text-secondary); font-size: clamp(19px, 1.45vw, 22px); line-height: 1.5; }
.corporate-page .corporate-faq { padding: 120px 0 136px; background: var(--bg-light); }
.corporate-page .corporate-faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 96px); }
.corporate-page .corporate-faq-layout > div:last-child { max-width: 860px; }
.corporate-page .corporate-faq-list {
  margin-top: 48px;
  padding: 8px clamp(24px, 3.2vw, 48px);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 70px -44px rgb(0 0 0 / .22);
}
.corporate-page .corporate-faq-list .faq-item:first-child { border-top: 0; }
.corporate-page .corporate-faq-list .faq-item:last-child { border-bottom: 0; }

@media (max-width: 1068px) {
  .corporate-page .corporate-hero-copy { margin-top: 56px; }
  .corporate-page .corporate-hero h1 { font-size: 56px; }
  .corporate-page .corporate-faq-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 734px) {
  .corporate-page .corporate-hero { padding: 32px 0 64px; }
  .corporate-page .corporate-hero-copy { margin-top: 40px; }
  .corporate-page .corporate-hero h1 { font-size: 40px; line-height: 1.1; }
  .corporate-page .corporate-hero-intro { margin-top: 18px; font-size: 19px; }
  .corporate-page .corporate-faq { padding: 72px 0 96px; }
  .corporate-page .corporate-faq-list { margin-top: 32px; border-radius: 22px; }
}

/* ---------- Kontextlinks im Fließtext (dezent, erben die Textfarbe) ---------- */
main a.inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: text-decoration-thickness .15s ease, color .15s ease;
}
main a.inline-link:hover { text-decoration-thickness: 2px; }
main a.inline-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.about-hero__services a { color: inherit; text-decoration: none; }
.about-hero__services a:hover { text-decoration: underline; text-underline-offset: .18em; }
