:root {
  --navy: #0f172a;
  --orange: #f97316;
  --green-clean: #22c55e;
  --dark-bg: #111827;
  --dark-card: #1e293b;
  --dark-text: #f1f5f9;
  --dark-muted: #cbd5e1;
}

.font-heading { font-family: 'Playfair Display', serif; }
.font-body    { font-family: 'Poppins', sans-serif; }

.animate-hero { opacity: 0; transform: translateY(100px); text-shadow: 0 4px 12px rgba(0,0,0,0.5); }

.animate-hero + p { text-shadow: 0 2px 8px rgba(0,0,0,0.4); }

.group:hover img { transform: scale(1.08); transition: transform 1.2s ease; }

input:focus, select:focus, textarea:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.2) !important;
  outline: none;
}

.lang-btn.active { background: var(--orange); color: white !important; border-color: var(--orange) !important; }

header {
  background: rgba(17,24,39,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(241,245,249,0.1);
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.nav-menu a {
  color: var(--dark-text);
}

.nav-menu a:hover {
  color: var(--orange);
}

.bg-white, .bg-light {
  background-color: var(--dark-card) !important;
}

.text-dark, .text-navy {
  color: var(--dark-text) !important;
}

.text-slate-700 {
  color: var(--dark-muted) !important;
}

/* Uniformizează TOATE imaginile din secțiunea Referenzen / Vorher-Nachher */
#projekte img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: 1.5rem;
  display: block;
}

#projekte img:hover {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

/* ─── LIGHTBOX FIX ───────────────────────────────────────────────────────────
   CSS-ul anterior folosea #lightbox { display: none } care bloca afișarea
   indiferent de clasa .hidden. Tailwind gestionează .hidden = display:none,
   iar .flex din HTML aplică display:flex când .hidden este eliminată de JS.
   Linia conflictuală a fost eliminată. Cursor pointer pe fundal pentru UX.
   ─────────────────────────────────────────────────────────────────────────── */
#lightbox {
  cursor: pointer;
}

#lightbox img {
  cursor: default;
}

/* ─── BUTON GALERIE SUB SERVICII – doar pe mobil ─────────────────────────────
   Apare sub cardul "Nichttragende Wände entfernen", lat cat grila, portocaliu.
   Pe desktop ascuns — galeria e accesibila din nav.
   ─────────────────────────────────────────────────────────────────────────── */
.mobile-gallery-btn-wrap {
  display: none;
  width: 100%;
  margin-top: 1.5rem;
}

.mobile-gallery-btn {
  display: block;
  width: 100%;
  background: #f97316;
  color: white;
  text-align: center;
  padding: 1.2rem 2rem;
  border-radius: 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

.mobile-gallery-btn:hover {
  background: #ea580c;
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .mobile-gallery-btn-wrap {
    display: block;
  }
}

/* ─── GALERIE ────────────────────────────────────────────────────────────────
   Masonry cu CSS columns. Fiecare slot se ascunde automat dacă poza lipsește
   (onerror în HTML). Imaginile existente apar cu hover scale + orange overlay.
   ─────────────────────────────────────────────────────────────────────────── */
.gallery-slot {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.gallery-slot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-slot:hover img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

.gallery-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 1rem;
  pointer-events: none;
}

.gallery-slot:hover::after {
  opacity: 1;
}

/* ─── MOBIL + GERMANĂ ────────────────────────────────────────────────────────
   Problema: "SAUBER & ZUVERLÄSSIG" este un text lung în germană.
   La text-6xl fix (3.75rem) depășea ecranul pe mobil.
   Soluție: font-size bazat pe lățimea viewport (8.5vw) cu un maxim de 2.8rem.
   La 390px lățime → 8.5vw ≈ 33px = 2.06rem → textul încape pe ecran corect.

   Butoanele hero (flex-col pe mobil) primesc width: auto + mx: auto
   pentru a nu mai ieși full-width și a arăta ca niște butoane proporționale.
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {

  /* Slogan – responsive pe baza lățimii ecranului, nu valoare fixă */
  html:lang(de) .animate-hero {
    font-size: clamp(1.6rem, 8.5vw, 2.8rem) !important;
    line-height: 1.15;
  }

  /* Butoane hero: width auto + centrate, padding și font -10% față de original */
  html:lang(de) button[data-de="Preis schätzen"] {
    width: auto !important;
    display: inline-block !important;
    padding-left: 2.25rem !important;
    padding-right: 2.25rem !important;
    padding-top: 1.125rem !important;
    padding-bottom: 1.125rem !important;
    font-size: 1.0rem !important;
  }

  html:lang(de) .cta-btn {
    width: auto !important;
    display: inline-block !important;
    padding-left: 2.25rem !important;
    padding-right: 2.25rem !important;
    padding-top: 1.125rem !important;
    padding-bottom: 1.125rem !important;
    font-size: 1.0rem !important;
  }

  /* Container butoane hero – centrat pe mobil */
  html:lang(de) .flex.flex-col.sm\:flex-row {
    align-items: center !important;
  }

  /* Buton header: dimensiuni -10% față de original */
  html:lang(de) header .cta-btn {
    padding-left: 1.575rem !important;
    padding-right: 1.575rem !important;
    padding-top: 0.675rem !important;
    padding-bottom: 0.675rem !important;
    font-size: 0.8rem !important;
  }
}
