/* ============================================================
   GEISLER LADENBAU – Design System v2
   Apple-Style Premium Redesign
   Colors: #1A2FD4 (accent), #1D1D1F (text), #F5F5F7 (alt bg)
   Font: DM Sans (Google Fonts)
   ============================================================ */

:root {
  --accent:        #1A2FD4;
  --accent-hover:  #1525B0;
  --accent-light:  #EEF1FF;
  --text:          #1D1D1F;
  --muted:         #6E6E73;
  --bg:            #FFFFFF;
  --bg-alt:        #F5F5F7;
  --border:        #D2D2D7;
  --radius:        20px;
  --spring:        cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   FOCUS VISIBLE
   ============================================================ */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 0;
  border-radius: 12px;
}
/* Remove default focus outline since we handle it via focus-visible */
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
}
.skip-link:focus { left: 0; }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s var(--spring), transform 0.75s var(--spring);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-48px);
    transition: opacity 0.85s var(--spring), transform 0.85s var(--spring);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(48px);
    transition: opacity 0.85s var(--spring), transform 0.85s var(--spring);
  }
  .reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.6s var(--spring), transform 0.6s var(--spring);
  }
  .reveal.is-visible,
  .reveal-left.is-visible,
  .reveal-right.is-visible,
  .reveal-scale.is-visible { opacity: 1; transform: none; }

  /* Hero entrance animation */
  .hero-animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--spring), transform 0.9s var(--spring);
  }
  .hero-animate.is-visible { opacity: 1; transform: none; }

  /* Stagger delays */
  .delay-1 { transition-delay: 0.12s !important; }
  .delay-2 { transition-delay: 0.22s !important; }
  .delay-3 { transition-delay: 0.32s !important; }
  .delay-4 { transition-delay: 0.42s !important; }
  .delay-5 { transition-delay: 0.52s !important; }
  .delay-6 { transition-delay: 0.62s !important; }
}

/* Override inline transition-delays when reduced-motion is preferred */
@media (prefers-reduced-motion: reduce) {
  .hero-animate { transition: none !important; transition-delay: 0s !important; opacity: 1 !important; transform: none !important; }
  [style*="transition-delay"] { transition-delay: 0s !important; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2.5rem;
  height: 76px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.35s;
}
#nav.nav-scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.10);
}
.nav-logo {
  display: flex; align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.nav-links a:hover { background: rgba(0,0,0,0.05); }

/* Dropdown */
.nav-has-dropdown { position: relative; }
.nav-has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 3px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.55;
  transition: transform 0.2s;
}
.nav-has-dropdown:hover > a::after,
.nav-has-dropdown:focus-within > a::after {
  transform: rotate(180deg);
  opacity: 0.9;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  list-style: none;
  margin: 0;
}
/* Unsichtbare Brücke schließt den Abstand damit das Dropdown nicht verschwindet */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-has-dropdown:hover .nav-dropdown-menu,
.nav-has-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  padding: 0.6rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text);
  background: transparent;
  display: block;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu li a:hover {
  background: #f0f3ff;
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,47,212,0.3);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  order: 10;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem 2.5rem;
  transform: translateX(100%);
  transition: transform 0.42s var(--spring);
  overflow-y: auto;
}
#mobile-menu.is-open { transform: translateX(0); }

/* Close button row */
.mobile-menu-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}
.mobile-logo-img {
  height: 36px;
  width: auto;
  border-radius: 8px;
}
.mobile-close {
  background: var(--bg-alt);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s;
  flex-shrink: 0;
}
.mobile-close:hover { background: var(--border); }

.mobile-nav-links { list-style: none; margin: 0; padding: 0; width: 100%; }
.mobile-nav-links > li {
  border-bottom: 1px solid var(--border);
  position: relative;
}
.mobile-nav-links > li > a {
  display: block;
  padding: 1rem 0;
  font-size: 1.618rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  text-align: center;
  width: 100%;
  transition: color 0.15s;
}
.mobile-nav-links > li > a:hover { color: var(--accent); }

