/* =========================================================
   Kleingartenverein Am Schlagbaum e.V. — Mockup v2
   Shared stylesheet for all pages.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --green-700: #3d5e26;
  --green-600: #4f7a31;
  --green-500: #5e8b3a;
  --green-400: #7ea85a;
  --green-200: #c4dca0;
  --green-50:  #eef5dd;

  --cream:     #faf6ec;
  --cream-2:   #f3ecda;
  --sand:      #d9c4a3;
  --terracotta:#c98c5a;
  --amber:     #e4b75e;

  --ink:       #2e3823;
  --ink-soft:  #5a6249;
  --muted:     #8a8773;
  --line:      #e6dfc7;

  /* Calendar status colors */
  --cal-free-bg:    #ffffff;
  --cal-free-bd:    #d9d0b0;
  --cal-free-fg:    #2e3823;
  --cal-req-bg:     #fce5a0;
  --cal-req-bd:     #e6b53d;
  --cal-req-fg:     #7a5a18;
  --cal-busy-bg:    #f7c5c5;
  --cal-busy-bd:    #d05757;
  --cal-busy-fg:    #8a2a2a;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 6px rgba(46, 56, 35, 0.06);
  --shadow-md: 0 8px 24px rgba(46, 56, 35, 0.10);

  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-700); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green-700);
  margin: 0 0 .4em;
  line-height: 1.25;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-600);
  font-size: .8rem;
  margin-bottom: .5rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-50);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-700);
  line-height: 1.1;
}
.brand-tag {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--green-700);
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav-links {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 16px;
  border-top: 1px solid var(--line);
}
.nav-links.open { display: flex; }
.nav-links a {
  display: block;
  padding: 10px 4px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav-links a:last-child { border-bottom: 0; }
.nav-links a.active { color: var(--green-700); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    gap: 6px;
    padding: 0;
    border: 0;
  }
  .nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 0;
    font-weight: 600;
  }
  .nav-links a:hover {
    background: var(--green-50);
    color: var(--green-700);
    text-decoration: none;
  }
  .nav-links a.active {
    background: var(--green-50);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 56ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--green-600);
  color: #fff;
}
.btn-primary:hover { background: var(--green-700); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--green-700);
  border: 1px solid var(--green-400);
}
.btn-ghost:hover { background: var(--green-50); text-decoration: none; }
.btn-block { width: 100%; justify-content: center; }

.hero-illustration {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 10%, #e9f0d3 0%, #c4dca0 50%, #8fb96a 100%);
  box-shadow: var(--shadow-md);
}
.hero-illustration svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

@media (min-width: 820px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
  }
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.section-head p { color: var(--ink-soft); margin-top: 4px; }
.section-head.left { text-align: left; margin: 0 0 28px; }

.bg-cream-2 { background: var(--cream-2); }
.bg-white { background: #fff; }

/* Page header for inner pages */
.page-header {
  padding: 48px 0 32px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 6px; }
.breadcrumbs {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.breadcrumbs a { color: var(--muted); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--green-200), var(--green-400));
  position: relative;
}
.card-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-body { padding: 18px 20px 22px; }
.card-meta {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin: 0; }
.card-link {
  margin-top: 14px;
  font-weight: 700;
  color: var(--green-600);
  align-self: flex-start;
}

/* Hub-style link cards (for Verein subpages) */
.linkcard {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.linkcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-400);
  text-decoration: none;
}
.linkcard h3 { margin: 0 0 6px; }
.linkcard p { margin: 0; color: var(--ink-soft); }
.linkcard .arrow {
  display: inline-block; margin-top: 10px;
  font-weight: 700; color: var(--green-600);
}

/* ---------- Vereinsheim ---------- */
.heim-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .heim-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; }
}
.bullets {
  margin: 0; padding: 0;
  list-style: none;
  display: grid; gap: 10px;
}
.bullets li {
  display: flex; gap: 10px;
  color: var(--ink-soft);
}
.bullets li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px; height: 8px;
  background: var(--green-400);
  border-radius: 50%;
  margin-top: 11px;
}

