/* ═══════════════════════════════════════════════════════════════════
   EASY WAY 365 — ZENTRALES DESIGN-SYSTEM
   Datei: assets/css/ew365-design-system.css
   Version: 1.0.0

   ⚠️  Diese Datei wird im FRONTEND und im GUTENBERG-EDITOR geladen.
   Alle .ew-* Klassen sind direkt im Editor als "Zusätzliche CSS-Klasse"
   verwendbar und werden dort korrekt dargestellt.

   INHALT
   ───────────────────────────────────────────────────────────────────
   00  Design Tokens (Variablen)
   01  Reset & Basis
   02  Layout & Container
   03  Typografie-Utilities
   04  Buttons
   05  Chips / Badges / Tags
   06  Karten (Cards)
   07  Navigation
   08  Hero
   09  Stats-Streifen
   10  Value-Prop-Cards
   11  Event-Banner
   12  Blog-Grid & Post-Cards
   13  Team-Cards
   14  Newsletter
   15  Footer
   16  BLOG-DETAIL (Artikel, TOC, Callouts, Steps, Autor, Kommentare)
   17  Sidebar
   18  Kadence-Overrides
   19  Animationen
   20  Responsive Breakpoints
   ═══════════════════════════════════════════════════════════════════ */


/* ─── 00  DESIGN TOKENS ──────────────────────────────────────────── */
:root,
.editor-styles-wrapper {
  /* Brand — Teal */
  --ew-teal-900: #0e2a2a;
  --ew-teal-800: #163838;
  --ew-teal-700: #1e4a4a;
  --ew-teal-600: #276060;
  --ew-teal-500: #2f7a7a;
  --ew-teal-400: #4a9999;
  --ew-teal-200: #b8dcdc;
  --ew-teal-100: #e0f0f0;
  --ew-teal-50:  #f0f8f8;

  /* Brand — Orange */
  --ew-orange-600: #b87800;
  --ew-orange-500: #e09500;
  --ew-orange:     #f5a623;
  --ew-orange-400: #f7bc56;
  --ew-orange-100: #fef3dc;

  /* Neutrals */
  --ew-ink:      #111d1d;
  --ew-ink-700:  #2a3838;
  --ew-ink-500:  #4d6464;
  --ew-ink-400:  #6b8585;
  --ew-ink-300:  #94b0b0;
  --ew-ink-200:  #c8d8d8;
  --ew-ink-100:  #e8f0f0;
  --ew-ink-50:   #f4f8f8;
  --ew-white:    #ffffff;

  /* Typografie */
  --ew-f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --ew-f-body:    'Source Serif 4', Georgia, serif;
  --ew-f-ui:      'Bricolage Grotesque', system-ui, sans-serif;

  /* Radien */
  --ew-r-sm:   8px;
  --ew-r-md:   14px;
  --ew-r-lg:   20px;
  --ew-r-xl:   28px;
  --ew-r-pill: 999px;

  /* Schatten */
  --ew-shadow-sm: 0 2px 8px rgba(14,42,42,0.08);
  --ew-shadow-md: 0 8px 24px rgba(14,42,42,0.12);
  --ew-shadow-lg: 0 20px 48px rgba(14,42,42,0.16);

  /* Abstände */
  --ew-space-xs:  8px;
  --ew-space-sm:  16px;
  --ew-space-md:  24px;
  --ew-space-lg:  40px;
  --ew-space-xl:  64px;
  --ew-space-2xl: 80px;
  --ew-space-3xl: 110px;

  /* Layout-Breiten */
  --ew-content-width: 720px;
  --ew-wide-width:    1160px;
  --ew-sidebar-width: 300px;

  /* Motion */
  --ew-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ew-dur:  240ms;
}


/* ─── 01  RESET & BASIS ──────────────────────────────────────────── */
body.ew365 {
  font-family: var(--ew-f-ui);
  color: var(--ew-ink);
  background: var(--ew-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Fokus-Ring für Accessibility */
body.ew365 a:focus-visible,
body.ew365 button:focus-visible,
body.ew365 input:focus-visible,
body.ew365 textarea:focus-visible {
  outline: 3px solid var(--ew-orange);
  outline-offset: 2px;
  border-radius: var(--ew-r-sm);
}

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


/* ─── 02  LAYOUT & CONTAINER ─────────────────────────────────────── */
.ew-wrap {
  max-width: var(--ew-wide-width);
  margin-inline: auto;
  padding-inline: var(--ew-space-md);
  width: 100%;
}

.ew-wrap--narrow { max-width: var(--ew-content-width); }

.ew-section     { padding-block: var(--ew-space-2xl); }
.ew-section--sm { padding-block: var(--ew-space-lg); }
.ew-section--lg { padding-block: var(--ew-space-3xl); }

/* Hintergrund-Modifier — direkt im Editor als CSS-Klasse nutzbar */
.ew-bg-dark  { background: var(--ew-teal-900); color: var(--ew-white); }
.ew-bg-light { background: var(--ew-teal-50); }
.ew-bg-gray  { background: var(--ew-ink-50); }
.ew-bg-white { background: var(--ew-white); }
.ew-bg-orange{ background: var(--ew-orange); color: var(--ew-teal-900); }

.ew-bg-dark h1, .ew-bg-dark h2, .ew-bg-dark h3,
.ew-bg-dark h4, .ew-bg-dark p  { color: var(--ew-white); }

/* Grid-Utilities */
.ew-grid    { display: grid; gap: var(--ew-space-md); }
.ew-grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ew-space-md); }
.ew-grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ew-space-md); }
.ew-grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ew-space-md); }

.ew-flex        { display: flex; gap: var(--ew-space-sm); }
.ew-flex-between{ display: flex; align-items: center; justify-content: space-between; gap: var(--ew-space-sm); }
.ew-flex-center { display: flex; align-items: center; justify-content: center; gap: var(--ew-space-sm); }


/* ─── 03  TYPOGRAFIE-UTILITIES ───────────────────────────────────── */

/* Kleines orangenes Label über Überschriften */
.ew-eyebrow {
  display: block;
  font-family: var(--ew-f-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ew-orange);
  margin-bottom: 6px;
}

.ew-section-title {
  font-family: var(--ew-f-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--ew-teal-900);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}

.ew-bg-dark .ew-section-title { color: var(--ew-white); }

.ew-section-sub {
  font-family: var(--ew-f-ui);
  color: var(--ew-ink-500);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

.ew-bg-dark .ew-section-sub { color: rgba(255,255,255,0.5); }

.ew-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--ew-space-md);
  margin-bottom: 44px;
}

.ew-section-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Lead-Absatz */
.ew-lead {
  font-family: var(--ew-f-ui);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ew-ink-500);
}

/* Text-Farb-Utilities für Gutenberg */
.ew-text-teal   { color: var(--ew-teal-700) !important; }
.ew-text-orange { color: var(--ew-orange) !important; }
.ew-text-muted  { color: var(--ew-ink-500) !important; }


/* ─── 04  BUTTONS ────────────────────────────────────────────────── */
.ew-btn,
body.ew365 .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ew-f-ui);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: var(--ew-r-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--ew-dur) var(--ew-ease),
              box-shadow var(--ew-dur) var(--ew-ease),
              background var(--ew-dur) var(--ew-ease),
              color var(--ew-dur) var(--ew-ease);
}

/* Primär (Orange) */
.ew-btn--primary,
body.ew365 .wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--ew-orange);
  color: var(--ew-teal-900);
}
.ew-btn--primary:hover,
body.ew365 .wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: var(--ew-orange-500);
  color: var(--ew-teal-900);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.4);
}

/* Teal */
.ew-btn--teal {
  background: var(--ew-teal-700);
  color: var(--ew-white);
}
.ew-btn--teal:hover {
  background: var(--ew-teal-600);
  color: var(--ew-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,74,74,0.35);
}

