/* Navigation v2 (preview): logo left, everything else as one quiet group on the right */
.site-header .bar { gap: 0; }
.nav2 { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav2 .nav { margin: 0; gap: 2px; align-items: center; }
.nav2 .nav > a, .nav2 .dd > button { position: relative; padding: 8px 12px; border-radius: 8px; font: inherit; font-size: .95rem; color: var(--ink-soft);
  background: none; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.nav2 .nav > a:hover, .nav2 .dd > button:hover, .nav2 .dd:focus-within > button { background: none; color: var(--ink); }
.nav2 .nav > a[aria-current="page"] { background: none; color: var(--ink); }
.nav2 .nav > a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.nav2 .chev { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
.nav2 .dd { position: static; }
.site-header.mm-open .dd .chev { transform: rotate(180deg); }
.site-header.mm-open .dd > button { color: var(--ink); }

/* Mega menu: full width under the bar — product visual left, the four solutions right */
.mm { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(10, 20, 12, .35); clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .5s var(--ease-out), visibility 0s .5s; }
.site-header.mm-open .mm { clip-path: inset(0 0 -80px 0); visibility: visible; transition: clip-path .55s var(--ease-out); }
.site-header.mm-open { background: var(--paper); border-bottom-color: var(--line); }
.mm-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); align-items: stretch; padding-block: 36px 40px; }
.mm-grid > * { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .45s var(--ease-out); }
.site-header.mm-open .mm-grid > * { opacity: 1; transform: none; transition-delay: .08s; }
.site-header.mm-open .mm-grid > .mm-list { transition-delay: .16s; }

.mm-visual { position: relative; display: flex; flex-direction: column; min-height: 440px; border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 36px) clamp(20px, 2.4vw, 36px) 116px;
  background: var(--forest-gradient); box-shadow: var(--shadow-film); overflow: hidden; isolation: isolate; }

/* Quintas surface: deep forest with a soft light from the top right – no texture. */
.mm-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 82% 0%, rgba(181, 203, 176, .26), transparent 62%), radial-gradient(60% 60% at 0% 100%, rgba(10, 20, 12, .55), transparent 70%); }
.mm-stage { position: relative; flex: 1; min-height: 280px; border-radius: 12px; overflow: hidden; background: #f8f7f3;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08); }
.mm-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: 0; transform: scale(1.03); transition: opacity .5s, transform 1.2s var(--ease-out); }
.mm-v.on { opacity: 1; transform: none; }
.mm-cap { position: absolute; left: clamp(20px, 2.4vw, 36px); right: clamp(20px, 2.4vw, 36px); bottom: 26px; color: var(--on-forest); opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .45s var(--ease-out); }
.mm-cap.on { opacity: 1; transform: none; transition-delay: .12s; }
.mm-cap span { display: block; font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-light); }
.mm-cap b { display: block; font-weight: 400; font-size: 1.15rem; letter-spacing: -.02em; margin-top: 8px; }
.mm-badge { position: absolute; right: clamp(28px, 3vw, 48px); top: clamp(28px, 3vw, 48px); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .8rem; font-weight: 500; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45);
  animation: mm-float 6s ease-in-out infinite; }
