/* ============================================================
   MB Malerei – Stylesheet
   Weißer Hintergrund, schwarze Schrift, Akzent-Buttons.
   Voll responsiv (Desktop / Tablet / Handy).
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --text: #111111;
  --text-muted: #555555;
  --border: #e6e6e6;

  /* Akzentfarbe für Buttons & Haken – hier zentral änderbar */
  --accent: #111111;
  --accent-dark: #333333;

  /* WhatsApp-Grün */
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --max-width: 1180px;
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: hidden; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  line-height: 1.15;
  font-weight: 600;
  color: var(--text);
}

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

.accent-text { color: #ffffff; font-style: italic; }
.hero-title-tail { display: inline; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28); }

/* Schwarzer Button auf dem dunklen Hero – dezenter Rand zur Abgrenzung */
.hero .btn-accent { border-color: rgba(255, 255, 255, 0.25); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-light:hover { background: #fff; color: var(--text); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35); }

.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.wa-icon { width: 22px; height: 22px; }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  border-bottom-color: var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; }
.logo-img { height: 70px; width: auto; display: block; }
.logo-svg { height: 62px; width: auto; }
.logo-mb { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 96px; fill: #111111; }
.logo-word { font-family: "Inter", sans-serif; font-weight: 600; font-size: 34px; letter-spacing: 1px; fill: #1a1a1a; }

/* Helle Logo-Variante (Footer) – weiße Schrift auf dunklem Grund */
.logo-svg-light .logo-mb,
.logo-svg-light .logo-word { fill: #ffffff; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-weight: 500; font-size: 0.97rem; position: relative; padding: 4px 0; }
.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.main-nav ul a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px; height: 22px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; height: 3px; width: 100%;
  background: var(--text); border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: #1a1a1a url('hero-malerei.webp') center/cover no-repeat;
  padding-top: var(--header-h);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding-top: 40px; padding-bottom: 40px; }
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 22px;
}
.hero-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.92);
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  z-index: 2;
}
.scroll-indicator span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ----------------------------- Sections ----------------------------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .kicker { display: block; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img .img-box {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background-color: #ddd;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about-img .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-list { margin: 24px 0 30px; display: grid; gap: 12px; }
.about-list li { position: relative; padding-left: 30px; }
.about-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Cards (Leistungen / Bewertungen) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-rule { display: block; width: 42px; height: 4px; background: var(--text); border-radius: 2px; margin-bottom: 22px; }
.card:hover .card-rule { width: 64px; transition: width 0.25s ease; }
.card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); }

/* Einsatzgebiet */
.service-area {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.service-area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 56px;
  align-items: center;
}
.service-area-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.service-area-points {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.service-area-points h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.service-area-points ul {
  display: grid;
  gap: 14px;
}
.service-area-points li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
}
.service-area-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text);
}

