:root {
  /* Colour palette */
  --color-bg: #0B0F17;
  --color-bg-elevated: #10141F;
  --color-surface: rgba(255,255,255,0.03);
  --color-primary: #55C1EA;
  --color-primary-deep: #123049;
  --color-primary-dim: rgba(85,193,234,.14);
  --color-text: #EDF2F6;
  --color-text-secondary: #8A93A6;
  --color-border: rgba(237,242,246,.08);
  --color-border-strong: rgba(85,193,234,.45);
  /* Legacy aliases kept so all existing var() references still resolve */
  --glass-bg: rgba(255,255,255,0.03);
  --glass-border: rgba(237,242,246,.08);
  --glass-blur: 20px;
  /* Geometry */
  --radius: 0px;
  --radius-sm: 0px;
  /* Misc */
  --transition-speed: 0.3s;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --container-max: 1200px;
  --section-padding: 80px 0;
}

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

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

#hero { scroll-margin-top: 88px; }
#services,
#about,
#portfolio,
#zusammenarbeit,
#contact { scroll-margin-top: 20px; }
#faq { scroll-margin-top: 100px; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11,15,23,0.82);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition-speed) ease,
              border-color var(--transition-speed) ease,
              backdrop-filter var(--transition-speed) ease;
}

.navbar.scrolled {
  background: rgba(11,15,23,0.96);
  border-bottom-color: rgba(85,193,234,0.25);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  transition: height var(--transition-speed) ease;
}

.navbar.scrolled .nav-container {
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 101;
}

.nav-logo img {
  height: 92px;
  width: auto;
  transition: height var(--transition-speed) ease;
}

.navbar.scrolled .nav-logo img {
  height: 72px;
}

.nav-toggle-input {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 101;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 0;
  transition: all 0.3s ease;
  position: absolute;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.nav-toggle-input:checked ~ .nav-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle-input:checked ~ .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-input:checked ~ .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition-speed) ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-speed) ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-logo-img {
  width: clamp(180px, 30vw, 320px);
  height: auto;
  margin: 0 auto 0;
  display: block;
}

.hero-brand {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  margin-top: -36px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: clamp(1.125rem, 2.8vw, 1.5rem);
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FLOATING SHAPES – Aura background
   ============================================ */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* These blobs stay round (design intent: soft aura, not UI rectangles) */
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(85,193,234,0.22);
  opacity: 0.12;
  top: -150px;
  left: -120px;
  animation: float 22s ease-in-out infinite;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: rgba(18,48,73,0.95);
  opacity: 0.55;
  top: 50%;
  right: -100px;
  animation: float 28s ease-in-out infinite reverse;
}

.shape-3 {
  width: 280px;
  height: 280px;
  background: rgba(85,193,234,0.18);
  opacity: 0.1;
  bottom: -80px;
  left: 28%;
  animation: float 20s ease-in-out infinite;
}

.shape-4 {
  width: 240px;
  height: 240px;
  background: rgba(85,193,234,0.30);
  opacity: 0.08;
  top: 20%;
  left: 62%;
  animation: float 25s ease-in-out infinite reverse;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Double staggered chevron scroll indicator */
.scroll-arrow {
  font-size: 0;      /* hide the raw ↓ character */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 20px;
  height: 26px;
  animation: scroll-bounce 2s ease infinite;
}

.scroll-arrow::before,
.scroll-arrow::after {
  content: '';
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--color-primary);
  border-bottom: 1.5px solid var(--color-primary);
  transform: rotate(45deg);
  display: block;
}

.scroll-arrow::before {
  animation: chevron-pulse 1.6s ease infinite;
}

.scroll-arrow::after {
  animation: chevron-pulse 1.6s ease 0.22s infinite;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family);
  letter-spacing: 0.02em;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  /* Permanentes Parallelogramm /___/ – alle Buttons außer Ghost */
  clip-path: polygon(16px 0%, 100% 0%, calc(100% - 16px) 100%, 0% 100%);
  transition: filter 0.3s ease, transform 0.3s ease, color 0.3s ease,
              border-color 0.3s ease, background 0.3s ease;
  position: relative;
  border: none;
  overflow: hidden;
}