/* Ghost auf dunkel */
.ew-btn--ghost {
  background: transparent;
  color: var(--ew-white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.ew-btn--ghost:hover {
  border-color: var(--ew-white);
  background: rgba(255,255,255,0.1);
  color: var(--ew-white);
}

/* Ghost auf hell */
.ew-btn--ghost-teal {
  background: transparent;
  color: var(--ew-teal-700);
  border: 1.5px solid var(--ew-teal-200);
}
.ew-btn--ghost-teal:hover {
  border-color: var(--ew-teal-500);
  background: var(--ew-teal-50);
  color: var(--ew-teal-800);
}

/* Textlink mit Pfeil */
.ew-link-arrow {
  font-family: var(--ew-f-ui);
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--ew-teal-600);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: gap var(--ew-dur), color var(--ew-dur);
}
.ew-link-arrow:hover { color: var(--ew-teal-800); gap: 9px; }


/* ─── 05  CHIPS / BADGES / TAGS ──────────────────────────────────── */
.ew-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ew-f-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--ew-r-pill);
  background: var(--ew-teal-100);
  color: var(--ew-teal-700);
  text-decoration: none;
}

.ew-chip--orange    { background: var(--ew-orange-100); color: var(--ew-orange-600); }
.ew-chip--solid     { background: var(--ew-orange); color: var(--ew-teal-900); }
.ew-chip--on-dark   { background: rgba(224,240,240,0.15); color: var(--ew-teal-200); }
.ew-chip--live      { background: var(--ew-orange); color: var(--ew-teal-900); animation: ew-pulse 2s infinite; }

/* Tag-Pill (Outline) */
.ew-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--ew-r-pill);
  border: 1.5px solid var(--ew-ink-200);
  font-family: var(--ew-f-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ew-ink-500);
  text-decoration: none;
  transition: border-color var(--ew-dur), color var(--ew-dur), background var(--ew-dur);
}
.ew-tag:hover {
  border-color: var(--ew-teal-400);
  color: var(--ew-teal-700);
  background: var(--ew-teal-50);
}


/* ─── 06  KARTEN (Basis) ─────────────────────────────────────────── */
.ew-card {
  background: var(--ew-white);
  border: 1px solid var(--ew-ink-200);
  border-radius: var(--ew-r-xl);
  overflow: hidden;
  transition: transform var(--ew-dur) var(--ew-ease),
              box-shadow var(--ew-dur) var(--ew-ease),
              border-color var(--ew-dur);
}

.ew-card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--ew-shadow-md);
  border-color: transparent;
}

.ew-card--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.09);
}

.ew-card__body { padding: var(--ew-space-md); }


/* ─── 07  NAVIGATION ─────────────────────────────────────────────── */
.ew-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ew-teal-900);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ew-nav__bar {
  display: flex;
  align-items: center;
  height: 66px;
  gap: 32px;
  max-width: var(--ew-wide-width);
  margin-inline: auto;
  padding-inline: var(--ew-space-md);
}

.ew-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.ew-nav__logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ew-teal-600), var(--ew-teal-700));
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ew-f-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ew-orange);
  line-height: 1;
}

.ew-nav__logo-text {
  font-family: var(--ew-f-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ew-white);
  letter-spacing: -0.02em;
}
.ew-nav__logo-text span { color: var(--ew-orange); }

.ew-nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ew-nav__item { position: relative; }

.ew-nav__item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--ew-r-sm);
  font-family: var(--ew-f-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ew-dur), background var(--ew-dur);
}

.ew-nav__item > a:hover,
.ew-nav__item.current-menu-item > a {
  color: var(--ew-white);
  background: rgba(255,255,255,0.08);
}

.ew-nav__item.current-menu-item > a { color: var(--ew-orange); }

/* Dropdown-Pfeil */
.ew-nav__item.menu-item-has-children > a::after {
  content: '▾';
  font-size: 10px;
  opacity: 0.6;
  transition: transform var(--ew-dur);
}
.ew-nav__item.menu-item-has-children:hover > a::after { transform: rotate(180deg); }

/* Dropdown */
.ew-nav__item .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: var(--ew-teal-800);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ew-r-lg);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--ew-dur) var(--ew-ease),
              transform var(--ew-dur) var(--ew-ease),
              visibility var(--ew-dur);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}

.ew-nav__item:hover .sub-menu,
.ew-nav__item:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ew-nav__item .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--ew-r-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: background var(--ew-dur), color var(--ew-dur);
}

.ew-nav__item .sub-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--ew-white);
}

/* Featured Dropdown-Item (Menü-Klasse "ew-featured" in WP setzen) */
.ew-nav__item .sub-menu .ew-featured > a {
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.2);
  color: var(--ew-orange-400);
  font-weight: 700;
}
.ew-nav__item .sub-menu .ew-featured > a:hover { background: rgba(245,166,35,0.18); }

.ew-nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ew-nav__tagline {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
}
.ew-nav__tagline strong { color: var(--ew-orange); font-weight: 700; }

.ew-nav__icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--ew-r-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background var(--ew-dur), color var(--ew-dur);
}
.ew-nav__icon-btn:hover { background: rgba(255,255,255,0.14); color: var(--ew-white); }

/* Mobile Burger */
.ew-nav__burger {
  display: none;
  width: 38px;
  height: 34px;
  border-radius: var(--ew-r-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.ew-nav__burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ew-white);
  border-radius: 2px;
  transition: transform var(--ew-dur), opacity var(--ew-dur);
}

.ew-nav.is-open .ew-nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ew-nav.is-open .ew-nav__burger span:nth-child(2) { opacity: 0; }
.ew-nav.is-open .ew-nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ─── 08  HERO ───────────────────────────────────────────────────── */
.ew-hero {
  background: var(--ew-teal-900);
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}

/* Dekorativer Hintergrund */
.ew-hero__mesh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.ew-hero__mesh::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,122,122,0.25) 0%, transparent 70%);
  top: -200px; right: -100px;
}

.ew-hero__mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, black 20%, transparent 70%);
          mask-image: radial-gradient(ellipse at 60% 50%, black 20%, transparent 70%);
}

.ew-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--ew-space-xl);
  align-items: center;
  padding-block: var(--ew-space-2xl);
  padding-inline: var(--ew-space-md);
  max-width: var(--ew-wide-width);
  margin-inline: auto;
  width: 100%;
}

.ew-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: var(--ew-r-pill);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ew-orange-400);
  margin-bottom: var(--ew-space-md);
}

.ew-hero__kicker::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ew-orange);
}

.ew-hero__headline {
  font-family: var(--ew-f-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--ew-white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.ew-hero__headline em {
  font-style: normal;
  color: var(--ew-orange);
  position: relative;
}

.ew-hero__sub {
  font-family: var(--ew-f-ui);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.62);
  max-width: 480px;
  line-height: 1.7;
  margin: 0 0 36px;
}

.ew-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero-Visual (Karte rechts) */
.ew-hero__visual { position: relative; }

.ew-hero__card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ew-r-xl);
  padding: 28px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.ew-hero__ring {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ew-teal-700) 0%, var(--ew-teal-600) 100%);
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 0 12px rgba(245,166,35,0.06), 0 24px 48px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--ew-space-md);
  animation: ew-float 5s ease-in-out infinite;
}

