/* =============================================================================
   THE EYEMAKER – Design System & Frontend Styles
   Theme: eyemaker | Author: James Pocher
   Basis: Corporate Identity The Eyemaker GmbH
   Farben (modernisierte CI-Töne): Schwarz #000 · Weiss #FFF · Magenta #D9206B · Warm Grey #D8D6D2 · Anthrazit #17181B
   Schrift: Inter (Überschriften, Labels, Buttons, Navigation) + Helvetica Neue LT Condensed (Fliesstext), beide self-hosted woff2
   ============================================================================= */

/* ---------- 1. Fonts ------------------------------------------------------ */
@font-face { font-family: "Helvetica Neue LT"; src: url("../fonts/helvetica-neue-ltcn-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue LT"; src: url("../fonts/helvetica-neue-cn-400.woff2")   format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue LT"; src: url("../fonts/helvetica-neue-cno-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Helvetica Neue LT"; src: url("../fonts/helvetica-neue-mdcn-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue LT"; src: url("../fonts/helvetica-neue-bdcn-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- 2. Design Tokens --------------------------------------------- */
:root {
  /* Brand */
  --em-black: #000000;
  --em-white: #ffffff;
  --em-magenta: #d9206b;        /* modernisiertes CI-Magenta (Original #C2185B) */
  --em-magenta-dark: #b3165a;
  --em-magenta-soft: #fce7ef;
  --em-magenta-deep: #4a0b28;   /* dunkles Magenta für Bild-Overlays */
  --em-grey: #d8d6d2;          /* Warm Grey (CI) */
  --em-grey-light: #f4f3f1;
  --em-grey-dark: #b9b6b0;
  --em-anthracite: #17181b;     /* kühles Anthrazit (Original #1C1C1C) */

  /* Semantic (Light) */
  --em-bg: var(--em-white);
  --em-bg-alt: var(--em-grey-light);
  --em-surface: var(--em-white);
  --em-ink: var(--em-anthracite);
  --em-muted: #5f5c58;
  --em-line: #e4e2de;
  --em-line-strong: var(--em-grey);
  --em-accent: var(--em-magenta);
  --em-on-accent: var(--em-white);
  --em-dark-bg: var(--em-anthracite);
  --em-dark-ink: var(--em-grey-light);
  --em-shadow: 0 20px 60px -30px rgba(0,0,0,.35);

  /* Typography */
  --em-font: "Helvetica Neue LT", "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  --em-font-head: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --em-fs-body: 1.125rem;
  --em-fs-small: .9375rem;
  --em-fs-lead: clamp(1.1875rem, 1.1rem + .5vw, 1.4375rem);
  --em-fs-h1: clamp(2.5rem, 1.2rem + 4vw, 4.75rem);
  --em-fs-h2: clamp(1.875rem, 1.1rem + 2.3vw, 3rem);
  --em-fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --em-fs-h4: 1.125rem;
  --em-lh: 1.6;

  /* Spacing */
  --em-space-1: .5rem;
  --em-space-2: 1rem;
  --em-space-3: 1.5rem;
  --em-space-4: 2rem;
  --em-space-5: 3rem;
  --em-space-6: 4.5rem;
  --em-section: clamp(4rem, 3rem + 5vw, 8rem);
  --em-container: 76rem;
  --em-gutter: clamp(1.25rem, 4vw, 3rem);
  --em-radius: 4px;
  --em-radius-lg: 10px;

  /* Header */
  --em-header-h: 5.6rem;

  /* Motion */
  --em-ease: cubic-bezier(.22,.61,.36,1);
  --em-dur: .45s;

  color-scheme: light;
}

/* Dark mode (CI-Wunsch: Tag/Nacht-Umschaltung) */
[data-theme="dark"] {
  --em-bg: #0e0f11;
  --em-bg-alt: #151619;
  --em-surface: #17181b;
  --em-ink: #f4f3f1;
  --em-dark-ink: #f4f3f1;
  --em-muted: #a8a49e;
  --em-line: #2b2b2b;
  --em-line-strong: #3a3a3a;
  --em-grey-light: #17181b;
  --em-magenta-soft: #2c1220;
  --em-shadow: 0 20px 60px -30px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* ---------- 3. Reset / Base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--em-header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--em-font);
  font-size: var(--em-fs-body);
  line-height: var(--em-lh);
  color: var(--em-ink);
  background: var(--em-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s var(--em-ease), color .3s var(--em-ease);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--em-accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--em-font-head); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 .5em; color: var(--em-ink); text-wrap: balance; }
h1, .em-h1 { font-size: var(--em-fs-h1); }
h2, .em-h2 { font-size: var(--em-fs-h2); }
h3, .em-h3 { font-size: var(--em-fs-h3); line-height: 1.2; letter-spacing: -.02em; }
h4, .em-h4 { font-size: var(--em-fs-h4); line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
strong, b { font-weight: 700; }
em, i { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--em-line); margin: var(--em-space-5) 0; }
figure { margin: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--em-accent); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 1000; padding: .75rem 1rem; background: var(--em-accent); color: #fff; font-weight: 700; }
.skip-link:focus { top: 1rem; }
::selection { background: var(--em-magenta); color: #fff; }

/* ---------- 4. Layout ---------------------------------------------------- */
.em-container { width: 100%; max-width: var(--em-container); margin-inline: auto; padding-inline: var(--em-gutter); }
.em-container--narrow { max-width: 52rem; margin-inline: auto; } /* wird auch ohne .em-container verwendet – deshalb selbst zentrieren */
.em-container--wide { max-width: 90rem; }
.em-section { padding-block: var(--em-section); position: relative; }
.em-section--tight { padding-block: calc(var(--em-section) * .6); }
.em-section--grey { background: var(--em-bg-alt); }
.em-section--dark { background: var(--em-dark-bg); color: var(--em-dark-ink); }
.em-section--dark h1, .em-section--dark h2, .em-section--dark h3, .em-section--dark h4 { color: #fff; }
.em-section--magenta { background: var(--em-magenta); color: #fff; }
.em-section--magenta h1, .em-section--magenta h2, .em-section--magenta h3 { color: #fff; }
.em-section--line { border-top: 1px solid var(--em-line); }
.em-grid { display: grid; gap: var(--em-space-4); }
.em-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.em-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.em-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.em-split { display: grid; gap: var(--em-space-5); align-items: center; }
/* Text neben einem Info-Raster: beide Spalten oben bündig statt vertikal zentriert */
.em-split:has(> .em-split__media > .em-info-grid) { align-items: start; }
.em-split > .em-split__media > .em-info-grid { padding-top: 0; }
@media (min-width: 60rem) { .em-split { grid-template-columns: 1fr 1fr; gap: var(--em-space-6); } .em-split--40 { grid-template-columns: 2fr 3fr; } .em-split--60 { grid-template-columns: 3fr 2fr; } }
.em-stack > * + * { margin-top: var(--em-space-3); }
.em-center { text-align: center; }
.em-mw { max-width: 40rem; }
.em-mw--center { margin-inline: auto; }

/* Section header (eyebrow + title + lead) */
.em-section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.em-section-head--center { margin-inline: auto; text-align: center; }
.em-section-head .em-lead { margin-top: 1rem; }
.em-eyebrow {
  display: block;
  font-family: var(--em-font-head); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--em-accent); margin: 0 0 1rem;
}
.em-lead { font-size: var(--em-fs-lead); line-height: 1.45; color: var(--em-muted); font-weight: 300; }
.em-section--dark .em-lead, .em-section--magenta .em-lead { color: rgba(255,255,255,.78); }
.em-accent { color: var(--em-accent); }
.em-muted { color: var(--em-muted); }
.em-small { font-size: var(--em-fs-small); }

/* ---------- 5. Buttons --------------------------------------------------- */
.em-btn, .wp-block-button__link {
  --btn-bg: var(--em-anthracite); --btn-ink: #fff; --btn-border: var(--em-anthracite);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; min-height: 3.25rem;
  font-family: var(--em-font-head); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  color: var(--btn-ink) !important; background: var(--btn-bg); border: 1.5px solid var(--btn-border); border-radius: var(--em-radius);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--em-ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.em-btn:hover, .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); }
.em-btn:active, .wp-block-button__link:active { transform: translateY(0); }
.em-btn svg { width: 1.05em; height: 1.05em; flex: none; }
.em-btn--primary, .is-style-em-primary .wp-block-button__link, .wp-block-button__link { --btn-bg: var(--em-magenta); --btn-border: var(--em-magenta); }
.em-btn--primary:hover, .is-style-em-primary .wp-block-button__link:hover { --btn-bg: var(--em-magenta-dark); --btn-border: var(--em-magenta-dark); }
.em-btn--dark, .is-style-em-dark .wp-block-button__link { --btn-bg: var(--em-anthracite); --btn-border: var(--em-anthracite); }
[data-theme="dark"] .em-btn--dark, [data-theme="dark"] .is-style-em-dark .wp-block-button__link { --btn-bg: #fff; --btn-ink: #000; --btn-border: #fff; }
.em-btn--outline, .is-style-em-outline .wp-block-button__link { --btn-bg: transparent; --btn-ink: var(--em-ink); --btn-border: currentColor; }
.em-btn--outline:hover, .is-style-em-outline .wp-block-button__link:hover { --btn-bg: var(--em-ink); --btn-ink: var(--em-bg); }
:is(.em-section--dark, .em-section--magenta, .em-hero, .em-page-hero) :is(.em-btn--outline, .is-style-em-outline .wp-block-button__link) { --btn-ink: #fff; --btn-border: rgba(255,255,255,.6); }
:is(.em-section--dark, .em-section--magenta, .em-hero, .em-page-hero) :is(.em-btn--outline:hover, .is-style-em-outline .wp-block-button__link:hover) { --btn-bg: #fff; --btn-ink: var(--em-anthracite); --btn-border: #fff; }
.em-btn--white, .is-style-em-white .wp-block-button__link { --btn-bg: #fff; --btn-ink: var(--em-anthracite); --btn-border: #fff; }
.em-btn--white:hover, .is-style-em-white .wp-block-button__link:hover { --btn-bg: var(--em-grey-light); }
.em-btn--small { padding: .7rem 1.1rem; min-height: 2.6rem; font-size: .75rem; }
.em-btn--link, .is-style-em-link .wp-block-button__link { --btn-bg: transparent; --btn-border: transparent; --btn-ink: var(--em-accent); padding-inline: 0; min-height: auto; }
.em-btn--link:hover, .is-style-em-link .wp-block-button__link:hover { transform: none; box-shadow: none; text-decoration: underline; }
.em-btn--link::after, .is-style-em-link .wp-block-button__link::after { content: "→"; transition: transform .25s var(--em-ease); }
.em-btn--link:hover::after, .is-style-em-link .wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin: 1.5rem 0 0; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-button { margin: 0; }
.em-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.5rem; }
.em-actions--center { justify-content: center; }

/* ---------- 6. Header ---------------------------------------------------- */
.em-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--em-bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.em-header.is-scrolled { border-bottom-color: var(--em-line); box-shadow: 0 10px 30px -22px rgba(0,0,0,.35); }
.em-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--em-header-h); }
.em-header__logo { display: inline-flex; align-items: center; flex: none; }
.em-header__logo img, .em-header__logo svg { height: 3.4rem; width: auto; }
.em-header__logo .em-logo--dark { display: none; }
[data-theme="dark"] .em-header__logo .em-logo--light { display: none; }
[data-theme="dark"] .em-header__logo .em-logo--dark { display: block; }
.em-header__actions { display: flex; align-items: center; gap: .75rem; }
.em-header__cta { display: none; }
@media (min-width: 70rem) { .em-header__cta { display: inline-flex; } }

/* Primary nav */
.em-nav { display: none; }
@media (min-width: 70rem) { .em-nav { display: block; } }
.em-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.em-nav li { position: relative; margin: 0; }
.em-nav a {
  display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .7rem; white-space: nowrap;
  font-family: var(--em-font-head); font-size: .8125rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--em-ink);
  border-radius: var(--em-radius); transition: color .2s, background .2s;
}
.em-nav a:hover, .em-nav li.current-menu-item > a, .em-nav li.current-menu-ancestor > a, .em-nav li.current_page_parent > a { color: var(--em-accent); }
.em-nav li.current-menu-item > a::before, .em-nav li.current-menu-ancestor > a::before { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px; background: var(--em-accent); }
.em-nav .menu-item-has-children > a::after { content: ""; flex: none; width: .4em; height: .4em; margin-left: .15rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; border-radius: 0 0 1px 0; transform: translateY(-.12em) rotate(45deg); transition: transform .25s var(--em-ease); opacity: .8; }
.em-nav .menu-item-has-children:hover > a::after, .em-nav .menu-item-has-children:focus-within > a::after, .em-nav .menu-item-has-children.is-open > a::after { transform: translateY(.1em) rotate(-135deg); }
.em-nav .sub-menu {
  position: absolute; left: 0; top: calc(100% + .5rem); min-width: 16rem; padding: .6rem;
  flex-direction: column; align-items: stretch; gap: 0;
  background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius-lg); box-shadow: var(--em-shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--em-ease), visibility .2s;
}
.em-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
.em-nav li:hover > .sub-menu, .em-nav li:focus-within > .sub-menu, .em-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.em-nav .sub-menu a { display: block; padding: .6rem .8rem; text-transform: none; letter-spacing: -.01em; font-size: .9375rem; font-weight: 500; }
.em-nav .sub-menu a:hover { background: var(--em-bg-alt); }
.em-nav .sub-menu li.current-menu-item > a::before { display: none; }
.em-nav .sub-menu li.current-menu-item > a { color: var(--em-accent); }
.em-ext { width: .7em; height: .7em; opacity: .7; display: inline-block; vertical-align: baseline; margin-left: .15em; }

/* Burger */
.em-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 2.75rem; height: 2.75rem; padding: 0 .6rem;
  background: transparent; border: 1.5px solid var(--em-line-strong); border-radius: var(--em-radius); cursor: pointer;
}
.em-burger span { display: block; height: 2px; background: var(--em-ink); transition: transform .3s var(--em-ease), opacity .2s; transform-origin: center; }
.em-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.em-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.em-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 70rem) { .em-burger { display: none; } }