/* Galerie */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.gallery-item {
  flex: 0 1 calc(50% - 11px);
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background-color: #d8d8d8;
  overflow: hidden;
}
.gallery-open {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
  overflow: hidden;
}
.gallery-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-open::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 55%);
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-open::before {
  content: "+";
  position: absolute;
  right: 16px;
  top: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-caption {
  position: absolute; left: 18px; bottom: 14px;
  color: #fff; font-weight: 600; z-index: 2;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-open:hover img,
.gallery-open:focus-visible img { transform: scale(1.04); }
.gallery-open:hover::after,
.gallery-open:focus-visible::after,
.gallery-open:hover::before,
.gallery-open:focus-visible::before { opacity: 1; transform: scale(1); }
.gallery-open:hover .gallery-caption,
.gallery-open:focus-visible .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-open:focus-visible {
  outline: 3px solid #111;
  outline-offset: 4px;
}

/* Galerie Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  grid-template-columns: minmax(44px, 7vw) minmax(0, 1fr) minmax(44px, 7vw);
  grid-template-rows: minmax(52px, 7vh) minmax(0, 1fr) minmax(42px, 6vh);
  align-items: center;
  justify-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.lightbox-figure {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 92px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  background: #222;
}
.lightbox-figure figcaption {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  max-width: min(92%, 620px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.54);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
}
.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
  transform: scale(1.04);
}
.lightbox-close {
  grid-column: 3;
  grid-row: 1;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox-nav {
  width: clamp(42px, 5vw, 58px);
  height: clamp(42px, 5vw, 58px);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.8;
}
.lightbox-prev { grid-column: 1; grid-row: 2; }
.lightbox-next { grid-column: 3; grid-row: 2; }
body.lightbox-open {
  overflow: hidden;
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info > p { color: var(--text-muted); margin-bottom: 28px; }
.contact-list { display: grid; gap: 20px; margin-bottom: 30px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { font-size: 1.4rem; line-height: 1.4; }
.contact-list strong { display: block; font-size: 0.95rem; }
.contact-list a, .contact-list span { color: var(--text-muted); }
.contact-list a:hover { color: var(--accent); }

.contact-form-wrap {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}
.contact-form textarea { resize: vertical; }
.form-note { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 12px; }

/* Rechtliches */
.page-main {
  padding-top: var(--header-h);
}

.legal-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.page-main .legal-section {
  border-top: 0;
}
.legal-wrap {
  max-width: 1000px;
}
.legal-wrap h1,
.legal-wrap h2 {
  margin-bottom: 14px;
}
.legal-wrap h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}
.legal-intro {
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 36px;
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.legal-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.legal-block h2,
.legal-block h3,
.privacy-note h2,
.privacy-note h3 {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  margin-bottom: 14px;
}
.legal-block dl {
  display: grid;
  gap: 12px;
}
.legal-block dt {
  font-weight: 700;
  color: var(--text);
}
.legal-block dd,
.legal-block p,
.privacy-note p {
  color: var(--text-muted);
}
.legal-block a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.privacy-note {
  margin-top: 26px;
  padding: 24px 26px;
  border: 1px dashed #b9b9b9;
  border-radius: var(--radius);
  background: #fff;
}

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: #141414; color: #cfcfcf; padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo-svg-light { height: 90px; margin-bottom: 18px; }
/* Footer-Logo (Foto) weiß einfärben über Invertierung */
.logo-img-light { filter: invert(1); }
.footer-brand .logo-img-light { height: 84px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.95rem; max-width: 280px; }
.footer-col h4 { color: #fff; font-family: "Inter", sans-serif; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a:hover { color: #fff; }
.footer-col li { font-size: 0.95rem; }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--whatsapp);
  font-weight: 600;
}
.footer-social .wa-icon { width: 24px; height: 24px; }
.footer-social:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
}
.footer-bottom p { font-size: 0.86rem; color: #9a9a9a; text-align: center; }

/* ----------------------------- Floating WhatsApp ----------------------------- */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  z-index: 1100;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: waPulse 2.5s infinite;
}
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes waPulse {
  0% { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================================
   RESPONSIVE  –  Tablet
   ============================================================ */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img { max-width: 460px; margin: 0 auto; }
  .service-area-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .legal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .gallery-item { flex-basis: calc(50% - 9px); }
}

/* ============================================================
   RESPONSIVE  –  Handy
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(80%, 320px);
    height: calc(100vh - var(--header-h));
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 28px 28px;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .main-nav ul li { width: 100%; border-bottom: 1px solid var(--border); }
  .main-nav ul a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .main-nav ul a::after { display: none; }
  .nav-cta { margin-top: 22px; width: 100%; }

  .logo-svg { height: 52px; }
  .logo-img { height: 58px; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }

  .hero { min-height: 92vh; }
  .hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 2px;
    overflow-wrap: anywhere;
  }
  .hero-title-tail { display: block; }
  .hero h1,
  .hero-text,
  .hero-buttons {
    max-width: calc(100vw - 36px);
  }
  .hero-text {
    overflow-wrap: break-word;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    white-space: normal;
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: left; }
  .footer-brand .logo-svg-light { height: 80px; }

  .contact-form-wrap { padding: 26px 22px; }
  .service-area-points,
  .legal-block,
  .privacy-note { padding: 22px; }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 56px minmax(0, 1fr) 58px;
    gap: 10px;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }
  .lightbox-close {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .lightbox-figure {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .lightbox-figure img {
    max-height: calc(100vh - 132px);
    border-radius: 6px;
  }
  .lightbox-figure figcaption {
    bottom: 10px;
    max-width: calc(100% - 24px);
    font-size: 0.92rem;
  }
  .lightbox-prev {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
  }
  .lightbox-next {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .gallery-item { flex-basis: 100%; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* ============================================================
   SCROLL-ANIMATIONEN (IntersectionObserver)
   ============================================================ */

/* Basis: unsichtbar, leicht nach unten versetzt */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Sichtbar: normale Position */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Varianten */
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Gestaffelte Cards – Verzögerung per CSS-Variable */
.reveal-stagger {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease calc(var(--stagger, 0) * 120ms),
              transform 0.55s ease calc(var(--stagger, 0) * 120ms);
}
.reveal-stagger.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Seiten-Übergang */
body {
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.page-loaded {
  opacity: 1;
}
body.page-exit {
  opacity: 0;
  transition: opacity 0.28s ease;
}

/* Hero-Entrance */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-kicker  { animation: heroFadeUp 0.7s ease 0.15s both; }
.hero h1      { animation: heroFadeUp 0.7s ease 0.3s  both; }
.hero-text    { animation: heroFadeUp 0.7s ease 0.45s both; }
.hero-buttons { animation: heroFadeUp 0.7s ease 0.6s  both; }

/* --- social links: stack each on its own line, brand colours --- */
.footer-social { display: flex; width: fit-content; }
.footer-social + .footer-social { margin-top: 12px; }
.footer-social .social-icon { width: 24px; height: 24px; }
.footer-social--ig { color: #e1306c; }
.footer-social--fb { color: #1877f2; }
.footer-social--ig:hover,
.footer-social--fb:hover { color: #fff; }
