/* =========================================================
   Makrolife Biotech – Designsystem
   Clean · wissenschaftlich · modern
   ========================================================= */

:root {
  --ink: #0f1b2d;          /* Tiefblau-Anthrazit, Haupttext */
  --ink-2: #46556b;        /* Sekundärtext */
  --ink-3: #7a8699;        /* Tertiär / Muted */
  --primary: #0b5d6b;      /* Teal – Vertrauen / Wissenschaft */
  --primary-700: #084853;
  --primary-50: #e8f3f4;
  --accent: #18b89a;       /* frischer Bio-Akzent */
  --accent-50: #e6f8f3;
  --line: #e4e9f0;
  --line-2: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-tint: #f0f6f8;
  --white: #fff;
  --shadow-sm: 0 1px 2px rgba(15,27,45,.05), 0 1px 3px rgba(15,27,45,.06);
  --shadow-md: 0 6px 20px rgba(15,27,45,.08);
  --shadow-lg: 0 24px 60px rgba(15,27,45,.18);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; }
p { margin: 0 0 1rem; }
.ml-ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }

/* Farbiger Seitenkopf mit weich verschwommenem Verlauf */
.ml-pagehead {
  position: relative; overflow: hidden; text-align: center;
  padding: 96px 0 76px;
  background: linear-gradient(180deg, var(--bg-tint), #ffffff);
}
.ml-pagehead::before {
  content: ""; position: absolute; left: -15%; right: -15%; top: -45%; height: 180%;
  background:
    radial-gradient(520px 300px at 18% 28%, rgba(24,184,154,.48), transparent 62%),
    radial-gradient(580px 320px at 82% 10%, rgba(11,93,107,.40), transparent 62%),
    radial-gradient(500px 300px at 58% 96%, rgba(56,189,248,.32), transparent 60%),
    radial-gradient(420px 260px at 36% 72%, rgba(24,184,154,.26), transparent 60%);
  filter: blur(48px); pointer-events: none;
}
.ml-pagehead::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, #ffffff);
}
.ml-pagehead .wrap { position: relative; z-index: 1; }
.ml-pagehead .section-head { margin: 0 auto; }
.ml-pagehead .eyebrow { background: transparent; backdrop-filter: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
  background: transparent; border: 1px solid currentColor; padding: .4em .9em; border-radius: 999px; margin-bottom: 1rem;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }

/* ---------- Header / Nav ---------- */
.ml-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.ml-nav { display: flex; align-items: center; gap: 28px; height: 72px; position: relative; }
.ml-logo { display: inline-flex; align-items: center; }
/* Logo als gefärbte Maske aus dem vektorisierten SVG (skaliert verlustfrei, beliebig einfärbbar) */
.ml-logo-mask {
  display: block; height: 40px; width: 136px;
  background-color: var(--ink);
  -webkit-mask: url(../img/logo.svg?v=2) no-repeat left center; -webkit-mask-size: contain;
  mask: url(../img/logo.svg?v=2) no-repeat left center; mask-size: contain;
}
.ml-logo:hover .ml-logo-mask { background-color: var(--primary); }
/* Footer (dunkel): gleiche Maske, weiß eingefärbt */
.ml-footer .ml-logo-mask { background-color: #fff; height: 38px; width: 129px; }
.ml-footer .ml-logo:hover .ml-logo-mask { background-color: var(--accent); }
.ml-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; }
.ml-menu a {
  display: block; padding: 9px 13px; border-radius: 8px; color: var(--ink-2); font-weight: 550; font-size: .95rem;
}
.ml-menu a:hover, .ml-menu .current-menu-item > a, .ml-menu a.is-active { color: var(--ink); background: var(--bg-tint); }

/* Mega-Dropdown – zentriert unter „Analysen" */
.ml-has-mega { position: relative; }
.ml-mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 760px; max-width: calc(100vw - 24px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 14px; z-index: 60;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease;
}
.ml-mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 16px; } /* Hover-Brücke */
.ml-has-mega:hover .ml-mega, .ml-has-mega:focus-within .ml-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Oben 3 nebeneinander, unten 2 zentriert (6-Spalten-Raster, Kacheln über je 2 Spalten) */
.ml-mega-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ml-mega .ml-mega-item { grid-column: span 2; }
.ml-mega .ml-mega-item:nth-child(4) { grid-column: 2 / span 2; } /* erste Kachel der unteren Reihe einrücken → 2 zentriert */
/* Kacheln – exakt wie die übrigen Karten der Seite (.ml-cat-card / .ml-card) */
.ml-mega .ml-mega-item {
  display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius); color: var(--ink);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ml-mega .ml-mega-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.ml-mega-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-50); color: var(--primary); flex: 0 0 auto; }
