/* ==========================================================================
   AYB Theme — Basis und Design-System
   Farben und Typografie stammen aus dem bestehenden Perspective-Funnel,
   damit der Nachbau optisch deckungsgleich bleibt.
   ========================================================================== */

/* --- Schriften ---------------------------------------------------------- */
/* Self-hosted statt Google-CDN: kein Drittanbieter-Request, kein Datenschutz-
   Thema, und ein Roundtrip weniger im kritischen Renderpfad. */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Design-Tokens ------------------------------------------------------ */

:root {
  /* Farben — aus dem Perspective-Funnel ausgelesen */
  --ayb-navy: #2a3e66;
  --ayb-navy-dark: #1e2d4a;
  --ayb-navy-light: #3d5486;
  --ayb-heading: #000000;
  --ayb-text: #5c5c5c;
  --ayb-text-light: #7a7a7a;
  --ayb-surface: #f5f5f5;
  --ayb-border: #e5e7eb;
  --ayb-white: #ffffff;

  /* Typografie */
  --ayb-font: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Fließende Schriftskala: skaliert zwischen 360px und 1280px Viewport,
     danach konstant. Spart Media Queries für Typografie komplett ein. */
  --ayb-fs-hero: clamp(2.25rem, 1.2rem + 4.6vw, 3.5rem);   /* 36 → 56 */
  --ayb-fs-h1: clamp(2rem, 1.2rem + 3.5vw, 3rem);          /* 32 → 48 */
  --ayb-fs-h2: clamp(1.625rem, 1.1rem + 2.3vw, 2.25rem);   /* 26 → 36 */
  --ayb-fs-h3: clamp(1.25rem, 1rem + 1.1vw, 1.5rem);       /* 20 → 24 */
  --ayb-fs-lead: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem);  /* 17 → 20 */
  --ayb-fs-body: 1rem;
  --ayb-fs-small: 0.875rem;

  --ayb-lh-tight: 1.15;
  --ayb-lh-heading: 1.25;
  --ayb-lh-body: 1.65;

  /* Abstände — 8px-Raster */
  --ayb-sp-xs: 0.5rem;
  --ayb-sp-sm: 1rem;
  --ayb-sp-md: 1.5rem;
  --ayb-sp-lg: 2.5rem;
  --ayb-sp-xl: 4rem;
  --ayb-sp-2xl: clamp(4rem, 2rem + 8vw, 7rem);  /* Abstand zwischen Sections */

  /* Layout */
  --ayb-container: 1200px;
  --ayb-container-narrow: 800px;
  --ayb-radius: 12px;
  --ayb-radius-lg: 20px;

  --ayb-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.05);
  --ayb-shadow-lg: 0 4px 12px rgba(42, 62, 102, 0.1),
    0 16px 40px rgba(42, 62, 102, 0.08);

  --ayb-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset -------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--ayb-font);
  font-size: var(--ayb-fs-body);
  line-height: var(--ayb-lh-body);
  color: var(--ayb-text);
  background: var(--ayb-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img,
picture,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typografie --------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--ayb-sp-md);
  color: var(--ayb-heading);
  font-weight: 700;
  line-height: var(--ayb-lh-heading);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--ayb-fs-h1);
  line-height: var(--ayb-lh-tight);
}
h2 {
  font-size: var(--ayb-fs-h2);
}
h3 {
  font-size: var(--ayb-fs-h3);
}
h4 {
  font-size: var(--ayb-fs-lead);
}

p {
  margin: 0 0 var(--ayb-sp-md);
}

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

a {
  color: var(--ayb-navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--ayb-transition);
}

a:hover {
  color: var(--ayb-navy-light);
}

strong,
b {
  font-weight: 700;
  color: var(--ayb-heading);
}

.ayb-lead {
  font-size: var(--ayb-fs-lead);
  line-height: 1.6;
}

.ayb-eyebrow {
  display: block;
  margin-bottom: var(--ayb-sp-sm);
  font-size: var(--ayb-fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ayb-navy);
}

