@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* CI-Farben Tagliavia */
  --ci-blue:        #2596be;
  --ci-blue-dark:   #1a6e8e;
  --ci-blue-darker: #0d4a60;
  --ci-gray:        #929292;
  --ci-white:       #fefefe;

  /* Dunkle Farben (Hero, Footer) */
  --dark:           #2d3a47;
  --dark-2:         #243039;
  --dark-3:         #1b242c;
  --darker:         #141b21;

  /* Light & UI */
  --bg:             #ffffff;
  --bg-soft:        #f6f8fa;
  --bg-softer:      #fafbfc;
  --text:           #1f2933;
  --text-soft:      #52606d;
  --text-muted:     #7b8794;
  --border:         #e4e7eb;
  --border-soft:    #f0f2f5;
}

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

html { scroll-behavior: smooth; }

/* Lenis Smooth Scroll Setup */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ════════════════ Container ════════════════ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-sm { max-width: 880px; }

/* ════════════════ Navigation ════════════════ */
nav {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s, padding 0.3s;
}
nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  gap: 2rem;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
  transition: transform 0.25s;
}
.nav-logo:hover .nav-logo-img { transform: scale(1.03); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-link {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--dark);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--text); font-weight: 600; }
.nav-link.active::after { width: 100%; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}
.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-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border-soft);
  padding: 1rem 1.5rem 1.5rem;
}
#mobile-menu.open { display: block; animation: slideDown 0.3s ease; }
#mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
}
#mobile-menu a:last-child { border-bottom: none; margin-top: 0.75rem; text-align: center; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ════════════════ Buttons ════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  font-family: inherit;
  white-space: nowrap;
}
.btn i, .btn svg { transition: transform 0.25s; }
.btn:hover i, .btn:hover svg { transform: translateX(3px); }

.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover { background: var(--dark-2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(45,58,71,0.25); }

.btn-light {
  background: #fff;
  color: var(--dark);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--dark); background: var(--dark); color: #fff; }

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* ════════════════ Hero (Pages) ════════════════ */
.page-hero {
  position: relative;
  background: var(--dark-2);
  color: #fff;
  overflow: hidden;
  padding: 6rem 0 5rem;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: -10% 0 -10% 0;
  background: url('../assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
  filter: grayscale(0.4);
  z-index: 0;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(36,48,57,0.92) 0%, rgba(45,58,71,0.85) 100%);
  z-index: 0;
}
.page-hero-watermark {
  position: absolute;
  right: 24px;
  bottom: 20px;
  width: 240px;
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
}
.page-hero-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.9rem;
  display: inline-block;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.1rem;
  max-width: 700px;
  letter-spacing: -0.02em;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  line-height: 1.65;
}

/* ════════════════ Homepage Hero ════════════════ */
.hero {
  position: relative;
  background: var(--dark-2);
  color: #fff;
  overflow: hidden;
  padding: 7rem 0 8rem;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -15% 0 -15% 0;
  background: url('../assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.28;
  filter: grayscale(0.2);
  z-index: 0;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(36,48,57,0.88) 0%, rgba(45,58,71,0.78) 100%);
  z-index: 0;
}
.hero-watermark {
  position: absolute;
  right: 24px;
  bottom: 20px;
  width: 300px;
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(255,255,255,0.25);
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.3rem;
  letter-spacing: -0.025em;
}
.hero h1 .accent { color: var(--ci-blue); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ════════════════ Sections ════════════════ */
section { padding: 5.5rem 0; }
section.bg-soft { background: var(--bg-soft); }
section.bg-dark { background: var(--dark-2); color: #fff; }
section.bg-dark .section-title { color: #fff; }
section.bg-dark .section-sub { color: rgba(255,255,255,0.7); }

.section-head { text-align: center; margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
section.bg-dark .section-label { color: rgba(255,255,255,0.6); }
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ════════════════ Cards ════════════════ */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 14px rgba(0,0,0,0.04);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s, border-color 0.3s;
  border: 1px solid var(--border-soft);
  height: 100%;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06), 0 18px 40px rgba(0,0,0,0.08);
  border-color: var(--border);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.3rem;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.card:hover .card-icon {
  background: var(--dark);
  color: #fff;
  transform: scale(1.05);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.card p {
  font-size: 0.93rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ════════════════ Grids ════════════════ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-split { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* ════════════════ Check List ════════════════ */
.check-list { list-style: none; }
.check-list li {
  padding: 0.55rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.93rem;
  color: var(--text-soft);
}
.check-list li i {
  color: var(--ci-blue);
  margin-top: 4px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ════════════════ Timeline ════════════════ */
.timeline {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  box-shadow: 0 0 0 4px #fff, 0 2px 8px rgba(0,0,0,0.1);
}
.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.timeline-text {
  font-size: 0.93rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ════════════════ Values Cards ════════════════ */
.value-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.85rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border-soft);
  transition: all 0.3s;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.55rem;
}
.value-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ════════════════ Team ════════════════ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .team-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; } }

.team-card {
  text-align: center;
}
.team-photo-wrap {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--bg-soft);
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,.8,.3,1);
}
.team-card:hover .team-photo { transform: scale(1.05); }
.team-avatar-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark-2), var(--dark));
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.team-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ════════════════ Partner Badges (Hersteller-Strip auf Home) ════════════════ */
.partner-strip {
  background: #fff;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.partner-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  justify-content: center;
  align-items: center;
}
.partner-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  opacity: 0.7;
  transition: opacity 0.25s, color 0.25s;
}
.partner-name:hover { opacity: 1; color: var(--text); }

