/* ═══════════════════════════════════════════════════════════
   main.css – Malermeisterbetrieb Stöckle
   Basis: Entwurf5 / Design-Mockup V5
   ProcessWire Custom Theme
═══════════════════════════════════════════════════════════ */

/* ── Custom Fonts ───────────────────────────────────────── */
@font-face {
  font-family: 'MV Boli';
  src: url('../fonts/mvboli.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Design Tokens (CI 2026) ────────────────────────────── */
:root {
  --black:      #1A1A1A;
  --white:      #FFFFFF;
  --red:        #EE322D;   /* CI-Rot Stöckle */
  --red-dark:   #C41E1A;
  --blue:       #0E3B60;   /* CI-Dunkelblau Stöckle */
  --blue-dark:  #0A2E4D;
  --blue-light: #EEF2F8;
  --gray-1:     #F7F7F7;
  --gray-2:     #E8E8E8;
  --gray-3:     #767676;
  --gray-4:     #555555;
  --border:     #E0E0E0;
  --shadow:     0 4px 24px rgba(0,0,0,0.09);
  --radius:     6px;
  --max-width:  1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a {
  transition: color 0.2s;
  text-decoration: none;
}
a:hover,
a:visited,
a:focus,
a:active {
  text-decoration: none;
}

/* ── Page Wrapper ───────────────────────────────────────── */
.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--white);
}

#main-content {
  box-shadow: 0px 0px 60px 0px rgba(0,0,0,0.25);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.nav {
  background: var(--white);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.nav-logo img      { height: 42px; width: auto; }
.nav-logo-fallback { font-size: 15px; font-weight: 800; color: var(--black); letter-spacing: -0.3px; }
.nav-logo-fallback span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-4);
  transition: color 0.2s;
  padding-bottom: 2px;
}

.nav-links a:hover,
.nav-links a.active { color: var(--red); }

.nav-links a.active { border-bottom: 2px solid var(--red); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  font-size: 13px;
  letter-spacing: 0.4px;
  border-bottom: none !important;
}
.nav-links a.nav-cta { padding-bottom: 9px; }

.nav-cta:hover { background: var(--red-dark) !important; }

/* ─ Mobile Hamburger (JS-gesteuert) ─────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--red-dark); }

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 11px 26px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--blue); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  padding: 11px 28px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 2px solid var(--white);
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn-white:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(238,50,45,0.40);
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--blue);
}

.hero-bg-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0A2E4D 0%, #0E3B60 100%);
  z-index: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(14,59,96,0.85) 0%,
    rgba(14,59,96,0.55) 45%,
    rgba(14,59,96,0.18) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 72px;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--red);
  display: block;
}

.hero-headline {
  font-family: 'MV Boli', cursive;
  font-size: 42px;
  font-weight: normal;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.hero-sub {
  font-size: 17px;
  color: #FFFFFF;
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badge-10 {
  position: absolute;
  top: 32px;
  right: 48px;
  width: 160px;
  height: auto;
  z-index: 5;
  filter: drop-shadow(0 6px 22px rgba(0,0,0,0.35));
}

.hero-scroll-hint {
  display: none;
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  color: var(--white);
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════════
   COUNTER LEISTE
═══════════════════════════════════════════════════════════ */
.counter-bar {
  background: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.counter-cell {
  padding: 44px 24px;
  text-align: center;
  position: relative;
}
.counter-cell + .counter-cell::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: var(--border);
}

.counter-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  display: block;
  letter-spacing: -1px;
}
.counter-suffix { font-size: 22px; font-weight: 900; color: var(--red); }

.counter-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS ALLGEMEIN
═══════════════════════════════════════════════════════════ */
.section { padding: 104px 88px; }
.section.bg-gray  { background: var(--gray-1); }
.section.bg-blue  { background: var(--blue-light); }
.section.bg-dark  { background: var(--black); }

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.section-title.white { color: var(--white); }

