:root {
  --blue: #1432a8;
  --blue-deep: #0a1f6e;
  --blue-bright: #3a5cff;
  --blue-pale: #c7d2ff;
  --paper: #f4f5f8;
  --paper-card: #ffffff;
  --white: #ffffff;
  --text-dim: #b8c2e8;
  --ink: #0c1430;
  --ink-dim: #5b6280;
  --line: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(12, 20, 48, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--blue-bright); color: var(--white); }

.bracket-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6%;
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
  color: var(--white);
}

nav.scrolled {
  background: linear-gradient(to right, #ffffff 0%, #ffffff 14%, #0d1e5c 38%, var(--blue-deep) 100%);
  backdrop-filter: blur(14px);
  padding: 14px 6%;
}

.logo-link { display: flex; align-items: center; }
.logo-link img { height: 34px; display: block; width: auto; }

.nav-links {
  display: flex;
  gap: 40px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  opacity: 0.78;
  transition: opacity 0.3s ease;
}

.nav-links a.current { opacity: 1; }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.current::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 60;
}

.nav-toggle span {
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: all 0.3s ease;
}

/* Page header (for subpages, not the homepage hero) */
.page-header {
  position: relative;
  padding: 200px 6% 90px;
  background: var(--blue-deep);
  color: var(--white);
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 800px 500px at 85% 20%, rgba(58, 92, 255, 0.45), transparent 65%),
    linear-gradient(160deg, var(--blue-deep) 0%, var(--blue) 60%, var(--blue-deep) 100%);
}

/* Subpage hero video */
.page-header-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}

/* Grid overlay */
.page-header-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.6) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.6) 70%, transparent 100%);
  pointer-events: none;
}

.page-header .section-tag { position: relative; z-index: 1; color: var(--blue-pale); }
.page-header h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  max-width: 20ch;
}

.page-header p {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Hero (homepage only) */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 6% 100px;
  overflow: hidden;
  background: var(--blue-deep);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--blue-deep);
  overflow: hidden;
}

.hero-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: saturate(0.95) brightness(0.85);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 75% 60%, rgba(58, 92, 255, 0.16), transparent 65%),
    linear-gradient(160deg, rgba(10,31,110,0.32) 0%, rgba(20,50,168,0.18) 55%, rgba(10,31,110,0.36) 100%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  right: -10%;
  bottom: -20%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.25), rgba(58,92,255,0.05) 60%, transparent 75%);
  opacity: 0;
  animation: orbIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  z-index: 0;
  pointer-events: none;
}

.hero-mediactrl {
  position: absolute;
  bottom: 40px;
  right: 6%;
  z-index: 2;
  display: flex;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 1s ease 1.8s forwards;
}

.media-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(10,31,110,0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: all 0.3s ease;
}

.media-btn:hover {
  border-color: var(--white);
  background: rgba(58,92,255,0.35);
}

.media-btn svg { width: 17px; height: 17px; }
.media-btn .icon-pause { display: block; }
.media-btn .icon-play { display: none; }
.media-btn.is-paused .icon-pause { display: none; }
.media-btn.is-paused .icon-play { display: block; }

.media-btn .icon-unmuted { display: block; }
.media-btn .icon-muted { display: none; }
.media-btn.is-muted .icon-unmuted { display: none; }
.media-btn.is-muted .icon-muted { display: block; }

@keyframes orbIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.hero-stamp {
  position: absolute;
  top: 140px;
  right: 6%;
  text-align: right;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s ease 1s forwards;
}

.hero-stamp .year {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
}

.hero-stamp .est {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--blue-pale);
  margin-top: 4px;
}

@keyframes fadeIn { to { opacity: 1; } }

.eyebrow {
  font-size: 0.95rem;
  color: var(--blue-pale);
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
  position: relative;
  z-index: 1;
}

.eyebrow strong { color: var(--white); font-weight: 600; }

.hero h1 {
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 18ch;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

.hero h1 .line { display: block; overflow: hidden; }

.hero h1 .line span {
  display: block;
  transform: translateY(110%);
  animation: revealLine 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 .line:nth-child(1) span { animation-delay: 0.65s; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.8s; }
.hero h1 .dot { color: var(--blue-bright); }

@keyframes revealLine { to { transform: translateY(0); } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 36px;
  opacity: 0;
  animation: fadeUp 1s ease 1.3s forwards;
  position: relative;
  z-index: 1;
}

.hero-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-bright); opacity: 0.5;
}
.hero-dots span:nth-child(1) { opacity: 1; }