/* Chevron toggle – absolutely positioned so link stays centered */
.mobile-chevron {
  position: absolute;
  right: 0;
  top: 0;
  height: calc(1.618rem * 1.3 + 2rem); /* matches link line-height + padding */
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  transition: transform 0.38s var(--spring), color 0.15s;
}
.mobile-chevron.is-open {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Sub-menu – collapsed by default */
.mobile-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.42s var(--spring), opacity 0.3s ease, padding 0.3s ease;
}
.mobile-sub.is-open {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 0.75rem;
}
.mobile-sub li a {
  display: block;
  padding: 0.45rem 0;
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  transition: color 0.15s;
}
.mobile-sub li a:hover { color: var(--accent); }
.mobile-cta {
  display: block;
  margin-top: 2rem;
  padding: 1.125rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.15s;
  width: 100%;
}
.mobile-cta:hover { background: var(--accent-hover); }
.mobile-notdienst {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: #FEF3C7;
  color: #D97706;
  border-radius: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  border: 1.5px solid #FDE68A;
  transition: background 0.15s, border-color 0.15s;
}
.mobile-notdienst:hover { background: #FDE68A; border-color: #F59E0B; }

@media (max-width: 1023px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 76px;
}
.hero--image {
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.38) 100%);
  z-index: 1;
}
.hero--sub { min-height: 85vh; }
.hero--dark { background: #1D1D1F; color: #fff; }
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 3rem 2rem;
  text-align: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.9);
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: #34D399;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}
.hero-h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  color: #fff;
}
.hero-h1 span { color: rgba(255,255,255,0.62); }
.hero-sub-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.hero-scroll-btn {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.42);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  background: none;
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll-btn { animation: hero-bounce-btn 2.2s infinite; }
  @keyframes hero-bounce-btn {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.42; }
    50% { transform: translateX(-50%) translateY(7px); opacity: 0.68; }
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--accent); color: #fff;
  border-radius: 9999px; border: none;
  font-size: 1rem; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,47,212,0.28); }
.btn-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #fff; color: var(--text);
  border-radius: 9999px; border: none;
  font-size: 1rem; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, transform 0.2s;
}
.btn-white:hover { background: #f0f0f5; transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent; color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.35); border-radius: 9999px;
  font-size: 1rem; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.65); transform: translateY(-2px); }
.btn-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--text); color: #fff;
  border-radius: 9999px; border: none;
  font-size: 1rem; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, transform 0.2s;
}
.btn-dark:hover { background: #333; transform: translateY(-2px); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 6rem 2rem; }
.section-sm { padding: 4rem 2rem; }
.section-lg { padding: 8rem 2rem; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: #1D1D1F; color: #fff; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-p { margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.625rem;
}
.section-dark .eyebrow { color: rgba(255,255,255,0.4); }
.section-h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.08;
  margin: 0 0 1.25rem; color: var(--text);
}
.section-h2 em { font-style: normal; color: var(--accent); }
.section-dark .section-h2 { color: #fff; }
.section-dark .section-h2 em { color: rgba(255,255,255,0.5); }
.section-p {
  font-size: 1rem; line-height: 1.7;
  color: var(--muted); max-width: 620px;
}
.section-dark .section-p { color: rgba(255,255,255,0.6); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-item {
  padding: 2.5rem 1.5rem; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; letter-spacing: -0.03em; color: var(--text); line-height: 1;
}
.stat-label {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
@media (max-width: 1024px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; color: inherit; text-decoration: none;
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--spring), border-color 0.2s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 56px rgba(0,0,0,0.1); border-color: var(--accent); }
.service-card-img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.55s var(--spring); transform: scale(1.15) translateY(var(--py, 0px)); }
.service-card:hover .service-card-img { transform: scale(1.20) translateY(var(--py, 0px)); }
.service-card-body { padding: 1.625rem; flex: 1; display: flex; flex-direction: column; }
.service-card-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.625rem; color: var(--text); }
.service-card-desc { font-size: 0.875rem; line-height: 1.65; color: var(--muted); flex: 1; }
.service-card-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  margin-top: 1.25rem; font-size: 0.875rem; font-weight: 600;
  color: var(--accent); transition: gap 0.25s var(--spring);
}
.service-card:hover .service-card-link { gap: 0.625rem; }
.service-card--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.service-card--accent .service-card-title { color: #fff; }
.service-card--accent .service-card-desc { color: rgba(255,255,255,0.75); }
.service-card--accent .service-card-link { color: rgba(255,255,255,0.9); }
.service-card--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.project-card.large { grid-column: span 2; aspect-ratio: 16/9; }
.project-card.large + .project-card { aspect-ratio: unset; align-self: stretch; }
.project-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--spring); transform: scale(1.15) translateY(var(--py, 0px)); }
.project-card:hover .project-card-img { transform: scale(1.20) translateY(var(--py, 0px)); }
.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.25rem;
}
.project-card-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 0.375rem; }
.project-card-title { font-size: 1rem; font-weight: 600; color: #fff; line-height: 1.35; }
@media (max-width: 768px) { .project-card.large { grid-column: span 1; aspect-ratio: 4/3; } }

/* ============================================================
   KARRIERE BANNER
   ============================================================ */
.karriere-banner {
  position: relative;
  background-image: url('/assets/bilder/Firmengrundstueck-Geisler-Ladenbau-GmbH.jpg');
  background-size: cover;
  background-position: center;
  padding: 7rem 1.5rem;
}
.karriere-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10, 10, 20, 0.62);
}
.karriere-banner-inner {
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto;
  text-align: center;
}
.karriere-banner-h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700; color: #fff;
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.karriere-banner-h2 em { color: rgba(255,255,255,0.55); font-style: normal; }
.karriere-banner-p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem; line-height: 1.7;
  margin-bottom: 2rem;
}

