/* ==========================================================================
   Reich-BTZ Premium Design System
   ========================================================================== */

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

:root {
  /* Colors - Derived from Brand Logo (Bright Theme) */
  --color-primary: #FFFFFF;
  /* Pure White as main */
  --color-secondary: #2C4B7E;
  /* Logo Navy Blue */
  --color-secondary-light: #3D619E;
  --color-accent: #C71F2D;
  /* Logo Red (used sparingly) */
  --color-accent-light: #E02B3A;

  /* Backgrounds */
  --color-bg-main: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  /* Very subtle off-white for section contrast */
  --color-bg-dark: #2C4B7E;
  /* Using secondary blue as the dark bg when needed */

  /* Text */
  --color-text-dark: #0F172A;
  --color-text-body: #475569;
  --color-text-light: #F8FAFC;
  --color-text-muted: #94A3B8;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing (8-point grid system) */
  --spacing-xs: 0.5rem;
  /* 8px */
  --spacing-sm: 1rem;
  /* 16px */
  --spacing-md: 2rem;
  /* 32px */
  --spacing-lg: 4rem;
  /* 64px */
  --spacing-xl: 6rem;
  /* 96px */

  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(15, 43, 70, 0.08);
  --shadow-md: 0 10px 15px -3px rgba(15, 43, 70, 0.08), 0 4px 6px -2px rgba(15, 43, 70, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 43, 70, 0.1), 0 10px 10px -5px rgba(15, 43, 70, 0.04);
  --shadow-hover: 0 30px 40px -10px rgba(15, 43, 70, 0.15);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-bg-dark: rgba(15, 23, 42, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(12px);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  line-height: 1.2;
  font-weight: 700;
}

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

ul {
  list-style: none;
}

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

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

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

.text-accent {
  color: var(--color-accent) !important;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  color: var(--color-secondary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px 0 rgba(44, 75, 126, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(44, 75, 126, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-outline-dark:hover {
  background-color: var(--color-secondary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  /* High z-index to stay above everything */
  transition: all var(--transition-normal);
  padding: 0.75rem 0;
  /* Slightly Slimmer Header on Mobile */
  border-bottom: 1px solid var(--glass-border);
}

.header.scrolled {
  padding: 0.8rem 0;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.header.menu-open {
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  z-index: 2010;
  /* Stay visible above menu overlay */
  position: relative;
}

.logo img {
  height: 60px;
  /* Slightly larger for the white bg */
  transition: var(--transition-normal);
  filter: none;
  /* Logo looks perfect as is on white */
}

.header.scrolled .logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-secondary);
}

.header.scrolled .nav-links a,
.header.scrolled .mobile-menu-btn {
  color: var(--color-secondary);
}

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

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

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--color-secondary);
  cursor: pointer;
  z-index: 2010;
  /* Above the overlay */
  position: relative;
  background: none;
  border: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  /* Removed justify-content: center to allow container to center itself normally */
  overflow: hidden;
  background-color: var(--color-primary);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 0%;
  /* Shifted further down to show more of the action */
  opacity: 0.55;
  /* Increased opacity to show the team better */
  transform: scale(1.02);
  /* Slight scale for animation */
  animation: bgZoom 20s infinite alternate;
}

@keyframes bgZoom {
  0% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Adding a very subtle navy blue/red tint mix to the hero white overlay */
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(44, 75, 126, 0.1) 50%,
      /* Gentle blue hint */
      rgba(199, 31, 45, 0.05) 100%
      /* Very gentle red hint */
    );
  mix-blend-mode: multiply;
  /* Helps the color blend naturally with the image below */
  z-index: 1;
}

/* Secondary solid overlay to keep text perfectly readable */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.7) 100%);
  z-index: 2;
}

.hero .container {
  width: 100%;
  /* Ensure it takes full width of the grid */
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: left;
  /* Better for reading on white */
  max-width: 900px;
  padding: 0;
  /* Removed extra 1rem padding to align with outer grid */
  margin-right: auto;
}

.hero-red-patch {
  position: absolute;
  bottom: 0px;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: white;
  padding: 1rem 3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 10;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.3);
  animation: slideUpCenter 0.8s ease forwards;
}

