/*
Theme Name: Man-Can-Doo
Theme URI: https://man-can-doo.de
Author: bipulse.studio
Author URI: https://bipulse.studio
Description: Eigenes Theme für die Man-Can-Doo Lernplattform — handfeste Skills für Männer. Dark-Mode mit Orange-Akzent, Pill-Nav, Plus Jakarta Sans + DM Sans + JetBrains Mono. Basiert auf Hello Elementor als Fundament.
Template: hello-elementor
Version: 1.0.0
License: GPL-2.0-or-later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: man-can-doo
Tags: custom-logo, full-site-editing, block-styles, wide-blocks, accessibility-ready
*/

/* ===========================================================
   Seiten-Rahmen — matching .page wrapper in custom templates
   (home.php, page-catalog.php, single-courses.php)
   Elementor-Seiten bekommen denselben abgerundeten Rahmen via
   .mcd-page-frame, das functions.php per wp_body_open injiziert.
   overflow: clip statt hidden → border-radius greift, sticky bleibt.
   =========================================================== */
body:has(.mcd-page-frame) {
    padding: 18px;
}
.mcd-page-frame {
    max-width: 1140px;
    margin: 0 auto;
    border-radius: 28px;
    border: 1px solid var(--mcd-line, #2A2A2A);
    background: var(--mcd-bg-2, #171717);
    overflow: clip;
}
@media (max-width: 600px) {
    body:has(.mcd-page-frame) { padding: 10px; }
    .mcd-page-frame { border-radius: 20px; }
}

/* Design-Tokens – synced mit Elementor Kit Global Colors */
:root{
  /* Responsive content width:
     - mindestens 320px, flexibel bis 92% der Viewport-Breite,
     - cap bei 1240px (optimaler Lesebereich 70-90 Zeichen pro Zeile)
     - auf 4K-Screens bleibt Seite lesbar und zentriert */
  --content-width: min(1240px, 92vw);
  --content-max: 1240px;
  --reading-max: 68ch;  /* ca. 70 Zeichen pro Zeile für Lesetexte */

  --mcd-bg:#0F0F0F;
  --mcd-bg-2:#171717;
  --mcd-card:#1C1C1C;
  --mcd-card-2:#232323;
  --mcd-line:#2A2A2A;
  --mcd-line-2:#333;
  --mcd-ink:#F5F5F0;
  --mcd-ink-2:#C8C8C0;
  --mcd-mute:#8A8A82;
  --mcd-orange:#E85D04;
  --mcd-orange-2:#FF7A1F;
}

/* Reading-Optimized Copy (außer in Sidebars/Cards wo knapper ist) */
.elementor-widget-text-editor p,
.elementor-widget-heading + .elementor-widget-text-editor p {
  max-width: var(--reading-max);
}
/* Hero subcopy darf breiter sein, aber nicht über die Lesbarkeitsgrenze */
.elementor-29 .elementor-widget-text-editor p {
  max-width: min(620px, 90%);
}

body{
  background: var(--mcd-bg);
  color: var(--mcd-ink);
}

/* Serif-Italic Accent fuer <em> in Headlines + Copy
   Gibt den Orange-Highlights editoriale Wirkung gegenueber der Sans-Serif Typo */
.elementor-heading-title em,
.elementor-widget-text-editor em,
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em,
p em {
  font-family: 'Libre Baskerville', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400;
  color: var(--mcd-orange);
  letter-spacing: 0;
}

/* ===========================================================
   Header Pill — force row layout at all breakpoints
   Override Elementor's column/wrap defaults via class selector
   =========================================================== */
.mcd-header-pill {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: var(--content-max, 1240px);
  margin-inline: auto;
  width: 100%;
  gap: 12px;
}
.mcd-header-pill > * {
  flex-shrink: 0;
}
/* Logo text must never wrap */
.mcd-header-pill .elementor-widget-text-editor a {
  white-space: nowrap !important;
}
/* Below desktop: hide CTA + shrink nav-widget to just burger icon
   Use body + doubled class trick to out-specify Elementor's .elementor.elementor rule */
@media (max-width: 1024px) {
  body .mcd-header-pill .elementor-widget-button.elementor-widget {
    display: none !important;
  }

  /* Force nav-menu widget to shrink to burger-only width — fight Elementor's width:100% */
  body .elementor .mcd-header-pill .elementor-widget-nav-menu.elementor-widget {
    width: auto !important;
    max-width: fit-content !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }
  body .elementor .mcd-header-pill .elementor-widget-nav-menu > .elementor-widget-container {
    width: auto !important;
    max-width: fit-content !important;
  }
  body .mcd-header-pill .elementor-menu-toggle {
    width: auto !important;
    max-width: fit-content !important;
    margin: 0 !important;
  }
}

/* ===========================================================
   Maintenance Page — mobile padding + typography
   =========================================================== */
@media (max-width: 767px) {
  .elementor-page-35 .elementor-section,
  .elementor-35 .e-con {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .elementor-35 p {
    font-size: 16px !important;
  }
}

/* ===========================================================
   Prose-Layout für Rechtliches (Impressum, Datenschutz, AGB)
   und andere Long-Form-WP-Pages ohne Elementor-Wrapper.
   =========================================================== */
/* Hello-Elementor's Auto-Titel unterdrücken, wenn Prose-Inhalt
   schon eine eigene H1 mitbringt */
body:has(.mcd-prose) .page-header,
body:has(.mcd-prose) .entry-header { display: none !important; }
/* Hello-Elementor cappt <main> hart bei 1140px — auf Site-Grid 1240px ziehen,
   damit Prose-Wrapper bündig mit Header/Hero der Elementor-Seiten liegt */
body:has(.mcd-prose) main,
body:has(.mcd-prose) .site-main {
  max-width: var(--content-max, 1240px) !important;
  margin-inline: auto !important;
}
.mcd-prose {
  /* Outer Grid matcht Site-Content-Breite, damit linke Kante mit Header-Pill fluchtet */
  max-width: var(--content-max, 1240px);
  margin: 0 auto;
  /* Kein L/R-Padding auf Desktop: Content liegt flush im 1240er-Grid.
     Unter 1240px: safe-edge Padding, damit Text nicht am Viewport-Rand klebt. */
  padding: 56px 0 120px;
  font-family: 'DM Sans', sans-serif;
  color: var(--mcd-ink-2, #C8C8C0);
  line-height: 1.7;
  font-size: 16px;
}
@media (max-width: 1240px) {
  .mcd-prose { padding-inline: clamp(18px, 4vw, 28px); }
}
/* Lesetext auf komfortable 72ch begrenzen, aber links-bündig innerhalb des 1240er-Wrappers.
   H1 und Eyebrow dürfen volle Breite nutzen (bleiben aber optisch links). */
.mcd-prose > p,
.mcd-prose > ul,
.mcd-prose > ol,
.mcd-prose > h2,
.mcd-prose > h3 {
  max-width: 72ch;
}
.mcd-prose .mcd-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mcd-mute, #8A8A82);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mcd-prose .mcd-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--mcd-orange, #E85D04);
  display: inline-block;
}
.mcd-prose h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--mcd-ink, #F5F5F0);
  margin: 0 0 24px;
}
.mcd-prose h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--mcd-ink, #F5F5F0);
  margin: 44px 0 10px;
}
.mcd-prose h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--mcd-ink, #F5F5F0);
  margin: 28px 0 6px;
}
.mcd-prose p,
.mcd-prose li {
  color: var(--mcd-ink-2, #C8C8C0);
}
.mcd-prose ul,
.mcd-prose ol {
  padding-left: 22px;
  margin: 0 0 12px;
}
.mcd-prose li {
  margin-bottom: 6px;
}
.mcd-prose a {
  color: var(--mcd-orange, #E85D04);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s;
}
.mcd-prose a:hover { color: var(--mcd-orange-2, #FF7A1F); }
.mcd-prose .mcd-meta {
  color: var(--mcd-mute, #8A8A82);
  font-size: 13px;
  margin-bottom: 32px;
}
.mcd-prose hr {
  border: none;
  border-top: 1px solid var(--mcd-line, #2A2A2A);
  margin: 48px 0;
}

/* ===========================================================
   Topic-Bento Flip-Cards (§ 03 · THEMEN)
   Front = aktuelle Kachel mit Titel-Pill.
   Back = 4 konkrete Beispiele + CTA zu /kurse.
   Flip-Mechanik: 3D rotateY(180deg) auf Hover/Focus.
   =========================================================== */
.mcd-topic-flip {
  perspective: 1400px;
  overflow: visible !important;
  cursor: pointer;
  outline: none;
}
.mcd-topic-flip .mcd-topic-flip-inner {
  position: relative;
  width: 100%;
  /* Inner muss die Elementor-Container-Höhe erben, sonst Leerraum unter Back */
  height: 100%;
  min-height: 260px;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.25, .85, .35, 1);
}
/* Elementor-Container (.mcd-topic-flip ist .e-con-boxed) hat auf Mobile
   oft eine Mindesthöhe durchs Background-Image. Wir zwingen Inner auf
   volle Parent-Höhe, damit Front/Back bis unten reichen. */
.mcd-topic-flip {
  display: flex !important;
  align-items: stretch !important;
}
.mcd-topic-flip > .mcd-topic-flip-inner {
  flex: 1;
}
.mcd-topic-flip:hover .mcd-topic-flip-inner,
.mcd-topic-flip:focus .mcd-topic-flip-inner,
.mcd-topic-flip:focus-within .mcd-topic-flip-inner,
.mcd-topic-flip.is-flipped .mcd-topic-flip-inner {
  transform: rotateY(180deg);
}
.mcd-topic-flip .mcd-topic-front,
.mcd-topic-flip .mcd-topic-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  box-sizing: border-box;
  padding: 18px;
  overflow: hidden;
}
.mcd-topic-flip .mcd-topic-front {
  display: flex;
  align-items: flex-end;
  padding: 18px !important;
  background: transparent !important;
  border: none !important;
  /* Subtle Gradient unten für bessere Pill-Lesbarkeit */
  background-image: linear-gradient(to top, rgba(15,15,15,.55), rgba(15,15,15,0) 50%) !important;
}
.mcd-topic-flip .mcd-topic-back {
  transform: rotateY(180deg);
  background: var(--mcd-card, #1C1C1C);
  border: 1px solid var(--mcd-orange, #E85D04);
  color: var(--mcd-ink, #F5F5F0);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}
.mcd-topic-back-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mcd-orange, #E85D04);
}
.mcd-topic-back-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.mcd-topic-back-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: var(--mcd-ink-2, #C8C8C0);
  padding-left: 16px;
  position: relative;
}
.mcd-topic-back-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--mcd-orange, #E85D04);
}
.mcd-topic-back-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--mcd-orange, #E85D04);
  text-decoration: none;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--mcd-orange, #E85D04);
  background: rgba(232, 93, 4, 0.08);
  transition: background .2s, transform .2s;
}
.mcd-topic-back-cta:hover {
  background: rgba(232, 93, 4, 0.18);
  transform: translateX(2px);
}

/* Reduced motion: kein Flip, aber Back-Inhalt als Fade-Overlay */
@media (prefers-reduced-motion: reduce) {
  .mcd-topic-flip .mcd-topic-flip-inner { transition: none !important; }
  .mcd-topic-flip:hover .mcd-topic-flip-inner,
  .mcd-topic-flip:focus-within .mcd-topic-flip-inner {
    transform: none !important;
  }
  .mcd-topic-flip .mcd-topic-back {
    transform: none;
    opacity: 0;
    transition: opacity .2s;
  }
  .mcd-topic-flip:hover .mcd-topic-back,
  .mcd-topic-flip:focus-within .mcd-topic-back {
    opacity: 1;
  }
}

/* Kleine Karten brauchen kompaktere Typo */
@media (max-width: 900px) {
  .mcd-topic-back-list li { font-size: 13px; }
  .mcd-topic-flip .mcd-topic-front,
  .mcd-topic-flip .mcd-topic-back { padding: 14px; }
}

/* ===========================================================
   Footer Width Consistency
   Footer-Template (ID 28) hat hart kodierte max-width:1084px am
   .e-con-inner — erzwinge den globalen Content-Cap von 1240px.
   =========================================================== */
#mcd-site-footer .e-con-inner,
.mcd-footer-wrap .e-con-inner {
  max-width: var(--content-max, 1240px) !important;
}

/* ===========================================================
   Footer Desktop 5-Col Layout
   Ohne nowrap wrappt Rechtliches unter Brand (Elementor-Default
   verteilt 5 Flex-Items mit zu viel Eigenbreite). Auf Desktop
   forcieren: Brand links schmaler, vier Link-Spalten teilen sich
   den Rest gleichmäßig in einer Reihe.
   =========================================================== */
@media (min-width: 768px) {
  #mcd-site-footer .elementor-element-f2b7f5c,
  .mcd-footer-wrap .elementor-element-f2b7f5c {
    flex-wrap: nowrap !important;
    gap: 32px !important;
  }
  #mcd-site-footer .elementor-element-006db80,
  .mcd-footer-wrap .elementor-element-006db80 {
    flex: 1 1 260px !important;
    min-width: 0 !important;
    max-width: 320px !important;
  }
  #mcd-site-footer .elementor-element-56971ac,
  #mcd-site-footer .elementor-element-1559e6f,
  #mcd-site-footer .elementor-element-87889e8,
  #mcd-site-footer .elementor-element-dafc29b,
  .mcd-footer-wrap .elementor-element-56971ac,
  .mcd-footer-wrap .elementor-element-1559e6f,
  .mcd-footer-wrap .elementor-element-87889e8,
  .mcd-footer-wrap .elementor-element-dafc29b {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
}

/* ===========================================================
   Footer Mobile Layout
   Desktop: Brand + 4 Link-Spalten in einer Reihe.
   Mobile: Brand volle Breite, Link-Spalten als 2×2-Grid.
   Bottom-Copyright-Zeile mittig gestapelt.
   =========================================================== */
@media (max-width: 767px) {
  /* Brand-Paragraph: Reading-Cap (280px/68ch) aufheben — Footer-Text
     darf volle Spaltenbreite nutzen, sonst wirkt er abgeschnitten */
  #mcd-site-footer .elementor-widget-text-editor p,
  .mcd-footer-wrap .elementor-widget-text-editor p {
    max-width: none !important;
  }

  /* Link-Spalten (Lernen/Community/Über/Rechtliches) auf 2×2 zwingen.
     Eltern-Container ist flex-row mit flex-wrap:wrap — IDs aus Footer-Template 28. */
  #mcd-site-footer .elementor-element-56971ac,
  #mcd-site-footer .elementor-element-1559e6f,
  #mcd-site-footer .elementor-element-87889e8,
  #mcd-site-footer .elementor-element-dafc29b {
    flex: 0 0 calc(50% - 10px) !important;
    width: calc(50% - 10px) !important;
  }
  /* Brand-Spalte auf volle Breite, eigene Zeile über dem Grid */
  #mcd-site-footer .elementor-element-006db80 {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-bottom: 8px;
  }
  /* Gap zwischen den Grid-Items verkleinern damit 2×2 bündig sitzt */
  #mcd-site-footer .elementor-element-f2b7f5c {
    gap: 20px !important;
    row-gap: 28px !important;
  }

  /* Rechtliches-Spalte: Desktop hat text-align:center für 4er-Balance,
     im 2-Col-Mobile-Grid linksbündig wie die anderen */
  #mcd-site-footer .elementor-element-dafc29b,
  #mcd-site-footer .elementor-element-dafc29b * {
    text-align: left !important;
  }

  /* Copyright-Zeile: ist ein Text-Editor-Widget (1ffe33a) mit inline-flex
     als DIREKTES Kind (nicht via elementor-widget-container gewickelt).
     Auf Mobile Flex auf column stellen und mittig zentrieren. */
  #mcd-site-footer .elementor-element-1ffe33a > div[style*="display: flex"],
  #mcd-site-footer .elementor-element-1ffe33a > div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 6px !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

/* ===========================================================
   Final-CTA Section — Card darf nicht full-bleed sein.
   Sie hat eigenen Border + BG; ohne Cap spannt sie auf 4K über
   die gesamte Viewport-Breite. Deckelt auf Content-Max 1240px
   wie Header, Ticker, Bento, Footer.
   Greift strukturell auf das .mcd-card Direktkind der letzten
   Top-Level-Section der Startseite zu.
   =========================================================== */
body .elementor-29 > .e-con.e-parent:last-child > .mcd-card,
body .elementor-29 > .e-con.e-parent:last-child > .e-con.e-child {
  max-width: var(--content-max, 1240px) !important;
  width: 100% !important;
  margin-inline: auto !important;
}

/* ===========================================================
   Catalog-Seite: Filter-Pills auf Mobile horizontal wrappen.
   Elementor schaltet auf Mobile auf flex-direction: column —
   dann bekommt jede Pill eine eigene Zeile. Wir zwingen row+wrap.
   Betrifft die beiden Filter-Reihen (Kategorie-Pills + Dropdown-Pills)
   auf /kurse/ (post-id wird per Container-ID adressiert).
   =========================================================== */
@media (max-width: 767px) {
  .elementor-element-c8e6765 > .e-con-inner,
  .elementor-element-748d40d > .e-con-inner {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  /* Jedes Pill-Widget schrumpft auf Content-Breite (sonst nimmt es 100%) */
  .elementor-element-c8e6765 .elementor-widget-text-editor,
  .elementor-element-748d40d .elementor-widget-text-editor {
    width: auto !important;
    max-width: fit-content !important;
    flex: 0 0 auto !important;
  }
}

/* ===========================================================
   Scroll-to-Top Pill-Button
   Fixed bottom-right, Orange, Arrow-Up. Injected durch reveal.js.
   Sichtbar ab 400px Scroll, fade-in mit leichtem Hoch-Slide.
   =========================================================== */
.mcd-scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--mcd-orange, #E85D04);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  z-index: 9998;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity .28s ease,
    transform .28s ease,
    box-shadow .25s ease,
    background-color .2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.mcd-scroll-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.mcd-scroll-top:hover,
.mcd-scroll-top:focus-visible {
  background: var(--mcd-orange-2, #FF7A1F);
  box-shadow:
    0 0 0 3px rgba(232, 93, 4, 0.22),
    0 6px 20px rgba(232, 93, 4, 0.38);
  transform: translateY(-3px);
  outline: none;
}
.mcd-scroll-top:active {
  transform: translateY(-1px);
}
.mcd-scroll-top svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  flex-shrink: 0;
  display: block;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mcd-scroll-top svg path {
  stroke: #fff;
  fill: none;
}
/* WP-Admin-Bar (32px oben) beeinflusst Bottom-Position nicht,
   aber auf Mobile mit Admin-Bar (46px) lieber etwas höher platzieren */
@media (max-width: 600px) {
  .mcd-scroll-top {
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }
}
/* Reduced motion: kein Slide, nur Opacity */
@media (prefers-reduced-motion: reduce) {
  .mcd-scroll-top {
    transition: opacity .2s ease;
    transform: none !important;
  }
  .mcd-scroll-top.is-visible {
    transform: none !important;
  }
}

/* ===========================================================
   Reveal Animations (IntersectionObserver adds .in class)
   Auffällig: höherer Hub, sanfter Scale-Up, längere Dauer,
   Cubic-Bezier mit leichtem Over-Shoot.
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(56px) scale(.96);
  filter: blur(6px);
  transition:
    opacity .95s cubic-bezier(.16, .84, .26, 1.06),
    transform 1s cubic-bezier(.16, .84, .26, 1.06),
    filter .85s ease-out;
  will-change: opacity, transform, filter;
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
.reveal.d4 { transition-delay: .48s; }

/* Elementor Editor: Reveal-Start-State würde Widgets unsichtbar halten.
   JS-Observer im Editor-Iframe unzuverlässig, deshalb hart überschreiben. */
body.elementor-editor-active .reveal,
body.elementor-editor-active .mcd-cursor {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  animation: none !important;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mcd-cursor { animation: none; opacity: 0 !important; }
  .mcd-ticker-track { animation-play-state: paused !important; }
}

/* ===========================================================
   Typewriter Cursor
   =========================================================== */
.mcd-cursor {
  display: inline-block;
  width: 0.06em;
  height: 0.85em;
  background: var(--mcd-orange);
  margin-left: 0.06em;
  vertical-align: -0.08em;
  animation: mcd-blink 0.8s steps(2) infinite;
  border-radius: 1px;
}
.mcd-cursor--done {
  animation: mcd-blink 1.2s steps(2) infinite;
  opacity: 0.7;
}
@keyframes mcd-blink {
  to { opacity: 0; }
}
/* Dual-Cursor Dedup:
   Die mu-plugin Variante (mcd-interactions.php) nutzt ein ::after
   Pseudo-Element auf .mcd-typewriter.mcd-typed als Cursor — das ist
   die autoritative Quelle. reveal.js injiziert zusätzlich ein
   <span class="mcd-cursor">, das bei Race-Bedingungen am Anfang der
   H1 hängen bleibt (sichtbar auf /projekt/). Span immer unterdrücken,
   Pseudo-Cursor ist bereits über ::after aktiv. */
.elementor-heading-title .mcd-cursor,
.mcd-typewriter .mcd-cursor,
.mcd-typed .mcd-cursor {
  display: none !important;
}

/* ===========================================================
   Interaktive Card/Tile Hover-Effekte
   Jede Bento-Card hat explizit .mcd-card (via PHP css_classes)
   =========================================================== */
body .mcd-card {
  transition:
    transform .35s cubic-bezier(.2,.7,.2,1),
    border-color .35s cubic-bezier(.2,.7,.2,1),
    box-shadow .35s cubic-bezier(.2,.7,.2,1),
    background-color .25s !important;
  will-change: transform, border-color;
}
body .mcd-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  border-color: var(--mcd-orange) !important;
  box-shadow: 0 18px 44px rgba(232, 93, 4, 0.22) !important;
}

/* ===========================================================
   Button micro-interactions: Pill-Dot rotiert (wie im Mockup),
   leichter Glow bei Hover
   =========================================================== */
.elementor-button, .mcd-pill-cta, .mcd-mm-cta {
  transition: background-color .25s, box-shadow .25s, transform .2s !important;
}
.elementor-button:hover, .mcd-pill-cta:hover, .mcd-mm-cta:hover {
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.22), 0 6px 20px rgba(232, 93, 4, 0.32) !important;
  transform: translateY(-2px) !important;
}
.elementor-button:active, .mcd-pill-cta:active, .mcd-mm-cta:active {
  transform: translateY(0) !important;
}

/* ===========================================================
   Header Nav-Link Underline slide on hover
   =========================================================== */
.mcd-nav-links a {
  position: relative;
  overflow: hidden;
}
.mcd-nav-links a::before {
  content: '';
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 6px;
  height: 2px;
  background: var(--mcd-orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.mcd-nav-links a:hover::before,
.mcd-nav-links a.active::before {
  transform: scaleX(1);
}

/* Logo orange dot pulses subtly on hover */
.mcd-logo:hover .mcd-logo-dot {
  box-shadow: 0 0 0 6px rgba(232,93,4,.2);
  transition: box-shadow .35s;
}

/* ===========================================================
   Ticker-Bar: orange marquee
   Zielen auf persistente CSS-Klassen (.mcd-ticker = Orange-Balken,
   .mcd-ticker-wrap = schwarzer Außen-Container), die via Elementor
   _elementor_data Migration gesetzt sind — überlebt ID-Regenerationen.
   =========================================================== */
.mcd-ticker,
body .elementor .mcd-ticker,
body .elementor-29 .mcd-ticker {
  max-width: var(--content-max, 1240px) !important;
  margin-inline: auto !important;
  border-radius: 999px;
  overflow: hidden !important;
  position: relative;
  /* Elementor-Default-Padding flach machen (Ticker braucht nur Track-eigenes Padding) */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.mcd-ticker > .e-con-inner {
  overflow: hidden;
  /* Elementor-Default-Padding dieser Inner-Schicht killen (14px oben/unten sonst) */
  padding: 0 !important;
}
/* Track ist der innere Container mit verdoppeltem Inhalt */
.mcd-ticker .mcd-ticker-track {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  padding: 14px 28px;
  animation: mcd-ticker 38s linear infinite;
  will-change: transform;
}
.mcd-ticker .mcd-ticker-track > span {
  display: inline-block;
  flex-shrink: 0;
}
.mcd-ticker:hover .mcd-ticker-track {
  animation-play-state: paused;
}
/* Widget-Wrapper darf nicht zentrieren - track muss links starten */
.mcd-ticker .elementor-widget-text-editor,
.mcd-ticker .elementor-widget-text-editor > .elementor-widget-container {
  text-align: left !important;
}
@keyframes mcd-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===========================================================
   Footer link hover: orange
   =========================================================== */
.mcd-footer-wrap a,
#mcd-site-footer a {
  transition: color .2s;
}
.mcd-footer-wrap a:hover,
#mcd-site-footer a:hover {
  color: var(--mcd-orange) !important;
}

/* ===========================================================
   Mobile Home tuning — tighter spacing, readable headlines
   =========================================================== */
@media (max-width: 900px) {
  /* Hero headline smaller + tighter */
  .elementor-29 h1 {
    font-size: 40px !important;
    line-height: 1.03 !important;
  }
  .elementor-29 h2 {
    font-size: 28px !important;
    line-height: 1.05 !important;
  }
  /* Top-Level Sections kompakter — 48px war zu luftig auf schmalen Screens */
  body .elementor-29 > .e-con {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  /* Hero braucht einen Hauch mehr oben/unten damit Nav + Hero atmen */
  body .elementor-29 > .e-con:first-child {
    padding-top: 32px !important;
    padding-bottom: 40px !important;
  }
  /* Ticker-Section: fast keine vertikale Padding, der Pill-Abstand macht's */
  body .elementor-29 > .e-con:has(> .mcd-ticker) {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  /* Letzte CTA-Section: etwas mehr Luft fürs End-Feeling */
  body .elementor-29 > .e-con:last-child {
    padding-top: 40px !important;
    padding-bottom: 56px !important;
  }
  /* Ticker-Text lesbar */
  .elementor-29 .mcd-ticker-track {
    font-size: 12px !important;
    gap: 20px !important;
    padding: 12px 20px !important;
  }
  /* Topic-Flip Cards: Container-Padding trimmen, sonst zu großer Bild-Rand */
  body .elementor-29 .mcd-topic-flip {
    padding: 0 !important;
    min-height: 220px !important;
  }
  /* Reveal-Animation auf Mobile dezenter: kleinerer Hub verhindert, dass
     noch-nicht-getriggerte Karten unten einen riesigen scheinbaren Gap
     zum Vorgänger haben. */
  .reveal {
    transform: translateY(24px) scale(.985);
    filter: blur(3px);
  }
  /* Bento-Gap-Vereinheitlichung: Auf Desktop sind Cards in Row-Flex-Containern
     (18px column-gap) nebeneinander, Eltern-Container haben 40px row-gap.
     Auf Mobile stapelt alles vertikal — Inter-Row- und Intra-Row-Gap sollten
     gleich wirken, sonst unregelmäßige Treppe. */
  .elementor-29 .e-con-inner,
  .elementor-29 .e-con-inner > .e-con {
    row-gap: 18px !important;
  }
}
