/* ========== Globale Variablen ========== */
:root {
  --color-primary: #2fe55f;   /* freundliches Hellgrün */
  --color-accent:  #ff9800;   /* dezentes Orange */
  --color-dark:    #23272a;   /* Anthrazit */
  --color-text:    #23272a;
  --color-muted:   #6b7280;
  --color-footer:  #181a1b;
  --color-antrahzit: #303233cc; /* für dunkle Bereiche */

  --radius: 14px;
  --shadow-1: 0 4px 20px rgba(0,0,0,.08);
  --shadow-2: 0 8px 40px rgba(0,0,0,.12);
  --transition: 180ms ease;

  --container: 1100px;
}

/* ========== Basics ========== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: linear-gradient(rgba(0,0,0,0.28), rgba(0, 0, 0, 0.549)), url(images/garten-bg.webp) center/cover no-repeat fixed;
  line-height: 1.6;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; border: none; }
a { color: var(--color-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--color-muted); }

/* Accessibility */
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: #fff; color: #000; padding: .5rem .8rem; z-index: 9999;
}
.skip-link:focus { left: .5rem; top: .5rem; border-radius: 6px; }

/* ========== Header ========== */
.site-header {
  background: var(--color-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.25rem;
  position: sticky; top: 0; z-index: 50;
}
.brand { display:flex; flex-direction:column; line-height:1.1; }
.logo { font-weight: 900; letter-spacing: .5px; color: #ffffff; font-size: 1.2rem; }
.subline { font-size: .85rem; color: #d1d5db; }

.main-nav ul {
  display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0;
}
.main-nav a { color: #fff; font-weight: 600; }
.main-nav a:hover { color: var(--color-primary); }

/* ========== Layout / Sections ========== */
main { max-width: var(--container); margin: 2rem auto; padding: 0 1rem; }

/* HERO: sanfter Verlauf + Bildbox */
.hero {
  background: linear-gradient(180deg, var(--color-primary) 0%, #0c791c 100%);
  color: #0f172a;
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow-1);
}
.hero h1 { margin-top: 0; }

.hero .hero-img {
  margin: 1.2rem auto 0;
  width: 100%;
  height: 260px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  background: #0a0a0a;
}
.hero .hero-img::before {
  content: "";
  position: absolute; inset: 0;
  background: url('images/garten1.webp') center/cover no-repeat;
  filter: saturate(0.9);
}
.hero .hero-img::after {
  /* leichte Abdunkelung */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.28));
}

.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }

.section { margin-top: 2rem; }
.section h2 { margin-bottom: .2rem; }
.notice {
  margin-top: 1rem;
  background: #fff;
  border-left: 4px solid var(--color-accent);
  padding: .8rem 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
}

/* Cards & Grid */
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.compact label { display: block; font-size: .92rem; }
.card {
  background: var(--color-antrahzit);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-1);
}
.list-plain { padding-left: 1.2rem; }
.list-plain li { margin: .25rem 0; }