/* --- Layout ------------------------------------------------------------- */

.ayb-container {
  width: 100%;
  max-width: var(--ayb-container);
  margin-inline: auto;
  padding-inline: var(--ayb-sp-md);
}

.ayb-container--narrow {
  max-width: var(--ayb-container-narrow);
}

.ayb-section {
  padding-block: var(--ayb-sp-2xl);
}

.ayb-section--surface {
  background: var(--ayb-surface);
}

.ayb-section--navy {
  background: var(--ayb-navy);
  color: rgba(255, 255, 255, 0.85);
}

.ayb-section--navy h1,
.ayb-section--navy h2,
.ayb-section--navy h3,
.ayb-section--navy strong {
  color: var(--ayb-white);
}

.ayb-section__head {
  max-width: 46rem;
  margin-bottom: var(--ayb-sp-xl);
}

.ayb-section__head--center {
  margin-inline: auto;
  text-align: center;
}

/* Autofit-Grid: bricht ohne Media Queries um, sobald die Spalten
   unter die Mindestbreite fallen würden. */
.ayb-grid {
  display: grid;
  gap: var(--ayb-sp-md);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.ayb-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

/* --- Buttons ------------------------------------------------------------ */

.ayb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ayb-sp-xs);
  padding: 0.9375rem 2rem;
  border: 2px solid transparent;
  border-radius: var(--ayb-radius);
  font-family: inherit;
  font-size: var(--ayb-fs-body);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ayb-transition),
    border-color var(--ayb-transition), color var(--ayb-transition),
    transform var(--ayb-transition), box-shadow var(--ayb-transition);
}

.ayb-btn--primary {
  background: var(--ayb-navy);
  border-color: var(--ayb-navy);
  color: var(--ayb-white);
}

.ayb-btn--primary:hover {
  background: var(--ayb-navy-dark);
  border-color: var(--ayb-navy-dark);
  color: var(--ayb-white);
  transform: translateY(-2px);
  box-shadow: var(--ayb-shadow-lg);
}

.ayb-btn--ghost {
  background: transparent;
  border-color: var(--ayb-navy);
  color: var(--ayb-navy);
}

.ayb-btn--ghost:hover {
  background: var(--ayb-navy);
  color: var(--ayb-white);
}

.ayb-btn--light {
  background: var(--ayb-white);
  border-color: var(--ayb-white);
  color: var(--ayb-navy);
}

.ayb-btn--light:hover {
  background: transparent;
  color: var(--ayb-white);
}

/* --- Karten ------------------------------------------------------------- */

.ayb-card {
  padding: var(--ayb-sp-lg);
  background: var(--ayb-white);
  border: 1px solid var(--ayb-border);
  border-radius: var(--ayb-radius-lg);
  transition: transform var(--ayb-transition), box-shadow var(--ayb-transition);
}

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

.ayb-card h3 {
  margin-bottom: var(--ayb-sp-sm);
}

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

/* --- Barrierefreiheit --------------------------------------------------- */

/* Sichtbarer Fokusring — ausschließlich für Tastaturnutzung, damit
   Mausklicks keinen Ring hinterlassen. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--ayb-navy);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.ayb-skip-link {
  position: absolute;
  top: -100%;
  left: var(--ayb-sp-sm);
  z-index: 999;
  padding: var(--ayb-sp-xs) var(--ayb-sp-md);
  background: var(--ayb-navy);
  color: var(--ayb-white);
  text-decoration: none;
  border-radius: 0 0 var(--ayb-radius) var(--ayb-radius);
}

.ayb-skip-link:focus {
  top: 0;
  color: var(--ayb-white);
}

/* --- Kopfbereich -------------------------------------------------------- */

.ayb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Durchgehend Navy statt Weiß: Die Leiste gehört damit sichtbar zur
     Marke, statt als neutraler Rahmen über dem Inhalt zu schweben. */
  background: var(--ayb-navy);
  border-bottom: 1px solid transparent;
  transition: background-color var(--ayb-transition), box-shadow var(--ayb-transition);
}

