/* ─────────────────────────────────────────────────────
   Hausmeisterservice – Custom CSS
   Tailwind für Utilities, dieses File für Design-Tokens
   und komplexe Komponenten
───────────────────────────────────────────────────── */

/* CSS Custom Properties (Design-Tokens) */
:root {
  --color-primary:        #215748;
  --color-primary-light:  #2d7060;
  --color-primary-dark:   #163d32;
  --color-primary-hover:  #1a4639;
  --color-accent:         #d4a853;
  --color-accent-light:   #e0bc7a;
  --color-accent-dark:    #b88a3a;
  --color-surface:        #f0f4f2;
  --color-surface-dark:   #e2ece7;

  --shadow-sm:  0 1px 3px  rgba(33, 87, 72, 0.08);
  --shadow-md:  0 4px 12px rgba(33, 87, 72, 0.12);
  --shadow-lg:  0 8px 24px rgba(33, 87, 72, 0.16);

  --radius-md:  8px;
  --radius-lg:  16px;
  --transition: 200ms ease;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(33, 87, 72, 0.07);
  box-shadow: var(--shadow-sm);
  transition: background-color 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

/* Transparent-Zustand über dem Hero */
.site-header.header-transparent {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.site-header.header-transparent .nav-link {
  color: rgba(255, 255, 255, 0.9);
}
.site-header.header-transparent .nav-link:hover {
  color: #ffffff;
}
.site-header.header-transparent #headerTitle {
  color: #ffffff;
}
.site-header.header-transparent #headerLogo {
  filter: brightness(0) invert(1);
}
.site-header.header-transparent #headerBtn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.site-header.header-transparent #headerBtn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.site-header.header-transparent #navToggle {
  color: rgba(255, 255, 255, 0.9);
}

/* Opaque-Zustand (nach dem Scrollen) */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(33, 87, 72, 0.07);
}
.site-header.scrolled .nav-link {
  color: #4b5563;
}
.site-header.scrolled .nav-link:hover {
  color: var(--color-primary);
}
.site-header.scrolled #headerTitle {
  color: var(--color-primary);
}
.site-header.scrolled #headerBtn {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
}
.site-header.scrolled #headerBtn:hover {
  background: var(--color-primary-hover);
}
.site-header.scrolled #navToggle {
  color: #4b5563;
}

/* ── Hero ── */
.hero-section {
  height: 100vh;
  height: 100dvh; /* Mobile Browser-Leiste berücksichtigen */
}

/* ── Service Cards ── */
.service-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

/* ── Prose (Impressum / Datenschutz) ── */
main .prose h2 {
  color: #1a1a1a;
  font-weight: 600;
}

/* ── Focus Visible ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ── Logo weiß (im dunklen Footer via CSS-Filter) ── */
.logo-white {
  filter: brightness(0) invert(1);
}

/* ── Gallery ── */
.gallery-card {
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  transform: translateY(100%);
  transition: transform 200ms ease;
}

.gallery-card:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-badge {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

/* ── Floating WhatsApp Button ── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 13px 20px 13px 16px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: all 200ms ease;
}

.wa-float:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

.wa-float-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.wa-float-label {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .wa-float {
    border-radius: 50%;
    padding: 14px;
  }
  .wa-float-label {
    display: none;
  }
}

/* ── Scrollbar (optional, nur Webkit) ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: var(--color-primary-light); border-radius: 3px; }
