/* Omni Solutions Global® Co. Ltd. — Silver / Chrome + Chameleon Wave */

:root {
  --bg-deep: #060608;
  --bg-anthracite: #0d0d11;
  --bg-surface: rgba(13, 13, 17, 0.82);
  --bg-elevated: rgba(18, 18, 24, 0.9);
  --bg-sidebar: rgba(8, 8, 12, 0.94);
  --text-primary: #ffffff;
  --text-muted: #8e8e98;
  --silver: #c8c8d0;
  --chrome: #e4eaf2;
  --chrome-bright: #f5f7fa;
  --neon-cyan: #00e5ff;
  --neon-blue: #3b82f6;
  --neon-purple: #a855f7;
  --neon-accent: linear-gradient(135deg, #00e5ff 0%, #3b82f6 45%, #a855f7 100%);
  --silver-text: linear-gradient(135deg, #ffffff 0%, #e1e1e6 25%, #a1a1a6 50%, #ffffff 75%, #8e8e98 100%);
  --border: rgba(0, 229, 255, 0.14);
  --border-strong: rgba(168, 85, 247, 0.35);
  --glow: rgba(0, 229, 255, 0.12);
  --sidebar-w: 268px;
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Syne", "Inter", sans-serif;
  --font-portal: "Cormorant Garamond", Georgia, serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --wave-cycle: 36s;
  --chameleon-video-opacity: 0.28;
  --portal-curtain-duration: 1.1s;
  /* Outer chrome thin; inner silver line — rem so rubber font-size scales all chrome */
  --frame-width: 0.3125rem; /* ~5px at 16px root */
  --frame-inset: 1.7rem;    /* ~0.72cm at 16px root */
  --frame-radius: 1rem;
  /* Content clip clears the 2px inner silver stroke — never paint letters on/behind the rim. */
  --chrome-content-inset: calc(var(--frame-inset) + 2px);
  /* Gap inside inner silver ledge — scales with rubber root */
  --chrome-control-gap: clamp(0.45rem, 1.6vw, 1.1rem);
  --chrome-control-top: calc(var(--chrome-content-inset) + var(--chrome-control-gap) + env(safe-area-inset-top, 0px));
  --chrome-control-right: calc(var(--chrome-content-inset) + var(--chrome-control-gap) + env(safe-area-inset-right, 0px));
  --chrome-control-bottom: calc(var(--chrome-content-inset) + var(--chrome-control-gap) + env(safe-area-inset-bottom, 0px));
  --chrome-control-left: calc(var(--chrome-content-inset) + var(--chrome-control-gap) + env(safe-area-inset-left, 0px));
  --osg-rubber: 1;
  --home-inner-gutter: clamp(0.5rem, 1.35vw, 0.8rem);
  --purple-deep: #060608;
  --purple-mid: #0d0d14;
  --purple-rich: #12121c;
  --chameleon-base: radial-gradient(ellipse 140% 105% at 50% 38%, #14141c 0%, #0a0a10 42%, #060608 100%);
  --chameleon-flow: radial-gradient(ellipse 95% 72% at 22% 28%,
    rgba(0, 229, 255, 0.07) 0%,
    transparent 58%),
    radial-gradient(ellipse 82% 62% at 80% 70%,
    rgba(168, 85, 247, 0.08) 0%,
    transparent 60%),
    radial-gradient(ellipse 120% 90% at 50% 100%,
    rgba(0, 0, 0, 0.55) 0%,
    transparent 72%);
  --portal-epoxy-base: linear-gradient(158deg,
    #0c1834 0%,
    #142848 38%,
    #101e3a 72%,
    #0a1428 100%);
  --portal-epoxy-glow: radial-gradient(ellipse 75% 55% at 32% 42%,
    rgba(255, 148, 188, 0.42) 0%,
    transparent 58%),
    radial-gradient(ellipse 68% 50% at 70% 55%,
    rgba(108, 255, 188, 0.36) 0%,
    transparent 54%),
    radial-gradient(ellipse 50% 40% at 50% 80%,
    rgba(180, 140, 255, 0.22) 0%,
    transparent 60%);
  --chrome-frame-gradient: linear-gradient(148deg,
    #5a6678 0%,
    #9aaab8 12%,
    #e8eef6 26%,
    #f8fafc 38%,
    #b8c6d6 52%,
    #dce4ee 64%,
    #8898a8 78%,
    #c0ccd8 90%,
    #586878 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Fluid media — kein max-width:100vw auf * (bricht Portal-Video & 3D-Stage) */
img,
picture,
video:not(#hero-video),
svg:not(.portal-video-sound-btn__icon):not(.sidebar-link-icon) {
  max-width: 100%;
  height: auto;
}

.container {
  width: 95%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: #040208;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font-sans);
  background: var(--chameleon-base);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  overscroll-behavior-x: none;
  border-radius: var(--frame-radius);
  margin: var(--frame-width);
  width: calc(100% - var(--frame-width) * 2);
  min-height: calc(100vh - var(--frame-width) * 2);
  min-height: calc(100dvh - var(--frame-width) * 2);
  box-shadow:
    inset 0 3px 14px rgba(0, 0, 0, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

/* ── Chrom-Rahmen (umlaufend, 3D, abgerundet ~2–3 mm) ── */
.chrome-frame {
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
  border-radius: calc(var(--frame-radius) + 2px);
  padding: var(--frame-width);
  background: var(--chrome-frame-gradient);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    inset 0 -3px 8px rgba(0, 0, 0, 0.5),
    0 6px 28px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(255, 255, 255, 0.08);
}

.chrome-frame::after {
  content: "";
  position: absolute;
  inset: calc(var(--frame-width) + 2px);
  border-radius: calc(var(--frame-radius) - 4px);
  box-shadow: inset 0 4px 18px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

/* ── Chameleon background (reiner Farbverlauf) ── */
.chameleon-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--chameleon-base);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.chameleon-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--chameleon-flow);
  opacity: 1;
  pointer-events: none;
}

.chameleon-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

.chameleon-bg__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--chameleon-video-opacity);
  mix-blend-mode: screen;
  filter: saturate(0.82) brightness(0.72) contrast(1.05);
  pointer-events: none;
}

/* Portal offen: Chameleon bleibt sichtbar — Hero-Video darüber per Screen-Blend (kein schwarzer Kasten) */
body:has(#portal-overlay:not(.portal-hidden)) .chameleon-bg {
  opacity: 1;
  visibility: visible;
  filter: none;
}

body:has(#portal-overlay.portal-hidden) .chameleon-bg {
  opacity: 1;
  visibility: visible;
  filter: none;
}

.chameleon-bg .chameleon-wave {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  will-change: transform, opacity;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: chameleon-wave-cycle var(--wave-cycle) ease-in-out infinite;
}

.chameleon-wave--deep {
  z-index: 1;
  width: 280vmax;
  height: 280vmax;
  margin-left: -140vmax;
  margin-top: -140vmax;
  background:
    radial-gradient(circle at 40% 48%, rgba(0, 229, 255, 0.18) 0%, transparent 24%),
    radial-gradient(circle at 52% 52%, rgba(59, 130, 246, 0.16) 0%, transparent 26%),
    radial-gradient(circle at 58% 46%, rgba(168, 85, 247, 0.14) 0%, transparent 22%);
  filter: blur(56px) saturate(1.15);
}

.chameleon-wave--mid {
  z-index: 2;
  width: 240vmax;
  height: 240vmax;
  margin-left: -120vmax;
  margin-top: -120vmax;
  background:
    radial-gradient(circle at 38% 46%, rgba(0, 229, 255, 0.38) 0%, transparent 18%),
    radial-gradient(circle at 46% 50%, rgba(59, 130, 246, 0.34) 0%, transparent 17%),
    radial-gradient(circle at 52% 52%, rgba(120, 80, 255, 0.3) 0%, transparent 19%),
    radial-gradient(circle at 58% 48%, rgba(168, 85, 247, 0.28) 0%, transparent 16%);
  filter: blur(34px) saturate(1.25);
  animation-delay: -0.15s;
}

.chameleon-wave--crest {
  z-index: 3;
  width: 180vmax;
  height: 180vmax;
  margin-left: -90vmax;
  margin-top: -90vmax;
  background:
    radial-gradient(circle at 44% 50%, rgba(0, 229, 255, 0.52) 0%, transparent 14%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.48) 0%, transparent 13%),
    radial-gradient(circle at 54% 50%, rgba(168, 85, 247, 0.44) 0%, transparent 14%),
    radial-gradient(ellipse 10% 8% at 50% 50%, rgba(255, 255, 255, 0.22) 0%, transparent 68%);
  filter: blur(18px) saturate(1.35) brightness(1.04);
  animation-name: chameleon-wave-crest;
}

/* 12s Glow-Lauf + 3s Pause = 15s pro Richtung, 30s Gesamtzyklus */
@keyframes chameleon-wave-cycle {
  /* Glow 1: unten-links → oben-rechts (12s = 40%) */
  0% {
    opacity: 0.18;
    transform: translate(-84%, 84%) rotate(-8deg) scale(0.92);
  }
  6% { opacity: 0.55; }
  20% { opacity: 0.92; }
  34% { opacity: 0.68; }
  40% {
    opacity: 0.14;
    transform: translate(84%, -84%) rotate(-8deg) scale(1.1);
  }
  41%, 49.9% {
    opacity: 0;
    transform: translate(84%, -84%) rotate(-8deg) scale(1.1);
  }
  /* Glow 2: unten-rechts → oben-links (12s) */
  50% {
    opacity: 0.18;
    transform: translate(84%, 84%) rotate(8deg) scale(0.92);
  }
  56% { opacity: 0.55; }
  70% { opacity: 0.92; }
  84% { opacity: 0.68; }
  90% {
    opacity: 0.14;
    transform: translate(-84%, -84%) rotate(8deg) scale(1.1);
  }
  91%, 100% {
    opacity: 0;
    transform: translate(-84%, -84%) rotate(8deg) scale(1.1);
  }
}

/* Scheitelpunkt-Intensität (Kamm der Welle) */
@keyframes chameleon-wave-crest {
  0% {
    opacity: 0;
    transform: translate(-84%, 84%) rotate(-8deg) scale(0.88);
  }
  6% { opacity: 0.35; }
  20% { opacity: 1; }
  34% { opacity: 0.55; }
  40% {
    opacity: 0;
    transform: translate(84%, -84%) rotate(-8deg) scale(1.05);
  }
  41%, 49.9% {
    opacity: 0;
    transform: translate(84%, -84%) rotate(-8deg) scale(1.05);
  }
  50% {
    opacity: 0;
    transform: translate(84%, 84%) rotate(8deg) scale(0.88);
  }
  56% { opacity: 0.35; }
  70% { opacity: 1; }
  84% { opacity: 0.55; }
  90% {
    opacity: 0;
    transform: translate(-84%, -84%) rotate(8deg) scale(1.05);
  }
  91%, 100% {
    opacity: 0;
    transform: translate(-84%, -84%) rotate(8deg) scale(1.05);
  }
}

a { color: var(--chrome); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus-visible { color: var(--chrome-bright); }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  padding: 0.75rem 1.25rem; background: var(--chrome); color: var(--bg-deep);
  font-weight: 600; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── App shell ── */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
/* Chrome pages: shell is inset — never force full viewport min-height (WP-066) */
body:has(.chrome-frame-inner) .app-shell {
  min-height: 0;
}

/* ── Sidebar (fixed chrome border, never animates) ── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: auto;
  max-height: 100dvh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-strong);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 11045;
  transition: transform var(--transition);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sidebar-brand {
  padding: 1.75rem 1.4rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.38;
  color: var(--chrome-bright);
}

.sidebar-brand-sub {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}

.sidebar-nav {
  flex: 0 1 auto;
  padding: 1.1rem 0.8rem;
  overflow-y: auto;
}

.sidebar-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.sidebar-link:hover, .sidebar-link:focus-visible {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-link.is-active {
  color: var(--chrome-bright);
  background: linear-gradient(135deg, rgba(185, 200, 220, 0.1), rgba(120, 140, 165, 0.05));
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.sidebar-link-icon { width: 1.05rem; height: 1.05rem; opacity: 0.55; flex-shrink: 0; }
.sidebar-link-icon--app {
  width: 1.35rem;
  height: 1.35rem;
  opacity: 1;
  object-fit: contain;
  border-radius: 0.28rem;
}
.sidebar-link.is-active .sidebar-link-icon { opacity: 1; color: var(--chrome); }

.sidebar-footer {
  padding: 1rem 1.2rem 1.4rem;
  border-top: 1px solid var(--border);
}

.sidebar-footer-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* ── Main content ── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-header {
  padding: 2.25rem 2rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
}

.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.page-header-text { flex: 1; min-width: 0; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--silver-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.85))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.page-subtitle {
  margin-top: 0.45rem;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 680px;
}

.page-body { flex: 1; padding: 2rem; }

.page-footer {
  padding: 1.4rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  background: var(--bg-surface);
}

/* ── Panels (static silver/chrome borders) ── */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel + .panel { margin-top: 1.25rem; }

.panel-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--chrome);
  margin-bottom: 0.75rem;
}

.panel p, .panel li { color: var(--text-muted); font-size: 0.94rem; }
.panel p + p { margin-top: 0.7rem; }

.grid-2 { display: grid; gap: 1.2rem; }
.grid-3 { display: grid; gap: 1.2rem; }

/* ── Hero ── */
.hero-block {
  position: relative;
  padding: 2.75rem 2rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--chrome-bright);
  max-width: 760px;
}

.hero-headline em {
  font-style: normal;
  background: linear-gradient(90deg, var(--silver), var(--chrome-bright), #a8b8cc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  margin-top: 1.1rem;
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 620px;
}

.hero-actions {
  margin-top: 1.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-chrome {
  background: linear-gradient(145deg, #7a8696, #b8c6d4 45%, #9aaab8);
  color: var(--bg-deep);
  box-shadow: 0 2px 14px var(--glow);
}

.btn-chrome:hover, .btn-chrome:focus-visible {
  box-shadow: 0 4px 22px rgba(180, 200, 220, 0.22);
  color: var(--bg-deep);
}

.btn-outline {
  background: rgba(12, 16, 24, 0.36);
  color: var(--chrome);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: var(--chrome-bright);
}

/* ── Feature cards ── */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.45rem;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--chrome);
  margin-bottom: 0.45rem;
}

.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

.feature-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--silver);
  background: rgba(14, 18, 26, 0.42);
}

/* ── Leadership ── */
.leadership-card {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  margin-top: 1rem;
}

.leadership-avatar {
  flex-shrink: 0;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, #6e7a8a, #a8b6c6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bg-deep);
}

.leadership-info h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.leadership-role { font-size: 0.82rem; color: var(--silver); margin-bottom: 0.45rem; }
.leadership-bio { font-size: 0.88rem; color: var(--text-muted); }

/* ── Contact ── */
.contact-strip { display: grid; gap: 0.9rem; margin-top: 0.5rem; }

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.contact-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}

.contact-value { font-size: 0.92rem; color: var(--text-primary); }

/* ── Legal / Promo ── */
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--chrome);
  margin: 1.35rem 0 0.65rem;
}
.legal-section h2:first-child { margin-top: 0; }

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--chrome);
  margin: 1.1rem 0 0.55rem;
}