@keyframes slideUpCenter {
  from {
    opacity: 0;
    transform: translate(-50%, 40px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.hero-daecher-accent {
  position: absolute;
  bottom: -30px;
  /* Slight bleed for grounded feel */
  right: 0;
  /* Tucked into the corner */
  width: 900px;
  /* Enlarged for more presence */
  height: 380px;
  background-image: url('../img/daecher.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom right;
  z-index: 5;
  /* Between background and text content */
  opacity: 0.1 !important;
  /* Extremely subtle watermark */
  mix-blend-mode: multiply;
  /* Blends into the background image/colors */
  animation: fadeUp 1s ease 0.8s forwards;
  pointer-events: none;
}

.hero-title {
  font-size: 4.5rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.hero-title span {
  color: var(--color-accent);
}

.hero-title span {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-body);
  margin-bottom: 3rem;
  max-width: 700px;
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Vision Blueprint Section (Millimeterpapier Raster)
   ========================================================================== */
.vision-blueprint {
  background-color: var(--color-secondary);
  /* mm-paper style grid background using linear gradients */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  position: relative;
  color: white;
  border-top: 4px solid var(--color-accent);
  border-bottom: 4px solid var(--color-accent);
}

.vision-blueprint::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(44, 75, 126, 0.8) 100%);
  pointer-events: none;
}

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

.vision-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.vision-spec-item {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  padding: var(--spacing-md);
  text-align: left;
  position: relative;
}

.vision-spec-item::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
}

.spec-number {
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--color-accent-light);
  display: block;
  margin-bottom: 1rem;
}

.spec-label {
  font-size: 1.25rem;
  color: white;
  margin: 0;
}

/* ==========================================================================
   Mission & Values Section
   ========================================================================== */
.values {
  background-color: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.value-card {
  background: var(--color-bg-main);
  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  /* Damit die Karten VOR dem Wasserzeichen liegen */
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--color-accent);
}

.value-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(44, 75, 126, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.value-card:hover .value-icon {
  background-color: var(--color-secondary);
  color: white;
  transform: scale(1.1);
}

.value-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-secondary);
  transition: var(--transition-normal);
}

.value-card:hover .value-icon svg {
  stroke: white;
}

.value-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.value-text {
  color: var(--color-text-body);
  font-size: 0.95rem;
}

/* ==========================================================================
   Career Section & Job Ticker
   ========================================================================== */
.career-teaser {
  background-color: var(--color-bg-main);
  padding-bottom: 0 !important;
  /* Remove large bottom padding because ticker has margins */
}

.job-ticker-container {
  overflow: hidden;
  background: var(--color-bg-alt);
  padding: 1.5rem 0;
  margin: 3rem 0 2rem 0;
  /* Reduced bottom margin */
  border-top: 1px solid rgba(44, 75, 126, 0.1);
  border-bottom: 1px solid rgba(44, 75, 126, 0.1);
  white-space: nowrap;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  /* Full width break-out */
}

.job-ticker-track {
  display: inline-flex;
  animation: ticker 30s linear infinite;
  gap: 3rem;
  padding-left: 3rem;
}

.ticker-item {
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  /* Reduced from 1.25rem for better readability */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ticker-dot {
  color: var(--color-accent);
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  /* Mobile-specific adjustments if needed, but display:block is now global for ticker */
}

.career-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
  background-color: var(--color-bg-main);
}

.faq {
  padding-top: var(--spacing-md) !important;
  /* Tighter transition from career-ticker */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.service-img-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-img {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Adding the brand blue tint to the service cards instead of pure black */
  background: linear-gradient(to top, rgba(44, 75, 126, 0.95) 0%, rgba(44, 75, 126, 0.1) 100%);
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition: var(--transition-normal);
}

.service-card:hover .service-overlay {
  opacity: 0.95;
  background: linear-gradient(to top, rgba(44, 75, 126, 0.95) 0%, rgba(199, 31, 45, 0.4) 100%);
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-md);
  color: white;
  transform: translateY(20px);
  transition: var(--transition-normal);
}

.service-card:hover .service-content {
  transform: translateY(0);
}

.service-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: white;
}

.service-desc {
  font-size: 0.95rem;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
  color: rgba(255, 255, 255, 0.8);
}

.service-card:hover .service-desc {
  opacity: 1;
  height: auto;
  margin-top: 1rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-accent-light);
  /* Accent red for links */
  text-decoration: none;
  opacity: 0;
  transition: var(--transition-normal);
}

.service-card:hover .service-link {
  opacity: 1;
}

.service-link:hover {
  gap: 0.75rem;
}

/* ==========================================================================
   Two Column Targeting Section
   ========================================================================== */
.targeting {
  display: flex;
  min-height: 600px;
  border-top: 4px solid var(--color-accent);
  border-bottom: 4px solid var(--color-accent);
}

.target-panel {
  flex: 1;
  padding: var(--spacing-xl) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: white;
}

.target-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform var(--transition-slow);
}

.target-panel:hover::before {
  transform: scale(1.05);
}

.target-panel.private::before {
  background-image: url('../img/privatkunden.jpg');
}

.target-panel.commercial::before {
  background-color: var(--color-secondary);
  background-image: none;
  /* No image, just blueprint background */
}

.target-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Brand color overlays for the split section */
  z-index: 2;
  transition: var(--transition-normal);
  mix-blend-mode: multiply;
}

