/* css/pages.css
   Page-specific layout styles for steffenoehme.de
   Loads after components.css in cascade (order mandatory in <head>)
   Contains: section layouts, grid arrangements, page-specific overrides
*/

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

#hero {
  padding: var(--space-16) 0;
}

/* Hero-Text: flex shrinkable to prevent overflow on narrow viewports */
.hero-text {
  flex: 2;           /* 2/3 der Breite */
  min-width: 0;
  max-width: 620px;
  padding-bottom: var(--space-8);  /* Luft unter dem Button */
}

.hero-photo {
  max-width: 320px;
  width: 320px;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

/* -- Hero Variante 1: nobg-Foto, angepasste Größe, subtiler Halo ----------- */
#hero[data-hero-variant="1"] .hero-inner {
  align-items: flex-end;  /* Bild + Text am unteren Rand ausrichten */
}

#hero[data-hero-variant="1"] .hero-photo {
  flex: 1;            /* 1/3 der Breite */
  width: auto;
  max-width: 38%;     /* nie mehr als 1/3 + etwas Luft */
  height: auto;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  margin-bottom: -1px; /* eliminiert 1px Subpixel-Lücke */
  /* Subtiler Halo */
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.25));
}

/* Hero-Section: padding-bottom 0 damit Foto bündig unten endet,
   aber .hero-text hat eigenes padding-bottom für Luft unter dem Button */
#hero[data-hero-variant="1"] {
  padding-bottom: 0;
}

/* Responsive: Hero V1 auf Tablet */
@media (max-width: 1024px) {
  #hero[data-hero-variant="1"] .hero-photo {
    max-width: 35%;
  }
}

@media (max-width: 768px) {
  /* Foto-img ausblenden — Foto läuft als ::after hinter dem Text */
  #hero[data-hero-variant="1"] .hero-photo {
    display: none;
  }

  /* Beim Scrollen bottom-padding wiederherstellen (Desktop-Regel hat padding-bottom:0) */
  #hero[data-hero-variant="1"] {
    padding-bottom: var(--space-6);
  }

  /* Foto vor dem Text (z-index 2), Gesicht startet unterhalb der Headline.
     background-size: auto 58% → Kopf beginnt ~42% von oben (unterhalb BUSINESS IMPACT).
     JS blendet es beim Scrollen aus (.hero-scrolled Klasse). */
  .hero-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/bilder/steffen_gross_nobg.png');
    background-size: auto 75%;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: 2;
    pointer-events: none;
    transition: opacity 1.2s ease;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.25));
  }

  .hero-wrapper.hero-scrolled::after {
    opacity: 0;
  }
}

/* Tablet (481–768px): Overlay hinter dem Text, am unteren Rand */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-wrapper::after {
    background-size: auto 72%;
    background-position: center bottom;
    z-index: 2; /* vor dem Text */
  }

  #hero[data-hero-variant="1"] {
    padding-bottom: 60px; /* ~1× Buttonhöhe Luft unter dem Button */
  }

  #hero[data-hero-variant="1"] .hero-photo {
    display: none; /* ::after übernimmt */
  }
}

/* Hero Fokus: semi-bold (einzige Variante, fest eingebunden) */
.hero-subline .fokus-word { font-weight: 600; }

/* -- About layout --------------------------------------------------------- */

.about-layout {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 4px solid rgba(255, 255, 255, 1.0);
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-body);
  max-width: 640px;
}

/* -- Offer grid ----------------------------------------------------------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.card-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.card-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.card-cta {
  margin-top: var(--space-2);
  display: inline-block;
}

/* Ganzes Angebot klickbar — Wrapper unsichtbar für Grid */
.offer-card-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

/* Button-Ausrichtung: alle CTA-Buttons auf gleicher Hoehe */
.offer-grid .card {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover: Karte leicht anheben und zoomen */
@media (hover: hover) {
  .offer-grid .card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
  }
}

/* accordion-body auf Desktop: flex-Spalte damit inner-flex weiterarbeitet */
.offer-grid .card .accordion-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offer-grid .card .accordion-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offer-grid .card .accordion-inner p {
  flex: 1;
}

.offer-grid .card .card-cta {
  margin-top: auto;
}