.ml-mega-ic svg { width: 21px; height: 21px; }
.ml-mega-txt { min-width: 0; font-size: .92rem; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.ml-portal {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px;
  background: var(--ink); color: #fff !important; font-weight: 650; font-size: .95rem;
  box-shadow: var(--shadow-sm); transition: transform .15s, background .15s;
}
.ml-portal:hover { background: var(--primary); transform: translateY(-1px); }
.ml-burger { display: none; margin-left: 8px; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }

/* ---------- Buttons ---------- */
.ml-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 11px;
  font-weight: 650; font-size: .98rem; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.ml-btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.ml-btn--primary:hover { background: var(--primary-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.ml-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.ml-btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.ml-btn--light { background: #fff; color: var(--primary); }
.ml-btn--lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- Hero (Vollbild-Hintergrund) ---------- */
.ml-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background-image: var(--hero-img); background-size: cover; background-position: 72% center; background-color: var(--bg-tint);
}
/* Blur nur links, weich auslaufend */
.ml-hero-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  -webkit-mask: linear-gradient(90deg, #000 0%, #000 30%, transparent 60%);
          mask: linear-gradient(90deg, #000 0%, #000 30%, transparent 60%);
}
/* Heller Verlauf für Textkontrast */
.ml-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(240,246,248,.98) 0%, rgba(240,246,248,.92) 34%, rgba(240,246,248,.45) 52%, rgba(240,246,248,0) 66%);
}
.ml-hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.ml-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: 480px; }
.ml-hero h1 { margin-bottom: .5em; }
.ml-hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36ch; margin-bottom: 1.8rem; }
.ml-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2rem; }
.ml-hero-trust { display: flex; gap: 26px; flex-wrap: wrap; color: var(--ink-2); font-size: .92rem; }
.ml-hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.ml-hero-trust svg { color: var(--accent); }

/* Orbit: Analysen kreisen um die Frau, faden ein/aus */
.ml-hero-orbit { position: relative; height: 100%; min-height: 460px; }
.ml-orbit-card {
  position: absolute; transform: translate(-50%, -50%);
  background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 11px 16px 11px 12px; display: flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: .9rem; color: var(--ink); white-space: nowrap; max-width: 240px;
  opacity: 0; filter: blur(12px); transition: opacity 1.5s ease, filter 1.5s ease;
  pointer-events: none; will-change: left, top, opacity, filter;
}
.ml-orbit-card.is-in { opacity: 1; filter: blur(0); }
.ml-orbit-card .ml-card-ic { width: 38px; height: 38px; flex: 0 0 auto; }
.ml-orbit-card .ml-oc-title { overflow: hidden; text-overflow: ellipsis; }
.ml-orbit-card small { display: block; color: var(--ink-3); font-weight: 500; font-size: .76rem; }

/* ---------- Icon-Fokusblöcke ---------- */
.ml-focus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ml-focus-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ml-focus-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.ml-focus-ic {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-50); color: var(--primary);
}
.ml-focus-ic svg { width: 26px; height: 26px; }
.ml-focus-item h3 { font-size: 1.18rem; }
.ml-focus-item p { color: var(--ink-2); font-size: .96rem; margin: 0; }

/* ---------- Leistungs-Teaser (Analysen / Sicherheitsbewertungen) ---------- */
.ml-teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ml-teaser { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px; display: flex; flex-direction: column; }
.ml-teaser .ml-focus-ic { margin-bottom: 16px; }
.ml-teaser h3 { font-size: 1.3rem; margin-bottom: .3em; }
.ml-teaser > p { color: var(--ink-2); margin: 0 0 18px; flex: 1; }
.ml-teaser-search { margin-bottom: 16px; }
.ml-teaser-search .ml-search { width: 100%; padding-right: 54px; }
.ml-ts-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 9px; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.ml-ts-btn:hover { background: var(--primary-700); }
.ml-ts-btn svg { width: 19px; height: 19px; }
.ml-teaser .ml-btn { align-self: flex-start; }
@media (max-width: 760px) { .ml-teasers { grid-template-columns: 1fr; } }

/* ---------- Kategorie-Teaser ---------- */
.ml-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ml-cat-card {
  display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s; color: var(--ink);
}
.ml-cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.ml-cat-card .ml-focus-ic { margin: 0; flex: 0 0 auto; }
.ml-cat-card h3 { font-size: 1.06rem; margin-bottom: .2em; }
.ml-cat-card p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.ml-cat-card .ml-cat-go { margin-top: 10px; color: var(--primary); font-weight: 650; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.ml-cats--info { margin-bottom: 52px; }
.ml-center { text-align: center; }
.ml-subhead { text-align: center; font-size: 1.05rem; font-weight: 700; color: var(--ink-2); margin: 0 0 22px; letter-spacing: -.01em; }

/* =========================================================
   Katalog: Toolbar + Filter
   ========================================================= */
.ml-loading { padding: 60px 0; text-align: center; color: var(--ink-3); display: flex; gap: 10px; justify-content: center; align-items: center; }
.ml-toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }

.ml-searchwrap { position: relative; }
.ml-search-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 20px; height: 20px; }
.ml-search {
  width: 100%; padding: 15px 18px 15px 46px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 1rem; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
}
.ml-search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }

.ml-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ml-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.ml-chip svg { width: 16px; height: 16px; color: var(--ink-3); }
.ml-chip:hover { border-color: var(--primary); color: var(--ink); }
.ml-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.ml-chip.is-active svg { color: #fff; }

.ml-stdbar { position: relative; }
.ml-stdtoggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
}
.ml-stdtoggle:hover { border-color: var(--primary); }
.ml-stdtoggle .ml-caret { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .2s; color: var(--ink-3); }
.ml-stdtoggle.is-open .ml-caret { transform: rotate(-90deg); }
.ml-stdcount { color: var(--primary); font-weight: 700; }
.ml-stdpanel {
  margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 16px; box-shadow: var(--shadow-md);
}
.ml-stdgroups { max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 15px; padding-right: 4px; }
.ml-stdgroup-h { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 7px; padding-bottom: 5px; border-bottom: 1px solid var(--line-2); }
.ml-stdgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 14px; }
.ml-std { display: flex; align-items: center; gap: 9px; padding: 6px 4px; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.ml-std input { width: 16px; height: 16px; accent-color: var(--primary); }
.ml-stdclear { margin-top: 12px; background: none; border: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; }

.ml-meta { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; }
.ml-count { color: var(--ink-3); font-size: .92rem; font-weight: 600; }
.ml-reset { background: none; border: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Karten-Grid ---------- */
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.ml-card {
  display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; cursor: pointer; font: inherit; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; position: relative;
}
.ml-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.ml-card:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.ml-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ml-card-ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-50); color: var(--primary); flex: 0 0 auto; }
.ml-card-ic svg { width: 22px; height: 22px; }
.ml-card-cat { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ml-card-title { font-size: 1.06rem; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.ml-card-desc { font-size: .92rem; color: var(--ink-2); margin: 0 0 14px; flex: 1; }
.ml-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; min-height: 4px; }
.ml-tag {
  font-size: .74rem; font-weight: 650; padding: 4px 9px; border-radius: 7px;
  background: var(--primary-50); color: var(--primary-700); border: 1px solid #d4e7e9;
}
.ml-card-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-2); padding-top: 14px; margin-top: auto; }
.ml-price { font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.ml-price--quote { color: var(--primary); }
.ml-time { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.ml-time svg { width: 15px; height: 15px; }

.ml-card--custom { background: linear-gradient(160deg, var(--primary-50), #fff 60%); border-color: #cfe6e8; border-style: dashed; }
.ml-card--custom .ml-card-ic { background: var(--primary); color: #fff; }

.ml-empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.ml-empty svg { width: 40px; height: 40px; margin-bottom: 10px; color: var(--line); }
.ml-empty p { max-width: 420px; margin: 0 auto; }

/* =========================================================
   Modal
   ========================================================= */
.ml-modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(15,27,45,.5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s;
}
.ml-modal.is-open { opacity: 1; }
.ml-modal-box {
  position: relative; width: 100%; max-width: 720px; max-height: 90vh; overflow: auto;
  background: #fff; border-radius: 20px; padding: 34px; box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(.98); transition: transform .2s;
}
.ml-modal.is-open .ml-modal-box { transform: none; }
.ml-modal-x {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; display: grid; place-items: center;
}
.ml-modal-x:hover { background: var(--bg-tint); color: var(--ink); }
.ml-m-ic { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 12px; }
.ml-m-ic svg { width: 28px; height: 28px; }
.ml-modal-box h2 { font-size: 1.5rem; margin: 6px 0 12px; }
.ml-m-stds { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.ml-m-text { color: var(--ink-2); font-size: 1rem; }
.ml-m-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 20px 0; }
.ml-fact { background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 15px; }
.ml-fact span { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-3); font-weight: 600; margin-bottom: 4px; }
.ml-fact span svg { width: 15px; height: 15px; }
.ml-fact b { font-size: 1.02rem; color: var(--ink); }
.ml-m-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.ml-m-actions .ml-btn { flex: 1; justify-content: center; min-width: 160px; }

/* =========================================================
   Inhalts-Bausteine (About, Kontakt)
   ========================================================= */
.ml-prose { max-width: 760px; }
.ml-prose p { color: var(--ink-2); font-size: 1.05rem; }
.ml-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 8px 0; }
.ml-stat { text-align: center; padding: 26px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ml-stat b { display: block; font-size: 2.1rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.ml-stat span { color: var(--ink-2); font-size: .92rem; }
.ml-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }

/* Zwei-Spalten Text + Bild (Über uns) */
.ml-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ml-split--reverse .ml-split-media { order: 2; }
.ml-split-body .eyebrow { margin-bottom: 14px; }
.ml-split-body h3 { font-size: 1.6rem; margin-bottom: .5em; }
.ml-split-body p { color: var(--ink-2); font-size: 1.05rem; }
.ml-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px; }
.ml-ticks--2col { grid-template-columns: 1fr 1fr; }
.ml-ticks li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 550; }
.ml-ticks svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }

/* Platzhalter-Bild */
.ml-ph {
  position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center; gap: 12px; grid-auto-flow: row; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}
.ml-ph::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(420px 240px at 25% 20%, rgba(24,184,154,.28), transparent 60%),
    radial-gradient(380px 220px at 85% 90%, rgba(11,93,107,.22), transparent 60%);
}
.ml-ph--2 { background: linear-gradient(135deg, var(--bg-tint), var(--primary-50)); }
.ml-ph-ic { position: relative; width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.8); color: var(--primary); box-shadow: var(--shadow-sm); }
.ml-ph-ic svg { width: 32px; height: 32px; }
.ml-ph-label { position: relative; font-weight: 700; color: var(--primary-700); font-size: 1.05rem; }
.ml-ph-badge { position: absolute; top: 14px; right: 14px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: rgba(255,255,255,.85); padding: 4px 9px; border-radius: 999px; }

