/* ============================================================
   MaWeMo — Premium Unternehmenswebsite
   Technisch · Hell · Edel · Präzise
   Primärfarbe: Marineblau #1B2044
   Version 2.0 — Prompt 3 Masterclass
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --navy: #1B2044;
  --navy-90: rgba(27, 32, 68, 0.9);
  --navy-light: #2E3A6E;
  --navy-hover: #3A4A7A;
  --navy-subtle: rgba(27, 32, 68, 0.04);
  --navy-border: rgba(27, 32, 68, 0.10);
  --white: #FAFBFD;
  --white-pure: #FFFFFF;
  --gray-50: #F7F8FA;
  --gray-100: #F0F2F5;
  --gray-200: #E4E7EC;
  --gray-300: #D0D5DD;
  --gray-400: #98A2B3;
  --gray-500: #8A92A0;
  --gray-600: #667085;
  --gray-700: #475467;
  --gray-800: #344054;
  --anthracite: #2D2D2D;
  --anthracite-dark: #1A1A1A;
  --warm-gray: #F5F3F0;
  --warm-gray-dark: #EDE9E3;
  --success: #0D7A3F;
  --error: #B42318;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --max-w-narrow: 680px;
  --max-w-text: 600px;

  --header-h: 80px;
  --header-h-compact: 64px;

  --radius-sm: 3px;
  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(27,32,68,0.08);
  --shadow-lg: 0 8px 24px rgba(27,32,68,0.10);
  --shadow-header: 0 1px 8px rgba(27,32,68,0.06);

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 0.25s;
  --duration-slow: 0.5s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  color: var(--anthracite);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--navy-hover); }

::selection { background: rgba(27, 32, 68, 0.12); color: var(--navy); }

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--navy-hover);
  outline-offset: 2px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.375rem); margin-bottom: 0.625rem; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: 0; }

p { margin-bottom: 1rem; }

.text-lg { font-size: 1.125rem; line-height: 1.75; color: var(--gray-700); }
.text-sm { font-size: 0.875rem; line-height: 1.6; color: var(--gray-600); }
.text-xs { font-size: 0.8125rem; line-height: 1.5; color: var(--gray-500); }

/* --- Overline / Label --- */
.overline {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.overline-light {
  color: rgba(255,255,255,0.6);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}
@media (max-width: 768px) { .container { padding: 0 1.25rem; } }
@media (max-width: 480px) { .container { padding: 0 1rem; } }

/* --- Accent Line --- */
.accent-line {
  width: 48px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.accent-line-white { background: rgba(255,255,255,0.5); }
.accent-line-center { margin-left: auto; margin-right: auto; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 251, 253, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--header-h);
  transition: height var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease);
}
.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gray-200);
  transition: opacity var(--duration) var(--ease);
}
.header.scrolled {
  height: var(--header-h-compact);
  box-shadow: var(--shadow-header);
  background: rgba(250, 251, 253, 0.98);
}
.header.scrolled::after { opacity: 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.header-logo img {
  height: 40px;
  width: auto;
  transition: height var(--duration) var(--ease);
}
.header.scrolled .header-logo img { height: 34px; }
.header-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.nav-link:hover {
  color: var(--navy);
  background: var(--navy-subtle);
}
.nav-link.active { color: var(--navy); }

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.2px;
  margin-left: 0.5rem;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.nav-cta:hover { background: var(--navy-light); color: #fff !important; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1010;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 1005;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-size: 1.375rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding: 0.25rem 0;
  transition: color var(--duration) var(--ease);
}
.mobile-nav a:hover { color: #fff; }

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 0.875rem 2rem;
}
.btn-primary:hover { background: var(--navy-light); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  padding: 0.8125rem 1.75rem;
  border: 1.5px solid var(--navy-border);
}
.btn-secondary:hover { border-color: var(--navy); background: var(--navy-subtle); color: var(--navy); }

.btn-white {
  background: #fff;
  color: var(--navy);
  padding: 0.875rem 2rem;
}
.btn-white:hover { background: var(--gray-50); transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--navy); }