/* Theme toggle */
.em-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  background: transparent; border: 1.5px solid var(--em-line-strong); border-radius: var(--em-radius); color: var(--em-ink); cursor: pointer;
  transition: background .2s, color .2s;
}
.em-theme-toggle:hover { background: var(--em-bg-alt); }
.em-theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.em-theme-toggle .em-icon-moon { display: block; }
.em-theme-toggle .em-icon-sun { display: none; }
[data-theme="dark"] .em-theme-toggle .em-icon-moon { display: none; }
[data-theme="dark"] .em-theme-toggle .em-icon-sun { display: block; }

/* Mobile drawer */
.em-drawer {
  position: fixed; inset: var(--em-header-h) 0 0 0; z-index: 99; background: var(--em-bg);
  padding: var(--em-space-3) var(--em-gutter) var(--em-space-5); overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--em-ease), visibility .25s;
}
.em-drawer.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 70rem) { .em-drawer { display: none; } }
.em-drawer ul { list-style: none; margin: 0; padding: 0; }
.em-drawer > ul > li { border-bottom: 1px solid var(--em-line); margin: 0; }
.em-drawer nav a { display: block; padding: 1rem 0; font-family: var(--em-font-head); font-size: 1.375rem; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.em-drawer .sub-menu { padding: 0 0 .75rem 1rem; }
.em-drawer .menu-item-has-children > a[href="#"] { pointer-events: none; color: var(--em-muted); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; padding-bottom: .25rem; }
.em-nav .menu-item-has-children > a[href="#"] { cursor: default; }
.em-drawer nav .sub-menu a { font-size: 1.0625rem; font-weight: 500; padding: .5rem 0; color: var(--em-muted); }
.em-drawer .sub-menu a:hover { color: var(--em-accent); }
.em-drawer__cta { margin-top: var(--em-space-4); display: grid; gap: .75rem; }
.em-drawer__cta .em-btn { width: 100%; min-height: 3.25rem; font-size: .875rem; }
.em-drawer__cta .em-btn svg { width: .95em; height: .95em; }
.em-drawer__meta { margin-top: var(--em-space-4); color: var(--em-muted); font-size: var(--em-fs-small); }
.em-drawer__meta a { font-size: inherit; font-weight: 500; padding: .15rem 0; display: inline; text-decoration: none; }
body.em-drawer-open { overflow: hidden; }

/* ---------- 7. Hero (Home) ----------------------------------------------- */
.em-hero {
  position: relative; overflow: hidden; background: var(--em-anthracite); color: #fff;
  min-height: min(calc(100svh - var(--em-header-h)), 58rem); display: flex; align-items: center;
  padding-block: clamp(3rem, 6vw, 6rem);
}
.em-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 85% 30%, rgba(217,32,107,.55), transparent 60%), radial-gradient(40% 50% at 20% 90%, rgba(217,32,107,.18), transparent 60%);
  pointer-events: none;
}
.em-hero__grid { position: relative; display: grid; gap: var(--em-space-5); align-items: end; }
@media (min-width: 60rem) { .em-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }
.em-hero__eyebrow { color: #fff; opacity: .85; }
.em-hero__eyebrow::before { background: var(--em-magenta); }
.em-hero__title { color: #fff; font-size: var(--em-fs-h1); margin-bottom: 1.25rem; }
.em-hero__title .em-accent { color: #ff4d8d; color: color-mix(in srgb, var(--em-magenta) 70%, #fff); }
.em-hero__lead { color: rgba(255,255,255,.8); max-width: 34rem; }
.em-hero__actions { margin-top: 2rem; }
.em-hero__meta { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); font-size: var(--em-fs-small); color: rgba(255,255,255,.7); }
.em-hero__meta strong { display: block; color: #fff; font-family: var(--em-font-head); font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; }
.em-hero__media { position: relative; }
.em-hero__media img { width: 100%; max-width: 30rem; margin-inline: auto; border-radius: var(--em-radius-lg); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.em-hero__media::after {
  content: ""; position: absolute; inset: auto -1rem -1rem auto; width: 45%; height: 45%;
  border: 2px solid var(--em-magenta); border-radius: var(--em-radius-lg); z-index: -1; opacity: .8;
}
.em-hero__badge {
  position: absolute; left: -.5rem; bottom: 2rem; background: #fff; color: var(--em-anthracite);
  padding: .9rem 1.1rem; border-radius: var(--em-radius); box-shadow: var(--em-shadow); max-width: 15rem; font-size: var(--em-fs-small); line-height: 1.35;
}
.em-hero__badge strong { display: block; font-family: var(--em-font-head); font-size: .9375rem; font-weight: 600; }
@media (min-width: 60rem) { .em-hero__badge { left: -2rem; } }

/* ---------- 8. Page hero (Unterseiten) ----------------------------------- */
.em-page-hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 6vw, 6.5rem) clamp(2.5rem, 5vw, 5rem); background: #2a0616; color: #fff; border: 0; }
.em-page-hero h1 { color: #fff; }
.em-page-hero .em-lead { color: rgba(255,255,255,.82); }
.em-page-hero .em-eyebrow { color: #ffb3cf; }
.em-page-hero > .em-container { position: relative; z-index: 2; }
.em-page-hero .is-style-em-primary .wp-block-button__link, .em-page-hero .em-btn--primary { --btn-bg: #fff; --btn-ink: var(--em-magenta-deep); --btn-border: #fff; }
.em-page-hero .is-style-em-primary .wp-block-button__link:hover, .em-page-hero .em-btn--primary:hover { --btn-bg: #ffe4ee; --btn-border: #ffe4ee; }
.em-page-hero--dark { background: #2a0616; }
/* Hero mit Headerbild: Bild vollflächig, dunkler Verlauf, weisser Text */
.em-page-hero--image { min-height: min(62vh, 40rem); display: flex; align-items: flex-end; padding-block: clamp(4rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4.5rem); }
.em-page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; filter: saturate(.6) contrast(1.05); mix-blend-mode: luminosity; opacity: .9; }
/* Overlay 1 (alle Seiten-Heros, mit und ohne Foto): Verlauf tiefes Magenta → Magenta, dunkler aber durchlässiger */
.em-page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34,4,18,.78) 0%, rgba(52,7,28,.62) 40%, rgba(105,15,58,.4) 75%, rgba(190,28,94,.3) 100%),
    linear-gradient(200deg, rgba(217,32,107,.22) 0%, rgba(52,7,28,0) 45%),
    linear-gradient(0deg, rgba(26,3,14,.7) 0%, rgba(26,3,14,0) 50%);
}
/* Overlay 2: Farbton + feines Grain (SVG-Rauschen, keine Bilddatei) */
.em-page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-color: var(--em-magenta-deep);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px; mix-blend-mode: soft-light; opacity: .85;
}
/* Ohne Foto: der Verlauf selbst ist der Hintergrund – Tiefe über zwei weiche Lichtflecken */
.em-page-hero:not(.em-page-hero--image) { background: radial-gradient(70% 90% at 90% 10%, rgba(217,32,107,.45), transparent 60%), radial-gradient(50% 70% at 10% 100%, rgba(120,18,66,.5), transparent 60%), #2a0616; }
.em-page-hero__grid { display: grid; gap: var(--em-space-4); align-items: end; }
@media (min-width: 60rem) { .em-page-hero__grid { grid-template-columns: 3fr 2fr; } }
.em-page-hero h1 { max-width: 16ch; }
.em-page-hero .em-lead { max-width: 36rem; }
.em-breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: var(--em-fs-small); color: var(--em-muted); }
.em-breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.em-breadcrumb a { text-decoration: none; }

/* ---------- 9. Cards ----------------------------------------------------- */
.em-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.em-card {
  position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 2rem 1.75rem 1.75rem;
  background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius-lg);
  transition: transform .35s var(--em-ease), box-shadow .35s var(--em-ease), border-color .3s;
}
.em-card:hover { transform: translateY(-4px); box-shadow: var(--em-shadow); border-color: var(--em-line-strong); }
.em-card--grey { background: var(--em-bg-alt); border-color: transparent; }
.em-card__num { font-family: var(--em-font-head); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--em-accent); margin: 0; }
.em-card:not(:has(.em-card__icon)) > .em-card__num { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--em-magenta); color: #fff; font-size: .8125rem; letter-spacing: .06em; }
.em-card__icon { width: 3.25rem; height: 3.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--em-magenta-soft); color: var(--em-magenta); }
.em-card__icon svg { width: 1.5rem; height: 1.5rem; }
.em-card h3 { font-size: 1.25rem; margin: 0; }
/* Gleiche Höhen im Raster: Titel reservieren immer zwei Zeilen, damit Listen/Texte in allen Karten auf derselben Höhe beginnen */
.em-cards .em-card h3 { min-height: 2.4em; hyphens: manual; overflow-wrap: break-word; } /* keine automatische Silbentrennung – Umbrüche nur an Wortgrenzen, <br> oder &shy; */
h1, h2, h3 { hyphens: manual; overflow-wrap: break-word; }
.em-card__front .wp-block-button__link:focus:not(:focus-visible), .em-card__back .wp-block-button__link:focus:not(:focus-visible) { outline: none; }
.em-cards .em-card p:not(.em-card__num) { min-height: 0; }
.em-card p { margin: 0; color: var(--em-muted); }
.em-card ul { margin: 0; padding: 0; list-style: none; color: var(--em-muted); }
.em-card li { padding-left: 1.5rem; position: relative; margin-bottom: .4rem; }
.em-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .45rem; border-left: 2px solid var(--em-magenta); border-bottom: 2px solid var(--em-magenta); transform: rotate(-45deg); }
.em-card__link { margin-top: auto; padding-top: .5rem; }
.em-card--link { text-decoration: none; }
.em-card--link:hover { color: inherit; }
.em-card--link:hover .em-btn--link { text-decoration: underline; }
.em-cards--accent .em-card { border-top: 3px solid var(--em-magenta); }

