/* ============================================================
   Gartenpflege Buzhala · Hauptseiten-Komponenten
   Moderne Header-, Footer- & Navigations-Styles, identisch
   mit der Optik auf der Startseite. Wird ZUSÄTZLICH zu
   brand.css eingebunden — überschreibt dessen Subpage-Header
   und -Footer für ein einheitliches Layout auf allen Seiten.
   ============================================================ */

/* =================== HEADER (modern, wie Startseite) =================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fbfaf6;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px -4px rgba(11,31,23,0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
  position: relative;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1.05rem;
  color: var(--primary-darker);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
  display: grid; place-items: center;
  color: white; flex-shrink: 0;
  box-shadow: 0 4px 10px -4px rgba(31,107,74,.5);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { line-height: 1.15; color: var(--ink); }
.brand-text .small { display: block; font-size: 0.72rem; color: var(--ink-soft); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links {
  display: flex; gap: 26px;
  list-style: none; margin: 0 auto; padding: 0;
  font-size: 0.95rem; font-weight: 500;
}
.nav-links a { color: var(--ink); transition: color .15s; text-decoration: none; }
.nav-links a:hover { color: var(--primary-dark); text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary);
  color: white !important;
  padding: 13px 20px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all .18s ease;
  box-shadow: 0 4px 14px -4px rgba(31,107,74,.5);
  text-decoration: none;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); text-decoration: none; }
.nav-cta svg { width: 16px; height: 16px; }
.nav-cta-group { display: inline-flex; align-items: center; gap: 8px; }
.nav-phone-list { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); }
.nav-phone-list .nav-phone-link { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-phone-list .nav-phone-link:hover { color: var(--primary-dark); text-decoration: underline; }
.nav-phone-list .nav-phone-link strong { color: var(--primary-dark); font-weight: 700; }
.nav-phone-list .nav-phone-sep { color: var(--line); }
@media (max-width: 960px) { .nav-phone-list { display: none; } }
.nav-cta-mobil {
  background: #128C7E; font-size: 0.92rem; font-weight: 700;
}
.nav-cta-fest {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: white !important;
  border: 1px solid var(--primary-dark);
  padding: 9px 14px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  transition: all .18s ease;
  text-decoration: none;
}
.nav-cta-fest:hover { background: var(--primary-dark); transform: translateY(-1px); text-decoration: none; }
.nav-cta-fest svg { width: 13px; height: 13px; }
@media (max-width: 720px) { .nav-cta-fest { display: none; } }
.menu-toggle {
  display: none;
  background: none; border: none; padding: 8px;
  cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* =================== FOOTER (modern, wie Startseite) =================== */
.site-footer {
  padding: 70px 0 32px;
  background: var(--ink);
  color: rgba(255,255,255,0.92);
}
/* brand.css: .site-footer .wrap ist display:grid — wir wollen aber .footer-grid
   darin. Auf block resetten, damit footer-grid die volle Breite nutzt. */
.site-footer .wrap { display: block; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 44px;
}
.footer-brand .brand { color: white; }
.footer-brand .brand-text { color: white; }
.footer-brand .brand-text .small { color: rgba(255,255,255,0.7); }
.footer-brand .brand-mark {
  background: white;
  color: var(--primary-darker);
}
.footer-brand p { color: rgba(255,255,255,0.85); font-size: 0.95rem; line-height: 1.65; margin-top: 20px; max-width: 380px; }
.site-footer h5 {
  color: white;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; font-size: 0.95rem; line-height: 1.5; }