.ayb-header.is-scrolled {
  background: var(--ayb-navy-dark);
  box-shadow: 0 4px 24px rgba(14, 21, 36, 0.22);
}

.ayb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ayb-sp-md);
  min-height: 82px;
}

.ayb-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.ayb-header__brand img,
.ayb-header__logo {
  max-height: 48px;
  width: auto;
}

.ayb-header__brand-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ayb-navy);
  letter-spacing: -0.01em;
}

/* --- Navigation --------------------------------------------------------- */

.ayb-nav {
  display: flex;
  align-items: center;
  gap: var(--ayb-sp-lg);
}

.ayb-nav__list {
  display: flex;
  align-items: center;
  gap: var(--ayb-sp-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ayb-nav__list a {
  display: block;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--ayb-transition), border-color var(--ayb-transition);
}

.ayb-nav__list a:hover,
.ayb-nav__list .current-menu-item > a {
  color: var(--ayb-white);
  border-bottom-color: var(--ayb-white);
}

/* Die aktive Seite trägt zusätzlich mehr Gewicht — Farbe allein wäre für
   Menschen mit Farbsehschwäche kein verlässlicher Unterschied. */
.ayb-nav__list .current-menu-item > a {
  font-weight: 700;
}

/* Auf der Navy-Leiste braucht der Aufruf einen hellen Grund, sonst
   verschwindet er im Hintergrund. */
.ayb-nav__cta {
  background: var(--ayb-white);
  border-color: var(--ayb-white);
  color: var(--ayb-navy);
}

.ayb-nav__cta:hover {
  background: transparent;
  border-color: var(--ayb-white);
  color: var(--ayb-white);
}

.ayb-nav-toggle__bar {
  background: var(--ayb-white);
}

.ayb-nav__cta {
  padding: 0.6875rem 1.375rem;
  font-size: var(--ayb-fs-small);
  white-space: nowrap;
}

.ayb-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.ayb-nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--ayb-heading);
  border-radius: 2px;
  transition: transform var(--ayb-transition), opacity var(--ayb-transition);
}