/* Mehr Luft oben/unten in den CTA-Buttons der Angebots-Karten */
.offer-grid .card .card-cta {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Angebots-Karten: Abstand zwischen Fließtext und CTA */
.offer-grid .card .accordion-inner p {
  margin-bottom: var(--space-3);
}

/* ==========================================================
   ANGEBOTE — Variante A (Standard)
   Outline-Buttons mit Pfeil
   ========================================================== */

/* Variante A: sichtbarer Pfeil auf allen CTA-Buttons in Angeboten */
#angebote .card-cta::after {
  content: ' \2192';
  display: inline;
}

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

.footer {
  background: var(--color-surface-muted);
  padding: var(--space-4) 0;
  text-align: center;
}

.footer nav {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.footer a {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--color-text-dark);
}

/* -- Responsive ----------------------------------------------------------- */

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

@media (max-width: 1024px) {
  .hero-photo {
    max-width: 260px;
    width: 260px;
    height: 260px;
  }

  .about-photo {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  #hero {
    padding: var(--space-4) 0 var(--space-6) 0;
  }

  .hero {
    min-height: 420px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-text {
    text-align: center;
    padding-bottom: 0;
  }

  .hero-photo {
    display: none;
  }

  .hero-subline {
    margin-left: auto;
    margin-right: auto;
  }

  .about-layout {
    flex-direction: column;
    text-align: center;
  }

  .about-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }

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

/* -- Hero button spacing -------------------------------------------------- */
#hero .btn {
  margin-top: var(--space-3);
}

/* -- Schwerpunkte, Testimonials, CTA layouts — added in Plan 03 ----------- */

/* -- Schwerpunkte layout -------------------------------------------------- */

/* Variant A (default): Row layout, white card, image left */
.schwerpunkte-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.schwerpunkt-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-light);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

.schwerpunkt-img {
  width: 180px;
  flex-shrink: 0;
  aspect-ratio: 4/3;
  background: var(--color-surface-muted);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.schwerpunkt-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.schwerpunkt-content {
  flex: 1;
  min-width: 0;
}

.schwerpunkt-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.schwerpunkt-header .label {
  margin-bottom: 0;
}

.schwerpunkt-item h3 {
  color: var(--color-text-dark);
  line-height: 1.2;
}

.schwerpunkt-zielgruppe {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.schwerpunkt-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent-2);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Variant B: 2-column card grid, image top — max 2 columns on wide viewports */
.schwerpunkte-list[data-variant="b"] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 100%;
}

/* Unter 768px: 1 Spalte (verhindert horizontalen Überlauf bei 768px Viewport) */
@media (max-width: 768px) {
  .schwerpunkte-list[data-variant="b"] {
    grid-template-columns: 1fr;
  }
}

.schwerpunkte-list[data-variant="b"] .schwerpunkt-item {
  flex-direction: column;
  padding: var(--space-3);
  gap: 0;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-light);
  border-left: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
  .schwerpunkte-list[data-variant="b"] .schwerpunkt-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
  }
}

.schwerpunkte-list[data-variant="b"] .schwerpunkt-img {
  width: 100%;
  aspect-ratio: 16/9;
  order: -1;
  background: var(--color-surface-muted);
}

.schwerpunkte-list[data-variant="b"] .schwerpunkt-item h3 {
  color: var(--color-text-dark);
}

.schwerpunkte-list[data-variant="b"] .schwerpunkt-desc {
  color: var(--color-text-body);
}

.schwerpunkte-list[data-variant="b"] .schwerpunkt-quote p,
.schwerpunkte-list[data-variant="b"] .schwerpunkt-quote cite {
  color: var(--color-text-muted);
}


.schwerpunkte-list[data-variant="b"] .schwerpunkt-header .label {
  background: var(--color-accent-tint);
  color: var(--color-text-dark);
}

/* Dezentes Bild-Hover für alle Schwerpunkt-Karten */
.schwerpunkte-list[data-variant="b"] .schwerpunkt-img img {
  transition: opacity 0.35s ease;
}

/* Schwerpunkt-Slider: Bilder-Stack, Dots, Pfeile */

/* Bilder-Stack: alle Bilder übereinandergelegt, opacity-Transition */
.schwerpunkt-img[data-has-alt] {
  position: relative;
}
.schwerpunkt-img[data-has-alt] img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  /* Kein transform scale — das übernimmt der bestehende variant-b hover-Regel */
}
.schwerpunkt-img[data-has-alt] img.slider-active {
  opacity: 1;
  position: relative; /* damit der Container die Höhe hält */
}
/* Einzelbild (kein Slider): immer sichtbar */
.schwerpunkt-img[data-has-alt] img:only-child {
  opacity: 1;
  position: relative;
}