/* ════════════════ CTA Banner ════════════════ */
.cta-banner {
  position: relative;
  background: var(--dark-2);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
  border-top: 4px solid var(--ci-blue);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/reparatur-schweissen.jpg') center/cover no-repeat;
  opacity: 0.18;
  filter: grayscale(0.3);
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(36,48,57,0.88), rgba(45,58,71,0.82));
}
.cta-inner { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ════════════════ Footer ════════════════ */
footer {
  background: var(--darker);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 1.75rem;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

.footer-logo-img { width: 220px; max-width: 100%; margin-bottom: 1.5rem; opacity: 0.95; }
.footer-desc {
  font-size: 0.93rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
  max-width: 360px;
}
.footer-region {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}
.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.85rem;
  text-decoration: none;
}
.footer-contact-item i {
  color: rgba(255,255,255,0.5);
  width: 16px;
  margin-top: 4px;
  flex-shrink: 0;
}
a.footer-contact-item:hover { color: #fff; }
a.footer-contact-item:hover i { color: var(--ci-blue); }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
}
.footer-bar a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-left: 1.25rem;
  transition: color 0.2s;
}
.footer-bar a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 0;
  transition: background 0.2s, transform 0.2s;
}
.footer-social a:hover { background: var(--ci-blue); color: #fff; transform: translateY(-2px); }

/* ════════════════ Scroll-to-Top ════════════════ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--ci-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(37,150,190,0.4);
}

/* ════════════════ Scroll Animations – dramatisch & deutlich wahrnehmbar ════════════════ */
/* Premium-Effekt: opacity + translate + blur (focus pull) gleichzeitig */

.fade-in {
  opacity: 0;
  transform: translateY(60px);
  filter: blur(10px);
  transition:
    opacity 1.5s cubic-bezier(.22,.61,.36,1),
    transform 1.5s cubic-bezier(.22,.61,.36,1),
    filter 0.6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform, filter;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.fade-in-delay-1 { transition-delay: 0.22s; }
.fade-in-delay-2 { transition-delay: 0.44s; }
.fade-in-delay-3 { transition-delay: 0.66s; }
.fade-in-delay-4 { transition-delay: 0.88s; }
.fade-in-delay-5 { transition-delay: 1.10s; }

.slide-left {
  opacity: 0;
  transform: translateX(-70px);
  filter: blur(8px);
  transition:
    opacity 1.6s cubic-bezier(.22,.61,.36,1),
    transform 1.6s cubic-bezier(.22,.61,.36,1),
    filter 0.6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform, filter;
}
.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(70px);
  filter: blur(8px);
  transition:
    opacity 1.6s cubic-bezier(.22,.61,.36,1),
    transform 1.6s cubic-bezier(.22,.61,.36,1),
    filter 0.6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform, filter;
}
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.88);
  filter: blur(6px);
  transition:
    opacity 1.3s cubic-bezier(.22,.61,.36,1),
    transform 1.3s cubic-bezier(.22,.61,.36,1),
    filter 0.55s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform, filter;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* ════════════════ Stats Counter ════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ci-blue);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ════════════════ Service Detail Sections ════════════════ */
.service-card-lg {
  background: #fff;
  border-radius: 16px;
  padding: 2.25rem;
  border: 1px solid var(--border-soft);
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card-lg:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.service-card-lg .card-icon { margin-bottom: 1.5rem; }
.service-card-lg h3 { font-size: 1.25rem; margin-bottom: 0.85rem; }
.service-card-lg > p { margin-bottom: 1.25rem; flex: 1; }

/* ════════════════ Form ════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(45,58,71,0.08);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.success-msg {
  display: none;
  background: rgba(37,150,190,0.08);
  border: 1px solid rgba(37,150,190,0.2);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: var(--ci-blue-darker);
  font-size: 0.92rem;
  margin-top: 1rem;
}
.error-msg {
  display: none;
  background: rgba(200,50,50,0.06);
  border: 1px solid rgba(200,50,50,0.2);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: #8b2020;
  font-size: 0.92rem;
  margin-top: 1rem;
  line-height: 1.6;
}
.error-msg a { color: inherit; text-decoration: underline; }

/* ════════════════ Contact Info Cards ════════════════ */
.info-card {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 1.6rem 1.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  transition: background 0.2s;
}
.info-card:hover { background: #eef2f6; }
.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.info-card-label {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.info-card-value {
  font-size: 0.92rem;
  color: var(--text-soft);
  text-decoration: none;
  line-height: 1.6;
  display: block;
}
a.info-card-value:hover { color: var(--ci-blue); }

/* ════════════════ Job Card ════════════════ */
.job-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  transition: all 0.3s;
  max-width: 640px;
  margin: 0 auto;
}
.job-card:hover {
  border-color: var(--dark);
  box-shadow: 0 12px 32px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}
.job-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.job-tag {
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
}
.job-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.85rem;
}
.job-card .job-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ════════════════ Job Detail Boxes ════════════════ */
.job-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .job-info-grid { grid-template-columns: 1fr; } }
.job-info-box {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 1.2rem 1.35rem;
}
.job-info-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.job-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.benefit-chip {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
}
.benefit-chip i { color: var(--ci-blue); }

