/* ============================================================
   Kleinesdar Wärmetechnik – Apple-Style CSS
   Design System: Apple-inspired, Industrial accent
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  /* Farben */
  --color-white:      #FFFFFF;
  --color-bg-light:   #F5F5F7;
  --color-bg-dark:    #090D14;
  --color-text:       #1D1D1F;
  --color-text-muted: #6E6E73;
  --color-border:     #D2D2D7;
  --color-blue:       #DA251C;
  --color-blue-hover: #C41F17;
  --color-blue-light: #FDECEA;
  --color-orange:     #E8750A;
  --color-green:      #34C759;

  /* Typografie */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Abstände */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-xxl: 7rem;

  /* Radien */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Übergänge */
  --transition-base: 0.26s cubic-bezier(0.42, 0, 0.58, 1);
  --transition-fast: 0.16s ease;

  /* Nav-Höhe */
  --nav-h: 64px;

  /* Schatten */
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul { list-style: none; }

address { font-style: normal; }

/* ============================================================
   Layout Helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-xxl) 0;
}

.bg-light { background: var(--color-bg-light); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   Scroll-Fade Animations (Intersection Observer)
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger-Delay für Grid-Kinder */
.services-grid .service-card:nth-child(1),
.products-grid .product-card:nth-child(1)  { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2),
.products-grid .product-card:nth-child(2)  { transition-delay: 0.10s; }
.services-grid .service-card:nth-child(3),
.products-grid .product-card:nth-child(3)  { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(4),
.products-grid .product-card:nth-child(4)  { transition-delay: 0.20s; }
.services-grid .service-card:nth-child(5),
.products-grid .product-card:nth-child(5)  { transition-delay: 0.25s; }
.services-grid .service-card:nth-child(6),
.products-grid .product-card:nth-child(6)  { transition-delay: 0.30s; }
.products-grid .product-card:nth-child(7)  { transition-delay: 0.12s; }
.products-grid .product-card:nth-child(8)  { transition-delay: 0.18s; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.8em 1.7em;
  border-radius: 980px;
  font-family: var(--font-system);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-align: center;
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--color-blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-blue-hover);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 113, 227, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
  transform: translateY(-1px);
}

.btn-full { width: 100%; }

/* ============================================================
   Navigation – Glassmorphism
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.nav-logo .logo-icon { width: 28px; height: 28px; }
.logo-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.footer-brand .logo-img { width: 64px; height: 64px; }
.nav-logo .logo-text {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.nav-links a:hover { color: var(--color-blue); }

.nav-cta {
  background: var(--color-blue) !important;
  color: #fff !important;
  padding: 0.45em 1.1em;
  border-radius: 980px;
  font-weight: 500 !important;
}
.nav-cta:hover {
  background: var(--color-blue-hover) !important;
  color: #fff !important;
}

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--transition-fast);
}
.nav-toggle:hover { background: var(--color-bg-light); }
.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) var(--space-lg) 4rem;
  background: linear-gradient(160deg, #0A0F1E 0%, #0D1525 45%, #0E1830 100%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 160, 255, 0.85);
  margin-bottom: 1.2rem;
  transition-delay: 0s;
}

.hero-headline {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.04;
  color: #FFFFFF;
  margin-bottom: 1.4rem;
  transition-delay: 0.1s;
  color: #FFFFFF;
}

.hero-subline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(210, 225, 255, 0.72);
  line-height: 1.65;
  margin-bottom: 2.4rem;
  transition-delay: 0.2s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  transition-delay: 0.3s;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.35);
  z-index: 1;
  animation: scrollFloat 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transition: color var(--transition-fast);
}
.hero-scroll-hint:hover { color: rgba(255,255,255,0.65); }
.hero-scroll-hint svg { width: 28px; height: 28px; }

@keyframes scrollFloat {
  0%   { transform: translateX(-50%) translateY(0);   animation-timing-function: cubic-bezier(0.4, 0, 1, 1); }
  55%  { transform: translateX(-50%) translateY(8px); animation-timing-function: cubic-bezier(0, 0, 0.4, 1); }
  100% { transform: translateX(-50%) translateY(0); }
}

/* Desktop-only line break */
.br-desktop { display: none; }

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}