.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(var(--header-h) + 4.5rem);
  padding-bottom: 0;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gray-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.3;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, black 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 560px; }

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(27, 32, 68, 0.05);
  border: 1px solid rgba(27, 32, 68, 0.08);
  border-radius: var(--radius-sm);
}
.hero-overline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 520px;
}
.hero h1 span { /* Für visuelle Hervorhebung einzelner Teile */
  display: block;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 2.25rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: 0.2px;
}
.hero-trust-icon {
  width: 16px;
  height: 16px;
  color: var(--navy);
  opacity: 0.6;
}

/* Hero Media */
.hero-media {
  position: relative;
}
.hero-media-main {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Decorative grid inside placeholder */
/* Echtes Hero-Bild */
.hero-media-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius-md);
}

.hero-media-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gray-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}
.hero-media-placeholder {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--gray-400);
}
.hero-media-placeholder svg { margin: 0 auto 0.75rem; opacity: 0.3; }
.hero-media-placeholder span { font-size: 0.75rem; font-weight: 500; }

/* Floating badges on hero media */
.hero-media-badge {
  position: absolute;
  z-index: 2;
  background: var(--white-pure);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.hero-media-badge-1 { top: 12%; left: -24px; }
.hero-media-badge-2 { bottom: 20%; right: -20px; }
.hero-media-badge-3 { top: 50%; left: -16px; transform: translateY(-50%); }

@media (max-width: 1024px) {
  .hero-media-badge { display: none; }
}
@media (max-width: 768px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-content { max-width: 100%; }
  .hero h1 { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-trust { flex-wrap: wrap; gap: 1rem; }
}

/* ============================================================
   SERVICES NAVIGATOR (under Hero)
   ============================================================ */
.services-nav {
  padding: 4rem 0;
  background: var(--white);
  position: relative;
  z-index: 2;
}
.services-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.services-nav-item {
  background: var(--white-pure);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background var(--duration) var(--ease);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.services-nav-item:hover {
  background: var(--gray-50);
  color: inherit;
}
.services-nav-num {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 1px;
}
.services-nav-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.services-nav-desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gray-600);
}
.services-nav-arrow {
  margin-top: auto;
  width: 20px;
  height: 20px;
  color: var(--navy);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.services-nav-item:hover .services-nav-arrow {
  opacity: 0.6;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .services-nav-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services-nav-grid { grid-template-columns: 1fr; }
  .services-nav-item { padding: 1.5rem 1.25rem; }
}

/* ============================================================
   SECTIONS — Base
   ============================================================ */
.section {
  padding: 7rem 0;
  position: relative;
}
.section-lg { padding: 8.5rem 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.8); }
.section-dark .accent-line { background: rgba(255,255,255,0.4); }
.section-dark .overline { color: rgba(255,255,255,0.5); }

/* Section Header */
.section-header { margin-bottom: 3.5rem; max-width: var(--max-w-narrow); }
.section-header-center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header h2 { margin-bottom: 0.875rem; }
.section-header .intro {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--gray-700);
  max-width: var(--max-w-text);
}
.section-dark .section-header .intro { color: rgba(255,255,255,0.7); }
.section-header-center .intro { margin-left: auto; margin-right: auto; }

/* ============================================================
   SECTION LAYOUTS — Text + Image variations
   ============================================================ */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.section-split-reverse { direction: rtl; }
.section-split-reverse > * { direction: ltr; }

.section-media {
  position: relative;
}
.section-image-frame {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.section-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gray-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
}
/* Echte Bilder in Image-Frames */
/* Echte Bilder in Image-Frames */
.section-image-frame img,
.section-image-frame-premium img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius-md);
}

.section-image-label {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 500;
}
.section-image-label svg { margin: 0 auto 0.5rem; opacity: 0.25; }