.target-panel.private .target-overlay {
  background: rgba(44, 75, 126, 0.85);
  /* Navy blue tint for private */
}

.target-panel.commercial .target-overlay {
  background-color: var(--color-secondary);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at center, transparent 0%, rgba(44, 75, 126, 0.8) 100%);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px, 100% 100%;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px, 0 0;
  opacity: 1;
  mix-blend-mode: normal;
}

/* Hover state for blueprint panel */
.target-panel.commercial:hover .target-overlay {
  background-color: #243d66;
  /* Slightly lighter navy on hover */
}

/* Button contrast in blueprint panel */
.target-panel.commercial .btn-secondary {
  color: white !important;
  border-color: white !important;
}

.target-panel.commercial .btn-secondary:hover {
  background-color: white !important;
  color: var(--color-secondary) !important;
}

.target-daecher-watermark {
  position: absolute;
  bottom: -20px;
  right: -30px;
  width: 450px;
  height: 250px;
  background-image: url('../img/daecher.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom right;
  z-index: 3;
  /* Must be higher than .target-overlay (z-index: 2) */
  opacity: 0.15;
  /* Slightly increased for better visibility on red */
  filter: brightness(0) invert(1);
  /* Makes it white */
  pointer-events: none;
  transition: transform 0.6s ease;
}

.target-panel:hover .target-daecher-watermark {
  transform: scale(1.1) rotate(-2deg);
}

.target-panel:hover .target-overlay {
  opacity: 0.95;
}

.target-content {
  position: relative;
  z-index: 10;
  max-width: 500px;
}

.target-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.target-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-secondary);
  /* mm-paper style technical grid background */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  color: white;
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 400px;
  height: 250px;
  background-image: url('../img/daecher.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom right;
  opacity: 0.25;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  /* 4 columns for desktop */
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
  margin-top: 1rem;
}

.footer-logo {
  height: 60px;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition-normal);
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-info svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ==========================================================================
   Animations & Interactivity (JS triggered)
   ========================================================================== */
/* Social Media in Footer */
.footer-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* ==========================================================================
   Watermark (Dächer-Motiv)
   ========================================================================== */
.watermark-container {
  position: relative;
  overflow: hidden;
}

.watermark {
  position: absolute;
  width: 500px;
  height: 500px;
  background-image: url('../img/daecher.svg');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.watermark-right {
  right: -50px;
  bottom: -50px;
  transform: rotate(-10deg);
}

/* Specific adjustment for Warum Reich-BTZ section */
#warum-wir .watermark-right {
  bottom: 180px;
}

.watermark-left {
  left: -50px;
  top: 100px;
  transform: rotate(10deg);
}

/* ==========================================================================
   Google Reviews Section
   ========================================================================== */
.reviews-section {
  background-color: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.google-trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  text-align: center;
}

.google-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 0.75rem;
}

.google-logo-wrapper svg {
  width: 36px;
  height: 36px;
}

.google-logo-wrapper span {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--color-text-dark);
}

.google-rating-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.rating-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-secondary);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
  transform: translateY(2px);
  /* Tweak for perfect optical alignment */
}

.google-stars {
  display: flex;
  gap: 2px;
  color: #FBBC04;
}

.google-stars span {
  font-size: 2.0rem;
}

.google-stars .partial-star {
  position: relative;
  display: inline-block;
  color: #e0e0e0;
}

.google-stars .partial-star::after {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  width: 70%;
  overflow: hidden;
  color: #FBBC04;
}

.reviews-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0 3rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Hide scrollbar for clean look */
}

.reviews-grid::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 350px;
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.review-content {
  font-style: italic;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background-color: var(--color-secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.review-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #34A853;
  /* Google Green */
  margin-top: 4px;
}

.reviews-cta {
  text-align: center;
  margin-top: 1rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(44, 75, 126, 0.1);
  margin-bottom: 1rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-size: 1.125rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--color-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

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

.faq-icon {
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

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

.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--color-text-body);
}

/* ==========================================================================
   General Contact Form
   ========================================================================== */
.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.contact-info-boxes {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-box {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.contact-box .contact-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-accent);
  margin-bottom: 1rem;
}

.contact-box h4 {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.contact-box a {
  color: var(--color-text-body);
  transition: var(--transition-fast);
}

.contact-box a:hover {
  color: var(--color-accent);
}

.general-contact-form {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.general-contact-form .form-group {
  margin-bottom: var(--spacing-sm);
}

.general-contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

.general-contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-secondary);
}

.general-contact-form input,
.general-contact-form select,
.general-contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(44, 75, 126, 0.2);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text-dark);
  transition: border-color var(--transition-fast);
}

