/* ═══════════════════════════════════════════════════════════════════
   PARKVI — v1.9.26 additions
   Loaded AFTER parkvi.css as its own file. parkvi.css contains an old
   unclosed rule (.ai-demo-corner-br, ~line 2601) that makes browsers
   ignore everything after it, so new rules must not live there.
═══════════════════════════════════════════════════════════════════ */

/* ─── 1. Mobile fix for the German site ──────────────────────────────
   Long German compounds ("Schweißnahtinspektion",
   "Bildverarbeitungsspezialist") made grid cards and headings wider
   than the phone screen, so the page became ~425 px wide on a 375 px
   phone (horizontal scrolling, menu button pushed off-screen). */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

.app-grid > *, .process-steps > *, .stats-inner > *, .services-grid > *,
.industries-grid > *, .cases-grid > *, .pillars-grid > *, .footer-grid > *,
.hero-inner > *, .solutions-layout > *, .contact-layout > * { min-width: 0; }

h1, h2, h3, h4, h5 { overflow-wrap: break-word; word-wrap: break-word; }

@media (max-width: 768px) {
  body.lang-de h1, body.lang-de h2, body.lang-de h3, body.lang-de h4 {
    -webkit-hyphens: manual; hyphens: manual;   /* use the &shy; in the templates */
  }
  .page-hero { padding: 64px 24px 56px; }
  .app-card { padding-left: 16px; padding-right: 16px; }
  .process-step { padding: 0 8px; }
}
@media (max-width: 420px) {
  .page-hero h1 { font-size: 1.75rem; }
  .app-card h4 { font-size: 0.82rem; }
}


/* ─── 2. SPS 2026 booth notice ─────────────────────────────────────── */
.sps-notice {
  position: relative;
  padding: 0 40px;
  background:
    radial-gradient(ellipse 60% 120% at 85% 50%, rgba(232,169,35,0.10), transparent 70%),
    linear-gradient(90deg, rgba(232,169,35,0.07) 0%, rgba(0,180,216,0.05) 100%),
    var(--navy, #182d47);
  border-top: 1px solid rgba(232,169,35,0.28);
  border-bottom: 1px solid rgba(232,169,35,0.28);
  overflow: hidden;
}
.sps-notice-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 64px;
  align-items: center;
}
.sps-notice-text { min-width: 0; }

.sps-notice .sps-notice-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #0d1b2e; background: var(--gold, #e8a923);
  padding: 7px 14px; border-radius: 6px;
  margin: 0 0 20px;
}
.sps-notice .sps-notice-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #0d1b2e;
  animation: sps-dot 10s ease-in-out infinite;
}