/* Flip cards (Dienstleistungen): Vorderseite hell, Rückseite Magenta */
.em-card--flip { padding: 0; border: 0; background: transparent; perspective: 1400px; overflow: visible; }
.em-card--flip:hover { transform: none; box-shadow: none; }
.em-card__inner { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; height: 100%; transform-style: preserve-3d; transition: transform .75s var(--em-ease); }
.em-card--flip.is-flipped .em-card__inner { transform: rotateY(180deg); }
.em-card__front, .em-card__back { grid-area: 1 / 1; min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 1rem; padding: 2rem 1.75rem 1.75rem; border-radius: var(--em-radius-lg); -webkit-backface-visibility: hidden; backface-visibility: hidden; min-height: 100%; }
.em-card .wp-block-button__link, .em-card .em-btn { white-space: normal; text-align: center; }
.em-card__front { background: var(--em-surface); border: 1px solid var(--em-line); transition: transform .35s var(--em-ease), box-shadow .35s var(--em-ease); }
.em-card--flip:not(.is-flipped):hover .em-card__front { transform: translateY(-4px); box-shadow: var(--em-shadow); }
.em-card__back { background: var(--em-magenta); color: #fff; transform: rotateY(180deg); }
.em-card__back h3, .em-card__back p { color: #fff; }
.em-card__back p.em-card__num { color: rgba(255,255,255,.75); }
.em-card__back p { font-size: 1rem; line-height: 1.55; }
.em-card__back .wp-block-buttons, .em-card__back .em-actions { margin-top: auto; padding-top: .5rem; gap: .5rem 1.25rem; }
.em-card__back .is-style-em-link .wp-block-button__link, .em-card__back .em-btn--link { --btn-ink: #fff; }
.em-card__back .is-style-em-white .wp-block-button__link, .em-card__back .em-btn--white { --btn-bg: #fff; --btn-ink: var(--em-magenta); --btn-border: #fff; }
.em-card__front .em-card__link { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .em-card__inner { transition: none; } }

/* Check list */
.em-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.em-checks li { position: relative; padding-left: 2rem; margin: 0; }
.em-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--em-magenta-soft); }
.em-checks li::after { content: ""; position: absolute; left: .38rem; top: .5em; width: .5rem; height: .28rem; border-left: 2px solid var(--em-magenta); border-bottom: 2px solid var(--em-magenta); transform: rotate(-45deg); }
.em-checks--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); column-gap: 2rem; }

