/* ════════════════════════════════════════════════════════════════
   ECHOPARK Child Theme — child.css
   UI/UX-Optimierungs-Pass: Display-Bugs, Farben, Schriften, Responsive
   Lädt nach echopark/assets/css/main.css.
   ════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   1. TOKENS — Header-Höhe als Variable
   ────────────────────────────────────────────────────────────── */
:root {
  --header-height: 72px;
}
@media (min-width: 1024px) {
  :root { --header-height: 88px; }
}

/* Parent setzt main { padding-top: ... } pro Breakpoint — wir nutzen die
   Variable hier nur für scroll-margin-top, damit Anker-Ziele unter dem
   Sticky-Header landen. */
:where([id]) { scroll-margin-top: calc(var(--header-height) + 16px); }

/* Globaler Schutz gegen horizontalen Scroll */
html, body { overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }

/* ──────────────────────────────────────────────────────────────
   2. TYPO — JetBrains Mono für Eyebrow/Mono, Hero-Subline-Limit
   ────────────────────────────────────────────────────────────── */
.eyebrow,
[class*="eyebrow"],
code, kbd, samp, pre,
.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco,
               Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.hero-subline {
  max-width: 720px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

/* WCAG-AA-konformer Kontrast für Form-Labels auf navy */
.form-label-text {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

/* ──────────────────────────────────────────────────────────────
   3. DISPLAY-BUG-FIXES
   ────────────────────────────────────────────────────────────── */

/* Gallery: hartes Clipping gegen unbeabsichtigten Scroll auf Mobile */
.gallery-slider-wrap {
  max-width: 100%;
  overflow: hidden;
}
.gallery-grid {
  scroll-snap-type: x mandatory;
}

/* ── Gallery Navigation Arrows ─────────────────────────────── */
.gallery-nav-wrap {
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 21, 43, 0.5);
  color: #fff;
  transition: background 0.2s, opacity 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0;
}

.gallery-arrow:hover {
  background: rgba(6, 21, 43, 0.82);
}

.gallery-arrow--prev { left: 14px; }
.gallery-arrow--next { right: 14px; }

.gallery-nav-wrap--light .gallery-arrow {
  background: rgba(255, 255, 255, 0.72);
  color: #0A1F3D;
}

.gallery-nav-wrap--light .gallery-arrow:hover {
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 479px) {
  .gallery-arrow { display: none; }
}

/* ──────────────────────────────────────────────────────────────
   4. RESPONSIVE — MOBILE (≤ 767px)
   ────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Mobile-Menu schmaler, mehr Tap-Area zum Schließen */
  .mobile-menu {
    width: 78%;
    max-width: 320px;
  }

  /* Form-Grid bleibt 1-spaltig bis Tablet */
  .form-grid { grid-template-columns: 1fr !important; }

  /* IG Frame: Hero-Visual volle Breite */
  .hero-visual { width: 100%; }

  .hero-dashboard.ig-frame {
    border-radius: 10px !important;
    width: 100%;
    max-width: 100%;
  }

  /* IG Header: kompakter */
  .ig-header { padding: 8px 12px; }
  .ig-avatar-ring { width: 30px; height: 30px; }
  .ig-avatar-inner img { width: 26px !important; height: 26px !important; }

  /* Username nicht umbrechen — ellipsis bei Überlauf */
  .ig-username {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }
  .ig-location { font-size: 9px; }

  /* Action-Bar & Meta kompakter */
  .ig-actions { padding: 6px 12px 4px; }
  .ig-actions-left { gap: 10px; }
  .ig-btn svg { width: 22px; height: 22px; }
  .ig-meta { padding: 3px 12px 10px; }
  .ig-likes { font-size: 12px; }
  .ig-caption, .ig-comments-link { font-size: 12px; }
  .ig-timestamp { font-size: 9px; }

  /* Balken-Bereich auf Mobile */
  .ig-frame .dashboard-bars { padding: 8px 12px 12px !important; }

  /* Hint-Bubble: Zeilenumbruch erlauben */
  .ig-hint-bubble {
    white-space: normal;
    max-width: calc(100vw - 56px);
    text-align: center;
    font-size: 11.5px;
    padding: 7px 12px;
    bottom: calc(100% + 8px);
    line-height: 1.45;
  }
}

@media (max-width: 639px) {
  /* Hero-Savings-Badge nicht mehr clippen */
  .savings-badge {
    left: 8px;
    right: auto;
    bottom: -12px;
    max-width: calc(100% - 16px);
    transform: none;
  }

  /* Marquee-Logos kompakter */
  .logo-chip { min-width: 130px; }

  /* IG-Grid auf kleinen Screens: 2 Spalten statt 3 */
  .ig-frame .dashboard-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Dot-Indicators: etwas kleiner */
  .ig-dot { width: 5px; height: 5px; }
  .ig-dot--active { width: 6px; height: 6px; }
}

