/* --- LEADING MOTION BLOCK STYLES --- */

/* 1. Generelle Typo-Anpassung */
h2.wp-block-heading {
  font-family: 'Montserrat', sans-serif;
  color: var(--lm-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 2.5rem; /* Größer für Impact */
  margin-bottom: 1.5rem;
}

/* Der "Motion" Akzent in Sublines */
h3.lm-subline {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--lm-orange); /* Orange Akzent */
  font-size: 1.5rem;
  margin-top: 0;
}

/* 2. Sektion: Mein Ansatz (Dunkelblau) */
.lm-dark-section {
  background-color: var(--lm-navy) !important;
  color: var(--lm-white) !important;
}

.lm-dark-section h2, 
.lm-dark-section h3, 
.lm-dark-section p {
  color: var(--lm-white) !important;
}

.lm-service-card {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.lm-service-card:hover {
  transform: translateY(-5px); /* Kleiner "Lift" Effekt */
  border-color: var(--lm-orange);
}

/* 3. Bild-Styling */
.lm-profile-image img {
  border-radius: 12px;
  box-shadow: 20px 20px 0px var(--lm-orange); /* Cooler Retro-Schatten */
}

/* 4. Zitat */
blockquote.lm-quote {
  border-left: 5px solid var(--lm-orange);
  background: var(--lm-gray-50);
  padding: 2rem;
  font-style: italic;
  font-family: 'Montserrat', sans-serif;
}
/* --- LEADING MOTION: ABOUT SECTION STYLES --- */

/* 1. Das "gestapelte" Bild (Hip-Factor) */
.lm-portrait-stack {
  position: relative;
  z-index: 1;
  margin: 20px; /* Platz für den Hintergrund */
}

/* Der farbige Block HINTER dem Bild */
.lm-portrait-stack::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  background-color: var(--lm-navy); /* Navy Hintergrund für Kontrast */
  border: 2px solid var(--lm-orange); /* Orange Linie für Detail */
  z-index: -1;
  border-radius: 8px;
  transition: all 0.4s ease;
}

/* Das Bild selbst */
.lm-portrait-stack img {
  border-radius: 8px;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  filter: grayscale(20%); /* Ein bisschen entsättigt für Coolness */
  transition: all 0.4s ease;
}

/* Hover-Effekt: Bild und Hintergrund bewegen sich */
.lm-portrait-stack:hover::before {
  top: 30px;
  left: 30px;
}
.lm-portrait-stack:hover img {
  transform: translate(-5px, -5px);
  filter: grayscale(0%); /* Volle Farbe bei Hover */
}

/* 2. Typografie Highlights */
.lm-highlight-text {
  position: relative;
  display: inline-block;
  padding: 0 3px 4px;
  font-weight: bold;
  color: var(--lm-navy);
}

.lm-highlight-text::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 6px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M1,9 C5,5.5 18,11 40,8 C65,4.5 90,10.5 120,7.5 C145,5 168,10 187,7 C194,5.5 199,8 200,7 L200,11 C199,12 194,10 187,11.5 C168,14 145,10 120,12 C90,14.5 65,10 40,13 C18,14.5 5,12.5 1,11 Z' fill='rgba(255,107,0,0.85)'/%3E%3Cpath d='M8,8 C35,5.5 70,10 115,7 C150,4.5 180,9 197,6.5' stroke='rgba(255,165,0,0.35)' stroke-width='1.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

/* Desktop: Abstände zwischen Sektionen */
@media (min-width: 1024px) {
  #lm-about-wrapper        { margin-bottom: 9.5rem; }
  #ansatz.lm-section-frame { margin-bottom: 0 !important; }
  #referenzen.lm-section-frame { margin-top: 9.5rem !important; }
}

#ansatz .lm-ansatz-card p {
  text-align: left !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

/* Mobile: weniger Abstand zwischen Sektionen */
@media (max-width: 767px) {
  #ueber-mich.lm-section-frame,
  #ansatz.lm-section-frame,
  #referenzen.lm-section-frame {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .lm-section-frame + .lm-section-frame {
    margin-top: 0 !important;
  }
}

/* Silbentrennung: auf Mobile aktiv, ab Tablet deaktiviert */
@media (max-width: 767px) {
  p, li, .prose p, .lm-about-list li {
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

@media (min-width: 768px) {
  p, li, .prose p, .lm-about-list li {
    hyphens: none;
    -webkit-hyphens: none;
  }
}

.lm-lead-paragraph {
  font-size: 1.25rem !important;
  line-height: 1.6;
  color: var(--lm-navy);
  font-weight: 500;
}

/* Mobile Headline vor dem Bild */
#lm-mobile-headline { display: none; }

@media (max-width: 767px) {
  #lm-mobile-headline {
    display: block;
    background: #ffffff;
    padding: 1.5rem 1.25rem 1rem;
    text-align: center;
  }

  .lm-mobile-headline-h1 {
    font-family: 'Oswald', 'League Gothic', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #12223c;
    line-height: 1.15;
    margin: 0 0 0.1em;
  }

  .lm-mobile-headline-accent {
    font-size: 2rem;
    color: #ff6b00;
    line-height: 1.2;
    margin: 0;
  }
}

/* Mobile: Hero ausblenden, CTA nach Portrait */
.lm-about-cta-mobile { display: none; }

@media (max-width: 767px) {
  #hero { display: none !important; }
  .lm-parallax-bottom-spacer { display: none !important; }
  .lm-about-cta { display: none !important; }
  .lm-about-cta-mobile { display: block !important; }
}

/* Mobile: kein Parallax – Bild als statischer Block zwischen Header und Hero */
@media (max-width: 767px) {
  #lm-parallax-bg {
    position: relative !important;
    height: 50svh !important;
    min-height: 12rem !important;
    max-height: none !important;
    width: 100% !important;
    z-index: 1 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  #lm-parallax-bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    transform: none !important;
  }

  .lm-hero.lm-hero-parallax {
    min-height: auto !important;
    height: auto !important;
    align-items: flex-start !important;
    background: #ffffff !important;
  }

  .lm-hero-parallax .lm-container {
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
  }

  .lm-hero-parallax .lm-container > div > div:first-child {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .lm-parallax-bottom-spacer {
    display: none !important;
  }
}

.lm-about-list {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lm-about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #374151;
  line-height: 1.6;
}

.lm-about-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--lm-orange, #ff6b00);
  margin-top: 0.55em;
}
