/* DYNAMIS 321-Stil: Lösungsmenü und Lösungsseiten (ergänzt d321.css) */

/* ---------- mega menu (Lösungen) ---------- */
.nav { align-items: center; align-self: stretch; }
.nav .dd { position: static; }
.nav .dd > button { background: none; border: 0; padding: 0; font-size: 14px; font-weight: 500; color: var(--ink); opacity: .82; display: inline-flex; align-items: center; gap: 7px; height: 64px; }
.nav .dd > button::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.nav .dd:hover > button, .nav .dd.is-open > button { opacity: 1; }
.nav .dd:hover > button::after, .nav .dd.is-open > button::after { transform: translateY(1px) rotate(-135deg); }
.nav a.is-active, .nav .dd.is-active > button { opacity: 1; font-weight: 600; }
.mega { position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(30,34,39,.3); padding: 28px 0 34px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .35s var(--ease), visibility 0s .3s; }
.nav .dd:hover .mega, .nav .dd.is-open .mega, .nav .dd:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--ease); }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.mega__col { display: grid; gap: 12px; align-content: start; }
.mega__col h6 { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.mlink { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14px; font-weight: 600; opacity: 1 !important; transition: border-color .2s, box-shadow .3s, transform .3s var(--ease); }
.mlink:hover { border-color: rgba(245,197,24,.6); box-shadow: var(--shadow-s); transform: translateY(-1px); }
.mlink.is-active { border-color: var(--accent); background: #fffaf0; }
.mlink svg { width: 20px; height: 20px; color: #a0791a; flex: none; }
.mlink small { display: block; font-weight: 400; font-size: 12px; color: var(--soft); }
.mnav details { border-bottom: 1px solid var(--line); }
.mnav summary { padding: 14px 4px; font-weight: 500; list-style: none; cursor: pointer; display: flex; justify-content: space-between; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary::after { content: "+"; color: var(--soft); }
.mnav details[open] summary::after { content: "\2013"; }
.mnav details a { display: block; padding: 10px 14px; border: 0; font-size: 14.5px; }
.mnav details a.is-active { color: #a0791a; font-weight: 600; }
.mnav details small { display: block; padding: 8px 14px 2px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 960px) { .mnav { max-height: calc(100svh - 64px); overflow-y: auto; } }

/* ---------- product pages ---------- */
.p-hero { padding: 140px 0 70px; text-align: center; background: radial-gradient(60% 50% at 50% 0%, #fff4cf, rgba(255,255,255,0) 70%), #fff; overflow: hidden; }
.p-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 1.4rem + 2.6vw, 54px); line-height: 1.12; letter-spacing: -.02em; margin: 22px auto 0; max-width: 900px; }
.p-hero h1 b { font-weight: 760; }
.p-hero .hero__cta { justify-content: center; }
.p-stage { position: relative; max-width: 1080px; margin: 64px auto 0; }
.p-stage .device { max-width: 760px; text-align: left; }
.p-stage .screen { grid-template-columns: 140px 1fr; }
.p-stage .screen main { grid-template-columns: 1.45fr 1fr; padding: 18px; }
@media (max-width: 900px) { .p-stage .screen, .p-stage .screen main { grid-template-columns: 1fr; } .p-stage .screen main { padding: 12px; } }
.fchips { position: absolute; top: 30px; display: grid; gap: 22px; z-index: 3; }
.fchips--l { left: 0; justify-items: start; } .fchips--r { right: 0; justify-items: end; }
.fchip { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 8px 18px 8px 8px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-s); white-space: nowrap; }
.fchip i { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #ffe9a3, #f6d36b); display: grid; place-items: center; color: #6b5000; font-style: normal; flex: none; }
.fchip i svg { width: 16px; height: 16px; }
.fchips--l .fchip:nth-child(2n) { translate: 22px 0; }
.fchips--r .fchip:nth-child(2n) { translate: -22px 0; }
@media (max-width: 1140px) {
  .fchips { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 16px; }
  .fchips--r { margin: 16px 0 0; }
  .fchips .fchip:nth-child(n) { translate: none; }
  .p-stage .device { max-width: none; }
}
@media (max-width: 520px) { .fchip { font-size: 12px; padding-right: 12px; } .fchip i { width: 24px; height: 24px; } }

.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.problem .h2 { margin-top: 18px; }
.problem .sub { margin-top: 20px; }
.ptiles { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-bottom: 40px; }
.ptile { position: relative; border-radius: 26px; padding: 7px; background: linear-gradient(135deg, #ff9d8f, #ffd1c9); box-shadow: 0 20px 40px -20px rgba(232,68,60,.45); }
.ptile:nth-child(2n) { translate: 0 40px; }
.ptile img { border-radius: 20px; aspect-ratio: 1.15; width: 100%; object-fit: cover; object-position: 75% 50%; }
.ptile span { position: absolute; left: 12px; bottom: 22px; background: #fff; font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-s); }
@media (max-width: 900px) { .problem { grid-template-columns: 1fr; gap: 30px; } .ptiles { gap: 16px; } .ptile:nth-child(2n) { translate: 0 24px; } .ptile span { font-size: 11px; left: 8px; } }

.hubcard { background: linear-gradient(#fff, var(--paper)); border: 1px solid var(--line); border-radius: 40px; padding: 80px 56px; box-shadow: var(--shadow); }
.hub { display: grid; grid-template-columns: 1fr 280px 1fr; gap: 28px; align-items: center; }
.hub__col { display: grid; gap: 28px; }
.bcard { background: #fff; border-radius: 20px; padding: 22px 22px 24px; box-shadow: var(--shadow-s); border: 4px solid #f6f3ee; text-align: left; color: var(--ink); }
.bcard i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #ffe9a3, #f6d36b); color: #6b5000; margin-bottom: 14px; }
.bcard i svg { width: 17px; height: 17px; }
.bcard b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.bcard p { font-size: 14px; color: var(--soft); line-height: 1.55; }
.hub__core { position: relative; aspect-ratio: 1; }
.hub__core::before, .hub__core::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(30,34,39,.08); }
.hub__core::before { inset: 4%; }
.hub__core::after { inset: 26%; background: radial-gradient(circle, rgba(245,197,24,.14), transparent 70%); }
.hub__center { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 74px; height: 74px; border-radius: 20px; background: var(--dark) url("logo/dynamis-bildmarke-dunkel.svg") center / 40px no-repeat; box-shadow: 0 0 0 10px rgba(245,197,24,.14), 0 18px 40px -12px rgba(0,0,0,.5); z-index: 2; }
.hub__orbit { position: absolute; inset: 0; animation: spin 60s linear infinite; }
.hub__orbit span { position: absolute; width: 38px; height: 38px; margin: -19px; border-radius: 11px; background: #fff; box-shadow: var(--shadow-s); display: grid; place-items: center; color: var(--soft); }
.hub__orbit span svg { width: 17px; height: 17px; animation: spin 60s linear infinite reverse; }
@media (prefers-reduced-motion: reduce) { .hub__orbit, .hub__orbit span svg { animation: none; } }
@media (max-width: 900px) { .hubcard { padding: 48px 18px; border-radius: 28px; } .hub { grid-template-columns: 1fr; } .hub__core { width: 220px; justify-self: center; order: -1; } }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }

.wide { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; padding: 18px; background: #fff; border-radius: 16px; text-align: left; }
.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 0 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td:first-child { font-weight: 600; }
.tbl em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #e7f7ee; color: #23885a; }
.tbl em.w { background: #fff3c8; color: #8a6700; }
.tbl em.r { background: #ffe5e2; color: #c0392b; }
.detail { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.detail h5 { margin: 0; font-size: 14px; }
.detail .f { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.detail .f span { color: var(--soft); }
.detail .f b { text-align: right; }
.detail .acts { display: flex; gap: 8px; margin-top: auto; }
.detail .acts b { flex: 1; text-align: center; padding: 9px; border-radius: 9px; font-size: 12px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.detail .acts b + b { background: var(--paper); }
@media (max-width: 900px) { .wide { grid-template-columns: 1fr; padding: 10px; } }

.more-sol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1000px) { .more-sol { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .more-sol { grid-template-columns: 1fr 1fr; } }
.dep img { object-position: 70% 50%; }

/* ---------- Erklärvideo auf der Startseite (wie bei 321med) ---------- */
.device__frame .xv-preview { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: cover; border-radius: 16px; background: #fff; opacity: 0; pointer-events: none; transition: opacity .6s; z-index: 2; }
.device__frame.has-video .xv-preview { opacity: 1; }
.device__frame .xv-play { z-index: 3; cursor: pointer; transition: transform .3s var(--ease); }
.device__frame .xv-play:hover { transform: scale(1.08); }
.device__frame .xv-play[hidden] { display: none; }
.xv-modal { width: min(1100px, 92vw); padding: 0; border: 0; border-radius: 18px; background: #000; overflow: visible; }
.xv-modal::backdrop { background: rgba(18,20,23,.78); backdrop-filter: blur(4px); }
.xv-modal video { display: block; width: 100%; border-radius: 18px; }
.xv-close { position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; line-height: 1; box-shadow: var(--shadow-s); cursor: pointer; }
@media (max-width: 900px) { .device__frame .xv-preview { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); } .xv-close { top: 8px; right: 8px; } }

/* ---------- DYNAMIS Logo (Logopaket, Richtlinien v1.0) ---------- */
.head .logo { display: flex; align-items: center; flex: none; }
.head .logo img { display: block; height: 34px; width: auto; }
.foot .brand { display: inline-block; margin-bottom: 22px; }
.foot .brand img { display: block; height: 42px; width: auto; }
.screen aside .lg img { width: 34px; height: 34px; }
@media (max-width: 960px) { .head .logo img { height: 30px; } }

/* ---------- Erklärvideo-Rahmen mit Vorschaubild (Startseite) ---------- */
.xv { position: relative; max-width: 1000px; margin: 0 auto; }
.xv__frame { background: #e9e6e0; border-radius: 34px; padding: 18px; box-shadow: var(--shadow); }
.xv__poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #fbfbfa; cursor: pointer; }
.xv__poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.xv__poster:hover img, .xv__poster:focus-visible img { transform: scale(1.03); }
.xv__play { position: absolute; left: 50%; top: 57%; width: 96px; height: 96px; translate: -50% -50%; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 18px 40px -12px rgba(212,165,0,.7); transition: transform .35s var(--ease); }
.xv__play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid rgba(245,197,24,.55); animation: xvpuls 2s ease-out infinite; }
.xv__play::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -38% -50%; border-left: 28px solid var(--accent-ink); border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.xv__poster:hover .xv__play { transform: scale(1.08); }
.xv__label { position: absolute; left: 50%; top: calc(57% + 76px); translate: -50% 0; padding: 9px 18px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-s); font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
@keyframes xvpuls { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .xv__play::before { animation: none; } }
.flow.flow--unter { margin-top: 28px; padding: 0 18px; }
@media (max-width: 900px) {
  .xv__frame { padding: 8px; border-radius: 22px; }
  .xv__poster { border-radius: 14px; }
  .xv__play { width: 60px; height: 60px; }
  .xv__play::after { border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; }
  .xv__label { display: none; }
  .flow.flow--unter { padding: 0; margin-top: 20px; }
}

/* Werksbild auf dem Handy: Häkchen am linken Rand nicht abschneiden */
@media (max-width: 520px) { .orb .chip--rand-l { left: 2% !important; } }

/* ---------- Vorher / Mit DYNAMIS ---------- */
.vm { padding: 10px 0 30px; }
.vm__box { max-width: 900px; margin: 0 auto; padding: 30px 34px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.vm__kopf, .vm__z { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 12px; }
.vm__kopf { padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.vm__kopf span:first-child { color: var(--faint); }
.vm__kopf span:last-child { grid-column: 3; color: #8a6a00; }
.vm__z { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.vm__z:last-child { border-bottom: 0; padding-bottom: 4px; }
.vm__alt { color: var(--soft); text-decoration: line-through; text-decoration-color: rgba(229,72,77,.55); }
.vm__z i { font-style: normal; text-align: center; color: #D4A500; font-weight: 800; }
.vm__neu { font-weight: 600; }
@media (max-width: 640px) {
  .vm__box { padding: 22px 18px; }
  .vm__kopf { display: none; }
  .vm__z { grid-template-columns: 1fr; gap: 4px; }
  .vm__z i { text-align: left; }
}

/* ---------- Kopfleiste: Navigation als helle Kapsel in der Mitte (Variante C) ---------- */
.head { height: 84px; background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .35s, box-shadow .35s, height .35s; }
.head.is-scrolled { height: 72px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 rgba(30, 34, 39, .07), 0 14px 30px -24px rgba(30, 34, 39, .35); }
.head .wrap { gap: 24px; }
.nav { margin: 0 auto; align-self: center; padding: 6px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px -14px rgba(30, 34, 39, .35), inset 0 0 0 1px rgba(30, 34, 39, .07); }
.nav > a, .nav .dd > button { color: var(--ink); opacity: .75; padding: 9px 16px; border-radius: 999px; height: auto; transition: opacity .2s, background .2s, color .2s; }
.nav > a:hover, .nav .dd:hover > button, .nav .dd.is-open > button { opacity: 1; background: rgba(30, 34, 39, .06); }
.nav > a.is-active, .nav .dd.is-active > button { opacity: 1; background: #1b1e22; color: #fff; }
.head__r { margin-left: 0; }
.head__r .btn { border-radius: 999px; }
.nav .mega a { color: var(--ink); }
.mega { top: 74px; left: max(16px, calc((100% - var(--wrap)) / 2)); right: max(16px, calc((100% - var(--wrap)) / 2)); border: 0; border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(20, 22, 26, .4), 0 0 0 1px var(--line); padding: 26px 26px 30px; }
.head.is-scrolled .mega { top: 66px; }
.head .mega .wrap { width: 100%; height: auto; display: block; }
@media (max-width: 960px) {
  .head, .head.is-scrolled { height: 68px; }
  .head__r { margin-left: auto; }
  .head.is-scrolled { background: rgba(255, 255, 255, .9); }
  .mnav { inset: 72px 16px auto; border: 0; border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(20, 22, 26, .45), 0 0 0 1px var(--line); }
}

/* Vorher / Mit: Animation wie auf der bisherigen Seite (Zeile für Zeile) */
.vm__alt { text-decoration-color: transparent; transition: text-decoration-color .5s, color .5s; }
.vm__z i { opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .5s var(--ease); }
.vm__neu { opacity: .25; transform: translateX(-8px); transition: opacity .5s .15s, transform .6s .15s var(--ease); }
.vm__z.on .vm__alt { text-decoration-color: rgba(229,72,77,.75); color: var(--faint); }
.vm__z.on i { opacity: 1; transform: none; }
.vm__z.on .vm__neu { opacity: 1; transform: none; }

/* Preiszeile im Hero der App-Seiten */
.p-preis { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--soft); text-decoration: underline; text-decoration-color: rgba(0,0,0,.15); text-underline-offset: 4px; }
.p-preis b { color: var(--ink); }
.p-preis:hover { color: var(--ink); }

/* Logo in heller Kachel, passend zur Pillen-Navigation (wie lkm-beratung.de) */
.head .logo { height: 52px; padding: 0 18px; border-radius: 16px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px -14px rgba(30, 34, 39, .35), inset 0 0 0 1px rgba(30, 34, 39, .07); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.head .logo:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -14px rgba(30, 34, 39, .45), inset 0 0 0 1px rgba(30, 34, 39, .1); }
.head .logo img { height: 26px; }
@media (max-width: 960px) { .head .logo { height: 46px; padding: 0 14px; border-radius: 14px; } .head .logo img { height: 22px; } }

/* Kein durchgehender Streifen beim Scrollen: Logo-Kachel, Navigation und Button schweben frei (wie lkm-beratung.de) */
.head.is-scrolled, .head { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-color: transparent; }
.head.is-scrolled .head__r .btn { box-shadow: 0 10px 26px -12px rgba(30, 34, 39, .45); }
.head .mnav-btn, .head .burger { background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px -14px rgba(30, 34, 39, .35), inset 0 0 0 1px rgba(30, 34, 39, .07); }

/* Navigation mit "Gratis-Downloads": nichts umbrechen, Abstände etwas enger */
.nav > a, .nav .dd > button, .head__r .btn { white-space: nowrap; }
.nav > a, .nav .dd > button { padding: 9px 13px; }
@media (max-width: 1280px) { .nav > a, .nav .dd > button { padding: 9px 10px; font-size: 13.5px; } }

/* Kleines Dropdown "Plattform" (Übersicht, Vorteile) wie bei 321med */
.nav .dd--klein { position: relative; }
.drop { position: absolute; left: 50%; top: calc(100% + 14px); width: 290px; display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -24px rgba(20,22,26,.4), 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .25s, transform .35s var(--ease), visibility 0s .3s; }
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav .dd--klein:hover .drop, .nav .dd--klein.is-open .drop, .nav .dd--klein:focus-within .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s, transform .35s var(--ease); }
.mlink--store { background: #fffaf0; border-color: rgba(245,197,24,.5); }
.mnav details a { padding-left: 12px; }