/* ---------- 10. Stats (schlichte Boxen) ---------------------------------- */
.em-stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) { .em-stats { grid-template-columns: repeat(4, 1fr); } }
.em-stat { padding: 2.25rem 1.5rem; text-align: center; background: var(--em-bg-alt); border: 1px solid var(--em-line); border-radius: var(--em-radius-lg); }
.em-section--grey .em-stat { background: var(--em-surface); }
.em-stat__value { font-family: var(--em-font-head); font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--em-ink); margin: 0 0 .6rem; }
.em-stat__label { margin: 0; color: var(--em-muted); font-size: .9375rem; }
.em-section--dark .em-card--grey { color: var(--em-ink); }
.em-section--dark .em-card--grey :is(h2, h3, h4) { color: var(--em-ink); }
.em-section--dark .em-card--grey p { color: var(--em-muted); }
.em-section--dark .em-btn--dark, .em-section--dark .is-style-em-dark .wp-block-button__link { --btn-bg: var(--em-magenta); --btn-border: var(--em-magenta); --btn-ink: #fff; }
.em-section--dark .em-stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.em-section--dark .em-stat__value { color: #fff; }
.em-section--dark .em-stat__label { color: rgba(255,255,255,.7); }

/* Fakten-Leiste (Dauer, Termin, Krankenkasse, Sprachen) – gleiche Boxen wie Kennzahlen, kleinere Werte */
.em-facts { margin-top: 0; }
.em-facts .em-stat { padding: 1.5rem 1.25rem; }
.em-facts .em-stat__value { font-size: 1.125rem; letter-spacing: -.01em; line-height: 1.25; margin-bottom: .35rem; }
.em-facts .em-stat__label { font-size: .875rem; }
.em-facts-section { padding-block: 0 !important; margin-top: -2.25rem; position: relative; z-index: 3; }
.em-page-hero:has(+ .em-facts-section) { padding-bottom: calc(clamp(2.5rem, 5vw, 4.5rem) + 3.5rem); }
@media (max-width: 47.99rem) { .em-page-hero:has(+ .em-facts-section) { padding-bottom: 4.5rem; } .em-facts-section { margin-top: -1.75rem; } .em-page-hero .em-lead { font-size: 1.0625rem; } .em-page-hero__grid { gap: 1.25rem; } .em-page-hero h1 { margin-bottom: 0; } }
.em-facts-section + .em-section { padding-top: calc(var(--em-section) * .75); }

/* Mobile Aktionsleiste: Termin + Anrufen immer erreichbar */
.em-mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem var(--em-gutter) calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--em-bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--em-line); }
.em-mobile-bar .em-btn { min-height: 2.9rem; padding-inline: .75rem; }
@media (min-width: 70rem) { .em-mobile-bar { display: none; } }
@media (max-width: 69.99rem) { body { padding-bottom: 4.6rem; } .em-back-top { bottom: 5.25rem; } }
body.em-drawer-open .em-mobile-bar { display: none; }