.hero-cta {
  margin-top: 52px;
  display: flex;
  gap: 18px;
  opacity: 0;
  animation: fadeUp 1s ease 1.45s forwards;
  position: relative;
  z-index: 1;
}

.btn {
  padding: 16px 36px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.35s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--white);
  color: var(--blue-deep);
  border: 1px solid var(--white);
}

.btn-primary:hover {
  background: var(--blue-bright);
  color: var(--white);
  border-color: var(--blue-bright);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 6%;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1s ease 1.8s forwards;
  z-index: 1;
}

.scroll-cue span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-pale);
}

.scroll-line {
  width: 36px; height: 1px;
  background: var(--blue-pale);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* Section base */
section { position: relative; padding: 130px 6%; overflow-x: hidden; -webkit-transform: translateZ(0); transform: translateZ(0); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  margin-bottom: 24px;
}

.section-tag .bracket-label::before { content: '[ '; }
.section-tag .bracket-label::after { content: ' ]'; }

.section-head { max-width: 760px; margin-bottom: 72px; }

.section-head h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  line-height: 1.1;
}

.section-head p {
  margin-top: 22px;
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 58ch;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* Vision statement block (used on homepage + vision page) */
.vision {
  background: var(--paper);
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.vision-statement {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  max-width: 30ch;
  font-weight: 400;
}

.vision-statement .hl { color: var(--blue); font-weight: 600; }

.vision-side { max-width: 40ch; }

.vision-side p {
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.vision-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vision-list li {
  font-size: 0.95rem;
  padding-left: 22px;
  position: relative;
  color: var(--ink);
}

.vision-list li::before {
  content: '↗';
  position: absolute;
  left: 0;
  color: var(--blue-bright);
  font-size: 0.85rem;
}

/* Founders (vision page) */
.founders {
  background: var(--paper);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
}

.founder-photo {
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 110px;
  overflow: hidden;
}

.founder-photo svg { width: 90px; height: 90px; color: rgba(255,255,255,0.35); }

/* Viewfinder corner brackets */
.founder-corners { position:absolute;inset:14px;z-index:3;pointer-events:none; }
.fc {
  position: absolute;
  width: 20px; height: 20px;
  border-color: rgba(255,255,255,0.55);
  border-style: solid;
}
.fc-tl { top:0; left:0;  border-width: 2px 0 0 2px; }
.fc-tr { top:0; right:0; border-width: 2px 2px 0 0; }
.fc-bl { bottom:0; left:0;  border-width: 0 0 2px 2px; }
.fc-br { bottom:0; right:0; border-width: 0 2px 2px 0; }

.founders-text h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 24px; }
.founders-text .names { color: var(--blue); font-weight: 600; margin-bottom: 22px; display: block; }
.founders-text p { color: var(--ink-dim); line-height: 1.75; font-size: 1.02rem; }

/* BGX Badge / Subtitle Card */
.bgx-badge {
  position: relative;
  background: linear-gradient(135deg, var(--blue-deep) 0%, #0d1e5c 100%);
  border: 1px solid rgba(58,92,255,0.35);
  border-radius: 10px;
  padding: 22px 28px 20px;
  margin-bottom: 28px;
  overflow: hidden;
}

/* Subtle grid inside badge */
.bgx-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Glow */
.bgx-badge::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(58,92,255,0.25), transparent 70%);
  pointer-events: none;
}

.bgx-badge-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: rgba(58,92,255,0.7);
  border-style: solid;
  z-index: 1;
}
.bgx-badge-tl { top: 8px;  left: 8px;  border-width: 1.5px 0 0 1.5px; }
.bgx-badge-tr { top: 8px;  right: 8px; border-width: 1.5px 1.5px 0 0; }
.bgx-badge-bl { bottom: 8px; left: 8px;  border-width: 0 0 1.5px 1.5px; }
.bgx-badge-br { bottom: 8px; right: 8px; border-width: 0 1.5px 1.5px 0; }