.legal-section hr {
  border: none;
  height: 1px;
  margin: 1.25rem 0;
  background: var(--border-strong);
  opacity: 0.65;
}

.legal-section .about-brand-name {
  white-space: nowrap;
}

.legal-section .about-inline-link {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section .about-inline-link:hover,
.legal-section .about-inline-link:focus-visible {
  color: var(--chrome);
}

body[data-page="about"]:has(.chrome-frame-inner) .main-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-page="about"] .page-footer {
  flex-shrink: 0;
}

body[data-page="about"] .page-header {
  padding: 1rem 1.5rem 0.65rem;
  flex-shrink: 0;
}

body[data-page="about"] .page-body {
  padding: 0.75rem 1.5rem 1rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body[data-page="about"] .legal-section--about {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.15rem 1.35rem;
  margin-bottom: 0;
}

body[data-page="about"] .legal-section--about p,
body[data-page="about"] .legal-section--about li {
  font-size: 0.84rem;
  line-height: 1.48;
  margin-bottom: 0.45rem;
}

body[data-page="about"] .legal-section--about h2 {
  font-size: 0.92rem;
  margin: 0.75rem 0 0.35rem;
}

body[data-page="about"] .legal-section--about h3 {
  font-size: 0.86rem;
  margin: 0.55rem 0 0.3rem;
}

body[data-page="about"] .legal-section--about hr {
  margin: 0.55rem 0;
}

body[data-page="about"] .legal-section--about ul {
  margin: 0 0 0.45rem;
  padding-left: 1.1rem;
}

body[data-page="about"] .about-services-grid {
  display: grid;
  gap: 0 1rem;
}

body[data-page="about"] .about-portfolio-list {
  display: grid;
  gap: 0.2rem 1rem;
  list-style: disc;
  padding-left: 1.1rem;
}

@media (min-width: 900px) {
  body[data-page="about"] .about-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="about"] .about-portfolio-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  body[data-page="about"] .page-header {
    padding: 0.75rem 1rem 0.5rem;
  }

  body[data-page="about"] .page-body {
    padding: 0.5rem 1rem 0.75rem;
  }

  body[data-page="about"] .legal-section--about {
    padding: 1rem;
  }
}

.promo-tile {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.85rem;
  background: var(--bg-surface);
  text-align: center;
  backdrop-filter: blur(8px);
}

.promo-tile h2, .promo-tile h3 {
  font-family: var(--font-display);
  color: var(--chrome-bright);
  margin-bottom: 0.65rem;
}

.promo-tile p { color: var(--text-muted); font-size: 0.92rem; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--silver);
  background: rgba(14, 18, 26, 0.38);
}

/* ── Mobile sidebar ── */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: var(--chrome-control-top, 1rem);
  left: var(--chrome-control-left, 1rem);
  z-index: 11050;
  width: 2.7rem; height: 2.7rem;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--chrome);
  backdrop-filter: blur(10px);
}

.sidebar-toggle span {
  display: block;
  width: 1.05rem; height: 2px;
  background: currentColor;
  position: relative;
}

.sidebar-toggle span::before,
.sidebar-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
}
.sidebar-toggle span::before { top: -6px; }
.sidebar-toggle span::after { top: 6px; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 11035;
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .contact-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .contact-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 899px) {
  .sidebar-toggle { display: flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-overlay.is-visible { display: block; }
  .main-content { margin-left: 0; padding-top: 4rem; }
  .page-header, .page-body, .page-footer { padding-left: 1.2rem; padding-right: 1.2rem; }
  .hero-block { padding: 2rem 1.4rem; }
}

/* ── Homepage Mobil: einheitlich ≤900px (ersetzt alte 768px-Fragmente) ── */
@media screen and (max-width: 900px) {
  body[data-page="home"] {
    -webkit-text-size-adjust: 100%;
  }

  body[data-page="home"] .app-shell,
  body[data-page="home"] .main-content,
  body[data-page="home"] .home-stage {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body[data-page="home"]:has(.chrome-frame-inner) .app-shell {
    padding: 0 !important;
  }

  body[data-page="home"] .main-content {
    margin-left: 0 !important;
    padding-top: 0 !important;
    overflow-x: clip !important;
  }

  body[data-page="home"] .sidebar:not(.is-open) {
    display: none !important;
  }

  body[data-page="home"] .sidebar.is-open {
    display: flex !important;
  }

  body[data-page="home"] .home-splash,
  body[data-page="home"] .home-splash-core,
  body[data-page="home"] .home-refs.neo-accent-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  body[data-page="home"] .home-splash {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    position: relative !important;
  }

  body[data-page="home"] .home-splash-core {
    transform: none !important;
    padding-bottom: 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body[data-page="home"] .home-splash-logo {
    width: min(100%, 500px) !important;
    max-width: min(92vw, 500px) !important;
    height: auto !important;
    margin: 0.25rem 0 0.75rem !important;
    align-self: flex-start !important;
    display: block !important;
    transform: none !important;
  }

  body[data-page="home"] .home-welcome-silver,
  body[data-page="home"] h1,
  body[data-page="home"] h2,
  body[data-page="home"] .home-section-title {
    font-size: 1.6rem !important;
    text-align: center !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body[data-page="home"] .home-ai-tagline {
    font-size: 0.85rem !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  body[data-page="home"] .home-splash-foot {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0.5rem !important;
  }

  body[data-page="home"] .home-splash-foot .btn-neon,
  body[data-page="home"] .home-splash-foot .btn-outline-neon,
  body[data-page="home"] .home-splash-learn-btn {
    width: 90% !important;
    max-width: 300px !important;
    text-align: center !important;
  }

  body[data-page="home"] .home-refs.neo-accent-box {
    flex: 1 1 auto !important;
    transform: none !important;
  }

  body[data-page="home"] .refs-marquee {
    width: 100% !important;
    overflow: hidden !important;
  }

  body[data-page="home"] .refs-marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    animation: refs-scroll 48s linear infinite !important;
    will-change: transform !important;
  }

  body[data-page="home"] .ref-card {
    flex: 0 0 min(70vw, 14rem) !important;
    width: min(70vw, 14rem) !important;
    max-width: none !important;
  }

  body[data-page="home"] .page-footer {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}

@media screen and (max-width: 900px) and (orientation: landscape) {
  body[data-page="home"] .home-splash {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  body[data-page="home"] .hero-video-frame {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    clip-path: none !important;
  }

  body[data-page="home"] #hero-video {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 85vw !important;
    max-width: 90% !important;
    height: auto !important;
    max-height: none !important;
    margin: 15px auto !important;
    display: block !important;
    object-fit: contain !important;
    transform: none !important;
    -webkit-transform: none !important;
  }
}

@media (max-width: 479px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }

  body[data-page="impressum"] .page-header-row,
  body[data-page="agb"] .page-header-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── Site mark (∞ / back) — inside inner silver ledge, top-left ── */
.osg-site-mark {
  position: fixed;
  top: var(--chrome-control-top, calc(var(--frame-inset, 0.72cm) + 0.55rem));
  left: var(--chrome-control-left, calc(var(--frame-inset, 0.72cm) + 0.55rem));
  right: auto;
  transform: none;
  z-index: 11040;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 10vw, 68px);
  height: clamp(44px, 10vw, 68px);
  background: transparent;
  border: none;
  padding: 0;
  text-decoration: none;
  opacity: 0.94;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.osg-site-mark:hover,
.osg-site-mark:focus-visible {
  opacity: 1;
  transform: scale(1.04);
  outline: none;
}

.osg-site-mark__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.38));
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

body:has(#portal-overlay:not(.portal-hidden)) .osg-site-mark {
  display: none;
}

body:has(.chrome-frame-inner) .osg-site-mark {
  top: var(--chrome-control-top);
  left: var(--chrome-control-left);
}

@media (max-width: 480px) {
  .osg-site-mark {
    width: 42px;
    height: 42px;
    top: var(--chrome-control-top);
    left: var(--chrome-control-left);
  }
}

@media (prefers-reduced-motion: reduce) {
  .osg-site-mark { transition: none; }
}

/* ── Portal: Epoxidharz-Sternenhimmel (eigene Welt, heller als Innenseite) ── */
.portal-overlay {
  position: fixed;
  inset: var(--frame-width);
  z-index: 600;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%, rgba(0, 229, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(20, 40, 80, 0.45) 0%, transparent 70%),
    #060608;
  border-radius: calc(var(--frame-radius) - 2px);
  transition: opacity 0.42s ease;
}

.portal-overlay.portal-has-video {
  background-color: transparent;
  background: transparent;
}

/* Responsive video background — home portal hero (screen blend, right-edge crop only) */
body[data-page="home"] {
  background-color: var(--bg-deep, #060608);
}

.hero-video-frame {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  /* KI-Wasserzeichen nur rechts abschneiden — kein Zoom */
  clip-path: inset(0 7% 0 0);
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  object-fit: cover;
  object-position: center center;
  transform: scale(0.95);
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  background: transparent;
  mix-blend-mode: screen;
  filter: saturate(1.08) brightness(0.92) contrast(1.1);
}

#hero-video.hero-video--failed {
  display: none;
}

#hero-video.hero-video--hidden {
  visibility: hidden;
  opacity: 0;
}

.hero-video-frame:has(#hero-video.hero-video--hidden),
.hero-video-frame:has(#hero-video.hero-video--failed) {
  visibility: hidden;
  opacity: 0;
}

@media (max-width: 768px) {
  .hero-video-frame {
    inset: var(--frame-width);
    border-radius: calc(var(--frame-radius) - 2px);
    clip-path: none;
    contain: none;
    overflow: hidden;
  }

  .portal-has-video .portal-center::before {
    width: min(88vw, 320px);
    max-height: min(34vh, 240px);
    min-height: min(18vh, 120px);
  }

  .portal-logo-dock {
    min-width: 90px;
    max-width: 100px;
    transform: translate(clamp(0.35rem, 3.5vw, 1rem), 0) scale(1);
  }

  .portal-logo-dock .portal-logo-slot {
    min-height: 0;
  }

  .portal-logo-dock .portal-logo-slot--official {
    max-width: 90px;
    min-width: 75px;
    max-height: none;
    filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.38));
  }

  body[data-page="home"] .portal-logo-dock .portal-logo-official {
    min-width: 75px;
    width: 90px;
    max-width: 90px;
    height: auto;
    max-height: min(12vh, 80px);
    animation: none;
  }

  .portal-has-video .home-starfield {
    opacity: 0.45;
  }

  .portal-sparks {
    display: none;
  }

  .btn-portal-enter {
    animation-duration: 3.2s;
  }
}

@media (max-width: 768px) and (orientation: portrait) and (min-width: 481px) {
  /* Tablet Hochkant: normale contain-Darstellung, nicht Handy-Zoom */
  body[data-page="home"] #hero-video {
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    transform: none;
    -webkit-transform: none;
    filter: saturate(1.05) brightness(0.94) contrast(1.06);
  }
}

@media (max-width: 480px) and (orientation: portrait) and (hover: none) and (pointer: coarse) {
  /* Fallback ohne JS — Klasse .portal-video-phone-portrait ist maßgeblich */
  body[data-page="home"] #hero-video {
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100dvh;
    object-fit: contain;
    object-position: center center;
    transform: none;
    -webkit-transform: none;
    filter: saturate(1.05) brightness(0.94) contrast(1.06);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* Handy Hochkant — per JS-Klasse (Safari/iPhone zuverlässig) */
body[data-page="home"].portal-video-phone-portrait #hero-video {
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100dvh;
  object-fit: contain;
  object-position: center center;
  transform: none;
  -webkit-transform: none;
  filter: saturate(1.05) brightness(0.94) contrast(1.06);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

body[data-page="home"].portal-video-phone-landscape .hero-video-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  clip-path: none;
}

body[data-page="home"].portal-video-phone-landscape #hero-video {
  position: relative;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 85vw !important;
  max-width: 90% !important;
  height: auto !important;
  max-height: none !important;
  margin: 15px auto !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center;
  transform: none !important;
  -webkit-transform: none !important;
  filter: saturate(1.05) brightness(0.94) contrast(1.06);
}

@media screen and (max-width: 900px) and (orientation: portrait) {
  /* Nur Hochkant — Querformat separat (s. landscape-Regeln); nur Portal-Video */
  body[data-page="home"] #hero-video {
    width: 100% !important;
    height: auto !important;
    max-height: 50vh;
    object-fit: contain !important;
  }
}

@media (max-width: 768px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .portal-has-video .portal-center::before {
    max-height: min(28vh, 160px);
    min-height: 0;
  }

  .portal-logo-dock {
    min-width: 90px;
    max-width: 100px;
    bottom: calc(
      var(--frame-width)
      + clamp(0.45rem, 1.5vh, 0.75rem)
      + env(safe-area-inset-bottom, 0px)
      + 2.75rem
    );
    transform: translate(clamp(0.35rem, 3.5vw, 1rem), 0) scale(1);
  }

  body[data-page="home"] .portal-logo-dock .portal-logo-official {
    min-width: 75px;
    width: 90px;
    max-width: 90px;
    height: auto;
    max-height: min(14vh, 60px);
  }
}

.portal-brand-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.portal-has-video .portal-brand-video {
  opacity: 0.38;
  filter: saturate(0.85) brightness(0.72);
}

.portal-has-video .home-starfield {
  z-index: 2;
}

.portal-has-video .portal-logo-slot--fallback {
  display: flex;
}

