/* 3D-Effekte (Stufe 1) – Vorschau, nicht live. Nur aktiv, wenn JS die Klasse html.d3 setzt. */
.banner { position: relative; }
.d3-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.banner > .container { position: relative; z-index: 1; }
.d3-orb { position: absolute; border-radius: 50%; will-change: transform; opacity: .55;
  background: radial-gradient(circle at 32% 28%, #fff 0, #c0e0f0 22%, #00b0f0 55%, #003060 100%);
  box-shadow: 0 30px 60px rgba(0, 48, 96, .25), inset -12px -16px 30px rgba(0, 48, 96, .35); filter: blur(.4px); }
.d3-orb.o1 { width: 120px; height: 120px; left: 3%; top: 14%; }
.d3-orb.o2 { width: 64px; height: 64px; left: 46%; top: 8%; opacity: .45; }
.d3-orb.o3 { width: 200px; height: 200px; right: -50px; top: 52%; opacity: .28; filter: blur(2px); }
.d3-orb.o4 { width: 40px; height: 40px; left: 40%; bottom: 10%; opacity: .6; }
.d3-orb.o5 { width: 90px; height: 90px; right: 12%; top: 6%; opacity: .4; }

/* Hero-Bild: schwebt und folgt der Maus */
html.d3 .banner .ml-anim { perspective: 900px; animation: d3-float 6s ease-in-out infinite; }
html.d3 .banner .ml-anim-img { transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform;
  filter: drop-shadow(0 28px 36px rgba(0, 48, 96, .28)); }
@keyframes d3-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Karten: kippen mit der Maus, Glanz, Schatten */
html.d3 .card-ser, html.d3 .ml-ki-tile, html.d3 .card-work, html.d3 .ml-card { transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .2s ease-out; will-change: transform; position: relative; }
html.d3 .d3-hover { box-shadow: 0 26px 46px rgba(0, 48, 96, .22) !important; z-index: 3; }
.d3-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%); }
.d3-hover > .d3-glare { opacity: 1; }
html.d3 .card-ser > *:not(.d3-glare), html.d3 .ml-ki-tile > *:not(.d3-glare) { transform: translateZ(26px); }

/* Einblenden beim Scrollen: aus der Tiefe nach vorn */
html.d3 .d3-reveal { opacity: 0; transform: perspective(1000px) translateY(70px) translateZ(-120px) rotateX(16deg); transform-origin: 50% 100%;
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d3-delay, 0s); }
html.d3 .d3-reveal.d3-in { opacity: 1; transform: none; }

@media (hover: none), (pointer: coarse) {
  .d3-orb.o3, .d3-orb.o5 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.d3 .banner .ml-anim { animation: none; }
  html.d3 .d3-reveal { opacity: 1; transform: none; transition: none; }
  .d3-orbs { display: none; }
}

/* Stufe 2: 3D-Objekt im Kopfbereich */
.d3-stage { width: 100%; max-width: 540px; aspect-ratio: 1 / 1; margin: 0 auto; position: relative; }
.d3-stage canvas { width: 100% !important; height: 100% !important; display: block; filter: drop-shadow(0 30px 40px rgba(0, 48, 96, .25)); }

/* ---- ganze Webseite ---- */
/* Unterseiten: Kugeln als fester Hintergrund hinter dem Inhalt */
.d3-orbs-fix { position: fixed; inset: 0; z-index: -1; }
.d3-orbs-fix .d3-orb { opacity: .35; }
.d3-orbs-fix .d3-orb.o1 { left: 2%; top: 22%; }
.d3-orbs-fix .d3-orb.o3 { right: -70px; top: 60%; }

/* Karten: Tiefe im Inneren */
html.d3 .ml-card { transform-style: preserve-3d; }
html.d3 .ml-card > *:not(.d3-glare) { transform: translateZ(16px); }
html.d3 .ml-card .ml-card-img, html.d3 .ml-card .ml-card-img * { transform: none; }

