/*
Theme Name:   ML-Express Premium Child
Template:     ml-express-premium
Version:      2.2.0
Description:  Child Theme für ML-Express Premium – konsolidiert, bereinigt, kein CSS-Fehler.
*/

/* ════════════════════════════════════════════════════════════
   DESIGN-TOKENS – gleiche Werte wie Parent, für Fallback
   ════════════════════════════════════════════════════════════ */
:root {
  --gold:    #c9a84c;
  --gold-l:  #e2bf6a;
  --gold-d:  #a07832;
  --gold-bg: rgba(201,168,76,.09);
  --gold-bd: rgba(201,168,76,.25);
  --navy:    #1a2b4a;
  --navy-3:  #243860;
  --white:   #ffffff;
  --muted:   #6b7280;
  --off:     #f8f7f4;
}

/* ════════════════════════════════════════════════════════════
   DESKTOP – gezielte Korrekturen (Desktop unverändert lassen)
   ════════════════════════════════════════════════════════════ */

/* Hero H1: eleganter (900 → 700) */
#mlp-hero h1 {
  font-weight: 700;
  letter-spacing: -.022em;
}

/* Ticker: alle Spans gold statt weiß */
.mlp-ticker-track span {
  color: var(--gold-l);
}
.mlp-ticker-track .gold {
  color: var(--gold-l);
  font-weight: 700;
}
/* Ticker: reliable continuous movement on desktop and mobile. */
.mlp-ticker-track {
  animation-name: mlpScroll;
  animation-duration: 32s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: running;
  will-change: transform;
}

/* Phone-Icon: kräftig gold auf allen Hintergründen */
.mlp-phone-icon {
  flex-shrink: 0;
  color: var(--gold-l);
  stroke: var(--gold-l);
}
.btn-outline .mlp-phone-icon,
.btn-cta-outline .mlp-phone-icon {
  color: var(--gold-l);
  stroke: var(--gold-l);
}

/* Footer Beschreibung: heller und besser lesbar */
#mlp-footer .mlp-foot-brand p {
  color: #b8c0cc;
  opacity: 1;
  font-weight: 300;
}

/* Footer Überschriften: gold */
#mlp-footer .mlp-foot-brand-name,
#mlp-footer .mlp-foot-col h5 {
  color: var(--gold-l);
}

/* Footer Links und Kontakttexte: besser lesbar */
#mlp-footer .mlp-foot-col ul a,
#mlp-footer .mlp-foot-ctxt a,
#mlp-footer .mlp-foot-ctxt span {
  color: rgba(255,255,255,.82);
  font-weight: 400;
}
#mlp-footer .mlp-foot-col ul a:hover,
#mlp-footer .mlp-foot-ctxt a:hover {
  color: var(--gold-l);
}
#mlp-footer .mlp-foot-bottom p {
  color: rgba(255,255,255,.50);
  font-weight: 400;
}
#mlp-footer .mlp-foot-legal a {
  color: rgba(255,255,255,.50);
  font-weight: 400;
}
#mlp-footer .mlp-foot-legal a:hover {
  color: var(--gold-l);
}

/* Footer Icons: gold */
.mlp-foot-cico {
  color: var(--gold);
}
.mlp-foot-cico svg {
  color: var(--gold);
  stroke: var(--gold);
}

/* Warum-Boxen: Icon-Container schöner */
.mlp-wbox-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
  color: var(--gold-d);
  background: var(--gold-bg);
  border: 1px solid var(--gold-bd);
}
.mlp-wbox-ico svg {
  width: 24px;
  height: 24px;
}

/* Service-Icons etwas größer */
.mlp-svc-ico svg {
  width: 19px;
  height: 19px;
}

/* Über-uns Feature-Cards: font-weight korrekt */
#mlp-about .mlp-abox p {
  font-weight: 400;
}

