/* =============================================
   Paul Herzog AG - Premium Website Redesign
   Farbpalette: Navy + Kupfer/Bronze + Warm Grau
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  /* Primary Colors */
  --navy: #0B1D3A;
  --navy-light: #132D5E;
  --navy-mid: #1A3A6E;

  /* Accent - Kupfer/Bronze */
  --copper: #B87333;
  --copper-light: #D4956A;
  --copper-dark: #8B5A2B;
  --copper-glow: #E8A862;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F7F5F2;
  --warm-gray: #E8E4DF;
  --mid-gray: #9B978F;
  --dark-gray: #3D3B37;
  --charcoal: #1E1D1B;

  /* Accent Colors */
  --water-blue: #4A90D9;
  --flame-orange: #E67E22;
  --success-green: #27AE60;
  --alert-red: #C0392B;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-width: 1280px;
  --container-narrow: 900px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(11, 29, 58, 0.06);
  --shadow-md: 0 4px 20px rgba(11, 29, 58, 0.1);
  --shadow-lg: 0 8px 40px rgba(11, 29, 58, 0.15);
  --shadow-copper: 0 4px 20px rgba(184, 115, 51, 0.2);
}

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

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

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

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--dark-gray);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--mid-gray);
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

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

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--navy p {
  color: rgba(255, 255, 255, 0.8);
}

.section--offwhite {
  background: var(--off-white);
}

.section--warm-gray {
  background: var(--warm-gray);
}

.text-center {
  text-align: center;
}

.text-copper {
  color: var(--copper);
}

.text-navy {
  color: var(--navy);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .overline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.section-header .overline::before,
.section-header .overline::after {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--copper);
}

.section-header p {
  max-width: 640px;
  margin: 1rem auto 0;
  font-size: 1.15rem;
  color: var(--mid-gray);
}

.section--navy .section-header .overline {
  color: var(--copper-light);
}

.section--navy .section-header .overline::before,
.section--navy .section-header .overline::after {
  background: var(--copper-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: none;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}

.btn--primary:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-copper);
}

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

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

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--outline-copper {
  background: transparent;
  color: var(--copper);
  border-color: var(--copper);
}

.btn--outline-copper:hover {
  background: var(--copper);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn--lg {
  padding: 1.1rem 2.8rem;
  font-size: 1.05rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-base);
  background: transparent;
}

.nav.scrolled {
  background: rgba(11, 29, 58, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  z-index: 1001;
}

.nav__logo-icon {
  width: 44px;
  height: 44px;
  background: var(--copper);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-heading);
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-text small {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav__link--dropdown {
  cursor: pointer;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
}

.nav__link--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--dark-gray);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.nav__dropdown a:hover {
  background: var(--off-white);
  color: var(--copper);
}

.nav__cta {
  margin-left: 0.5rem;
}

.nav__cta .btn {
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
}

/* Mobile Navigation */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0.25rem;
    transition: right var(--transition-base);
    overflow-y: auto;
  }

  .nav__links.open {
    right: 0;
  }

  .nav__link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav__dropdown {
    position: static;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin-top: 0.25rem;
    border-radius: 4px;
  }

  .nav__link--dropdown.open .nav__dropdown {
    display: block;
  }

  .nav__dropdown a {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem 0.5rem 1.5rem;
  }

  .nav__dropdown a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
  }

  .nav__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .nav__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
  }

  .nav__overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 29, 58, 0.92) 0%, rgba(11, 29, 58, 0.7) 50%, rgba(11, 29, 58, 0.85) 100%);
  z-index: 2;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

/* Animated gradient overlay */
.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(184, 115, 51, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74, 144, 217, 0.1) 0%, transparent 50%);
}