.ayb-nav-toggle[aria-expanded='true'] .ayb-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.ayb-nav-toggle[aria-expanded='true'] .ayb-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.ayb-nav-toggle[aria-expanded='true'] .ayb-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 899px) {
  .ayb-nav-toggle {
    display: flex;
  }

  .ayb-nav {
    position: fixed;
    inset: 82px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--ayb-sp-md);
    background: var(--ayb-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 32px rgba(14, 21, 36, 0.3);
    /* Nicht display:none — sonst springt das Menü ohne Übergang auf. */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--ayb-transition), transform var(--ayb-transition),
      visibility var(--ayb-transition);
  }

  .ayb-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .ayb-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .ayb-nav__list a {
    padding: var(--ayb-sp-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .ayb-nav__cta {
    margin-top: var(--ayb-sp-md);
    width: 100%;
  }

  body.ayb-nav-open {
    overflow: hidden;
  }
}

/* --- Fußbereich --------------------------------------------------------- */

.ayb-footer {
  padding-block: var(--ayb-sp-xl) var(--ayb-sp-lg);
  background: var(--ayb-navy);
  color: rgba(255, 255, 255, 0.75);
}

.ayb-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.ayb-footer a:hover {
  color: var(--ayb-white);
  text-decoration: underline;
}

.ayb-footer__grid {
  display: grid;
  gap: var(--ayb-sp-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  padding-bottom: var(--ayb-sp-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ayb-footer__name {
  margin-bottom: var(--ayb-sp-xs);
  color: var(--ayb-white);
  font-size: var(--ayb-fs-h3);
  font-weight: 700;
}

.ayb-footer__logo-link {
  display: inline-block;
  margin-bottom: var(--ayb-sp-md);
}

.ayb-footer__logo {
  width: auto;
  max-height: 52px;
}

.ayb-footer__claim {
  margin: 0;
  font-size: var(--ayb-fs-small);
}

.ayb-footer__adresse {
  margin-top: var(--ayb-sp-md);
  font-size: var(--ayb-fs-small);
  font-style: normal;
  line-height: 1.7;
}

.ayb-footer__list,
.ayb-footer__legal {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ayb-footer__list li {
  margin-bottom: var(--ayb-sp-xs);
}

.ayb-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ayb-sp-sm);
  padding-top: var(--ayb-sp-lg);
  font-size: var(--ayb-fs-small);
}

.ayb-footer__copy {
  margin: 0;
}

.ayb-footer__legal {
  display: flex;
  gap: var(--ayb-sp-md);
}

/* --- Fließtext ---------------------------------------------------------- */

/* Gilt für Inhalte aus dem Editor, wo wir die Struktur nicht selbst
   in der Hand haben. */
.ayb-prose > * + * {
  margin-top: var(--ayb-sp-md);
}

.ayb-prose h2 {
  margin-top: var(--ayb-sp-xl);
}

.ayb-prose h3 {
  margin-top: var(--ayb-sp-lg);
}

.ayb-prose ul,
.ayb-prose ol {
  padding-left: 1.5rem;
}

.ayb-prose li + li {
  margin-top: var(--ayb-sp-xs);
}

.ayb-prose img {
  border-radius: var(--ayb-radius);
}

.ayb-prose table {
  width: 100%;
  border-collapse: collapse;
}

.ayb-prose th,
.ayb-prose td {
  padding: var(--ayb-sp-xs) var(--ayb-sp-sm);
  border-bottom: 1px solid var(--ayb-border);
  text-align: left;
}

.ayb-page__figure {
  margin: 0;
}

.ayb-page__figure img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
}

/* --- Seitennummerierung ------------------------------------------------- */

.ayb-pagination {
  margin-top: var(--ayb-sp-xl);
}

.ayb-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ayb-sp-xs);
  justify-content: center;
}

.ayb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: var(--ayb-sp-xs);
  border: 1px solid var(--ayb-border);
  border-radius: var(--ayb-radius);
  text-decoration: none;
}

.ayb-pagination .page-numbers.current {
  background: var(--ayb-navy);
  border-color: var(--ayb-navy);
  color: var(--ayb-white);
}

/* ==========================================================================
   Startseite
   ========================================================================== */

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

/* --- Hero --------------------------------------------------------------- */

.ayb-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(84vh, 760px);
  padding-block: var(--ayb-sp-2xl);
  overflow: hidden;
  color: var(--ayb-white);
  background: var(--ayb-navy-dark);
}

.ayb-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Der Text liegt hell auf dem Bild. Ohne Abdunklung wäre der Kontrast je
     nach Bildstelle unter dem Schwellwert für Lesbarkeit. */
  filter: brightness(0.42);
}

.ayb-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 56rem;
}