/* ════════════════════════════════════════════════════════════
   TABLET – 860px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

  /* Logo + Slogan größer */
  .mlp-logo .custom-logo-link img,
  .mlp-logo-img {
    height: 130px;
    max-width: 320px;
    object-fit: contain;
  }
  .mlp-brand .b1 { font-size: 1.10rem; }
  .mlp-brand .b2 { font-size: .68rem; letter-spacing: .09em; }

  /* Hero H1: angenehmer auf Tablet */
  #mlp-hero h1 {
    font-size: clamp(1.85rem, 5.5vw, 2.8rem);
    font-weight: 700;
    max-width: 100%;
  }

  /* Über-uns Intro: zentriert auf Tablet */
  #mlp-about .mlp-reveal > .mlp-tag,
  #mlp-about .mlp-reveal > .mlp-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  #mlp-about .mlp-reveal > p {
    text-align: left;
  }
  #mlp-about .mlp-reveal > .btn-navy {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  /* Feature-Cards: linksbündig */
  #mlp-about .mlp-abox,
  #mlp-about .mlp-abox .mlp-abox-ico,
  #mlp-about .mlp-abox h3,
  #mlp-about .mlp-abox p {
    text-align: left;
  }

  /* Leistungen Intro: zentriert */
  #mlp-leistungen .mlp-svc-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  #mlp-leistungen .mlp-svc-head .mlp-tag { justify-content: center; }
  #mlp-leistungen .mlp-svc-head .mlp-title { text-align: center; }
  #mlp-leistungen .mlp-svc-count { text-align: center; max-width: 580px; }

  /* Kunden: zentriert */
  #mlp-split .mlp-split-head,
  #mlp-split .mlp-split-head .mlp-tag,
  #mlp-split .mlp-split-head .mlp-title {
    text-align: center;
    justify-content: center;
  }

  /* Warum: zentriert */
  #mlp-warum .mlp-warum-head,
  #mlp-warum .mlp-warum-head .mlp-tag,
  #mlp-warum .mlp-warum-head .mlp-title,
  #mlp-warum .mlp-warum-head .mlp-sub {
    text-align: center;
    justify-content: center;
    max-width: 100%;
  }

  /* Vertretung: zentriert */
  #mlp-vertretung .mlp-vert-head,
  #mlp-vertretung .mlp-vert-head .mlp-tag,
  #mlp-vertretung .mlp-vert-head .mlp-title,
  #mlp-vertretung .mlp-vert-head .mlp-sub,
  #mlp-vertretung .mlp-vert-head > p {
    text-align: center;
    justify-content: center;
  }

  /* Kontakt: zentriert */
  #mlp-kontakt .mlp-kontakt-head,
  #mlp-kontakt .mlp-kontakt-head .mlp-tag,
  #mlp-kontakt .mlp-kontakt-head .mlp-title,
  #mlp-kontakt .mlp-kontakt-head .mlp-sub {
    text-align: center;
    justify-content: center;
    max-width: 100%;
  }

  /* Lesetext auf Tablet etwas größer */
  .mlp-svc-desc       { font-size: .92rem; line-height: 1.65; }
  .mlp-split-col p    { font-size: .92rem; }
  .mlp-split-list li  { font-size: .92rem; }
  .mlp-wbox p         { font-size: .88rem; }
  .mlp-vert-box p,
  .mlp-vert-list li   { font-size: .92rem; }

  /* Mobile Menu: Hamburger klar über dem Menü */
  .mlp-nav { z-index: 600; }
  .mlp-hamburger {
    position: relative;
    z-index: 700;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .mlp-mob-menu {
    padding-top: 2.8rem;
    overflow-y: auto;
  }
  .mlp-mob-close { display: none; }
  body.mlp-menu-open { overflow: hidden; }

  /* Phone-Icon auf dunklem BG */
  .btn-outline .mlp-phone-icon,
  .btn-cta-outline .mlp-phone-icon {
    color: var(--gold-l);
    stroke: var(--gold-l);
  }

  /* Footer auf Tablet */
  #mlp-footer .mlp-foot-brand p {
    color: #c5cbd4 !important;
    font-size: .92rem;
    line-height: 1.7;
    font-weight: 300;
  }
  #mlp-footer .mlp-foot-col ul a,
  #mlp-footer .mlp-foot-ctxt a,
  #mlp-footer .mlp-foot-ctxt span {
    color: rgba(255,255,255,.85);
    font-size: .9rem;
  }
}