.mm-badge i { width: 8px; height: 8px; border-radius: 50%; background: #3f9b6a; box-shadow: 0 0 0 0 rgba(63, 155, 106, .5); animation: mm-ping 2.2s ease-out infinite; }
@keyframes mm-float { 50% { transform: translateY(-5px); } }
@keyframes mm-ping { 0% { box-shadow: 0 0 0 0 rgba(63, 155, 106, .5); } 100% { box-shadow: 0 0 0 10px rgba(63, 155, 106, 0); } }

.mm-list { align-self: center; }
.mm-eye { font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.mm-h { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.12; margin-top: 12px; max-width: 22ch; }
.mm-items { display: grid; gap: 4px; margin-top: 26px; }
.mm-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 14px 16px; margin-inline: -16px; border-radius: 14px;
  text-decoration: none; color: inherit; transition: background-color .2s; }
.mm-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c); transition: transform .3s var(--ease-out); }
.mm-ic svg { width: 21px; height: 21px; }
.mm-tx b { display: block; font-weight: 500; font-size: 1.02rem; letter-spacing: -.01em; color: var(--ink); }
.mm-tx span { display: block; margin-top: 3px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.mm-item .ar { width: 18px; height: 18px; color: var(--ink); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .3s var(--ease-out); }
.mm-item:hover, .mm-item.on, .mm-item:focus-visible { background: var(--sand); }
.mm-item:hover .mm-ic, .mm-item.on .mm-ic { transform: scale(1.06); }
.mm-item:hover .ar, .mm-item.on .ar, .mm-item:focus-visible .ar { opacity: 1; transform: none; }
.mm-foot { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink-soft); font-size: .92rem; }
.mm-foot b { font-weight: 500; color: var(--ink); }
.mm-foot .ar { width: 16px; height: 16px; margin-left: auto; transition: transform .3s var(--ease-out); }
.mm-foot:hover .ar { transform: translateX(4px); }
.mm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.mm-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(14, 22, 15, .28); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.mm-scrim.on { opacity: 1; visibility: visible; transition: opacity .35s; }
@media (max-width: 1024px) { .mm { display: none; } }
@media (prefers-reduced-motion: reduce) { .mm, .mm-grid > *, .mm-v, .mm-cap { transition: none; } .mm-badge, .mm-badge i { animation: none; } }
.nav2 .sep { width: 1px; height: 18px; background: var(--line); margin: 0 10px; }
.lang-text { display: inline-flex; align-items: center; gap: 4px; font: 500 .78rem/1 var(--mono); letter-spacing: .04em; color: var(--muted); margin-right: 6px; }
.lang-text a { padding: 6px 2px; text-decoration: none; color: var(--muted); }
.lang-text a:hover { color: var(--ink); }
.lang-text a[aria-current] { color: var(--ink); pointer-events: none; }
.nav2 .link-quiet { padding: 8px 10px; font-size: .95rem; color: var(--ink-soft); text-decoration: none; }
.nav2 .link-quiet:hover { color: var(--ink); }
.nav2 .btn { min-height: 40px; padding: 8px 18px; font-size: .95rem; margin-left: 6px; }
@media (max-width: 1024px) {
  .nav2 .nav, .nav2 .sep, .nav2 .lang-text, .nav2 .link-quiet { display: none; }
  .nav2 { order: 2; } .site-header .menu-btn { margin-left: 8px; } .site-header .logo { margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) { .nav2 .dd-panel, .nav2 .chev { transition: none; } }

/* Mobile menu v2: a full screen sheet under the bar — product visual first, then the way in */
@media (max-width: 1024px) {
  .mobile-nav.mnav { position: fixed; left: 0; right: 0; top: 72px; height: calc(100vh - 72px); height: calc(100dvh - 72px); z-index: 49; display: block; overflow-y: auto; overscroll-behavior: contain;
    padding: 16px var(--gutter-r, 20px) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gutter-l, 20px); background: var(--paper); border-top: 1px solid var(--line); }
  .mobile-nav.mnav[hidden] { display: none; }
  .mnav > * { opacity: 0; transform: translateY(12px); animation: mnv-in .5s var(--ease-out) forwards; }
  .mnav > :nth-child(2) { animation-delay: .06s; } .mnav > :nth-child(3) { animation-delay: .1s; } .mnav > :nth-child(4) { animation-delay: .14s; }
  .mnav > :nth-child(5) { animation-delay: .18s; } .mnav > :nth-child(6) { animation-delay: .22s; } .mnav > :nth-child(7) { animation-delay: .26s; }
  @keyframes mnv-in { to { opacity: 1; transform: none; } }
  .mnv-visual { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; padding: 14px 14px 78px; background: var(--forest-gradient); box-shadow: var(--shadow-film); margin-bottom: 10px; }
  .mnv-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 60% at 82% 0%, rgba(181, 203, 176, .26), transparent 62%); }
  .mnv-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #f8f7f3; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
  .mnv-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: 0; transition: opacity .5s; }
  .mnv-v.on { opacity: 1; }
  .mnv-cap { position: absolute; left: 16px; right: 60px; bottom: 16px; color: var(--on-forest); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .45s var(--ease-out); }
  .mnv-cap.on { opacity: 1; transform: none; }
  .mnv-cap span { display: block; font: 500 .66rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-light); }
  .mnv-cap b { display: block; font-weight: 400; font-size: .98rem; line-height: 1.3; letter-spacing: -.015em; margin-top: 6px; }
  .mnv-dots { position: absolute; right: 16px; bottom: 22px; display: flex; gap: 5px; }
  .mnv-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(244, 243, 237, .35); transition: width .3s var(--ease-out), background .3s; }
  .mnv-dots i.on { width: 18px; background: var(--on-forest); }
  .mnv-l, .mnv-sol > summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; font-size: 1.35rem; letter-spacing: -.025em;
    color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); list-style: none; cursor: pointer; }
  .mnv-sol > summary::-webkit-details-marker { display: none; }
  .mnv-sol > summary svg { width: 20px; height: 20px; color: var(--muted); transition: transform .3s var(--ease-out); }
  .mnv-sol[open] > summary svg { transform: rotate(180deg); }
  .mnv-items { display: grid; gap: 2px; padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
  .mnv-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 6px; border-radius: 12px; text-decoration: none; color: inherit; }
  .mnv-item:active { background: var(--sand); }
  .mnv-item .mm-ic { width: 40px; height: 40px; border-radius: 11px; }
  .mnv-item .ar { display: none; }
  .mnv-item .mm-tx b { font-size: 1rem; }
  .mnv-item .mm-tx span { font-size: .86rem; }
  .mnv-foot { display: flex; align-items: center; justify-content: space-between; padding: 18px 2px 14px; }
  .mnv-foot .lang-text { font-size: .85rem; }
  .mnv-foot .link-quiet { font-size: 1rem; color: var(--ink-soft); text-decoration: none; }
  .mnv-cta { width: 100%; justify-content: center; min-height: 52px; font-size: 1.02rem; }
  .mobile-nav.mnav .mnv-item, .mobile-nav.mnav .lang-text a, .mobile-nav.mnav .link-quiet, .mobile-nav.mnav .mnv-cta { border-bottom: 0; }
  .mobile-nav.mnav .mnv-l { padding: 16px 2px; font-size: 1.35rem; }
  .mobile-nav.mnav .mnv-item { padding: 10px 6px; font-size: inherit; }
  .mobile-nav.mnav .lang-text a { padding: 6px 2px; font-size: inherit; }
  .mobile-nav.mnav .link-quiet { padding: 6px 2px; }
  .mobile-nav.mnav .mnv-cta { padding: 14px 20px; color: #fff; }
  .mnv-visual { box-shadow: 0 24px 50px -28px rgba(6, 16, 7, .55); }
  html.mnav-open { overflow: hidden; }
  /* iOS scrollt trotz overflow:hidden weiter: Leiste fest oben halten, solange das Menü offen ist */
  html.mnav-open .site-header { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; }
  html.mnav-open body { overscroll-behavior: none; }
  html.mnav-open .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }   /* a filter would trap the fixed sheet inside the bar */
}
@media (prefers-reduced-motion: reduce) { .mnav > * { animation: none; opacity: 1; transform: none; } .mnv-visual::before { animation: none; } }
.nav2 .dd > button[data-current] { color: var(--ink); }
.nav2 .dd > button[data-current]::after { content: ""; position: absolute; left: 12px; right: 30px; bottom: 2px; height: 1.5px; background: var(--ink); border-radius: 2px; }
/* Navigation zentriert, Sprachwahl als Globus-Menü */
@media (min-width: 1025px) {
  .site-header .bar { position: relative; }
  .nav2 .nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}
