/* Website mit Menü: Ausklapp-Menü, obere Leiste, neue Startseite und Unterseiten (src/pages.mjs). Lädt nach site.css und app-ui.css. */

/* ------------------------------------------------------------------ Menü mit Ausklappern */
.nav { align-items: center; }
.nav-item { position: relative; }
.nav-trigger {
  font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink-2); padding: 7px 10px 7px 12px; border-radius: 10px;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: color .15s, background-color .15s;
}
.nav-trigger .icon { font-size: 15px; transition: transform .2s; }
.nav-item:hover .nav-trigger, .nav-item.open .nav-trigger, .nav-trigger[aria-current="true"] { color: var(--ink); background: rgb(43 45 53 / 5%); }
.nav-item:hover .nav-trigger .icon, .nav-item.open .nav-trigger .icon { transform: rotate(180deg); }
.nav a[aria-current="page"] { color: var(--ink); }
.mega {
  position: absolute; top: calc(100% + 12px); left: -14px; z-index: 60; width: max-content; max-width: min(680px, 90vw);
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-xl), 0 0 0 1px rgb(43 45 53 / 6%); padding: 12px;
  display: grid; gap: 4px 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.mega::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; } /* Brücke, damit der Hover nicht abreißt */
.nav-item:hover .mega, .nav-item:focus-within .mega, .nav-item.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-2 { grid-template-columns: 330px 270px; }
.mega-col { display: grid; gap: 2px; align-content: start; }
.mega-col + .mega-col { padding-left: 10px; border-left: 1px solid var(--line); }
.mega-h { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px 4px; }
.nav .mega a.mega-link { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; color: var(--ink); white-space: normal; }
.nav .mega a.mega-link:hover { background: var(--surface-2); }
.mega-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.mega-ico .icon { font-size: 18px; }
.mega-ico.evi-ico { background: #efe9ff; overflow: hidden; }
.mega-ico.evi-ico img { width: 30px; height: 30px; }
.mega-link b { display: block; font-size: 14px; font-weight: 620; }
.mega-link b .n { color: var(--ink-3); font-weight: 600; margin-right: 6px; font-variant-numeric: tabular-nums; }
.mega-link small { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; margin-top: 1px; }

/* Mobiles Menü mit Gruppen */
.mobile-nav .m-group { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 14px 4px 2px; }

/* ------------------------------------------------------------------ Startseite: Ablauf als Reiter */
.flow-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 40px; }
.flow-tab {
  font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--line); background: rgb(255 255 255 / 70%);
  border-radius: 16px; padding: 14px 14px 12px; display: grid; gap: 6px; transition: background .2s, border-color .2s, box-shadow .2s;
}
.flow-tab .k { font-size: 12px; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.flow-tab .k .icon { font-size: 17px; color: var(--ink-2); }
.flow-tab .t { font-size: 15px; font-weight: 640; color: var(--ink); }
.flow-tab .d { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.flow-tab:hover { background: #fff; }
.flow-tab[aria-selected="true"] { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(255 81 49 / 12%); }
.flow-tab[aria-selected="true"] .k .icon { color: var(--brand); }
.flow-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 28px; }
.flow-panel[hidden] { display: none; }
.flow-panel h3 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
.flow-panel p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 620; color: var(--brand); }
.more-link .icon { transition: transform .2s; }
.more-link:hover .icon { transform: translateX(3px); }

/* ------------------------------------------------------------------ Startseite: kurze Blöcke mit Link */
.aud-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.aud-mini a { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s; }
.aud-mini a:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.aud-mini .tag { justify-self: start; font-size: 12.5px; font-weight: 640; padding: 4px 10px; border-radius: 8px; color: #1d1f24; }
.aud-mini h3 { font-size: 18px; line-height: 1.3; }
.aud-mini .more-link { margin-top: 4px; font-size: 14px; }

.roi-band {
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 28px 48px; align-items: center;
  border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px); background: linear-gradient(135deg, #fff3d4 0%, #ffe6ee 100%);
}
.roi-band h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 14px; }
.roi-band p { margin-top: 12px; font-size: 17px; color: var(--ink-2); line-height: 1.6; max-width: 560px; }
.roi-band .big { text-align: right; }
.roi-band .big b { display: block; font-size: clamp(48px, 7vw, 84px); font-weight: 680; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.roi-band .big span { display: block; margin: 6px 0 18px; color: var(--ink-2); font-size: 15px; }

.sec-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.sec-mini div { padding: 20px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.sec-mini .icon { font-size: 22px; color: var(--brand); }
.sec-mini h3 { margin-top: 12px; font-size: 16px; }
.sec-mini p { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.center-link { text-align: center; margin-top: 26px; }

/* ------------------------------------------------------------------ Unterseite */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.sub-hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.sub-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sub-hero h1 { margin-top: 18px; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 660; }
.sub-hero .lead { margin-top: 20px; max-width: 540px; }
.sub-hero .cta-row { justify-content: flex-start; margin-top: 28px; }

.scene { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; }
.scene + .scene { border-top: 1px solid var(--line); }
.scene.flip .scene-copy { order: 2; }
.scene .kicker { font-size: 13px; font-weight: 650; color: var(--brand); letter-spacing: .02em; }
.scene h2 { margin-top: 10px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
.scene p { margin-top: 16px; font-size: 17.5px; line-height: 1.6; color: var(--ink-2); max-width: 520px; }
.scene .hero-visual { max-width: none; }
.scene .hero-window { transform: none; }

.mtm-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-xl); padding: 20px; max-width: 520px; margin-left: auto; }
.mtm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mtm-head b { font-size: 15px; }
.mtm-head span { font-size: 12.5px; color: var(--ink-3); }
.mtm-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mtm-row span:nth-child(2) { color: var(--ink-3); }
.mtm-row span:last-child { font-weight: 600; text-align: right; min-width: 64px; }
.mtm-total { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.mtm-total small { color: var(--ink-2); font-size: 13px; }
.mtm-total b { font-size: 26px; letter-spacing: -0.03em; }
.mtm-total b em { font-style: normal; font-size: 14px; color: var(--ink-2); margin-left: 4px; }

.tech-band { border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px); background: linear-gradient(135deg, #fff6d9 0%, #fff0e4 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.tech-band h2 { margin-top: 14px; font-size: clamp(28px, 3.6vw, 42px); }
.tech-band p { margin-top: 14px; font-size: 17px; color: var(--ink-2); line-height: 1.6; }

.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.detail-grid div { padding: 22px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.detail-grid .t-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.detail-grid .t-ico .icon { font-size: 19px; }
.detail-grid h3 { margin-top: 14px; font-size: 16.5px; }
.detail-grid p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

.evi-inline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px); background: linear-gradient(135deg, #f3eeff 0%, #fdf2f8 55%, #fff8e6 100%); }
.evi-inline h2 { margin-top: 14px; font-size: clamp(26px, 3.2vw, 38px); }
.evi-inline p { margin-top: 12px; font-size: 16.5px; color: var(--ink-2); line-height: 1.6; }
.evi-inline .chat { margin-left: auto; }
.evi-inline .msg { opacity: 1; transform: none; }

.step-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.step-nav a { display: grid; gap: 4px; padding: 20px 22px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s; }
.step-nav a:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.step-nav small { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.step-nav b { font-size: 18px; }
.step-nav a:last-child { text-align: right; }

.ov-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.ov-card { display: grid; gap: 8px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s; }
.ov-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.ov-card b { font-size: 19px; }
.ov-card p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.ov-card .more-link { margin-top: 4px; }
/* ------------------------------------------------------------------ Schmal */
@media (max-width: 860px) {
  .flow-tabs { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .flow-panel, .sub-hero-grid, .scene, .tech-band, .evi-inline, .roi-band { grid-template-columns: minmax(0, 1fr); }
  .scene.flip .scene-copy { order: 0; }
  .roi-band .big { text-align: left; }
  .aud-mini, .sec-mini { grid-template-columns: 1fr 1fr; }
  .detail-grid, .ov-cards { grid-template-columns: 1fr; }
  .mtm-card, .evi-inline .chat { margin: 0 auto; }
}
@media (max-width: 560px) {
  .aud-mini, .sec-mini { grid-template-columns: 1fr; }
  .step-nav { grid-template-columns: 1fr; }
  .step-nav a:last-child { text-align: left; }
}

/* ------------------------------------------------------------------ Obere Leiste wie auf even-logistics.com */
:root { --util-h: 36px; --header-h: 104px; }
.site-header { display: flex; flex-direction: column; }
.util-bar { height: var(--util-h); flex: none; }
.util-inner { height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.util-inner > a { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 4px 8px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.util-inner > a:hover { color: var(--ink); }
.util-inner > a .icon { font-size: 13px; }
.util-lang { display: inline-flex; gap: 2px; padding: 2px; border-radius: 6px; box-shadow: 0 0 0 1px rgb(43 45 53 / 8%); background: rgb(255 255 255 / 70%); }
.util-lang a { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 4px; color: var(--ink-2); }
.util-lang a[aria-current="true"] { background: var(--ink); color: #fdfdfc; }
.util-lang svg { width: 16px; height: 11px; border-radius: 2px; display: block; }
.site-header .header-inner { height: calc(var(--header-h) - var(--util-h)); flex: none; }
@media (max-width: 560px) { .util-inner > a span.long { display: none; } }

/* ------------------------------------------------------------------ Nachgebaute Karten (Beispieldaten) */
.mock { background: #fff; border-radius: 22px; box-shadow: var(--shadow-xl); padding: 20px; max-width: 520px; margin-left: auto; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mock-head b { font-size: 15px; }
.mock-head span { font-size: 12.5px; color: var(--ink-3); }
.mock-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mock-row > span:last-child { font-weight: 600; text-align: right; }
.mock-row small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }
.mock-row .ok { color: var(--ok); display: inline-flex; align-items: center; gap: 5px; }
.mock-row:last-child { border-bottom: 0; }
.mock-total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mock-total small { color: var(--ink-2); font-size: 13px; }
.mock-total b { font-size: 24px; letter-spacing: -0.03em; }
.mock-opt { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); margin-top: 10px; font-size: 14px; }
.mock-opt i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-3); margin-top: 1px; }
.mock-opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(255 81 49 / 10%); }
.mock-opt.on i { border: 5px solid var(--brand); }
.mock-opt small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.mock-foot { margin-top: 12px; font-size: 12.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.mock-foot .icon { color: var(--brand); }
.scene .gallery-window { max-width: none; }

/* ------------------------------------------------------------------ Unterseiten ohne Bild, Zielgruppen, Rechenweg, FAQ-Gruppen */
.sub-hero-grid.single { grid-template-columns: minmax(0, 760px); }
.aud-sec { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.aud-sec .tag { display: inline-block; font-size: 13px; font-weight: 640; padding: 5px 11px; border-radius: 9px; color: #1d1f24; }
.aud-sec h2 { margin-top: 14px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.aud-sec p { margin-top: 14px; font-size: 17px; color: var(--ink-2); line-height: 1.6; }
.aud-sec .checklist { margin-top: 18px; }
.aud-links { align-self: start; padding: 20px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); display: grid; gap: 4px; }
.aud-links .mega-h { padding: 0 6px 6px; }
.aud-links a { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 12px; font-size: 14.5px; font-weight: 600; }
.aud-links a:hover { background: var(--surface-2); }
.aud-links small { display: block; font-weight: 400; color: var(--ink-2); font-size: 12.5px; }
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.calc-grid div { padding: 20px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.calc-grid b { display: block; font-size: 15.5px; }
.calc-grid p { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.calc-grid code { font-family: inherit; font-weight: 600; color: var(--ink); }
.faq-group h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 48px 0 16px; }
.faq-group:first-child h2 { margin-top: 0; }
.ov-card .n { font-size: 12px; font-weight: 650; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 860px) {
  .aud-sec, .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .mock { margin: 0 auto; }
}
@media (min-width: 861px) { .sub-hero h1 .accent { white-space: nowrap; } }

/* Kopfbereich hell wie auf even-logistics.com: immer weiß (95 %) mit Weichzeichner und Unterkante,
   obere Leiste mit eigener feiner Linie; auf dem Handy (unter 768 px) ohne obere Leiste. */
.site-header, .site-header.is-scrolled { background: rgb(255 255 255 / 95%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: none; border-bottom: 1px solid var(--line); }
.util-bar { border-bottom: 1px solid rgb(232 230 224 / 60%); }
.util-lang { padding: 2px; border-radius: 12px; border: 1px solid var(--line); box-shadow: none; background: transparent; }
.util-lang a { border-radius: 4px; gap: 6px; }
.util-lang svg { width: 18px; height: 12px; box-shadow: 0 0 0 1px rgb(0 0 0 / 10%); }
.mobile-nav .mobile-lang { display: flex; justify-content: center; padding-top: 10px; }
@media (max-width: 767px) {
  :root { --header-h: 68px; --util-h: 0px; } /* obere Leiste ist ausgeblendet, ihre Höhe darf nicht abgezogen werden */
  .util-bar { display: none; }
}

/* ------------------------------------------------------------------ Key Visual im Hero */
.kv-hero { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 52px)); padding-bottom: clamp(32px, 4vw, 56px); }
.kv-hero h1 { margin-top: 22px; font-size: clamp(40px, 6vw, 72px); }
.kv-hero .lead { margin-top: 18px; }
.kv-hero .cta-row { margin-top: 26px; }
.kv-hero .trust-row { margin-top: 18px; }
.kv-stage { position: relative; max-width: 1240px; margin: clamp(28px, 3.2vw, 44px) auto 0; } /* Platz für Evi über der Karte */
.kv-img {
  display: block; width: 100%; height: auto; mix-blend-mode: multiply; /* Weiß des Renderings verschwindet im Verlauf */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, #000 82%, transparent 100%);
  mask-composite: intersect;
}
.kv-fc { z-index: 3; }
.kv-fc-data { left: 3%; bottom: 2%; animation-delay: -1.5s; }
.float-card.kv-fc-evi { left: 48%; top: 0; width: 262px; } /* zwischen den Kreisen und dem Lager, Kreise bleiben frei */
.kv-fc-pay { left: 40%; bottom: -4%; animation-delay: -3.8s; }

/* ------------------------------------------------------------------ Abstände: ein Rhythmus für alle Seiten */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding: clamp(36px, 4.5vw, 56px) 0; }
.sub-hero { padding-bottom: clamp(32px, 4vw, 56px); }
.scene { padding: clamp(32px, 4.5vw, 56px) 0; }
.final-cta { padding-top: clamp(16px, 2vw, 24px); }
.section-head h2, .section-head .lead, .hero h1, .hero .lead, .sub-hero h1, .sub-hero .lead, .scene h2, .flow-panel h3, .aud-sec h2 { text-wrap: balance; }
.scene p, .flow-panel p, .aud-sec p { text-wrap: pretty; }
.section { padding: clamp(48px, 6vw, 80px) 0; }
.tech-band { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.tech-band > div:first-child { max-width: 720px; }
.aud-mini a { grid-template-rows: auto 1fr auto; }
.aud-mini .more-link { align-self: end; }
.scene .scene-copy { align-self: center; }
.scene h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.aud-sec h2 { font-size: clamp(26px, 3vw, 36px); }
@media (max-width: 560px) {
  .flow-tabs { grid-template-columns: repeat(5, minmax(128px, 1fr)); }
  .flow-tab .d { display: none; }
}

/* ------------------------------------------------------------------ Weniger Kartenraster: Sicherheit und Details als ruhige Listen */
.sec-mini, .detail-grid { gap: 0 clamp(24px, 3vw, 40px); }
.sec-mini > div, .detail-grid > div { background: none; box-shadow: none; border-radius: 0; padding: 22px 0 6px; border-top: 1px solid var(--line); }
.detail-grid .t-ico { width: auto; height: auto; background: none; justify-content: start; }
.detail-grid .t-ico .icon { font-size: 22px; }

/* ------------------------------------------------------------------ Hero-Karten im Bild statt über der Kante */
.kv-fc-data { bottom: 9%; left: 2%; }
.kv-fc-pay { bottom: 4%; left: auto; right: 3%; } /* am Lager */

/* ------------------------------------------------------------------ Illustration im Kopf der Produktseiten (gleicher Stil wie das Key Visual) */
.sub-illu {
  display: block; width: 100%; height: auto; max-width: 680px; margin-left: auto; mix-blend-mode: multiply;
  /* nur die Ränder ausblenden (je Seite ~9 %), damit die Szene bis in die Ecken scharf bleibt */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
}
@media (max-width: 860px) { .sub-illu { margin: 0 auto; max-width: 480px; } }

/* ------------------------------------------------------------------ Breite Szene + Bühne mit Tiefe  */
.scene.wide { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.scene.wide .scene-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px clamp(32px, 5vw, 72px); align-items: end; }
.scene.wide .scene-copy .kicker { grid-column: 1; }
.scene.wide .scene-copy h2 { grid-column: 1; }
.scene.wide .scene-copy p { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; max-width: 560px; }

.stage { position: relative; padding: 0 clamp(0px, 3vw, 40px) clamp(8px, 1.5vw, 16px); }
/* dezent: Fenster gerade, nur der gewohnte weiche Schein dahinter, Kennzahlen als kleine ruhige Karten an der Fensterkante */
.stage .gallery-window { max-width: 1080px; }
.stage-callout {
  position: absolute; z-index: 2; min-width: 150px; padding: 10px 14px 11px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px rgb(43 45 53 / 6%), 0 12px 28px -14px rgb(43 45 53 / 28%);
}
.stage-callout small { display: block; font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3, #6b6f7a); }
.stage-callout b { display: block; margin-top: 3px; font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stage-callout b.brand { color: var(--brand); }
.stage-callout b.ok { color: #047857; }
.stage-callout span { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-2); }
.stage-callout .bar { margin-top: 7px; height: 4px; border-radius: 4px; background: #e6f4ee; overflow: hidden; }
.stage-callout .bar i { display: block; height: 100%; background: #10b981; border-radius: 4px; }
.stage-callout.c0 { left: 0; top: 34%; }
.stage-callout.c1 { right: 0; bottom: 12%; }
@media (max-width: 860px) {
  .scene.wide .scene-copy { grid-template-columns: minmax(0, 1fr); }
  .scene.wide .scene-copy p { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .stage { padding: 0; }
  .stage-callout { position: relative; display: inline-block; vertical-align: top; min-width: 0; width: calc(50% - 6px); margin-top: 12px; left: auto; right: auto; top: auto; bottom: auto; }
  .stage-callout.c1 { margin-left: 12px; }
}

/* Gerendertes 3D-Bild in der 3D-Ansicht des Planers (System Design) */
.ps-stage > .iso-render { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; mix-blend-mode: multiply; transform: scale(1.16); transform-origin: 52% 56%; }

/* KI-Agent-Seite: Evi-Demo im Seitenkopf mit weniger Luft oben (nur breit; schmal gilt der Abstand aus site.css für das Maskottchen) */
@media (min-width: 861px) { .sub-evi-demo { padding-top: 20px; } }

/* ------------------------------------------------------------------ Handy: Menü scrollt in sich, Seite dahinter steht */
.mobile-nav { max-height: calc(100vh - var(--header-h) - 12px); max-height: calc(100dvh - var(--header-h) - 12px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.has-announce .mobile-nav { max-height: calc(100dvh - var(--header-h) - var(--announce-h, 0px) - 12px); }
body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------------ Handy: Key Visual als Ausschnitt (rechter Kreis und Lager groß),
   ohne leeren Himmel darüber und ohne Lücke darunter; Verschiebung in % der Bildhöhe, passt bei jeder Breite */
@media (max-width: 560px) {
  .kv-stage { overflow: hidden; margin: 22px -16px 0; aspect-ratio: 390 / 190; }
  .kv-img {
    position: absolute; left: -68%; top: 0; width: 186%; max-width: none; margin: 0; transform: translateY(-20%);
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  }
  .kv-hero { padding-bottom: 28px; }
}

/* Sehr schmale Handys (bis 400 px): Logo, Demo-Knopf und Menüsymbol passen sonst nicht nebeneinander */
@media (max-width: 400px) {
  .header-cta { gap: 6px; }
  .header-cta .btn-primary.btn-sm { padding: 0 12px; font-size: 13px; }
  .site-header .brand img { width: 104px; height: auto; }
}