.ew-hero__ring-top {
  font-family: var(--ew-f-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.ew-hero__ring-num {
  font-family: var(--ew-f-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--ew-orange);
  line-height: 1.1;
}

.ew-hero__card-label {
  font-family: var(--ew-f-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-bottom: var(--ew-space-sm);
}

.ew-hero__topics { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

.ew-hero__topic {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ew-r-pill);
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  transition: background var(--ew-dur), color var(--ew-dur);
}
.ew-hero__topic:hover { background: rgba(255,255,255,0.12); color: var(--ew-white); }

.ew-hero__badge {
  position: absolute;
  top: -14px; right: -14px;
  background: var(--ew-orange);
  color: var(--ew-teal-900);
  border-radius: var(--ew-r-md);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8px 20px rgba(245,166,35,0.4);
  animation: ew-pulse 3s infinite;
}


/* ─── 09  STATS-STREIFEN ─────────────────────────────────────────── */
.ew-stats { background: var(--ew-orange); }

.ew-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.08);
}

.ew-stat {
  background: var(--ew-orange);
  padding: 28px var(--ew-space-md);
  text-align: center;
  transition: background var(--ew-dur);
}
.ew-stat:hover { background: var(--ew-orange-500); }

.ew-stat__num {
  display: block;
  font-family: var(--ew-f-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ew-teal-900);
  line-height: 1;
  letter-spacing: -0.03em;
}

.ew-stat__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(14,42,42,0.65);
  margin-top: 5px;
}


/* ─── 10  VALUE-PROP-CARDS ───────────────────────────────────────── */
.ew-vp {
  background: var(--ew-white);
  border-radius: var(--ew-r-xl);
  padding: 32px 28px;
  border: 1px solid var(--ew-ink-200);
  position: relative;
  overflow: hidden;
  transition: transform var(--ew-dur) var(--ew-ease),
              box-shadow var(--ew-dur) var(--ew-ease),
              border-color var(--ew-dur);
  height: 100%;
}

.ew-vp::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ew-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ew-ease);
}

.ew-vp:hover {
  transform: translateY(-5px);
  box-shadow: var(--ew-shadow-md);
  border-color: var(--ew-teal-200);
}
.ew-vp:hover::after { transform: scaleX(1); }

.ew-vp__icon {
  width: 56px; height: 56px;
  border-radius: var(--ew-r-md);
  background: var(--ew-teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.ew-vp__title {
  font-family: var(--ew-f-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ew-teal-900);
  margin: 0 0 10px;
}

.ew-vp__text {
  font-family: var(--ew-f-ui);
  font-size: 0.9rem;
  color: var(--ew-ink-500);
  line-height: 1.65;
  margin: 0 0 18px;
}


/* ─── 11  EVENT-BANNER ───────────────────────────────────────────── */
.ew-event {
  background: linear-gradient(115deg, var(--ew-teal-900) 0%, var(--ew-teal-700) 55%, var(--ew-teal-600) 100%);
  position: relative;
  overflow: hidden;
}

.ew-event::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  top: -200px; right: -120px;
  pointer-events: none;
}

.ew-event__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--ew-space-xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.ew-event__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ew-orange);
  color: var(--ew-teal-900);
  border-radius: var(--ew-r-pill);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ew-event__title {
  font-family: var(--ew-f-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--ew-white);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.ew-event__desc {
  font-family: var(--ew-f-ui);
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin: 0 0 var(--ew-space-md);
  max-width: 500px;
  line-height: 1.7;
}

.ew-event__meta {
  display: flex;
  gap: var(--ew-space-md);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.ew-event__meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ew-f-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

.ew-event__ring {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 0 0 16px rgba(245,166,35,0.06);
  animation: ew-float 6s ease-in-out infinite;
  flex-shrink: 0;
}

.ew-event__ring-top {
  font-family: var(--ew-f-display);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

.ew-event__ring-num {
  font-family: var(--ew-f-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--ew-orange);
  line-height: 1;
}

.ew-event__ring-sub {
  font-family: var(--ew-f-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
}


/* ─── 12  BLOG-GRID & POST-CARDS ─────────────────────────────────── */
.ew-blog-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--ew-space-md);
}

/* Featured Post (7 Spalten) */
.ew-post-featured {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  background: var(--ew-white);
  border-radius: var(--ew-r-xl);
  border: 1px solid var(--ew-ink-200);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--ew-dur) var(--ew-ease), box-shadow var(--ew-dur), border-color var(--ew-dur);
}

.ew-post-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--ew-shadow-lg);
  border-color: transparent;
}

.ew-post-featured__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ew-teal-800), var(--ew-teal-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.ew-post-featured__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ew-ease);
}
.ew-post-featured:hover .ew-post-featured__img img { transform: scale(1.04); }

.ew-post-featured__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ew-post-featured__title {
  font-family: var(--ew-f-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ew-teal-900);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 12px 0;
  transition: color var(--ew-dur);
}
.ew-post-featured:hover .ew-post-featured__title { color: var(--ew-teal-600); }

.ew-post-featured__excerpt {
  font-family: var(--ew-f-ui);
  font-size: 0.92rem;
  color: var(--ew-ink-500);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

/* Kleine Post-Cards (Stack, 5 Spalten) */
.ew-post-stack {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: var(--ew-space-sm);
}

.ew-post-card {
  display: flex;
  gap: var(--ew-space-sm);
  background: var(--ew-white);
  border: 1px solid var(--ew-ink-200);
  border-radius: var(--ew-r-lg);
  padding: var(--ew-space-sm);
  text-decoration: none;
  align-items: flex-start;
  transition: transform var(--ew-dur) var(--ew-ease), box-shadow var(--ew-dur), border-color var(--ew-dur);
}

.ew-post-card:hover {
  transform: translateX(4px);
  box-shadow: var(--ew-shadow-sm);
  border-color: var(--ew-teal-200);
}

.ew-post-card__img {
  width: 88px; height: 66px;
  border-radius: var(--ew-r-sm);
  background: linear-gradient(135deg, var(--ew-teal-700), var(--ew-teal-500));
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.ew-post-card__img img { width: 100%; height: 100%; object-fit: cover; }

.ew-post-card__title {
  font-family: var(--ew-f-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ew-teal-900);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  transition: color var(--ew-dur);
}
.ew-post-card:hover .ew-post-card__title { color: var(--ew-teal-600); }

/* Tiles (3-Spalten-Raster) */
.ew-post-tile {
  background: var(--ew-white);
  border: 1px solid var(--ew-ink-200);
  border-radius: var(--ew-r-xl);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform var(--ew-dur) var(--ew-ease), box-shadow var(--ew-dur), border-color var(--ew-dur);
}

.ew-post-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--ew-shadow-md);
  border-color: transparent;
}

.ew-post-tile__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ew-teal-700), var(--ew-teal-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.ew-post-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ew-ease); }
.ew-post-tile:hover .ew-post-tile__img img { transform: scale(1.06); }

.ew-post-tile__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }

.ew-post-tile__title {
  font-family: var(--ew-f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ew-teal-900);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 10px 0 8px;
  transition: color var(--ew-dur);
}
.ew-post-tile:hover .ew-post-tile__title { color: var(--ew-teal-600); }

.ew-post-tile__excerpt {
  font-family: var(--ew-f-ui);
  font-size: 0.88rem;
  color: var(--ew-ink-500);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta-Zeile in Cards */
.ew-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ew-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ew-space-xs);
  padding-top: 14px;
  border-top: 1px solid var(--ew-ink-100);
  margin-top: auto;
}

.ew-author-mini { display: flex; align-items: center; gap: 9px; }

.ew-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ew-teal-700);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ew-f-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ew-white);
}
.ew-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ew-avatar--lg { width: 72px; height: 72px; font-size: 1.4rem; border: 3px solid var(--ew-teal-100); }
.ew-avatar--md { width: 44px; height: 44px; font-size: 0.9rem; }

.ew-author-name {
  font-family: var(--ew-f-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ew-teal-700);
}

.ew-post-date {
  font-family: var(--ew-f-ui);
  font-size: 0.78rem;
  color: var(--ew-ink-400);
}


/* ─── 13  TEAM-CARDS ─────────────────────────────────────────────── */
.ew-team-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--ew-r-xl);
  padding: 28px var(--ew-space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background var(--ew-dur), border-color var(--ew-dur), transform var(--ew-dur);
  height: 100%;
}

.ew-team-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(245,166,35,0.25);
  transform: translateY(-3px);
}