.bgx-badge-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  opacity: 0.7;
  margin-bottom: 8px;
  position: relative; z-index: 1;
}

.bgx-badge-name {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  position: relative; z-index: 1;
}

.bgx-badge-divider {
  margin: 12px 0;
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bgx-badge-divider span {
  display: block;
  height: 1px;
  width: 48px;
  background: linear-gradient(to right, var(--blue-bright), transparent);
}
.bgx-badge-divider::after {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue-bright);
  opacity: 0.6;
}

.bgx-badge-slogan {
  font-size: 0.88rem;
  color: #c8d4ff;
  line-height: 1.7;
  opacity: 1;
  font-style: italic;
  position: relative; z-index: 1;
  margin: 0 0 10px 0;
}

.bgx-badge-authors {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-bright);
  opacity: 0.8;
  letter-spacing: 0.03em;
  position: relative; z-index: 1;
}

.founders-text p {
  color: var(--ink-dim);
  line-height: 1.75;
  font-size: 1.02rem;
  text-align: justify;
  hyphens: auto;
  margin-bottom: 1.1em;
}

/* Leistungen */
.services { background: var(--blue-deep); color: var(--white); }
.services .section-tag { color: var(--blue-pale); }
.services .section-head p { color: var(--text-dim); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.services-grid.services-grid-compact {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

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

@media (max-width: 880px) {
  .services-grid.services-grid-quad { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--blue-deep);
  padding: 52px 38px;
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover { background: var(--blue); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: var(--blue-pale);
  margin-bottom: 24px;
  display: block;
}

.service-card h3 { font-size: 1.5rem; margin-bottom: 20px; font-weight: 600; }

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.service-card li {
  color: var(--text-dim);
  font-size: 0.95rem;
  padding-left: 18px;
  position: relative;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 1px;
  background: var(--blue-pale);
}

/* Leistungen page extra: process + detail blocks */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step { position: relative; }

.process-step .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  color: var(--blue-pale);
  opacity: 0.5;
  display: block;
  margin-bottom: 14px;
}

.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process-step p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }

/* Projekte */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.project-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  min-width: 0;
}

.project-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-placeholder-icon { width: 52px; height: 52px; color: rgba(255,255,255,0.35); z-index: 1; }

.project-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,18,45,0.92) 0%, rgba(10,18,45,0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-item:hover .project-img { transform: scale(1.08); }
.project-item:hover .project-overlay { opacity: 1; }

.project-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-pale);
  margin-bottom: 8px;
}

/* Placeholder tiles */
.project-item:has(.project-tag:only-child) .project-img,
.project-tag-pending {
  color: rgba(199, 210, 255, 0.45);
  font-style: italic;
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 600;
}

