/* ═══════════════════════════════════════════
   OPTIKOS VISIONGPT — Software page (v1.9.23)
   Loaded only on page-software.php (enqueued from the template, after
   parkvi.css), so it can use the design tokens defined there.
   Bilingual note: elements carrying .lang-de / .lang-en are forced to
   display:block by the theme's language toggle, so those classes are only
   put on plain block elements (p, div) — never on flex/grid containers.
═══════════════════════════════════════════ */

/* ─── Hero additions ─── */
.vg-hero-tagline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.25; letter-spacing: -0.01em;
  color: #fff; margin: -6px 0 18px;
}
.vg-hero-tagline .vg-accent { color: var(--cyan); white-space: nowrap; }

.vg-hero-visual {
  position: relative;
  width: 100%; max-width: 470px;
  margin: 0 auto;
}
.vg-hero-logo {
  display: block;
  width: 100%; max-width: 420px; height: auto;
  margin: -70px auto -96px;
  pointer-events: none;
  filter: drop-shadow(0 24px 60px rgba(0,180,216,0.20));
}
.vg-chat {
  position: relative; z-index: 1;
  background: rgba(8,20,36,0.86);
  border: 1px solid rgba(0,180,216,0.28);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.vg-chat-row { position: relative; border-radius: 12px; padding: 12px 14px; }
.vg-chat-row + .vg-chat-row { margin-top: 10px; }
.vg-chat-user { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); }
.vg-chat-bot  { background: rgba(0,180,216,0.08); border: 1px solid rgba(0,180,216,0.28); padding-right: 70px; }
.vg-chat-label {
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.vg-chat-bot .vg-chat-label { color: var(--cyan); }
.vg-chat-row p { font-size: 0.9rem; line-height: 1.5; color: rgba(255,255,255,0.86); }
.vg-chat-user p { font-style: italic; }
.vg-verdict {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  min-width: 46px; text-align: center;
  background: rgba(0,200,150,0.14);
  border: 1px solid rgba(0,200,150,0.55);
  color: var(--success);
  font-weight: 800; font-size: 0.9rem; letter-spacing: 0.05em;
  padding: 6px 10px; border-radius: 8px;
}

/* ─── VISION 2026 notice ─── */
.vg-fair {
  position: relative;
  padding: 0 40px;
  background: linear-gradient(90deg, rgba(232,169,35,0.13) 0%, rgba(0,180,216,0.07) 100%);
  border-top: 1px solid rgba(232,169,35,0.30);
  border-bottom: 1px solid rgba(232,169,35,0.30);
}
.vg-fair-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 22px 0;
  display: flex; align-items: center; gap: 24px;
}
.vg-fair-badge {
  flex-shrink: 0;
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em;
  color: #0d1b2e; background: var(--gold);
  padding: 8px 14px; border-radius: 8px;
}
.vg-fair-text { flex: 1; min-width: 0; }
.vg-fair-text p { font-size: 0.95rem; line-height: 1.55; color: rgba(255,255,255,0.82); }
.vg-fair-text strong { color: #fff; }
.vg-fair-link {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 600; font-size: 0.92rem;
  text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(232,169,35,0.5);
  padding: 10px 16px; border-radius: var(--r);
  transition: background 0.2s;
}
.vg-fair-link:hover { background: rgba(232,169,35,0.12); }

/* ─── Demo video ─── */
.vg-video-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #050c16;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,180,216,0.08);
}
.vg-video {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  background: #050c16;
}
.vg-video-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
}