/* ---------- Pricing Table ---------- */
.prices {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.prices th, .prices td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.prices th {
  background: var(--cream-2);
  color: var(--green-700);
  font-family: var(--font-head);
  font-weight: 600;
}
.prices tr:last-child td { border-bottom: 0; }
.prices td.amount { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- Mini Calendar ---------- */
.calendar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.calendar-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.calendar-head h3 { margin: 0; color: var(--green-700); }
.calendar-nav {
  display: flex; gap: 6px;
}
.calendar-nav button {
  border: 1px solid var(--line);
  background: #fff;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--green-700);
  font-size: 1rem;
}
.calendar-nav button:hover { background: var(--green-50); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-grid .dow {
  text-align: center;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  padding: 4px 0;
}
.cal-day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
  cursor: default;
  border: 1px solid var(--line);
}
.cal-day.muted { color: var(--muted); background: transparent; border-color: transparent; }
.cal-day.free  { background: var(--cal-free-bg); border-color: var(--cal-free-bd); color: var(--cal-free-fg); }
.cal-day.req   { background: var(--cal-req-bg);  border-color: var(--cal-req-bd);  color: var(--cal-req-fg); }
.cal-day.busy  { background: var(--cal-busy-bg); border-color: var(--cal-busy-bd); color: var(--cal-busy-fg); }
.cal-day.today { outline: 2px solid var(--green-500); outline-offset: 1px; }
.legend {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 16px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .dot {
  width: 14px; height: 14px; border-radius: 4px;
  border: 1px solid transparent;
}
.legend .dot.free { background: var(--cal-free-bg); border-color: var(--cal-free-bd); }
.legend .dot.req  { background: var(--cal-req-bg);  border-color: var(--cal-req-bd); }
.legend .dot.busy { background: var(--cal-busy-bg); border-color: var(--cal-busy-bd); }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
.tile {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--green-200);
}
.tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile-label {
  position: absolute;
  left: 10px; bottom: 10px;
  background: rgba(255,255,255,0.85);
  color: var(--green-700);
  font-weight: 700;
  font-size: .8rem;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Forms ---------- */
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}
@media (min-width: 640px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
}
.form label {
  display: block;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 4px;
  font-size: .92rem;
}
.form label .req { color: var(--cal-busy-bd); }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="date"],
.form input[type="password"],
.form select,
.form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(126, 168, 90, 0.25);
  background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hint {
  font-size: .85rem; color: var(--muted); margin-top: 4px;
}
.form-actions {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.form-note {
  margin-top: 18px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--green-700);
  font-size: .92rem;
}

/* Inline subscribe form */
.subscribe {
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: stretch;
}
.subscribe input {
  flex: 1 1 220px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
}
.subscribe input:focus { outline: none; border-color: var(--green-400); }

/* ---------- News list ---------- */
.news-list {
  display: grid; gap: 18px;
}
.news-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.news-row .media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--green-200), var(--green-400));
  position: relative;
}
.news-row .media svg { position: absolute; inset:0; width:100%; height:100%; }
.news-row .body { padding: 18px 22px; }
@media (min-width: 760px) {
  .news-row { grid-template-columns: 260px 1fr; gap: 0; }
  .news-row .media { aspect-ratio: auto; }
}

article.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  box-shadow: var(--shadow-sm);
}
article.article h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
article.article .article-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
article.article p { color: var(--ink-soft); }
article.article .lead-para {
  font-size: 1.1rem; color: var(--ink);
}

/* ---------- CTA box ---------- */
.cta {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta h2 { color: #fff; }
.cta p { color: #f3f8e6; max-width: 56ch; margin: 0 auto 16px; }
.cta .btn-primary { background: #fff; color: var(--green-700); }
.cta .btn-primary:hover { background: var(--cream); color: var(--green-700); }

.cta-soft {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: grid;
  gap: 16px;
  align-items: center;
}
@media (min-width: 700px) {
  .cta-soft { grid-template-columns: 1fr auto; }
}
.cta-soft h3 { margin: 0 0 4px; }
.cta-soft p { margin: 0; color: var(--ink-soft); }

/* ---------- Login ---------- */
.login-wrap {
  min-height: calc(100vh - 220px);
  display: grid; place-items: center;
  padding: 48px 20px;
}
.login-card {
  background: #fff;
  width: 100%; max-width: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.login-card .brand-mark {
  margin: 0 auto 14px;
  width: 56px; height: 56px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: #2b3a1f;
  color: #d4dbc0;
  padding: 44px 0 24px;
  margin-top: 40px;
}
footer.site-footer h4 { color: #fff; font-family: var(--font-head); margin-bottom: 12px; }
footer.site-footer a { color: #d4dbc0; }
footer.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 28px;
  padding-top: 16px;
  font-size: .85rem;
  color: #aab59a;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
}
.footer-subscribe input {
  background: #3a4d27;
  color: #fff;
  border: 1px solid #4f6437;
}
.footer-subscribe input::placeholder { color: #aab59a; }
