/* COSIC.eu – Custom Order Software Individually Crafted */

/* Geist Sans (SIL OFL 1.1 — free for commercial use) */
@font-face { font-family: 'Geist'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/geist-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/geist-500.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/geist-600.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/geist-700.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/geist-800.woff2') format('woff2'); }

:root {
  --primary: #1a1a2e;
  --accent: #7c3aed;
  --accent-light: #ede9fe;
  --text: #2d2d2d;
  --text-light: #555b66;
  --bg: #faf8ff;
  --bg-alt: #f3f0ff;
  --border: #e2ddf5;
  --muted: #6b7280;
  --radius: 12px;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.back-to-top {
  position: fixed;
  bottom: 4.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 60;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  transition: top 200ms;
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

/* ── Typography ── */

h1, h2, h3 {
  color: var(--primary);
  line-height: 1.2;
}

h1 { font-size: 2.8rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--text-light); }

/* ── Layout ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  padding-bottom: 12rem;
}

section {
  padding: 5rem 0;
}

/* ── Navigation ── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(55, 33, 122, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.3);
  padding: 0.8rem 0;
  overflow: visible;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 3px;
}

.logo-img {
  height: 36px;
  width: auto;
}

.logo-img.logo-inline {
  height: 2rem;
  width: auto;
  vertical-align: middle;
  margin: 0 -2px 0 -3px;
  position: relative;
  top: 1px;
  filter:
    drop-shadow(0 1px 0 rgba(0,0,0,0.3))
    drop-shadow(0 2px 3px rgba(0,0,0,0.25))
    drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.lang-dropdown {
  position: relative;
  margin-left: 1rem;
}

.lang-current {
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.lang-dropdown.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #37217a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.3rem;
  min-width: 100%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 200;
}

.lang-dropdown.open .lang-options {
  display: flex;
  flex-direction: column;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.8rem;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.15s;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-label {
  font-size: 0.75rem;
}

/* Lang Switcher (inline buttons) */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-btn {
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-btn:hover,
.lang-btn.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s;
}

/* ── Hero ── */

.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 50%, #ebe5ff 100%);
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1.5rem;
  filter:
    drop-shadow(0 2px 1px rgba(0,0,0,0.3))
    drop-shadow(0 4px 6px rgba(0,0,0,0.25))
    drop-shadow(0 8px 14px rgba(0,0,0,0.2))
    drop-shadow(0 16px 28px rgba(0,0,0,0.12));
}

.initial {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.3em;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero .hero-tagline {
  margin-bottom: 0.3rem;
}

.hero .hero-tagline + :not(.hero-tagline) {
  margin-top: 2.5rem;
}

.made-in-ch {
  display: block;
  width: fit-content;
  margin: 1.5rem auto 0;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.3px;
  text-transform: none;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  transform: scale(0.55);
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

/* ── USP Bar ── */

.usp-bar {
  padding: 4rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

@media (max-width: 768px) {
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .usp-grid {
    grid-template-columns: 1fr;
  }
}

.usp-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.usp-icon {
  font-size: 2rem;
  margin-bottom: 0;
  color: var(--accent);
}

.usp-label {
  display: inline-block;
  background: rgba(180, 160, 220, 0.18);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-top: 0.5rem;
  margin-bottom: 0.6rem;
}

.usp-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.usp-item p {
  font-size: 0.9rem;
}

/* ── Philosophy ── */

.philosophy {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.philosophy-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

.philosophy-text {
  max-width: 700px;
}

.philosophy-text h2 {
  margin-bottom: 1.5rem;
}

.philosophy-lead {
  font-size: 1.1rem;
  color: var(--text) !important;
  font-weight: 500;
  margin-bottom: 1rem;
}

.philosophy-text p {
  margin-bottom: 1rem;
}

.philosophy-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.value-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border-top: 3px solid var(--accent);
}

.value-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.value-item p {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .philosophy-values {
    grid-template-columns: 1fr;
  }
}

/* ── Portfolio ── */

.portfolio {
  background: var(--bg);
}

/* Original grid (disabled, replaced by scroll) */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Endlos-Scroll Portfolio mit Sticky-Hijack */
.portfolio-sticky-wrap {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.portfolio-sticky {
  position: sticky;
  top: 52px;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 52px - 70px);
}

.portfolio-scroll {
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.portfolio-scroll::-webkit-scrollbar { display: none; }

.portfolio-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 0 1.5rem;
  transition: transform 0.05s linear;
  will-change: transform;
}

.portfolio-track [data-tile-zone] {
  display: flex;
  gap: 1.5rem;
}

.portfolio-track .portfolio-card {
  flex: 0 0 340px;
  max-width: 340px;
}

.portfolio-clone {
  display: none;
}

@media (min-width: 769px) {
  .portfolio-clone { display: flex; }
}

@media (max-width: 768px) {
  .portfolio-sticky-wrap {
    height: auto !important;
  }
  .portfolio-sticky {
    position: relative;
    top: 0;
    min-height: auto;
  }
  .portfolio-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }
  /* Fade-Gradient rechts als Scroll-Hinweis */
  .portfolio-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s;
  }
  .portfolio-track .portfolio-card {
    flex: 0 0 280px;
    max-width: 280px;
  }
}

.portfolio-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.portfolio-preview {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #1a1a2e;
}

.portfolio-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.portfolio-preview-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #37217a 100%);
}

.portfolio-preview-logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}