/* Grid pattern */
.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__text {
  max-width: 600px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(184, 115, 51, 0.15);
  border: 1px solid rgba(184, 115, 51, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--copper-light);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.hero__badge svg {
  width: 14px;
  height: 14px;
}

.hero__title {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 1.1;
}

.hero__title span {
  color: var(--copper-light);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
  text-align: left;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--copper-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero__stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 420px;
}

.hero__card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__card-icon {
  width: 48px;
  height: 48px;
  background: var(--copper);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.hero__card-title {
  color: var(--white);
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.hero__card-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.hero__card-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__card-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.hero__card-feature svg {
  width: 20px;
  height: 20px;
  color: var(--copper-light);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 7rem 1.5rem 4rem;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    display: none;
  }

  .btn-group {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero__stats {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .hero__stat-number {
    font-size: 2rem;
  }
}

/* --- Subpage Hero --- */
.hero--sub {
  min-height: 50vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.hero--sub .hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(184, 115, 51, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74, 144, 217, 0.08) 0%, transparent 50%);
}

.hero--sub .hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero--sub .hero__content {
  display: block;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}

.hero--sub .hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero--sub .hero__subtitle {
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--copper-light);
}

.breadcrumb span {
  color: var(--copper-light);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--warm-gray);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.service-card:hover {
  border-color: rgba(184, 115, 51, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

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

.service-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--copper), var(--copper-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.service-card__title {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card__text {
  color: var(--mid-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--copper);
  font-size: 0.9rem;
  transition: gap var(--transition-fast);
}

.service-card__link:hover {
  gap: 0.75rem;
  color: var(--copper-dark);
}

.service-card__link svg {
  width: 16px;
  height: 16px;
}

/* --- Feature / About Sections --- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.feature-split--reverse {
  direction: rtl;
}

.feature-split--reverse > * {
  direction: ltr;
}

.feature-split__image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--warm-gray);
}

.feature-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-split__image-accent {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 120px;
  height: 120px;
  background: var(--copper);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--white);
  font-family: var(--font-heading);
  z-index: 2;
}

.feature-split__image-accent .number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.feature-split__image-accent .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  opacity: 0.85;
}

.feature-split__content .overline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.feature-split__content .overline::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--copper);
}

.feature-split__content h2 {
  margin-bottom: 1.5rem;
}

.feature-split__content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-list__item svg {
  width: 20px;
  height: 20px;
  color: var(--copper);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list__item span {
  font-size: 1rem;
  color: var(--dark-gray);
}

@media (max-width: 768px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-split--reverse {
    direction: ltr;
  }
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--warm-gray);
  transform: translateX(-50%);
}

.timeline__item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.timeline__item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline__dot {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--copper);
  border: 3px solid var(--white);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(184, 115, 51, 0.15);
}

.timeline__content {
  width: calc(50% - 3rem);
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--warm-gray);
  box-shadow: var(--shadow-sm);
}

.timeline__year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

.timeline__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.timeline__text {
  font-size: 0.95rem;
  color: var(--mid-gray);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 1.5rem;
  }

  .timeline__item,
  .timeline__item:nth-child(odd) {
    flex-direction: row;
    text-align: left;
    padding-left: 3.5rem;
  }

  .timeline__dot {
    left: 1.5rem;
  }

  .timeline__content {
    width: 100%;
  }
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--warm-gray);
  transition: all var(--transition-base);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-card__image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 3rem;
  font-family: var(--font-heading);
}

.team-card__info {
  padding: 1.5rem;
}

.team-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--copper);
  font-weight: 500;
  margin-bottom: 0;
}

/* --- Counter / Stats Section --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--copper-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-item__number {
    font-size: 2.5rem;
  }
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--warm-gray);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card__quote {
  font-size: 1.15rem;
  color: var(--dark-gray);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-card__quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--copper);
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.testimonial-card__company {
  font-size: 0.82rem;
  color: var(--mid-gray);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 20px;
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(184, 115, 51, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(74, 144, 217, 0.1) 0%, transparent 60%);
}

.cta-banner > * {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

@media (max-width: 640px) {
  .cta-banner {
    padding: 3rem 1.5rem;
    border-radius: 12px;
  }
}

/* --- Emergency Banner --- */
.emergency-banner {
  background: linear-gradient(90deg, var(--alert-red), #A93226);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  z-index: 1001;
}

.emergency-banner a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
}

/* --- Project / Reference Cards --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--warm-gray);
  background: var(--white);
  transition: all var(--transition-base);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-card__image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  position: relative;
  overflow: hidden;
}

.project-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
}

.project-card__image-placeholder svg {
  width: 64px;
  height: 64px;
}

.project-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--copper);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card__body {
  padding: 1.5rem;
}

.project-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-card__meta {
  font-size: 0.82rem;
  color: var(--mid-gray);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.project-card__text {
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Career Section --- */
.job-card {
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: all var(--transition-base);
  margin-bottom: 1rem;
}

.job-card:hover {
  border-color: rgba(184, 115, 51, 0.3);
  box-shadow: var(--shadow-sm);
}

.job-card__info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.job-card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.job-card__tag {
  padding: 0.25rem 0.75rem;
  background: var(--off-white);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--mid-gray);
  font-weight: 500;
}

@media (max-width: 640px) {
  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  background: var(--off-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 22px;
  height: 22px;
  color: var(--copper);
}

.contact-info__label {
  font-size: 0.82rem;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-info__value {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 500;
}

.contact-info__value a {
  color: var(--navy);
  transition: color var(--transition-fast);
}

.contact-info__value a:hover {
  color: var(--copper);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: 16px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--warm-gray);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark-gray);
  transition: border-color var(--transition-fast);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

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

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

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

/* --- Map --- */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--warm-gray);
  background: var(--warm-gray);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.65);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer__logo-icon {
  width: 40px;
  height: 40px;
  background: var(--copper);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-heading);
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--copper-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.35);
}

.footer__bottom a:hover {
  color: var(--copper-light);
}

.footer__demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: rgba(184, 115, 51, 0.15);
  border: 1px solid rgba(184, 115, 51, 0.2);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--copper-light);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Service Detail Page --- */