@media (max-width: 768px) {
  .section-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .section-split-reverse { direction: ltr; }
  .section { padding: 4.5rem 0; }
  .section-lg { padding: 5rem 0; }
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  gap: 1.25rem;
}
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-5 { grid-template-columns: repeat(5, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white-pure);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 32, 68, 0.18);
  transform: translateY(-2px);
}
.card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  color: var(--navy);
  background: rgba(27, 32, 68, 0.04);
  border-radius: var(--radius-sm);
  padding: 6px;
}
.card-icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.card h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.375rem; color: var(--navy); }
.card p { font-size: 0.8125rem; line-height: 1.55; color: var(--gray-600); margin-bottom: 0; }

.section-alt .card { background: var(--white-pure); }

@media (max-width: 1024px) {
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards-grid-3,
  .cards-grid-5,
  .cards-grid-4,
  .cards-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   HORIZONTAL SERVICE LIST (for Werkzeugbau)
   ============================================================ */
.service-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-200);
}
.service-strip-item {
  background: var(--white-pure);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--duration) var(--ease);
  border-right: 1px solid var(--gray-200);
}
.service-strip-item:last-child { border-right: none; }
.service-strip-item:hover { background: var(--gray-50); }
.service-strip-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.12;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.service-strip-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.375rem;
}
.service-strip-desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--gray-600);
}

@media (max-width: 1024px) {
  .service-strip { grid-template-columns: repeat(3, 1fr); }
  .service-strip-item:nth-child(3) { border-right: none; }
}
@media (max-width: 640px) {
  .service-strip { grid-template-columns: 1fr; }
  .service-strip-item { border-right: none; border-bottom: 1px solid var(--gray-200); text-align: left; padding: 1.25rem; }
  .service-strip-item:last-child { border-bottom: none; }
}

/* ============================================================
   NORM BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(27, 32, 68, 0.05);
  border: 1px solid rgba(27, 32, 68, 0.10);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
}
.badge svg { width: 13px; height: 13px; flex-shrink: 0; }
.badge-group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }

/* ============================================================
   WAFFENTECHNIK — Premium Section
   ============================================================ */
.section-premium {
  background: linear-gradient(180deg, var(--warm-gray) 0%, var(--gray-100) 100%);
  padding: 8.5rem 0;
  position: relative;
}
.section-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

/* Premium Header */
.premium-header {
  margin-bottom: 2.5rem;
}

.premium-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.premium-label-line {
  width: 24px;
  height: 1px;
  background: var(--navy);
  opacity: 0.3;
}

/* Premium Split Layout */
.premium-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: start;
}
.premium-text-col .intro {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--gray-700);
  max-width: var(--max-w-text);
}

.premium-media-col { position: relative; }
.section-image-frame-premium {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--warm-gray-dark) 0%, var(--gray-100) 100%);
  border-color: var(--gray-300);
}
.section-image-frame-premium::before {
  background-size: 28px 28px;
  opacity: 0.25;
}

/* Premium Badges */
.badge-premium {
  background: rgba(27, 32, 68, 0.04);
  border-color: rgba(27, 32, 68, 0.08);
}

/* Premium Tableau */
.premium-tableau-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.premium-tableau-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0;
  white-space: nowrap;
}
.premium-tableau-line {
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

/* Premium Grid */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.premium-card {
  background: var(--white-pure);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
.premium-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 32, 68, 0.15);
}

.premium-card-accent {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 50%, transparent 100%);
  opacity: 0.3;
}

.premium-card-num {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.premium-card h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.premium-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 0;
}

/* Premium Quality Bar */
.quality-bar-premium {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--gray-200);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Section CTA hint variant for premium */
.section-cta-hint-muted {
  color: var(--gray-400);
  font-style: italic;
}