/* ════════════════════════════════════════════════════════════
   MOBIL < 600px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 599px) {

  /* Nav: genug Platz für Logo + Slogan */
  .mlp-nav-inner {
    padding: .4rem .9rem;
    min-height: 145px;
  }

  /* Logo: deutlich größer, nicht abgeschnitten */
  .mlp-logo .custom-logo-link img,
  .mlp-logo-img {
    height: 115px;
    max-width: 280px;
    object-fit: contain;
  }

  /* Slogan: beide Zeilen sichtbar und lesbar */
  .mlp-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.22;
    max-width: calc(100vw - 165px);
  }
  .mlp-brand .b1 {
    font-size: 1.06rem;
    font-weight: 800;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--navy);
  }
  .mlp-brand .b2 {
    font-size: .63rem;
    font-weight: 600;
    letter-spacing: .1em;
    display: block;
    opacity: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
  }

  /* Hero H1: lesbar und nicht zu schwer */
  #mlp-hero h1 {
    font-size: clamp(1.65rem, 7.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.018em;
    max-width: 100%;
  }
  .mlp-hero-sub {
    font-size: .96rem;
    line-height: 1.65;
  }
  .mlp-hero-inner {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .mlp-hero-trust-item { font-size: .82rem; }

  /* Trust-Bar: 2-spaltig, lesbar */
  .mlp-trust-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem .9rem;
    overflow: hidden;
  }
  .mlp-trust-item {
    font-size: .82rem;
    white-space: normal;
    word-break: break-word;
  }

  /* Über-uns Bild */
  .mlp-about-img img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
  }
  /* Über-uns Feature-Cards */
  #mlp-about .mlp-abox h3 { font-size: 1rem; }
  #mlp-about .mlp-abox p  { font-size: .9rem; line-height: 1.6; }

  /* Footer Icons: kräftiges Gold */
  .mlp-foot-cico,
  .mlp-foot-cico svg {
    color: #c9a84c;
    stroke: #c9a84c;
    fill: none;
    opacity: 1;
  }

  /* Footer Texte: heller auf Mobile */
  #mlp-footer .mlp-foot-brand p {
    color: #c5cbd4 !important;
    opacity: 1;
    font-size: .9rem;
    font-weight: 300;
  }
  #mlp-footer .mlp-foot-col ul a,
  #mlp-footer .mlp-foot-ctxt a,
  #mlp-footer .mlp-foot-ctxt span {
    color: rgba(255,255,255,.88);
    font-size: .88rem;
    font-weight: 400;
  }

  /* Sticky-Bar */
  .mlp-mob-bar a {
    min-height: 56px;
    padding: .8rem .65rem;
    gap: .5rem;
    font-size: .8rem;
  }
  .mlp-mob-bar a:first-child {
    background: var(--gold);
    color: var(--navy);
  }
  .mlp-mob-bar a:last-child {
    background: var(--navy);
    color: var(--white);
  }
  .mlp-mob-bar .mlp-phone-icon {
    width: 22px;
    height: 22px;
    color: var(--navy);
    stroke: var(--navy);
  }

  /* Lesetext */
  .mlp-svc-desc       { font-size: .9rem; line-height: 1.62; }
  .mlp-split-col p    { font-size: .9rem; }
  .mlp-split-list li  { font-size: .88rem; }
  .mlp-wbox p         { font-size: .85rem; }
  .mlp-vert-box p,
  .mlp-vert-list li   { font-size: .9rem; }
  .mlp-kon-txt a,
  .mlp-kon-txt span   { font-size: .88rem; }
}

/* ════════════════════════════════════════════════════════════
   SEHR KLEIN < 381px (320–380px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {

  .mlp-nav-inner {
    padding: .35rem .75rem;
    min-height: 120px;
  }
  .mlp-logo .custom-logo-link img,
  .mlp-logo-img {
    height: 100px;
    max-width: 250px;
  }
  .mlp-brand {
    max-width: calc(100vw - 145px);
  }
  .mlp-brand .b1 { font-size: .96rem; }
  .mlp-brand .b2 { font-size: .59rem; }

  #mlp-hero h1 {
    font-size: clamp(1.5rem, 7vw, 1.85rem);
    font-weight: 700;
  }
  .mlp-hero-sub { font-size: .9rem; }

  .mlp-trust-inner { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   TABLET-BREITE 600–860px
   ════════════════════════════════════════════════════════════ */
@media (min-width: 600px) and (max-width: 860px) {
  .mlp-logo .custom-logo-link img,
  .mlp-logo-img {
    height: 118px;
    max-width: 290px;
    object-fit: contain;
  }
  .mlp-brand .b1 { font-size: 1.02rem; }
  .mlp-brand .b2 { font-size: .63rem; display: block; }
}

/* ════════════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION – Animationen deaktivieren
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .mlp-reveal,
  .mlp-reveal-l,
  .mlp-reveal-r {
    opacity: 1;
    transform: none;
    transition: none;
  }
  /* Keep ticker moving consistently with the parent theme. */
  .mlp-ticker-track {
    animation-name: mlpScroll;
    animation-duration: 32s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
  }
}

/* ── ÜBER UNS: Tag + Titel auf Mobile mittig ── */
@media (max-width: 860px) {
  #mlp-about .mlp-reveal > .mlp-tag {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  #mlp-about .mlp-reveal > .mlp-title {
    text-align: center;
    width: 100%;
  }
  #mlp-about .mlp-reveal > p {
    text-align: left;
  }
}

/* ════════════════════════════════════════════════════════════
   NEUES ML-EXPRESS LOGO – ml-logo.png
   Logo enthält bereits "ML EXPRESS GEBÄUDE SERVICE" Text
   Brand-Text (.b1/.b2) wird ausgeblendet
   ════════════════════════════════════════════════════════════ */

