/* =============================================
   Transport & Hausmeisterservice Oettinger
   style.css – Mobile-first, kein Framework
   ============================================= */

/* ---- CSS-Variablen ---- */
:root {
  --color-sage: #7aaa8a;
  /* Salbeigrün */
  --color-mint: #a8d5b5;
  /* Mintgrün hell */
  --color-mint-light: #d4edd9;
  /* sehr helles Mintgrün */
  --color-white: #ffffff;
  --color-bg: #f8faf8;
  /* leicht grünliches Weiß */
  --color-anthrazit: #2c2e2c;
  /* dunkler Fließtext */
  --color-muted: #6b7c6b;
  /* gedämpfter Text */
  --color-border: #daeada;
  --color-shadow: rgba(44, 80, 55, 0.12);
  --color-whatsapp: #25d366;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;

  --max-width: 1100px;
  --section-gap: 80px;
  --transition: 0.25s ease;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-anthrazit);
  background: var(--color-bg);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-sage);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-anthrazit);
}

ul {
  list-style: none;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-sage);
  color: var(--color-white);
  border-color: var(--color-sage);
}

.btn-primary:hover {
  background: #5e9470;
  border-color: #5e9470;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-shadow);
}

.btn-outline {
  background: transparent;
  color: var(--color-sage);
  border-color: var(--color-sage);
}

.btn-outline:hover {
  background: var(--color-sage);
  color: var(--color-white);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-color: var(--color-whatsapp);
  padding: 10px 22px;
  font-size: 0.95rem;
}

.btn-whatsapp:hover {
  background: #1ebe5b;
  border-color: #1ebe5b;
  color: var(--color-white);
}

.btn.full-width {
  width: 100%;
}

/* =============================================
   HEADER PHONE
   ============================================= */
.header-phone {
  display: none;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-sage);
  border: 2px solid var(--color-sage);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
}

.header-phone:hover {
  background: var(--color-sage);
  color: var(--color-white);
}

@media (min-width: 900px) {
  .header-phone {
    display: flex;
  }
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 22px rgba(37, 211, 102, 0.50);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.65);
  color: var(--color-white);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: white;
  flex-shrink: 0;
}


.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px var(--color-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-anthrazit);
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-sub {
  font-weight: 400;
  color: var(--color-sage);
}

.logo-img {
  height: 76px;
  width: auto;
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--color-anthrazit);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-sage);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.main-nav a:hover {
  color: var(--color-sage);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-anthrazit);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  overflow: hidden;
  min-height: 70vh;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 48%;
  min-height: 70vh;
  width: 100%;
}

.hero-text {
  background: linear-gradient(160deg, #243f2d 0%, #2e5438 50%, #3a6645 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 6% 60px 8%;
}

.hero-photo {
  overflow: hidden;
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-mint);
  border: 1px solid rgba(168, 213, 181, 0.4);
  border-radius: var(--radius-pill);
  padding: 5px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-brand {
  color: var(--color-mint);
}

.hero-slogan {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin-bottom: 24px;
}

.hero-usps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-usps span {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Hero – Responsive */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .hero-text {
    padding: 90px 6% 40px;
    order: 1;
  }

  .hero-photo {
    order: 2;
    height: 55vw;
    min-height: 220px;
  }
}

@media (max-width: 480px) {
  .hero-photo {
    height: 65vw;
  }
}

/* =============================================
   SECTIONS – gemeinsame Styles
   ============================================= */
.section {
  padding: var(--section-gap) 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-anthrazit);
  text-align: center;
  margin-bottom: 12px;
}

.section-title.left {
  text-align: left;
}

.section-sub {
  text-align: center;
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* =============================================
   LEISTUNGEN – Cards
   ============================================= */
.leistungen {
  background: var(--color-white);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--color-shadow);
}

.card-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-anthrazit);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--color-sage);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.45;
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card ul li {
  color: var(--color-muted);
  font-size: 0.95rem;
  padding-left: 18px;
  position: relative;
}

.card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-sage);
  font-weight: 700;
}

/* =============================================
   ÜBER UNS
   ============================================= */
.ueber-uns {
  background: var(--color-mint-light);
}

.ueber-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.ueber-bild {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-mint);
}

.ueber-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ueber-bild-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-sage) 100%);
}

.ueber-text p {
  color: var(--color-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.ueber-text p:last-of-type {
  margin-bottom: 28px;
}

.ueber-text strong {
  color: var(--color-anthrazit);
}

/* =============================================
   GALERIE
   ============================================= */
.galerie {
  background: var(--color-white);
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.galerie-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-mint-light);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.galerie-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px var(--color-shadow);
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.galerie-item:hover img {
  transform: scale(1.04);
}

.galerie-item.galerie-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-sage);
}