/* ============================================================
   JOB CARDS
   ============================================================ */
.jobs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 640px) { .jobs-grid { grid-template-columns: 1fr; } }
.job-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 16px; padding: 1.75rem 2rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s var(--spring);
}
.job-card:hover { border-color: var(--accent); box-shadow: 0 6px 24px rgba(0,0,0,0.08); transform: translateY(-3px); }
.job-card-type { font-size: 0.75rem; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.job-card-title { font-size: 1.25rem; font-weight: 700; color: var(--text); line-height: 1.3; margin: 0.25rem 0 0.75rem; }
.job-card-mwd { font-size: 0.8em; font-weight: 600; color: var(--muted); }
.job-card-arrow { margin-top: auto; font-size: 0.875rem; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 0.35rem; }
.job-card--highlight { background: var(--accent); border-color: var(--accent); }
.job-card--highlight .job-card-type,
.job-card--highlight .job-card-title,
.job-card--highlight .job-card-mwd,
.job-card--highlight .job-card-arrow { color: #fff; }
.job-card--highlight:hover { box-shadow: 0 8px 32px rgba(26,47,212,0.3); border-color: var(--accent); }

/* ============================================================
   PROJECT FILTER
   ============================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; justify-content: center; }
.filter-btn {
  padding: 0.5rem 1.25rem; border: 1.5px solid var(--border);
  border-radius: 9999px; font-size: 0.875rem; font-weight: 500;
  color: var(--muted); background: #fff; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s; font-family: inherit;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 1024px) { .filter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .filter-grid { grid-template-columns: 1fr; } }
.filter-card { border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 4/3; cursor: pointer; }
.filter-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--spring); transform: scale(1.15) translateY(var(--py, 0px)); }
.filter-card:hover img { transform: scale(1.20) translateY(var(--py, 0px)); }
.filter-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.25rem;
}
.filter-card-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.65); margin-bottom: 0.25rem; }
.filter-card-title { font-size: 0.875rem; font-weight: 600; color: #fff; line-height: 1.35; }
.filter-card.hidden { display: none; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; position: relative; }
/* gray track */
.steps-row::before {
  content: ''; position: absolute;
  top: 1.375rem;
  left: var(--steps-track-left, calc((100% - 5rem) / 6));
  width: var(--steps-track-width, calc((100% - 5rem) * 2 / 3 + 5rem));
  height: 2px; background: var(--border);
  pointer-events: none;
}
/* animated blue fill */
.steps-row::after {
  content: ''; position: absolute;
  top: 1.375rem;
  left: var(--steps-track-left, calc((100% - 5rem) / 6));
  width: var(--steps-fill, 0px);
  height: 2px; background: var(--accent);
  pointer-events: none;
}
.step-item { position: relative; }
.step-num {
  width: 2.75rem; height: 2.75rem; background: var(--accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700; margin: 0 auto 1.25rem; position: relative; z-index: 1;
}
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.625rem; color: var(--text); text-align: center; }
.step-desc { font-size: 0.875rem; line-height: 1.65; color: var(--muted); text-align: center; }
@media (max-width: 768px) { .steps-row { grid-template-columns: 1fr; gap: 1.5rem; } .steps-row::before, .steps-row::after { display: none; } }

/* ============================================================
   SPLIT SECTION
   ============================================================ */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
@media (max-width: 1024px) { .split-section { grid-template-columns: 1fr; gap: 3rem; } .split-section.reverse { direction: ltr; } }
.split-img-wrap { position: relative; border-radius: 24px; overflow: hidden; }
.split-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.6s var(--spring); transform: scale(1.15) translateY(var(--py, 0px)); }
.split-img-wrap:hover .split-img { transform: scale(1.20) translateY(var(--py, 0px)); }
.split-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-radius: 14px; padding: 0.875rem 1.25rem; text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
}
.split-badge strong { display: block; font-size: 1.618rem; font-weight: 700; color: var(--text); }
.split-badge span { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.about-list { list-style: none; margin: 1.25rem 0 2rem; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.about-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 1rem; color: var(--muted); }
.about-list li::before { content: ''; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section { background: #1D1D1F; color: #fff; text-align: center; padding: 7rem 2rem; }
.cta-h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -0.025em; margin: 0 0 1rem; line-height: 1.1; }
.cta-p { font-size: 1rem; color: rgba(255,255,255,0.6); margin: 0 auto 2rem; max-width: 460px; line-height: 1.65; }
.cta-phone { display: block; font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 700; color: #fff; margin: 0 auto 2.5rem; letter-spacing: -0.025em; transition: color 0.15s; }
.cta-phone:hover { color: var(--accent-light); }

/* ============================================================
   BENEFITS & ITEMS
   ============================================================ */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 768px) { .benefits-grid { grid-template-columns: 1fr; } }
.benefit-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: transform 0.3s var(--spring), box-shadow 0.3s; }
.benefit-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.08); }
.benefit-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.75rem; color: var(--text); }
.benefit-card p { font-size: 0.875rem; line-height: 1.65; color: var(--muted); margin: 0; }
.benefit-icon { width: 52px; height: 52px; background: var(--accent-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 1.25rem; }
.items-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .items-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .items-grid { grid-template-columns: 1fr; } }
.item-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; transition: transform 0.25s var(--spring), box-shadow 0.25s; }
.item-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.item-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.625rem; color: var(--text); }
.item-card p { font-size: 0.875rem; line-height: 1.65; color: var(--muted); margin: 0; }