/* Brand-Text sichtbar neben Logo */
.mlp-brand { display: flex !important; flex-direction: column; }

/* Desktop Logo */
.mlp-logo-img,
.mlp-logo .custom-logo-link img {
  height: auto !important;
  width: 110px !important;
  max-width: 110px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Nav-Höhe auf Desktop */
.mlp-nav-inner {
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
}

/* Tablet ≤ 860px */
@media (max-width: 860px) {
  .mlp-logo-img,
  .mlp-logo .custom-logo-link img {
    width: 95px !important;
    max-width: 95px !important;
    height: auto !important;
  }
}

/* Mobile < 600px */
@media (max-width: 599px) {
  .mlp-logo-img,
  .mlp-logo .custom-logo-link img {
    width: 85px !important;
    max-width: 85px !important;
    height: auto !important;
  }
  .mlp-nav-inner {
    padding: .4rem .9rem !important;
    min-height: unset !important;
  }
}

/* Sehr klein < 380px */
@media (max-width: 380px) {
  .mlp-logo-img,
  .mlp-logo .custom-logo-link img {
    width: 72px !important;
    max-width: 72px !important;
    height: auto !important;
  }
}

/* ════════════════════════════════════════════════════════════
   LOGO GRÖSSE – ml-logo.png (alle Breakpoints)
   ════════════════════════════════════════════════════════════ */

/* Desktop: Logo + Brand nebeneinander */
.mlp-logo-img,
.mlp-logo .custom-logo-link img {
  height: auto !important;
  width: 110px !important;
  max-width: 110px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Brand-Text sichtbar und ausgerichtet */
.mlp-brand {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}
.mlp-brand .b1 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  display: block;
  white-space: nowrap;
}
.mlp-brand .b2 {
  font-size: .60rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
}

/* Tablet ≤ 860px */
@media (max-width: 860px) {
  .mlp-logo-img,
  .mlp-logo .custom-logo-link img {
    width: 95px !important;
    max-width: 95px !important;
    height: auto !important;
  }
  .mlp-brand .b1 { font-size: .98rem; }
  .mlp-brand .b2 { font-size: .58rem; }
}

/* Mobile < 600px */
@media (max-width: 599px) {
  .mlp-logo-img,
  .mlp-logo .custom-logo-link img {
    width: 82px !important;
    max-width: 82px !important;
    height: auto !important;
  }
  .mlp-brand { max-width: calc(100vw - 160px); }
  .mlp-brand .b1 { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; }
  .mlp-brand .b2 { font-size: .56rem; display: block !important; opacity: 1; }
}

/* Sehr klein < 380px */
@media (max-width: 380px) {
  .mlp-logo-img,
  .mlp-logo .custom-logo-link img {
    width: 68px !important;
    max-width: 68px !important;
    height: auto !important;
  }
  .mlp-brand .b1 { font-size: .86rem; }
  .mlp-brand .b2 { font-size: .52rem; }
}

/* ════════════════════════════════════════════════════════════
   BACK-TO-TOP BUTTON
   Gold, rund, unten rechts, erscheint nach 300px Scroll
   ════════════════════════════════════════════════════════════ */
.mlp-back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 800;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold, #c9a84c);
  color: var(--navy, #1a2b4a);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(201,168,76,.45);

  /* Ausgeblendet bis 300px gescrollt */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease,
              background .2s ease;
}
.mlp-back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mlp-back-top:hover {
  background: var(--gold-l, #e2bf6a);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,168,76,.55);
}
.mlp-back-top:active {
  transform: translateY(0);
}
.mlp-back-top svg {
  pointer-events: none;
}

/* Mobile: etwas kleiner, über der Sticky-Bar */
@media (max-width: 599px) {
  .mlp-back-top {
    width: 44px;
    height: 44px;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px) + .8rem);
    right: 1rem;
    box-shadow: 0 3px 14px rgba(201,168,76,.4);
  }
}

/* prefers-reduced-motion: kein Slide-Effekt */
@media (prefers-reduced-motion: reduce) {
  .mlp-back-top {
    transition: opacity .15s ease, visibility .15s ease;
    transform: none !important;
  }
}


/* v2.2.0 — Performance + accessibility fixes */
.mlp-main-content { display:block; }
.mlp-nav-links a,
.mlp-mob-menu a,
.mlp-mob-bar a { -webkit-tap-highlight-color: transparent; }
@media (max-width:599px) {
  .mlp-mob-bar a { min-height:56px; padding:.8rem .65rem; }
  .mlp-hamburger { min-width:44px; min-height:44px; }
  .mlp-mob-close { width:44px; height:44px; }
}