.stats-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.4rem var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  padding: 0.6rem 2.5rem;
  transition-delay: 0.1s;
}
.stat:nth-child(3) { transition-delay: 0.2s; }
.stat:nth-child(5) { transition-delay: 0.3s; }
.stat:nth-child(7) { transition-delay: 0.4s; }

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-plus {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-blue);
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  align-self: center;
  flex-shrink: 0;
}

/* ============================================================
   Über uns / About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-text {
  transition-delay: 0.05s;
}
.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.55;
  margin-bottom: 1.2rem;
}
.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.72;
}
.about-text .btn { margin-top: var(--space-sm); }

/* Timeline */
.about-timeline {
  transition-delay: 0.15s;
}
.timeline-item {
  display: flex;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  position: relative;
}
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 40px;
  top: 2.2rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-border), transparent);
}
.timeline-year {
  flex-shrink: 0;
  width: 80px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: 0.03em;
  padding-top: 0.25rem;
  text-align: right;
}
.timeline-body h4 {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}
.timeline-body p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   Leistungen / Services Grid
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base);
  will-change: transform;
}
.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--color-blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  padding: 11px;
  color: var(--color-blue);
  transition: background var(--transition-fast);
}
.service-card:hover .service-icon { background: var(--color-blue); color: #fff; }
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   Flansch Animation Section
   ============================================================ */
.anim-section {
  background: linear-gradient(180deg, #0A0F1E 0%, #0D1420 100%);
  color: #fff;
}
.anim-section .section-eyebrow { color: rgba(100, 180, 255, 0.9); }
.anim-section .section-title { color: #fff; }
.anim-section .section-subtitle { color: rgba(200, 215, 240, 0.65); }

.anim-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: center;
}

/* SVG Stage */
.flansch-stage {
  position: relative;
  transition-delay: 0.05s;
}

.flansch-svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ---- Flansch CSS Animation (12s loop) ---- */

/* Phase 1 (0-25%): Flansch slides in */
.flansch-assembly {
  will-change: transform, opacity;
  animation: flanschSlideIn 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  transform-box: fill-box;
  transform-origin: center center;
}

@keyframes flanschSlideIn {
  0%   { transform: translateX(160px); opacity: 0; }
  6%   { opacity: 1; }
  22%  { transform: translateX(0);     opacity: 1; }
  100% { transform: translateX(0);     opacity: 1; }
}

/* Phase 2 (27-60%): Ring heats up */
.flansch-ring-outer {
  will-change: fill, opacity;
  animation: flanschRingHeat 12s ease-in-out infinite;
}

@keyframes flanschRingHeat {
  0%, 26%  { fill: url(#flanschSteelGrad); }
  34%      { fill: #993300; }
  44%      { fill: #CC4400; }
  52%      { fill: #884400; }
  62%      { fill: url(#flanschSteelGrad); }
  100%     { fill: url(#flanschSteelGrad); }
}

/* Heat glow overlay */
.heat-glow-overlay {
  will-change: opacity;
  animation: heatGlowAnim 12s ease-in-out infinite;
  filter: url(#heatGlowFilter);
  mix-blend-mode: screen;
}

@keyframes heatGlowAnim {
  0%, 26%  { opacity: 0; }
  34%      { opacity: 0.55; }
  44%      { opacity: 0.75; }
  52%      { opacity: 0.45; }
  62%      { opacity: 0; }
  100%     { opacity: 0; }
}

/* Heating tube elements – glow red during heat phase */
.heater-tube {
  will-change: fill, stroke;
  animation: heaterTubeGlow 12s ease-in-out infinite;
}
.heater-core {
  will-change: fill;
  animation: heaterCoreGlow 12s ease-in-out infinite;
}

@keyframes heaterTubeGlow {
  0%, 26%  { fill: #1A2835; stroke: #3A5268; }
  36%      { fill: #6B2000; stroke: #CC4400; }
  48%      { fill: #8B2800; stroke: #FF6600; }
  58%      { fill: #6B2000; stroke: #AA3300; }
  66%      { fill: #1A2835; stroke: #3A5268; }
  100%     { fill: #1A2835; stroke: #3A5268; }
}
@keyframes heaterCoreGlow {
  0%, 26%  { fill: #2A3C4C; }
  36%      { fill: #FF4400; }
  48%      { fill: #FF7700; }
  58%      { fill: #CC3300; }
  66%      { fill: #2A3C4C; }
  100%     { fill: #2A3C4C; }
}

/* Phase 3 (63-78%): Bolts tighten */
.bolt-hole {
  will-change: fill, stroke;
  animation: boltTighten 12s ease-in-out infinite;
}
.bolt-head {
  will-change: fill;
  animation: boltHeadTighten 12s ease-in-out infinite;
}

@keyframes boltTighten {
  0%, 62%  { fill: #060A10; stroke: #2A3C4C; }
  66%      { fill: #221800; stroke: #FFB800; }
  70%      { fill: #181000; stroke: #FFD700; }
  74%      { fill: #221800; stroke: #FFAA00; }
  79%      { fill: #060A10; stroke: #2A3C4C; }
  100%     { fill: #060A10; stroke: #2A3C4C; }
}
@keyframes boltHeadTighten {
  0%, 62%  { fill: #5A6E7E; }
  66%      { fill: #FFB800; filter: url(#boltGlow); }
  70%      { fill: #FFD700; }
  74%      { fill: #FFAA00; }
  79%      { fill: #5A6E7E; filter: none; }
  100%     { fill: #5A6E7E; }
}

/* Phase 4 (80-96%): Success / installed */
.success-glow-overlay {
  will-change: opacity;
  animation: successGlowAnim 12s ease-in-out infinite;
  filter: url(#successGlowFilter);
  mix-blend-mode: screen;
}

@keyframes successGlowAnim {
  0%, 79%  { opacity: 0; }
  85%      { opacity: 0.85; }
  93%      { opacity: 0.65; }
  97%      { opacity: 0; }
  100%     { opacity: 0; }
}

/* Phase indicators */
.phase-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}
.phase-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: default;
}
.phase-dot-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background var(--transition-base), transform var(--transition-base);
}
.phase-dot.active .phase-dot-pip {
  background: var(--color-blue);
  transform: scale(1.3);
}
.phase-dot-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.phase-dot.active .phase-dot-label {
  color: rgba(255, 255, 255, 0.85);
}

/* Animation Info Sidebar */
.anim-info {
  transition-delay: 0.15s;
}
.anim-info h3 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #fff;
  margin-bottom: var(--space-md);
}

.feature-list {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(200, 215, 240, 0.8);
  line-height: 1.45;
}
.check-ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-blue);
}

/* ============================================================
   Produkte / Products Grid
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base);
  will-change: transform;
}
.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: transparent;
}

.product-card-highlight {
  background: linear-gradient(135deg, var(--color-blue-light) 0%, #EAF4FF 100%);
  border-color: rgba(0, 113, 227, 0.2);
}
.product-card-highlight:hover {
  border-color: var(--color-blue);
}

.product-icon {
  width: 40px;
  height: 40px;
  color: var(--color-blue);
  flex-shrink: 0;
}
.product-icon svg { width: 100%; height: 100%; }
.product-card:hover .product-icon { color: var(--color-orange); }
.product-card-highlight:hover .product-icon { color: var(--color-blue); }

.product-card-body { flex: 1; }
.product-card-body h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.product-card-body p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.product-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15em 0.55em;
  border-radius: 4px;
  margin-top: 0.5rem;
  letter-spacing: 0.06em;
}
.ex-tag  { background: #FFF0E0; color: var(--color-orange); }
.new-tag { background: #E8F5E9; color: #2E7D32; }

.ex-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1em 0.45em;
  border-radius: 4px;
  background: #FFF0E0;
  color: var(--color-orange);
  margin-left: 0.3em;
  letter-spacing: 0.04em;
}

.product-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}
.product-link:hover { color: var(--color-blue-hover); text-decoration: underline; }

/* ============================================================
   Kontakt / Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition-delay: 0.05s;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.01em;
}
.required { color: var(--color-blue); }

.form-group input,
.form-group textarea {
  font-family: var(--font-system);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7em 0.95em;
  width: 100%;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #AEAEB2;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #FF3B30;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.25rem;
}

.form-group .field-error {
  border-color: #FF3B30;
}

/* Sende-Status unter dem Formular (Erfolg/Fehler) */
.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
}

.form-status.ok    { color: #1d804a; }
.form-status.error { color: #c0392b; }

/* Honeypot-Feld: fuer Menschen unsichtbar, Bots fuellen es aus */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact info column */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition-delay: 0.15s;
}

.contact-addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.address-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.address-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.address-card h4 svg { color: var(--color-blue); flex-shrink: 0; }

.address-card address {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.address-card address strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.sales-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-top: 0.35rem;
}
.contact-detail a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}
.contact-detail a:hover { text-decoration: underline; }
.contact-detail svg { flex-shrink: 0; }

/* Map */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
}
.map-container iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: none;
}
.map-link {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-blue);
  background: var(--color-bg-light);
  text-align: right;
  text-decoration: none;
}
.map-link:hover { text-decoration: underline; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--color-bg-dark);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-brand .logo-icon { width: 32px; height: 32px; }
.footer-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}
.footer-slogan {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.5rem;
}
.footer-nav a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-nav a:hover { color: rgba(255, 255, 255, 0.9); }

.footer-copy {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.28);
  margin-top: var(--space-sm);
}

/* ============================================================
   Responsive – 1200px
   ============================================================ */
@media (min-width: 1200px) {
  .br-desktop { display: inline; }
}

/* ============================================================
   Responsive – 992px
   ============================================================ */
@media (max-width: 992px) {
  :root { --space-xxl: 5rem; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .anim-wrapper  { grid-template-columns: 1fr; }
  .anim-info     { order: -1; }
  .about-grid    { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
}

/* ============================================================
   Responsive – 768px (Tablet/Mobile Breakpoint)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-xxl: 4rem;
    --space-xl:  2.5rem;
  }

  /* Nav mobile */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--space-lg) 1.5rem;
    gap: 0.2rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--transition-base),
      opacity var(--transition-base);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    border-bottom: none !important;
    border-radius: 980px !important;
    padding: 0.7em 1.2em !important;
  }

  /* Hero */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }

  /* Stats */
  .stats-inner { gap: 0; }
  .stat { padding: 0.8rem 1.4rem; }
  .stat-sep { height: 28px; }

  /* Grids */
  .services-grid        { grid-template-columns: 1fr; }
  .products-grid        { grid-template-columns: repeat(2, 1fr); }
  .about-grid           { gap: var(--space-lg); }
  .contact-addresses    { grid-template-columns: 1fr; }
  .form-row             { grid-template-columns: 1fr; }
}

/* ============================================================
   Responsive – 480px (Small Mobile)
   ============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .products-grid { grid-template-columns: 1fr; }
  .stats-inner   { flex-direction: column; align-items: center; }
  .stat-sep      { width: 40px; height: 1px; }
  .phase-dots    { gap: var(--space-md); }
  .section-title { font-size: 1.8rem; }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .nav, .hero-scroll-hint, .anim-section, .map-container { display: none; }
  .hero { min-height: auto; background: none; color: #000; }
  .hero-headline { -webkit-text-fill-color: #000; background: none; }
}

/* ============================================================
   Produkt-Modal
   ============================================================ */
.product-card { cursor: pointer; }
.product-card:hover { box-shadow: var(--shadow-card-hover); }

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-modal[hidden] { display: none; }

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-modal-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: min(560px, 90vw);
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  animation: modalIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.product-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-bg-light);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.product-modal-close:hover { background: var(--color-blue); color: #fff; }
.product-modal-img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.product-modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}