/* ============================================================
   REFERENCE IMAGES
   ============================================================ */
.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 600px) { .ref-grid { grid-template-columns: 1fr; } }
.ref-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; }

/* ============================================================
   TEAM
   ============================================================ */
.team-gf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 820px; margin: 0 auto; }
@media (max-width: 640px) { .team-gf-grid { grid-template-columns: 1fr; } }
.team-gf-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center; transition: transform 0.3s var(--spring), box-shadow 0.3s; }
.team-gf-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.08); }
.team-gf-avatar { width: 72px; height: 72px; background: var(--accent-light); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; margin: 0 auto 1.25rem; }
.team-gf-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--text); }
.team-gf-role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; margin-bottom: 0.375rem; }
.team-gf-focus { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.25rem; }
.team-gf-desc { font-size: 0.875rem; line-height: 1.65; color: var(--muted); }


/* ============================================================
   JOB DETAIL
   ============================================================ */
.job-detail-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
@media (max-width: 1024px) { .job-detail-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.job-sidebar { position: sticky; top: 5rem; }
.job-sidebar-card { background: var(--bg-alt); border-radius: var(--radius); padding: 2rem; margin-bottom: 1rem; }
.job-fact { display: flex; gap: 0.75rem; margin-bottom: 0.875rem; font-size: 0.875rem; align-items: flex-start; }
.job-fact-label { font-weight: 700; color: var(--text); min-width: 90px; flex-shrink: 0; }
.job-fact-val { color: var(--muted); }
.job-content h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--text); }
.job-content h2:first-child { margin-top: 0; }
.job-content p { font-size: 1rem; line-height: 1.7; color: var(--muted); margin: 0 0 1rem; }
.job-content ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.job-content ul li { font-size: 1rem; line-height: 1.6; color: var(--muted); display: flex; align-items: flex-start; gap: 0.625rem; }
.job-content ul li::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.apply-form { background: var(--bg-alt); border-radius: var(--radius); padding: 2rem; margin-top: 1.5rem; }
.apply-form h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 1.25rem; color: var(--text); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-block { margin-bottom: 1.5rem; }
.contact-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.3rem; }
.contact-value { font-size: 1rem; color: var(--text); }
.contact-value a { color: var(--accent); font-weight: 500; }
.contact-value a:hover { text-decoration: underline; }
.contact-logo { height: 44px; width: auto; margin-bottom: 1.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #1D1D1F; color: #fff; padding: 5rem 2rem 2.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
.footer-logo-img { height: 40px; width: auto; margin-bottom: 1.25rem; filter: none; background: #fff; padding: 6px 12px; display: block; }
.footer-brand-desc { font-size: 0.875rem; line-height: 1.65; color: rgba(255,255,255,0.45); margin: 0 0 0.75rem; max-width: 280px; }
.footer-addr { font-size: 0.875rem; color: rgba(255,255,255,0.3); margin: 0; }
.footer-col-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.footer-col-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col-links li a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-col-links li a:hover { color: #fff; }
.footer-col-links li span { font-size: 0.875rem; color: rgba(255,255,255,0.45); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.28); }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { font-size: 0.75rem; color: rgba(255,255,255,0.38); transition: color 0.15s; }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }


/* ============================================================
   HERO SCROLL-DOWN INDICATOR
   ============================================================ */
.hero-scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8);
  border-radius: 100px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.hero-scroll-down:hover {
  background: rgba(255,255,255,0.30);
  color: #fff;
  transform: translateX(-50%) translateY(2px);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll-down { animation: hero-bounce-down 2.4s ease-in-out infinite; }
  .hero-scroll-down:hover { animation: none; }
  @keyframes hero-bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
  }
}