.portfolio-preview-sub {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(124, 58, 237, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.3s;
  opacity: 0;
}

.portfolio-card:hover .portfolio-overlay {
  background: rgba(124, 58, 237, 0.7);
  opacity: 1;
}

.portfolio-info {
  padding: 1rem 1.2rem;
}

.portfolio-info--with-photo {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.portfolio-logo-tags {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  max-width: 100px;
}

.portfolio-logo-tags .portfolio-tags {
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.portfolio-logo-tags .portfolio-tags span {
  font-size: 0.65rem;
  padding: 2px 7px;
  text-align: center;
  white-space: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.portfolio-product-photo {
  width: 90px;
  height: auto;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: contain;
}

.portfolio-info-text {
  flex: 1;
  min-width: 0;
}

.portfolio-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portfolio-info p {
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.portfolio-tags span {
  padding: 3px 10px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Portfolio Slider */
.portfolio-slider {
  position: relative;
}

.portfolio-slider .slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.portfolio-slider .slider-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s;
}

.portfolio-slider:hover .slider-btn {
  opacity: 1;
}

.slider-prev { left: 8px; }
.slider-next { right: 8px; }

.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}

.slider-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(100,100,100,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.2s;
}

.slider-dots .dot.active {
  background: var(--accent);
  border-color: #fff;
}

/* Coming Soon Badge */
.portfolio-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
}

.portfolio-card--upcoming {
  cursor: default;
}

/* Details Link */
.details-link {
  padding: 3px 10px;
  background: var(--accent-light);
  color: var(--accent);
  border: none;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  vertical-align: middle;
  margin-left: auto;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.2s;
}

.details-link:hover {
  background: var(--accent);
  color: #fff;
}

/* Details Popup */
.details-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  padding: 2rem;
}

.details-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.details-popup {
  background: var(--bg);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.details-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
}

.details-close:hover {
  color: var(--text);
}

.details-product-img {
  display: block;
  max-width: 240px;
  margin: 0 auto 1.2rem;
  border-radius: 16px;
}

.details-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.details-content .details-lead {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.details-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.details-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.details-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-content ul li {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.details-content ul li:last-child {
  border-bottom: none;
}

.details-content ul li strong {
  color: var(--text);
}

/* Portfolio Tagline */
.portfolio-tagline {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}


/* Fullscreen Button */
.slider-fullscreen {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-slider:hover .slider-fullscreen {
  opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

/* ── Why Professional ── */

.why-pro {
  padding: 5rem 0;
  background: var(--bg);
}

.why-pro .section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.why-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.why-pro-item {
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.why-pro-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.why-pro-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}

.why-pro-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.why-pro-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .why-pro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .why-pro-grid {
    grid-template-columns: 1fr;
  }
}

/* ── About ── */

.about {
  background: var(--bg-alt);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

.about-header h2 {
  margin-bottom: 1rem;
}

.about-skills-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-skill-box h3 {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  margin-top: 1rem;
}

.about-skill-box:first-child h3 {
  margin-top: 0;
}

.about-lead {
  font-size: 1.05rem;
  color: var(--text) !important;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.about-linkedin {
  color: #0A66C2;
  flex-shrink: 0;
  margin-top: 2px;
  transition: opacity 0.2s;
}

.about-linkedin:hover {
  opacity: 0.7;
}

.about-header p {
  margin-bottom: 0.8rem;
}
.about-coffee {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--dim);
}
.coffee-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.coffee-link:hover {
  text-decoration: underline;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tags span {
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

/* Tech-Gruppen Farben */
.skill-tags .tag-lang     { border-color: #7c3aed; color: #7c3aed; }
.skill-tags .tag-frontend { border-color: #0891b2; color: #0891b2; }
.skill-tags .tag-backend  { border-color: #16a34a; color: #16a34a; }
.skill-tags .tag-desktop  { border-color: #ea580c; color: #ea580c; }
.skill-tags .tag-devops   { border-color: #dc2626; color: #dc2626; }

/* Tech-Legende */
.tech-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.tech-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-lang     { background: #7c3aed; }
.dot-frontend { background: #0891b2; }
.dot-backend  { background: #16a34a; }
.dot-desktop  { background: #ea580c; }
.dot-devops   { background: #dc2626; }

/* Branchen */
.dot-industrie      { background: #2563eb; }
.dot-dienstleistung { background: #d946ef; }
.skill-tags .tag-industrie      { border-color: #2563eb; color: #2563eb; }
.skill-tags .tag-dienstleistung { border-color: #d946ef; color: #d946ef; }
.skill-tags .tag-more           { border-color: #94a3b8; color: #94a3b8; }

/* Methoden & Prozesse */
.dot-supplychain { background: #0891b2; }
.dot-prozesse    { background: #ca8a04; }
.dot-systeme     { background: #7c3aed; }
.skill-tags .tag-supplychain { border-color: #0891b2; color: #0891b2; }
.skill-tags .tag-prozesse    { border-color: #ca8a04; color: #ca8a04; }
.skill-tags .tag-systeme     { border-color: #7c3aed; color: #7c3aed; }

/* Plattformen */
.dot-os    { background: #2563eb; }
.dot-infra { background: #ea580c; }
.dot-apps  { background: #16a34a; }
.skill-tags .tag-os    { border-color: #2563eb; color: #2563eb; }
.skill-tags .tag-infra { border-color: #ea580c; color: #ea580c; }
.skill-tags .tag-apps  { border-color: #16a34a; color: #16a34a; }

/* Standards & Sicherheit */
.dot-normen      { background: #0891b2; }
.dot-datenschutz { background: #dc2626; }
.skill-tags .tag-normen      { border-color: #0891b2; color: #0891b2; }
.skill-tags .tag-datenschutz { border-color: #dc2626; color: #dc2626; }

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* ── Services ── */

.services {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header p {
  margin-top: 0.8rem;
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.95rem;
}

/* ── Pricing ── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 750px;
  margin: 0 auto;
}

.pricing-hint {
  text-align: center;
  max-width: 600px;
  margin: 2rem auto 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.pricing-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.pricing-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--bg-alt);
  position: relative;
  padding-left: 1.5rem;
}

.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-card .cta-btn {
  width: 100%;
  text-align: center;
}

/* ── Process ── */

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
}

/* ── Contact ── */

.contact {
  background: var(--bg-alt);
}

.contact-details {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ── Bubble Navigation (TAPAS-Style, violett) ── */

.bubble-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.bubble-orb {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(160,120,240,0.3) 0%, rgba(124,58,237,0.15) 100%);
  border: 1px solid rgba(200,170,255,0.4);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    0 2px 8px rgba(124,58,237,0.25);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Glass highlight (TAPAS-style specular) */
.bubble-orb::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 20%;
  right: 20%;
  height: 35%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 100%);
  pointer-events: none;
}

.bubble-orb:hover {
  transform: scale(1.15);
  background: linear-gradient(180deg, rgba(180,140,255,0.45) 0%, rgba(124,58,237,0.3) 100%);
  border-color: rgba(200,170,255,0.6);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.4),
    inset 0 -2px 4px rgba(0,0,0,0.15),
    0 0 18px rgba(124,58,237,0.6),
    0 0 40px rgba(124,58,237,0.2);
}

.bubble-orb .bubble-icon {
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
  color: #0f0f1e;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.7)) drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}

.bubble-label {
  font-size: 0.68rem;
  font-weight: 700;
  pointer-events: none;
  white-space: nowrap;
}

/* ── Header Bubble Bar (fixed inside nav, bubble 50% below) ── */

.bubble-bar-top {
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 101;
  pointer-events: none;
}

.bubble-bar-top .bubble-item {
  pointer-events: auto;
}

/* Top bar: label ABOVE bubble */
.bubble-bar-top .bubble-label {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  margin-bottom: 0.3rem;
}

/* ── Footer Bubble Bar (fixed inside footer, bubble 50% above) ── */

.bubble-bar-bottom {
  position: absolute;
  top: -25px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 60;
  pointer-events: none;
}

.bubble-bar-bottom .bubble-item {
  pointer-events: auto;
}


/* Bottom bar: label BELOW bubble */
.bubble-bar-bottom .bubble-label {
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  margin-top: 0.3rem;
}

/* Active bubble glow (violet shimmer) */
.bubble-active .bubble-orb {
  background: linear-gradient(180deg, rgba(180,140,255,0.6) 0%, rgba(124,58,237,0.4) 100%);
  border-color: rgba(180,140,255,0.8);
  animation: bubble-glow 2s ease-in-out infinite;
}

.bubble-active .bubble-label {
  color: #fff !important;
}

/* Bubble wobble: triggered by JS, decays to stillstand */
.bubble-orb {
  transform-origin: center center;
  transition: transform 0.15s ease-out;
}

@keyframes bubble-glow {
  0%, 100% {
    box-shadow:
      inset 0 2px 4px rgba(255,255,255,0.5),
      inset 0 -2px 4px rgba(0,0,0,0.15),
      0 0 20px rgba(124,58,237,0.7),
      0 0 45px rgba(124,58,237,0.3);
  }
  50% {
    box-shadow:
      inset 0 2px 4px rgba(255,255,255,0.7),
      inset 0 -2px 4px rgba(0,0,0,0.1),
      0 0 30px rgba(124,58,237,1),
      0 0 60px rgba(124,58,237,0.45);
  }
}

/* ── Footer ── */

footer {
  background: #2d1b69;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.8rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.3);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 55;
  overflow: visible;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-copyright {
  font-size: 0.6rem;
  line-height: 1.4;
  text-align: left;
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand .footer-logo {
  order: 0;
  margin: 0;
}

.footer-brand .footer-copyright {
  text-align: left;
  margin: 0;
}

.footer-logo {
  order: 0;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  opacity: 0.7;
  border-radius: 8px;
  margin: -12px 0;
  filter:
    drop-shadow(0 1px 0 rgba(0,0,0,0.3))
    drop-shadow(0 2px 3px rgba(0,0,0,0.25))
    drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
}

.footer-social svg {
  vertical-align: middle;
  transition: opacity 0.2s;
  opacity: 0.7;
}

.footer-social:hover svg {
  opacity: 1;
}

/* Footer meta group (Compliance + LinkedIn, right-aligned) */
.footer-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-compliance {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
}

.footer-compliance:hover {
  color: #fff !important;
}

/* ── Responsive ── */

/* Tablet Landscape (max 1024px) */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-preview {
    height: 180px;
  }
}

/* Tablet Portrait (max 900px) — Nav bleibt Desktop-Style */
@media (max-width: 900px) and (min-width: 769px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero {
    padding: 6rem 0 3rem;
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 7rem 0 3.5rem;
  }

  .hero h1 br {
    display: none;
  }

  .hero .subtitle {
    white-space: normal;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-logo {
    width: 90px;
  }

  /* Navigation */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(55, 33, 122, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: none;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 0.3rem 0;
  }

  .lang-dropdown {
    margin-left: 0;
  }

  /* Lang Switcher in mobile menu */
  .lang-switcher {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding-top: 0.5rem;
  }

  /* USP */
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usp-bar {
    padding: 2.5rem 0;
  }

  /* Philosophy */
  .philosophy-values {
    grid-template-columns: 1fr;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Process */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-preview {
    height: 160px;
  }

  /* Footer */
  footer {
    position: relative;
    padding-top: 2rem;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }

  .footer-links {
    gap: 1rem;
  }

  main {
    padding-bottom: 0;
  }

  /* Bubbles responsive */
  .bubble-bar-top,
  .bubble-bar-bottom {
    gap: 0.6rem;
  }

  .bubble-orb {
    width: 38px;
    height: 38px;
  }

  .bubble-orb .bubble-icon {
    font-size: 0.9rem;
  }

  .bubble-label {
    font-size: 0.5rem;
  }

  /* CTA Buttons full-width on mobile */
  .cta-btn {
    display: block;
    text-align: center;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero .cta-btn {
    display: inline-block;
    width: auto;
    max-width: none;
  }
}

/* Small phones (max 480px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  h1 { font-size: 1.75rem; }

  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  .hero .subtitle {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .usp-grid {
    grid-template-columns: 1fr;
  }

  .usp-item {
    padding: 1rem 0.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .value-item {
    padding: 1.2rem;
  }

  .nav-links {
    padding: 1rem;
  }
}

/* ── Shop/Download badge ── */

.shop-badge, .download-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.4rem;
}

.ctx-handwriting {
  font-family: 'Geist', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.25);
  letter-spacing: 3px;
  text-transform: lowercase;
  pointer-events: none;
  margin-left: 0.3rem;
  transform: rotate(-3deg);
  display: inline-block;
}

/* ── Shop: Products section ── */

.products { background: var(--bg-alt); padding-top: 10rem; }

/* ── Shop: Legal pages ── */

.legal-page { padding: 10rem 0 10rem; }
.legal-page h1 { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.legal-updated { color: var(--text-light); font-size: 0.85rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin: 2rem 0 0.5rem; }
.legal-page p, .legal-page li { color: var(--text); line-height: 1.7; margin-bottom: 0.5rem; }
.legal-page ul { margin: 0.5rem 0 1rem 1.5rem; }
.legal-page a { color: var(--accent); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }

/* ── Shop: Release notes / changelog ── */

.changelog-loading, .muted {
  text-align: center;
  color: #888;
  padding: 1.5rem;
  font-size: 0.9rem;
}
.release {
  background: #fff;
  border: 1px solid var(--border, #e2ddf5);
  border-radius: var(--radius, 12px);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.release-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border, #e2ddf5);
  padding-bottom: 0.5rem;
  margin-bottom: 0.6rem;
}
.release-version {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent, #7c3aed);
}
.release-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}
.release-date {
  margin-left: auto;
  font-size: 0.8rem;
  color: #888;
}
.release h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin: 0.8rem 0 0.3rem;
}
.release ul { list-style: none; padding: 0; margin: 0; }
.release li {
  font-size: 0.88rem;
  padding: 0.25rem 0 0.25rem 1.1rem;
  position: relative;
  color: #333;
  line-height: 1.45;
}
.release li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.7rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent, #7c3aed);
}

/* ── Shop: Details status & launch note ── */

.details-status {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.launch-date-note { font-weight: 600; color: var(--accent, #16a34a); margin-top: 0.4rem; }

/* ── Shop: Product cards (shop/index.html) ── */

/* ── Shop: Product Tabs ── */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.product-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.25s;
  opacity: 0.6;
}
.product-tab:hover {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.product-tab.active {
  opacity: 1;
  border-color: var(--accent);
  background: var(--bg-alt, #f9fafb);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.product-tab-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.product-tab-name {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
}
.product-panels { max-width: 100%; }
.product-panel { display: none; }
.product-panel.active { display: block; }
@media (max-width: 480px) {
  .product-tabs { gap: 0.5rem; }
  .product-tab { padding: 0.7rem 1rem; }
  .product-tab-logo { width: 40px; height: 40px; }
  .product-tab-name { font-size: 0.7rem; }
}

.product-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 100%;
}
.product-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  max-width: 100%;
  width: 100%;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}
.product-icon {
  width: 96px;
  height: 96px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.product-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
}
.product-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.product-tagline {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.product-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.product-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  width: 100%;
}
.price-option { text-align: center; }
.price {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}
.price-label { font-size: 0.8rem; color: var(--text-light); }
.price-divider { width: 1px; height: 40px; background: var(--border); }
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-soon { background: #fef3c7; color: #92400e; }
.badge-dev { background: #e0e7ff; color: #3730a3; }
.product-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}
.product-pack {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0.8rem;
}
.product-pack img {
  max-width: 160px;
  height: auto;
}
.product-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.product-title-link:hover {
  border-bottom-color: var(--accent, #7c3aed);
}
a.product-icon { display: inline-block; }
a.product-icon:hover img {
  transform: scale(1.03);
  transition: transform 0.2s;
}

/* ── Shop: Buttons ── */

.btn {
  flex: 1;
  padding: 0.9rem 1.5rem;
  min-height: 48px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  font-family: inherit;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}
.btn-primary:disabled {
  background: #c4b5fd;
  cursor: not-allowed;
}
.btn-secondary {
  background: var(--accent-light);
  color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Shop: Buy buttons ── */

.product-actions-stack {
  flex-direction: column;
  gap: 0.6rem;
}
.product-actions-stack .btn {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  text-align: left;
  text-decoration: none;
}
.product-actions-stack .btn .btn-price {
  font-weight: 800;
  font-size: 1.05rem;
}
.product-actions-stack .btn .btn-label {
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.85;
}
.product-actions-stack .btn-secondary {
  justify-content: center;
}
.btn-trial {
  background: transparent;
  color: var(--accent, #7c3aed);
  border: 1px dashed var(--accent, #7c3aed);
}
.btn-trial:hover {
  background: var(--accent-light, #f3f0ff);
}
.price-note {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: #888;
  font-style: italic;
}
.price-note-center { text-align: center; }
.btn-disabled { opacity: 0.5; cursor: not-allowed; }
.win-note {
  margin-top: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: #fff7ed;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  color: #713f12;
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.5;
}
.win-note strong { color: #92400e; }
.win-note em { font-style: normal; font-weight: 600; }

/* ── Shop: Cart button ── */

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.4rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.cart-btn:hover {
  background: rgba(255,255,255,0.15);
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-count.has-items {
  display: flex;
}

/* ── Shop: Language Dropdown ── */

.lang-dropdown {
  position: relative;
  margin-left: 1rem;
}
.lang-current {
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}
.lang-current:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}
.lang-arrow { font-size: 0.6rem; transition: transform 0.2s; }
.lang-dropdown.open .lang-arrow { transform: rotate(180deg); }
.lang-options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #37217a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.3rem;
  min-width: 100%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 200;
}
.lang-dropdown.open .lang-options {
  display: flex;
  flex-direction: column;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.15s;
  cursor: pointer;
}
.lang-option:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.flag { font-size: 1rem; line-height: 1; }
.lang-label { font-size: 0.75rem; }

/* ── Shop: Trust bar ── */

.trust {
  padding: 1.5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.trust-item {
  text-align: center;
  padding: 0.5rem 1rem;
}
.trust-icon {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0.5rem;
}
.trust-item span:last-child {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ── Product detail pages (shop/product/*) ── */

.product-hero {
  background: linear-gradient(180deg, var(--bg-alt, #f3f0ff) 0%, var(--bg, #faf8ff) 100%);
  padding: 9rem 0 3rem;
  margin-bottom: 2rem;
}
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}
.product-hero-img img { max-width: 100%; height: auto; }
.product-hero-text .eyebrow {
  font-size: 0.85rem;
  color: var(--accent, #7c3aed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}
.product-hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.product-hero-text .lead {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.8rem;
  max-width: 52ch;
}
.product-hero-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.product-section { padding: 3rem 0; }
.product-section h2 { font-size: 1.6rem; margin-bottom: 1.8rem; text-align: center; }
.product-section-alt { background: #f8f6ff; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--border, #e2ddf5);
  border-radius: 12px;
  padding: 1.8rem 1.6rem;
}
.benefit-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.benefit-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.benefit-card p { font-size: 0.9rem; color: #555; line-height: 1.55; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.step-card { text-align: center; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent, #7c3aed);
  color: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.9rem; color: #555; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--border, #e2ddf5);
  border-radius: 12px;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pricing-card-featured {
  border-color: var(--accent, #7c3aed);
  box-shadow: 0 0 0 2px var(--accent, #7c3aed);
}
.pricing-head h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.pricing-price { font-size: 1.8rem; font-weight: 800; color: var(--accent, #7c3aed); }
.pricing-unit { font-size: 0.8rem; font-weight: 400; color: #888; margin-left: 0.3rem; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 1rem; flex: 1; }
.pricing-features li {
  font-size: 0.88rem;
  padding: 0.35rem 0 0.35rem 1.2rem;
  position: relative;
  color: #333;
}
.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent, #7c3aed);
  font-weight: 700;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-list details {
  background: #fff;
  border: 1px solid var(--border, #e2ddf5);
  border-radius: 8px;
  padding: 1rem 1.4rem;
  margin-bottom: 0.8rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}
.faq-list details p {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.55;
}

.product-cta { text-align: center; }
.product-cta a { color: var(--accent, #7c3aed); text-decoration: none; font-weight: 600; }

/* ── Shop: Responsive product grid ── */

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) and (min-width: 769px) {
  .product-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; max-width: 100%; margin: 0 auto; }
  .trust-items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .product-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .product-hero-img { display: flex; justify-content: center; }
  .product-hero-img img { max-width: 180px; }
  .product-hero-text .eyebrow { font-size: 0.78rem; }
  .product-hero-text h1 { font-size: 1.7rem; }
  .product-hero-text .lead { max-width: 100%; font-size: 0.95rem; }
  .product-hero-buttons { justify-content: center; }
  .step-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr !important; }
}

/* ── Comprehensive Mobile Fixes ── */

/* Portfolio scroll hint */
.portfolio-scroll-hint {
  display: none;
}
@media (max-width: 768px) {
  .portfolio-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-light);
    animation: scroll-hint-pulse 2s ease-in-out infinite;
  }
  .portfolio-scroll-hint svg {
    width: 16px;
    height: 16px;
  }
  @keyframes scroll-hint-pulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
  }
}

/* Shop buy row (pack shot + table) */
.product-buy-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 1rem 0 0.8rem;
}

/* Shop buy table mobile */
@media (max-width: 600px) {
  .product-buy-row {
    flex-direction: column;
    gap: 1rem;
  }
  .product-buy-row .product-pack img {
    max-width: 120px;
  }
  .product-buy-table {
    font-size: 0.78rem !important;
  }
  .product-buy-table td {
    padding: 0.4rem 0.2rem !important;
  }
  .product-buy-table .btn {
    padding: 0.5rem 0.7rem !important;
    font-size: 0.78rem !important;
    min-height: 40px !important;
  }
  .product-card {
    padding: 1.2rem 0.8rem;
  }
  .product-pricing {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  .price-divider {
    display: none;
  }
  .product-actions {
    flex-direction: column;
  }
  .product-actions .btn {
    flex: none;
    width: 100%;
  }
  /* Shop product hero table */
  .product-hero-text table {
    font-size: 0.8rem !important;
  }
  .product-hero-text table td {
    padding: 0.4rem 0.15rem !important;
  }
  .product-hero-text table .btn {
    padding: 0.5rem 0.6rem !important;
    font-size: 0.75rem !important;
  }
}

/* Trust bar mobile */
@media (max-width: 480px) {
  .trust-items {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem;
  }
  .trust-item {
    padding: 0.4rem 0.5rem;
  }
  .trust-item span:last-child {
    font-size: 0.78rem;
  }
}

/* Bubble bars: prevent overflow on small screens */
@media (max-width: 380px) {
  .bubble-bar-top,
  .bubble-bar-bottom {
    gap: 0.3rem;
  }
  .bubble-orb {
    width: 32px;
    height: 32px;
  }
  .bubble-orb .bubble-icon {
    font-size: 0.8rem;
  }
  .bubble-label {
    font-size: 0.45rem;
  }
  .bubble-bar-top {
    bottom: -16px;
  }
  .bubble-bar-bottom {
    top: -16px;
  }
}

/* Product hero: full-width on mobile */
@media (max-width: 720px) {
  .product-hero {
    padding: 7rem 0 2rem;
  }
  .products {
    padding-top: 7rem;
  }
}

/* Download page comparison table: horizontal scroll */
@media (max-width: 600px) {
  .pricing table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.8rem;
  }
  .pricing table th,
  .pricing table td {
    white-space: nowrap;
    padding: 4px 6px !important;
  }
}

/* Benefit & pricing scroll: smaller cards on mobile */
@media (max-width: 480px) {
  .benefit-scroll .benefit-card {
    flex: 0 0 240px;
    max-width: 240px;
  }
  .pricing-scroll .pricing-card {
    flex: 0 0 220px;
    max-width: 220px;
  }
}

/* Pricing grid override for inline 2-col on mobile */
@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
}

/* FAQ on mobile */
@media (max-width: 600px) {
  .faq-list details {
    padding: 0.8rem 1rem;
  }
  .faq-list summary {
    font-size: 0.88rem;
  }
}

/* Legal pages mobile */
@media (max-width: 768px) {
  .legal-page {
    padding: 7rem 0 4rem;
  }
}

/* Details popup mobile */
@media (max-width: 600px) {
  .details-overlay {
    padding: 0.5rem;
  }
  .details-popup {
    padding: 1.5rem 1rem;
    border-radius: 12px;
    max-height: 90vh;
  }
}

/* Prevent image overflow on mobile */
@media (max-width: 768px) {
  .container img,
  .product-hero-img img,
  .product-pack img,
  .details-product-img {
    max-width: 100%;
    height: auto;
  }
}

/* ── SPA Mode: Section-based Navigation ── */

body.spa-mode {
  overflow: hidden;
  height: 100vh;
}

body.spa-mode main {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 7rem;
  box-sizing: border-box;
}

body.spa-mode main > section {
  display: none;
}

body.spa-mode main > section.section-active {
  display: block;
}

body.spa-mode .back-to-top {
  display: none !important;
}

/* Portfolio: horizontal scroll instead of sticky hijack */
body.spa-mode .portfolio-sticky-wrap {
  height: auto !important;
}

body.spa-mode .portfolio-sticky {
  position: relative;
  top: 0;
  min-height: auto;
  overflow: visible !important;
  display: block;
}

body.spa-mode .portfolio .section-header {
  margin-bottom: 1.5rem;
}

body.spa-mode .portfolio-scroll {
  overflow-x: scroll !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}

body.spa-mode .portfolio-scroll::-webkit-scrollbar {
  display: none;
}

body.spa-mode .portfolio-track {
  transition: none !important;
}

body.spa-mode .portfolio-clone {
  display: none !important;
}

body.spa-mode .portfolio-scroll-hint {
  display: none;
}

/* Services + Why-Pro: horizontal scroll rows in SPA */
body.spa-mode .services {
  padding-bottom: 0 !important;
}

body.spa-mode .services .section-header {
  margin-bottom: 0.8rem;
}

body.spa-mode .services-grid,
body.spa-mode .why-pro-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0.3rem 1.5rem;
}

body.spa-mode .services-grid::-webkit-scrollbar,
body.spa-mode .why-pro-grid::-webkit-scrollbar {
  display: none;
}

body.spa-mode .service-card {
  flex: 0 0 280px;
  max-width: 280px;
  padding: 0.8rem 1rem;
}

body.spa-mode .service-card h3 {
  font-size: 0.9rem;
}

body.spa-mode .service-card p {
  font-size: 0.8rem;
}

body.spa-mode .service-icon {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

body.spa-mode .why-pro {
  padding: 0 !important;
}

body.spa-mode .why-pro .container {
  display: flex;
  flex-direction: column;
}

body.spa-mode .why-pro .section-header {
  order: 2;
  margin-bottom: 0;
  margin-top: 0.6rem;
  text-align: center;
}

body.spa-mode .why-pro .why-pro-grid {
  order: 1;
}

body.spa-mode .why-pro-item {
  flex: 0 0 280px;
  max-width: 280px;
  padding: 0.6rem 0.8rem;
}

body.spa-mode .why-pro-item h3 {
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

body.spa-mode .why-pro-item p {
  font-size: 0.75rem;
  line-height: 1.4;
}

body.spa-mode .why-pro-icon {
  margin-bottom: 0.3rem;
}

/* Philosophy (Anspruch): compact in SPA */
body.spa-mode .philosophy .section-header {
  margin-bottom: 1.5rem;
}

body.spa-mode .usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0.3rem;
}

body.spa-mode .usp-item {
  padding: 0.5rem 0.5rem;
  border: 1.5px solid var(--accent-light);
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

body.spa-mode .usp-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: var(--accent);
}

body.spa-mode .usp-icon {
  font-size: 1.2rem;
  margin-bottom: 0;
}

body.spa-mode .usp-label {
  font-size: 0.65rem;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  padding: 0.15rem 0.6rem;
}

body.spa-mode .usp-item h3 {
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

body.spa-mode .usp-item p {
  font-size: 0.7rem;
  line-height: 1.4;
}

/* About: Accordion skill boxes in SPA */
body.spa-mode .about-skill-box h3 {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  margin: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  transition: all 0.2s;
  user-select: none;
}

body.spa-mode .about-skill-box h3::after {
  content: '\25BC';
  font-size: 0.6rem;
  color: var(--accent);
  transition: transform 0.2s;
}

body.spa-mode .about-skill-box h3:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

body.spa-mode .about-skill-box.accordion-open h3 {
  border-color: var(--accent);
  background: var(--accent-light);
  border-radius: 8px 8px 0 0;
}

body.spa-mode .about-skill-box.accordion-open h3::after {
  transform: rotate(180deg);
}

body.spa-mode .about-skill-box .tech-legend,
body.spa-mode .about-skill-box .skill-tags {
  display: none;
}

body.spa-mode .about-skill-box.accordion-open .tech-legend,
body.spa-mode .about-skill-box.accordion-open .skill-tags {
  display: flex;
}

body.spa-mode .about-skill-box.accordion-open .tech-legend {
  padding: 0.6rem 0.8rem 0;
  border-left: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
}

body.spa-mode .about-skill-box.accordion-open .skill-tags {
  padding: 0.4rem 0.8rem 0.6rem;
  border-left: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  border-radius: 0 0 8px 8px;
}

body.spa-mode .about-skills-grid {
  gap: 0.3rem;
}

/* Pricing (Modelle): compact in SPA */
body.spa-mode .pricing .section-header {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  body.spa-mode .service-card,
  body.spa-mode .why-pro-item {
    flex: 0 0 240px;
    max-width: 240px;
  }

  body.spa-mode main {
    padding: 4rem 0 4rem;
  }
}

/* ── Legal pages: SPA-like layout ── */

.legal-spa {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 1.5rem !important;
  box-sizing: border-box;
}

.legal-spa .container {
  max-height: 100%;
  overflow: hidden;
  width: 100%;
  max-width: var(--max-width);
}

.legal-spa h1 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.legal-spa .legal-subtitle {
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

/* Legal Accordion */
.legal-acc-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: calc(100vh - 16rem);
  overflow-y: auto;
  scrollbar-width: thin;
  width: 700px;
  max-width: 100%;
  margin: 0 auto;
}

.legal-acc {
  border: 1px solid var(--border);
  border-radius: 8px;
}

.legal-acc summary {
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.legal-acc summary::-webkit-details-marker {
  display: none;
}

.legal-acc summary::after {
  content: '\25BC';
  font-size: 0.55rem;
  color: var(--accent);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.legal-acc[open] summary::after {
  transform: rotate(180deg);
}

.legal-acc summary:hover {
  background: var(--accent-light);
}

.legal-acc[open] summary {
  background: var(--accent-light);
  border-radius: 8px 8px 0 0;
}

.legal-acc-body {
  padding: 0.6rem 0.8rem;
  border-top: 1px solid var(--border);
  max-height: 35vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.legal-acc-body p,
.legal-acc-body li {
  font-size: 0.82rem !important;
  color: var(--text-light) !important;
  margin-bottom: 0.4rem !important;
  line-height: 1.6 !important;
}

.legal-acc-body ul {
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.legal-acc-body a {
  color: var(--accent);
}

/* Impressum compact */
.legal-spa.legal-impressum h2 {
  font-size: 1rem;
  margin: 0.8rem 0 0.3rem;
}

.legal-spa.legal-impressum h3 {
  font-size: 0.9rem;
  margin: 0.6rem 0 0.2rem;
}

.legal-spa.legal-impressum p {
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.legal-spa .linkedin-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  margin-top: 0.8rem;
  border-radius: 6px;
}

.legal-spa .roridula-badge {
  padding: 0.6rem 1rem;
  margin-top: 1rem;
  margin-bottom: 0 !important;
}

.legal-spa .roridula-badge img {
  width: 50px;
  height: 50px;
}

.legal-spa .roridula-badge span {
  font-size: 0.7rem;
}

.legal-spa .roridula-badge strong {
  font-size: 1rem;
}