.portal-sparks {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.portal-spark {
  position: absolute;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow:
    0 0 6px #00e5ff,
    0 0 14px rgba(59, 130, 246, 0.85),
    0 0 22px rgba(168, 85, 247, 0.45);
  animation: portal-spark-burst 0.55s ease-out forwards;
  transform: rotate(var(--spark-angle, 0deg));
}

@keyframes portal-spark-burst {
  0% {
    opacity: 1;
    transform: rotate(var(--spark-angle, 0deg)) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: rotate(var(--spark-angle, 0deg)) translateY(-28px) scale(0.2);
  }
}

.portal-stars,
.portal-epoxy-gloss,
.portal-curtain {
  display: none;
}

.portal-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.92;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 14%, rgba(255, 220, 240, 0.95), transparent),
    radial-gradient(1px 1px at 18% 72%, rgba(180, 255, 220, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 28% 38%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 42% 18%, rgba(255, 180, 210, 0.8), transparent),
    radial-gradient(2px 2px at 55% 62%, rgba(200, 255, 230, 0.95), transparent),
    radial-gradient(1px 1px at 68% 28%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 78% 78%, rgba(255, 200, 230, 0.88), transparent),
    radial-gradient(1px 1px at 88% 42%, rgba(160, 255, 200, 0.8), transparent),
    radial-gradient(1px 1px at 12% 48%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 35% 88%, rgba(220, 180, 255, 0.82), transparent),
    radial-gradient(1px 1px at 62% 8%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 92% 68%, rgba(255, 220, 200, 0.75), transparent),
    radial-gradient(2px 2px at 48% 48%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 22% 22%, rgba(200, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 72% 52%, rgba(255, 255, 255, 0.6), transparent);
  animation: portal-stars-twinkle 8s ease-in-out infinite alternate;
}

.portal-epoxy-gloss {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    var(--portal-epoxy-glow),
    linear-gradient(155deg,
      rgba(255, 255, 255, 0.14) 0%,
      transparent 28%,
      transparent 72%,
      rgba(255, 200, 220, 0.08) 100%);
  box-shadow: inset 0 0 80px rgba(255, 160, 200, 0.12), inset 0 0 60px rgba(120, 255, 200, 0.08);
}

@keyframes portal-stars-twinkle {
  0% { opacity: 0.78; filter: brightness(0.95); }
  100% { opacity: 1; filter: brightness(1.08); }
}

.portal-curtain {
  position: absolute;
  top: 0;
  height: 100%;
  border: none;
  box-shadow: none;
  transition: transform var(--portal-curtain-duration) cubic-bezier(0.42, 0, 0.18, 1);
  z-index: 3;
  overflow: hidden;
  background-color: transparent;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 14%, rgba(255, 220, 240, 0.95), transparent),
    radial-gradient(1px 1px at 18% 72%, rgba(180, 255, 220, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 28% 38%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 42% 18%, rgba(255, 180, 210, 0.8), transparent),
    radial-gradient(2px 2px at 55% 62%, rgba(200, 255, 230, 0.95), transparent),
    radial-gradient(1px 1px at 68% 28%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 78% 78%, rgba(255, 200, 230, 0.88), transparent),
    radial-gradient(1px 1px at 88% 42%, rgba(160, 255, 200, 0.8), transparent),
    radial-gradient(1px 1px at 12% 48%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 35% 88%, rgba(220, 180, 255, 0.82), transparent),
    linear-gradient(158deg, #0c1834 0%, #142848 38%, #101e3a 72%, #0a1428 100%);
}

.portal-curtain-left {
  left: 0;
  width: calc(50% + 5px);
}

.portal-curtain-right {
  right: 0;
  width: calc(50% + 5px);
}

.portal-curtain-left::before,
.portal-curtain-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--portal-epoxy-glow);
  opacity: 1;
  pointer-events: none;
}

.portal-curtain-left::after,
.portal-curtain-right::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse 40% 30% at 70% 30%, rgba(255, 180, 210, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.portal-center {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.1rem, 3vh, 2rem);
  padding: clamp(1.25rem, 5vw, 3rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.portal-has-video .portal-center::before {
  content: "";
  flex: 0 1 auto;
  width: min(92vw, 540px);
  max-height: min(48vh, 440px);
  min-height: min(28vh, 200px);
  pointer-events: none;
}

.portal-logo-dock {
  position: absolute;
  z-index: 6;
  right: calc(var(--frame-width) + clamp(0.65rem, 2vw, 1.1rem) + env(safe-area-inset-right, 0px));
  bottom: calc(
    var(--frame-width)
    + clamp(0.65rem, 2vh, 1.1rem)
    + env(safe-area-inset-bottom, 0px)
    + 2.75rem
    + clamp(0.45rem, 1vh, 0.75rem)
  );
  max-width: min(92vw, 540px);
  display: flex;
  justify-content: center;
  pointer-events: none;
  /* ~50% smaller than prior portal logo (was scale 0.82 → 0.41). */
  transform: translate(0, 0) scale(0.41);
  transform-origin: center bottom;
}

.portal-logo-dock .portal-logo-slot {
  pointer-events: auto;
}

.portal-center > * {
  pointer-events: auto;
}

.portal-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  width: 100%;
  max-height: min(48vh, 440px);
  min-height: min(28vh, 200px);
  filter: drop-shadow(0 0 28px rgba(0, 229, 255, 0.35));
}

.portal-logo-slot--official {
  flex: 0 0 auto;
  width: 100%;
  max-width: min(92vw, 540px);
  max-height: min(58vh, 560px);
  min-height: 0;
  margin: 0 auto;
  filter:
    drop-shadow(0 0 32px rgba(0, 229, 255, 0.42))
    drop-shadow(0 12px 40px rgba(0, 0, 0, 0.55));
}

.portal-logo-dock .portal-logo-slot {
  min-height: 0;
  width: 100%;
}

.portal-logo-official {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(54vh, 520px);
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  mix-blend-mode: screen;
  user-select: none;
  -webkit-user-drag: none;
  animation: portal-logo-float 5s ease-in-out infinite;
  /* Soft fog edge: square frame fades to transparent. */
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 38%, rgba(0, 0, 0, 0.75) 58%, transparent 86%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 38%, rgba(0, 0, 0, 0.75) 58%, transparent 86%);
}

@keyframes portal-logo-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.01); }
}

@keyframes portal-brand-glow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.35)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65)); }
  50% { filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.55)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55)); }
}

.portal-brand-name {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 2.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  max-width: min(92vw, 36rem);
  margin: 0;
}

.portal-brand-name--chrome {
  font-size: clamp(0.95rem, 3.8vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  animation: portal-brand-glow 4.5s ease-in-out infinite;
  background: linear-gradient(165deg,
    #ffffff 0%,
    #f0f4fa 12%,
    #b8c4d4 28%,
    #ffffff 42%,
    #8a96a8 56%,
    #eef2f8 70%,
    #c0cad8 84%,
    #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 12px rgba(0, 229, 255, 0.35))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
  position: relative;
}

.portal-brand-name--chrome::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.55), transparent);
  opacity: 0.7;
  pointer-events: none;
}

/* Auto-portal: no WELCOME button — sound toggle + timer only (Paul 2026-07-26). */
.portal-has-video #portal-enter-btn {
  display: none !important;
}

.btn-portal-enter {
  flex: 0 0 auto;
  margin-top: clamp(0.35rem, 1.2vh, 0.85rem);
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.18) 0%, rgba(10, 14, 20, 0.92) 38%, rgba(0, 229, 255, 0.12) 100%);
  color: var(--neon-cyan);
  font-family: var(--font-portal);
  font-size: clamp(1.2rem, 3.8vw, 1.75rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: none;
  padding: 0.9rem 2.2rem;
  border: 1px solid rgba(0, 229, 255, 0.55);
  border-radius: var(--radius-sm);
  box-shadow:
    0 0 22px rgba(0, 229, 255, 0.28),
    0 0 48px rgba(0, 229, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: portal-btn-cyan-pulse 2.4s ease-in-out infinite;
}

.btn-portal-enter:hover,
.btn-portal-enter:focus-visible {
  color: #ffffff;
  border-color: rgba(0, 229, 255, 0.85);
  box-shadow:
    0 0 32px rgba(0, 229, 255, 0.45),
    0 0 64px rgba(0, 229, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.portal-video-sound-btn {
  position: absolute;
  right: calc(var(--frame-width) + clamp(0.65rem, 2vw, 1.1rem) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--frame-width) + clamp(0.65rem, 2vh, 1.1rem) + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 229, 255, 0.45);
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.14) 0%, rgba(10, 14, 20, 0.9) 55%, rgba(0, 229, 255, 0.1) 100%);
  color: rgba(0, 229, 255, 0.75);
  cursor: pointer;
  box-shadow:
    0 0 16px rgba(0, 229, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color var(--transition), box-shadow var(--transition), color var(--transition), transform var(--transition);
}

.portal-video-sound-btn:hover,
.portal-video-sound-btn:focus-visible {
  color: #ffffff;
  border-color: rgba(0, 229, 255, 0.8);
  box-shadow:
    0 0 24px rgba(0, 229, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: scale(1.04);
}

.portal-video-sound-btn--on {
  color: #3ddc84;
  border-color: rgba(61, 220, 132, 0.55);
  box-shadow:
    0 0 18px rgba(50, 200, 100, 0.45),
    0 0 32px rgba(40, 180, 90, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.portal-video-sound-btn__icon {
  position: absolute;
  inset: 0;
  margin: auto;
}

.portal-video-sound-btn__icon--unmuted {
  opacity: 0;
}

.portal-video-sound-btn--on .portal-video-sound-btn__icon--muted {
  opacity: 0;
}

.portal-video-sound-btn--on .portal-video-sound-btn__icon--unmuted {
  opacity: 1;
}

.portal-overlay.portal-hidden .portal-video-sound-btn,
.portal-overlay.portal-reveal .portal-video-sound-btn,
.portal-overlay.portal-hidden .portal-logo-dock,
.portal-overlay.portal-reveal .portal-logo-dock {
  pointer-events: none;
  opacity: 0;
}

@keyframes portal-btn-cyan-pulse {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(0, 229, 255, 0.22),
      0 0 40px rgba(0, 229, 255, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 28px rgba(0, 229, 255, 0.48),
      0 0 56px rgba(0, 229, 255, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transform: scale(1.03);
  }
}

.portal-overlay.portal-reveal .portal-center {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}


/* Portal dismiss: soft blur/fade (verschwommen) */
.portal-overlay.portal-opening {
  filter: blur(10px) saturate(0.9);
  opacity: 0.55;
  transition: filter 1.05s ease, opacity 1.05s ease;
}
.portal-overlay.portal-opening .portal-logo-dock,
.portal-overlay.portal-opening .portal-center {
  filter: blur(6px);
  opacity: 0.35;
  transition: filter 1.05s ease, opacity 0.9s ease;
}

.portal-overlay.portal-opening .portal-curtain-left {
  transform: translateX(-100%);
}

.portal-overlay.portal-opening .portal-curtain-right {
  transform: translateX(100%);
}

.portal-overlay.portal-reveal {
  opacity: 0;
  pointer-events: none;
}

.portal-overlay.portal-hidden {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

body:has(#portal-overlay:not(.portal-hidden)) .app-shell {
  visibility: hidden;
}

/* ── Chrome-Silber Typografie ── */
.chrome-silver-text {
  background: linear-gradient(180deg,
    #ffffff 0%,
    #e8ecf2 18%,
    #9aa3b0 42%,
    #f0f4f8 58%,
    #b8c0cc 78%,
    #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

/* ── Innerer Chrom-Rahmen (dünnere Silberlinie, klar sichtbar) ── */
.chrome-frame-inner {
  position: fixed;
  inset: var(--frame-inset);
  z-index: 949;
  pointer-events: none;
  border-radius: calc(var(--frame-radius) - 2px);
  border: 2px solid transparent;
  background: linear-gradient(148deg,
    #ffffff 0%,
    #e8ecf2 18%,
    #9aa3b0 42%,
    #f0f4f8 58%,
    #b8c0cc 78%,
    #ffffff 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 4px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(200, 210, 220, 0.25);
}

/* ── UI-Inhalt innerhalb des inneren Rahmens (Hintergrund bleibt vollflächig) ── */
body:has(.chrome-frame-inner) .app-shell {
  position: fixed;
  inset: var(--chrome-content-inset);
  z-index: 2;
  display: flex;
  overflow: hidden;
  border-radius: calc(var(--frame-radius) - 8px);
}

body:has(.chrome-frame-inner) .sidebar {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  max-height: 100%;
  align-self: flex-start;
}

body:has(.chrome-frame-inner) .main-content {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
  max-width: 100%;
}

body:has(.chrome-frame-inner) .sidebar-toggle {
  top: var(--chrome-control-top);
  left: var(--chrome-control-left);
}

body:has(.chrome-frame-inner) .sidebar-overlay {
  inset: var(--chrome-content-inset);
}

body:has(.chrome-frame-inner) .portal-overlay {
  inset: var(--chrome-content-inset);
  border-radius: calc(var(--frame-radius) - 8px);
}

/* Homepage: Enterprise Core — BETWEEN silver ledges (outer gutter), top-left fixed */
body[data-page="home"] #osg-security-container,
body[data-page="home"] #osg-security-container.osg-security-container--home-gutter {
  position: fixed;
  top: calc(var(--frame-width, 0.3125rem) + 0.1rem + env(safe-area-inset-top, 0px)) !important;
  left: calc(var(--frame-width, 0.3125rem) + 0.15rem + env(safe-area-inset-left, 0px)) !important;
  right: auto !important;
  bottom: auto !important;
  transform: none;
  transition: none;
  z-index: 11045;
  display: block !important;
}

body[data-page="home"] #osg-security-container.osg-security-container--home-gutter #osg-secure-badge {
  padding: 4px 8px;
  gap: 6px;
  border-radius: 6px;
  max-height: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

body[data-page="home"] #osg-security-container.osg-security-container--home-gutter #osg-secure-badge:hover,
body[data-page="home"] #osg-security-container.osg-security-container--home-gutter #osg-secure-badge:focus-visible {
  transform: none;
}

body[data-page="home"] #osg-security-container.osg-security-container--home-gutter .osg-secure-badge__dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 5px #00ffcc;
}

body[data-page="home"] #osg-security-container.osg-security-container--home-gutter .osg-secure-badge__label {
  font-size: 7px;
  letter-spacing: 0.35px;
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}

body[data-page="home"]:has(.chrome-frame-inner) .app-shell {
  padding: var(--home-inner-gutter);
  box-sizing: border-box;
}

body[data-page="home"] .main-content,
body[data-page="home"] .home-stage,
body[data-page="home"] .home-refs {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body[data-page="home"] .main-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  width: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
  margin-left: var(--sidebar-w);
  box-sizing: border-box;
}

body[data-page="home"] .home-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--home-inner-gutter);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  align-content: start;
}

body[data-page="home"] .home-splash {
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
  cursor: default;
  max-height: none;
  overflow: visible;
  padding: clamp(0.4rem, 1vw, 0.55rem) clamp(0.55rem, 1.2vw, 0.75rem);
  border-radius: calc(var(--radius) - 2px);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.32),
    inset 0 0 20px rgba(0, 229, 255, 0.03);
  isolation: isolate;
  background:
    radial-gradient(ellipse 95% 70% at 50% 0%, rgba(0, 229, 255, 0.05) 0%, transparent 58%),
    radial-gradient(ellipse 72% 48% at 28% 14%, rgba(72, 188, 220, 0.05) 0%, transparent 62%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 229, 255, 0.04) 0%, transparent 60%),
    var(--bg-surface);
}

body[data-page="home"] .home-splash-core,
body[data-page="home"] .home-splash-foot {
  position: relative;
  z-index: 2;
}

body[data-page="home"] .home-refs.neo-accent-box {
  flex: 1 1 auto;
  min-height: 0;
  flex-shrink: 1;
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem 0.7rem;
  overflow: clip;
  border-radius: calc(var(--radius) - 2px);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.32),
    inset 0 0 20px rgba(0, 229, 255, 0.03);
  container-type: inline-size;
  container-name: home-refs;
  isolation: isolate;
}

body[data-page="home"] .home-splash-core {
  padding-bottom: clamp(0.75rem, 2vw, 1.25rem);
  max-width: none;
  width: 100%;
  margin-inline: auto;
  align-items: center;
  text-align: center;
}

body[data-page="home"] .home-splash-logo {
  width: min(100%, 280px);
  max-height: min(16vh, 160px);
  margin: 0 auto 0.35rem;
  display: block;
  align-self: center;
  object-position: center center;
}

body[data-page="home"] .home-welcome-silver {
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  margin-bottom: 0.35rem;
}

body[data-page="home"] .home-ai-tagline {
  margin-top: 0.45rem;
  font-size: 0.78rem;
}