/* Dots — auf dem Bild zentriert (kein extra space) */
.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
  margin: 0;
  padding: 0;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--color-text-dark);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.slider-dot.active {
  background: var(--color-text-dark);
}

/* Pfeile — versteckt, bei Hover auf die Karte sichtbar */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 18px;
  line-height: 1;
  color: var(--color-text-dark);
  padding: 0;
  z-index: 2;
}
.slider-prev { left: 6px; }
.slider-next { right: 6px; }

/* Pfeile bei Hover auf die Karte einblenden */
.schwerpunkt-item:hover .slider-prev,
.schwerpunkt-item:hover .slider-next {
  opacity: 1;
}

/* Mobile: Pfeile dauerhaft versteckt (Swipe stattdessen) */
@media (hover: none) {
  .slider-prev,
  .slider-next {
    display: none;
  }
}


.nps-badge {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-tint);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.schwerpunkt-item h3 {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-dark);
}

.schwerpunkt-desc {
  font-size: 17px;
  color: var(--color-text-body);
  margin-bottom: var(--space-2);
  max-width: 720px;
}

.schwerpunkt-quote {
  border-left: 3px solid var(--color-accent);
  padding-left: 12px;
  padding-top: 0;
  margin: var(--space-2) 0 0 0;
  font-style: italic;
}

.schwerpunkt-quote p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.schwerpunkt-quote cite {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: normal;
  display: block;
  margin-top: var(--space-1);
}

.schwerpunkt-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.schwerpunkt-links a {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

.schwerpunkt-links a:hover {
  color: var(--color-accent-hover);
}

/* -- Testimonials layout -------------------------------------------------- */
.testimonial-scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-light) transparent;
  padding: 8px 4px 12px;  /* Luft damit scale(1.02) Hover nicht weggeclippt wird */
}

.testimonial-scroll::-webkit-scrollbar {
  height: 4px;
}

.testimonial-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.testimonial-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border-light);
  border-radius: var(--radius-full);
}

.testimonial-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
  .testimonial-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
  }
}

.testimonial-card cite {
  display: block;
  margin-top: var(--space-2);
  font-style: normal;
}

/* Testimonial author row: Avatar + cite nebeneinander */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.testimonial-avatar {
  width: 128px;
  height: 128px;
  border-radius: var(--radius-full);
  background: var(--color-accent-tint);
  border: 2px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* Testimonial-Avatar: Foto-Modus */
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Fallback: kein Foto → Initialen via data-initials */
.testimonial-avatar.avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar.avatar--fallback::after {
  content: attr(data-initials);
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: 0.02em;
}

/* Testimonial aligned: Autor-Block immer am Ende der Karte */
#testimonials[data-testimonial-layout="aligned"] .testimonial-card {
  display: flex;
  flex-direction: column;
}

#testimonials[data-testimonial-layout="aligned"] .testimonial-author {
  margin-top: auto;
}

/* Testimonial Autor-oben: Zitatgeber steht über dem Zitat */
#testimonials[data-testimonial-layout="author-top"] .testimonial-card {
  display: flex;
  flex-direction: column;
}

#testimonials[data-testimonial-layout="author-top"] .testimonial-author {
  order: -1;         /* Autor-Block vor das blockquote schieben */
  margin-top: 0;
  margin-bottom: var(--space-2);
}

/* Testimonial-Wrapper: position:relative für Overlay-Pfeile */
.testimonial-wrapper {
  position: relative;
}

/* Scroll-Container nimmt volle Breite — Pfeile reduzieren sie nicht */
.testimonial-wrapper .testimonial-scroll {
  width: 100%;
}

/* Overlay-Pfeile: absolut positioniert, über dem Slider */
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: auto;
  height: auto;
  padding: 8px;
  border-radius: 0;
  border: none;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.4;
  color: var(--color-text-dark);
  transition: opacity 0.2s;
}

.testimonial-arrow:hover {
  opacity: 0.8;
  background: transparent;
}

.testimonial-arrow:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.testimonial-arrow--prev {
  left: -8px;
}

.testimonial-arrow--next {
  right: -8px;
}

/* Testimonials container: enough padding so overlay arrows aren't clipped */
#testimonials .container {
  padding-left: 24px;
  padding-right: 24px;
}