.ayb-hero__eyebrow {
  margin-bottom: var(--ayb-sp-sm);
  font-size: var(--ayb-fs-lead);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.ayb-hero__title {
  margin-bottom: var(--ayb-sp-md);
  font-size: var(--ayb-fs-hero);
  color: var(--ayb-white);
}

.ayb-hero__lead {
  max-width: 42rem;
  margin-bottom: var(--ayb-sp-lg);
  font-size: var(--ayb-fs-lead);
  color: rgba(255, 255, 255, 0.9);
}

.ayb-hero__actions {
  margin: 0;
}

/* --- Zweispalter (Text + Bild) ------------------------------------------ */

.ayb-split__inner {
  display: grid;
  gap: var(--ayb-sp-xl);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
}

.ayb-split__media {
  margin: 0;
}

.ayb-split__media img {
  width: 100%;
  border-radius: var(--ayb-radius-lg);
  box-shadow: var(--ayb-shadow);
}

.ayb-signature {
  margin-top: var(--ayb-sp-lg);
  padding-top: var(--ayb-sp-md);
  border-top: 1px solid var(--ayb-border);
}

.ayb-signature strong {
  display: block;
  font-size: var(--ayb-fs-h3);
}

.ayb-signature span {
  font-size: var(--ayb-fs-small);
}

/* --- Ursachen-Karten ---------------------------------------------------- */

.ayb-card--painpoint {
  padding: 0;
  overflow: hidden;
}

.ayb-card--painpoint .ayb-card__icon {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ayb-card--painpoint h3,
.ayb-card--painpoint p {
  padding-inline: var(--ayb-sp-lg);
}

.ayb-card--painpoint h3 {
  margin-top: var(--ayb-sp-lg);
}

.ayb-card--painpoint p {
  padding-bottom: var(--ayb-sp-lg);
}

/* --- Vorgehen (nummerierte Schritte) ------------------------------------ */

.ayb-steps {
  display: grid;
  gap: var(--ayb-sp-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  margin: 0 0 var(--ayb-sp-xl);
  padding: 0;
  list-style: none;
  counter-reset: ayb-step;
}

.ayb-steps__item {
  position: relative;
  counter-increment: ayb-step;
  padding-top: var(--ayb-sp-md);
  border-top: 3px solid var(--ayb-border);
}

/* Die Nummer kommt aus dem Counter, nicht aus dem Markup — so bleibt die
   Reihenfolge im HTML rein inhaltlich. */
.ayb-steps__item::before {
  content: counter(ayb-step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--ayb-sp-xs);
  font-size: var(--ayb-fs-h3);
  font-weight: 700;
  color: var(--ayb-navy);
  opacity: 0.35;
}

.ayb-steps__icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--ayb-sp-xs);
}

.ayb-steps__item h3 {
  margin-bottom: var(--ayb-sp-xs);
  font-size: var(--ayb-fs-h3);
}

.ayb-steps__item p {
  margin: 0;
  font-size: var(--ayb-fs-small);
}

/* --- Kundenstimme ------------------------------------------------------- */

.ayb-testimonial {
  position: relative;
  padding-block: var(--ayb-sp-2xl);
  overflow: hidden;
  color: var(--ayb-white);
  background: var(--ayb-navy-dark);
}

.ayb-testimonial__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.ayb-testimonial__quote {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.ayb-testimonial__quote blockquote {
  margin: 0 0 var(--ayb-sp-lg);
}

.ayb-testimonial__quote blockquote p {
  margin: 0;
  font-size: var(--ayb-fs-h3);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ayb-white);
}

.ayb-testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ayb-sp-sm);
  text-align: left;
}

.ayb-testimonial__author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ayb-testimonial__author strong {
  display: block;
  color: var(--ayb-white);
}

.ayb-testimonial__author span span {
  font-size: var(--ayb-fs-small);
  color: rgba(255, 255, 255, 0.75);
}

/* --- Zielgruppen -------------------------------------------------------- */

.ayb-checklist {
  display: grid;
  gap: var(--ayb-sp-md);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.ayb-checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--ayb-sp-sm);
  padding: var(--ayb-sp-md);
  background: var(--ayb-white);
  border: 1px solid var(--ayb-border);
  border-radius: var(--ayb-radius);
  font-weight: 500;
  color: var(--ayb-heading);
}

.ayb-checklist img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* --- Kundenlogos als Endlosband ----------------------------------------- */

.ayb-logos {
  padding-block: var(--ayb-sp-2xl);
  overflow: hidden;
  border-block: 1px solid var(--ayb-border);
  background: var(--ayb-white);
}

/* Der Abstand liegt bewusst am Band, nicht als margin-bottom am Titel:
   Der Titel ist das einzige Kind seines Containers und damit :last-child —
   die globale Regel `p:last-child { margin-bottom: 0 }` ist spezifischer
   als eine einzelne Klasse und hätte den Abstand still geschluckt. */
p.ayb-logos__titel {
  margin: 0;
  font-size: var(--ayb-fs-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ayb-text-light);
}