/* Diagonaler Licht-Sweep beim Hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent  0%,
    rgba(255,255,255,0.06) 45%,
    rgba(255,255,255,0.09) 50%,
    transparent  55%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(120%);
}

/* Primary filled button */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  color: var(--color-text);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 20px rgba(85,193,234,0.32));
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* Stop sweep once form is sent */
.btn-primary.sent::after {
  display: none;
}

/* Ghost / secondary button */
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  overflow: hidden;
  clip-path: polygon(16px 0%, 100% 0%, calc(100% - 16px) 100%, 0% 100%);
  transition: border-color var(--transition-speed) ease,
              color var(--transition-speed) ease;
}

/* Fill-wipe from left on hover */
.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary-dim);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed) ease;
  pointer-events: none;
  z-index: -1;
}

.btn-ghost:hover::before {
  transform: scaleX(1);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Service text-link button – overrides pill button */
.btn-service {
  align-self: flex-start;
  margin-top: 24px;
  background: transparent;
  color: var(--color-primary);
  border: none;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: visible;
  /* Cancel notch and sweep – text-link style needs no clip */
  clip-path: none;
  filter: none;
}

/* No fill-wipe on service button */
.btn-service::before {
  display: none;
}

/* Replace offset frame with growing underline */
.btn-service::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  border: none;
  transform: none;
  opacity: 1;
  transition: width var(--transition-speed) ease;
}

.btn-service:hover::after {
  width: 100%;
  transform: none;
  opacity: 1;
}

.btn-service:hover {
  clip-path: none;
  transform: none;
  box-shadow: none;
  filter: none;
  gap: 10px;
  color: var(--color-text);
}

/* Arrow glyph appended via HTML or via ::after on a span inside—
   here we add the arrow character using data-driven approach via CSS content */
.btn-service .btn-arrow,
.btn-service[data-arrow]::before {
  display: none;
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 0;
  padding: 40px;
  transition: border-color 0.4s ease,
              background 0.4s ease,
              box-shadow 0.4s ease,
              transform 0.25s ease;
  transform-style: preserve-3d;
  contain: layout style;
}

.glass-card:hover {
  border-color: rgba(85,193,234,0.22);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 40px rgba(85,193,234,0.07);
  /* No transform – JavaScript tilt handles active cards */
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.about-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-card p {
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-card strong {
  color: rgba(85, 193, 234, 0.45);
  font-weight: 600;
}

.about-card p:last-of-type {
  margin-bottom: 0;
}

.about-headline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.accent-line {
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 0;
  margin: 0 auto;
  box-shadow: 0 0 18px rgba(85,193,234,0.38);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  display: flex;
  flex-direction: column;
}

/* Card icon – square with animated corner accents */
.card-icon {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 0;
  background: var(--color-primary-dim);
  border: 1px solid rgba(85,193,234,0.12);
  transition: background 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  position: relative;
}

/* L-shaped corner accents (top-left + bottom-right) */
.card-icon::before,
.card-icon::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--color-primary);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.35s ease;
}

.card-icon::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
  transform: translate(-3px, -3px);
}

.card-icon::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
  transform: translate(3px, 3px);
}

.service-card:hover .card-icon,
.collab-card:hover .card-icon {
  background: rgba(85,193,234,0.12);
  border-color: rgba(85,193,234,0.28);
  box-shadow: 0 0 24px rgba(85,193,234,0.14);
}

.service-card:hover .card-icon::before,
.service-card:hover .card-icon::after,
.collab-card:hover .card-icon::before,
.collab-card:hover .card-icon::after {
  opacity: 1;
  transform: translate(0, 0);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.card-description {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.card-features li {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  padding-left: 20px;
  position: relative;
}

/* Square bullet */
.card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  border-radius: 0;
}

/* ============================================
   MARQUEE STRIP  (index.html only, between Hero & Leistungen)
   ============================================ */
.marquee-strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-scroll 80s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  white-space: nowrap;
  opacity: 0.42;
  user-select: none;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.03);
  cursor: default;
  transition: border-color 0.4s ease,
              box-shadow 0.4s ease,
              transform 0.25s ease;
  transform-style: preserve-3d;
  contain: layout style;
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(237,242,246,0.08);
  transition: color 0.4s ease;
}