/* -- CTA layout ----------------------------------------------------------- */
.cta-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.cta-alt {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--color-text-secondary);
  text-align: center;
}

.cta-alt a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

.cta-alt a:hover {
  color: var(--color-accent-hover);
}


/* -- Responsive (Schwerpunkte, Testimonials, CTA) ------------------------- */

/* Schwerpunkte: auto-fill/minmax handles breakpoint automatically (~660px for 2 columns of 320px) */

@media (max-width: 768px) {
  .schwerpunkt-item {
    flex-direction: column;
    /* padding handled per-context below */
  }

  .schwerpunkt-img {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .testimonial-arrow {
    display: none;
  }
}

/* -- Community-Links im Fließtext sichtbar -------------------------------- */
.schwerpunkt-desc a {
  color: var(--color-text-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.schwerpunkt-desc a:hover {
  color: var(--color-accent);
}

/* -- codecentric-Link in About-Text: wie schwerpunkt-desc Links ----------- */
.about-text a {
  color: var(--color-text-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.about-text a:hover {
  color: var(--color-accent);
}

/* ==========================================================
   NAVBAR — V3: sichtbare Akzentlinie nach unten (hardcoded)
   ========================================================== */

/* V3: deutliche Linie nach unten */
header[data-navbar-variant="3"] .navbar {
  background: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-accent);
}

/* ==========================================================
   NAV-BRAND — Spielwiese
   ========================================================== */

/* Variante 5: Hero-Style — Montserrat 700 uppercase, gestapelt wie BUSINESS/IMPACT */
.nav-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  gap: 0;
}
.nav-brand-name .nav-first {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}
.nav-brand-name .nav-last {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-accent);
}

/* ==========================================================
   SCHWERPUNKTE — Button-Variante V1 (hardcoded)
   data-btn-style="1" auf .schwerpunkte-list
   V1: absolut positioniert rechts unten
   ========================================================== */

/* V1: Button absolut rechts unten in der Karte */
.schwerpunkte-list[data-btn-style="1"] .schwerpunkt-item {
  position: relative;
  padding-bottom: calc(var(--space-4) + 48px);
}
.schwerpunkte-list[data-btn-style="1"] .schwerpunkt-cta {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
}

/* ==========================================================
   TESTIMONIALS — Avatar-Größe + Autor-Typo
   ========================================================== */

/* Avatar 96px (war 128px) */
.testimonial-avatar {
  width: 96px;
  height: 96px;
  font-size: 1.5rem;
}

.testimonial-avatar.avatar--fallback::after {
  font-size: 1.5rem;
}

/* Testimonials: Name fett, Funktion normal, Größe >= Zitat */
.testimonial-card cite {
  font-size: 15px;
  line-height: 1.4;
}

.testimonial-card .author-role {
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ==========================================================
   LIGHTBOX
   ========================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-figure {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: opacity 0.2s ease;
}

/* Bild-Pointer (zeigt Klickbarkeit in den Schwerpunkt-Karten) */
.schwerpunkt-img img {
  cursor: zoom-in;
}

/* Schließen-Button */
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 201;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Navigations-Pfeile */
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 201;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lightbox-prev[hidden],
.lightbox-next[hidden] {
  display: none;
}

/* ==========================================================
   ACCORDION — Mobile Schwerpunkte + Angebote
   Technik: grid-template-rows: 0fr → 1fr (kein max-height hack)
   Aktiv nur unter 767px — Desktop bleibt normales Layout
   ========================================================== */

/* Accordion-Header: ganzer Bereich klickbar, Reset Button-Styles */
.accordion-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}

/* Pfeil-Indikator */
.accordion-arrow {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--color-accent);
  transition: transform 280ms ease;
  display: none; /* nur auf Mobile sichtbar — siehe @media (max-width: 767px) */
  line-height: 1;
}

/* Desktop: accordion-body immer offen (grid deaktiviert) */
.accordion-body {
  display: block;
}

/* Desktop (≥769px): Akkordeon-spezifische Layout-Regeln */
@media (min-width: 769px) {
  /* Schwerpunkt accordion-header: h3 + zielgruppe vertikal, nicht klickbar */
  .schwerpunkt-item .accordion-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: var(--space-3) 0 0;  /* Luft nach Bild, kein seitliches Padding (Karte hat padding) */
    cursor: default;
    pointer-events: none;
    width: 100%;
    box-sizing: border-box;
  }

  /* Zielgruppe volle Breite → Stern rechtsbündig */
  .schwerpunkt-item .accordion-header .schwerpunkt-zielgruppe {
    width: 100%;
    margin-bottom: 0;
  }

  /* Angebote card accordion-header — emoji über h3, nicht klickbar */
  .offer-grid .card .accordion-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    cursor: default;
    pointer-events: none;
  }

  /* schwerpunkt-content: Abstand nach Zielgruppe und Innenabstand */
  .schwerpunkte-list[data-variant="b"] .accordion-body .schwerpunkt-content {
    padding: var(--space-2) 0 0;  /* Luft zwischen Zielgruppe und Text; seitlich: Karte hat padding */
  }

  /* Bug 3: Karten gleiche Höhe — Flex-Chain von accordion-body bis CTA strecken */
  .schwerpunkte-list[data-variant="b"] .schwerpunkt-item .accordion-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .schwerpunkte-list[data-variant="b"] .schwerpunkt-item .accordion-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .schwerpunkte-list[data-variant="b"] .schwerpunkt-item .schwerpunkt-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .schwerpunkte-list[data-variant="b"] .schwerpunkt-item .schwerpunkt-cta {
    margin-top: auto;
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  /* Accordion auf Mobile aktivieren */
  .accordion-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 280ms ease;
  }

  .accordion-inner {
    overflow: hidden;
    min-height: 0;
  }

  /* Offenes Item */
  .is-open > .accordion-body,
  .is-open .accordion-body {
    grid-template-rows: 1fr;
  }

  /* Pfeil rotiert wenn offen */
  .is-open .accordion-arrow {
    transform: rotate(90deg);
  }

  /* Accordion-Arrow auf Mobile sichtbar */
  .accordion-arrow {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
  }

  /* Schwerpunkt-Item: kein Padding (Bild full-bleed) */
  .schwerpunkt-item {
    padding: 0;
    overflow: hidden;
  }

  /* Bug 1: Flex-Kinder (img, header, body) auf voller Breite — align-items: flex-start verhindert das */
  .schwerpunkte-list[data-variant="b"] .schwerpunkt-item {
    align-items: stretch;
  }

  /* Schwerpunkt accordion-header auf Mobile: eigenes Padding + visueller Hinweis */
  .schwerpunkt-item .accordion-header {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: var(--space-2) var(--space-3);
    cursor: pointer;
    pointer-events: auto;
    border-top: 2px solid var(--color-accent);
    width: 100%;
    box-sizing: border-box;
    gap: var(--space-1);
  }

  .schwerpunkt-item .accordion-header h3 {
    width: 100%;
    margin-bottom: 0;
    font-size: 22px;
  }

  .schwerpunkt-item .accordion-header .schwerpunkt-zielgruppe {
    width: auto;
    flex: 1;
    margin-bottom: 0;
    font-size: 15px;
  }

  /* Score auf Mobile verstecken — nur im aufgeklappten Body relevant */
  .schwerpunkt-item .accordion-header .schwerpunkt-score {
    display: none;
  }

  /* accordion-body inner: kein Padding direkt (würde bei 0fr durchscheinen).
     Padding auf schwerpunkt-content stattdessen. */
  .schwerpunkt-item .accordion-body .accordion-inner {
    padding: 0;
  }

  .schwerpunkt-item .accordion-body .schwerpunkt-content {
    padding: var(--space-2) var(--space-3) var(--space-3);
  }

  /* data-btn-style="1" padding-bottom auf Mobile auf 0 */
  .schwerpunkte-list[data-btn-style="1"] .schwerpunkt-item {
    padding-bottom: 0;
  }

  /* Angebote: card-icon + h3 in einer Zeile, Pfeil rechts, klickbar */
  .offer-grid .card .accordion-header {
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    padding: 0;
  }

  /* Overflow-Fix: Schwerpunkt-Karten dürfen nicht breiter als viewport werden */
  .schwerpunkt-item {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .schwerpunkt-img {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Lange Wörter umbrechen */
  .schwerpunkt-content,
  .schwerpunkt-desc,
  .schwerpunkt-quote p {
    overflow-wrap: break-word;
    word-break: break-word;
  }



  /* CTA-Button im accordion-body: statisch positionieren statt absolut */
  .schwerpunkt-item .accordion-body .schwerpunkt-cta {
    position: static;
    margin-top: var(--space-3);
    display: inline-block;
  }

  /* offer-grid: accordion-body/inner dürfen flex nicht überschreiben auf Mobile */
  .offer-grid .card .accordion-body {
    display: grid;
    flex: unset;
  }

  .offer-grid .card .accordion-inner {
    display: block;
    flex: unset;
  }
}

/* ============================================================
   Subpage layouts (coaching, trainings, workshops, interim)
   ============================================================ */

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

.subpage-hero {
  padding: var(--space-16) 0 var(--space-12);
}

.subpage-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-text-on-dark);
}