.service-detail__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-detail__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-feature {
  text-align: center;
  padding: 2rem;
}

.service-feature__icon {
  width: 64px;
  height: 64px;
  background: rgba(184, 115, 51, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.service-feature__icon svg {
  width: 28px;
  height: 28px;
  color: var(--copper);
}

.service-feature h4 {
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.service-feature p {
  font-size: 0.92rem;
  color: var(--mid-gray);
  margin-bottom: 0;
}

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

/* --- Emergency Box --- */
.emergency-box {
  background: linear-gradient(135deg, var(--alert-red), #A93226);
  border-radius: 16px;
  padding: 3rem;
  color: var(--white);
  text-align: center;
}

.emergency-box h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.emergency-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.emergency-box__phone {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 1rem;
}

.emergency-box__hours {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* --- Benefits List --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--warm-gray);
}

.benefit-item__icon {
  width: 44px;
  height: 44px;
  background: rgba(184, 115, 51, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-item__icon svg {
  width: 22px;
  height: 22px;
  color: var(--copper);
}

.benefit-item h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.benefit-item p {
  font-size: 0.9rem;
  color: var(--mid-gray);
  margin-bottom: 0;
}

/* --- Scroll Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Partner Logos --- */
.partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  opacity: 0.4;
  filter: grayscale(1);
}

.partners img {
  height: 32px;
  width: auto;
}

/* --- Ausbildung Badge --- */
.ausbildung-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--off-white);
  border: 1px solid var(--warm-gray);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.ausbildung-badge svg {
  width: 28px;
  height: 28px;
  color: var(--copper);
}

.ausbildung-badge span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-gray);
}

/* --- Page-specific Nav Highlight --- */
.nav__link[data-page="home"].active,
.nav__link[data-page] {
  position: relative;
}

/* Notdienst floating button */
.notdienst-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--alert-red);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(192, 57, 43, 0.4);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}

.notdienst-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(192, 57, 43, 0.5);
}

.notdienst-float svg {
  width: 20px;
  height: 20px;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@media (max-width: 640px) {
  .notdienst-float span {
    display: none;
  }

  .notdienst-float {
    padding: 1rem;
    border-radius: 50%;
  }
}

/* --- Kontakt Page Responsive --- */
@media (max-width: 900px) {
  .contact-form input:focus,
  .contact-form textarea:focus,
  .contact-form select:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
  }
}

@media (max-width: 768px) {
  .section > .container > [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
}