/* Region tags */
.tags {
  display: flex; gap: .5rem; list-style: none; padding: 0; flex-wrap: wrap;
}
.tags li {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: .35rem .6rem;
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.gallery img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

/* Kontakt */
.contact { background: var(--color-antrahzit); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 1rem; }

/* SEO section */
.seo {
  background: var(--color-antrahzit);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-1);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .6rem 1rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; cursor: pointer; transition: var(--transition);
}
.btn-primary {
  background: var(--color-dark); color: #fff; border-color: var(--color-dark);
}
.btn-primary:hover { background: #111827; }
.btn-ghost { background:var(--color-dark); color: var(--color-primary); border-color: var(--color-dark); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.981); }
.btn-secondary { background: var(--color-accent); color: #261818; }
.btn-danger { background: #d11; color: #fff; }

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: #fff;
  padding: 1.2rem 1rem;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  text-align: center;
  margin-top: 3rem;
}
.site-footer nav {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: .4rem;
}
.site-footer a { color: #fff; font-weight: 600; }
.site-footer a:hover { color: var(--color-primary); }

/* Versteckter Admin-Button: 70px unter Header, rechts */
#admin-login-btn {
  position: fixed;
  top: 70px;
  right: 0;
  width: 64px; height: 64px;
  opacity: .02;
  background: transparent;
  border: 0;
  z-index: 60;
  cursor: pointer;
}

/* ========== Modals mit Scrolling-Fix ========== */
.modal {
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.28);
  z-index: 1000;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.modal-content {
  background: #fff; color: var(--color-text);
  border-radius: 12px; padding: 1rem 1.2rem;
  width: min(860px, 96vw);
  box-shadow: var(--shadow-2); position: relative;
  max-height: 90vh; overflow: auto;
}
.modal-content.admin {
  width: min(980px, 96vw);
  max-height: 92vh;
  display: grid; gap: 1rem;
}
.close {
  position: absolute; top: 8px; right: 12px;
  font-size: 1.8rem; background: none; border: none; cursor: pointer; color: var(--color-accent);
}
.modal .error { color: #d11; min-height: 20px; }

/* Admin editor list */
.editor-list { display: grid; gap: .8rem; margin: .6rem 0 1rem; }
.editor-item { display: grid; gap: .3rem; }
.editor-item textarea {
  width: 100%; min-height: 120px; resize: vertical;
  padding: .6rem; border-radius: 8px; border: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 900px) {
  .grid.two { grid-template-columns: 1fr; }
  .grid.three { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .hero .hero-img { height: 200px; }
  .modal { padding: 1rem .5rem; }
  .modal-content, .modal-content.admin {
    width: 98vw;
    max-height: 96vh;
  }
}

/* ===== Spacing-Boost ===== */
:root {
  /* zentrale Schieber für “mehr Scrollen” */
  --section-gap: clamp(8.2rem, 4vw, 4rem);
  --block-gap: clamp(1.2rem, 2.5vw, 2rem);
  --hero-min-h: 460px;        /* vorher 260–280px */
  --gallery-row-h: 260px;     /* vorher 220px */
}

/* Mehr Luft zwischen Abschnitten */
.section { margin-top: var(--section-gap); }

/* Cards und Notice etwas großzügiger */
.card { padding: 1.25rem; }
.notice { padding: 1rem 1.25rem; }

/* Hero größer machen */
.hero { padding: 2.2rem 1.6rem; }
.hero .hero-img { height: var(--hero-min-h); }

/* Galerie-Bilder höher + Grid-Gap größer */
.gallery { gap: var(--block-gap); }
.gallery img { height: var(--gallery-row-h); }

/* Kontakt- und SEO-Boxen luftiger */
.contact { padding: 1.25rem; }
.seo { padding: 1.25rem; }

/* Header unten etwas mehr Abstand erzeugen (indirekt mehr Scroll) */
main { margin: calc(var(--section-gap) - 1rem) auto; }

/* Mobile: behutsam skalieren, damit es nicht übertrieben wirkt */
@media (max-width: 600px) {
  :root {
    --section-gap: clamp(1.6rem, 5vw, 2.4rem);
    --block-gap: clamp(1rem, 3.5vw, 1.4rem);
    --hero-min-h: 300px;
    --gallery-row-h: 220px;
  }
}

/* Alle Sections: genug Abstand vom Sticky-Header */
section[id] {
  scroll-margin-top: 100px;  /* Abstand nach Klick auf internen Link */
}

/* ===== Textfarbe für Hintergrundbereiche ===== */
body {
  color: #f5f5f5; /* Standardtext jetzt hell */
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
}

a { color: #e0e0e0; }
a:hover { color: var(--color-primary); }

/* Muted-Text auch heller machen */
.muted { color: #dadada; }

/* ===== Ausnahme: Boxen bleiben dunkel auf hell ===== */
.hero,
.notice,
.tags li,
.gallery img {
  color: var(--color-text);
}

.hero h1, .hero h2, .hero p { color: #0f172a; } /* Hero bleibt dunkel */
.card h2, .notice h2 { color: var(--color-dark); }