.portfolio-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.portfolio-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.portfolio-slide.active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

/* Blue gradient overlay on hover */
.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(85,193,234,0.10) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.portfolio-card:hover::before {
  opacity: 1;
}

.portfolio-card:hover {
  border-color: rgba(85,193,234,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  /* No transform – JS tilt handles it */
}

.portfolio-card:hover .portfolio-placeholder {
  color: rgba(237,242,246,0.14);
}

.portfolio-info {
  padding: 24px;
  position: relative;
  z-index: 2;
}

.portfolio-category {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 8px;
  display: block;
}

.portfolio-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portfolio-link::after {
  content: '→';
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.portfolio-link:hover {
  color: var(--color-text);
  gap: 10px;
}

.portfolio-link:hover::after {
  transform: translateX(3px);
}

/* ============================================
   PORTFOLIO FILTER
   ============================================ */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  padding: 12px 32px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font-family);
  border-radius: 0;
  cursor: pointer;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: border-color var(--transition-speed) ease,
              color var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

/* Fill-wipe */
.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary-dim);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed) ease;
  pointer-events: none;
}

/* Licht-Sweep (mirrors .btn::after) */
.filter-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent  0%,
    rgba(255,255,255,0.05) 45%,
    rgba(255,255,255,0.08) 50%,
    transparent  55%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.filter-btn:hover::before {
  transform: scaleX(1);
}

.filter-btn:hover::after {
  transform: translateX(120%);
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  color: var(--color-text);
  border: none;
  font-weight: 700;
  padding: 13px 33px;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  box-shadow: 0 4px 20px rgba(85,193,234,0.22);
}

.filter-btn.active::before,
.filter-btn.active::after {
  display: none;
}

.portfolio-empty {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 1rem;
  padding: 48px 0;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}

.contact-info h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact-info > p {
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  transition: color var(--transition-speed) ease;
}

.contact-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.contact-item a:hover {
  color: var(--color-primary);
}

.contact-form {
  padding: 40px;
}

/* Explicit no-tilt, no-hover */
.contact-form:hover {
  border-color: var(--glass-border);
  background: var(--glass-bg);
  box-shadow: none;
  transform: none;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(237,242,246,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 0;
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 0.9375rem;
  transition: border-color var(--transition-speed) ease,
              background var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(237,242,246,0.2);
}

/* Focus: bottom-edge Babyblau accent line */
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(85,193,234,0.3);
  border-bottom-color: var(--color-primary);
  background: rgba(85,193,234,0.03);
  box-shadow: 0 2px 0 -1px var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  justify-content: center;
}

/* Form feedback with left accent bar + slide-in animation */
.form-feedback {
  margin-top: 16px;
  padding: 12px 16px 12px 20px;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0;
  border-left: 3px solid transparent;
  display: none;
}

.form-feedback.success,
.form-feedback.error {
  display: block;
  animation: feedback-slide-in 0.3s ease both;
}