/* Überschriften wirken wie Körper (gestapelter Schatten) */
section:not(.ml-ki-band):not(.btm-bar) h1, section:not(.ml-ki-band):not(.btm-bar) h2 {
  text-shadow: 1px 1px 0 #d9ecf7, 2px 2px 0 #b9dcf0, 3px 3px 0 #94c8e6, 4px 6px 10px rgba(0, 48, 96, .22); }

/* Knöpfe: erhabene 3D-Tasten */
.btn-large, .ml-btn-ghost, .view-btn, .more-btn, .ml-card-link-more { transition: transform .15s, box-shadow .15s; }
.btn-large { box-shadow: 0 5px 0 #002040, 0 10px 16px rgba(0, 48, 96, .3); }
.btn-large:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #002040, 0 16px 22px rgba(0, 48, 96, .3); }
.btn-large:active { transform: translateY(4px); box-shadow: 0 1px 0 #002040, 0 3px 6px rgba(0, 48, 96, .3); }
.ml-btn-ghost:hover, .view-btn:hover, .more-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 18px rgba(0, 48, 96, .22); }

/* Menü: Untermenü klappt räumlich auf */
.main-menu li { perspective: 700px; }
.main-menu li:hover > .sub-menu { transform-origin: top center; animation: d3-drop .35s ease-out; }
@keyframes d3-drop { from { opacity: 0; transform: rotateX(-55deg); } to { opacity: 1; transform: none; } }

/* Bilder in Beiträgen: leichte Tiefe */
.ml-card-img img, .ml-page-top img { transition: transform .35s, box-shadow .35s; }
.ml-card-img:hover img { transform: scale(1.05); }

/* kleines 3D-Objekt auf Unterseiten (rechts oben im Seitenkopf) */
.d3-stage-mini { position: absolute; right: 2%; top: 20px; width: 230px; max-width: none; margin: 0; z-index: 0; pointer-events: none; opacity: .95; }
.d3-host { position: relative; }
.d3-host > .container, .d3-host > .row { position: relative; z-index: 1; }
@media (max-width: 1100px) { .d3-stage-mini { display: none; } }
.ml-card h1, .ml-card h2, .ml-card h3, .ml-card h4, .ml-card a { text-shadow: none !important; }

/* ============ 3D-Erweiterungen ============ */
.d3-host-fluid { overflow: hidden; }
.d3-fluid, .d3-netz { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.d3-netz { opacity: .9; }
.d3-host-fluid > .container { position: relative; z-index: 1; }
.seo-check-section.d3-host { overflow: hidden; }
.seo-check-section.d3-host > .container { position: relative; z-index: 1; }

/* Reise durch die 3D-Welt (Scrollytelling) */
.d3-reise { position: relative; height: 420vh; background: #00122b; }
.d3-reise-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.d3-reise-pin canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.d3-reise-ui { position: absolute; left: max(24px, 6vw); top: 50%; transform: translateY(-50%); max-width: 430px; color: #fff; z-index: 2; text-shadow: 0 2px 18px rgba(0, 18, 43, .8); }
.d3-reise-ui > * { opacity: 0; transform: translateY(18px); }
.d3-reise-ui.d3-in > * { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.d3-reise-ui.d3-in > *:nth-child(2) { transition-delay: .08s; } .d3-reise-ui.d3-in > *:nth-child(3) { transition-delay: .16s; } .d3-reise-ui.d3-in > *:nth-child(4) { transition-delay: .24s; }
.d3-kick { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #00b0f0; margin-bottom: 10px; font-weight: 600; }
.d3-kick-dark { color: #0090f0; }
.d3-reise-ui h2 { color: #fff !important; text-shadow: 0 2px 18px rgba(0, 18, 43, .8) !important; margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; }
.d3-reise-ui p { color: #dcecf7; font-size: 17px; line-height: 1.55; margin: 0 0 20px; }
.d3-dots { display: flex; gap: 12px; margin-top: 26px; }
.d3-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #00b0f0; background: transparent; padding: 0; cursor: pointer; transition: transform .2s, background .2s; }
.d3-dot.on { background: #00b0f0; transform: scale(1.35); box-shadow: 0 0 14px #00b0f0; }
.d3-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #9fd8f5; font-size: 13px; letter-spacing: .08em; z-index: 2; animation: d3-pulse 2.4s ease-in-out infinite; }
@keyframes d3-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.d3-reise-static { height: 100vh; }
@media (max-width: 767px) { .d3-reise-ui { left: 20px; right: 20px; top: auto; bottom: 70px; transform: none; max-width: none; } .d3-reise-ui p { font-size: 15px; margin-bottom: 14px; } }

/* Paket-Konfigurator */
.d3-konf { margin-bottom: 30px; }
.d3-konf-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #eaf6fd 0, #d6ebf8 55%, #c0e0f0 100%); overflow: hidden; cursor: grab; }
.d3-konf-stage.drag { cursor: grabbing; }
.d3-konf-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.d3-konf-tip { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: 12px; color: #4a6a85; background: rgba(255, 255, 255, .75); padding: 3px 10px; border-radius: 20px; pointer-events: none; }
.d3-tabs { display: flex; gap: 8px; margin: 14px 0 12px; flex-wrap: wrap; }
.d3-tab { padding: 9px 18px; border-radius: 22px; border: 2px solid #c0e0f0; background: #fff; color: #003060; font-weight: 600; cursor: pointer; transition: all .2s; }
.d3-tab:hover { border-color: #0090f0; }
.d3-tab.on { background: #0090f0; border-color: #0090f0; color: #fff; box-shadow: 0 6px 14px rgba(0, 144, 240, .35); }
.d3-sw { display: flex; gap: 10px; margin-bottom: 14px; }
.d3-swb { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #b9cde0; cursor: pointer; padding: 0; transition: transform .2s; }
.d3-swb:hover { transform: scale(1.12); } .d3-swb.on { box-shadow: 0 0 0 3px #0090f0; }
.d3-konf-info { margin: 0 0 6px; } .d3-konf-preis { margin: 0 0 16px; color: #003060; }
.d3-skip { position: absolute; top: 96px; right: 24px; z-index: 3; background: rgba(0, 18, 43, .55); color: #cfeaff; border: 1px solid rgba(0, 176, 240, .6); border-radius: 22px; padding: 7px 16px; font-size: 13px; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s; }
.d3-skip:hover { background: #0090f0; color: #fff; }
.d3-reise-ui h2 { font-size: clamp(22px, 3vw, 38px); }
.d3-reise-ui h2, .d3-reise-ui p { hyphens: manual !important; -webkit-hyphens: manual !important; word-break: normal !important; overflow-wrap: normal; }

/* Atome statt blauer Kreise */
.d3-atom-host { background: none !important; box-shadow: none !important; position: relative !important; isolation: isolate; color: transparent !important; overflow: visible !important; }
.d3-atom-host::before, .d3-atom-host::after { display: none !important; }
.d3-atom-host > canvas.d3-atom { position: absolute; left: 50%; top: 50%; width: 112%; height: 112%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; display: block; }
.ml-step-num.d3-atom-host { color: #fff !important; text-shadow: 0 1px 4px rgba(0, 20, 60, .95), 0 0 8px rgba(0, 20, 60, .8); font-weight: 800; }
.ml-card .ml-card-icon.d3-atom-host { transform: none; }

/* Startseite: 3D-Chip mit Strom-Impulsen im Hintergrund des Kopfbereichs (ersetzt das flache Hintergrundbild) */
.d3-chipbg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.banner { overflow: hidden; }

/* Startseite: Atom klein am linken Rand, Chip rechts; hinter dem Text bleibt der Chip-Hintergrund leer (Text immer gut lesbar) */
.d3-chipbg { -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 47%, #000 61%); mask-image: linear-gradient(to right, transparent 0, transparent 47%, #000 61%); }
@media (min-width: 992px) {
  .banner .col-md-6:has(> .d3-stage) { position: static; }
  .banner .d3-stage { position: absolute; left: calc((100% - 100vw) / 2 + 1.4vw); top: 50%; transform: translateY(-50%); width: clamp(120px, 13vw, 220px); max-width: none; margin: 0; z-index: 1; }
}
/* zwischen 992 und 1299 px ist links kein Platz neben dem Text: Atom dort ausblenden (Chip bleibt rechts) */
@media (min-width: 992px) and (max-width: 1299px) { .banner .d3-stage { display: none; } }
@media (max-width: 991px) { .d3-chipbg { -webkit-mask-image: none; mask-image: none; opacity: .3; } }

/* Atom links: helle Variante direkt auf dem weißen Hintergrund (kein dunkler Kreis) */
.banner .d3-stage { display: none !important; } /* ersetzt das kleine Atom links */
.d3-neon { position: absolute; left: 1vw; top: 50%; transform: translateY(-50%); width: clamp(170px, 17vw, 290px); aspect-ratio: 1 / 1; z-index: 1; pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 90, 200, .28)); }
.d3-neon canvas { width: 100% !important; height: 100% !important; display: block; }
@media (max-width: 1299px) { .d3-neon { display: none; } }

/* KI-Welt (/ki-automatisierung/) */
.d3-kiwelt { background: #010a18; }
.d3-kiwelt .d3-reise-ui { max-width: 400px; }
.d3-modul { display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 20px; background: rgba(0, 160, 255, .18); border: 1px solid rgba(0, 176, 240, .6); color: #bfe6ff; font-size: 13px; letter-spacing: .04em; }
.d3-sel { position: absolute; right: max(20px, 2.5vw); bottom: 56px; z-index: 3; width: min(290px, 44vw); padding: 14px 16px; border-radius: 14px; background: rgba(2, 18, 44, .72); border: 1px solid rgba(0, 176, 240, .5); backdrop-filter: blur(6px); color: #dcecf7; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.d3-sel b { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; } .d3-sel small { display: block; font-size: 12px; color: #9fc4e2; margin-bottom: 8px; }
.d3-sel-liste { font-size: 14px; color: #7fd3ff; min-height: 20px; margin-bottom: 10px; }
.d3-sel .d3-sel-btn { display: block; text-align: center; padding: 9px 14px; font-size: 14px; }
@media (max-width: 767px) { .d3-sel { display: none; } }

/* KI-Shop-Welt (/ki-online-shop-*): helle Variante passend zur türkisen Infografik */
.d3-shopwelt { background: #e9f4f4; }
.d3-shopwelt .d3-reise-ui { max-width: 410px; text-shadow: none; color: #0c2d57; }
.d3-shopwelt .d3-reise-ui h2 { color: #0c2d57 !important; text-shadow: none !important; }
.d3-shopwelt .d3-reise-ui p { color: #28465f; }
.d3-shopwelt .d3-kick { color: #0a9a92; }
.d3-shopwelt .d3-modul { background: rgba(25, 183, 174, .16); border-color: rgba(10, 154, 146, .6); color: #0a5f66; }
.d3-shopwelt .d3-dot { border-color: #19b7ae; } .d3-shopwelt .d3-dot.on { background: #19b7ae; box-shadow: 0 0 14px rgba(25, 183, 174, .8); }
.d3-shopwelt .d3-skip { background: rgba(255, 255, 255, .75); color: #0c2d57; border-color: rgba(10, 154, 146, .6); }
.d3-shopwelt .d3-skip:hover { background: #19b7ae; color: #fff; }
.d3-shopwelt .d3-hint { color: #48697f; }
.d3-shopwelt .d3-sel { background: rgba(255, 255, 255, .82); border-color: rgba(10, 154, 146, .5); color: #28465f; box-shadow: 0 10px 40px rgba(12, 45, 87, .18); }
.d3-shopwelt .d3-sel b { color: #0c2d57; } .d3-shopwelt .d3-sel small { color: #4d6d84; } .d3-shopwelt .d3-sel-liste { color: #0a8f88; }