/* Das Fenster begrenzt das Band und blendet es an beiden Seiten aus, damit
   die Logos nicht hart an der Kante abgeschnitten erscheinen. */
.ayb-logos__fenster {
  position: relative;
  margin-top: var(--ayb-sp-xl);
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 9%,
    #000 91%,
    transparent
  );
}

.ayb-logos__band {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  /* Die Liste enthält jedes Logo zweimal. Ein Lauf um genau die halbe
     Breite endet deshalb dort, wo er optisch begonnen hat — der Rücksprung
     ist unsichtbar. */
  animation: ayb-logolauf 34s linear infinite;
}

.ayb-logos__band li {
  flex-shrink: 0;
}

.ayb-logos:hover .ayb-logos__band,
.ayb-logos:focus-within .ayb-logos__band {
  animation-play-state: paused;
}

.ayb-logos__band img {
  max-height: 44px;
  width: auto;
  /* Einheitliches Erscheinungsbild trotz unterschiedlicher Logo-Farbigkeit;
     beim Überfahren erscheint die Originalfarbe. */
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter var(--ayb-transition), opacity var(--ayb-transition);
}

.ayb-logos__band img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes ayb-logolauf {
  to {
    transform: translateX(-50%);
  }
}

/* Ohne Bewegung: Band anhalten und umbrechen lassen, damit trotzdem alle
   Logos sichtbar sind. */
@media (prefers-reduced-motion: reduce) {
  .ayb-logos__band {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }

  .ayb-logos__fenster {
    mask-image: none;
  }
}

/* --- Referenzkarten ----------------------------------------------------- */

.ayb-card--case,
.ayb-card--post {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.ayb-card--case .ayb-card__media img,
.ayb-card--post .ayb-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ayb-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--ayb-sp-lg);
}

.ayb-card__body h2,
.ayb-card__body h3 {
  margin-bottom: var(--ayb-sp-xs);
  font-size: var(--ayb-fs-h3);
}

.ayb-card__body h2 a,
.ayb-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.ayb-card__body h2 a:hover,
.ayb-card__body h3 a:hover {
  color: var(--ayb-navy);
}

.ayb-card__sub,
.ayb-card__date {
  display: block;
  margin-bottom: var(--ayb-sp-sm);
  font-size: var(--ayb-fs-small);
  font-weight: 600;
  color: var(--ayb-navy);
}

.ayb-card__cta {
  margin-top: auto;
  padding-top: var(--ayb-sp-md);
  margin-bottom: 0;
}

/* --- Häufige Fragen ----------------------------------------------------- */

.ayb-faq__item {
  border-bottom: 1px solid var(--ayb-border);
}

.ayb-faq__frage {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ayb-sp-md);
  padding-block: var(--ayb-sp-md);
  font-size: var(--ayb-fs-lead);
  font-weight: 600;
  color: var(--ayb-heading);
  cursor: pointer;
  list-style: none;
}

/* Der voreingestellte Dreiecks-Marker lässt sich nur so entfernen. */
.ayb-faq__frage::-webkit-details-marker {
  display: none;
}

.ayb-faq__frage::after {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 0.4em;
  border-right: 2px solid var(--ayb-navy);
  border-bottom: 2px solid var(--ayb-navy);
  transform: rotate(45deg);
  transition: transform var(--ayb-transition);
}

.ayb-faq__item[open] .ayb-faq__frage::after {
  transform: rotate(-135deg);
}

.ayb-faq__antwort {
  padding-bottom: var(--ayb-sp-md);
}

.ayb-faq__antwort p {
  margin: 0;
}

/* --- Abschluss-Aufforderung --------------------------------------------- */

.ayb-cta .ayb-lead {
  margin-bottom: var(--ayb-sp-lg);
  color: rgba(255, 255, 255, 0.85);
}

.ayb-cta__hinweis {
  margin-top: var(--ayb-sp-md);
  margin-bottom: 0;
  font-size: var(--ayb-fs-small);
  color: rgba(255, 255, 255, 0.6);
}
