/* Root color system (tweak freely) */
:root {
  --bg: #ffffff; /* You may switch to rgb(218,187,140) or a light gray */
  --bg-contrast: #f7f5f2; /* soft neutral section background */
  --brand: #2f6f3e; /* forest green accent */
  --brand-alt: #6b4f3a; /* warm brown accent */
  --brand-badge: #a84045; /* dark red accent for badges */
  --text: #2b2b2b;
  --muted: #6c757d;
  --shadow: 0 0.5rem 1rem rgba(0,0,0,.08);
  --radius: 1rem;
}

/* Hero-Buttons in #839227 (nur im #hero Section) */
#hero .btn-success {
  background-color: #839227;
  border-color: #839227;
}
#hero .btn-success:hover,
#hero .btn-success:focus {
  background-color: #6f7c21; 
  border-color: #6f7c21;
}
#hero .btn-success:focus {
  box-shadow: 0 0 0 .2rem rgba(131, 146, 39, 0.4);
}

#hero .btn-outline-success {
  color: #839227;
  border-color: #839227;
  background-color: transparent;
}
#hero .btn-outline-success:hover,
#hero .btn-outline-success:focus {
  color: #ffffff;
  background-color: #839227;
  border-color: #839227;
}
#hero .btn-outline-success:focus {
  box-shadow: 0 0 0 .2rem rgba(131, 146, 39, 0.35);
}

/* Global reset-ish */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Quicksand', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1.6;
}

/* Accessibility */
.sr-only.sr-only-focusable:active, .sr-only.sr-only-focusable:focus {
  position: static;
  width: auto; height: auto; margin: 0;
  overflow: visible; clip: auto;
}

/* Navbar */
.custom-navbar .brand-text { font-weight: 700; }
.logo-placeholder {
  display:inline-block; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-alt));
}
.navbar-light .navbar-nav .nav-link {
  font-weight: 600;
}
.navbar-light .navbar-nav .nav-link:hover {
  color: var(--brand);
}

/* Hero */
.hero-section {
  background:
    radial-gradient(1200px 500px at right -200px top -200px, rgba(47,111,62,0.08), transparent 70%),
    radial-gradient(900px 400px at left -150px bottom -150px, rgba(107,79,58,0.07), transparent 70%);
}
.hero-photo img { border-radius: var(--radius); }
.leaf-divider {
  height: 20px;
  background:
    linear-gradient(135deg, rgba(47,111,62,.15), rgba(107,79,58,.15));
  mask-image: radial-gradient(12px at 8px 10px, #000 98%, transparent 100%);
  opacity: .5;
}

/* Sections */
.section-pad { padding: 3rem 0; }
.section-title {
  font-weight: 800; margin-bottom: 1rem;
  color: #839227;
}
.bg-contrast {
  background: var(--bg-contrast);
}

/* Badges */
.badge-success {
  background-color: var(--brand-badge) !important;
  color: #ffffff;
}

/* Check list */
.checklist { padding-left: 1.1rem; }
.checklist li { margin-bottom: .4rem; }

/* Cards and images */
.card { border: 0; border-radius: var(--radius); }
.card-img-top { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.shadow-sm { box-shadow: var(--shadow) !important; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.gallery-item { display: block; position: relative; }
.gallery-item img {
  width: 100%; height: auto; display: block; border-radius: .75rem;
  box-shadow: var(--shadow);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center;
  z-index: 1050; padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 86vh; border-radius: .5rem; box-shadow: var(--shadow);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.5rem;
  display: grid; place-items: center;
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,.25);
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
}

/* Back to top */
.back-to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1040;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--brand); color: #fff; box-shadow: var(--shadow);
  cursor: pointer; display: none;
}
.back-to-top.show { display: inline-grid; place-items: center; }

/* Small utilities */
.copy-feedback { font-size: .875rem; color: var(--muted); }

/* Responsive tweaks */
@media (min-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Spenden: */
#spenden code {
  color: var(--text);
  background: transparent;
  white-space: nowrap; /* avoid ugly wraps */
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
  padding: 0;          /* remove inline code padding from BS4 */
  border-radius: 0;
}
#spenden dt { color: var(--muted); font-weight: 600; }
#spenden dd { margin-bottom: .5rem; }

/* Spenden: Girocode */
#spenden img {
  max-width: 220px;
  height: auto;
}