.lang-dd { position: relative; margin-right: 4px; }
.lang-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); cursor: pointer; transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.lang-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lang-btn .globe { width: 19px; height: 19px; transition: transform .5s var(--ease-out); }
.lang-btn:hover .globe, .lang-btn[aria-expanded="true"] .globe { transform: rotate(-18deg); }
.lang-menu { position: absolute; right: -6px; top: calc(100% + 10px); min-width: 196px; padding: 6px; border-radius: 14px; background: var(--paper, #fff); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,20,.06), 0 18px 44px -12px rgba(16,24,20,.22); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .18s var(--ease-out), transform .22s var(--ease-out), visibility 0s linear .22s; z-index: 60; }
.lang-dd.open .lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease-out), transform .22s var(--ease-out), visibility 0s; }
.lang-menu a { display: grid; grid-template-columns: 1fr 16px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: .92rem; color: var(--ink-soft); text-decoration: none; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); outline: none; }
.lang-menu .lc { font: 500 .72rem/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.lang-menu .ck { width: 16px; height: 16px; color: var(--brand); opacity: 0; }
.lang-menu a[aria-current] { color: var(--ink); font-weight: 500; }
.lang-menu a[aria-current] .ck { opacity: 1; }
@media (max-width: 1024px) { .nav2 .lang-dd { display: none; } }
@media (prefers-reduced-motion: reduce) { .lang-menu, .lang-btn .globe { transition: none; } }
/* Mobil: kein CTA im Header – er steht direkt unter der Hero und im Menü */
@media (max-width: 1024px) { .nav2 .btn { display: none; } }
/* Lösungen-Menü passt immer in das sichtbare Fenster: kompakter auf niedrigen Bildschirmen, notfalls scrollbar */
.mm { max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-height: 940px) {
  .mm-grid { padding-block: 24px 28px; }
  .mm-visual { min-height: 0; padding-bottom: 96px; }
  .mm-stage { min-height: 220px; }
  .mm-h { font-size: clamp(1.35rem, 1rem + .9vw, 1.75rem); margin-top: 10px; }
  .mm-items { margin-top: 16px; gap: 2px; }
  .mm-item { padding: 10px 16px; }
  .mm-tx span { font-size: .86rem; line-height: 1.4; }
  .mm-foot { margin-top: 14px; padding-top: 14px; }
}
@media (max-height: 680px) {
  .mm-ic { width: 38px; height: 38px; } .mm-item { grid-template-columns: 38px minmax(0, 1fr) 20px; padding: 8px 16px; }
  .mm-tx span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .mm-stage { min-height: 180px; } .mm-visual { padding-bottom: 84px; }
}
/* Bildunterschrift im Menü: eigene Zeile unter dem Bild statt darüber – lange Texte überlappen nie */
.mm-visual { display: grid; grid-template-rows: minmax(0, 1fr) auto; padding-bottom: clamp(20px, 2.4vw, 32px); }
.mm-visual .mm-stage { grid-row: 1; grid-column: 1; }
.mm-visual .mm-cap { position: static; grid-row: 2; grid-column: 1; margin-top: 18px; }
@media (max-height: 940px) { .mm-visual { padding-bottom: 20px; } .mm-visual .mm-cap { margin-top: 14px; } }
@media (max-height: 680px) { .mm-visual { padding-bottom: 18px; } }
/* Standbild hinter jedem Menü-Clip: sichtbar, auch wenn das Gerät Videos blockiert (z. B. Stromsparmodus) */
.mm-v, .mnv-v { background: #f8f7f3 var(--poster) center / cover no-repeat; }
/* Menü-Clips: feste Bühne im Format der Filme (16:9) – auf jedem Bildschirm vollständig, nichts angeschnitten */
.mm-visual { grid-template-rows: auto auto; align-content: center; }
.mm-visual .mm-stage { flex: none; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
.mnv-stage { aspect-ratio: 16 / 9; }

/* Mobil-Menü: Karussell wischbar; Symbol der Lösung vor der Kennzeichnung */
.mnv-visual { touch-action: pan-y; }
.mnv-cap span { display: flex; align-items: center; gap: 7px; }
.mnv-cap span svg { width: 14px; height: 14px; flex: none; }
.mnv-dots i { cursor: pointer; }
.mm-h { transition: opacity .12s ease; }