.ew-team-card__avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.12);
  margin-bottom: 18px;
  background: var(--ew-teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ew-f-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ew-white);
  flex-shrink: 0;
}
.ew-team-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.ew-team-card__name {
  font-family: var(--ew-f-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ew-white);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.ew-team-card__role {
  font-family: var(--ew-f-ui);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0 0 18px;
  line-height: 1.4;
}

.ew-team-card__socials { display: flex; gap: 8px; margin-top: auto; }

.ew-social {
  width: 34px; height: 34px;
  border-radius: var(--ew-r-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: background var(--ew-dur), color var(--ew-dur), border-color var(--ew-dur);
}
.ew-social:hover {
  background: var(--ew-orange);
  color: var(--ew-teal-900);
  border-color: var(--ew-orange);
}


/* ─── 14  NEWSLETTER ─────────────────────────────────────────────── */
.ew-newsletter {
  background: var(--ew-teal-50);
  border-top: 1px solid var(--ew-ink-200);
}

.ew-newsletter__inner {
  max-width: 580px;
  margin-inline: auto;
  text-align: center;
}

.ew-newsletter__form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: var(--ew-space-md) auto 0;
}

.ew-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--ew-r-pill);
  border: 1.5px solid var(--ew-ink-200);
  font-family: var(--ew-f-ui);
  font-size: 0.92rem;
  color: var(--ew-ink);
  background: var(--ew-white);
  outline: none;
  transition: border-color var(--ew-dur);
}
.ew-input:focus { border-color: var(--ew-teal-500); }

.ew-newsletter__note {
  font-size: 0.75rem;
  color: var(--ew-ink-400);
  margin-top: 12px;
}


/* ─── 15  FOOTER ─────────────────────────────────────────────────── */
.ew-footer {
  background: var(--ew-teal-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-block: 28px;
}

.ew-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ew-space-sm);
  flex-wrap: wrap;
}

.ew-footer__brand {
  font-family: var(--ew-f-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ew-white);
}
.ew-footer__brand span { color: var(--ew-orange); }

.ew-footer__menu {
  display: flex;
  gap: var(--ew-space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.ew-footer__menu a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--ew-dur);
}
.ew-footer__menu a:hover { color: var(--ew-orange); }

.ew-footer__social { font-size: 0.83rem; font-weight: 600; color: var(--ew-orange); }


/* ═══════════════════════════════════════════════════════════════════
   16  BLOG-DETAILSEITE
   ═══════════════════════════════════════════════════════════════════ */

/* Lesefortschrittsbalken */
.ew-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--ew-orange), var(--ew-orange-500));
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
}

/* Artikel-Header */
.ew-article-hero {
  background: var(--ew-teal-900);
  padding-block: 60px 48px;
  position: relative;
  overflow: hidden;
}

.ew-article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 100%, black 30%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 100%, black 30%, transparent 70%);
}

.ew-article-hero__inner {
  max-width: var(--ew-content-width);
  margin-inline: auto;
  padding-inline: var(--ew-space-md);
  position: relative;
  z-index: 2;
}

.ew-article-hero__title {
  font-family: var(--ew-f-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--ew-white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

/* Breadcrumb */
.ew-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--ew-space-md);
  flex-wrap: wrap;
}
.ew-breadcrumb a,
.ew-breadcrumb span {
  font-family: var(--ew-f-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--ew-dur);
}
.ew-breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.ew-breadcrumb__sep { color: rgba(255,255,255,0.25) !important; }
.ew-breadcrumb__current {
  color: rgba(255,255,255,0.55) !important;
  font-weight: 500 !important;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Byline */
.ew-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.ew-byline__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ew-teal-600);
  border: 2px solid rgba(255,255,255,0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ew-f-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ew-white);
  flex-shrink: 0;
}
.ew-byline__avatar img { width: 100%; height: 100%; object-fit: cover; }

.ew-byline__info { flex: 1; min-width: 160px; }

.ew-byline__name {
  font-family: var(--ew-f-ui);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ew-white);
}

.ew-byline__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.ew-byline__meta span {
  font-family: var(--ew-f-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Artikel-Layout (Content + Sticky Sidebar) */
.ew-article-layout {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--ew-space-md);
  padding-block: 48px var(--ew-space-2xl);
  display: grid;
  grid-template-columns: minmax(0, var(--ew-content-width)) 1fr;
  gap: 52px;
  align-items: start;
}

.ew-article-content { min-width: 0; }

/* Beitragsbild */
.ew-article-img {
  border-radius: var(--ew-r-xl);
  overflow: hidden;
  margin-bottom: var(--ew-space-lg);
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--ew-teal-800), var(--ew-teal-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: var(--ew-shadow-lg);
}
.ew-article-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Artikel-Fließtext (Gutenberg-Content) ───────────────────────── */
.ew-article-body,
.editor-styles-wrapper .ew-article-body {
  font-family: var(--ew-f-body);
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ew-ink-700);
}

.ew-article-body > p { margin-bottom: 1.5em; }

.ew-article-body h2 {
  font-family: var(--ew-f-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ew-teal-900);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-top: 2.2em;
  margin-bottom: 0.75em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ew-teal-100);
}

.ew-article-body h3 {
  font-family: var(--ew-f-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ew-teal-800);
  letter-spacing: -0.02em;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.ew-article-body ul,
.ew-article-body ol { padding-left: 1.4em; margin-bottom: 1.5em; }
.ew-article-body li { margin-bottom: 0.5em; line-height: 1.75; }
.ew-article-body ul li::marker { color: var(--ew-orange); }
.ew-article-body ol li::marker { font-family: var(--ew-f-display); font-weight: 700; color: var(--ew-teal-600); }

.ew-article-body strong { font-weight: 700; color: var(--ew-teal-800); }

.ew-article-body a {
  color: var(--ew-teal-600);
  border-bottom: 1.5px solid var(--ew-teal-200);
  text-decoration: none;
  transition: color var(--ew-dur), border-color var(--ew-dur);
}
.ew-article-body a:hover { color: var(--ew-teal-800); border-bottom-color: var(--ew-teal-500); }

.ew-article-body img { border-radius: var(--ew-r-lg); margin-block: 1.5em; }

/* ── CALLOUT (Gutenberg: Absatz + Klasse "ew-callout") ───────────── */
.ew-callout {
  background: var(--ew-teal-50);
  border-left: 4px solid var(--ew-teal-500);
  border-radius: 0 var(--ew-r-md) var(--ew-r-md) 0;
  padding: 18px 22px;
  margin-block: 2em;
  font-family: var(--ew-f-ui);
  font-size: 0.95rem;
  color: var(--ew-teal-800);
  line-height: 1.7;
}

.ew-callout--warning {
  background: var(--ew-orange-100);
  border-left-color: var(--ew-orange);
  color: var(--ew-ink-700);
}

.ew-callout--tip {
  background: var(--ew-teal-50);
  border-left-color: var(--ew-teal-500);
}

.ew-callout__label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ew-teal-600);
  margin-bottom: 6px;
}
.ew-callout--warning .ew-callout__label { color: var(--ew-orange-600); }

/* ── KEY-FACT / ZITAT-BOX ────────────────────────────────────────── */
.ew-keyfact,
body.ew365 .wp-block-quote.is-style-ew-keyfact {
  background: var(--ew-teal-900);
  border-radius: var(--ew-r-xl);
  padding: 28px 32px;
  margin-block: 2em;
  position: relative;
  overflow: hidden;
  border: none;
}

.ew-keyfact::before {
  content: '"';
  position: absolute;
  top: -10px; left: 16px;
  font-family: var(--ew-f-display);
  font-size: 8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
}

.ew-keyfact p,
body.ew365 .wp-block-quote.is-style-ew-keyfact p {
  font-family: var(--ew-f-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ew-white);
  line-height: 1.4;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  margin: 0;
}

.ew-keyfact em { font-style: normal; color: var(--ew-orange); }