body[data-page="home"] .home-splash-foot {
  position: static;
  width: 100%;
  max-width: 100%;
}

body[data-page="home"] .page-footer {
  flex-shrink: 0;
  margin: 0;
  padding: 0.45rem 0 0;
  font-size: 0.72rem;
  border-top: none;
  background: transparent;
}

body[data-page="home"] .portal-logo-official {
  width: min(100%, 520px);
}

body[data-page="home"] #osg-security-container.osg-security-container--home-gutter #osg-security-modal {
  top: calc(100% + 8px);
  bottom: auto;
  left: 0;
  right: auto;
  transform: none;
}

/* ── App-Seiten (Vorderseite & Beschreibung) ── */
body.app-page {
  overflow-x: hidden;
}

.app-page-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem) clamp(4.5rem, 10vw, 5.5rem);
  max-width: 52rem;
  margin: 0 auto;
}

body.app-page:has(.chrome-frame-inner) .app-page-shell {
  position: fixed;
  inset: var(--chrome-content-inset);
  z-index: 2;
  max-width: none;
  width: auto;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: calc(var(--frame-radius) - 8px);
  padding: clamp(0.55rem, 1.8vw, 1rem) clamp(0.75rem, 2vw, 1.35rem)
    calc(var(--chrome-content-inset) + 3.25rem);
}

body.app-page:has(.chrome-frame-inner) .app-page-body,
body.app-page:has(.chrome-frame-inner) .app-legal-footer {
  max-width: 52rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.app-page-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-page--desc .app-page-body,
.app-page--front .app-page-body {
  align-items: flex-start;
  padding-top: clamp(0.35rem, 2vw, 0.85rem);
  padding-right: calc(5.4rem + env(safe-area-inset-right, 0px));
}

.app-front {
  width: 100%;
  text-align: center;
  padding: clamp(0.85rem, 2.5vw, 1.35rem);
}

.app-front-icon {
  width: clamp(5.5rem, 22vw, 8rem);
  height: clamp(5.5rem, 22vw, 8rem);
  margin: 0 auto clamp(0.65rem, 2vw, 1rem);
  position: relative;
}

.app-front-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 42%, rgba(0, 0, 0, 0.82) 62%, transparent 90%);
  mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 42%, rgba(0, 0, 0, 0.82) 62%, transparent 90%);

  /* Coin art already circular — avoid white square from opaque assets. */
  mix-blend-mode: normal;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.app-front-icon-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 22%;
  background: linear-gradient(158deg, rgba(168, 85, 247, 0.14), rgba(0, 229, 255, 0.1));
  border: 1px solid rgba(200, 210, 225, 0.15);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
}

.app-front-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.app-front-werbetext {
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  padding: 0 0.25rem;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  line-height: 1.65;
  text-align: left;
}

.app-front-werbetext p {
  margin: 0 0 0.85rem;
}

.app-front-werbetext p:last-child {
  margin-bottom: 0;
}

.app-front-tagline {
  font-size: clamp(0.85rem, 2.8vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.app-front-cta {
  min-width: min(100%, 16rem);
}

.app-desc {
  width: 100%;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.app-desc-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  margin: 0 0 0.5rem;
}

.app-desc-subtitle {
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  margin: 0 0 1.25rem;
  opacity: 0.92;
}

.app-desc-body {
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  line-height: 1.65;
  margin-bottom: 2rem;
  text-align: left;
}

.app-desc-body p {
  margin: 0 0 1rem;
}

.app-desc-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.app-desc-body li {
  margin-bottom: 0.65rem;
}

.app-desc-back {
  display: inline-flex;
}

.app-legal-footer {
  text-align: center;
  padding-top: 1.5rem;
}

.app-legal-footer-link {
  font-size: clamp(0.72rem, 2.4vw, 0.82rem);
  text-decoration: none;
  transition: opacity var(--transition);
}

.app-legal-footer-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

@media (max-width: 480px) {
  :root {
    --frame-inset: clamp(0.9rem, 3vw, 1.7rem);
    --home-inner-gutter: clamp(0.4rem, 2.8vw, 0.65rem);
    --chrome-control-gap: clamp(0.45cm, 2.2vw, 0.75cm);
  }

  body[data-page="home"] #osg-security-container.osg-security-container--home-gutter #osg-secure-badge {
    padding: 2px 5px;
    gap: 4px;
    max-height: none;
  }

  body[data-page="home"] #osg-security-container.osg-security-container--home-gutter .osg-secure-badge__label {
    font-size: 6px;
    letter-spacing: 0.25px;
  }

  body[data-page="home"] #osg-security-container.osg-security-container--home-gutter .osg-secure-badge__dot {
    width: 5px;
    height: 5px;
  }

  body[data-page="home"] #osg-security-container.osg-security-container--home-gutter #osg-security-modal {
    width: min(260px, calc(100% - 0.5rem));
  }

  .app-page-shell {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    padding-bottom: 4.75rem;
  }

  .app-page--desc .app-page-body,
  .app-page--front .app-page-body {
    padding-top: 4.25rem;
  }

  .app-front-werbetext {
    padding: 0 0.15rem;
    font-size: 0.95rem;
  }

  .app-legal-footer-link {
    line-height: 1.45;
    padding: 0 0.5rem;
  }

  .portfolio-list--hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .portfolio-item-cta {
    font-size: 0.72rem;
    padding: 0.5rem 0.55rem;
  }
}

/* ── Contact modal (Impressum) ── */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-modal[hidden] {
  display: none !important;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(80, 80, 88, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  max-height: min(92vh, 40rem);
  overflow-y: auto;
  padding: clamp(1.1rem, 4vw, 1.75rem);
}

.contact-modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.contact-modal-lead {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 0.45rem;
  opacity: 0.9;
}

.contact-modal-hint {
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0 0 1.1rem;
  opacity: 0.82;
}

.contact-form {
  display: grid;
  gap: 0.45rem;
}

.contact-field-label {
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(200, 210, 225, 0.55);
  background: rgba(8, 8, 12, 0.75);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.contact-message-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: start;
}

.contact-dictate-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 140, 50, 0.55);
  background: var(--bg-elevated);
  color: #ff8c32;
  font-size: 0.72rem;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-dictate-btn.is-listening {
  color: #3ddc84;
  border-color: rgba(61, 220, 132, 0.65);
  box-shadow: 0 0 14px rgba(50, 200, 100, 0.45);
}

.contact-status {
  font-size: 0.82rem;
  margin: 0.35rem 0 0;
}

.contact-modal-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

@media (max-width: 480px) {
  .contact-modal {
    padding: 0.65rem;
    align-items: flex-end;
  }

  .contact-modal-panel {
    max-height: 88vh;
  }

  .contact-message-row {
    grid-template-columns: 1fr;
  }

  .contact-dictate-btn {
    width: 100%;
    min-height: 2.5rem;
  }
}

/* ── Werbe-Ecke: Video-Portal & Chrom-3D-Boxen ── */
.osg-main-container {
  width: 100%;
}

.content-header {
  margin-bottom: 0.5rem;
}

.premium-title {
  font-family: "Orbitron", var(--font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #ffffff 0%, #dcdcdc 50%, #aaaaaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.chrome-3d-box {
  position: relative;
  background: rgba(15, 5, 25, 0.72);
  border-radius: var(--radius);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.55),
    inset 0 0 20px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.chrome-3d-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(135deg, #e0e0e0, #ffffff, #8c8c8c, #ffffff, #555555);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.chrome-3d-box:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.65),
    inset 0 0 20px rgba(255, 255, 255, 0.06),
    0 0 15px rgba(255, 255, 255, 0.1);
}

.video-portal-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.55rem;
  margin-top: 1.25rem;
}

.branding-sidebar-grid {
  display: flex;
  flex-direction: column;
  gap: 1.55rem;
}

.video-wrapper,
.video-wrapper-sub {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 16 / 9;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper video,
.video-wrapper-sub video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-headline,
.sub-headline {
  font-family: "Orbitron", var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #ffffff, #b5b5b5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 1rem 1rem 0.5rem;
}

.video-description,
.sub-description,
.branding-details {
  color: #d1ced6;
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0 1rem 1rem;
}

.branding-info-card__title {
  margin-top: 1rem;
}

.branding-details p {
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.45rem;
}

.branding-details strong {
  color: var(--chrome);
  font-weight: 600;
  margin-right: 0.35rem;
}

@media (max-width: 899px) {
  .video-portal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .video-portal-grid {
    gap: 1.1rem;
    margin-top: 0.85rem;
  }

  .premium-title {
    letter-spacing: 0.08em;
  }

  .video-headline,
  .sub-headline {
    margin-left: 0.85rem;
    margin-right: 0.85rem;
  }

  .video-description,
  .sub-description,
  .branding-details {
    margin-left: 0.85rem;
    margin-right: 0.85rem;
    font-size: 0.84rem;
  }
}

/* ── Home: Corporate Dark / Neon ── */
.page-body--home {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  scroll-snap-type: y proximity;
}

.neo-accent-box {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    inset 0 0 24px rgba(0, 229, 255, 0.03);
}

.neo-accent-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--neon-accent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

/* ── Animiertes Omni-Logo (CSS, kein Video) ── */
.osg-logo-mount {
  display: flex;
  align-items: center;
  justify-content: center;
}

.osg-logo-mount--splash {
  margin: 0.5rem 0 1rem;
}

.osg-logo-anim {
  position: relative;
  width: 320px;
  height: 180px;
  animation: osg-logo-pulse-glow 4s ease-in-out infinite;
}

.osg-logo-mount--portal .osg-logo-anim,
.osg-logo-anim--portal {
  width: min(92vw, 640px);
  height: min(52vw, 360px);
  max-height: min(62vh, 520px);
}

.osg-logo-aura--portal {
  inset: -12%;
  background:
    radial-gradient(circle, rgba(0, 229, 255, 0.28) 0%, transparent 62%),
    radial-gradient(circle at 60% 40%, rgba(168, 85, 247, 0.12) 0%, transparent 55%);
}

.osg-infinity-path--base {
  stroke: rgba(200, 208, 220, 0.35);
  stroke-width: 7;
}

.osg-infinity-path--energy {
  fill: none;
  stroke: url(#osg-portal-energy);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 18 140;
  animation: osg-infinity-energy-flow 2.2s linear infinite;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.55));
}

.osg-globe--center {
  top: 50%;
  left: 50%;
  width: clamp(72px, 22vw, 118px);
  height: clamp(72px, 22vw, 118px);
  transform: translate(-50%, -50%);
  z-index: 4;
}

.osg-globe--center .osg-globe-body {
  border-width: 2px;
  box-shadow:
    0 0 24px rgba(0, 229, 255, 0.45),
    inset 0 0 18px rgba(0, 229, 255, 0.12);
}

.osg-globe-nodes {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 38%, rgba(0, 229, 255, 0.85) 0%, transparent 4%),
    radial-gradient(circle at 62% 44%, rgba(59, 130, 246, 0.8) 0%, transparent 3.5%),
    radial-gradient(circle at 44% 68%, rgba(168, 85, 247, 0.75) 0%, transparent 3%),
    radial-gradient(circle at 72% 62%, rgba(0, 229, 255, 0.7) 0%, transparent 2.5%);
  animation: osg-globe-nodes-pulse 3.6s ease-in-out infinite;
  pointer-events: none;
}

.osg-globe-arc {
  position: absolute;
  border: 1px solid transparent;
  border-top-color: rgba(0, 229, 255, 0.65);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: osg-globe-arc-flash 4s ease-in-out infinite;
}

.osg-globe-arc--1 {
  inset: 8%;
  animation-delay: 0.4s;
}

.osg-globe-arc--2 {
  inset: 18%;
  animation-delay: 2.1s;
}

.osg-lp-portal-1 { top: 18%; left: 12%; animation-delay: 0s; background: #00e5ff; box-shadow: 0 0 14px #00e5ff; }
.osg-lp-portal-2 { top: 42%; left: 6%; animation-delay: 0.8s; background: #e4eaf2; box-shadow: 0 0 12px #e4eaf2; }
.osg-lp-portal-3 { top: 42%; right: 6%; animation-delay: 1.6s; background: #00e5ff; box-shadow: 0 0 14px #00e5ff; }
.osg-lp-portal-4 { bottom: 22%; right: 14%; animation-delay: 2.4s; background: #3b82f6; box-shadow: 0 0 12px #3b82f6; }

@keyframes osg-infinity-energy-flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -316; }
}

@keyframes osg-globe-nodes-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes osg-globe-arc-flash {
  0%, 100% { opacity: 0; transform: rotate(0deg); }
  12%, 28% { opacity: 0.85; transform: rotate(18deg); }
  40% { opacity: 0; transform: rotate(36deg); }
}

.osg-logo-mount--portal .osg-logo-anim {
  width: min(92vw, 640px);
  height: min(52vw, 360px);
}

.osg-logo-aura {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.22) 0%, transparent 68%);
  animation: osg-logo-aura-heartbeat 4s ease-in-out infinite;
  pointer-events: none;
}

.osg-logo-infinity {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.osg-infinity-path {
  fill: none;
  stroke: #c8c8d4;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(228, 234, 242, 0.35));
}

.osg-globe {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  z-index: 3;
}

.osg-globe-body {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.75);
  background: radial-gradient(circle at 32% 28%, #1a3a5c 0%, #060608 72%);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
  overflow: hidden;
}

.osg-globe-lines {
  position: absolute;
  inset: -25%;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 7px, rgba(0, 229, 255, 0.28) 7px, rgba(0, 229, 255, 0.28) 8px),
    repeating-linear-gradient(0deg, transparent 0, transparent 10px, rgba(0, 229, 255, 0.18) 10px, rgba(0, 229, 255, 0.18) 11px);
  animation: osg-globe-spin 12s linear infinite;
}

.osg-globe--top {
  top: -14%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translateX(-50%);
}

.osg-globe--right {
  right: 11%;
  top: 22%;
  width: 90px;
  height: 90px;
}

.osg-globe--right .osg-globe-lines {
  animation-duration: 20s;
}

.osg-light-point {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  z-index: 5;
  animation: osg-light-color-shift 8s ease-in-out infinite;
}

.osg-lp1 { top: 30px; left: 70px; animation-delay: 0s; }
.osg-lp2 { top: 50px; left: 40px; animation-delay: 1.5s; }
.osg-lp3 { bottom: 40px; left: 80px; animation-delay: 3s; }
.osg-lp4 { top: 90px; left: 155px; animation-delay: 4.5s; }
.osg-lp5 { top: 50px; right: 70px; animation-delay: 2s; }
.osg-lp6 { bottom: 50px; right: 80px; animation-delay: 5.5s; }

@keyframes osg-globe-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes osg-light-color-shift {
  0%, 100% { background: #ffffff; box-shadow: 0 0 12px #ffffff; }
  20% { background: #22c55e; box-shadow: 0 0 12px #22c55e; }
  40% { background: #f472b6; box-shadow: 0 0 12px #f472b6; }
  60% { background: #a855f7; box-shadow: 0 0 12px #a855f7; }
  80% { background: #3b82f6; box-shadow: 0 0 14px #3b82f6; }
}

@keyframes osg-logo-pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.18)); }
  50% { filter: drop-shadow(0 0 32px rgba(0, 229, 255, 0.38)); }
}

@keyframes osg-logo-aura-heartbeat {
  0%, 100% { opacity: 0.45; transform: scale(0.96); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

.home-splash {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 1.5rem);
  margin: clamp(0.75rem, 2vw, 1.25rem);
  cursor: pointer;
  scroll-snap-align: start;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 229, 255, 0.06) 0%, transparent 60%), var(--bg-surface);
}