/* ---------- 11. Process / Steps ------------------------------------------ */
.em-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 60rem) { .em-steps { grid-template-columns: repeat(5, 1fr); gap: 1rem; } .em-steps--4 { grid-template-columns: repeat(4, 1fr); } .em-steps--3, .em-steps--6 { grid-template-columns: repeat(3, 1fr); } }
.em-step { position: relative; padding: 1.5rem 1.5rem 1.5rem; background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius-lg); margin: 0; }
.em-section--dark .em-step { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.em-step__num { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--em-magenta); color: #fff; font-family: var(--em-font-head); font-weight: 600; font-size: .875rem; margin-bottom: 1.9rem; }
.em-step h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.em-steps .em-step h3 { min-height: 2.4em; }
.em-step p { margin: 0; color: var(--em-muted); font-size: 1rem; }
.em-step p.em-step__num, .em-timeline p.em-timeline__num { color: #fff; margin-bottom: 1.9rem; }
.em-section--dark .em-step p { color: rgba(255,255,255,.72); }
/* Timeline variant */
.em-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.em-timeline li { position: relative; padding: 0 0 2rem 3.5rem; margin: 0; }
.em-timeline li::before { content: ""; position: absolute; left: 1.05rem; top: 2.4rem; bottom: 0; width: 2px; background: var(--em-line-strong); }
.em-timeline li:last-child::before { display: none; }
.em-timeline__num { position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--em-magenta); color: #fff; font-family: var(--em-font-head); font-weight: 600; display: grid; place-items: center; font-size: .8125rem; }
.em-timeline h3 { font-size: 1.125rem; margin-bottom: .35rem; padding-top: .2rem; }
.em-timeline p { margin: 0; color: var(--em-muted); }

/* ---------- 12. Media / About -------------------------------------------- */
.em-media { position: relative; }
.em-media img { border-radius: var(--em-radius-lg); width: 100%; object-fit: cover; }
.em-media--frame::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 2px solid var(--em-magenta); border-radius: var(--em-radius-lg); z-index: -1; }
.em-media--portrait img { aspect-ratio: 4 / 5; }
.em-media--square { max-width: 22rem; margin-inline: auto; }
.em-media--square img { aspect-ratio: 1 / 1; }
.em-media__caption { position: absolute; left: 1.25rem; bottom: 1.25rem; background: var(--em-surface); color: var(--em-ink); padding: .8rem 1rem; border-radius: var(--em-radius); box-shadow: var(--em-shadow); font-size: var(--em-fs-small); line-height: 1.3; }
.em-media__caption strong { display: block; font-family: var(--em-font-head); font-size: .9375rem; font-weight: 600; }
.em-quote { font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem); font-weight: 300; line-height: 1.3; margin: 0; padding-left: 1.5rem; border-left: 3px solid var(--em-magenta); }
.em-quote cite { display: block; font-style: normal; font-size: 1rem; font-weight: 700; margin-top: 1rem; color: var(--em-muted); }
/* Placeholder for images not yet delivered */
.em-placeholder {
  display: grid; place-items: center; text-align: center; padding: 2rem; aspect-ratio: 4 / 3; border-radius: var(--em-radius-lg);
  background: linear-gradient(135deg, var(--em-grey) 0%, var(--em-grey-light) 100%); color: var(--em-muted); font-size: var(--em-fs-small); letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  border: 1px dashed var(--em-grey-dark);
}
.em-placeholder--portrait { aspect-ratio: 4 / 5; }
.em-placeholder--wide { aspect-ratio: 16 / 9; }
.em-placeholder svg { width: 3rem; height: 3rem; opacity: .5; margin-bottom: .75rem; }