@media (max-width: 1024px) {
  .premium-split { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .premium-grid { grid-template-columns: 1fr; }
  .section-premium { padding: 5rem 0; }
  .premium-card { padding: 1.75rem; }
  .premium-header { margin-bottom: 1.5rem; }
  .premium-tableau-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .premium-tableau-line { display: none; }
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.section-contact {
  background: var(--navy);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.section-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-info h2 { color: #fff; margin-bottom: 1rem; }
.contact-info .intro { color: rgba(255,255,255,0.7); font-size: 1.0625rem; line-height: 1.75; }

.contact-details { margin-top: 2.5rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.125rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
}
.contact-detail svg { width: 18px; height: 18px; opacity: 0.5; flex-shrink: 0; }
.contact-detail a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.contact-detail a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  background: var(--white-pure);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--anthracite);
  background: var(--white);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 32, 68, 0.06);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group textarea { resize: vertical; min-height: 110px; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}
.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--navy);
  flex-shrink: 0;
}
.form-checkbox label {
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.5;
  cursor: pointer;
}
.form-checkbox a { text-decoration: underline; }

.btn-submit { width: 100%; justify-content: center; padding: 0.875rem; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
}

/* ============================================================
   SECTION BODY TEXT
   ============================================================ */
.section-body {
  max-width: var(--max-w-text);
  margin-bottom: 1.5rem;
}
.section-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
}
.section-body p + p { margin-top: 0.5rem; }

/* ============================================================
   MEDIA CAPTIONS
   ============================================================ */
.media-caption {
  margin-top: 0.875rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.media-caption-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-400);
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.section-image-frame-lg {
  aspect-ratio: 16/11;
}

/* ============================================================
   CAPABILITY GROUPS (Maschinenbau Leistungsarchitektur)
   ============================================================ */
.capability-group-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.capability-group-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.375rem;
}
.capability-group-sub {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 560px;
  margin-bottom: 0;
}

.capability-cluster {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--gray-100);
}
.capability-cluster:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.capability-cluster-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  margin-bottom: 1.75rem;
}
.capability-cluster-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0;
}

.capability-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.capability-item {
  background: var(--white-pure);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.capability-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 32, 68, 0.16);
  transform: translateY(-2px);
}

.capability-item-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}
.capability-item-head h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0;
}
.capability-icon {
  width: 28px;
  height: 28px;
  color: var(--navy);
  opacity: 0.45;
  flex-shrink: 0;
}

.capability-item p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--gray-600);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .capability-items { grid-template-columns: 1fr; }
  .capability-item { padding: 1.25rem; }
}

/* ============================================================
   QUALITY BAR (Trust-Kennzahlen-Leiste)
   ============================================================ */
.quality-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 2.5rem;
  background: var(--white-pure);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}
.quality-bar-compact {
  gap: 2rem;
  padding: 1.75rem 2rem;
}
.section-alt .quality-bar {
  background: var(--white-pure);
}

.quality-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}
.quality-bar-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.quality-bar-label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
}
.quality-bar-divider {
  width: 1px;
  height: 36px;
  background: var(--gray-200);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .quality-bar {
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 1.25rem;
  }
  .quality-bar-divider { display: none; }
  .quality-bar-item { min-width: 120px; }
}

/* ============================================================
   SECTION CTA
   ============================================================ */
.section-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.section-cta-hint {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.5;
  max-width: 340px;
}

@media (max-width: 640px) {
  .section-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ============================================================
   PRECISION MODULES (Werkzeugbau Leistungsdarstellung)
   ============================================================ */
.precision-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white-pure);
}

.precision-module {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--duration) var(--ease);
}
.precision-module:last-child { border-bottom: none; }
.precision-module:hover { background: var(--gray-50); }

.precision-module-num {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.75rem 0.5rem 1.75rem 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.1;
  line-height: 1;
  user-select: none;
}

.precision-module-content {
  padding: 1.75rem 2rem 1.75rem 0;
  border-left: 1px solid var(--gray-100);
  padding-left: 1.75rem;
}
.precision-module-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.precision-module-content p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 0.625rem;
  max-width: 580px;
}

.precision-module-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .precision-module {
    grid-template-columns: 1fr;
  }
  .precision-module-num {
    display: none;
  }
  .precision-module-content {
    border-left: none;
    padding: 1.25rem;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--anthracite-dark);
  padding: 3.5rem 0 2rem;
  color: rgba(255,255,255,0.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.8125rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: rgba(255,255,255,0.8);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  transition: color var(--duration) var(--ease);
}
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* ============================================================
   PREMIUM MOTION SYSTEM
   Scroll Reveal · Staffelung · Richtungsvarianten
   Sektionsübergänge · Micro-Interactions
   ============================================================ */