/* ── SCHRITT-BOXEN (nummeriert) ──────────────────────────────────── */
.ew-steps {
  list-style: none;
  padding: 0;
  margin-block: 1.5em 2em;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ew-step {
  display: flex;
  align-items: flex-start;
  gap: var(--ew-space-sm);
  padding: 16px 18px;
  background: var(--ew-teal-50);
  border-radius: var(--ew-r-md);
  border: 1px solid var(--ew-teal-100);
  counter-increment: ew-step-counter;
}

.ew-steps { counter-reset: ew-step-counter; }

.ew-step::before {
  content: counter(ew-step-counter);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ew-teal-700);
  color: var(--ew-white);
  font-family: var(--ew-f-display);
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ew-step > * {
  font-family: var(--ew-f-ui);
  font-size: 0.95rem;
  color: var(--ew-ink-700);
  line-height: 1.65;
  margin: 0;
}

/* ── ARTIKEL-TAGS ────────────────────────────────────────────────── */
.ew-article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: var(--ew-space-lg);
  padding-top: var(--ew-space-md);
  border-top: 1px solid var(--ew-ink-100);
}
.ew-article-tags__label {
  font-family: var(--ew-f-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ew-ink-400);
}

/* ── SHARE-LEISTE ────────────────────────────────────────────────── */
.ew-share {
  margin-top: 36px;
  padding: var(--ew-space-md);
  background: var(--ew-teal-50);
  border-radius: var(--ew-r-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ew-space-sm);
  flex-wrap: wrap;
}

.ew-share__text {
  font-family: var(--ew-f-ui);
  font-weight: 700;
  color: var(--ew-teal-900);
  font-size: 0.95rem;
}

.ew-share__buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.ew-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--ew-r-pill);
  font-family: var(--ew-f-ui);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--ew-dur), box-shadow var(--ew-dur);
}
.ew-share__btn:hover { transform: translateY(-2px); box-shadow: var(--ew-shadow-sm); }

.ew-share__btn--li   { background: #0a66c2; color: #fff; }
.ew-share__btn--x    { background: #000;    color: #fff; }
.ew-share__btn--copy { background: var(--ew-teal-700); color: #fff; }

/* ── AUTOREN-BOX ─────────────────────────────────────────────────── */
.ew-author-box {
  margin-top: 48px;
  background: var(--ew-white);
  border: 1px solid var(--ew-ink-200);
  border-radius: var(--ew-r-xl);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ew-author-box__label {
  font-family: var(--ew-f-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ew-orange);
  margin-bottom: 4px;
}

.ew-author-box__name {
  font-family: var(--ew-f-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ew-teal-900);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.ew-author-box__bio {
  font-family: var(--ew-f-ui);
  font-size: 0.88rem;
  color: var(--ew-ink-500);
  line-height: 1.7;
  margin: 0 0 14px;
}

.ew-author-box__links { display: flex; gap: 8px; flex-wrap: wrap; }

.ew-author-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--ew-r-pill);
  background: var(--ew-teal-100);
  color: var(--ew-teal-700);
  font-family: var(--ew-f-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--ew-dur), color var(--ew-dur);
}
.ew-author-link:hover { background: var(--ew-teal-700); color: var(--ew-white); }

/* ── KOMMENTARE ──────────────────────────────────────────────────── */
.ew-comments { margin-top: 56px; }

.ew-comments__title {
  font-family: var(--ew-f-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ew-teal-900);
  letter-spacing: -0.02em;
  margin-bottom: var(--ew-space-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ew-comments__count {
  background: var(--ew-teal-100);
  color: var(--ew-teal-700);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--ew-r-pill);
}

body.ew365 .comment-form,
.ew-comment-form {
  background: var(--ew-teal-50);
  border-radius: var(--ew-r-xl);
  padding: 28px;
  border: 1px solid var(--ew-teal-100);
}

body.ew365 .comment-form label {
  font-family: var(--ew-f-ui);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ew-teal-800);
  display: block;
  margin-bottom: 5px;
}

body.ew365 .comment-form input[type="text"],
body.ew365 .comment-form input[type="email"],
body.ew365 .comment-form input[type="url"],
body.ew365 .comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--ew-r-md);
  border: 1.5px solid var(--ew-ink-200);
  font-family: var(--ew-f-ui);
  font-size: 0.92rem;
  color: var(--ew-ink);
  background: var(--ew-white);
  outline: none;
  transition: border-color var(--ew-dur);
}

body.ew365 .comment-form input:focus,
body.ew365 .comment-form textarea:focus { border-color: var(--ew-teal-500); }

body.ew365 .comment-form .submit {
  background: var(--ew-teal-700);
  color: var(--ew-white);
  border-radius: var(--ew-r-pill);
  padding: 11px 22px;
  font-family: var(--ew-f-ui);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--ew-dur), transform var(--ew-dur);
}
body.ew365 .comment-form .submit:hover { background: var(--ew-teal-600); transform: translateY(-2px); }

/* Kommentarliste */
body.ew365 .comment-list { list-style: none; padding: 0; margin: 0 0 var(--ew-space-lg); }
body.ew365 .comment-body {
  background: var(--ew-white);
  border: 1px solid var(--ew-ink-200);
  border-radius: var(--ew-r-lg);
  padding: 20px;
  margin-bottom: var(--ew-space-sm);
}


/* ═══════════════════════════════════════════════════════════════════
   17  SIDEBAR
   ═══════════════════════════════════════════════════════════════════ */
.ew-sidebar {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--ew-space-md);
  scrollbar-width: none;
}
.ew-sidebar::-webkit-scrollbar { display: none; }

.ew-sidebar-card {
  background: var(--ew-teal-50);
  border: 1px solid var(--ew-teal-100);
  border-radius: var(--ew-r-xl);
  padding: 22px;
}

.ew-sidebar-card__title {
  font-family: var(--ew-f-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ew-teal-700);
  margin: 0 0 var(--ew-space-sm);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Inhaltsverzeichnis */
.ew-toc { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }

.ew-toc li a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--ew-r-sm);
  font-family: var(--ew-f-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ew-ink-500);
  line-height: 1.4;
  text-decoration: none;
  transition: background var(--ew-dur), color var(--ew-dur);
}
.ew-toc li a:hover { background: var(--ew-teal-100); color: var(--ew-teal-800); }
.ew-toc li.is-active a { background: var(--ew-teal-700); color: var(--ew-white); font-weight: 600; }

.ew-toc__num {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ew-teal-200);
  color: var(--ew-teal-700);
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.ew-toc li.is-active .ew-toc__num { background: var(--ew-orange); color: var(--ew-teal-900); }

/* Verwandte Beiträge (Sidebar) */
.ew-sidebar-post {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: var(--ew-r-md);
  text-decoration: none;
  transition: background var(--ew-dur);
}
.ew-sidebar-post:hover { background: var(--ew-teal-100); }

.ew-sidebar-post__img {
  width: 52px; height: 40px;
  border-radius: var(--ew-r-sm);
  background: linear-gradient(135deg, var(--ew-teal-700), var(--ew-teal-500));
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.ew-sidebar-post__img img { width: 100%; height: 100%; object-fit: cover; }

.ew-sidebar-post__title {
  font-family: var(--ew-f-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ew-teal-800);
  line-height: 1.35;
  transition: color var(--ew-dur);
}
.ew-sidebar-post:hover .ew-sidebar-post__title { color: var(--ew-teal-600); }

.ew-sidebar-post__date { font-size: 0.72rem; color: var(--ew-ink-400); margin-top: 3px; }

/* Event-Promo in Sidebar */
.ew-sidebar-event {
  background: var(--ew-teal-900);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--ew-r-xl);
  padding: 22px;
  text-align: center;
}

.ew-sidebar-event__badge {
  display: inline-block;
  background: var(--ew-orange);
  color: var(--ew-teal-900);
  font-family: var(--ew-f-ui);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--ew-r-pill);
  margin-bottom: 12px;
}