@media (max-width: 480px) {
  /* Section-Headings auf sehr kleinen Geräten zähmen */
  .lv2-h2,
  .section-title,
  h2.section-h,
  .section-headline {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.15;
  }

  /* IG: Sehr kleine Screens — alles noch etwas kompakter */
  .ig-header { padding: 7px 10px; gap: 8px; }
  .ig-avatar-ring { width: 28px; height: 28px; }
  .ig-username { font-size: 11px; max-width: 130px; }
  .ig-more-btn svg { width: 15px; height: 15px; }
  .ig-actions { padding: 5px 10px 3px; }
  .ig-actions-left { gap: 8px; }
  .ig-btn svg { width: 20px; height: 20px; }
  .ig-meta { padding: 2px 10px 8px; }
  .ig-likes { font-size: 11px; }
  .ig-caption, .ig-comments-link { font-size: 11px; }

  /* Hint-Bubble noch kompakter */
  .ig-hint-bubble {
    font-size: 11px;
    padding: 6px 10px;
    max-width: calc(100vw - 40px);
  }

  /* Grid: 2 Spalten bleiben, Zellen etwas kleiner */
  .ig-frame .grid-cell { min-height: 60px; }
}

/* ──────────────────────────────────────────────────────────────
   5. RESPONSIVE — TABLET (768–1023px)
   ────────────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Hero zentriert mit begrenztem Visual statt zu schmaler Spalte */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual {
    max-width: 560px;
    margin-inline: auto;
  }

  /* Kontakt: Form + Sidebar nebeneinander */
  .kontakt-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Feature-Badges atmen */
  .feature-badges { gap: 16px; }

  /* IG Frame auf Tablet: etwas kompakter */
  .ig-header { padding: 9px 14px; }
  .ig-username { font-size: 13px; }
  .ig-hint-bubble {
    font-size: 12px;
    white-space: normal;
    max-width: 420px;
    text-align: center;
  }
}

@media (max-width: 1023px) {
  /* AI-Pipeline 2-spaltig statt 4 — verhindert Text-Wrap-Chaos */
  .pipeline-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }

  /* Sub-brand .stat-box dezenter und nicht überlappend */
  .stat-box {
    right: 8px;
    top: 8px;
    max-width: 55%;
    font-size: 0.8rem;
  }

  /* Mega-Menu: 4/5-Spalten kollabieren auf 2 */
  .mega-inner--services,
  .mega-inner--brands {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* ──────────────────────────────────────────────────────────────
   6. CONTACT FORM 7 — Integration in .form-grid / .field
   ────────────────────────────────────────────────────────────── */

/* CF7 wrappt jeden Tag in <span class="wpcf7-form-control-wrap"> — inline,
   damit Layout über die umgebenden .form-field-wrap-Labels kommt. */
.ep-contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* ── Animationen ── */
@keyframes ep-toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ep-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-3px); }
  40%     { transform: translateX(3px); }
  60%     { transform: translateX(-2px); }
  80%     { transform: translateX(2px); }
}

/* Inline-Tip pro Feld als Pill mit Icon */
.ep-contact-form .wpcf7-not-valid-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #ffd6c8;
  background: rgba(242,92,59,0.14);
  border: 1px solid rgba(242,92,59,0.45);
  border-radius: 999px;
  line-height: 1.3;
  animation: ep-toast-in .25s ease;
}
.ep-contact-form .wpcf7-not-valid-tip::before {
  content: "!";
  width: 14px; height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #F25C3B;
  color: #fff;
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
}

/* Invalid-Felder: Coral-Outline + Shake */
.ep-contact-form input.wpcf7-not-valid,
.ep-contact-form textarea.wpcf7-not-valid,
.ep-contact-form select.wpcf7-not-valid {
  border-color: #F25C3B !important;
  box-shadow: 0 0 0 3px rgba(242,92,59,0.18) !important;
  animation: ep-shake .35s ease;
}

/* ── Response-Output: Toast unter Form-Headline ── */
.ep-contact-form .wpcf7-response-output {
  display: none;
  position: relative;
  margin: 16px 0 0 !important;
  padding: 14px 16px 14px 50px !important;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.9);
  animation: ep-toast-in .25s ease;
}
.ep-contact-form .wpcf7-response-output::before {
  content: "";
  position: absolute;
  left: 14px; top: 50%;
  width: 24px; height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.4);
}

.ep-contact-form.sent .wpcf7-response-output {
  border-color: rgba(26,163,154,0.55) !important;
  background: linear-gradient(135deg, rgba(26,163,154,0.20), rgba(26,163,154,0.08));
  color: #cdf3ed;
}
.ep-contact-form.sent .wpcf7-response-output::before {
  background-color: #1AA39A;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E");
}