.subpage-hero .hero-subline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: var(--space-8);
  color: var(--color-text-on-dark);
  opacity: 0.9;
}

/* -- Was du bekommst (Leistungen) ----------------------------------------- */

.subpage-leistungen {
  padding: var(--space-8) 0;
}

.subpage-leistungen h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-text-dark);
}

.subpage-leistungen h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--color-text-dark);
}

.subpage-leistungen ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.subpage-leistungen ul li {
  padding-left: var(--space-6);
  position: relative;
  line-height: 1.6;
  color: var(--color-text-body);
}

.subpage-leistungen ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Nested examples grid (workshops "Was du bekommst") */
.subpage-leistungen ul li.examples-item {
  padding-left: 0;
}
.subpage-leistungen ul li.examples-item::before {
  display: none;
}
.examples-label {
  display: block;
  padding-left: var(--space-6);
  position: relative;
  line-height: 1.6;
  color: var(--color-text-body);
  margin-bottom: var(--space-2);
}
.examples-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}
.subpage-leistungen .examples-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin: 0 0 0 var(--space-6);
  list-style: none;
  padding: 0;
}
.subpage-leistungen .examples-grid li {
  background: var(--color-surface-muted);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  padding-left: var(--space-2);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}
.subpage-leistungen .examples-grid li::before {
  display: none;
}
.subpage-leistungen .examples-grid li strong {
  display: block;
  color: var(--color-text-dark);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 2px;
}
@media (max-width: 480px) {
  .subpage-leistungen .examples-grid {
    grid-template-columns: 1fr;
  }
}