.section-title-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s;
  margin-bottom: 8px;
}
.section-title-link::after {
  content: '→';
  color: var(--blue);
  font-size: 28px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s;
  margin-left: -8px;
}
.section-title-link:hover::after {
  transform: translateX(6px);
}

.section-underline {
  width: 44px;
  height: 3px;
  background: var(--red);
  margin-bottom: 44px;
  border-radius: 2px;
}
.section-underline.blue { background: var(--blue); }

.section-subtitle {
  font-size: 15px;
  color: var(--gray-4);
  max-width: 560px;
  margin-bottom: 52px;
  line-height: 1.7;
}

.section-header-center { text-align: center; margin-bottom: 56px; }
.section-header-center .section-underline { margin: 12px auto 0; }

/* ═══════════════════════════════════════════════════════════
   LEISTUNGEN / SERVICE CARDS (Bild-Kacheln)
═══════════════════════════════════════════════════════════ */
.services-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--gray-2);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
}
.service-card:hover { box-shadow: 0 20px 48px rgba(0,0,0,0.18); }

/* Unscharfe Hintergrund-Ebene: füllt die Kachel randlos, damit das
   scharfe Vordergrund-Bild (object-fit: contain) nicht beschnitten werden muss */
.img-fit-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) brightness(0.9) saturate(1.15);
  transform: scale(1.15);
}

.service-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img { transform: scale(1.06); }

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,59,96,0.02) 0%,
    rgba(14,59,96,0.15) 40%,
    rgba(14,59,96,0.78) 100%
  );
  transition: background 0.3s;
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(14,59,96,0.08) 0%,
    rgba(14,59,96,0.25) 40%,
    rgba(14,59,96,0.85) 100%
  );
}