.form-feedback.success {
  background: rgba(85,193,234,0.07);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

.form-feedback.error {
  background: rgba(200,60,60,0.07);
  color: #e06060;
  border-left-color: #c04040;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  margin-top: -48px;
  padding: 48px 0 0;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,15,23,0.98);
  clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(85,193,234,0.25);
  clip-path: polygon(0 48px, 100% 0, 100% 2px, 0 calc(48px + 2px));
  pointer-events: none;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.footer-logo {
  display: block;
  margin-top: 0;
}

.footer-logo img {
  height: 80px;
  width: auto;
  opacity: 0.8;
  transition: opacity var(--transition-speed) ease;
}

.footer-logo img:hover {
  opacity: 1;
}

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 4px 16px;
  transition: color var(--transition-speed) ease;
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-dot {
  color: var(--color-primary);
  opacity: 0.35;
  font-size: 1.1rem;
  user-select: none;
}

.footer-separator {
  display: none;
}

/* force Impressum/Datenschutz onto a second nav row */
.footer-nav span:nth-of-type(3) {
  flex-basis: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 2px;
}

.footer-copy {
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
}

.footer-back {
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.footer-back:hover {
  color: var(--color-primary);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  will-change: opacity, transform, filter;
  transition: opacity 0.8s ease,
              transform 0.8s ease,
              filter 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    will-change: auto;
  }
}

/* Hero Reveal Stagger */
.hero-logo-wrap.reveal { transition-delay: 0.1s; }
.hero-brand.reveal     { transition-delay: 0.7s; }
.hero-subtitle.reveal  { transition-delay: 0.8s; }
.hero-tagline.reveal   { transition-delay: 0.9s; }
.hero-cta.reveal             { transition-delay: 1.0s; }
.scroll-indicator.reveal    { transition-delay: 1.1s; }

/* Stagger delays for portfolio cards */
.portfolio-card.reveal:nth-child(1) { transition-delay: 0s; }
.portfolio-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.portfolio-card.reveal:nth-child(3) { transition-delay: 0.2s; }

/* Stagger delays for collaboration cards */
.collab-card.reveal:nth-child(1) { transition-delay: 0s; }
.collab-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.collab-card.reveal:nth-child(3) { transition-delay: 0.3s; }

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-20px, -60px) scale(0.95);
  }
  75% {
    transform: translate(-40px, 20px) scale(1.03);
  }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@keyframes chevron-pulse {
  0%, 100% { opacity: 0.18; }
  50%       { opacity: 0.85; }
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--marquee-shift, -50%), 0, 0); }
}

@keyframes feedback-slide-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes timeline-sweep {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  border-radius: 0;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: rgba(237,242,246,0.08);
  border: 1px solid var(--color-border);
  border-radius: 0;
  color: var(--color-text);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(237,242,246,0.14);
  border-color: var(--color-primary);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
  position: relative;
  z-index: 1;
  padding: 140px 0 80px;
  min-height: 100vh;
  min-height: 100dvh;
}

.legal-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.legal-page h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.legal-page p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-page a {
  color: var(--color-primary);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* ============================================
   PORTFOLIO PAGE
   ============================================ */
.portfolio-page {
  position: relative;
  z-index: 1;
  padding: 140px 0 80px;
  min-height: 100vh;
  min-height: 100dvh;
}

.portfolio-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.portfolio-page .accent-line {
  margin: 0 0 40px 0;
}

.portfolio-page .portfolio-card {
  display: none;
}

.portfolio-page .portfolio-card.visible {
  display: block;
}

/* ============================================
   COLLABORATION
   ============================================ */
.collaboration {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.collaboration-intro {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 64px;
}

.collaboration-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.collab-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 32px;
  contain: layout style;
}

.collab-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.collab-card .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.collab-card .card-description {
  margin-bottom: 0;
}

.collab-card .card-title {
  margin-bottom: 16px;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  margin-top: 80px;
}

.timeline-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 32px 0;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  contain: layout style;
}

.timeline-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  background: transparent;
  transition: clip-path 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.5s ease,
              border-color 0.5s ease,
              filter 0.5s ease,
              transform 0.5s ease;
}

.timeline-num::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent  0%,
    rgba(255,255,255,0.07) 45%,
    rgba(255,255,255,0.11) 50%,
    transparent  55%
  );
  transform: translateX(-120%);
  pointer-events: none;
}

.timeline-num span {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-family);
  color: var(--color-text-secondary);
  opacity: 0.3;
  transition: color 0.5s ease,
              opacity 0.5s ease;
}

.timeline-step.is-active .timeline-num {
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  border-color: transparent;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  filter: drop-shadow(0 4px 12px rgba(85,193,234,0.25));
  transform: translateY(-2px);
}

.timeline-step.is-active .timeline-num::after {
  animation: timeline-sweep 0.7s ease forwards;
}

.timeline-step.is-active .timeline-num span {
  color: var(--color-text);
  opacity: 1;
}

.timeline-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  opacity: 0.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  transition: opacity 0.5s ease;
}

.timeline-step p {
  color: var(--color-text-secondary);
  opacity: 0.3;
  font-size: 0.9375rem;
  line-height: 1.7;
  transition: opacity 0.5s ease;
}