/* --- Basis-Reveal ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  will-change: auto;
}

/* --- Richtungsvarianten ---------------------------------- */
.reveal-left {
  transform: translateX(-20px) translateY(0);
}
.reveal-left.visible { transform: translateX(0); }

.reveal-right {
  transform: translateX(20px) translateY(0);
}
.reveal-right.visible { transform: translateX(0); }

.reveal-scale {
  transform: translateY(16px) scale(0.98);
}
.reveal-scale.visible { transform: translateY(0) scale(1); }

.reveal-none {
  transform: none;
}
.reveal-none.visible { transform: none; }

/* --- Staffelungs-Delays ---------------------------------- */
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.48s; }

/* --- Hero-spezifisch: längere Dauer für Einstieg --------- */
.hero .reveal {
  transition-duration: 0.85s;
  transition-timing-function: cubic-bezier(0.22, 0.1, 0.36, 1);
}
.hero .reveal-d1 { transition-delay: 0.12s; }
.hero .reveal-d2 { transition-delay: 0.22s; }
.hero .reveal-d3 { transition-delay: 0.32s; }
.hero .reveal-d4 { transition-delay: 0.42s; }

/* --- Premium-Sektion: kontrollierter, diskreter ---------- */
.section-premium .reveal {
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.30, 1);
}
.section-premium .reveal-d1 { transition-delay: 0.10s; }
.section-premium .reveal-d2 { transition-delay: 0.20s; }
.section-premium .reveal-d3 { transition-delay: 0.30s; }

/* --- Kontakt-Sektion: ruhiger Abschluss ------------------ */
.section-contact .reveal {
  transition-duration: 0.75s;
}

/* --- Sektions-Übergangs-Klasse (via JS Observer) --------- */
.section-in-view { /* Platzhalter für spätere Erweiterungen */ }

/* --- Header-Scroll-Fortschritt über CSS Custom Property -- */
.header {
  --scroll-progress: 0;
}
.header.scrolled::after {
  opacity: calc(1 - var(--scroll-progress, 0));
}

/* ============================================================
   MICRO-INTERACTIONS
   Buttons · Karten · Navigation · Formulare
   ============================================================ */

/* Buttons — präzise Hover-/Active-States */
.btn {
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}
.btn:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.1s;
}

/* Button Success State */
.btn-success {
  background: var(--success) !important;
  color: #fff !important;
  pointer-events: none;
}

/* Nav-Links — edle Hover-Transition */
.nav-link {
  transition:
    color var(--duration) var(--ease),
    background var(--duration) var(--ease);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--navy);
  transition: width 0.3s var(--ease), left 0.3s var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
  left: 20%;
}

/* Karten — verfeinerte Hover-Transitions */
.card,
.capability-item,
.precision-module,
.premium-card,
.services-nav-item {
  transition:
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    background var(--duration) var(--ease);
}

/* Services Navigator — Pfeil-Animation */
.services-nav-arrow {
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.services-nav-item:hover .services-nav-arrow {
  opacity: 0.6;
  transform: translateX(3px);
}

/* Badge-Chips — subtiler Hover */
.badge {
  transition:
    background var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}
.badge:hover {
  background: rgba(27, 32, 68, 0.08);
  border-color: rgba(27, 32, 68, 0.15);
}

/* Quality-Bar Items — leichter Hover */
.quality-bar-item {
  transition: transform var(--duration) var(--ease);
}
.quality-bar-item:hover {
  transform: translateY(-1px);
}

/* Formular-Felder — Fokus-Transition */
.form-group input,
.form-group textarea {
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

/* Formular-Fehler-Styles */
.form-error {
  color: var(--error);
  font-size: 0.75rem;
  display: block;
  margin-top: 0.25rem;
  animation: formErrorIn 0.3s var(--ease);
}
@keyframes formErrorIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.08);
}