.ew-sidebar-event h4 {
  font-family: var(--ew-f-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ew-white);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.ew-sidebar-event p {
  font-family: var(--ew-f-ui);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0 0 var(--ew-space-sm);
}

.ew-sidebar-event__btn {
  display: block;
  padding: 9px 16px;
  border-radius: var(--ew-r-pill);
  background: var(--ew-orange);
  color: var(--ew-teal-900);
  font-family: var(--ew-f-ui);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background var(--ew-dur), transform var(--ew-dur);
}
.ew-sidebar-event__btn:hover { background: var(--ew-orange-500); transform: translateY(-2px); }

/* Tag-Wolke */
.ew-sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.ew-sidebar-tag {
  padding: 4px 10px;
  border-radius: var(--ew-r-pill);
  border: 1.5px solid var(--ew-teal-200);
  font-family: var(--ew-f-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ew-teal-700);
  text-decoration: none;
  transition: background var(--ew-dur), border-color var(--ew-dur), color var(--ew-dur);
}
.ew-sidebar-tag:hover { background: var(--ew-teal-700); border-color: var(--ew-teal-700); color: var(--ew-white); }


/* ═══════════════════════════════════════════════════════════════════
   18  KADENCE-OVERRIDES
   ═══════════════════════════════════════════════════════════════════ */

/* Kadence-Header ausblenden, wenn eigene Nav genutzt wird */
body.ew365 #masthead.ew-hide,
body.ew365 #colophon.ew-hide { display: none; }

/* Full-Width-Templates ohne Container-Padding */
body.ew365 .page-template-template-fullwidth .entry-content,
body.ew365 .page-template-template-fullwidth-kbs .entry-content,
body.ew365 .page-template-template-fullwidth-ew .entry-content {
  padding: 0 !important;
  max-width: 100% !important;
}

body.ew365 .wp-site-blocks > .is-layout-flow > *:first-child { margin-top: 0 !important; }

/* Kadence Post-Loop mit unserem Card-Look */
body.ew365 .entry.loop-entry {
  border-radius: var(--ew-r-xl);
  border: 1px solid var(--ew-ink-200);
  overflow: hidden;
  box-shadow: none;
  transition: transform var(--ew-dur) var(--ew-ease), box-shadow var(--ew-dur), border-color var(--ew-dur);
}
body.ew365 .entry.loop-entry:hover {
  transform: translateY(-4px);
  box-shadow: var(--ew-shadow-md);
  border-color: transparent;
}

/* Gutenberg Cover-Block runde Ecken */
body.ew365 .wp-block-cover { border-radius: var(--ew-r-xl); overflow: hidden; }

/* Gutenberg Gruppen-Block als Card */
body.ew365 .wp-block-group.ew-card { padding: var(--ew-space-md); }


/* ═══════════════════════════════════════════════════════════════════
   19  ANIMATIONEN
   ═══════════════════════════════════════════════════════════════════ */
@keyframes ew-fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ew-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes ew-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.75; }
}

.ew-animate      { animation: ew-fadeUp 0.7s var(--ew-ease) both; }
.ew-animate-d1   { animation: ew-fadeUp 0.7s var(--ew-ease) 0.1s both; }
.ew-animate-d2   { animation: ew-fadeUp 0.7s var(--ew-ease) 0.2s both; }
.ew-animate-d3   { animation: ew-fadeUp 0.7s var(--ew-ease) 0.3s both; }

/* Scroll-Reveal (JS setzt .is-visible) */
.ew-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ew-ease), transform 0.6s var(--ew-ease); }
.ew-reveal.is-visible { opacity: 1; transform: translateY(0); }


/* ═══════════════════════════════════════════════════════════════════
   20  RESPONSIVE BREAKPOINTS
   Mobile-First-Korrekturen. Fixe Breakpoints: 1024 / 900 / 640 / 420
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tablet Landscape ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ew-hero__inner { grid-template-columns: 1fr 320px; gap: var(--ew-space-lg); }
  .ew-article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--ew-space-lg); }
  .ew-nav__tagline { display: none; }
}

/* ── Tablet Portrait ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --ew-space-xl: 40px; --ew-space-2xl: 56px; --ew-space-3xl: 72px; }

  /* Navigation → Mobile */
  .ew-nav__burger { display: flex; }

  .ew-nav__menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--ew-teal-800);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--ew-space-sm);
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s var(--ew-ease), opacity 0.2s var(--ew-ease), padding 0.3s;
  }

  .ew-nav.is-open .ew-nav__menu {
    max-height: 80vh;
    opacity: 1;
    overflow-y: auto;
  }

  .ew-nav__item .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    margin-top: 4px;
    margin-left: var(--ew-space-sm);
  }

  /* Hero */
  .ew-hero { min-height: auto; }
  .ew-hero__inner { grid-template-columns: 1fr; }
  .ew-hero__visual { display: none; }

  /* Layouts */
  .ew-grid-3, .ew-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ew-event__inner { grid-template-columns: 1fr; }
  .ew-event__ring  { display: none; }

  .ew-blog-grid { grid-template-columns: 1fr; }
  .ew-post-featured, .ew-post-stack { grid-column: span 1; }

  /* Artikel-Layout → einspaltig, Sidebar unten */
  .ew-article-layout { grid-template-columns: 1fr; }
  .ew-sidebar {
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ew-sidebar-card, .ew-sidebar-event { flex: 1 1 280px; }

  /* Sidebar-TOC auf Mobile ausblenden (redundant) */
  .ew-sidebar .ew-sidebar-card--toc { display: none; }
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --ew-space-xl: 32px; --ew-space-2xl: 48px; --ew-space-3xl: 56px; }

  .ew-grid-2, .ew-grid-3, .ew-grid-4 { grid-template-columns: 1fr; }

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

  .ew-section-header { flex-direction: column; align-items: flex-start; }
  .ew-section-header .ew-btn { align-self: stretch; justify-content: center; }

  .ew-hero__headline { font-size: clamp(2rem, 9vw, 2.6rem); }
  .ew-hero__actions  { flex-direction: column; align-items: stretch; }
  .ew-hero__actions .ew-btn { justify-content: center; }

  .ew-newsletter__form { flex-direction: column; }
  .ew-newsletter__form .ew-btn { justify-content: center; }

  /* Artikel */
  .ew-article-hero { padding-block: 40px 36px; }
  .ew-article-body { font-size: 1.02rem; }
  .ew-article-body h2 { font-size: 1.35rem; }
  .ew-article-img { border-radius: var(--ew-r-lg); }

  .ew-share { flex-direction: column; align-items: stretch; }
  .ew-share__buttons { justify-content: center; }

  .ew-author-box { flex-direction: column; align-items: center; text-align: center; }
  .ew-author-box__links { justify-content: center; }

  .ew-post-card { flex-direction: column; }
  .ew-post-card__img { width: 100%; height: 140px; }

  .ew-keyfact { padding: 22px 20px; }
  .ew-keyfact p { font-size: 1.1rem; }

  .ew-footer__inner { flex-direction: column; text-align: center; }
  .ew-footer__menu  { justify-content: center; flex-wrap: wrap; }
}

/* ── Kleine Handys ───────────────────────────────────────────────── */
@media (max-width: 420px) {
  .ew-stats__grid { grid-template-columns: 1fr; }
  .ew-nav__logo-text { font-size: 0.95rem; }
  .ew-event__meta { flex-direction: column; gap: 8px; }
  .ew-share__buttons { flex-direction: column; }
  .ew-share__btn { justify-content: center; }
}