.timeline-step.is-active .timeline-step-title,
.timeline-step.is-active .timeline-body p {
  opacity: 1;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 80px 0;
}

.faq-list {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question span {
  flex: 1;
  padding-right: 16px;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--color-text-secondary);
  transition: transform 0.35s ease, color 0.3s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.45s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 1200px;
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
  margin-bottom: 0;
}

.faq-answer ul li {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  padding-left: 20px;
  position: relative;
  line-height: 1.7;
}

.faq-answer ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  border-radius: 0;
}

.faq-answer ul li strong {
  color: rgba(85, 193, 234, 0.45);
  font-weight: 600;
}

/* ============================================
   RESPONSIVE – Tablet
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-grid {
    gap: 48px;
  }
}

/* ============================================
   RESPONSIVE – Mobile
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* Navigation */
  .nav-container {
    height: 80px;
  }

  .navbar.scrolled .nav-container {
    height: 68px;
  }

  .nav-logo img {
    height: 64px;
  }

  .navbar.scrolled .nav-logo img {
    height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: rgba(11,15,23,0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
  }

  .nav-toggle-input:checked ~ .nav-links {
    right: 0;
  }

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

  /* Hero */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 56px 0 80px 0;
    justify-content: center;
  }

  .scroll-indicator {
    bottom: 48px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 14px 32px;
    font-size: 0.9375rem;
  }

  .shape-1 { width: 200px; height: 200px; }
  .shape-2 { width: 150px; height: 150px; }
  .shape-3 { width: 120px; height: 120px; }
  .shape-4 { width: 100px; height: 100px; }

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

  .glass-card {
    padding: 28px;
  }

  .btn-service {
    align-self: flex-start;
  }

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

  /* Collaboration */
  .collab-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .collab-card .card-icon {
    margin-bottom: 24px;
  }

  /* Timeline */
  .timeline-step {
    gap: 24px;
    padding: 24px 0;
    max-width: 100%;
  }
  .timeline-num {
    width: 34px;
    height: 34px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 28px;
  }

  /* Footer */
  .footer {
    margin-top: -24px;
    padding: 24px 0 0;
  }

  .footer::before {
    clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
  }

  .footer::after {
    height: 28px;
    clip-path: polygon(0 24px, 100% 0, 100% 2px, 0 calc(24px + 2px));
  }

  .footer-nav a {
    font-size: 0.75rem;
    padding: 1px 2px;
    letter-spacing: 0;
  }

  .footer-dot {
    font-size: 0.9rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding-bottom: 12px;
  }
}

/* ============================================
   RESPONSIVE – Small Mobile
   ============================================ */
@media (max-width: 480px) {
  .section-header {
    margin-bottom: 40px;
  }
}

/* ============================================
   SERVICE PAGES
   ============================================ */
.service-page {
  position: relative;
  z-index: 1;
  padding: 140px 0 80px;
  min-height: 100vh;
  min-height: 100dvh;
}

.service-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.service-page .accent-line {
  margin: 0 0 40px 0;
}

.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.service-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.service-content p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.service-content ul li {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

/* Square bullet */
.service-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: var(--color-primary);
  border-radius: 0;
}

.cta-card {
  margin-top: 48px;
}

.cta-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Cards on service sub-pages are static – no hover glow, no tilt */
.service-page .glass-card:hover {
  border-color: var(--glass-border);
  background: var(--glass-bg);
  box-shadow: none;
  transform: none;
}

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

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .shape {
    animation: none;
  }

  .scroll-arrow,
  .scroll-arrow::before,
  .scroll-arrow::after {
    animation: none;
  }
  .scroll-arrow::before,
  .scroll-arrow::after {
    opacity: 0.55;
  }

  .marquee-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .reveal.revealed {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .glass-card,
  .portfolio-card {
    transition: border-color 0.15s, background 0.15s;
  }

  .btn {
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    filter: none !important;
  }

  /* Hide sweep and fill-wipe animations */
  .btn::after,
  .filter-btn::after,
  .btn-ghost::before {
    display: none;
  }

  .form-feedback.success,
  .form-feedback.error {
    animation: none;
  }
}