.ep-contact-form.invalid .wpcf7-response-output,
.ep-contact-form.unaccepted .wpcf7-response-output {
  border-color: rgba(242,92,59,0.55) !important;
  background: linear-gradient(135deg, rgba(242,92,59,0.20), rgba(229,38,109,0.08));
  color: #ffd6c8;
}
.ep-contact-form.invalid .wpcf7-response-output::before,
.ep-contact-form.unaccepted .wpcf7-response-output::before {
  background-color: #F25C3B;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='6' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12' y2='17.01'/%3E%3C/svg%3E");
}

.ep-contact-form.failed .wpcf7-response-output,
.ep-contact-form.spam .wpcf7-response-output,
.ep-contact-form.aborted .wpcf7-response-output {
  border-color: rgba(245,176,66,0.55) !important;
  background: linear-gradient(135deg, rgba(245,176,66,0.20), rgba(245,176,66,0.06));
  color: #ffe2b3;
}
.ep-contact-form.failed .wpcf7-response-output::before,
.ep-contact-form.spam .wpcf7-response-output::before,
.ep-contact-form.aborted .wpcf7-response-output::before {
  background-color: #F5B042;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12' y2='17.01'/%3E%3C/svg%3E");
}

.ep-contact-form.sent .wpcf7-response-output,
.ep-contact-form.invalid .wpcf7-response-output,
.ep-contact-form.failed .wpcf7-response-output,
.ep-contact-form.spam .wpcf7-response-output,
.ep-contact-form.unaccepted .wpcf7-response-output,
.ep-contact-form.aborted .wpcf7-response-output { display: block; }

/* ── Pflichtfeld-Liste (Screen-Reader-Response, CF7 ≥ 5.7) ── */
.ep-contact-form .screen-reader-response[role="alert"] {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(242,92,59,0.06);
  border: 1px dashed rgba(242,92,59,0.3);
  animation: ep-toast-in .3s ease .05s both;
}
.ep-contact-form .screen-reader-response > p {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb09b;
}
.ep-contact-form .screen-reader-response > p:empty { display: none; }
.ep-contact-form .screen-reader-response ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ep-contact-form .screen-reader-response ul li {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(242,92,59,0.18);
  color: #ffd6c8;
  border: 1px solid rgba(242,92,59,0.4);
  font-weight: 500;
  transition: background .15s ease, transform .15s ease;
}
.ep-contact-form .screen-reader-response ul li a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ep-contact-form .screen-reader-response ul li a::before {
  content: "↳";
  font-size: 11px;
  opacity: 0.7;
}
.ep-contact-form .screen-reader-response ul li:hover {
  background: rgba(242,92,59,0.28);
  transform: translateY(-1px);
  cursor: pointer;
}

/* Submit als Pfeil-CTA */
.ep-contact-form .form-submit { display: flex; }
.ep-contact-form .wpcf7-submit.btn-coral-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.ep-contact-form .wpcf7-submit.btn-coral-lg::after {
  content: "→";
  display: inline-block;
  font-size: 1.1em;
  line-height: 1;
  transition: transform .2s ease;
}
.ep-contact-form .wpcf7-submit.btn-coral-lg:hover::after {
  transform: translateX(4px);
}

/* CF7 Spinner unauffällig neben dem Submit */
.ep-contact-form .wpcf7-spinner {
  background-color: rgba(255,255,255,0.55);
  margin-left: 12px;
}

/* Acceptance-Block: Checkbox + Label inline */
.ep-contact-form .form-consent .wpcf7-form-control-wrap {
  display: inline;
  width: auto;
}
.ep-contact-form .form-consent .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}
.ep-contact-form .form-consent .wpcf7-list-item-label {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
}
.ep-contact-form .form-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

/* Native Browser-Required-Outline überschreiben für Konsistenz */
.ep-contact-form input.wpcf7-not-valid,
.ep-contact-form textarea.wpcf7-not-valid,
.ep-contact-form select.wpcf7-not-valid {
  border-color: rgba(242,92,59,0.6) !important;
  box-shadow: 0 0 0 1px rgba(242,92,59,0.3);
}

/* ──────────────────────────────────────────────────────────────
   7. DESKTOP-POLITUR
   ────────────────────────────────────────────────────────────── */
.site-logo-disc {
  will-change: transform;
}

.mega-panel {
  transition: opacity .15s ease, transform .15s ease;
}

/* ──────────────────────────────────────────────────────────────
   8. LIGHTBOX — EP.photo & EP.digital Galerie
   ────────────────────────────────────────────────────────────── */

/* Galerie-Item: klickbar + Zoom-Cursor */
.ep-lb-item {
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

/* Dunkel-Overlay beim Hover */
.ep-lb-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 21, 43, 0);
  transition: background .2s ease;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}
.ep-lb-item:hover::before,
.ep-lb-item:focus-visible::before {
  background: rgba(6, 21, 43, 0.42);
}