.site-footer ul.hours { list-style: none; padding: 0; margin: 0; }
.site-footer ul.hours li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer ul.hours li:last-child { border-bottom: 0; }
.site-footer ul.hours li span:first-child { font-weight: 600; flex-shrink: 0; }
.site-footer a { color: rgba(255,255,255,0.78); transition: color .15s; }
.site-footer a:hover { color: var(--turquoise); text-decoration: none; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.footer-cta { font-weight: 600; }

/* =================== Subpage-Hero (von brand.css) =================== */
/* brand.css hat schon Subpage-Styles — diese hier sichern das konsistente
   Look-and-Feel auch wenn brand.css überschrieben wird. */

/* =================== Mobile Sticky-CTA (im Header integriert) =================== */
.sticky-mobile-cta { display: none !important; }
@media (max-width: 720px) {
  .site-header { background: transparent !important; box-shadow: none !important; border-bottom: none !important; }
  .site-header .wrap { display: none !important; }
  .sticky-mobile-cta {
    display: flex !important;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-soft, #f3efe2);
    border-bottom: 1px solid var(--line, #e2e8e3);
    width: 100%;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 6px 18px -8px rgba(11,31,23,0.35);
  }
  .sticky-mobile-cta a {
    flex: 1 1 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 14px !important;
    min-height: 48px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    box-shadow: 0 4px 14px -6px rgba(11,31,23,.3);
    line-height: 1.1;
  }
  .sticky-mobile-cta a.smcall { background: var(--primary); color: white; }
  .sticky-mobile-cta a.smfest { background: var(--primary); color: white; }
  .sticky-mobile-cta a.smwa { background: #25D366; color: white; flex: 0 0 auto; padding: 14px 18px !important; }
  .sticky-mobile-cta a svg { width: 20px !important; height: 20px !important; flex-shrink: 0; }
  .sticky-mobile-cta a:hover { transform: translateY(-1px); }
}

/* =================== Responsive Anpassungen =================== */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
    z-index: 50;
  }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav { padding: 12px 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}

/* =================== COOKIE-BANNER & MODAL (alle Seiten) =================== */
body.has-cookie-banner { padding-bottom: 200px; }
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  background: #ffffff; color: #0e2018;
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: 0 16px 48px -8px rgba(11,31,23,.25), 0 0 0 1px rgba(11,31,23,.06);
  z-index: 200;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  max-width: var(--maxw, 1200px); margin: 0 auto;
}
.cookie-text { flex: 1 1 360px; min-width: 0; }
.cookie-text strong { display: block; margin-bottom: 6px; font-size: 1.08rem; color: #0e2018; }
.cookie-text p { margin: 0; color: #4a5e57; font-size: 0.95rem; line-height: 1.5; }
.cookie-text a { color: var(--primary-dark); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cookie-actions .btn {
  padding: 12px 20px;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
  font-family: 'Poppins', sans-serif;
}
.cookie-actions .btn:focus-visible {
  outline: 3px solid rgba(63,191,181,.45);
  outline-offset: 2px;
}
.cookie-actions .btn-secondary-outline {
  background: rgba(11,31,23,.04);
  color: var(--ink);
  border-color: rgba(11,31,23,.18);
}
.cookie-actions .btn-secondary-outline:hover {
  background: rgba(11,31,23,.09);
  border-color: rgba(11,31,23,.32);
  transform: translateY(-1px);
}
.cookie-actions .btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px -6px rgba(31,107,74,.5);
}
.cookie-actions .btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 6px 18px -6px rgba(31,107,74,.6);
  transform: translateY(-1px);
}
.cookie-actions .btn-ghost {
  background: transparent;
  color: var(--ink-soft, #4a5e57);
  padding: 12px 14px;
  border-color: transparent;
}
.cookie-actions .btn-ghost:hover {
  color: var(--ink);
  background: rgba(11,31,23,.04);
}
.cookie-info-btn {
  background: none; border: 1px solid rgba(11,31,23,.18); color: #0e2018;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 0.78rem; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 4px; vertical-align: middle;
  transition: background-color .15s ease;
}
.cookie-info-btn:hover { background: rgba(11,31,23,.05); }
@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; border-radius: 16px; }
  .cookie-text strong { font-size: 0.95rem; margin-bottom: 3px; }
  .cookie-text p { font-size: 0.82rem; line-height: 1.4; }
  .cookie-actions { width: 100%; gap: 6px; }
  .cookie-actions .btn { flex: 1 1 0; padding: 11px 12px; font-size: 0.85rem; }
  .cookie-actions .btn-ghost { padding-left: 8px; padding-right: 8px; }
  body.has-cookie-banner { padding-bottom: 280px; }
}

/* Cookie-Modal */
.cookie-settings-modal {
  position: fixed; inset: 0;
  background: rgba(11,31,23,.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 250;
  padding: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cookie-settings-modal[hidden] { display: none; }
.cookie-settings-card {
  background: #ffffff; border-radius: 20px; padding: 32px;
  max-width: 520px; width: 100%;
  box-shadow: 0 32px 80px -16px rgba(11,31,23,.4);
  color: #0e2018;
}
.cookie-settings-card h3 { margin: 0 0 8px; font-size: 1.35rem; }
.cookie-settings-card .muted { color: #4a5e57; font-size: 0.95rem; margin: 0 0 22px; }
.cookie-settings-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 22px;
}
.cookie-settings-actions .btn {
  padding: 11px 22px;
  min-height: 42px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cookie-settings-actions .btn:focus-visible {
  outline: 3px solid rgba(63,191,181,.45);
  outline-offset: 2px;
}
.cookie-settings-actions .btn-secondary-outline {
  background: rgba(11,31,23,.04);
  color: var(--ink);
  border-color: rgba(11,31,23,.18);
}
.cookie-settings-actions .btn-secondary-outline:hover {
  background: rgba(11,31,23,.09);
  border-color: rgba(11,31,23,.32);
  transform: translateY(-1px);
}
.cookie-settings-actions .btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px -6px rgba(31,107,74,.5);
}
.cookie-settings-actions .btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 6px 18px -6px rgba(31,107,74,.6);
  transform: translateY(-1px);
}
.cookie-settings-actions .btn-ghost {
  background: transparent;
  color: var(--ink-soft, #4a5e57);
  padding: 11px 14px;
  border-color: transparent;
}
.cookie-settings-actions .btn-ghost:hover {
  color: var(--ink);
  background: rgba(11,31,23,.04);
}
@media (max-width: 480px) {
  .cookie-settings-card { padding: 22px; }
  .cookie-settings-actions { flex-direction: column-reverse; gap: 8px; }
  .cookie-settings-actions .btn { width: 100%; justify-content: center; }
}

/* WICHTIG: .cookie-category braucht position:relative, damit das
   absolut positionierte .cookie-toggle darin landet (und nicht
   am viewport-fixierten Modal vorbei-fliegt). brand.css hat
   diesen Wert nicht gesetzt — hier zentral nachziehen. */
.cookie-category { position: relative; }
/* Toggle */
.cookie-toggle { position: absolute; top: 16px; right: 16px; display: inline-block; width: 48px; height: 26px; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle .slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(11,31,23,.18); border-radius: 26px;
  transition: .25s;
}
.cookie-toggle .slider::before {
  content: ""; position: absolute; height: 20px; width: 20px;
  left: 3px; top: 3px; background: white; border-radius: 50%;
  transition: .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cookie-toggle input:checked + .slider { background: var(--primary); }
.cookie-toggle input:checked + .slider::before { transform: translateX(22px); }

/* Cookie-Settings inline (cookies.html oberhalb der Kategorie-Details) */
.cookie-inline-settings { padding: 32px 0 56px; background: var(--bg-soft, #f3efe2); }
.cookie-inline-settings .wrap { max-width: 720px; }
.cookie-inline-settings .cookie-settings-card { background: #ffffff; box-shadow: 0 16px 48px -8px rgba(11,31,23,.18), 0 0 0 1px rgba(11,31,23,.06); }
.cookie-inline-settings .cookie-category { margin-top: 14px; }
.cookie-inline-settings .cookie-settings-actions { flex-wrap: wrap; }
.cookie-inline-settings .btn { min-width: 140px; }
.cookie-inline-status { margin: 16px 0 0; color: #1b5e20; font-weight: 500; }
.cookie-inline-status.ok::before { content: "✓ "; }