/* Contact-Detail Links */
.contact-detail {
  transition: transform var(--duration) var(--ease);
}
.contact-detail:hover {
  transform: translateX(3px);
}

/* ============================================================
   RESPONSIVE MOTION
   Mobile: reduzierte Distanzen, kürzere Dauer, weniger Staffelung
   Tablet: moderate Reduktion
   ============================================================ */
@media (max-width: 1024px) {
  .reveal {
    transform: translateY(18px);
    transition-duration: 0.6s;
  }
  .reveal-left { transform: translateX(-14px) translateY(0); }
  .reveal-right { transform: translateX(14px) translateY(0); }
  .reveal-scale { transform: translateY(12px) scale(0.985); }

  /* Reduzierte Staffelung */
  .reveal-d3 { transition-delay: 0.20s; }
  .reveal-d4 { transition-delay: 0.25s; }
  .reveal-d5 { transition-delay: 0.30s; }
  .reveal-d6 { transition-delay: 0.35s; }
}

@media (max-width: 768px) {
  .reveal {
    transform: translateY(14px);
    transition-duration: 0.5s;
  }
  .reveal-left,
  .reveal-right {
    transform: translateY(12px);
  }
  .reveal-scale { transform: translateY(10px) scale(0.99); }

  /* Mobile: stärkere Delay-Reduktion */
  .reveal-d1 { transition-delay: 0.05s; }
  .reveal-d2 { transition-delay: 0.10s; }
  .reveal-d3 { transition-delay: 0.15s; }
  .reveal-d4 { transition-delay: 0.18s; }
  .reveal-d5 { transition-delay: 0.20s; }
  .reveal-d6 { transition-delay: 0.22s; }

  /* Hero mobile: kürzer */
  .hero .reveal {
    transition-duration: 0.6s;
  }
  .hero .reveal-d1 { transition-delay: 0.08s; }
  .hero .reveal-d2 { transition-delay: 0.14s; }
  .hero .reveal-d3 { transition-delay: 0.20s; }
  .hero .reveal-d4 { transition-delay: 0.24s; }

  /* Kein Transform-Hover auf Touch-Geräten */
  .card:hover,
  .capability-item:hover,
  .premium-card:hover {
    transform: none;
  }

  /* Nav-Link Underline deaktivieren auf Mobile */
  .nav-link::after { display: none; }
}

/* ============================================================
   REDUCED MOTION
   Respektiert prefers-reduced-motion vollständig.
   Alle Inhalte sofort sichtbar, keine Transform-Animation.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-none {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .btn,
  .card,
  .capability-item,
  .precision-module,
  .premium-card,
  .services-nav-item,
  .badge,
  .quality-bar-item,
  .contact-detail {
    transition: none;
  }

  .nav-link::after { transition: none; }
  .services-nav-arrow { transition: none; }
  .form-error { animation: none; }
  .header { transition: none; }
}

/* ============================================================
   SUBPAGES
   ============================================================ */