.sps-notice .sps-notice-title {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -0.01em;
  color: #fff; margin: 0 0 14px;
}
.sps-notice .sps-notice-sub {
  font-size: 1.02rem; line-height: 1.7; font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 600px; margin: 0 0 28px;
}
.sps-notice a.sps-notice-cta,
.sps-notice a.sps-notice-cta:visited {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold, #e8a923); font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(232,169,35,0.55); border-radius: var(--r, 10px);
  padding: 12px 20px;
  transition: background 0.2s, border-color 0.2s;
}
.sps-notice a.sps-notice-cta:hover { background: rgba(232,169,35,0.12); border-color: var(--gold, #e8a923); }

/* Hall / booth card — template colours (navy panel, cyan edge,
   blue→cyan serif numbers like the stats section) */
.sps-notice .sps-card {
  position: relative;
  background: linear-gradient(160deg, var(--navy-mid, #1f3a5a) 0%, rgba(8,18,30,0.85) 100%);
  border: 1px solid rgba(0,180,216,0.35);
  border-radius: var(--r-lg, 20px);
  padding: 28px 32px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  overflow: hidden;
  animation: sps-glow 10s ease-in-out infinite;
}
/* soft light sweep across the card, once per highlight */
.sps-notice .sps-card::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%;
  background: linear-gradient(100deg, transparent 0%, rgba(0,180,216,0.16) 50%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  animation: sps-sweep 10s ease-in-out infinite;
}
.sps-notice .sps-card-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}
.sps-notice .sps-card-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 8px;
}
.sps-notice .sps-card-val {
  font-family: 'DM Serif Display', serif; font-weight: 800;
  font-size: 2.8rem; line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue-bright, #2196f3), var(--cyan, #00b4d8));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--cyan, #00b4d8);
}
.sps-notice a.sps-card-plan,
.sps-notice a.sps-card-plan:visited {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px;
  color: var(--cyan, #00b4d8); font-size: 0.95rem; font-weight: 500; text-decoration: none;
  transition: color 0.2s;
}
.sps-notice a.sps-card-plan:hover { color: #fff; }
.sps-notice a.sps-card-plan svg { flex-shrink: 0; }

/* ─── Mild highlight every 10 seconds ─── */
@keyframes sps-glow {
  0%, 80%, 100% { box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 0 0 rgba(0,180,216,0); border-color: rgba(0,180,216,0.35); transform: translateY(0); }
  88%           { box-shadow: 0 24px 60px rgba(0,0,0,0.40), 0 0 0 3px rgba(0,180,216,0.45), 0 0 40px 6px rgba(0,180,216,0.28); border-color: rgba(0,180,216,0.9); transform: translateY(-3px); }
}
@keyframes sps-sweep {
  0%, 80%  { left: -60%; opacity: 0; }
  82%      { opacity: 1; }
  94%      { left: 120%; opacity: 1; }
  95%, 100% { left: 120%; opacity: 0; }
}
@keyframes sps-dot {
  0%, 80%, 100% { transform: scale(1); opacity: 1; }
  86%           { transform: scale(1.6); opacity: 0.6; }
  92%           { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .sps-notice .sps-card, .sps-notice .sps-card::after, .sps-notice .sps-notice-eyebrow::before { animation: none; }
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .sps-notice-inner { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding: 48px 0; }
}
@media (max-width: 760px) {
  .sps-notice { padding: 0 24px; }
  .sps-notice-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .sps-notice .sps-card { max-width: 420px; }
}
@media (max-width: 420px) {
  .sps-notice { padding: 0 20px; }
  .sps-notice .sps-card { padding: 22px 22px 18px; }
  .sps-notice .sps-card-val { font-size: 2.3rem; }
  .sps-notice a.sps-notice-cta { width: 100%; justify-content: center; }
}


/* ─── 3. SPS 2026 showcase slider (homepage, v1.9.29) ────────────────
   All slides sit in the same grid cell, so the section keeps the height of
   the tallest slide and nothing below jumps when the slide changes. */
.sps-slider-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 0 36px;
}
.sps-slides { display: grid; }
.sps-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px; align-items: center;
  opacity: 0; visibility: hidden;
  transform: translateX(28px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s;
}
.sps-slide.is-active {
  opacity: 1; visibility: visible; transform: translateX(0);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s;
}
.sps-slide.is-leaving { transform: translateX(-28px); }

.sps-slide-visual {
  display: flex; align-items: center; justify-content: center;
  min-height: 260px;
}
.sps-slide-visual .sps-card { width: 100%; }

/* small "live at SPS" pill on the product slides */
.sps-notice .sps-slide-tag {
  display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold, #e8a923);
  border: 1px solid rgba(232,169,35,0.4); background: rgba(232,169,35,0.08);
  padding: 7px 14px; border-radius: 999px; margin: 0 0 18px;
}
.sps-notice .sps-slide-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold, #e8a923);
}
.sps-notice .sps-accent { color: var(--cyan, #00b4d8); }
.sps-notice .sps-slide-tagline {
  font-family: 'DM Serif Display', serif; font-size: 1.3rem; line-height: 1.3;
  color: #fff; margin: -4px 0 12px;
}
.sps-notice .sps-slide-mono {
  display: block; width: fit-content; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold, #e8a923); background: rgba(232,169,35,0.10);
  border: 1px solid rgba(232,169,35,0.3); border-radius: 6px;
  padding: 5px 10px; margin: 0 0 12px;
}
.sps-notice .sps-slide-points { list-style: none; margin: 0 0 18px; padding: 0; }
.sps-notice .sps-slide-points li {
  position: relative; padding-left: 20px; margin-bottom: 10px;
  font-size: 0.98rem; line-height: 1.6; color: rgba(255,255,255,0.72);
}
.sps-notice .sps-slide-points li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan, #00b4d8);
}
.sps-notice .sps-slide-points strong { color: #fff; font-weight: 600; }
.sps-notice .sps-slide-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sps-notice .sps-slide-chips > span {
  font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.85);
  background: rgba(0,180,216,0.08); border: 1px solid rgba(0,180,216,0.3);
  border-radius: 8px; padding: 7px 12px;
}
.sps-notice .sps-slide-facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 22px;
  font-size: 0.95rem; color: rgba(255,255,255,0.55);
}
.sps-notice .sps-slide-facts strong { color: #fff; margin-left: 6px; }
.sps-notice a.sps-slide-link,
.sps-notice a.sps-slide-link:visited {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan, #00b4d8); font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid rgba(0,180,216,0.45); border-radius: var(--r, 10px);
  padding: 12px 20px; transition: background 0.2s;
}
.sps-notice a.sps-slide-link:hover { background: rgba(0,180,216,0.10); }

.sps-slide-logo { display: block; width: 100%; max-width: 300px; height: auto; }
.sps-slide-photo {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 300px;
  border-radius: var(--r-lg, 20px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.sps-slide-photo--light { background: #e9eef5; }

/* progress dots — each fills over one interval */
.sps-slider-nav { display: flex; gap: 10px; margin-top: 30px; }
.sps-dot {
  position: relative; width: 44px; height: 4px; padding: 0; border: 0; cursor: pointer;
  border-radius: 4px; background: rgba(255,255,255,0.18); overflow: hidden;
}
.sps-dot::before { content: ""; position: absolute; inset: -10px 0; } /* bigger tap area */
.sps-dot > span {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--cyan, #00b4d8); border-radius: 4px;
}
.sps-dot.is-done > span { width: 100%; }
.sps-dot.is-active > span { animation: sps-progress var(--sps-interval, 3s) linear forwards; }
.sps-slider.is-paused .sps-dot.is-active > span { animation-play-state: paused; }
.sps-dot:focus-visible { outline: 2px solid var(--cyan, #00b4d8); outline-offset: 4px; }
@keyframes sps-progress { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .sps-slide, .sps-slide.is-active { transition: none; transform: none; }
  .sps-dot.is-active > span { animation: none; width: 100%; }
}
@media (max-width: 960px) {
  .sps-slide { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}
@media (max-width: 760px) {
  .sps-slider-inner { padding: 40px 0 28px; }
  .sps-slide { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .sps-slide-visual { min-height: 0; justify-content: flex-start; }
  .sps-slide-visual .sps-card { max-width: 420px; }
  .sps-slide-logo { max-width: 200px; }
  .sps-slide-photo { max-height: 220px; width: auto; max-width: 100%; }
  .sps-notice .sps-slide-tagline { font-size: 1.12rem; }
}
@media (max-width: 420px) {
  .sps-notice a.sps-slide-link { width: 100%; justify-content: center; }
  .sps-dot { width: 36px; }
}


/* ─── 4. VisionGPT visual in the slider (v1.9.30) ────────────────────
   Copy of the software-page hero visual (visiongpt.css is only loaded on
   the software page). The logo PNG has a lot of transparent padding,
   hence the negative margins. */
.sps-vg { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.sps-vg-logo {
  display: block; width: 100%; max-width: 300px; height: auto;
  margin: -52px auto -70px;
  pointer-events: none;
  filter: drop-shadow(0 24px 60px rgba(0,180,216,0.20));
}
.sps-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, 20px);
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.38);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.sps-vg-row { position: relative; border-radius: 12px; padding: 11px 14px; }
.sps-vg-row + .sps-vg-row { margin-top: 10px; }
.sps-vg-user { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); }
.sps-vg-bot  { background: rgba(0,180,216,0.08); border: 1px solid rgba(0,180,216,0.28); padding-right: 70px; }
.sps-vg-label {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold, #e8a923); margin-bottom: 6px;
}
.sps-vg-bot .sps-vg-label { color: var(--cyan, #00b4d8); }
.sps-vg-row p { font-size: 0.88rem; line-height: 1.5; color: rgba(255,255,255,0.86); margin: 0; }
.sps-vg-user p { font-style: italic; }
.sps-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, #00c896);
  font-weight: 800; font-size: 0.9rem; letter-spacing: 0.05em;
  padding: 6px 10px; border-radius: 8px;
}
@media (max-width: 760px) {
  .sps-vg { margin: 0; }
  .sps-vg-logo { max-width: 200px; margin: -34px auto -48px; }
}