.general-contact-form input:focus,
.general-contact-form select:focus,
.general-contact-form textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(44, 75, 126, 0.1);
}

/* Custom Checkbox Design */
.checkbox-container {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text-body);
  user-select: none;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  flex-shrink: 0;
  height: 22px;
  width: 22px;
  background-color: #fff;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  margin-top: 2px;
  position: relative;
  transition: all var(--transition-fast);
}

.checkbox-container:hover input~.checkmark {
  border-color: var(--color-accent);
  background-color: rgba(199, 31, 45, 0.05);
}

.checkbox-container input:checked~.checkmark {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked~.checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  line-height: 1.4;
  font-weight: 400;
}

.checkbox-text a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 600;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .values-grid,
  .services-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  /* Force horizontal slider for reviews on mobile */
  .reviews-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: -1rem;
    /* Bleed to edges on mobile */
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .review-card {
    flex: 0 0 280px;
    /* Slightly narrower on mobile */
    padding: 1.5rem;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-secondary);
    flex-direction: column;
    justify-content: flex-start;
    /* Start from top with padding */
    align-items: center;
    padding: 130px 2rem 2rem 2rem;
    /* Reduced from 160px for better balance */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition-normal);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    color: #FFFFFF !important;
    font-size: 1.4rem;
    /* Reduced from 1.75rem for better fit */
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 1rem 1.5rem;
    /* Reduced vertical padding */
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
  }

  .nav-links a:last-child {
    border-bottom: none;
    background-color: var(--color-accent);
    margin-top: 2rem;
    max-width: 300px;
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
  }

  .nav-links a:active {
    transform: scale(0.95);
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-content {
    padding: 0;
    /* Flush with container padding to match logo */
    text-align: left;
  }

  .hero-title {
    font-size: 2.1rem;
    /* Slightly smaller for better airiness */
    margin-bottom: 0.75rem;
    line-height: 1.1;
  }

  .values-grid,
  .services-grid,
  .contact-wrapper,
  .vision-specs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    /* More spacing from titles */
  }

  .hero-red-patch {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    top: auto;
    bottom: 0px;
    z-index: 20;
  }

  .hero-daecher-accent {
    width: 140%;
    /* Bigger on mobile too */
    height: 250px;
    right: -15%;
    bottom: -15px;
    /* Slight bleed for grounded feel */
    opacity: 0.08 !important;
    /* Very subtle watermark */
    z-index: 1;
    /* Behind text but above background image */
    pointer-events: none;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    /* Slimmer buttons */
    font-size: 0.9rem;
  }

  .general-contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Compact containers on mobile for more content room */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .general-contact-form,
  .application-form-container {
    padding: 1.5rem 1rem !important;
  }

  .career-teaser .container {
    text-align: center;
  }

  .career-teaser .btn-primary {
    margin-top: 1rem;
    width: 100%;
    max-width: 300px;
  }

  .targeting {
    flex-direction: column;
  }

  .target-panel {
    padding: 3rem 1.5rem;
    min-height: auto;
  }

  .contact-box,
  .general-contact-form {
    padding: 1.25rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
    /* More space between columns on mobile */
    text-align: center;
  }

  .footer-brand p {
    margin: 1.5rem auto 0;
  }

  .contact-info li {
    justify-content: center;
  }

  .footer-logo {
    display: inline-block;
  }

  .footer-social {
    justify-content: center;
    margin-top: 1.5rem;
  }

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

  /* Form iOS Zoom Prevention & Ergonomics */
  input,
  select,
  textarea {
    font-size: 16px !important;
    /* Prevents iOS auto-zoom */
  }

  .faq-question {
    padding: 1.5rem 0;
    min-height: 44px;
    /* Apple Human Interface Guideline minimum hit area */
  }

  /* Specific mobile stacking for Blueprint Grid */
  .vision-specs-grid {
    gap: var(--spacing-sm);
  }

  .vision-spec-item {
    margin-bottom: 0.5rem;
  }

  .job-ticker {
    display: block;
    margin: 0 auto;
    text-align: center;
  }

  /* Career Section Alignment (Global Centering) */
  .career-teaser .section-title,
  .career-teaser .section-subtitle {
    text-align: center;
  }

  .career-teaser .btn-primary {
    margin: 0 auto;
    display: block;
    max-width: fit-content;
  }
}

/* ==========================================================================
   Mobile Hover Reveal polyfill (Making hover-cards reveal on scroll instead)
   ========================================================================== */
@media (hover: none) {

  .service-desc,
  .service-link {
    opacity: 1;
    height: auto;
    margin-top: 0.5rem;
  }

  .service-content {
    transform: translateY(0);
  }

  .service-overlay {
    background: rgba(44, 75, 126, 0.85);
    /* Clean CI navy, no gradient */
  }
}