/* Kontakt */
.contact { background: var(--paper); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.contact-info h2 { font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 26px; }
.contact-info p { color: var(--ink-dim); line-height: 1.7; margin-bottom: 44px; max-width: 42ch; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
}

.contact-detail-icon { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

.contact-detail a, .contact-detail span {
  color: var(--ink);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.contact-detail a:hover { color: var(--blue); }

.contact-form-wrap {
  background: var(--paper-card);
  border-radius: 12px;
  padding: 44px;
  border: 1px solid var(--line-dark);
}

.form-group { margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 10px;
}

input, textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 10px 0;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { resize: none; height: 100px; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 28px 0 32px;
  display: flex;
  gap: 10px;
}

.form-note input { width: auto; margin-top: 3px; flex-shrink: 0; }

.submit-btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 16px 40px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.35s ease;
}

.submit-btn:hover { background: var(--blue-bright); transform: translateY(-1px); }

.form-success {
  margin-top: 20px;
  color: var(--blue);
  font-size: 0.9rem;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.form-success.show { opacity: 1; height: auto; margin-top: 20px; }

.form-error {
  margin-top: 20px;
  color: #c0392b;
  font-size: 0.9rem;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.form-error.show { opacity: 1; height: auto; margin-top: 20px; }

/* Legal pages (Impressum / Datenschutz) */
.legal-content {
  max-width: 760px;
  background: var(--paper);
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--blue);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-content p, .legal-content li {
  color: var(--ink-dim);
  line-height: 1.75;
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.legal-content ul { padding-left: 22px; margin-bottom: 14px; }

.legal-content strong { color: var(--ink); font-weight: 600; }

.legal-content a { color: var(--blue); border-bottom: 1px solid var(--blue-pale); word-break: break-word; }
.legal-content a:hover { color: var(--blue-bright); }

.legal-card {
  background: var(--paper-card);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 32px 36px;
  margin-bottom: 32px;
}

.legal-card p:last-child { margin-bottom: 0; }

/* Footer */
footer {
  padding: 50px 6% 40px;
  background: var(--blue-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

footer .logo-link img { height: 28px; }

.footer-links {
  display: flex;
  gap: 32px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.82rem; color: var(--text-dim); }

/* Responsive */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .form-row { grid-template-columns: 1fr; }
  .vision { flex-direction: column; align-items: flex-start; }
  .founders { grid-template-columns: 1fr; gap: 36px; }
  .founder-photo { position: relative; top: auto; }
  .founders-text p { text-align: left; hyphens: none; }
  section { padding: 100px 6%; }
  .contact-form-wrap { padding: 28px; }
  .legal-card { padding: 24px; }
}

@media (max-width: 540px) {
  .projects-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .hero-cta { flex-direction: column; width: 100%; }
  .btn { text-align: center; }
  .hero-stamp { top: 110px; }
  .page-header { padding: 160px 6% 70px; }
}

@media (max-width: 700px) {
  /* Animation block: 3 cols → 1 col */
  .bgx-animation-grid { grid-template-columns: 1fr !important; }

  /* Vergleichstabelle: kompaktere Schrift und Padding */
  .abo-compare-row { grid-template-columns: 1fr 1fr 1fr !important; }
  .abo-compare-row > div { padding: 10px 8px !important; font-size: 0.78rem !important; }
}

/* Client logo tiles (no image/video behind them) */
.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@media (max-width: 880px) {
  .client-logos-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.client-logo-tile {
  aspect-ratio: 16/10;
  border-radius: 6px;
  background: var(--paper-card);
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: border-color 0.3s ease, transform 0.3s ease;
  min-width: 0;
  overflow: hidden;
}

.client-logo-tile:hover {
  border-color: var(--blue-pale);
  transform: translateY(-2px);
}

.client-logo-tile span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-dim);
  text-align: center;
}


/* Logo marquee (client logos) */
.logo-marquee {
  background: var(--paper);
  padding: 56px 0;
  overflow: hidden;
  position: relative;
}

.logo-marquee-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 32px;
}

.logo-marquee-track-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  /* animation handled by JS */
}

/* Marquee runs continuously - no hover pause */

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-marquee-item {
  flex-shrink: 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-marquee-item:hover {
  opacity: 1;
  filter: grayscale(0);
}

.logo-marquee-item svg {
  height: 100%;
  width: auto;
  color: var(--ink-dim);
}

.logo-marquee-item img {
  height: 100%;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.logo-marquee-placeholder {
  height: 38px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  white-space: nowrap;
}

@media (max-width: 540px) {
  .logo-marquee { padding: 44px 0; }
  .logo-marquee-track { gap: 48px; }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: var(--blue-deep);
  color: var(--white);
  padding: 28px 6%;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-banner-text { max-width: 640px; }

.cookie-banner-text h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.cookie-banner-text p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--blue-pale);
  border-bottom: 1px solid var(--blue-pale);
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn {
  padding: 12px 22px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
}

.cookie-btn:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.cookie-btn-accept {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--white);
}

.cookie-btn-accept:hover { background: var(--blue-bright); color: var(--white); border-color: var(--blue-bright); }

.cookie-settings-panel {
  display: none;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.cookie-settings-panel.open { display: block; }

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cookie-option:last-child { border-bottom: none; }

.cookie-option-text strong {
  font-size: 0.92rem;
  display: block;
  margin-bottom: 4px;
}

.cookie-option-text span {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.cookie-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-toggle input { opacity: 0; width: 0; height: 0; }

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--blue-bright); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { background: var(--blue-bright); opacity: 0.5; cursor: not-allowed; }

.cookie-settings-save {
  margin-top: 20px;
}

@media (max-width: 700px) {
  .cookie-banner-inner { flex-direction: column; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}