/* ---------- 13. Logo marquee --------------------------------------------- */
.em-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.em-marquee__track { display: flex; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); width: max-content; animation: em-marquee 150s linear infinite; /* bewusst langsam – ruhig, hochwertig */ padding-block: .5rem; }
.em-marquee:hover .em-marquee__track { animation-play-state: paused; }
.em-marquee__item { flex: none; display: grid; place-items: center; height: 3.5rem; }
.em-marquee__item img { max-height: 3.25rem; width: auto; max-width: 9rem; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.em-marquee__item:hover img { filter: none; opacity: 1; }
[data-theme="dark"] .em-marquee__item img { filter: grayscale(1) invert(1) brightness(1.4); }
[data-theme="dark"] .em-marquee__item:hover img { filter: invert(1) brightness(1.4); }
@keyframes em-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .em-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .em-marquee { mask-image: none; -webkit-mask-image: none; } }
.em-logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1.5rem 2rem; align-items: center; }
.em-logo-grid img { max-height: 3rem; width: auto; margin-inline: auto; filter: grayscale(1); opacity: .7; }

/* «Die Gründerin»: Foto links, Textkarte rechts – Layout nach Vorlage der Kundin */
.em-about { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 60rem) { .em-about { grid-template-columns: 2fr 3fr; gap: 1.5rem; } }
.em-about__media { position: relative; height: 100%; min-height: 20rem; border-radius: var(--em-radius-lg); overflow: hidden; }
.em-about__media img { width: 100%; height: 100%; min-height: 20rem; object-fit: cover; object-position: center 20%; border-radius: 0; display: block; }
.em-about__card { display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
  padding: clamp(1.75rem, 3.5vw, 3rem); background: var(--em-surface); border: 1px solid var(--em-line);
  border-radius: var(--em-radius-lg); box-shadow: var(--em-shadow); }
.em-about__card > * { margin: 0; }
.em-about__card h2 { max-width: 20ch; }
.em-about__card p { color: var(--em-muted); }
.em-about__card .em-lead { color: var(--em-ink); }
.em-about__card .wp-block-buttons, .em-about__card .em-actions { margin-top: .6rem; }
.em-chip { align-self: flex-start; display: inline-block; padding: .5rem .9rem; border-radius: var(--em-radius);
  background: var(--em-magenta); color: #fff !important;
  font-family: var(--em-font-head); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }

/* ---------- 14. CTA band ------------------------------------------------- */
/* Bewusst schlichtes Grau: der Footer darunter trägt den Magenta-Verlauf,
   zwei Verläufe direkt hintereinander wären zu viel. */
.em-cta { position: relative; overflow: hidden; color: var(--em-ink); background: #eceae5; border-top: 1px solid var(--em-line); }
[data-theme="dark"] .em-cta { background: #1b1c20; }
.em-cta__grid { position: relative; z-index: 2; display: grid; gap: var(--em-space-4); align-items: center; }
@media (min-width: 60rem) { .em-cta__grid { grid-template-columns: 3fr 2fr; } }
.em-cta h2 { color: var(--em-ink); max-width: 18ch; }
.em-cta .em-eyebrow { color: var(--em-accent); }
.em-cta .em-lead { color: var(--em-muted); }
.em-cta__card { background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius-lg); padding: 1.75rem; box-shadow: var(--em-shadow); }
.em-cta__card h3 { color: var(--em-ink); font-size: 1.25rem; }
.em-cta__card ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .5rem; }
.em-cta__card li { padding-left: 1.6rem; position: relative; color: var(--em-muted); }
.em-cta__card li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--em-magenta); }
.em-cta__contact { display: grid; gap: .35rem; margin-top: 1.25rem; font-size: var(--em-fs-small); color: var(--em-muted); }
.em-cta__contact a { color: var(--em-ink); font-weight: 700; text-decoration: none; }
.em-cta__contact a:hover { color: var(--em-magenta); text-decoration: underline; }
/* Die Inhalte nutzen «white»-Buttons – auf Grau als Magenta-Button ausgeben */
.em-cta :is(.em-btn--white, .is-style-em-white .wp-block-button__link) { --btn-bg: var(--em-magenta); --btn-ink: #fff; --btn-border: var(--em-magenta); }
.em-cta :is(.em-btn--white:hover, .is-style-em-white .wp-block-button__link:hover) { --btn-bg: var(--em-magenta-dark); --btn-border: var(--em-magenta-dark); }

/* ---------- 15. FAQ (details) -------------------------------------------- */
.em-faq { display: grid; gap: .75rem; }
.em-faq details, .em-faq .wp-block-details { border: 1px solid var(--em-line); border-radius: var(--em-radius-lg); background: var(--em-surface); padding: 0; overflow: hidden; margin: 0; }
.em-faq details[open] { border-color: var(--em-magenta); }
.em-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; font-family: var(--em-font-head); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.em-faq summary::-webkit-details-marker { display: none; }
.em-faq summary::after { content: ""; flex: none; width: .55rem; height: .55rem; border-right: 2px solid var(--em-magenta); border-bottom: 2px solid var(--em-magenta); transform: rotate(45deg); transition: transform .3s var(--em-ease); margin-right: .25rem; }
.em-faq details[open] summary::after { transform: rotate(-135deg); }
.em-faq details > :not(summary) { padding: 0 1.35rem; color: var(--em-muted); }
.em-faq details > :last-child { padding-bottom: 1.25rem; }
.em-faq details > p:first-of-type { margin-top: 0; }

/* ---------- 16. Prose (long text sections) ------------------------------- */
.em-prose { max-width: 46rem; }
.em-prose h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); margin-top: 2.5rem; }
.em-prose h2:first-child { margin-top: 0; }
.em-prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.em-prose h4 { margin-top: 1.5rem; }
.em-prose p, .em-prose li { color: var(--em-ink); }
.em-prose p.em-eyebrow { color: var(--em-accent); }
.em-prose ul { padding-left: 0; list-style: none; }
.em-prose ul li { position: relative; padding-left: 1.5rem; }
.em-prose ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--em-magenta); }
.em-prose ol { padding-left: 1.4rem; }
.em-prose a { color: var(--em-accent); }
.em-prose--wide { max-width: none; }
.em-note { padding: 1.25rem 1.5rem; border-left: 3px solid var(--em-magenta); background: var(--em-magenta-soft); border-radius: 0 var(--em-radius) var(--em-radius) 0; margin: 1.5rem 0; }
.em-note p:last-child { margin-bottom: 0; }
.em-note strong:first-child { display: block; margin-bottom: .25rem; }