.ml-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ml-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ml-contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ml-contact-list .ml-focus-ic { width: 44px; height: 44px; margin: 0; }
.ml-contact-list b { display: block; font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.ml-map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 320px; box-shadow: var(--shadow-sm); }
.ml-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- CTA-Band ---------- */
.ml-cta {
  background: linear-gradient(135deg, var(--primary-700), var(--primary)); color: #fff; border-radius: 22px;
  padding: 56px; text-align: center; position: relative; overflow: hidden;
}
.ml-cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 80% 120%, rgba(24,184,154,.4), transparent 60%); }
.ml-cta > * { position: relative; }
.ml-cta h2 { color: #fff; }
.ml-cta p { color: rgba(255,255,255,.85); max-width: 540px; margin: 0 auto 26px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.ml-footer { background: var(--ink); color: #c7d0dd; padding: 64px 0 28px; }
.ml-footer a { color: #c7d0dd; }
.ml-footer a:hover { color: #fff; }
.ml-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ml-footer h4 { color: #fff; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.ml-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.ml-footer .ml-logo { color: #fff; margin-bottom: 14px; }
.ml-footer .ml-logo b { color: var(--accent); }
.ml-footer-about { font-size: .94rem; color: #9aa6b6; max-width: 30ch; }
.ml-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .86rem; color: #8a96a6; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .ml-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .ml-hero-orbit { display: none; }
  .ml-hero { background-position: 78% center; }
  /* Verlauf + Blur über die volle Breite, damit Text lesbar bleibt */
  .ml-hero::after { background: linear-gradient(180deg, rgba(240,246,248,.96) 0%, rgba(240,246,248,.86) 60%, rgba(240,246,248,.78) 100%); }
  .ml-hero-scrim { -webkit-mask: none; mask: none; }
  .ml-focus, .ml-cats, .ml-values { grid-template-columns: 1fr 1fr; }
  .ml-stats { grid-template-columns: 1fr 1fr; }
  .ml-footer-grid { grid-template-columns: 1fr 1fr; }
  .ml-contact { grid-template-columns: 1fr; }
  .ml-split { grid-template-columns: 1fr; gap: 28px; }
  .ml-split--reverse .ml-split-media { order: 0; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .ml-menu { display: none; }
  .ml-burger { display: inline-flex; }
  .ml-nav.is-open .ml-menu {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 18px; box-shadow: var(--shadow-md);
  }
  .ml-nav.is-open .ml-menu a { padding: 12px; }
  /* Mega als eingerückte Liste im Burger-Menü */
  .ml-mega { position: static; opacity: 1; visibility: visible; transform: none; width: auto; box-shadow: none; border: 0; padding: 4px 0 4px 12px; }
  .ml-mega-grid { grid-template-columns: 1fr; }
  .ml-mega .ml-mega-item, .ml-mega .ml-mega-item:nth-child(4) { grid-column: auto; }
  .ml-mega-item { padding: 9px 10px; }
  .ml-focus, .ml-cats, .ml-values, .ml-stats { grid-template-columns: 1fr; }
  .ml-ticks--2col { grid-template-columns: 1fr; }
  .ml-footer-grid { grid-template-columns: 1fr; }
  .ml-modal-box { padding: 24px; }
  .ml-cta { padding: 40px 22px; }
  .ml-portal span.lbl { display: none; }
}
