/* ============================================
   Zaugg Hoch + Tiefbau AG – Redesign
   Brand: Amber #FFAE1B, Anthrazit #1E1E1E
   Fonts: Outfit (Headlines), Source Sans 3 (Body)
   ============================================ */

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

/* --- Custom Properties --- */
:root {
  --color-primary: #FFAE1B;
  --color-primary-dark: #E89A00;
  --color-primary-light: #FFD06B;
  --color-dark: #1E1E1E;
  --color-dark-soft: #2A2A2A;
  --color-gray-900: #1A1A1A;
  --color-gray-800: #333333;
  --color-gray-700: #444444;
  --color-gray-600: #555555;
  --color-gray-500: #777777;
  --color-gray-400: #999999;
  --color-gray-300: #BBBBBB;
  --color-gray-200: #E0E0E0;
  --color-gray-100: #F0F0F0;
  --color-white: #FFFFFF;
  --color-bg: #FAFAFA;
  --color-bg-warm: #F7F5F2;
  --color-accent: #83D6DF;
  --color-accent-dark: #5BBAC4;
  --color-success: #34A853;
  --color-danger: #EA4335;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-gray-800);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }

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

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

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

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

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-gray-200);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-dark);
}
.btn-white:hover {
  background: var(--color-gray-100);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-dark);
}

.header-logo .logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-dark);
}

.header-logo .logo-text span {
  color: var(--color-primary-dark);
}

.nav-desktop { display: flex; align-items: center; gap: 4px; }

.nav-desktop a {
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-dark);
  background: var(--color-gray-100);
}

.nav-desktop .nav-dropdown { position: relative; }

.nav-desktop .nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

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

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.nav-dropdown-menu a:hover {
  background: var(--color-gray-100);
  color: var(--color-primary-dark);
}

.header-cta { display: flex; align-items: center; gap: 12px; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
}
.header-phone svg { width: 18px; height: 18px; color: var(--color-primary); }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.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); }

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  padding: 24px;
  overflow-y: auto;
  z-index: 999;
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-gray-700);
  border-bottom: 1px solid var(--color-gray-100);
}

.nav-mobile a:hover { color: var(--color-primary-dark); }

.nav-mobile .nav-mobile-section {
  padding: 8px 0;
}

.nav-mobile .nav-mobile-section-title {
  display: block;
  padding: 14px 0 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-dark);
  border: none;
}

.nav-mobile .nav-mobile-section a {
  padding: 10px 0 10px 16px;
  font-size: 0.95rem;
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-gray-900) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: var(--color-primary);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 10% 100%);
  opacity: 0.08;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 174, 27, 0.15);
  border: 1px solid rgba(255, 174, 27, 0.3);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.hero-badge svg { width: 16px; height: 16px; }

.hero h1 {
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--color-primary);
}

.hero-text {
  font-size: 1.15rem;
  color: var(--color-gray-400);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-item { text-align: center; }

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.9rem;
  color: var(--color-gray-400);
  margin-top: 8px;
}

/* --- Page Header (subpages) --- */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-gray-900) 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.06;
}

.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-gray-400);
  margin-bottom: 16px;
}

.page-header .breadcrumb a {
  color: var(--color-gray-400);
  transition: color var(--transition);
}

.page-header .breadcrumb a:hover { color: var(--color-primary); }

.page-header .breadcrumb svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--color-gray-400);
  font-size: 1.1rem;
  max-width: 640px;
}

/* --- Section Layouts --- */
.section {
  padding: 80px 0;
}

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

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

.section-dark p { color: var(--color-gray-400); }

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

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-header .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 174, 27, 0.1);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-dark .section-badge {
  background: rgba(255, 174, 27, 0.15);
  color: var(--color-primary);
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  font-size: 1.05rem;
  color: var(--color-gray-600);
}

.section-dark .section-header p { color: var(--color-gray-400); }

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  margin-top: 8px;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 174, 27, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.feature-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary-dark);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  margin-bottom: 16px;
}

.feature-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  transition: gap var(--transition);
}

.feature-card .card-link:hover { gap: 10px; }
.feature-card .card-link svg { width: 16px; height: 16px; }

/* --- Service List (for subpages) --- */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition);
}

.service-list-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.service-list-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-list-item span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-gray-800);
}

/* --- CTA Split --- */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-split-content {}

.cta-split-content h2 { margin-bottom: 16px; }

.cta-split-content p {
  font-size: 1.05rem;
  color: var(--color-gray-600);
  margin-bottom: 24px;
}

.cta-split-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-gray-200);
}