.galerie-item.galerie-placeholder::before {
  content: '🌿';
}

.galerie-hinweis {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* =============================================
   KONTAKT
   ============================================= */
.kontakt {
  background: var(--color-bg);
}

.kontakt-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.kontakt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 20px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-anthrazit);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.kontakt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--color-shadow);
  border-color: var(--color-sage);
  color: var(--color-anthrazit);
}

.kontakt-card--whatsapp {
  border-color: var(--color-whatsapp);
  background: #f0fdf4;
}

.kontakt-card--whatsapp:hover {
  background: var(--color-whatsapp);
  border-color: var(--color-whatsapp);
  color: var(--color-white);
}

.kontakt-card-icon {
  font-size: 2.4rem;
}

.kontakt-card strong {
  font-size: 1.1rem;
  font-weight: 700;
}

.kontakt-card span:last-child {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.kontakt-card--whatsapp:hover span:last-child {
  color: rgba(255, 255, 255, 0.85);
}

.kontakt-card--email {
  border-color: var(--color-sage);
  background: var(--color-mint-light);
}

.kontakt-card--email:hover {
  background: var(--color-sage);
  border-color: var(--color-sage);
  color: var(--color-white);
}

.kontakt-card--email span:last-child {
  font-size: 0.76rem;
  word-break: break-all;
}

.kontakt-card--email:hover span:last-child {
  color: rgba(255, 255, 255, 0.85);
}

.kontakt-hinweis {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
  padding: 16px;
  background: var(--color-mint-light);
  border-radius: var(--radius-md);
}

/* =============================================
   WARUM WIR
   ============================================= */
.warum-wir {
  background: var(--color-sage);
}

.warum-wir .section-title {
  color: var(--color-white);
}

.warum-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.warum-item {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  color: var(--color-white);
  transition: background var(--transition);
}

.warum-item:hover {
  background: rgba(255, 255, 255, 0.22);
}

.warum-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.warum-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.warum-item p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =============================================
   SERVICEGEBIET / KARTE
   ============================================= */
.servicegebiet {
  background: var(--color-bg);
}

.karte-wrapper {
  position: relative;
}

#karte {
  height: 420px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  box-shadow: 0 4px 20px var(--color-shadow);
  z-index: 0;
}

.karte-standort-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  white-space: nowrap;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

@media (max-width: 640px) {
  #karte {
    height: 300px;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-anthrazit);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 32px;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-size: 1.3rem;
  color: var(--color-white);
}

.footer-slogan {
  font-style: italic;
  color: var(--color-mint);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 8px 0;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--color-mint);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* =============================================
   RESPONSIVE – Tablet (≥ 640px)
   ============================================= */
@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .galerie-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ueber-inner {
    grid-template-columns: 1fr 1fr;
  }

  .kontakt-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .warum-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================
   RESPONSIVE – Desktop (≥ 900px)
   ============================================= */
@media (min-width: 900px) {
  .nav-toggle {
    display: none !important;
  }

  .main-nav {
    display: flex !important;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .galerie-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ueber-inner {
    grid-template-columns: 420px 1fr;
    gap: 60px;
  }

  .kontakt-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile Nav Overlay */
@media (max-width: 899px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    box-shadow: 0 8px 24px var(--color-shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 24px;
    border-radius: 0;
  }

  .main-nav a::after {
    display: none;
  }
}

/* =============================================
   MODALS (Impressum / Datenschutz)
   ============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.modal--open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.25);
}

.modal-box:focus {
  outline: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--color-anthrazit);
}

.modal-box h2 {
  font-size: 1.6rem;
  color: var(--color-anthrazit);
  margin-bottom: 20px;
  padding-right: 32px;
}

.modal-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-anthrazit);
  margin: 20px 0 6px;
}

.modal-box p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.65;
}

.modal-box a {
  color: var(--color-sage);
}

.modal-box small {
  font-size: 0.82rem;
  color: var(--color-muted);
}

@media (max-width: 480px) {
  .modal-box {
    padding: 28px 20px;
  }
}

/* =============================================
   GALERIE
   ============================================= */

.galerie {
  background: var(--color-bg);
}

.galerie-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.galerie-btn {
  padding: .45rem 1.1rem;
  border: 2px solid var(--color-sage);
  background: transparent;
  color: var(--color-sage);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: .88rem;
  font-family: var(--font-body);
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.galerie-btn.active,
.galerie-btn:hover {
  background: var(--color-sage);
  color: #fff;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.galerie-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  background: var(--color-mint-light);
  cursor: pointer;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.galerie-item:hover {
  box-shadow: 0 6px 24px var(--color-shadow);
  transform: translateY(-2px);
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.galerie-item:hover img {
  transform: scale(1.06);
}

.galerie-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  color: #fff;
  padding: 1.4rem .75rem .55rem;
  font-size: .78rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.galerie-item:hover .galerie-label {
  opacity: 1;
}

.galerie-badge {
  position: absolute;
  top: .55rem;
  left: .55rem;
  background: var(--color-sage);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .22rem .65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .04em;
  pointer-events: none;
}

.galerie-badge--vorher {
  background: #d97c3a;
}

.galerie-badge--nachher {
  background: var(--color-sage);
}

.galerie-item--highlight {
  grid-column: span 2;
}

.galerie-item.hidden {
  display: none;
}

/* Lightbox-Overlay (bereits per JS erstellt) */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  cursor: zoom-out;
  animation: fadeIn .2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .galerie-item--highlight {
    grid-column: span 1;
  }
}

/* =============================================
   GALERIE-TEASER (index.html)
   ============================================= */
.galerie-teaser {
  background: var(--color-mint-light);
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: .5rem;
}

.teaser-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.teaser-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--color-shadow);
}

.teaser-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.teaser-item:hover img {
  transform: scale(1.06);
}

.teaser-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(30, 55, 35, 0.75));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.8rem 1rem .8rem;
  transition: opacity .3s;
}