/* ── Print ───────────────────────────────────────────────────────── */
@media print {
  .ew-nav, .ew-sidebar, .ew-share, .ew-comments,
  .ew-progress, .ew-footer, .ew-event { display: none !important; }
  .ew-article-layout { grid-template-columns: 1fr; }
  .ew-article-hero { background: none; padding-block: 0; }
  .ew-article-hero__title { color: #000; }
}


/* ═══════════════════════════════════════════════════════════════════
   21  GUTENBERG BLOCK-STYLE-MAPPINGS
   Verbindet die im Editor-Dropdown wählbaren Stile mit unseren
   .ew-* Klassen. Gilt Frontend + Editor.
   ═══════════════════════════════════════════════════════════════════ */

/* Zitat → Key-Fact */
.is-style-ew-keyfact {
  background: var(--ew-teal-900);
  border-radius: var(--ew-r-xl);
  padding: 28px 32px;
  margin-block: 2em;
  border: none !important;
  border-left: none !important;
  position: relative;
  overflow: hidden;
}
.is-style-ew-keyfact p {
  font-family: var(--ew-f-display) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--ew-white) !important;
  line-height: 1.4 !important;
  letter-spacing: -0.02em;
  margin: 0 !important;
}
.is-style-ew-keyfact em { font-style: normal; color: var(--ew-orange); }
.is-style-ew-keyfact cite {
  display: block;
  margin-top: 12px;
  font-family: var(--ew-f-ui);
  font-size: 0.82rem;
  font-style: normal;
  color: rgba(255,255,255,0.45);
}

/* Absatz → Info-Box */
.is-style-ew-callout {
  background: var(--ew-teal-50);
  border-left: 4px solid var(--ew-teal-500);
  border-radius: 0 var(--ew-r-md) var(--ew-r-md) 0;
  padding: 18px 22px !important;
  margin-block: 2em;
  font-family: var(--ew-f-ui) !important;
  font-size: 0.95rem !important;
  color: var(--ew-teal-800) !important;
  line-height: 1.7 !important;
}

/* Absatz → Warn-Box */
.is-style-ew-callout-warning {
  background: var(--ew-orange-100);
  border-left: 4px solid var(--ew-orange);
  border-radius: 0 var(--ew-r-md) var(--ew-r-md) 0;
  padding: 18px 22px !important;
  margin-block: 2em;
  font-family: var(--ew-f-ui) !important;
  font-size: 0.95rem !important;
  color: var(--ew-ink-700) !important;
  line-height: 1.7 !important;
}

/* Absatz → Lead */
.is-style-ew-lead {
  font-family: var(--ew-f-ui) !important;
  font-size: 1.2rem !important;
  line-height: 1.7 !important;
  color: var(--ew-ink-500) !important;
}

/* Liste → Schritt-Boxen */
ul.is-style-ew-steps,
ol.is-style-ew-steps {
  list-style: none;
  padding: 0 !important;
  margin-block: 1.5em 2em;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: ew-step-counter;
}

ul.is-style-ew-steps li,
ol.is-style-ew-steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--ew-space-sm);
  padding: 16px 18px;
  background: var(--ew-teal-50);
  border-radius: var(--ew-r-md);
  border: 1px solid var(--ew-teal-100);
  counter-increment: ew-step-counter;
  font-family: var(--ew-f-ui);
  font-size: 0.95rem;
  color: var(--ew-ink-700);
  line-height: 1.65;
  margin: 0;
}

ul.is-style-ew-steps li::before,
ol.is-style-ew-steps li::before {
  content: counter(ew-step-counter);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ew-teal-700);
  color: var(--ew-white);
  font-family: var(--ew-f-display);
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

ul.is-style-ew-steps li::marker,
ol.is-style-ew-steps li::marker { content: none; }

/* Gruppe → Karte */
.wp-block-group.is-style-ew-card {
  background: var(--ew-white);
  border: 1px solid var(--ew-ink-200);
  border-radius: var(--ew-r-xl);
  padding: var(--ew-space-md);
}

/* Gruppe → Dunkler Bereich */
.wp-block-group.is-style-ew-bg-dark {
  background: var(--ew-teal-900);
  color: var(--ew-white);
  border-radius: var(--ew-r-xl);
  padding: var(--ew-space-lg);
}
.wp-block-group.is-style-ew-bg-dark h1,
.wp-block-group.is-style-ew-bg-dark h2,
.wp-block-group.is-style-ew-bg-dark h3,
.wp-block-group.is-style-ew-bg-dark p { color: var(--ew-white); }

/* Gruppe → Heller Bereich */
.wp-block-group.is-style-ew-bg-light {
  background: var(--ew-teal-50);
  border-radius: var(--ew-r-xl);
  padding: var(--ew-space-lg);
}

/* Button-Varianten */
.wp-block-button.is-style-ew-primary .wp-block-button__link {
  background: var(--ew-orange);
  color: var(--ew-teal-900);
  border-radius: var(--ew-r-pill);
}
.wp-block-button.is-style-ew-primary .wp-block-button__link:hover {
  background: var(--ew-orange-500);
}

.wp-block-button.is-style-ew-teal .wp-block-button__link {
  background: var(--ew-teal-700);
  color: var(--ew-white);
  border-radius: var(--ew-r-pill);
}
.wp-block-button.is-style-ew-teal .wp-block-button__link:hover {
  background: var(--ew-teal-600);
}

.wp-block-button.is-style-ew-ghost-teal .wp-block-button__link {
  background: transparent;
  color: var(--ew-teal-700);
  border: 1.5px solid var(--ew-teal-200);
  border-radius: var(--ew-r-pill);
}
.wp-block-button.is-style-ew-ghost-teal .wp-block-button__link:hover {
  background: var(--ew-teal-50);
  border-color: var(--ew-teal-500);
}

/* Bild → Abgerundet */
.wp-block-image.is-style-ew-rounded img {
  border-radius: var(--ew-r-lg);
  box-shadow: var(--ew-shadow-md);
}


/* ═══════════════════════════════════════════════════════════════════
   22  LEARNINGDAYS / EVENT-KOMPONENTEN
   ═══════════════════════════════════════════════════════════════════ */

/* ── Event-Hero ──────────────────────────────────────────────────── */
.ew-event-hero {
  background: linear-gradient(115deg, var(--ew-teal-900) 0%, var(--ew-teal-700) 60%, var(--ew-teal-600) 100%);
  position: relative;
  overflow: hidden;
  padding-block: 72px 60px;
}

.ew-event-hero::before {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  top: -220px; right: -140px;
  pointer-events: none;
}

.ew-event-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 40% 60%, black 20%, transparent 70%);
          mask-image: radial-gradient(ellipse at 40% 60%, black 20%, transparent 70%);
  pointer-events: none;
}

.ew-event-hero__inner { position: relative; z-index: 2; }

.ew-event-hero__title {
  font-family: var(--ew-f-display);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--ew-white);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 760px;
}

.ew-event-hero__sub {
  font-family: var(--ew-f-ui);
  font-size: 1.08rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 0 32px;
}

/* Status-Badges */
.ew-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--ew-r-pill);
  padding: 6px 14px;
  font-family: var(--ew-f-ui);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ew-status--upcoming { background: var(--ew-orange); color: var(--ew-teal-900); }
.ew-status--live     { background: #e5484d; color: #fff; animation: ew-pulse 1.6s infinite; }
.ew-status--past     { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.15); }