.home-starfield {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 38%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 38%, transparent 100%);
}

.home-starfield__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .home-starfield {
    opacity: 0.65;
  }
}

.home-splash-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(100%, 560px);
  padding-bottom: clamp(3.5rem, 8vw, 4.5rem);
}

.home-splash-learn-btn {
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  cursor: pointer;
}

.home-splash-foot {
  position: static;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  margin-top: 0.75rem;
  cursor: default;
}

body[data-page="home"] .home-splash-foot .btn-neon,
body[data-page="home"] .home-splash-foot .btn-outline-neon {
  width: auto;
  cursor: pointer;
}

.btn-neon--compact,
.btn-outline-neon--compact {
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
}

.home-splash-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: min(100%, 520px);
  margin-bottom: 0.75rem;
  position: relative;
}

body[data-page="home"] .main-content > .page-header {
  display: none;
}

.home-welcome-silver {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--silver-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.75rem;
  text-align: center;
}

.home-splash-logo {
  display: block;
  width: min(100%, 480px);
  height: auto;
  max-height: min(52vh, 520px);
  object-fit: contain;
  object-position: center center;
  margin: 0.25rem auto 0.75rem;
  background: transparent;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 28px rgba(0, 229, 255, 0.38))
    drop-shadow(0 10px 32px rgba(0, 0, 0, 0.45));
  user-select: none;
  -webkit-user-drag: none;
  /* Soft fog edge: hard square box dissolves to zero. */
  -webkit-mask-image: radial-gradient(ellipse 74% 74% at 50% 50%, #000 40%, rgba(0, 0, 0, 0.8) 60%, transparent 88%);
  mask-image: radial-gradient(ellipse 74% 74% at 50% 50%, #000 40%, rgba(0, 0, 0, 0.8) 60%, transparent 88%);
}

.home-brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.home-brand-accent {
  background: var(--neon-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-ai-tagline {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-scroll-hint {
  margin-top: 2rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: home-hint-pulse 2.4s ease-in-out infinite;
}

@keyframes home-hint-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.home-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1.5rem;
  scroll-snap-align: start;
}

body[data-page="home"] .home-main-grid {
  gap: 1.25rem;
}

body[data-page="home"] .home-main-grid > * {
  min-width: 0;
}

body[data-page="home"] .page-body--home {
  padding: clamp(1rem, 2.2vw, 1.75rem);
  padding-bottom: clamp(0.75rem, 2vw, 1.25rem);
  box-sizing: border-box;
}

body[data-page="home"] .home-right-col {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.home-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 1.25rem;
}

.home-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-portfolio {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portfolio-list--hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem;
}

.portfolio-item--hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.15rem 0.85rem 1.25rem;
  border-left: none;
  border: 1px solid var(--border);
}

.portfolio-item--hub:hover {
  transform: translateY(-2px);
}

.portfolio-item-title {
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 2.4vw, 0.95rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0.65rem 0 0.75rem;
}

.portfolio-item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.portfolio-item-cta {
  width: 100%;
  max-width: 14rem;
  font-size: 0.78rem;
  padding: 0.55rem 0.75rem;
}

.portfolio-item-icon-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  background: linear-gradient(158deg, rgba(168, 85, 247, 0.14), rgba(0, 229, 255, 0.1));
}

.portfolio-item-icon--loaded .portfolio-item-icon-placeholder {
  display: none;
}

.app-desc-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: 1.5rem 0 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.apps-portfolio-wrap {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.apps-portfolio-lead {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.apps-portfolio-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .apps-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portfolio-item {
  padding: 1.1rem 1.15rem;
  background: var(--bg-anthracite);
  border-left: 3px solid var(--neon-cyan);
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease;
}

.portfolio-item:hover {
  transform: translateX(4px);
}

.portfolio-item--has-icon {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.portfolio-item-icon {
  flex-shrink: 0;
  width: clamp(4.5rem, 10vw, 6rem);
  height: clamp(4.5rem, 10vw, 6rem);
  padding: 0.25rem;
  border-radius: 12px;
  border: 1px solid rgba(200, 215, 230, 0.28);
  background: rgba(6, 8, 12, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 14px rgba(0, 0, 0, 0.35);
}

.portfolio-item-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
}

.portfolio-item-body {
  min-width: 0;
}

.portfolio-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--chrome-bright);
}

.portfolio-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.home-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

body[data-page="home"] .home-refs--fit {
  width: 100%;
  max-width: min(100%, 68rem);
  margin: 0.15rem auto 0;
  padding: 0.2rem 0 0;
  flex: 0 0 auto;
  overflow: visible;
}

body[data-page="home"] .home-refs--fit .home-section-title {
  margin: 0 0 0.25rem;
  padding: 0;
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
  text-align: center;
}

body[data-page="home"] .home-refs--fit .refs-marquee {
  max-height: none;
  min-height: 5.2rem;
}

body[data-page="home"] .home-refs--fit .ref-card {
  flex: 0 0 min(12.5rem, 70vw);
  width: min(12.5rem, 70vw);
  padding: 0.4rem 0.55rem;
}

body[data-page="home"] .home-refs--fit .ref-card h3 {
  font-size: 0.68rem;
  margin-bottom: 0.2rem;
}

body[data-page="home"] .home-refs--fit .ref-card p {
  font-size: 0.58rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-page="home"] .home-app-grid {
  max-height: none;
}

@media (max-width: 480px) {
  body[data-page="home"] .home-refs--fit .refs-marquee {
    max-height: none;
    min-height: 4.8rem;
  }
  body[data-page="home"] .home-app-tile__desc {
    display: none;
  }
}


body[data-page="home"] .home-refs .home-section-title {
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  font-size: 0.92rem;
}

.refs-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

body[data-page="home"] .refs-marquee {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: clip;
  contain: paint;
  mask-image: none;
  -webkit-mask-image: none;
  border-radius: calc(var(--radius-sm) - 2px);
}

body[data-page="home"] .refs-marquee-track {
  gap: 0.85rem;
  animation-duration: 54s;
  align-items: stretch;
}

body[data-page="home"] .ref-card {
  flex: 0 0 min(16rem, 82cqi);
  width: min(16rem, 82cqi);
  padding: 0.75rem 0.8rem 0.82rem;
  min-height: 0;
  height: auto;
  overflow: visible;
}

@supports (width: 1cqi) {
  body[data-page="home"] .ref-card {
    flex: 0 0 min(16rem, 82cqi);
    width: min(16rem, 82cqi);
  }
}

body[data-page="home"] .ref-card h3 {
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}

body[data-page="home"] .ref-card p {
  font-size: 0.72rem;
  line-height: 1.52;
}

.refs-marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: refs-scroll 48s linear infinite;
}

.refs-marquee:hover .refs-marquee-track {
  animation-play-state: paused;
}

@keyframes refs-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ref-card {
  flex: 0 0 min(320px, 78vw);
  padding: 1.15rem;
  background: var(--bg-anthracite);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 229, 255, 0.12);
}

.ref-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 0.55rem;
}

.ref-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.ref-card strong {
  color: var(--chrome);
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-neon {
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--text-primary);
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.2);
}

.btn-neon:hover,
.btn-neon:focus-visible {
  background: var(--neon-accent);
  color: var(--bg-deep);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.45);
}

.btn-neon--full {
  width: 100%;
}

.btn-outline-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: var(--text-muted);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: color 0.3s, border-color 0.3s;
}

.btn-outline-neon:hover {
  color: var(--neon-purple);
  border-color: var(--neon-purple);
}

/* ── Kontakt-Modal ── */
body.modal-open {
  overflow: hidden;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.contact-modal-panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  background: var(--bg-elevated);
}

.contact-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.contact-modal-close:hover {
  color: var(--neon-cyan);
}

.contact-modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--chrome-bright);
}

.contact-modal-intro {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.contact-success-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--neon-cyan);
  margin-bottom: 0.75rem;
}

.contact-success-ticket {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--chrome-bright);
}

.contact-success-ticket strong {
  color: var(--neon-purple);
  letter-spacing: 0.04em;
}

.contact-success-body,
.contact-success-wait {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

@media (max-width: 899px) {
  .home-main-grid {
    grid-template-columns: 1fr;
  }

  .home-portfolio {
    max-height: none;
  }

  body[data-page="home"] .ref-card {
    flex: 0 0 min(16rem, 84cqi);
    width: min(16rem, 84cqi);
  }
}

/* ── Produkt-Unterseiten (Deckblatt-Stil) ── */
.product-deck-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 1.5rem;
}

.product-deck {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding: 2.5rem 2rem;
  background: var(--bg-anthracite);
  text-align: left;
}

.product-deck--split {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.product-deck-main {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.product-qr-panel {
  flex-shrink: 0;
  width: min(100%, 300px);
  padding: 1.25rem;
  background: var(--bg-deep);
  border-radius: var(--radius-sm);
  text-align: center;
  position: relative;
}

.product-qr-universal-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.product-qr-scan-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.85rem;
}

.product-qr-mini-frame {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0e;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.product-qr-mini-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-qr-mini-placeholder {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  padding: 0.35rem;
  line-height: 1.3;
  text-align: center;
}

.product-qr-mini-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.product-qr-download-btn {
  width: 100%;
  padding: 0.35rem 0.25rem;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  cursor: not-allowed;
  transition: all 0.25s ease;
}

.product-qr-download-btn:not(:disabled) {
  color: var(--text-main);
  border-color: rgba(0, 229, 255, 0.45);
  cursor: pointer;
}

.product-qr-download-btn:not(:disabled):hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--neon-cyan);
}

.product-qr-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--chrome-frame-gradient);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

.product-qr-frame {
  width: 100%;
  aspect-ratio: 1;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0e;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.product-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-qr-placeholder {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  padding: 0.75rem;
  line-height: 1.4;
}

.product-qr-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.product-qr-available {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.product-store-badges,
.presentation-store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.store-badge-img {
  display: block;
  width: auto;
  height: 34px;
  max-width: 118px;
  object-fit: contain;
}

.store-badge--missing {
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.store-badge-fallback {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--chrome);
  text-align: center;
  line-height: 1.25;
}

.product-deck-frame {
  border-radius: var(--radius);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    inset 0 0 20px rgba(255, 255, 255, 0.04);
}

.product-deck-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--chrome-frame-gradient);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.95;
}

.product-deck-frame::after {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--neon-accent);
  pointer-events: none;
}

.product-deck-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--silver-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.08));
  margin-bottom: 1.25rem;
}

.product-app-icon {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.35rem;
}

.product-app-icon-img {
  width: clamp(7rem, 22vw, 8.5rem);
  height: clamp(7rem, 22vw, 8.5rem);
  object-fit: contain;
  border-radius: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.panel--spaced {
  margin-top: 1.25rem;
}

.product-deck-text {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.product-deck-back {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  display: inline-block;
}

.portfolio-item--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.portfolio-item--link:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .product-deck--split {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .product-qr-panel {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .product-deck {
    padding: 1.75rem 1.25rem;
  }

  .product-deck--split {
    gap: 1.5rem;
  }

  .product-qr-panel {
    max-width: none;
    padding: 1rem;
  }

  .product-app-icon-img {
    width: clamp(6.5rem, 34vw, 7.5rem);
    height: clamp(6.5rem, 34vw, 7.5rem);
  }

  .store-badge-img {
    height: 30px;
    max-width: 104px;
  }

  .home-splash-foot {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .home-cta-row {
    flex-direction: column;
  }

  .portfolio-item--has-icon {
    gap: 0.65rem;
  }

  .portfolio-item-icon {
    width: clamp(3.75rem, 18vw, 5rem);
    height: clamp(3.75rem, 18vw, 5rem);
  }

  .apps-portfolio-wrap {
    padding: 1.15rem;
  }

  .btn-neon,
  .btn-outline-neon {
    width: 100%;
    text-align: center;
  }
}

/* ── presentation.html — High-End Slide Deck ── */
.presentation-page {
  --gold-border: linear-gradient(135deg, #fedb37 0%, #fdb10b 25%, #ffd700 50%, #bca13b 75%, #fdb10b 100%);
  background: var(--bg-deep);
  min-height: 100vh;
}

.presentation-page .skip-link {
  z-index: 200;
}

.presentation-gold-frame {
  position: absolute;
  inset: 10px;
  border: 0.5mm solid transparent;
  border-image: var(--gold-border) 1;
  pointer-events: none;
  box-shadow: inset 0 0 18px rgba(254, 219, 55, 0.06);
  z-index: 3;
}

.presentation-module {
  position: relative;
  background: var(--bg-anthracite);
}

.presentation-module::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gold-border);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.92;
}

.presentation-chrome-3d {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--silver-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9))
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.12));
}

.presentation-topbar {
  position: fixed;
  top: var(--chrome-content-inset, var(--frame-inset));
  left: var(--chrome-content-inset, var(--frame-inset));
  right: var(--chrome-content-inset, var(--frame-inset));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: calc(var(--frame-radius) - 8px) calc(var(--frame-radius) - 8px) 0 0;
  background: rgba(6, 6, 8, 0.92);
  backdrop-filter: blur(10px);
}

.presentation-topbar-brand {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--chrome-bright);
}

.presentation-topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.presentation-topnav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.presentation-topnav a:hover {
  color: #ffd700;
}

.presentation-main {
  padding-top: calc(var(--chrome-content-inset, var(--frame-inset)) + 3.25rem);
  padding-left: var(--chrome-content-inset, var(--frame-inset));
  padding-right: var(--chrome-content-inset, var(--frame-inset));
  padding-bottom: var(--chrome-content-inset, var(--frame-inset));
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: clip;
}

.presentation-slide {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
}

.presentation-splash {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.presentation-splash-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.presentation-splash-logo {
  width: min(92vw, 720px);
  opacity: 0.42;
  transform: scale(1.15);
  filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.2));
}

.osg-logo-mount--presentation {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.presentation-splash-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(6, 6, 8, 0.15) 0%, rgba(6, 6, 8, 0.72) 55%, #060608 100%),
    linear-gradient(180deg, rgba(6, 6, 8, 0.2) 0%, rgba(6, 6, 8, 0.92) 100%);
}

.presentation-splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.25rem;
  max-width: 920px;
}