.req-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  font-size: 0.93rem;
  color: var(--text-soft);
}
.req-item i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ════════════════ Dark Section with Background Photos ════════════════ */
/* Stats bar on homepage */
.stats-photo-bg {
  position: relative;
  overflow: hidden;
}
.stats-photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/verbindungselemente.jpg') center/cover no-repeat;
  opacity: 0.09;
  filter: grayscale(0.5);
  z-index: 0;
}
.stats-photo-bg .container { position: relative; z-index: 1; }

/* Kompetenzen dark section on homepage */
.kompetenzen-photo-bg {
  position: relative;
  overflow: hidden;
}
.kompetenzen-photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/flyer-display.jpg') center/cover no-repeat;
  opacity: 0.08;
  filter: grayscale(0.5);
  z-index: 0;
}
.kompetenzen-photo-bg .container { position: relative; z-index: 1; }

/* Dark quote / testimonial section */
.quote-photo-bg {
  position: relative;
  overflow: hidden;
}
.quote-photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/tassen-buero.jpg') center/cover no-repeat;
  opacity: 0.08;
  filter: grayscale(0.6);
  z-index: 0;
}
.quote-photo-bg .container { position: relative; z-index: 1; }

/* ════════════════ Service Card with Photo Header ════════════════ */
.service-card-lg .card-img {
  margin: -2.25rem -2.25rem 1.75rem;
  height: 185px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  flex-shrink: 0;
}
.service-card-lg .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(.2,.8,.3,1);
  display: block;
}
.service-card-lg:hover .card-img img {
  transform: scale(1.06);
}

/* ════════════════ Hersteller-Vorteile ════════════════ */
.advantage-bg {
  position: relative;
  padding: 6rem 0;
  background: var(--dark-2);
  overflow: hidden;
}
.advantage-bg::before {
  display: none;
}
.advantage-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(36,48,57,0.85), rgba(45,58,71,0.78));
}
.advantage-bg .container { position: relative; z-index: 1; }
.advantage-bg .section-title,
.advantage-bg .section-sub { color: rgba(255,255,255,0.9); }
.advantage-bg .section-sub { color: rgba(255,255,255,0.7); }
.advantage-bg .section-label { color: rgba(255,255,255,0.6); }

.advantage-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  text-align: center;
}
.advantage-card .card-icon { margin: 0 auto 1.25rem; }
.advantage-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.advantage-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ════════════════ Image Block ════════════════ */
.img-block {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 5/4;
  background: var(--bg-soft);
}
.img-block img { width: 100%; height: 100%; object-fit: cover; }
.img-block-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-soft), var(--border));
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

/* ════════════════ Zertifizierungen – Zeilenformat ════════════════ */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cert-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.cert-row:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.cert-row-info {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.cert-row-info .card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}
.cert-row-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.cert-row-info p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
}
.cert-row-img {
  flex-shrink: 0;
  width: 160px;
}
.cert-row-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  pointer-events: none;
  user-select: none;
}
@media (max-width: 700px) {
  .cert-row { grid-template-columns: 1fr; }
  .cert-row-img { width: 140px; }
}

/* ════════════════ Zertifikats-Galerie ════════════════ */
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.cert-img-wrap {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  border: 1px solid var(--border);
  width: 100%;
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}
.cert-img-wrap:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,0.16);
  transform: translateY(-4px);
}
.cert-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(.2,.8,.3,1);
}
.cert-img-wrap:hover img {
  transform: scale(1.03);
}
.cert-overlay {
  position: absolute;
  inset: 0;
  background: rgba(36,48,57,0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transition: background 0.3s, opacity 0.3s;
}
.cert-img-wrap:hover .cert-overlay {
  background: rgba(36,48,57,0.45);
  opacity: 1;
}
.cert-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.45;
}

/* ════════════════ Legal Pages ════════════════ */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 0;
}
.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.25rem 0 0.75rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}
.legal-content p,
.legal-content ul,
.legal-content address {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 0.85rem;
  font-style: normal;
}
.legal-content a {
  color: var(--ci-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.legal-content a:hover { border-color: var(--ci-blue); }

/* ════════════════ Utility ════════════════ */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.divider-line {
  width: 48px;
  height: 3px;
  background: var(--ci-blue);
  border-radius: 2px;
  margin: 1rem auto 0;
}

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