/* Sticky sub-nav for long pages */
.em-subnav { position: sticky; top: var(--em-header-h); z-index: 50; background: color-mix(in srgb, var(--em-bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--em-line); }
.em-subnav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: .5rem 0; overflow-x: auto; scrollbar-width: none; }
.em-subnav ul::-webkit-scrollbar { display: none; }
.em-subnav li { margin: 0; flex: none; }
.em-subnav a { display: block; padding: .5rem .85rem; font-family: var(--em-font-head); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-radius: 99px; color: var(--em-muted); }
.em-subnav a:hover, .em-subnav a.is-active { background: var(--em-anthracite); color: #fff; }
[data-theme="dark"] .em-subnav a:hover, [data-theme="dark"] .em-subnav a.is-active { background: #fff; color: #000; }

/* Two-column info blocks (Definition / Symptome / Korrektur) */
.em-info-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.em-info { padding: 1.5rem; background: var(--em-bg-alt); border-radius: var(--em-radius-lg); }
.em-info h4 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--em-accent); margin-bottom: .75rem; }
.em-info ul { margin: 0; padding: 0; list-style: none; }
.em-info li { padding-left: 1.1rem; position: relative; font-size: 1rem; }
.em-info li::before { content: ""; position: absolute; left: 0; top: .65em; width: .35rem; height: .35rem; border-radius: 50%; background: var(--em-magenta); }
.em-info p { margin: 0; font-size: 1rem; }

/* ---------- 17. Tables --------------------------------------------------- */
.em-table-wrap { overflow-x: auto; border: 1px solid var(--em-line); border-radius: var(--em-radius-lg); }
.em-table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.em-table th, .wp-block-table th { text-align: left; background: var(--em-anthracite); color: #fff; padding: 1rem 1.25rem; font-family: var(--em-font-head); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.em-table td, .wp-block-table td { padding: 1rem 1.25rem; border-top: 1px solid var(--em-line); vertical-align: top; }
.em-table tr:nth-child(even) td { background: var(--em-bg-alt); }
.em-table td:first-child { font-weight: 700; }

/* ---------- 18. Tips / numbered list ------------------------------------- */
.em-tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); counter-reset: tip; }
.em-tips li { counter-increment: tip; position: relative; padding: 1.25rem 1.25rem 1.25rem 4rem; background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius-lg); margin: 0; }
.em-tips li::before { content: counter(tip, decimal-leading-zero); position: absolute; left: 1.25rem; top: 1.25rem; font-family: var(--em-font-head); font-weight: 700; color: var(--em-accent); font-size: 1.0625rem; letter-spacing: -.02em; }
.em-tips strong { display: block; margin-bottom: .2rem; font-family: var(--em-font-head); font-weight: 600; font-size: 1rem; }

/* ---------- 19. Contact -------------------------------------------------- */
.em-contact { display: grid; gap: var(--em-space-5); }
@media (min-width: 60rem) { .em-contact { grid-template-columns: 2fr 3fr; gap: var(--em-space-6); } }
.em-contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.em-contact__list li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; margin: 0; }
.em-contact__list svg { width: 2.75rem; height: 2.75rem; padding: .7rem; border-radius: 50%; background: var(--em-magenta-soft); color: var(--em-magenta); }
.em-contact__list strong { display: block; font-family: var(--em-font-head); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--em-muted); margin-bottom: .2rem; }
.em-contact__list a { text-decoration: none; font-weight: 500; }
.em-contact__list a:hover { text-decoration: underline; }
.em-contact__list small { display: block; margin-top: .2rem; font-size: var(--em-fs-small); color: var(--em-muted); }
.em-hours { display: grid; grid-template-columns: max-content max-content; gap: .3rem 1rem; margin: 0; }
.em-hours dt { font-weight: 700; }
.em-hero__title { letter-spacing: -.035em; }
.em-hours dd { margin: 0; }
.em-map { border-radius: var(--em-radius-lg); overflow: hidden; border: 1px solid var(--em-line); aspect-ratio: 16 / 9; background: var(--em-bg-alt); }
@media (max-width: 47.99rem) { .em-map { aspect-ratio: 4 / 3; } } /* Mobil höher, sonst ist der Ausschnitt zu flach */
.em-map { position: relative; }
.em-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* Desktop: Karte 150 % breit und nach links geschoben – der Pin sitzt links, rechts ist Platz für Hardbrücke, Schiffbau und Prime Tower.
   Der Embed lässt sich nicht dezentrieren, deshalb dieser Weg. Google-Logo und Attribution bleiben sichtbar. */
@media (min-width: 48rem) { .em-map iframe { left: -50%; width: 150%; } }
.em-map__consent { display: grid; place-items: center; text-align: center; height: 100%; padding: 2rem; gap: .5rem; }
.em-directions { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.em-directions div { padding: 1.25rem; background: var(--em-bg-alt); border-radius: var(--em-radius-lg); }
.em-section--grey .em-directions div { background: var(--em-surface); border: 1px solid var(--em-line); } /* auf grauem Abschnitt sonst unsichtbar (Kontaktseite) */
.em-directions strong { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; font-family: var(--em-font-head); font-weight: 600; font-size: 1rem; }
.em-directions svg { width: 1.25rem; height: 1.25rem; color: var(--em-magenta); }
.em-directions p { margin: 0; font-size: 1rem; color: var(--em-muted); }

/* Form */
.em-form { display: grid; gap: 1rem; padding: 2rem; background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius-lg); }
@media (min-width: 40rem) { .em-form { grid-template-columns: 1fr 1fr; } .em-form .em-form__full { grid-column: 1 / -1; } }
.em-form label { display: grid; gap: .35rem; font-family: var(--em-font-head); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--em-muted); }
.em-form input, .em-form textarea, .em-form select {
  width: 100%; font: inherit; font-size: 1.0625rem; letter-spacing: 0; text-transform: none; color: var(--em-ink);
  padding: .85rem 1rem; background: var(--em-bg); border: 1.5px solid var(--em-line-strong); border-radius: var(--em-radius);
  transition: border-color .2s, box-shadow .2s;
}
.em-form input:focus, .em-form textarea:focus, .em-form select:focus { outline: none; border-color: var(--em-magenta); box-shadow: 0 0 0 3px rgba(217,32,107,.15); }
.em-form textarea { min-height: 9rem; resize: vertical; }
.em-form__consent { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--em-fs-small); text-transform: none; letter-spacing: 0; font-weight: 400; }
.em-form__consent input { width: 1.1rem; height: 1.1rem; margin-top: .25rem; flex: none; accent-color: var(--em-magenta); }
.em-form__hp { position: absolute; left: -9999px; }
.em-form__hint { font-size: .8125rem; color: var(--em-muted); text-transform: none; letter-spacing: 0; font-weight: 400; font-family: var(--em-font); margin: 0; }
.em-form__msg { padding: 1rem 1.25rem; border-radius: var(--em-radius); font-weight: 500; }
.em-form__msg--ok { background: #e7f6ec; color: #1b5e34; }
.em-form__msg--err { background: var(--em-magenta-soft); color: var(--em-magenta-dark); }
.wpcf7 .wpcf7-form { display: grid; gap: 1rem; }

/* ---------- 20. Footer --------------------------------------------------- */
/* Footer: derselbe Magenta-Verlauf + Grain wie Hero und CTA */
.em-footer { position: relative; isolation: isolate; overflow: hidden; color: rgba(255,255,255,.78); padding-top: var(--em-section);
  background: radial-gradient(75% 70% at 88% 100%, rgba(217,32,107,.45), transparent 62%), radial-gradient(60% 65% at 4% 55%, rgba(120,18,66,.5), transparent 62%), #220412; }
/* Oben dunkel, damit der Übergang vom CTA-Band weich bleibt */
.em-footer::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16,2,9,.8) 0%, rgba(16,2,9,.3) 20%, rgba(16,2,9,0) 45%),
    linear-gradient(160deg, rgba(217,32,107,.16) 0%, rgba(52,7,28,0) 55%); }