.presentation-splash-title {
  font-size: clamp(1.5rem, 5.5vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.presentation-splash-title span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.92em;
}

.presentation-splash-tagline {
  font-size: clamp(0.78rem, 2.2vw, 1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 2rem;
}

.presentation-scroll-hint {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: presentationPulse 2.4s ease-in-out infinite;
}

@keyframes presentationPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

.presentation-section {
  padding: 3rem 1.25rem 4rem;
  display: flex;
  justify-content: center;
}

.presentation-section-inner {
  width: 100%;
  max-width: 1180px;
  padding: 2rem 1.5rem 2.25rem;
  border-radius: var(--radius);
}

.presentation-section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.presentation-section-head .presentation-chrome-3d {
  font-size: clamp(1.2rem, 3.5vw, 1.85rem);
  margin-bottom: 0.65rem;
}

.presentation-section-sub {
  color: var(--silver);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.presentation-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.presentation-product-icon {
  margin-bottom: 0.5rem;
}

.presentation-product-icon-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.presentation-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.15rem 1rem 1.25rem;
  background: #060608;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.presentation-product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gold-border);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.88;
}

.presentation-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(254, 219, 55, 0.08);
}

.presentation-qr-arc {
  width: 100%;
  max-width: 220px;
  margin-bottom: 0.35rem;
}

.presentation-qr-arc-text {
  fill: #e8e8ee;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.presentation-qr-box {
  width: 148px;
  height: 148px;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0e;
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: var(--radius-sm);
}

.presentation-qr-placeholder {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffd700;
  text-align: center;
  padding: 0.5rem;
  line-height: 1.35;
}

.presentation-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.presentation-product-body {
  text-align: center;
  width: 100%;
}

.presentation-product-body h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--chrome-bright);
  margin-bottom: 0.45rem;
  letter-spacing: 0.03em;
}

.presentation-product-body p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.presentation-refs-table-wrap {
  overflow-x: auto;
}

.presentation-refs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.presentation-refs-table th,
.presentation-refs-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.presentation-refs-table th {
  color: #ffd700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.presentation-refs-table td:first-child {
  color: var(--chrome-bright);
  font-weight: 600;
  white-space: nowrap;
}

.presentation-refs-table td:last-child {
  color: var(--text-muted);
  line-height: 1.65;
}

.presentation-refs-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.presentation-footer {
  margin: 0 1.25rem 2rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.presentation-footer p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.presentation-footer-btn {
  margin-bottom: 1rem;
}

.presentation-footer-copy {
  font-size: 0.75rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .presentation-topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.65rem 1rem;
  }

  .presentation-main {
    padding-top: 5.5rem;
  }

  .presentation-section {
    padding: 2rem 1rem 3rem;
  }

  .presentation-section-inner {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-video-frame {
    clip-path: none;
  }

  .portal-has-video .portal-center::before {
    width: min(72vw, 160px);
    max-height: min(14vh, 92px);
    min-height: min(8vh, 52px);
  }

  .portal-logo-dock {
    right: calc(var(--frame-width) + 0.45rem + env(safe-area-inset-right, 0px));
    bottom: calc(
      var(--frame-width)
      + 0.45rem
      + env(safe-area-inset-bottom, 0px)
      + 2.35rem
      + 0.3rem
    );
    min-width: 90px;
    max-width: 100px;
    transform: translate(clamp(0.1rem, 1.8vw, 0.45rem), 0) scale(1);
  }

  .portal-center {
    gap: 0.55rem;
    padding: max(0.55rem, env(safe-area-inset-top, 0px)) 0.55rem max(0.55rem, env(safe-area-inset-bottom, 0px));
  }

  .portal-logo-dock .portal-logo-slot--official {
    min-width: 75px;
    max-width: 90px;
    max-height: none;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.32));
  }

  body[data-page="home"] .portal-logo-dock .portal-logo-official {
    min-width: 75px;
    width: 90px;
    max-width: 90px;
    height: auto;
    max-height: min(11vh, 70px);
  }

  .portal-logo-slot--official {
    max-width: min(94vw, 400px);
    max-height: min(50vh, 400px);
  }

  .portal-logo-official {
    max-height: min(48vh, 380px);
  }

  .portal-logo-slot {
    max-height: min(52vh, 380px);
    min-height: 0;
  }

  .portal-brand-name,
  .portal-brand-name--chrome {
    font-size: clamp(0.62rem, 3.2vw, 0.88rem);
    letter-spacing: 0.08em;
  }

  .portal-has-video .btn-portal-enter {
    width: min(100%, 9rem);
    padding: 0.48rem 0.95rem;
    font-size: clamp(0.72rem, 2.6vw, 0.92rem);
    margin-top: clamp(0.15rem, 0.6vh, 0.35rem);
    letter-spacing: 0.04em;
  }

  .portal-video-sound-btn {
    width: 2.35rem;
    height: 2.35rem;
    right: calc(var(--frame-width) + 0.45rem + env(safe-area-inset-right, 0px));
    bottom: calc(var(--frame-width) + 0.45rem + env(safe-area-inset-bottom, 0px));
  }

  .portal-video-sound-btn svg {
    width: 18px;
    height: 18px;
  }

  .presentation-splash-logo {
    width: 110vw;
    opacity: 0.32;
  }

  .presentation-products-grid {
    grid-template-columns: 1fr;
  }

  .presentation-refs-table th,
  .presentation-refs-table td {
    padding: 0.7rem 0.55rem;
    font-size: 0.78rem;
  }

  .presentation-refs-table td:first-child {
    white-space: normal;
  }

  .presentation-topnav {
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .chameleon-wave { display: none; }
  .portal-curtain { transition-duration: 0.01ms; }
  .chameleon-bg::before { opacity: 1; }
  .portal-logo-official,
  .portal-logo-dock .portal-logo-official { animation: none; }
  .btn-portal-enter { animation: none; }
  #hero-video { filter: none; }
  .refs-marquee-track { animation: none; flex-wrap: wrap; width: 100%; }
  .osg-logo-anim,
  .osg-logo-aura,
  .osg-globe-lines,
  .osg-light-point { animation: none !important; }
}

/* ── MASTER-KORREKTUR: Hub + Unterseiten (Portal/Vorhang unberührt) ── */
/* Enterprise Core stays visible bottom-left on home (inner silver ledge). */

.home-enterprise-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: min(100%, 360px);
  margin: 0.35rem auto 0.5rem;
}

.home-chrome-bar {
  width: min(88%, 320px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(192, 198, 210, 0.35) 18%,
    rgba(232, 236, 244, 0.95) 50%,
    rgba(192, 198, 210, 0.35) 82%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(200, 210, 225, 0.25);
}

.home-enterprise-label {
  margin: 0;
  padding: 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 2.6vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--neon-cyan);
  line-height: 1.35;
  max-width: 100%;
}

body[data-page="home"] .home-splash,
body[data-page="home"] .home-splash-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

body[data-page="home"] .home-splash-logo {
  position: static;
  width: min(42%, 280px);
  max-width: 280px;
  height: auto;
  margin: 0.15rem auto 0.45rem;
  align-self: center;
  object-position: center center;
  max-height: min(14vh, 150px);
}

body[data-page="home"] .home-splash-learn-btn,
body[data-page="home"] .home-splash-foot .btn-neon,
body[data-page="home"] .home-splash-foot .btn-outline-neon {
  width: min(100%, 18rem);
  max-width: 100%;
  text-align: center;
}

.app-page--front .app-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-page--front .app-front-werbetext {
  width: 100%;
  max-width: 42rem;
}