/* =============================================
   PAGE HERO (galerie.html)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--color-sage), #4a7a5a);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero .hero-label {
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: .5rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: .75rem;
}

.page-hero p {
  opacity: .9;
  font-size: 1.05rem;
}

/* Nav-Active für galerie.html */
.nav-active {
  color: var(--color-sage) !important;
  font-weight: 700;
}

/* =============================================
   PROJEKT-SEKTION (galerie.html)
   ============================================= */
.projekt {
  background: var(--color-bg);
}

.projekt--alt {
  background: var(--color-mint-light);
}

.projekt-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.projekt-nr {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-mint);
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.projekt-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-anthrazit);
  margin-bottom: .4rem;
}

.projekt-desc {
  color: var(--color-muted);
  font-size: .97rem;
  line-height: 1.6;
}

/* ---- Schritt-Timeline ---- */
.schritte {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.schritt {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--color-border);
}

.schritt--fertig {
  border-color: var(--color-sage);
  background: #f0f8f2;
}

.schritt-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-anthrazit);
  margin-bottom: 1rem;
}

.schritt-label--zwischen {
  color: var(--color-muted);
}

.schritt-label--fertig {
  color: var(--color-sage);
  font-size: 1.05rem;
}

.schritt-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-sage);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.schritt-nr--check {
  background: #27ae60;
  font-size: 1rem;
}

.schritt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.schritt-grid .galerie-item {
  max-height: 200px;
}

.schritt-grid--single {
  grid-template-columns: minmax(0, 320px);
}

.schritt-pfeil {
  text-align: center;
  font-size: 1.4rem;
  color: var(--color-sage);
  padding: 0;
  line-height: 1;
  user-select: none;
}

/* ---- Vorher / Nachher Vergleich ---- */
.vn-vergleich {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.vn-col {
  flex: 1;
  min-width: 0;
}

.vn-col--vorher {
  border-radius: var(--radius-md);
  padding: 1.2rem;
  background: #fff3ed;
  border: 1px solid #f4c3a0;
}

.vn-col--nachher {
  border-radius: var(--radius-md);
  padding: 1.2rem;
  background: #f0f8f2;
  border: 1px solid var(--color-mint);
}

.vn-titel {
  margin-bottom: 1rem;
}

.vn-badge {
  display: inline-block;
  padding: .3rem 1rem;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
}

.vn-badge--vorher {
  background: #d97c3a;
}

.vn-badge--nachher {
  background: var(--color-sage);
}

.vn-bilder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .6rem;
}

.vn-bilder .galerie-item {
  max-height: 160px;
}

.vn-pfeil {
  font-size: 2rem;
  color: var(--color-sage);
  align-self: center;
  flex-shrink: 0;
  padding: 0 .5rem;
  user-select: none;
}

/* ---- CTA am Seitenende ---- */
.galerie-cta {
  background: var(--color-sage);
  color: #fff;
}

.galerie-cta .section-title,
.galerie-cta .section-sub {
  color: #fff;
}

.galerie-cta .section-sub {
  opacity: .9;
}

/* Responsive */
@media (max-width: 700px) {
  .vn-vergleich {
    flex-direction: column;
  }

  .vn-pfeil {
    transform: rotate(90deg);
    align-self: center;
  }

  .projekt-header {
    flex-direction: column;
    gap: .5rem;
  }

  .projekt-nr {
    font-size: 2.5rem;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .schritt-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .schritt-grid--single {
    grid-template-columns: 1fr;
  }
}