/* Zoom-Icon in der Mitte beim Hover */
.ep-lb-zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 2;
  pointer-events: none;
}
.ep-lb-zoom-hint svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.ep-lb-item:hover .ep-lb-zoom-hint,
.ep-lb-item:focus-visible .ep-lb-zoom-hint {
  opacity: 1;
}

/* ── Lightbox Modal ── */
#ep-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(6, 21, 43, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#ep-lightbox.ep-lb-open {
  opacity: 1;
  pointer-events: all;
}

/* Stage: zentriert das Bild */
.ep-lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 90vw;
  max-height: 92vh;
}

/* Bild */
.ep-lb-img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity .2s ease;
  display: block;
}
.ep-lb-img--visible {
  opacity: 1;
}

/* Beschriftung */
.ep-lb-caption {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-family: var(--font-mono, monospace);
  text-align: center;
  margin: 0;
  max-width: 600px;
  line-height: 1.4;
}

/* Zähler */
.ep-lb-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* Buttons: Schließen, Prev, Next */
.ep-lb-btn {
  position: fixed;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
  z-index: 100000;
}
.ep-lb-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.ep-lb-btn:focus-visible {
  outline: 2px solid var(--coral-500, #F25C3B);
  outline-offset: 2px;
}
.ep-lb-close {
  top: 20px;
  right: 20px;
}
.ep-lb-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.ep-lb-prev:hover { transform: translateY(-50%) scale(1.1); }
.ep-lb-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.ep-lb-next:hover { transform: translateY(-50%) scale(1.1); }

/* Body-Lock wenn Lightbox offen */
.ep-lb-body-lock {
  overflow: hidden;
}

/* Mobile: Buttons kleiner, Bild volle Breite */
@media (max-width: 640px) {
  .ep-lb-btn {
    width: 40px;
    height: 40px;
  }
  .ep-lb-prev { left: 8px; }
  .ep-lb-next { right: 8px; }
  .ep-lb-img {
    max-width: 96vw;
    max-height: 70vh;
    border-radius: 4px;
  }
}

/* ── Footer: Trust-Siegel ── */
.footer-seals {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.footer-seal {
  height: 72px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
  box-sizing: content-box;
  opacity: 0.95;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.footer-seal:hover {
  opacity: 1;
  transform: translateY(-2px);
}
@media (max-width: 767px) {
  .footer-seals {
    gap: 12px;
    margin-top: 16px;
  }
  .footer-seal {
    height: 56px;
    padding: 5px 7px;
  }
}

/* ── Galerie-Manager: EP.graphics Brand-Chip ── */
.ep-gm-brand-chip--graphics {
  background: rgba(233, 107, 31, 0.15);
  color: #E96B1F;
  border: 1px solid rgba(233, 107, 31, 0.4);
}

/* ── AI-Pipeline: Header mit Logo rechts ── */
.ai-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 64px;
}

.ai-section-header__text {
  flex: 1 1 auto;
  max-width: 620px;
}

.ai-section-header__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.ai-logo-halo {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,92,59,0.14) 0%, rgba(242,92,59,0.05) 60%, transparent 100%);
}

.ai-logo-halo::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(242,92,59,0.2);
}

.ai-section-logo-img {
  width: 240px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(242,92,59,0.35)) brightness(1.05);
  transition: filter 0.3s ease;
}

.ai-section-header__logo:hover .ai-section-logo-img {
  filter: drop-shadow(0 0 60px rgba(242,92,59,0.55)) brightness(1.1);
}

@media (max-width: 900px) {
  .ai-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 40px;
  }
  .ai-section-header__logo {
    display: none;
  }
}

/* ── Footer: KI-Inhalte Hinweis ── */
.footer-ai-notice {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
  margin: 0;
  padding: 10px 24px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Hero: Instagram Post Frame ── */

/* Override dashboard shell → Instagram card */
.hero-dashboard.ig-frame {
  background: #fff !important;
  border: 1px solid #dbdbdb !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 40px -8px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.12) !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* IG: Header */
.ig-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  background: #fff;
  border-bottom: 1px solid #efefef;
}

/* Avatar with Instagram gradient ring */
.ig-avatar-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  padding: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ig-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0A1F3D;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Profil-Link (Avatar + Username) */
.ig-profile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  transition: opacity .15s ease;
}
.ig-profile-link:hover { opacity: .75; }