.page-content {
  padding-top: calc(var(--header-h) + 3.5rem);
  padding-bottom: 5rem;
  min-height: 55vh;
}
.page-content h1 { margin-bottom: 2rem; }
.page-content h2 { font-size: 1.375rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.page-content h3 { font-size: 1.125rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.page-content p, .page-content li { font-size: 0.9375rem; line-height: 1.7; }
.page-content ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.page-content li { margin-bottom: 0.375rem; }
.page-content a { text-decoration: underline; }

/* ============================================================
   PAGE HERO — Subpage Entry Area
   ============================================================ */
.page-hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 3.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27,32,68,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,32,68,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-overline {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-500);
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.page-hero .intro {
  max-width: var(--max-w-text);
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ============================================================
   CONTACT SECTION — Enhanced Trust & Inquiry Module
   ============================================================ */
.contact-trust-bar {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.contact-trust-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}
.contact-inquiry-hints {
  margin-top: 2rem;
}
.contact-inquiry-hints-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}
.contact-inquiry-hint {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.contact-inquiry-hint svg {
  width: 14px;
  height: 14px;
  opacity: 0.45;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .contact-trust-bar { flex-direction: column; gap: 0.75rem; }
}

/* ============================================================
   FOOTER — Enhanced 4-Column Layout
   ============================================================ */
.footer-grid-4 {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-address {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}
.footer-address strong {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}
.footer-address a {
  color: rgba(255,255,255,0.5);
  transition: color var(--duration) var(--ease);
}
.footer-address a:hover { color: rgba(255,255,255,0.9); }
.footer-meta {
  display: flex;
  gap: 2rem;
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
}
@media (max-width: 1024px) {
  .footer-grid-4 { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 640px) {
  .footer-grid-4 { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   CONTACT PAGE — Premium Standalone
   ============================================================ */
.contact-page-body {
  padding: 4rem 0 5rem;
}
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: start;
}
.contact-direct-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.contact-method:first-of-type { border-top: 1px solid var(--gray-200); }
.contact-method-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method-icon svg {
  width: 18px;
  height: 18px;
  color: var(--navy);
}
.contact-method-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}
.contact-method-value {
  font-size: 1rem;
  color: var(--anthracite);
  font-weight: 500;
}
.contact-method-value a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.contact-method-value a:hover { color: var(--navy-hover); }
.contact-company-card {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}
.contact-company-card h3 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500);
  margin-bottom: 1rem;
}
.contact-company-data {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--gray-700);
}
.contact-company-data strong {
  color: var(--anthracite);
  font-weight: 600;
}
.contact-form-standalone {
  background: var(--white-pure);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.contact-form-standalone h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.375rem;
}
.contact-form-standalone .form-subtitle {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.contact-availability {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.contact-availability-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}
.contact-availability p {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .contact-page-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form-standalone { padding: 1.5rem; }
}

/* ============================================================
   IMPRESSUM PAGE — Premium Legal Layout
   ============================================================ */
.legal-body {
  padding: 3.5rem 0 5rem;
}
.legal-primary-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 3rem;
}
.legal-data-group h3 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500);
  margin-bottom: 1rem;
}
.legal-data-group p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--gray-700);
}
.legal-data-group a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.legal-data-group a:hover { color: var(--navy-hover); text-decoration: underline; }
.legal-divider {
  width: 100%;
  height: 1px;
  background: var(--gray-200);
  margin: 2.5rem 0;
}
.legal-section {
  margin-bottom: 2.5rem;
}
.legal-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.legal-section p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a {
  color: var(--navy);
  text-decoration: underline;
}
.legal-meta {
  font-size: 0.75rem;
  color: var(--gray-500);
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}
@media (max-width: 768px) {
  .legal-primary-card { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem; }
}

/* ============================================================
   PRIVACY PAGE — Premium Legal Content System
   ============================================================ */
.privacy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3.5rem;
  padding: 3.5rem 0 5rem;
  align-items: start;
}
.privacy-content {
  max-width: 760px;
}

/* --- Privacy Table of Contents (Sidebar) --- */
.privacy-toc {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.privacy-toc-title {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-400);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.privacy-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.privacy-toc-list li {
  margin-bottom: 0;
}
.privacy-toc-list a {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  text-decoration: none;
  padding: 0.3rem 0;
  line-height: 1.5;
  transition: color var(--duration) var(--ease);
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
}
.privacy-toc-list a:hover {
  color: var(--navy);
}
.privacy-toc-list a.active {
  color: var(--navy);
  border-left-color: var(--navy);
  font-weight: 600;
}

/* --- Privacy Sections --- */
.privacy-section {
  margin-bottom: 3rem;
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.privacy-section-num {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}
.privacy-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.875rem;
  line-height: 1.35;
}
.privacy-section p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}
.privacy-section p:last-child { margin-bottom: 0; }
.privacy-section a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.privacy-section li {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--gray-700);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.25rem;
}
.privacy-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gray-300);
}

/* --- Privacy Info Box --- */
.privacy-info-box {
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
}
.privacy-info-box p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 0;
}
.privacy-info-box strong {
  color: var(--gray-800);
}