/* -- Wie ich vorgehe (Prozess) -------------------------------------------- */

.subpage-vorgehen {
  padding: var(--space-8) 0;
  background: var(--color-surface-muted);
}

.subpage-vorgehen h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-text-dark);
}

.subpage-vorgehen p {
  line-height: 1.7;
  color: var(--color-text-body);
  margin: 0 0 var(--space-2) 0;
}

.subpage-vorgehen p:last-of-type {
  margin-bottom: var(--space-4);
}

.subpage-vorgehen ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.subpage-vorgehen ul li {
  padding-left: var(--space-6);
  position: relative;
  line-height: 1.6;
  color: var(--color-text-body);
}

.subpage-vorgehen ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}

.subpage-vorgehen ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  counter-reset: vorgehen-counter;
}

.subpage-vorgehen ol li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  counter-increment: vorgehen-counter;
}

.subpage-vorgehen ol li::before {
  content: counter(vorgehen-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.subpage-vorgehen ol li strong {
  display: block;
  font-size: inherit;
  font-weight: 600;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 4px;
}

.subpage-vorgehen ol li p,
.subpage-vorgehen ol li p:last-of-type {
  font-size: inherit;
  line-height: 1.6;
  color: var(--color-text-body);
  margin: 0 0 8px 0;
}

.subpage-vorgehen ol li > div {
  flex: 1;
}

/* -- Stimmen von Kunden (Testimonials) ------------------------------------ */

.subpage-testimonials {
  padding: var(--space-8) 0;
}

.subpage-testimonials h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-text-dark);
}

.subpage-testimonials blockquote {
  margin: 0 0 var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.subpage-testimonials blockquote:last-child {
  margin-bottom: 0;
}

.subpage-testimonials blockquote p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-body);
  margin: 0 0 var(--space-3) 0;
  font-style: italic;
}

.subpage-testimonials blockquote cite {
  font-size: 0.875rem;
  font-style: normal;
  color: var(--color-accent);
  font-weight: 600;
}

/* -- CTA Section ---------------------------------------------------------- */

.subpage-cta {
  padding: var(--space-8) 0 var(--space-6);
}

.cta-layout {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .subpage-hero {
    padding: var(--space-12) 0 var(--space-8);
  }

  .subpage-testimonials blockquote {
    padding: var(--space-2) var(--space-3);
  }

  .cta-layout {
    flex-direction: column;
    align-items: center;
  }
}