/* Username + location */
.ig-header-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ig-username {
  font-size: 13px;
  font-weight: 700;
  color: #262626;
  line-height: 1.3;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ig-location {
  font-size: 10px;
  color: #8e8e8e;
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Three-dot button */
.ig-more-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: default;
  color: #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* IG: Dark post body */
.ig-post-body {
  background: #06152B;
}

/* Balken-Bereich: Padding damit Text nicht am Rand klebt */
.ig-frame .dashboard-bars {
  padding: 10px 16px 16px !important;
}
.ig-frame .bar-row {
  padding: 0 !important;
}
.ig-frame .bar-header {
  padding: 0 0 4px !important;
}

/* IG: Action bar */
.ig-actions {
  display: flex;
  align-items: center;
  padding: 8px 14px 6px 12px;
  background: #fff;
}
.ig-actions-left {
  display: flex;
  gap: 14px;
  flex: 1;
}
.ig-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: default;
  color: #262626;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: transform .15s ease;
  text-decoration: none;
}
/* Heart & Share sind interaktiv */
.ig-btn--heart,
.ig-btn--share,
.ig-btn--comment {
  pointer-events: auto;
  cursor: pointer;
}
.ig-btn--heart:hover,
.ig-btn--share:hover,
.ig-btn--comment:hover {
  transform: scale(1.15);
}
/* Liked-Zustand: Herz wird rot */
.ig-btn--heart.ig-liked svg {
  fill: #ed4956;
  stroke: #ed4956;
}
@keyframes ig-heart-pop {
  0%   { transform: scale(1);    }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.9);  }
  100% { transform: scale(1);    }
}
.ig-btn--heart.ig-liked {
  animation: ig-heart-pop .35s ease forwards;
}
/* Share-Tooltip / Toast */
.ig-btn--share {
  position: relative;
}
.ig-copy-toast {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #262626;
  color: #fff;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 10;
}
.ig-copy-toast--visible {
  opacity: 1;
}
.ig-btn--bookmark {
  margin-left: auto;
}

/* Carousel dots */
.ig-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.ig-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dbdbdb;
  display: block;
}
.ig-dot--active {
  background: #0095f6;
  width: 7px;
  height: 7px;
}

/* Make action bar relative for dot positioning */
.ig-actions {
  position: relative;
}