/* ============================================================
   SCROLL-TO-TOP
   ============================================================ */
#scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 99;
  width: 44px; height: 44px; background: var(--accent); color: #fff;
  border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(26,47,212,0.35);
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--accent-hover); }

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.team-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.team-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }
.team-img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.team-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--spring); }
.team-card:hover .team-img { transform: scale(1.04); }
.team-img-placeholder { width: 100%; height: 100%; background: var(--bg-alt); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.team-img-placeholder-initials { font-size: 3rem; font-weight: 700; color: var(--accent); opacity: 0.35; line-height: 1; }
.team-img-placeholder-label { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.team-card-body { padding: 1.75rem; }
.team-name { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.team-role { font-size: 1rem; color: var(--accent); font-weight: 600; margin: 0.25rem 0 0.875rem; }
.team-desc { font-size: 1rem; line-height: 1.65; color: var(--muted); margin: 0 0 1rem; }
.team-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.team-tag { background: var(--accent-light); color: var(--accent); font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 999px; }

/* ============================================================
   HERO FLAT (no image)
   ============================================================ */
.hero--flat {
  background: var(--bg-alt);
  min-height: 85vh;
}
.hero--flat .hero-h1 { color: var(--text); }
.hero--flat .hero-h1 span { color: var(--accent); }
.hero-title-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.mwd-badge {
  background: var(--accent); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  white-space: nowrap; letter-spacing: 0.01em;
}
.hero--flat .hero-eyebrow { color: var(--accent); background: var(--accent-light); }
.hero--flat .hero-sub-text { color: var(--muted); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 3rem; } }
.contact-info-items { display: flex; flex-direction: column; gap: 1.5rem; margin: 2rem 0 2rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-info-icon { width: 44px; height: 44px; background: var(--accent-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.contact-info-label { font-size: 0.75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.contact-info-value { font-size: 1rem; color: var(--text); font-weight: 500; line-height: 1.5; }
.contact-info-value a { color: var(--accent); }
.contact-info-value a:hover { text-decoration: underline; }
.contact-map { border-radius: 16px; overflow: hidden; }

.contact-form-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(26,47,212,0.08); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-check { flex-direction: row; align-items: flex-start; gap: 0.75rem; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.form-check label { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.form-check label a { color: var(--accent); }
.form-submit {
  width: 100%; padding: 1rem; font-size: 1rem; font-weight: 700;
  background: var(--accent); color: #fff; border: none; border-radius: 12px;
  cursor: pointer; font-family: inherit; transition: background 0.2s;
}
.form-submit:hover { background: var(--accent-hover); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   NOTDIENST SECTION
   ============================================================ */
.notdienst-section { background: #FFF3CD; padding: 2rem 0; }
.notdienst-inner {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: #fff; border-radius: var(--radius); padding: 1.75rem 2rem;
  border: 1.5px solid #FDE68A;
}
.notdienst-icon { width: 52px; height: 52px; background: #FEF3C7; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #D97706; flex-shrink: 0; }
.notdienst-inner > div:nth-child(2) { flex: 1; min-width: 200px; }
.notdienst-inner strong { display: block; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.notdienst-inner p { font-size: 1rem; color: var(--muted); margin: 0; }

/* ============================================================
   JOB LIST & JOB CARDS
   ============================================================ */
.job-list { display: flex; flex-direction: column; gap: 1rem; }
.job-list .job-card {
  flex-direction: row; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.75rem;
}
.job-list .job-card:hover { transform: translateX(4px); }
.job-title { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.job-meta span { font-size: 0.875rem; color: var(--muted); background: var(--bg-alt); padding: 0.2rem 0.75rem; border-radius: 999px; }
.job-card-arrow { color: var(--accent); flex-shrink: 0; transition: transform 0.2s; }
.job-list .job-card:hover .job-card-arrow { transform: translateX(4px); }

/* ============================================================
   JOB DETAIL PAGE
   ============================================================ */
.job-detail-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 4rem; align-items: start;
}
@media (max-width: 900px) { .job-detail-layout { grid-template-columns: 1fr; gap: 2.5rem; } }
.job-detail-block { margin-bottom: 2.5rem; }
.job-detail-block h2 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 0 0 1rem; }
.job-list-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.job-list-items li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.job-list-items li::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-top: 0.55rem; flex-shrink: 0; }
.job-apply-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 2rem;
  position: sticky; top: 100px;
}
.job-apply-meta { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 1.5rem; }
.job-legal-note { font-size: 0.875rem; color: var(--muted); line-height: 1.55; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.job-apply-meta-item { display: flex; flex-direction: column; gap: 0.15rem; }
.job-apply-meta-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
.job-apply-meta-item > span:last-child { font-size: 1rem; font-weight: 600; color: var(--text); }

/* ============================================================
   LEGAL PAGE (updated)
   ============================================================ */
.legal-page { padding: 5rem 2rem 6rem; }
.legal-wrap { max-width: 720px; }
.legal-wrap h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--text); margin: 0 0 2.5rem; }
.legal-wrap h2 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 2.5rem 0 0.75rem; }
.legal-wrap h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 1.75rem 0 0.5rem; }
.legal-wrap p { font-size: 1rem; line-height: 1.75; color: var(--muted); margin: 0 0 1rem; }
.legal-wrap a { color: var(--accent); }
.legal-wrap a:hover { text-decoration: underline; }

/* ============================================================
   COOKIE SETTINGS PAGE
   ============================================================ */
.cookie-settings-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; gap: 1.5rem; margin: 2rem 0;
}
.cookie-settings-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.cookie-settings-row:last-child { border-bottom: none; padding-bottom: 0; }
.cookie-settings-row strong { display: block; font-weight: 700; color: var(--text); margin-bottom: 0.375rem; }
.cookie-settings-row p { font-size: 1rem; color: var(--muted); margin: 0; line-height: 1.6; max-width: 500px; }
.cookie-toggle--locked { font-size: 0.75rem; color: var(--muted); font-weight: 600; white-space: nowrap; padding: 0.4rem 0.875rem; background: var(--border); border-radius: 999px; }
.cookie-toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.cookie-toggle-switch input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--border); border-radius: 999px; transition: background 0.3s; }
.cookie-toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: transform 0.3s; }
.cookie-toggle-switch input:checked + .cookie-toggle-slider { background: var(--accent); }
.cookie-toggle-switch input:checked + .cookie-toggle-slider::before { transform: translateX(22px); }
.cookie-settings-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: 999px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--text); border: 1.5px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
  font-family: inherit;
}
.btn-outline-dark:hover { border-color: var(--text); }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.mt-6 { margin-top: 4rem; }