/* -- Deep Content Cards (Trainings Variante I) ---------------------------- */

.deep-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(10,26,58,0.09);
  margin-bottom: 40px;
}

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

.deep-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.deep-hero-img {
  position: relative;
  overflow: hidden;
}

.deep-hero-img img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.deep-hero-content {
  background: #0A1A3A;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.deep-hero-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #EEF3FF;
  margin: 10px 0 10px;
  line-height: 1.25;
}

.deep-hero-content .meta {
  color: #C8D8EE;
  font-size: 14px;
  margin: 0 0 16px;
}

.deep-hero-content .pain-q {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #C8D8EE;
  font-style: normal;
  line-height: 1.6;
  margin: 0;
}

.deep-hero-content .pain-q strong {
  color: #EEF3FF;
  font-style: normal;
}

.deep-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: none;
}

.deep-col {
  padding: 32px 36px;
  border-right: 1px solid #E2E0DA;
}

.deep-col:last-child { border-right: none; }

.deep-col-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4A5568;
  display: block;
  margin-bottom: 16px;
}

.col-intro {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #4A5568;
  font-style: italic;
  line-height: 1.55;
  margin: 0 0 16px;
}

.deep-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #112659;
  margin: 0 0 6px;
}

.deep-day { margin-bottom: 18px; }
.deep-day:last-child { margin-bottom: 0; }

.day-chip {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  background: rgba(14,232,213,0.12);
  color: #112659;
  border-radius: 3px;
  padding: 2px 7px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.deep-footer {
  padding: 22px 36px;
  border-top: 1px solid #E2E0DA;
  background: #F8F7F4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.deep-incl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deep-incl span {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #112659;
  background: rgba(14,232,213,0.15);
  border-radius: 4px;
  padding: 3px 9px;
}

.quote-block {
  margin: 0 0 16px;
  padding: 14px 18px;
  background: #F8F7F4;
  border-left: 3px solid rgba(14,232,213,0.5);
  border-radius: 0 6px 6px 0;
}

.quote-block p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #1A2E55;
  font-style: italic;
  margin: 0 0 6px;
  line-height: 1.55;
}

.quote-block cite {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #4A5568;
  font-style: normal;
  font-weight: 600;
}

/* tag-badge — base (light background) */
.tag-badge {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #112659;
  background: rgba(14,232,213,0.18);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

/* tag-badge scoped override for dark-hero context */
.deep-hero-content .tag-badge {
  color: #EEF3FF;
  background: rgba(14,232,213,0.22);
}

/* empfehlung-pill */
.empfehlung-pill {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #112659;
  background: rgba(14,232,213,0.18);
  border-radius: 20px;
  padding: 4px 12px;
}

/* t-btn */
.t-btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #112659;
  border-radius: 6px;
  padding: 8px 18px;
  text-decoration: none;
  transition: background 0.2s;
}
.t-btn:hover { background: #0A1A3A; }

/* t-ul */
.t-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.t-ul li {
  padding-left: 16px;
  position: relative;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #4A5568;
  line-height: 1.5;
}

.t-ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(14,232,213,0.7);
}

@media (max-width: 900px) {
  .deep-hero { grid-template-columns: 1fr; }
  .deep-hero-img img { min-height: 220px; }
  .deep-body { grid-template-columns: 1fr; }
  .deep-col { border-right: none; border-bottom: 1px solid #E2E0DA; }
}

/* -- Legal pages (impressum, datenschutz) --------------------------------- */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--color-text-dark);
}

.legal-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--color-text-dark);
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--color-text-dark);
}

.legal-page p,
.legal-page ul,
.legal-page ol {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-body);
  margin-bottom: var(--space-3);
}

.legal-page ul,
.legal-page ol {
  padding-left: var(--space-5);
}

.legal-page a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

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

@media (max-width: 768px) {
  .legal-page {
    padding: var(--space-8) var(--space-4);
  }
}

/* === prefers-reduced-motion — component overrides (A11Y-03) === */
@media (prefers-reduced-motion: reduce) {
  /* D-03: Schwerpunkte slider — instant image swap, no opacity fade */
  .schwerpunkte-list[data-variant="b"] .schwerpunkt-img img,
  .schwerpunkt-img[data-has-alt] img {
    transition: none;
  }

  /* Mobile hero photo overlay — disable 1.2s fade-out on scroll */
  .hero-wrapper::after {
    transition: none;
  }
}