/* IG: Meta block */
.ig-meta {
  padding: 4px 14px 12px 14px;
  background: #fff;
}
.ig-likes {
  font-size: 13px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ig-caption {
  font-size: 13px;
  color: #262626;
  line-height: 1.45;
  margin: 0 0 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ig-caption strong {
  font-weight: 700;
}
.ig-hashtags {
  color: #00376b;
}
.ig-comments-link {
  font-size: 13px;
  color: #8e8e8e;
  margin: 0 0 3px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ig-timestamp {
  font-size: 10px;
  color: #c7c7c7;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── IG: Hint-Bubble & Attention-Animationen ── */

/* Bubble über der Action-Bar */
.ig-hint-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #1a1a1a;
  color: #fff;
  font-size: 12.5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
/* Kleines Dreieck nach unten */
.ig-hint-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a1a;
}
/* Sichtbar */
.ig-hint-bubble.ig-hint--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Ausblenden */
.ig-hint-bubble.ig-hint--hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(-5px);
  transition: opacity .25s ease, transform .25s ease;
}

/* Herz-Attention: Wobble + Glow */
@keyframes ig-heart-attention {
  0%   { transform: scale(1)    rotate(0); }
  15%  { transform: scale(1.35) rotate(-12deg); }
  30%  { transform: scale(1.15) rotate(9deg); }
  50%  { transform: scale(1.28) rotate(-6deg); }
  68%  { transform: scale(1.1)  rotate(3deg); }
  85%  { transform: scale(1.04) rotate(-1deg); }
  100% { transform: scale(1)    rotate(0); }
}
.ig-btn--heart.ig-attention {
  animation: ig-heart-attention .9s cubic-bezier(.36,.07,.19,.97) forwards;
}
.ig-btn--heart.ig-attention svg {
  filter: drop-shadow(0 0 7px rgba(237,73,86,.8));
}

/* Share-Attention: Sende-Pfeil schießt kurz ab */
@keyframes ig-share-attention {
  0%   { transform: scale(1) translate(0, 0); }
  30%  { transform: scale(1.25) translate(5px, -5px); }
  55%  { transform: scale(1.1)  translate(2px, -2px); }
  80%  { transform: scale(1.18) translate(4px, -4px); }
  100% { transform: scale(1)    translate(0, 0); }
}
.ig-btn--share.ig-attention {
  animation: ig-share-attention .85s cubic-bezier(.36,.07,.19,.97) .15s forwards;
}
.ig-btn--share.ig-attention svg {
  filter: drop-shadow(0 0 6px rgba(0,149,246,.75));
}

/* Wiederkehrende sanfte Puls-Erinnerung alle ~8s wenn noch nicht geliked */
@keyframes ig-heart-idle-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}
.ig-btn--heart.ig-idle-pulse {
  animation: ig-heart-idle-pulse .55s ease-in-out 2;
}

/* ── Hero: Sub-Brand-Zellen — Hover-Farbe ── */
.hero-brand-cell {
  transition: background-color .25s ease, border-color .25s ease,
              transform .2s ease, box-shadow .25s ease;
}
.hero-brand-cell:hover,
.hero-brand-cell:focus-visible {
  background-color: color-mix(in srgb, var(--cell-color) 55%, transparent) !important;
  border-color: var(--cell-color) !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px -6px var(--cell-color);
}
.hero-brand-cell:hover .hero-brand-cell-logo,
.hero-brand-cell:focus-visible .hero-brand-cell-logo {
  filter: brightness(1.15) drop-shadow(0 0 8px rgba(255,255,255,0.35));
  transition: filter .25s ease;
}
.hero-brand-cell:hover .grid-cell-label,
.hero-brand-cell:focus-visible .grid-cell-label {
  color: #fff;
}

/* ── Kontakt: Ansprechpartner — Telefon auf eigener Zeile ── */
.contact-person-phone {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
  margin-top: 2px;
}
.contact-person-phone:hover { color: var(--coral-500); }

/* ──────────────────────────────────────────────────────────────
   9. MOBILE FIXES — Ergänzende Responsive-Korrekturen
   ────────────────────────────────────────────────────────────── */

/* Hero: CTA-Buttons stapeln auf sehr kleinen Screens */
@media (max-width: 640px) {
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Telefonnummer in Monospace darf umbrechen */
  .hero-phone-link {
    white-space: normal;
    word-break: break-all;
    font-size: 13px;
  }
}

/* Kontakt-Grid: 1-spaltig auf Mobile */
@media (max-width: 767px) {
  .kontakt-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  /* ── Kontakt-Sektion: Overflow-Clipping ── */
  .kontakt-section {
    overflow-x: clip !important;
  }
  /* Container und Grid: Kinder dürfen nie breiter als Viewport */
  .kontakt-section .container {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .kontakt-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Form-Card & Sidebar: explizit auf 100% beschränken */
  .form-card,
  .contact-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Form-Card Titel: langer Text soll umbrechen */
  .form-card h3 {
    font-size: clamp(1rem, 5vw, 1.35rem);
    word-break: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  /* CF7 Form und alle Kinder: vollständig auf Containerbreite begrenzen */
  .ep-contact-form,
  .ep-contact-form > form,
  .ep-contact-form .wpcf7-form,
  .ep-contact-form .form-grid,
  .ep-contact-form .form-field-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
  .ep-contact-form input[type="text"],
  .ep-contact-form input[type="email"],
  .ep-contact-form input[type="tel"],
  .ep-contact-form textarea,
  .ep-contact-form select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  /* Submit-Button: volle Breite, Text umbrechen statt Overflow */
  .ep-contact-form .form-submit {
    width: 100% !important;
    display: block !important;
  }
  .ep-contact-form .wpcf7-submit.btn-coral-lg {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    white-space: normal !important;
    text-align: center !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Sidebar-Karten: kein Overflow, Texte umbrechen */
  .contact-phone-card,
  .contact-person-card,
  .phone-link-block,
  .email-link-block {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Leistungen-Header: 1-spaltig auf Mobile */
  .leistungen-header {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* AI CTA Banner: Buttons vertikal stapeln */
  .ai-cta-banner {
    flex-direction: column !important;
    gap: 20px;
  }
  .ai-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .ai-cta-actions .btn-navy,
  .ai-cta-actions .btn-outline {
    text-align: center;
    justify-content: center;
  }

  /* Radio-Vergleich: Spalten untereinander */
  .radio-compare-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* Radio-Campaign-Tabs: horizontal scrollbar statt Abschneiden */
  .radio-campaign-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .radio-campaign-tabs::-webkit-scrollbar { display: none; }
  .radio-campaign-tab {
    flex-shrink: 0;
  }
}

/* Stat-Box: kompakt auf Mobile, unten positioniert statt über dem Bild */
@media (max-width: 640px) {
  .stat-box,
  .stat-box-left {
    position: absolute !important;
    bottom: 10px !important;
    top: auto !important;
    right: 10px !important;
    left: auto !important;
    max-width: calc(50% - 16px) !important;
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
  }
  .stat-box-left {
    left: 10px !important;
    right: auto !important;
  }
  .stat-year {
    font-size: 0.72rem !important;
    margin-bottom: 3px !important;
  }
  .stat-content {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }
}

/* Pipeline-Grid: 1-spaltig auf kleinen Phones */
@media (max-width: 540px) {
  .pipeline-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  /* Connector-Linie ausblenden, da sie bei 1-Spalte unpassend ist */
  .pipeline-connector {
    display: none;
  }
}

/* ──────────────────────────────────────────────────────────────
   10. SECTION SPACING — Reduzierte Abstände (Parent: 128px/96px)
   ────────────────────────────────────────────────────────────── */

/* Desktop: 128px → 72px */
.ai-section,
.leistungen-section,
.ueber-section,
.kontakt-section {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}

/* Desktop: 96px → 56px */
.subbrands-section,
.zahlen-section {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

/* Spread (inner sub-brand panels): 64px → 40px */
.spread {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* Tablet (768–1023px): etwas kompakter */
@media (max-width: 1023px) {
  .ai-section,
  .leistungen-section,
  .ueber-section,
  .kontakt-section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  .subbrands-section,
  .zahlen-section {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }
  .spread {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
}

/* Mobile (≤767px): kompakt */
@media (max-width: 767px) {
  .ai-section,
  .leistungen-section,
  .ueber-section,
  .kontakt-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .subbrands-section,
  .zahlen-section {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
  .spread {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  .social-proof-section {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   11. HEADER — Größere Höhe + deutlich größeres Logo
   ────────────────────────────────────────────────────────────── */

/* Header-Höhe vergrößern */
.site-header-inner {
  height: 130px !important;
  transition: height 0.4s ease;
}
#site-header.scrolled .site-header-inner {
  height: 80px !important;
}

/* main padding anpassen */
main { padding-top: 130px !important; }

/* CSS-Variable */
:root { --header-height: 130px; }

/* Hero-Inner: parent setzt 120–128px padding-top, das stapelt sich → reduzieren */
.hero-inner { padding-top: 32px !important; }
@media (min-width: 768px) { .hero-inner { padding-top: 40px !important; } }

/* Logo — höhere Spezifizität als .logo-disc .header-custom-logo */
.logo-disc .header-custom-logo {
  height: 110px !important;
  max-height: 110px !important;
  max-width: 320px !important;
}
@media (min-width: 768px) {
  .logo-disc .header-custom-logo {
    height: 118px !important;
    max-height: 118px !important;
    max-width: 340px !important;
  }
}

/* Scrolled-Zustand */
#site-header.scrolled .logo-disc .header-custom-logo {
  height: 58px !important;
  max-height: 58px !important;
  max-width: 200px !important;
}
@media (min-width: 768px) {
  #site-header.scrolled .logo-disc .header-custom-logo {
    height: 62px !important;
    max-height: 62px !important;
    max-width: 220px !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   12. FOOTER LOGO — Größer & responsiv
   ────────────────────────────────────────────────────────────── */

/* Link als Block → gibt dem Bild eine Referenzbreite für % */
.footer-brand-row .footer-logo-link {
  display: block !important;
  width: 60%;
  max-width: 280px;
  line-height: 0;
}

/* Bild füllt den Link, height: auto = proportional */
.footer-brand-row .footer-logo-link .footer-custom-logo {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}

@media (max-width: 1023px) {
  .footer-brand-row .footer-logo-link { width: 55%; max-width: 240px; }
}

@media (max-width: 767px) {
  .footer-brand-row .footer-logo-link { width: 50%; max-width: 200px; }
}

@media (max-width: 480px) {
  .footer-brand-row .footer-logo-link { width: 65%; max-width: 180px; }
}

/* ──────────────────────────────────────────────────────────────
   13. NOTCH-CARD & STAT-BOX — Gleicher Radius, konsistentes Design
   ────────────────────────────────────────────────────────────── */

/* Einheitlicher Radius: Karte = Stat-Box = Notch-Kreis = 16px */
.notch-card,
.notch-card.aspect-169 {
  border-radius: 16px !important;
}

/* Notch-Ausschnitt: Kreis-Radius = 16px → Größe 32×32 */
.notch-card::before {
  width: 32px !important;
  height: 32px !important;
  -webkit-mask: radial-gradient(circle 16px at 32px 32px, transparent 99%, #000 100%) !important;
          mask: radial-gradient(circle 16px at 32px 32px, transparent 99%, #000 100%) !important;
}

/* ──────────────────────────────────────────────────────────────
   BLOG — single.php + archive.php
   ────────────────────────────────────────────────────────────── */

/* ── Shared: category chip + date ── */
.ep-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ep-post-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 3px 10px;
}
.ep-post-date {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  font-family: var(--font-mono, monospace);
}

/* ── single.php ── */
.ep-single-post {
  background: var(--navy-800);
  min-height: 100vh;
}

.ep-post-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background: var(--navy-900, #06152B) center/cover no-repeat;
  padding-bottom: 0;
}
.ep-post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6,21,43,.35) 0%, rgba(6,21,43,.85) 70%, var(--navy-800) 100%);
}
.ep-post-hero__content {
  position: relative;
  padding-top: 56px;
  padding-bottom: 24px;
}
.ep-post-hero--no-image {
  min-height: 0;
  align-items: flex-start;
}
.ep-post-hero--no-image .ep-post-hero__content {
  padding-top: 16px;
  padding-bottom: 28px;
}
.ep-post-title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: #fff;
  margin: 12px 0 16px;
  max-width: 820px;
}
.ep-post-excerpt {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
  max-width: 680px;
  margin: 0;
}

.ep-post-wrap {
  background: var(--navy-800);
  padding: 28px 0 80px;
}
.ep-post-wrap .container {
  display: block !important;
}
.ep-post-article {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,.82);
}
.ep-post-article h2,
.ep-post-article h3,
.ep-post-article h4 {
  color: #fff;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}
.ep-post-article h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.ep-post-article h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
.ep-post-article a  { color: var(--coral-500); text-decoration: underline; text-decoration-color: rgba(242,92,59,.4); }
.ep-post-article a:hover { text-decoration-color: var(--coral-500); }
.ep-post-article p  { margin-bottom: 1.5rem; }
.ep-post-article ul,
.ep-post-article ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.ep-post-article li { margin-bottom: .5rem; }
.ep-post-article img {
  max-width: 100%;
  border-radius: 10px;
  margin: 2rem 0;
  display: block;
}
.ep-post-article blockquote {
  border-left: 3px solid var(--coral-500);
  margin: 2rem 0;
  padding: .5rem 0 .5rem 1.5rem;
  color: rgba(255,255,255,.6);
  font-style: italic;
}
.ep-post-article code {
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono, monospace);
  font-size: .9em;
}
.ep-post-article pre {
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.ep-post-footer {
  max-width: 720px;
  width: 100%;
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.ep-post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .2s;
}
.ep-post-back:hover { color: #fff; }

/* Share bar */
.ep-post-share {
  max-width: 720px;
  width: 100%;
  margin: 0 auto 0;
  padding: 28px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ep-post-share__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  flex-shrink: 0;
}
.ep-post-share__buttons {
  display: flex;
  gap: 8px;
}
.ep-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.ep-share-btn:hover {
  background: var(--coral-500);
  border-color: transparent;
  color: #fff;
}
.ep-share-btn--native { display: none; }
@media (hover: none), (pointer: coarse) { .ep-share-btn--native { display: inline-flex; } }

/* ── Aktuelles (homepage) ── */
.aktuelles-section {
  background: var(--navy-900, #06152B);
  padding: 96px 0 100px;
}
.aktuelles-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.aktuelles-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}
.aktuelles-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral-500, #f25c3b);
  margin: 0 0 10px;
}
.aktuelles-headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0;
}
.aktuelles-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
  flex-shrink: 0;
  padding-bottom: 4px;
}
.aktuelles-all-link:hover { color: #fff; }

.aktuelles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .aktuelles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .aktuelles-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .aktuelles-header { flex-direction: column; align-items: flex-start; } }

.ak-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .25s, background .25s;
}
.ak-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(242,92,59,.45);
}
.ak-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ak-card__title {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: #fff;
}
.ak-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.ak-card__title a:hover { color: var(--coral-500, #f25c3b); }
.ak-card__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.55);
  margin: 0;
  flex: 1;
}
.ak-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--coral-500, #f25c3b);
  text-decoration: none;
  margin-top: 4px;
  transition: gap .2s;
}
.ak-card__read-more:hover { gap: 9px; }

/* ── archive.php ── */
.ep-archive {
  background: var(--navy-800);
  min-height: 100vh;
}

.ep-archive-header {
  background: var(--navy-900, #06152B);
  padding: 140px 0 72px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ep-archive-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral-500);
  margin-bottom: 12px;
}
.ep-archive-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 16px;
}
.ep-archive-desc {
  font-size: 17px;
  color: rgba(255,255,255,.62);
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}

.ep-archive-body {
  padding: 64px 0 96px;
}
.ep-archive-empty {
  color: rgba(255,255,255,.5);
  font-size: 17px;
  padding: 40px 0;
}

.ep-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px)  { .ep-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ep-post-grid { grid-template-columns: 1fr; } }

.ep-post-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.ep-post-card:hover {
  border-color: rgba(242,92,59,.4);
  transform: translateY(-3px);
}
.ep-post-card__img-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.ep-post-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.ep-post-card:hover .ep-post-card__img-wrap img { transform: scale(1.04); }
.ep-post-card__img-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(242,92,59,.15), rgba(30,115,190,.15));
}
.ep-post-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ep-post-card__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}
.ep-post-card__title a {
  color: #fff;
  text-decoration: none;
}
.ep-post-card__title a:hover { color: var(--coral-500); }
.ep-post-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.58);
  margin: 0;
  flex: 1;
}
.ep-post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral-500);
  text-decoration: none;
  margin-top: auto;
  transition: gap .2s;
}
.ep-post-card__read-more:hover { gap: 10px; }

/* Pagination */
.ep-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}
.ep-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ep-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.06);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.1);
  transition: background .2s, color .2s;
}
.ep-pagination .page-numbers.current,
.ep-pagination .page-numbers:hover {
  background: var(--coral-500);
  color: #fff;
  border-color: var(--coral-500);
}
.ep-pagination .page-numbers.dots {
  background: none;
  border-color: transparent;
  color: rgba(255,255,255,.3);
}

/* Stat-Box: gleicher Radius 16px */
.stat-box,
.stat-box-left {
  border-radius: 16px !important;
}