.em-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--em-magenta-deep);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px; mix-blend-mode: soft-light; opacity: .8; }
[data-theme="dark"] .em-footer { background: radial-gradient(75% 70% at 88% 100%, rgba(217,32,107,.34), transparent 62%), radial-gradient(60% 65% at 4% 55%, rgba(120,18,66,.42), transparent 62%), #16030c; }
.em-footer a { color: #fff; text-decoration: none; }
.em-footer a:hover { color: color-mix(in srgb, var(--em-magenta) 70%, #fff); }
.em-footer__grid { display: grid; gap: var(--em-space-5); }
@media (min-width: 48rem) { .em-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .em-footer__grid { grid-template-columns: 2fr 1fr 1.2fr 1fr; gap: var(--em-space-4); } }
.em-footer__brand img { height: 3.25rem; width: auto; margin-bottom: 1.25rem; }
.em-footer__brand p { max-width: 30rem; }
.em-footer h4 { color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.25rem; }
/* Mehrspaltig: Überschriften reservieren zwei Zeilen, damit die Inhalte aller Spalten auf gleicher Höhe beginnen */
@media (min-width: 48rem) { .em-footer__grid h4 { min-height: 2.6em; line-height: 1.3; display: flex; align-items: flex-end; } }
.em-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.em-footer li { margin: 0; }
.em-footer__contact li { display: flex; gap: .75rem; align-items: flex-start; }
.em-footer__contact svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: .2rem; color: var(--em-magenta); color: color-mix(in srgb, var(--em-magenta) 70%, #fff); }
.em-footer__social { display: flex; gap: .6rem; }
.em-footer__social a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; transition: border-color .2s, background .2s; }
.em-footer__social a:hover { border-color: var(--em-magenta); background: var(--em-magenta); color: #fff; }
.em-footer__social svg { width: 1.1rem; height: 1.1rem; }
.em-footer__bottom { margin-top: var(--em-space-6); padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .875rem; color: rgba(255,255,255,.55); }
.em-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.em-footer__bottom a { color: rgba(255,255,255,.7); }
.em-footer__partner { padding-block: var(--em-space-5); margin-bottom: var(--em-space-6); background: transparent; border-top: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.em-footer__partner .em-eyebrow { color: rgba(255,255,255,.6); margin-bottom: 1.5rem; }
/* Der Marquee-Track ist wegen Maske/Transform eine eigene Blend-Gruppe – deshalb blendet der
   ganze Streifen, nicht das einzelne Bild. So verschwinden die invertierten weissen
   Logo-Hintergründe im Verlauf, statt als dunkle Kästchen stehen zu bleiben. */
.em-footer__partner .em-marquee { mix-blend-mode: lighten; }
.em-footer__partner .em-marquee__item img { filter: grayscale(1) invert(1) brightness(1.9); opacity: .95; }
.em-footer__partner .em-marquee__item:hover img { opacity: 1; }

/* ---------- 21. Utilities & motion --------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--em-ease), transform .7s var(--em-ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }
.em-divider { height: 1px; background: var(--em-line); }
.em-pill { display: inline-block; padding: .3rem .7rem; border-radius: 99px; background: var(--em-magenta-soft); color: var(--em-magenta); font-family: var(--em-font-head); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.em-back-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--em-anthracite); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s; box-shadow: var(--em-shadow); }
.em-back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.em-back-top svg { width: 1rem; height: 1rem; }

/* WordPress core compat */
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.alignwide { max-width: 90rem; margin-inline: auto; }
.wp-block-image img { border-radius: var(--em-radius-lg); }
.wp-block-image figcaption { font-size: var(--em-fs-small); color: var(--em-muted); margin-top: .5rem; }
.wp-block-separator { border: 0; border-top: 1px solid var(--em-line); margin: var(--em-space-5) auto; }
.wp-block-quote { border-left: 3px solid var(--em-magenta); padding-left: 1.5rem; margin: 2rem 0; font-size: 1.25rem; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: var(--em-space-4); }
.wp-block-column { flex: 1 1 0; min-width: min(100%, 16rem); }
.wp-block-embed iframe { max-width: 100%; }
.entry-content > .em-section:first-child.em-page-hero { margin-top: 0; }
/* default page content when no patterns are used */
.em-entry { padding-block: var(--em-section); }
.em-entry .entry-title { margin-bottom: 1.5rem; }
.em-entry > .em-container { max-width: 52rem; }
.em-post-meta { color: var(--em-muted); font-size: var(--em-fs-small); margin-bottom: 1rem; }
.em-archive { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.em-pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--em-space-5); }
.em-pagination .page-numbers { padding: .55rem .9rem; border: 1px solid var(--em-line-strong); border-radius: var(--em-radius); text-decoration: none; }
.em-pagination .page-numbers.current { background: var(--em-anthracite); color: #fff; border-color: var(--em-anthracite); }

/* Print */
@media print { .em-header, .em-footer, .em-back-top, .em-theme-toggle, .em-burger, .em-drawer, .em-cta { display: none !important; } body { color: #000; background: #fff; } }