/* ─── Today vs VisionGPT ─── */
.vg-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.vg-vs-card {
  border-radius: var(--r-lg);
  padding: 28px 30px;
}
.vg-vs-old { background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.16); }
.vg-vs-new {
  background: rgba(0,180,216,0.06);
  border: 1px solid rgba(0,180,216,0.38);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.vg-vs-label {
  margin-bottom: 16px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.vg-vs-new .vg-vs-label { color: var(--cyan); }
.vg-vs-list { list-style: none; margin: 0; padding: 0; }
.vg-vs-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem; line-height: 1.5;
  color: rgba(255,255,255,0.68);
}
.vg-vs-list li:first-child { border-top: 0; }
.vg-vs-list li::before {
  position: absolute; left: 0; top: 10px;
  font-weight: 700;
}
.vg-vs-old .vg-vs-list li::before { content: '–'; color: rgba(255,255,255,0.4); }
.vg-vs-new .vg-vs-list li::before { content: '✓'; color: var(--success); }
.vg-vs-list strong { color: #fff; }

/* ─── 7-step flow ─── */
.vg-flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, 1fr);
}
.vg-flow-step { position: relative; text-align: center; padding: 0 8px; }
.vg-flow-step:not(:last-child)::after {
  content: '';
  position: absolute; top: 27px;
  left: calc(50% + 34px); width: calc(100% - 68px);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(0,180,216,0.35));
}
.vg-flow-node {
  position: relative; z-index: 1;
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(6,18,36,0.85);
  font-family: 'DM Serif Display', serif; font-size: 1.25rem; color: #fff;
}
.vg-flow-ai .vg-flow-node {
  border-color: var(--cyan); background: var(--cyan);
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1rem;
  box-shadow: 0 0 30px rgba(0,180,216,0.45);
}
.vg-flow-step h4 { margin-bottom: 6px; font-size: 0.95rem; font-weight: 700; color: #fff; }
.vg-flow-step p  { font-size: 0.78rem; line-height: 1.5; color: rgba(255,255,255,0.55); }

.vg-axis {
  position: relative;
  display: grid; grid-template-columns: repeat(7, 1fr);
  margin-top: 30px; padding-top: 16px;
}
.vg-axis::before {
  content: '';
  position: absolute; top: 0;
  left: calc(100% / 14); right: calc(100% / 14);
  height: 1px; background: rgba(0,180,216,0.45);
}
.vg-axis > span {
  position: relative;
  text-align: center;
  font-size: 0.78rem; font-weight: 700; color: #fff;
}
.vg-axis > span::before {
  content: '';
  position: absolute; top: -21px; left: 50%;
  width: 2px; height: 11px;
  transform: translateX(-50%);
  background: var(--cyan);
}
.vg-axis-t1 { grid-column: 1; }
.vg-axis-t2 { grid-column: 2; }
.vg-axis-t3 { grid-column: 3; }
.vg-axis-t4 { grid-column: 4; }
.vg-axis-t5 { grid-column: 5 / span 2; }
.vg-axis-t6 { grid-column: 7; }
.vg-flow-claim {
  margin: 40px auto 0; max-width: 820px;
  text-align: center;
  font-size: 1.08rem; font-weight: 600; line-height: 1.6;
  color: rgba(255,255,255,0.88);
}

/* ─── Own model ─── */
.vg-model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.vg-model {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 26px 22px;
}
.vg-model-num {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: var(--cyan); color: #06223a; font-weight: 800;
}
.vg-model h3 { margin-bottom: 10px; font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: #fff; }
.vg-model ul { list-style: none; margin: 0; padding: 0; }
.vg-model li {
  position: relative;
  margin-top: 8px; padding-left: 14px;
  font-size: 0.86rem; line-height: 1.6;
  color: rgba(255,255,255,0.62);
}
.vg-model li::before {
  content: '';
  position: absolute; left: 0; top: 0.65em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan);
}

/* ─── Optikos platform modules ─── */
.vg-modules { display: flex; flex-wrap: wrap; gap: 10px; margin: -28px 0 40px; }
.vg-module {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
}
.vg-module-gpt { color: #06223a; background: var(--cyan); border-color: var(--cyan); }

/* ─── Optikos IPC ─── */
.vg-ipc {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 40px; align-items: center;
  margin: 8px 0 24px;
  padding: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
}
.vg-ipc-fig { margin: 0; }
.vg-ipc-fig img { display: block; width: 100%; height: auto; border-radius: 12px; }
.vg-ipc-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); background: rgba(232,169,35,0.12);
  border-radius: 4px;
}
.vg-ipc h3 {
  margin-bottom: 16px;
  font-family: 'DM Serif Display', serif; font-weight: 700;
  font-size: 1.6rem; line-height: 1.25; color: #fff;
}
.vg-ipc-list { list-style: none; margin: 0 0 18px; padding: 0; }
.vg-ipc-list li {
  position: relative;
  margin-bottom: 10px; padding-left: 18px;
  font-size: 0.92rem; line-height: 1.6;
  color: rgba(255,255,255,0.66);
}
.vg-ipc-list li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
}
.vg-ipc-list strong { color: #fff; }
.vg-ipc-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.vg-ipc-specs > span {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.86);
  background: rgba(0,180,216,0.08);
  border: 1px solid rgba(0,180,216,0.25);
}

/* ─── Final CTA addition ─── */
.sw-cta p.vg-cta-fair { margin-top: -18px; font-size: 0.95rem; color: var(--gold); }

/* ─── Responsive ─── */
/* Let grid children shrink below their min-content width so long German
   compounds can never push a card wider than the screen. */
.vg-vs > *, .vg-model-grid > *, .vg-ipc > * { min-width: 0; }
/* Soft hyphens (&shy;) are only used on small screens; wider screens keep
   headings unhyphenated. */
.sw-section-title { -webkit-hyphens: none; hyphens: none; }

@media (max-width: 1024px) {
  .vg-hero-visual { max-width: 420px; }
  .vg-hero-logo { max-width: 360px; margin: -40px auto -80px; }
  .vg-vs { grid-template-columns: 1fr; }
  .vg-model-grid { grid-template-columns: repeat(2, 1fr); }
  .vg-ipc { grid-template-columns: 1fr; gap: 24px; }

  /* 7-step flow becomes a vertical timeline */
  .vg-flow { grid-template-columns: 1fr; max-width: 560px; }
  .vg-flow-step {
    display: grid; grid-template-columns: 56px 1fr; column-gap: 18px;
    text-align: left; padding: 0 0 22px;
  }
  .vg-flow-node { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .vg-flow-step h4, .vg-flow-step p { grid-column: 2; }
  .vg-flow-step h4 { margin-top: 6px; }
  .vg-flow-step:not(:last-child)::after {
    top: 58px; bottom: 2px; left: 27px;
    width: 2px; height: auto;
    background: rgba(0,180,216,0.45);
  }
  .vg-axis { display: none; }
  .vg-flow-claim { margin-top: 18px; text-align: left; }
}
@media (max-width: 900px) {
  .vg-fair-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .vg-fair-link { white-space: normal; }
}
@media (max-width: 640px) {
  .sw-section-title, .vg-hero-tagline, .vg-ipc h3, .vg-model h3 {
    -webkit-hyphens: auto; hyphens: auto;
    overflow-wrap: break-word;
  }
  .vg-fair { padding: 0 22px; }
  .vg-hero-tagline { font-size: 1.3rem; }
  .vg-hero-logo { max-width: 300px; margin: -30px auto -66px; }
  .vg-vs-card { padding: 22px 20px; }
  .vg-model-grid { grid-template-columns: 1fr; }
  .vg-ipc { padding: 18px; }
}