.cta-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-split-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--color-dark);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-banner p {
  color: var(--color-dark-soft);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 2;
}

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

/* --- Leistungen Bento/Grid --- */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.leistung-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--color-gray-200);
  cursor: pointer;
}

.leistung-card.card-wide {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.leistung-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.leistung-card:hover .leistung-card-bg {
  transform: scale(1.05);
}

.leistung-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.leistung-card-overlay h3 {
  color: var(--color-white);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.leistung-card-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.leistung-card-overlay .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 10px;
}

.leistung-card-overlay .card-link svg { width: 16px; height: 16px; }

/* --- Team / About Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition);
}

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

.team-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-gray-200);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  background: rgba(255,174,27,0.12);
}

.team-card h4 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  margin-bottom: 8px;
}

.team-card-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-gray-600);
  font-weight: 500;
}

.team-card-phone svg { width: 14px; height: 14px; }

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 2px;
  height: 100%;
  background: var(--color-gray-200);
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: 16px;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-bg);
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-item h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.timeline-item p { font-size: 0.95rem; color: var(--color-gray-600); margin-bottom: 0; }

/* --- Contact Split --- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info {}

.contact-info h2 { margin-bottom: 12px; }

.contact-info > p {
  color: var(--color-gray-600);
  margin-bottom: 32px;
}

.contact-items { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 174, 27, 0.1);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-item-icon svg { width: 22px; height: 22px; color: var(--color-primary-dark); }

.contact-item h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-item p { font-size: 0.9rem; color: var(--color-gray-600); margin-bottom: 0; }
.contact-item a {
  color: var(--color-primary-dark);
  font-weight: 500;
}
.contact-item a:hover { text-decoration: underline; }

/* Contact Form */
.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-sm);
}

.contact-form h3 { margin-bottom: 24px; font-size: 1.3rem; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: border-color var(--transition);
  color: var(--color-gray-800);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 174, 27, 0.1);
}

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

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

/* --- Referenzen Cards --- */
.referenzen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.referenz-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition);
}

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

.referenz-card-image {
  aspect-ratio: 16/10;
  background: var(--color-gray-200);
  overflow: hidden;
}

.referenz-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.referenz-card:hover .referenz-card-image img {
  transform: scale(1.05);
}

.referenz-card-body {
  padding: 20px;
}

.referenz-card-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 174, 27, 0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.referenz-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.referenz-card p { font-size: 0.9rem; color: var(--color-gray-600); margin-bottom: 0; }

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
  text-align: left;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

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

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: var(--color-gray-400);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo .logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-dark);
}

.footer-brand .footer-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-nap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nap-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

.footer-nap-item svg { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--color-gray-400);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--color-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.8rem;
  color: var(--color-gray-500);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a { color: var(--color-gray-500); }
.footer-bottom-links a:hover { color: var(--color-primary); }

/* --- Notdienst Ribbon --- */
.notdienst-bar {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 500;
}

.notdienst-bar a {
  color: var(--color-primary);
  font-weight: 700;
}

.notdienst-bar a:hover { text-decoration: underline; }

/* --- Content Prose (for subpages) --- */
.prose { max-width: 780px; }

.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; }

.prose ul {
  margin-bottom: 16px;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reversed { direction: rtl; }
.two-col.reversed > * { direction: ltr; }

.two-col-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-gray-200);
}

.two-col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Image placeholder (geometric pattern for demo) --- */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--color-gray-200) 0%, var(--color-gray-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder svg { width: 48px; height: 48px; color: var(--color-gray-300); }

/* --- Lehrlinge Section --- */
.lehrlinge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.lehrling-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--color-gray-200);
  text-align: center;
  transition: all var(--transition);
}

.lehrling-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.lehrling-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(255,174,27,0.1);
  border-radius: var(--radius-md);
  margin: 0 auto 16px;
}

.lehrling-card-icon svg { width: 32px; height: 32px; color: var(--color-primary-dark); }

.lehrling-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.lehrling-card p { font-size: 0.9rem; color: var(--color-gray-600); margin-bottom: 0; }

/* --- Map Embed --- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  border: 1px solid var(--color-gray-200);
}

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

/* === RESPONSIVE === */
@media (max-width: 968px) {
  .nav-desktop, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .leistung-card.card-wide { grid-column: span 1; }
  .referenzen-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-split { grid-template-columns: 1fr; gap: 40px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reversed { direction: ltr; }
  .contact-split { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-list { grid-template-columns: 1fr; }
  .lehrlinge-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }

  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .feature-grid { grid-template-columns: 1fr; }
  .referenzen-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .lehrlinge-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}