/* ============================================================
   MOBILE GLOBAL FIXES  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Nav: tighter horizontal padding */
  #nav { padding: 0 1.25rem; }

  /* Sections: reduce excessive vertical whitespace */
  .section { padding: 4rem 1.5rem; }
  .section-sm { padding: 2.5rem 1.5rem; }
  .section-lg { padding: 5rem 1.5rem; }
  .cta-section { padding: 5rem 1.5rem; }
  .legal-page { padding: 3.5rem 1.5rem 4rem; }

  /* Section headers */
  .section-header { margin-bottom: 2.5rem; }

  /* Hero: slightly tighter padding */
  .hero-inner { padding: 5rem 1.25rem 3.5rem; }
  .hero--flat { min-height: 65vh; }
  .hero--sub { min-height: auto; padding-bottom: 3rem; }

  /* Hide scroll-down indicator on sub-hero mobile (content can be tall) */
  .hero--sub .hero-scroll-down,
  .hero--sub .hero-scroll-btn { display: none; }

  /* Karriere-Banner: less padding on mobile */
  .karriere-banner { padding: 4rem 1.25rem; }
  /* Karriere-Banner buttons: full width stacked */
  .karriere-banner-inner .btn-white,
  .karriere-banner-inner .btn-outline { display: block; text-align: center; width: 100%; box-sizing: border-box; }

  /* Contact form card: less padding on small screens */
  .contact-form-card { padding: 1.5rem; }

  /* Job apply card */
  .job-apply-card { padding: 1.5rem; }

  /* Notdienst: stack on mobile */
  .notdienst-section { padding: 2rem 1.25rem; }
  .notdienst-inner { flex-direction: column; gap: 1rem; }
  .notdienst-inner a.btn-dark { width: 100%; text-align: center; }

  /* CTA phone: smaller on mobile */
  .cta-phone { font-size: clamp(1.5rem, 6vw, 2.25rem); }

  /* Split section image: limit height */
  .split-img { max-height: 320px; object-fit: cover; }

  /* Footer */
  .footer { padding: 3.5rem 1.5rem 2rem; }

  /* Scroll-to-top: don't overlap cookie banner */
  #scroll-top { bottom: 1.25rem; right: 1.25rem; }
}

/* ============================================================
   SMALL PHONE FIXES  (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Hero buttons: full width */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { text-align: center; }

  /* Stats: single column for very small phones */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 1.75rem 1rem; }

  /* Service grid: always single column */
  .service-grid { grid-template-columns: 1fr; }

  /* Project grid: single column */
  .projects-grid { grid-template-columns: 1fr; }

  /* Job cards – higher specificity to beat .job-list .job-card rule */
  .job-card,
  .job-list .job-card { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .job-card:hover { transform: none; }

  /* Footer bottom: stack */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-legal { gap: 1rem; }

  /* Cookie banner: full width stacked */
  #cookie-banner { padding: 1rem; left: 1rem; right: 1rem; width: auto; transform: none; }
  .cookie-actions { width: 100%; justify-content: stretch; }
  .cookie-btn--primary, .cookie-btn--outline { flex: 1; text-align: center; }
}