.ew-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Countdown ───────────────────────────────────────────────────── */
.ew-countdown {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.ew-countdown__unit {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--ew-r-md);
  padding: 14px 18px;
  min-width: 82px;
  text-align: center;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.ew-countdown__num {
  display: block;
  font-family: var(--ew-f-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ew-orange);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ew-countdown__label {
  font-family: var(--ew-f-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 5px;
}

.ew-countdown.is-over { display: none; }

/* ── Event-Meta-Leiste ───────────────────────────────────────────── */
.ew-event-bar {
  display: flex;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--ew-r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
  max-width: 760px;
}

.ew-event-bar__item {
  flex: 1;
  background: rgba(255,255,255,0.04);
  padding: 16px 20px;
  min-width: 130px;
}

.ew-event-bar__label {
  font-family: var(--ew-f-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.ew-event-bar__value {
  font-family: var(--ew-f-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ew-white);
}

/* ── Agenda: Tag-Tabs ────────────────────────────────────────────── */
.ew-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--ew-ink-100);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ew-tabs::-webkit-scrollbar { display: none; }

.ew-tab {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 12px 20px;
  font-family: var(--ew-f-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ew-ink-400);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--ew-dur), border-color var(--ew-dur);
}

.ew-tab:hover { color: var(--ew-teal-600); }

.ew-tab.is-active {
  color: var(--ew-teal-900);
  border-bottom-color: var(--ew-orange);
}

.ew-tab__date {
  display: block;
  font-family: var(--ew-f-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ew-ink-400);
  margin-top: 2px;
}

.ew-tabpanel { display: none; }
.ew-tabpanel.is-active { display: block; animation: ew-fadeUp 0.4s var(--ew-ease) both; }

/* ── Agenda: Session-Zeilen ──────────────────────────────────────── */
.ew-agenda { display: flex; flex-direction: column; gap: 12px; }

.ew-session {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--ew-white);
  border: 1px solid var(--ew-ink-200);
  border-radius: var(--ew-r-lg);
  padding: 18px 22px;
  transition: border-color var(--ew-dur), box-shadow var(--ew-dur), transform var(--ew-dur);
}

.ew-session:hover {
  border-color: var(--ew-teal-200);
  box-shadow: var(--ew-shadow-sm);
  transform: translateX(3px);
}

.ew-session--break {
  background: var(--ew-teal-50);
  border-style: dashed;
}
.ew-session--break:hover { transform: none; }

.ew-session__time {
  font-family: var(--ew-f-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ew-teal-700);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.ew-session__time small {
  display: block;
  font-family: var(--ew-f-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ew-ink-400);
  letter-spacing: 0;
  margin-top: 2px;
}

.ew-session__title {
  font-family: var(--ew-f-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ew-teal-900);
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0 0 5px;
}

.ew-session__desc {
  font-family: var(--ew-f-ui);
  font-size: 0.87rem;
  color: var(--ew-ink-500);
  line-height: 1.6;
  margin: 0 0 8px;
}

.ew-session__speaker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ew-f-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ew-teal-600);
}

.ew-session__speaker img,
.ew-session__speaker .ew-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 0.62rem;
}

.ew-session__level {
  flex-shrink: 0;
  align-self: flex-start;
}

/* ── Speaker-Grid ────────────────────────────────────────────────── */
.ew-speaker {
  background: var(--ew-white);
  border: 1px solid var(--ew-ink-200);
  border-radius: var(--ew-r-xl);
  padding: 26px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--ew-dur) var(--ew-ease), box-shadow var(--ew-dur), border-color var(--ew-dur);
  height: 100%;
}

.ew-speaker:hover {
  transform: translateY(-4px);
  box-shadow: var(--ew-shadow-md);
  border-color: var(--ew-teal-200);
}

.ew-speaker__avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--ew-teal-100);
  background: var(--ew-teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ew-f-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ew-white);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.ew-speaker__avatar img { width: 100%; height: 100%; object-fit: cover; }

.ew-speaker__name {
  font-family: var(--ew-f-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ew-teal-900);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.ew-speaker__role {
  font-family: var(--ew-f-ui);
  font-size: 0.82rem;
  color: var(--ew-ink-500);
  line-height: 1.5;
  margin: 0 0 14px;
}

.ew-speaker__socials { display: flex; gap: 7px; margin-top: auto; }

.ew-speaker__social {
  width: 32px; height: 32px;
  border-radius: var(--ew-r-sm);
  background: var(--ew-teal-100);
  color: var(--ew-teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--ew-dur), color var(--ew-dur);
}
.ew-speaker__social:hover { background: var(--ew-teal-700); color: var(--ew-white); }

/* ── Event-Karte (Archiv) ────────────────────────────────────────── */
.ew-event-card {
  display: flex;
  flex-direction: column;
  background: var(--ew-white);
  border: 1px solid var(--ew-ink-200);
  border-radius: var(--ew-r-xl);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--ew-dur) var(--ew-ease), box-shadow var(--ew-dur), border-color var(--ew-dur);
}

.ew-event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ew-shadow-md);
  border-color: transparent;
}

.ew-event-card__head {
  background: linear-gradient(135deg, var(--ew-teal-800), var(--ew-teal-600));
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}

.ew-event-card--next .ew-event-card__head {
  background: linear-gradient(135deg, var(--ew-orange-500), var(--ew-orange));
}

.ew-event-card__head::after {
  content: '';
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  top: -60px; right: -40px;
}

.ew-event-card__month {
  font-family: var(--ew-f-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 1;
}
.ew-event-card--next .ew-event-card__month { color: rgba(14,42,42,0.6); }

.ew-event-card__year {
  font-family: var(--ew-f-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ew-white);
  line-height: 1;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}
.ew-event-card--next .ew-event-card__year { color: var(--ew-teal-900); }

.ew-event-card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }

.ew-event-card__title {
  font-family: var(--ew-f-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ew-teal-900);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  transition: color var(--ew-dur);
}
.ew-event-card:hover .ew-event-card__title { color: var(--ew-teal-600); }

.ew-event-card__meta {
  font-family: var(--ew-f-ui);
  font-size: 0.85rem;
  color: var(--ew-ink-500);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}

/* ── FAQ / Accordion ─────────────────────────────────────────────── */
.ew-faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-inline: auto; }

.ew-faq__item {
  background: var(--ew-white);
  border: 1px solid var(--ew-ink-200);
  border-radius: var(--ew-r-lg);
  overflow: hidden;
  transition: border-color var(--ew-dur);
}
.ew-faq__item[open] { border-color: var(--ew-teal-200); }

.ew-faq__q {
  font-family: var(--ew-f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ew-teal-900);
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--ew-dur);
}
.ew-faq__q::-webkit-details-marker { display: none; }
.ew-faq__q:hover { background: var(--ew-teal-50); }

.ew-faq__q::after {
  content: '+';
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ew-teal-100);
  color: var(--ew-teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform var(--ew-dur), background var(--ew-dur);
}
.ew-faq__item[open] .ew-faq__q::after {
  content: '−';
  background: var(--ew-orange);
  color: var(--ew-teal-900);
}

.ew-faq__a {
  padding: 0 22px 20px;
  font-family: var(--ew-f-ui);
  font-size: 0.92rem;
  color: var(--ew-ink-500);
  line-height: 1.7;
}

/* ── Event-CTA (Anmelde-Streifen) ────────────────────────────────── */
.ew-event-cta {
  background: var(--ew-teal-900);
  border-radius: var(--ew-r-xl);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ew-event-cta::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.1) 0%, transparent 70%);
  top: -100px; left: 50%;
  transform: translateX(-50%);
}

.ew-event-cta > * { position: relative; z-index: 1; }

.ew-event-cta h2 {
  font-family: var(--ew-f-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ew-white);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.ew-event-cta p {
  font-family: var(--ew-f-ui);
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 26px;
}

/* ── Responsive Event ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ew-session { grid-template-columns: 90px 1fr; }
  .ew-session__level { grid-column: 2; margin-top: 6px; }
  .ew-event-bar { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .ew-event-hero { padding-block: 48px 40px; }
  .ew-countdown__unit { min-width: 68px; padding: 12px 14px; }
  .ew-countdown__num { font-size: 1.6rem; }

  .ew-session { grid-template-columns: 1fr; gap: 10px; padding: 16px 18px; }
  .ew-session__time { display: flex; align-items: baseline; gap: 8px; }
  .ew-session__time small { margin-top: 0; }
  .ew-session__level { grid-column: 1; }

  .ew-event-bar { flex-direction: column; }
  .ew-event-cta { padding: 30px 22px; }
  .ew-tab { padding: 10px 14px; font-size: 0.88rem; }
}