@media screen and (max-width: 900px) {
  /* Paul 2026-08-04: never drop clip on mobile — letters must stay inside inner silver rim */
  body:has(.chrome-frame-inner) .app-shell {
    position: fixed !important;
    inset: var(--chrome-content-inset) !important;
    min-height: 0;
    height: auto;
    overflow: hidden !important;
    border-radius: calc(var(--frame-radius) - 8px);
  }

  body:has(.chrome-frame-inner) .main-content {
    height: 100%;
    min-height: 0;
    overflow-x: clip;
    overflow-y: auto !important;
  }

  body.app-page:has(.chrome-frame-inner) .app-page-shell {
    position: fixed !important;
    inset: var(--chrome-content-inset) !important;
    overflow: hidden !important;
    min-height: 0;
    border-radius: calc(var(--frame-radius) - 8px);
  }

  body.app-page--front .app-page-body,
  body.app-page--desc .app-page-body {
    align-items: stretch;
    padding-top: clamp(1.25rem, 5vw, 2.5rem);
  }

  .app-front-icon {
    margin-left: auto;
    margin-right: auto;
  }

  body[data-page="home"] .home-splash-core {
    padding-bottom: 0.75rem !important;
  }

  .sidebar.is-open {
    height: auto;
    max-height: min(100dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
    overflow-y: auto;
  }
}

/* ── Hub: beide Silberrahmen bleiben; Zwischenraum nur bewegter Hintergrund ── */
/* Paul 2026-07-26: chrome-frame-inner NICHT mehr ausblenden — Gutter = nur BG. */

body:has(#portal-overlay.portal-hidden) .chameleon-bg::after,
body:has(.app-shell):not(:has(#portal-overlay)) .chameleon-bg::after {
  display: none !important;
}

/* Nichts in den 1cm-Ring zwischen den Rahmen (außer BG). */
body[data-page="home"] .chrome-frame-inner {
  display: block !important;
  pointer-events: none;
}

body:has(.app-shell) .app-front-icon-placeholder,
body:has(.app-shell) .portfolio-item-icon-placeholder {
  background-image: none;
  background: linear-gradient(158deg, rgba(168, 85, 247, 0.12), rgba(0, 229, 255, 0.08));
}

body:has(.app-shell) .product-qr-mini-frame,
body:has(.app-shell) .product-qr-frame,
body:has(.app-shell) .store-badge--missing {
  border-style: solid;
  border-color: rgba(200, 210, 225, 0.12);
  outline: none;
  box-shadow: none;
}

/* Pauli download QR — mobile-first */
.home-pauli-download {
  margin-top: 1rem;
}
.home-pauli-download-lead,
.app-front-download-lead {
  margin: 0 0 0.85rem;
  opacity: 0.92;
  font-size: 0.92rem;
  line-height: 1.45;
}
.home-pauli-download-qr,
.app-front-download {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  text-align: center;
}
.app-front-download-title {
  font-size: 1.05rem;
  margin: 0.75rem 0 0.25rem;
}
.pauli-download-open-link {
  margin-top: 0.25rem;
}
@media (max-width: 480px) {
  .home-pauli-download-lead,
  .app-front-download-lead {
    font-size: 0.86rem;
  }
}

/* Desktop Home: nach Vorhang volle Breite nutzen (nicht Handy-Spalte) */
@media screen and (min-width: 901px) {
  body[data-page="home"] .main-content {
    width: auto;
  }

  body[data-page="home"] .home-splash-core {
    max-width: min(100%, 52rem);
  }

  body[data-page="home"] .home-splash-logo {
    width: min(100%, 36rem);
    max-width: 36rem;
  }

  body[data-page="home"] .home-splash-learn-btn,
  body[data-page="home"] .home-splash-foot .btn-neon,
  body[data-page="home"] .home-splash-foot .btn-outline-neon {
    width: auto;
    min-width: 12rem;
  }
}

/* Pauli BestPrice Global — Länder-Hub + Markt-Schaltkasten */
.pbg-global-hub {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.pbg-global-hub__lead {
  margin: 0.75rem auto 1rem;
  max-width: 40rem;
  line-height: 1.55;
  opacity: 0.92;
}

.pbg-market-switch {
  display: block;
  width: 100%;
  max-width: 40rem;
  margin: 0.85rem auto 1.35rem;
  padding: 0.7rem 0.55rem 0.65rem;
  border-radius: calc(var(--radius) - 1px);
  border: 1px solid rgba(0, 229, 255, 0.32);
  background: linear-gradient(165deg, rgba(8, 14, 24, 0.82), rgba(4, 8, 14, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.pbg-country-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  list-style: none;
  padding: 0;
}

.pbg-country-grid--switch {
  gap: 0.5rem;
}

@media screen and (min-width: 701px) {
  .pbg-country-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pbg-country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  min-height: 6.75rem;
  padding: 0.65rem 0.4rem 0.55rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: rgba(6, 10, 18, 0.55);
  color: inherit;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.pbg-country-card:hover,
a.pbg-country-card:focus-visible {
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.pbg-country-card--soon {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

.pbg-country-card--active {
  border-color: rgba(0, 229, 255, 0.72);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
  background: rgba(0, 40, 55, 0.45);
}

.pbg-country-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.45);
  background: radial-gradient(circle at 35% 30%, rgba(0, 229, 255, 0.22), rgba(6, 10, 18, 0.9) 70%);
  margin-bottom: 0.1rem;
  overflow: hidden;
}

.pbg-country-card__icon--medallion {
  width: 4.1rem;
  height: 4.1rem;
  border: none;
  background: transparent;
}

.pbg-country-card__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pbg-country-card__code {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--neon-cyan);
  line-height: 1;
}

.pbg-country-card__name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

.pbg-country-card__meta {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.pbg-global-hub__note {
  margin: 0 auto 0.35rem;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
}

/* Pauli coin: centered hero — Global medallion ABOVE title */
body[data-page="pauli"] .app-front-icon,
body[data-page="pauli-global"] .app-front-icon,
body[data-app-id="pauliBestprice"] .app-front-icon {
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
}

body[data-page="pauli-global"] .pbg-global-hub__coin {
  order: -1;
  margin: 0.35rem auto 0.85rem !important;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

body[data-page="pauli-global"] .pbg-global-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body[data-page="pauli"] .app-front-icon-img,
body[data-page="pauli-global"] .app-front-icon-img,
body[data-app-id="pauliBestprice"] .app-front-icon-img {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 78%, rgba(0, 0, 0, 0.88) 90%, transparent 99%);
  mask-image: radial-gradient(circle at 50% 46%, #000 78%, rgba(0, 0, 0, 0.88) 90%, transparent 99%);
  background: transparent;
}

/* Global / Thailand front: moderated coin (Paul 2026-08-04 — was oversized) */
body[data-page="pauli"] .app-front-icon,
body[data-page="pauli-global"] .app-front-icon,
body[data-app-id="pauliBestprice"] .app-front-icon,
body[data-page="pauli-market"] .app-front-icon {
  width: clamp(5.25rem, 18vw, 7.25rem) !important;
  height: clamp(5.25rem, 18vw, 7.25rem) !important;
}

/* Global medallion — same moderated size */
body[data-page="pauli-global"] .app-front-icon-img {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

body[data-page="pauli"] .app-front-icon-img,
body[data-app-id="pauliBestprice"] .app-front-icon-img {
  width: 100% !important;
  max-width: none !important;
}

body[data-page="pauli-market"] .app-front-icon-img {
  width: 100% !important;
  max-width: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

body[data-page="pauli-market"] .pbg-market-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
}

body[data-page="pauli-market"] .pbg-market-soon__status {
  margin: 0.35rem 0 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

body[data-page="pauli-market"] .pbg-market-soon__lead {
  margin: 0 auto 1.1rem;
  max-width: 34rem;
  line-height: 1.55;
  opacity: 0.92;
}

body[data-page="pauli-market"] .pbg-market-soon__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0.5rem auto;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.35);
  font-size: 1.35rem;
  font-weight: 700;
}

body[data-page="pauli-global"] .app-front-title {
  margin-top: 0.15rem;
  order: 0;
}

/* Thailand market: coin above title, centered */
body[data-page="pauli"] .pbg-thailand-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
}

body[data-page="pauli"] .pbg-thailand-hub__coin {
  margin: 0.35rem auto 0.85rem !important;
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (max-width: 480px) {
  .pbg-market-switch {
    padding: 0.55rem 0.35rem 0.5rem;
    max-width: 100%;
  }
  .pbg-country-card {
    min-height: 6.25rem;
    padding: 0.5rem 0.25rem 0.45rem;
  }
  .pbg-country-card__icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  .pbg-country-card__icon--medallion {
    width: 3.5rem;
    height: 3.5rem;
  }
  .pbg-country-card__name {
    font-size: 0.78rem;
  }
}

/* === OSG home fit 2026-07-28: scrollable if needed; equal tiles; no cut-off behind chrome === */
/* Softened 2026-07-30.05: rubber scale needs room; avoid hard overflow lock on html/body */
html:has(body[data-page="home"]),
body[data-page="home"] {
  height: 100%;
  min-height: 100dvh;
  max-height: none;
  overflow: hidden;
}

body[data-page="home"] .app-shell {
  /* WP-066: do NOT use 100dvh here — with chrome inset it overflows the gutter */
  height: auto;
  max-height: none;
  overflow: hidden;
}

body[data-page="home"] .main-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100dvh;
  overflow-x: clip;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem !important;
}

body[data-page="home"] .home-stage--fit {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 0.35rem 0.75rem 0.35rem;
}

body[data-page="home"] .home-stage--fit .home-splash {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  padding: 0.45rem 0.55rem 0.55rem;
  overflow: visible;
}

body[data-page="home"] .home-stage--fit .home-splash-core {
  width: min(100%, 68rem);
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  overflow: visible;
  padding-right: clamp(4.5rem, 14vw, 6.5rem); /* room for lang flags */
}

body[data-page="home"] .home-stage--fit .home-splash-logo {
  width: min(32vw, 14rem);
  max-height: 11vh;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

body[data-page="home"] .home-fit-sub,
body[data-page="home"] .home-enterprise-label {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(0.65rem, 1.2vw, 0.78rem);
  line-height: 1.3;
  opacity: 0.82;
  order: 0;
}

body[data-page="home"] .home-ai-tagline {
  margin: 0;
  font-size: clamp(0.7rem, 1.3vw, 0.85rem);
  order: -1;
}

.home-app-grid {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 0.55rem;
  max-height: none;
  overflow: visible;
}

.home-app-grid__item {
  display: flex;
  min-height: 0;
  height: 100%;
}

.home-app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 7.25rem;
  max-height: none;
  padding: 0.55rem 0.35rem 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(180, 200, 220, 0.22);
  background: rgba(10, 14, 22, 0.55);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.home-app-tile:hover,
.home-app-tile:focus-visible {
  border-color: rgba(0, 212, 255, 0.7);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.18);
  outline: none;
}

/* Home portfolio icons — compact (screenshots: previously oversized) */
.home-app-tile__icon {
  width: clamp(4.25rem, 8.5vw, 5.75rem);
  height: clamp(4.25rem, 8.5vw, 5.75rem);
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
  background: transparent;
}

.home-app-tile__name {
  font-size: clamp(0.62rem, 1.05vw, 0.76rem);
  font-weight: 650;
  line-height: 1.2;
  min-height: 2.4em;
  max-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.home-app-tile__desc {
  font-size: 0.62rem;
  line-height: 1.2;
  color: rgba(215, 221, 232, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

/* Refs strip: fully visible below tiles (no height clamp that cuts cards) */
body[data-page="home"] .home-refs.home-refs--fit,
body[data-page="home"] .home-stage--fit .home-refs {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin-top: 0.35rem;
  padding: 0.45rem 0.45rem 0.55rem;
  max-height: none;
  overflow: visible;
}

body[data-page="home"] .home-refs--fit .home-section-title {
  font-size: 0.72rem;
  margin: 0 0 0.3rem;
}

body[data-page="home"] .home-refs--fit .refs-marquee {
  max-height: none;
  min-height: 5.2rem;
  overflow: hidden;
}

body[data-page="home"] .home-splash-foot {
  margin-top: 0.45rem;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 3;
}

body[data-page="home"] .page-footer {
  flex: 0 0 auto;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
}

/* Security badge: BETWEEN silver ledges on home (outer gutter, top-left) */
body[data-page="home"] #osg-security-container.osg-security-container--home-gutter {
  top: calc(var(--frame-width, 0.3125rem) + 0.1rem + env(safe-area-inset-top, 0px));
  bottom: auto;
  left: calc(var(--frame-width, 0.3125rem) + 0.15rem + env(safe-area-inset-left, 0px));
  right: auto;
}

/* Quiet Welcome — not a speaker; auto-dismiss handles entry */
.portal-enter-btn--quiet {
  opacity: 0.55;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  padding: 0.45rem 1rem;
  letter-spacing: 0.12em;
}
.portal-enter-btn--quiet:hover,
.portal-enter-btn--quiet:focus-visible {
  opacity: 1;
}

@media (max-width: 900px) {
  .home-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    gap: 0.55rem;
  }
  .home-app-tile {
    min-height: 6.5rem;
  }
  .home-app-tile__icon {
    width: 3.75rem;
    height: 3.75rem;
  }
  body[data-page="home"] .home-stage--fit .home-splash-logo {
    width: min(55vw, 12rem);
    max-height: 10vh;
  }
  body[data-page="home"] .home-stage--fit .home-splash-core {
    padding-right: clamp(3.8rem, 22vw, 5.5rem);
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  body[data-page="home"] .home-stage--fit .home-splash-logo {
    max-height: 9vh;
  }
  .home-app-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .home-app-tile__desc { display: none; }
  .home-app-tile { min-height: 5.5rem; }
}

@media (max-width: 480px) {
  body[data-page="home"] .home-stage--fit {
    padding: 0.25rem 0.4rem 0.35rem;
  }
  body[data-page="home"] .home-stage--fit .home-splash-core {
    padding-right: 3.6rem;
  }
  .home-app-tile__icon {
    width: 3.35rem;
    height: 3.35rem;
  }
  body[data-page="home"] .home-refs--fit {
    max-height: none;
  }
}

/* Paul 2026-07-28: Enterprise Core visible bottom-left inside inner ledge (all pages). */
body[data-page="home"] #osg-secure-badge,
body[data-page="home"] #osg-secure-badge.osg-secure-badge--home-gutter {
  display: flex !important;
}
body[data-page="home"] .portal-video-sound-btn {
  display: none !important;
}


/* Pauli front icon transform/centering: see .pbg-global-hub block (centered). */

/* sound button removed by product request */
.portal-video-sound-btn{display:none!important;}
.btn-portal-enter:not(.portal-enter-btn--quiet) {
  /* keep legacy pages usable */
}

/* === OSG HOME ALIGN FIX 2026-07-28.02 === */
/* === OSG HOME GRID FIRST 2026-07-30: no vertical centering that clips the icon grid === */
body[data-page="home"] .home-stage--fit {
  padding: 0.2rem 0.35rem 0.5rem !important;
}
body[data-page="home"] .home-stage--fit .home-splash {
  flex: 0 1 auto !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 0.55rem 0.7rem 0.85rem !important;
  box-sizing: border-box !important;
}
body[data-page="home"] .home-stage--fit .home-splash-core {
  width: 100% !important;
  max-width: min(100%, 74rem) !important;
  margin: 0 auto !important;
  align-items: center !important;
  text-align: center !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  gap: 0.4rem !important;
}
body[data-page="home"] .home-splash-core {
  max-width: none !important;
  width: 100% !important;
  align-items: center !important;
  text-align: center !important;
}
body[data-page="home"] .home-splash-logo,
body[data-page="home"] .home-stage--fit .home-splash-logo {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
  object-position: center center !important;
  width: min(36vw, 15rem) !important;
  max-width: 15rem !important;
  max-height: 12vh !important;
}
body[data-page="home"] .home-ai-tagline,
body[data-page="home"] .home-enterprise-label,
body[data-page="home"] .home-fit-sub {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 42rem !important;
}
body[data-page="home"] .home-app-grid {
  max-height: none !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-items: stretch !important;
}
body[data-page="home"] .home-app-tile {
  align-items: center !important;
  text-align: center !important;
  min-height: 10.5rem !important;
  padding: 0.45rem 0.35rem 0.4rem !important;
  gap: 0.3rem !important;
}
body[data-page="home"] .home-app-tile__icon {
  width: clamp(4.25rem, 8.5vw, 5.75rem) !important;
  height: clamp(4.25rem, 8.5vw, 5.75rem) !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}
body[data-page="home"] .home-app-tile__icon--pauli,
body[data-page="home"] .home-app-tile[data-app-id="pauliBestprice"] .home-app-tile__icon {
  width: clamp(4.75rem, 9.5vw, 6.25rem) !important;
  height: clamp(4.75rem, 9.5vw, 6.25rem) !important;
  transform: none !important;
  transform-origin: center center !important;
  object-fit: contain !important;
}
body[data-page="home"] .home-app-tile__name {
  width: 100% !important;
  height: 2.2em !important;
  min-height: 2.2em !important;
  font-size: clamp(0.55rem, 0.95vw, 0.7rem) !important;
  margin: 0 !important;
  padding: 0 0.25rem !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  text-align: center !important;
  overflow: hidden !important;
  line-height: 1.2 !important;
  word-break: break-word !important;
}
body[data-page="home"] .home-app-tile__desc { display: none !important; }
body[data-page="home"] .home-splash-foot {
  justify-content: center !important;
  width: 100% !important;
  margin-top: 0.65rem !important;
}
body[data-page="home"] .home-refs--fit {
  width: 100% !important;
  margin-top: 0.5rem !important;
  max-height: none !important;
  overflow: visible !important;
}
/* Pauli icon size/center: handled once in Pauli Schaltkasten block above */
@media (max-width: 900px) {
  body[data-page="home"] .home-stage--fit .home-splash-core {
    padding-right: 0 !important;
  }
  body[data-page="home"] .home-app-tile {
    min-height: 7.5rem !important;
  }
  body[data-page="home"] .home-app-tile__icon {
    width: clamp(4rem, 16vw, 5.25rem) !important;
    height: clamp(4rem, 16vw, 5.25rem) !important;
  }
  body[data-page="home"] .home-app-tile__icon--pauli,
  body[data-page="home"] .home-app-tile[data-app-id="pauliBestprice"] .home-app-tile__icon {
    width: clamp(4.25rem, 17vw, 5.5rem) !important;
    height: clamp(4.25rem, 17vw, 5.5rem) !important;
  }
}
@media (max-width: 480px) {
  body[data-page="home"] .home-stage--fit .home-splash {
    padding: 0.4rem 0.4rem 0.85rem !important;
  }
  body[data-page="home"] .home-app-tile {
    min-height: 6.75rem !important;
  }
  body[data-page="home"] .home-app-tile__icon {
    width: clamp(3.75rem, 22vw, 4.85rem) !important;
    height: clamp(3.75rem, 22vw, 4.85rem) !important;
  }
  body[data-page="home"] .home-app-tile__icon--pauli,
  body[data-page="home"] .home-app-tile[data-app-id="pauliBestprice"] .home-app-tile__icon {
    width: clamp(4rem, 23vw, 5.1rem) !important;
    height: clamp(4rem, 23vw, 5.1rem) !important;
  }
}

/* === OSG APP-PAGE CURVE-MATCH 2026-07-28 ===
   Responsive stabilization for app pages on resize/fullscreen/split-screen.
   Goal: keep centered layout, stable spacing, no overlap chaos. */
body.app-page:has(.chrome-frame-inner) .app-page-shell {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch !important;
  justify-items: center !important;
  width: auto;
  min-height: 0;
}

body.app-page:has(.chrome-frame-inner) .app-page-body {
  width: 100%;
  max-width: min(100%, 58rem);
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding:
    clamp(4.2rem, 7.5vh, 5.2rem)
    clamp(0.9rem, 2.3vw, 1.6rem)
    clamp(6.2rem, 10vh, 7.3rem) !important;
}

body.app-page--front:has(.chrome-frame-inner) .app-page-body,
body.app-page--desc:has(.chrome-frame-inner) .app-page-body {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding-right: clamp(0.9rem, 2.3vw, 1.6rem) !important;
}

body.app-page:has(.chrome-frame-inner) .app-front,
body.app-page:has(.chrome-frame-inner) .app-desc {
  width: 100%;
  max-width: min(100%, 52rem);
  margin: 0 auto;
}

body.app-page:has(.chrome-frame-inner) .app-front-title,
body.app-page:has(.chrome-frame-inner) .app-front-lead,
body.app-page:has(.chrome-frame-inner) .app-front-werbetext,
body.app-page:has(.chrome-frame-inner) .app-desc-title,
body.app-page:has(.chrome-frame-inner) .app-desc-subtitle,
body.app-page:has(.chrome-frame-inner) .app-desc-body {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

body.app-page:has(.chrome-frame-inner) .app-front-werbetext,
body.app-page:has(.chrome-frame-inner) .app-desc-body {
  text-wrap: pretty;
}

@media (max-width: 1200px) {
  body.app-page:has(.chrome-frame-inner) .app-page-body {
    max-width: min(100%, 54rem);
  }
}

@media (max-width: 900px) {
  body.app-page:has(.chrome-frame-inner) .app-page-shell {
    position: fixed !important;
    inset: var(--chrome-content-inset) !important;
    border-radius: calc(var(--frame-radius) - 8px);
    overflow: hidden !important;
  }

  body.app-page:has(.chrome-frame-inner) .app-page-body {
    max-width: min(100%, 50rem);
    padding:
      clamp(4rem, 7.2vh, 4.8rem)
      clamp(0.75rem, 2.8vw, 1.15rem)
      clamp(6rem, 10.5vh, 6.8rem) !important;
  }
}

@media (max-width: 480px) {
  body.app-page:has(.chrome-frame-inner) .app-page-body {
    padding:
      clamp(3.55rem, 6.8vh, 4.1rem)
      clamp(0.62rem, 3.2vw, 0.92rem)
      clamp(5.6rem, 10.4vh, 6.2rem) !important;
  }

  body.app-page:has(.chrome-frame-inner) .app-front {
    padding: clamp(0.7rem, 2.2vw, 1rem);
  }
}

/* === OSG HOME CURVE-MATCH 2026-07-28 ===
   Final home stabilization: no overlap with language rail,
   constant inner-frame spacing, equal icon sizing. */
body[data-page="home"] .main-content {
  overflow-x: hidden !important;
}

body[data-page="home"] .home-stage--fit {
  padding:
    clamp(0.45rem, 1.25vh, 0.85rem)
    clamp(0.55rem, 1.7vw, 1.15rem)
    clamp(0.35rem, 1.0vh, 0.75rem) !important;
}

body[data-page="home"] .home-stage--fit .home-splash {
  margin-bottom: clamp(0.35rem, 1.0vh, 0.7rem) !important;
  padding:
    clamp(0.45rem, 1.1vh, 0.8rem)
    clamp(0.45rem, 1.35vw, 0.95rem)
    clamp(0.55rem, 1.35vh, 0.95rem) !important;
}

body[data-page="home"] .home-stage--fit .home-splash-core {
  width: min(100%, 70rem) !important;
  max-width: 70rem !important;
  /* reserve dedicated lane for language rail on right */
  padding-right: clamp(6.8rem, 15.5vw, 8.4rem) !important;
  padding-left: clamp(0.2rem, 0.7vw, 0.5rem) !important;
  box-sizing: border-box !important;
  gap: clamp(0.32rem, 0.95vh, 0.58rem) !important;
}

body[data-page="home"] .home-ai-tagline,
body[data-page="home"] .home-enterprise-label,
body[data-page="home"] .home-fit-sub {
  max-width: min(100%, 44rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

body[data-page="home"] .home-app-grid {
  width: 100% !important;
  max-width: min(100%, 58rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Pauli icon same size as other home tiles — see WP-065 equal-size block */
body[data-page="home"] .home-app-tile__icon--pauli,
body[data-page="home"] .home-app-tile[data-app-id="pauliBestprice"] .home-app-tile__icon {
  transform: none !important;
}

body[data-page="home"] .home-refs.home-refs--fit,
body[data-page="home"] .home-stage--fit .home-refs {
  margin-top: clamp(0.28rem, 0.9vh, 0.55rem) !important;
}

@media (max-width: 1100px) {
  body[data-page="home"] .home-stage--fit .home-splash-core {
    padding-right: clamp(6.1rem, 18vw, 7.2rem) !important;
  }
}

@media (max-width: 900px) {
  body[data-page="home"] .home-stage--fit .home-splash-core {
    padding-right: clamp(5.3rem, 16.5vw, 6.1rem) !important;
  }

  body[data-page="home"] .home-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-stage--fit .home-splash-core {
    padding-right: clamp(4.6rem, 14.5vw, 5.2rem) !important;
  }

  body[data-page="home"] .home-ai-tagline,
  body[data-page="home"] .home-enterprise-label,
  body[data-page="home"] .home-fit-sub {
    max-width: min(100%, 22rem) !important;
    font-size: clamp(0.62rem, 2.35vw, 0.74rem) !important;
    line-height: 1.32 !important;
  }
}

/* === OSG CHROME FIXED META + HOME CLEAN 2026-07-30.03 === */
/* Old ∞ mark: never show */
.osg-site-mark { display: none !important; }

/* Location + ©: BETWEEN silver ledges (outer gutter) — fixed chrome, every page */
.chrome-fixed-meta {
  position: fixed;
  z-index: 11020;
  left: calc(var(--frame-width, 0.3125rem) + 0.12rem + env(safe-area-inset-left, 0px));
  right: calc(var(--frame-width, 0.3125rem) + 0.12rem + env(safe-area-inset-right, 0px));
  bottom: calc(var(--frame-width, 0.3125rem) + 0.1rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  pointer-events: none;
  font-size: 0.58rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: rgba(210, 218, 230, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transform: none !important;
  animation: none !important;
}

.chrome-fixed-meta__loc,
.chrome-fixed-meta__copy {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48%;
}

body:has(.chrome-fixed-meta) .page-footer {
  display: none !important;
}

/* Scroll only inside main-content; clear of silver ledge + fixed meta */
body:has(.chrome-frame-inner) .main-content {
  padding-bottom: calc(1.85rem + env(safe-area-inset-bottom, 0px)) !important;
  overflow-x: clip;
}

body[data-page="home"] .main-content {
  padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px)) !important;
}

/* Home = icon grid only (Future lives on ozgs.html) */
body[data-page="home"] .home-stage--fit .home-splash-core {
  gap: 0.55rem !important;
  padding-right: clamp(3.2rem, 9vw, 4.8rem) !important; /* lang rail clearance */
  padding-left: 0.25rem !important;
  padding-bottom: 0.35rem !important;
}

body[data-page="home"] .home-app-grid {
  position: relative;
  z-index: 1;
  isolation: isolate;
  margin-top: 0.35rem !important;
  gap: 0.65rem !important;
}

body[data-page="home"] .home-app-tile {
  min-height: 11rem !important;
  padding: 0.55rem 0.4rem 0.5rem !important;
  overflow: hidden;
  background: rgba(8, 10, 14, 0.72) !important;
}

body[data-page="home"] .home-app-tile__icon {
  width: clamp(5.5rem, 12vw, 7.5rem) !important;
  height: clamp(5.5rem, 12vw, 7.5rem) !important;
  object-fit: contain !important;
  object-position: center center !important;
}

body[data-page="home"] .home-app-tile__name {
  position: relative;
  z-index: 2;
  height: auto !important;
  min-height: 2.4em !important;
  max-height: none !important;
  font-size: clamp(0.62rem, 1.05vw, 0.78rem) !important;
  line-height: 1.25 !important;
  color: rgba(230, 236, 245, 0.95) !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
}

body[data-page="home"] .home-refs--fit,
body[data-page="home"] .home-splash-foot {
  position: relative;
  z-index: 1;
  clear: both;
}

/* Dedicated Future page */
body[data-page="ozgs"] .ozgs-page-body {
  padding: 0.85rem 0.9rem 1.5rem;
  max-width: min(100%, 74rem);
  margin: 0 auto;
  box-sizing: border-box;
}

body[data-page="ozgs"] .ozgs-section {
  margin: 0 0 1rem;
}

body[data-page="ozgs"] .ozgs-back-home {
  margin: 0.75rem 0 0;
  text-align: center;
}

@media (max-width: 480px) {
  .chrome-fixed-meta {
    left: calc(var(--frame-width, 0.3125rem) + 0.08rem + env(safe-area-inset-left, 0px));
    right: calc(var(--frame-width, 0.3125rem) + 0.08rem + env(safe-area-inset-right, 0px));
    bottom: calc(var(--frame-width, 0.3125rem) + 0.06rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.52rem;
    gap: 0.15rem 0.4rem;
  }

  .chrome-fixed-meta__loc,
  .chrome-fixed-meta__copy {
    max-width: 100%;
    white-space: normal;
  }

  body[data-page="home"] .home-stage--fit .home-splash-core {
    padding-right: clamp(3rem, 12vw, 4rem) !important;
  }

  body[data-page="home"] .home-app-tile {
    min-height: 9.5rem !important;
  }

  body[data-page="ozgs"] .ozgs-page-body {
    padding: 0.55rem 0.45rem 1.25rem;
  }
}

/* === PAUL 2026-08-04 — CHROME CANON (WP-065) ===
   Outer gutter BETWEEN silver frames = FIXED chrome only:
   Enterprise Core (top-left), Samko (bottom-left), © (bottom-right).
   Page content stays clipped inside the inner silver stroke.
   Background (.chameleon-bg / hero video) may stay full-bleed. */
body:has(.chrome-frame-inner) {
  overflow-x: clip;
}
body:has(.chrome-frame-inner) .app-shell,
body.app-page:has(.chrome-frame-inner) .app-page-shell {
  inset: var(--chrome-content-inset) !important;
  overflow: hidden !important;
}

/* Fixed chrome in OUTER GUTTER (between outer chrome + inner silver) */
body:has(.chrome-frame-inner) .chrome-fixed-meta {
  left: calc(var(--frame-width, 0.3125rem) + 0.12rem + env(safe-area-inset-left, 0px)) !important;
  right: calc(var(--frame-width, 0.3125rem) + 0.12rem + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(var(--frame-width, 0.3125rem) + 0.1rem + env(safe-area-inset-bottom, 0px)) !important;
}
body:has(.chrome-frame-inner) #osg-security-container,
body:has(.chrome-frame-inner) #osg-security-container.osg-security-container--home-gutter {
  position: fixed !important;
  top: calc(var(--frame-width, 0.3125rem) + 0.1rem + env(safe-area-inset-top, 0px)) !important;
  left: calc(var(--frame-width, 0.3125rem) + 0.15rem + env(safe-area-inset-left, 0px)) !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 11045 !important;
}

/* Home coins: equal size, large enough (Paul delivered equal assets — do not shrink) */
body[data-page="home"] .home-app-tile__icon,
body[data-page="home"] .home-app-tile__icon--pauli,
body[data-page="home"] .home-app-tile[data-app-id="pauliBestprice"] .home-app-tile__icon {
  width: clamp(6.75rem, 14vw, 8.75rem) !important;
  height: clamp(6.75rem, 14vw, 8.75rem) !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}
@media (max-width: 900px) {
  body[data-page="home"] .home-app-tile__icon,
  body[data-page="home"] .home-app-tile__icon--pauli,
  body[data-page="home"] .home-app-tile[data-app-id="pauliBestprice"] .home-app-tile__icon {
    width: clamp(5.75rem, 20vw, 7.25rem) !important;
    height: clamp(5.75rem, 20vw, 7.25rem) !important;
  }
}
@media (max-width: 480px) {
  body[data-page="home"] .home-app-tile__icon,
  body[data-page="home"] .home-app-tile__icon--pauli,
  body[data-page="home"] .home-app-tile[data-app-id="pauliBestprice"] .home-app-tile__icon {
    width: clamp(5.25rem, 28vw, 6.5rem) !important;
    height: clamp(5.25rem, 28vw, 6.5rem) !important;
  }
}

/* Home lang rail: snug to INNER silver ledge (top-right), room for endonyms */
body[data-page="home"] #osg-lang-rail,
body:has(.chrome-frame-inner) #osg-lang-rail {
  top: calc(var(--frame-inset) + 0.28rem + env(safe-area-inset-top, 0px)) !important;
  right: calc(var(--frame-inset) + 0.28rem + env(safe-area-inset-right, 0px)) !important;
  width: min(7.6rem, 30vw) !important;
}
body[data-page="home"] .home-stage--fit .home-splash-core {
  padding-right: calc(8.2rem + env(safe-area-inset-right, 0px)) !important;
}

/* === PAUL 2026-08-04 06:47 Screenshot — CHROME LEAK FIX (WP-066) ===
   Root cause: home .app-shell { height:100dvh } after inset blew the shell
   past the inner silver into the outer gutter → Premium-Referenzen / marquee
   sat ON Samko + ©. Kill 100dvh height; clip refs; fill coins; tuck lang rail. */
body[data-page="home"]:has(.chrome-frame-inner) .app-shell {
  /* Size ONLY from inset — never height/min-height:100vh/dvh with a top inset.
     Live verify 06:56: min-height:100vh on .app-shell kept shell at 800px → leak 81px past inner silver. */
  inset: var(--chrome-content-inset) !important;
  top: var(--chrome-content-inset) !important;
  right: var(--chrome-content-inset) !important;
  bottom: var(--chrome-content-inset) !important;
  left: var(--chrome-content-inset) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}
body[data-page="home"] .app-shell {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
body[data-page="home"]:has(.chrome-frame-inner) .main-content {
  /* Scroll inside shell; no fake bottom padding that pushed refs into gutter */
  height: 100% !important;
  max-height: 100% !important;
  padding-bottom: 0.45rem !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
}
body[data-page="home"] .home-stage--fit,
body[data-page="home"] .home-stage--fit .home-splash,
body[data-page="home"] .home-stage--fit .home-splash-core {
  overflow: hidden !important;
}
body[data-page="home"] .home-refs,
body[data-page="home"] .home-refs.home-refs--fit,
body[data-page="home"] .home-refs--fit,
body[data-page="home"] .home-stage--fit .home-refs {
  overflow: hidden !important;
  max-width: 100% !important;
  margin-bottom: 0 !important;
  /* Compact so marquee stays inside splash / shell */
  max-height: min(7.5rem, 22vh) !important;
}
body[data-page="home"] .home-refs--fit .refs-marquee {
  max-height: min(5.6rem, 18vh) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body[data-page="home"] .home-refs--fit .ref-card {
  overflow: hidden !important;
  max-height: 5.2rem !important;
}

/* Meta + Enterprise: vertically centered in OUTER gutter band (between silver) */
body:has(.chrome-frame-inner) .chrome-fixed-meta {
  bottom: calc(
    var(--frame-width, 0.3125rem)
    + ((var(--frame-inset, 1.7rem) - var(--frame-width, 0.3125rem) - 0.72rem) * 0.5)
    + env(safe-area-inset-bottom, 0px)
  ) !important;
  z-index: 11050 !important;
}
body:has(.chrome-frame-inner) #osg-security-container,
body:has(.chrome-frame-inner) #osg-security-container.osg-security-container--home-gutter {
  top: calc(
    var(--frame-width, 0.3125rem)
    + ((var(--frame-inset, 1.7rem) - var(--frame-width, 0.3125rem) - 0.72rem) * 0.5)
    + env(safe-area-inset-top, 0px)
  ) !important;
}

/* Home coins: fill tile — circular assets need larger box to match square medallions */
body[data-page="home"] .home-app-tile {
  min-height: 12.25rem !important;
  padding: 0.4rem 0.3rem 0.35rem !important;
  gap: 0.22rem !important;
}
body[data-page="home"] .home-app-tile__icon,
body[data-page="home"] .home-app-tile__icon--pauli,
body[data-page="home"] .home-app-tile[data-app-id="pauliBestprice"] .home-app-tile__icon {
  width: clamp(7.75rem, 16.5vw, 10.25rem) !important;
  height: clamp(7.75rem, 16.5vw, 10.25rem) !important;
  max-width: 92% !important;
  margin: 0 auto !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}
@media (max-width: 900px) {
  body[data-page="home"] .home-app-tile {
    min-height: 9.5rem !important;
  }
  body[data-page="home"] .home-app-tile__icon,
  body[data-page="home"] .home-app-tile__icon--pauli,
  body[data-page="home"] .home-app-tile[data-app-id="pauliBestprice"] .home-app-tile__icon {
    width: clamp(6.5rem, 24vw, 8.5rem) !important;
    height: clamp(6.5rem, 24vw, 8.5rem) !important;
  }
}
@media (max-width: 480px) {
  body[data-page="home"] .home-app-tile {
    min-height: 8.25rem !important;
  }
  body[data-page="home"] .home-app-tile__icon,
  body[data-page="home"] .home-app-tile__icon--pauli,
  body[data-page="home"] .home-app-tile[data-app-id="pauliBestprice"] .home-app-tile__icon {
    width: clamp(5.75rem, 32vw, 7.25rem) !important;
    height: clamp(5.75rem, 32vw, 7.25rem) !important;
  }
}

/* Lang rail: INSIDE content inset (not on the silver stroke), aligned pills */
body[data-page="home"] #osg-lang-rail,
body:has(.chrome-frame-inner) #osg-lang-rail {
  top: calc(var(--chrome-content-inset) + 0.55rem + env(safe-area-inset-top, 0px)) !important;
  right: calc(var(--chrome-content-inset) + 0.55rem + env(safe-area-inset-right, 0px)) !important;
  width: min(7.8rem, 28vw) !important;
}
body[data-page="home"] #osg-lang-rail .hub-lang-picker__btn {
  min-height: 2.05rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.35rem !important;
  padding: 0.38rem 0.55rem !important;
  line-height: 1.15 !important;
  text-align: left !important;
}
body[data-page="home"] #osg-lang-rail .hub-lang-picker__btn img,
body[data-page="home"] #osg-lang-rail .hub-lang-picker__btn .lang-flag {
  flex: 0 0 auto;
}
body[data-page="home"] .home-stage--fit .home-splash-core {
  padding-right: calc(8.6rem + env(safe-area-inset-right, 0px)) !important;
}