/* --- Privacy Responsible Card --- */
.privacy-responsible-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin: 1rem 0 0.75rem;
}
.privacy-responsible-card p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 0;
}
.privacy-responsible-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

/* --- Privacy Rights Grid --- */
.privacy-rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.privacy-right-item {
  padding: 1rem 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white-pure);
}
.privacy-right-item h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.privacy-right-item p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* --- Cookie Declaration Container --- */
.cookie-declaration-container {
  margin: 1.5rem 0;
  padding: 2rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  min-height: 120px;
}
.cookie-declaration-placeholder {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.8125rem;
  padding: 2rem 0;
}
.cookie-declaration-placeholder svg {
  display: block;
  margin: 0 auto 0.75rem;
  width: 32px;
  height: 32px;
  opacity: 0.4;
}

/* --- Privacy Section Divider --- */
.privacy-divider {
  width: 100%;
  height: 1px;
  background: var(--gray-200);
  margin: 0 0 3rem 0;
}

/* --- Privacy Footer Meta --- */
.privacy-meta {
  font-size: 0.75rem;
  color: var(--gray-500);
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  line-height: 1.7;
}

/* --- Cookie Settings Button --- */
.cookie-settings-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: var(--font);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0;
  transition: color var(--duration) var(--ease);
  text-decoration: none;
  display: inline-block;
}
.cookie-settings-btn:hover {
  color: rgba(255,255,255,0.9);
}

/* --- Privacy Page Responsive --- */
@media (max-width: 1024px) {
  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .privacy-toc {
    position: static;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
  }
  .privacy-toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
  }
  .privacy-toc-list a {
    border-left: none;
    padding-left: 0;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
  }
  .privacy-toc-list a.active {
    background: var(--gray-100);
    border-left: none;
  }
}
@media (max-width: 768px) {
  .privacy-layout { padding: 2.5rem 0 4rem; }
  .privacy-responsible-card { grid-template-columns: 1fr; gap: 1.25rem; }
  .privacy-rights-grid { grid-template-columns: 1fr; }
  .cookie-declaration-container { padding: 1.25rem; }
  .privacy-toc { display: none; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ============================================================
   FORMULAR-STATES (Prompt 10 — Live-Integration)
   Honeypot, Turnstile, Loading, Success, Error
   ============================================================ */

/* --- Honeypot-Feld (unsichtbar für Menschen) --- */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}

/* --- Turnstile Widget Container --- */
.form-turnstile {
  margin: 0.75rem 0 0.25rem;
}
.form-turnstile-hint {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
  line-height: 1.4;
}
.form-turnstile-error {
  color: #c53030;
}

/* --- Formular-Statusmeldungen --- */
.form-status {
  display: none;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0.75rem 0;
}
.form-status-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.form-status-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --- Feld-Fehler --- */
.form-error {
  display: block;
  font-size: 0.75rem;
  color: #c53030;
  margin-top: 0.375rem;
  line-height: 1.4;
}
input.error,
textarea.error,
select.error {
  border-color: #c53030;
  box-shadow: 0 0 0 2px rgba(197, 48, 48, 0.12);
}

/* --- Submit-Button Zustände --- */
.btn-submit {
  position: relative;
}
.btn-submit .btn-submit-loading {
  display: none;
  align-items: center;
  gap: 0.5rem;
}
.btn-submit.btn-loading .btn-submit-text,
.btn-submit.btn-loading .btn-icon {
  display: none;
}
.btn-submit.btn-loading .btn-submit-loading {
  display: inline-flex;
}
.btn-submit.btn-loading {
  opacity: 0.75;
  cursor: wait;
}

/* --- Spinner-Animation --- */
.spinner {
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Erfolgs-State --- */
.btn-submit.btn-success {
  background: #166534;
  border-color: #166534;
}
.btn-submit.btn-success .btn-submit-text::before {
  content: '✓ ';
}

/* --- Turnstile Responsive --- */
@media (max-width: 480px) {
  .form-turnstile {
    margin: 0.5rem 0;
  }
  .cf-turnstile {
    transform: scale(0.9);
    transform-origin: left top;
  }
}