.service-card-title {
  position: absolute;
  bottom: 24px;
  left: 22px;
  right: 22px;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.2px;
  line-height: 1.25;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.service-card-title::after {
  content: '→';
  transition: transform 0.25s;
  display: inline-block;
  order: 1;
}
.service-card-title > div {
  flex-basis: 100%;
  order: 2;
}
.service-card:hover .service-card-title::after { transform: translateX(4px); }

/* Ort-Angabe in Projektkarten */
.card-ort {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.card-ort::before {
  content: '';
  display: inline-block;
  position: relative;
  top: 1px;
  width: 10px;
  height: 12px;
  flex-shrink: 0;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

/* Projekte Header mit Link rechts */
.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 52px;
}
.projects-head .section-underline { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════
   ÜBER UNS – TEAM
═══════════════════════════════════════════════════════════ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .about-body {
  font-size: 15px;
  color: var(--gray-4);
  line-height: 1.75;
  margin-bottom: 28px;
}

.about-certs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.cert-badge {
  background: var(--blue-light);
  border: 1px solid #C5D3E8;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.team-visual { display: flex; flex-direction: column; gap: 28px; }

.team-group-photo { position: relative; height: 240px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.team-group-photo img:not(.img-fit-bg) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }

.team-avatars { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.team-member { text-align: center; width: 90px; }

.team-avatar {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
  margin: 0 auto 10px;
  background: var(--gray-2);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }

.team-member-name { font-size: 11px; font-weight: 700; color: var(--black); line-height: 1.3; }
.team-member-role  { font-size: 10px; color: var(--gray-3); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════ */
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  border-top: 3px solid var(--red);
}

.testimonial-stars { color: var(--red); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }

.testimonial-text {
  font-size: 13px;
  color: var(--gray-4);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author { display: flex; align-items: center; gap: 10px; }

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--blue);
  font-weight: 900;
}

.testimonial-author-name { font-size: 13px; font-weight: 700; color: var(--black); }
.testimonial-author-sub  { font-size: 11px; color: var(--gray-3); }

.google-banner {
  background: var(--blue-light);
  border: 1px solid #C5D3E8;
  border-radius: var(--radius);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.google-rating { display: flex; align-items: center; gap: 14px; }

.google-logo-text { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; }
.google-logo-text span:nth-child(1) { color: #4285F4; }
.google-logo-text span:nth-child(2) { color: #EA4335; }
.google-logo-text span:nth-child(3) { color: #FBBC05; }
.google-logo-text span:nth-child(4) { color: #4285F4; }
.google-logo-text span:nth-child(5) { color: #34A853; }
.google-logo-text span:nth-child(6) { color: #EA4335; }

.google-score { font-size: 28px; font-weight: 900; color: var(--black); margin-right: 4px; }
.google-desc  { font-size: 12px; color: var(--gray-4); }

/* ═══════════════════════════════════════════════════════════
   AKTUELLES (News)
═══════════════════════════════════════════════════════════ */
.news-list { display: flex; flex-direction: column; gap: 36px; }

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 12px 16px;
  margin: 0 -16px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}
.news-item:hover { background: var(--gray-1); }

.news-img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  background: var(--gray-2);
  flex-shrink: 0;
  overflow: hidden;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; }

.news-date {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.news-title { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 6px; line-height: 1.3; }
.news-text  { font-size: 13px; color: var(--gray-4); line-height: 1.6; }
.news-read-more { font-size: 12px; font-weight: 700; color: var(--red); margin-top: 8px; display: inline-block; text-decoration: none; }

/* ═══════════════════════════════════════════════════════════
   INSTAGRAM / VIDEO TEASER
═══════════════════════════════════════════════════════════ */
.video-teaser { display: grid; grid-template-columns: 1fr 1fr; min-height: 320px; }

.video-side {
  background: var(--black);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 400px;
}
.video-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  position: absolute;
  inset: 0;
}

.video-play {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(238,50,45,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(238,50,45,0.2);
  text-decoration: none;
  transition: transform 0.25s;
}
.video-play:hover {
  transform: scale(1.06);
  text-decoration: none;
}
.video-play:focus {
  text-decoration: none;
}
.video-play-icon {
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-text-side {
  background: var(--blue);
  padding: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.video-text-side .section-eyebrow { color: rgba(255,255,255,0.85); }
.video-text-side .section-title   { color: var(--white); }
.video-text-side .section-underline { background: rgba(255,255,255,0.45); }
.video-text-side .body-text {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════════════════
   INNEN-SEITEN – Page Header
═══════════════════════════════════════════════════════════ */
.page-header {
  background: var(--blue);
  padding: 64px 88px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,46,77,0.6) 0%, rgba(14,59,96,0.1) 100%);
}
.page-header-content { position: relative; z-index: 1; }
.page-header h1 {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--white);
  margin-bottom: 10px;
}
.page-header-sub { font-size: 16px; color: rgba(255,255,255,0.82); }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.breadcrumb span { margin: 0 6px; }

/* ═══════════════════════════════════════════════════════════
   VIDEO-EMBED (Aktuelles-Beiträge)
═══════════════════════════════════════════════════════════ */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--black);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed-social {
  padding-top: 125%; /* Instagram-Embeds sind hochkant (Post 4:5, Reel 9:16) statt 16:9 */
}
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════
   LEISTUNG – DETAILSEITE
═══════════════════════════════════════════════════════════ */
.leistung-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 600px) {
  .leistung-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .leistung-hero-media { order: -1; }
}

/* ═══════════════════════════════════════════════════════════
   GALERIE / LIGHTBOX
═══════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--gray-2);
}
.gallery-item .video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-top: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: auto;
}
.gallery-item img:not(.img-fit-bg) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.gallery-item:hover img:not(.img-fit-bg) { transform: scale(1.05); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer-red-sep { height: 8px; background: var(--red); }

.footer { background: var(--blue); color: rgba(255,255,255,0.88); padding: 0 88px 40px; }

.footer-slogan {
  font-family: 'MV Boli', cursive;
  font-size: 40px;
  font-weight: normal;
  color: var(--white);
  text-align: center;
  padding: 40px 88px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.33);
  margin: 0 -88px 40px;
  line-height: 1.2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-top: 40px;
}

.footer-logo {
  margin-bottom: 16px;
  background: var(--white);
  display: inline-block;
  padding: 10px 14px;
  border-radius: 6px;
}
.footer-logo img { height: 42px; display: block; }

.footer-claim {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 22px;
  color: var(--white);
  font-weight: 600;
  max-width: 440px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.90);
  align-items: center;
}
.footer-contact-item a { color: rgba(255,255,255,0.90); text-decoration: none; }
.footer-contact-item a:hover { color: var(--white); }

.ci-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; color: var(--red);
}
.ci-icon img { width: 100%; height: 100%; object-fit: contain; }

.footer-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links li a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links li a:hover { color: var(--white); }

.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin-bottom: 28px; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.78); flex-wrap: wrap; gap: 12px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--white); }


/* ── Filter-Pills (Projekte-Seite) ─────────────────────────── */
.filter-pill {
  display: inline-block;
  padding: 7px 14px;
  border: 2px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--white);
  color: var(--black);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filter-pill:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
}
.filter-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(14,59,96,0.25);
}
.filter-pill.active:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}
.filter-pill-reset {
  display: inline-block;
  padding: 7px 14px;
  border: 2px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-3);
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
}
.filter-pill-reset:hover {
  border-color: var(--gray-3);
  color: var(--black);
}

/* ── Blocksatz mit Silbentrennung (wiederverwendbar) ────────── */
.text-justify {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .section { padding: 80px 56px; }
  .footer { padding: 0 56px 40px; }
  .footer-slogan { padding: 36px 56px 28px; margin: 0 -56px 36px; }
}

@media (max-width: 900px) {
  /* Nav */
  .nav { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); padding: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); gap: 8px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { height: auto; min-height: 520px; }
  .hero-content { padding: 130px 28px 40px; max-width: 100%; }
  .hero-headline { font-size: 30px; }
  .hero-badge-10 { width: 110px; top: 16px; right: 16px; }

  /* Counter */
  .counter-bar { grid-template-columns: 1fr 1fr; }
  .counter-cell:nth-child(2n+1)::before { display: none; }

  /* Sections */
  .section { padding: 64px 28px; }

  /* Grids */
  .services-grid,
  .projects-grid,
  .gallery-grid { grid-template-columns: 1fr 1fr; }

  .about-split        { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid  { grid-template-columns: 1fr; }
  .video-teaser       { grid-template-columns: 1fr; }
  .video-side         { order: -1; }
  .video-text-side    { padding: 48px 28px; }

  /* Footer */
  .footer { padding: 0 28px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 0; }
  .footer-slogan { padding: 28px 28px 22px; margin: 0 -28px 32px; font-size: 26px; }

  /* Page header */
  .page-header { padding: 40px 28px; }
}

@media (max-width: 600px) {
  .services-grid,
  .projects-grid,
  .gallery-grid { grid-template-columns: 1fr; }

  .counter-bar { grid-template-columns: 1fr 1fr; }

  /* Hero: 10-Jahre-Badge kleiner, damit er den Eyebrow-Text nicht mehr überdeckt */
  .hero-badge-10 { width: 84px; top: 14px; right: 14px; }
  .hero-content  { padding-top: 110px; }

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

  .projects-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  .hero-btns { flex-direction: column; }
  .news-item { grid-template-columns: 80px 1fr; gap: 16px; }
  .news-img  { width: 80px; height: 80px; }
}

@media (max-width: 450px) {
  .hero { height: 100vh; min-height: 100vh; }
  .hero-scroll-hint { display: flex; }
  /* Badge wieder größer, überschreibt die Verkleinerung ab 600px */
  .hero-badge-10 { width: 110px; top: 32px; right: 32px; }
}
