/* =========================================================
   Gartenbauverein Mühldorf a. Inn e.V.
   Designkonzept: Pflanzschild / Saatgut-Katalog
   Palette:
     --moos     #43593F  (Blattgrün, Primärfarbe)
     --erde     #6B4E36  (Erdbraun, Sekundär)
     --ringel   #C98A2B  (Ringelblumen-Gold, Akzent)
     --papier   #EEF0E4  (helles Blattgrün-Weiß, Hintergrund)
     --tinte    #2B2A22  (Tinte, Text)
     --schild   #F6F2E7  (Pflanzschild-Beige, Karten)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --moos: #43593F;
  --moos-dunkel: #2E3E2A;
  --erde: #6B4E36;
  --ringel: #C98A2B;
  --papier: #EEF0E4;
  --tinte: #2B2A22;
  --schild: #F6F2E7;
  --linie: #d3d0c0;
  --radius: 3px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: 'Work Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--moos-dunkel);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.6rem; font-weight: 700; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }

a { color: var(--moos); }
a:hover { color: var(--ringel); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Pflanzschild / Tag-Motiv (Signature Element) --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moos-dunkel);
  background: var(--schild);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 3px 10px 3px 16px;
  position: relative;
}
.tag::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--ringel);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* --- Kopfbereich --- */
.site-header {
  background: var(--moos-dunkel);
  color: var(--papier);
  border-bottom: 4px solid var(--ringel);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--papier);
}
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9d4bf;
}
.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: #e7ead9;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: #fff;
  border-bottom-color: var(--ringel);
}
@media (max-width: 720px) {
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 14px; }
  nav.main-nav ul { flex-wrap: wrap; gap: 16px; }
}

/* --- Hero --- */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--linie);
}
.hero p.lead {
  max-width: 620px;
  font-size: 1.15rem;
  color: #4a4636;
}
.hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid var(--moos-dunkel);
  transition: transform 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--moos-dunkel); color: #fff; }
.btn-primary:hover { background: var(--moos); color: #fff; }
.btn-outline { background: transparent; color: var(--moos-dunkel); }
.btn-outline:hover { color: var(--ringel); border-color: var(--ringel); }
.btn-ringel { background: var(--ringel); border-color: var(--ringel); color: #fff; }

/* --- Sections --- */
section.block { padding: 56px 0; }
section.block + section.block { border-top: 1px solid var(--linie); }
.section-head { margin-bottom: 32px; }

/* --- Projektkarten (Pflanzschilder-Reihe) --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--schild);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-image {
  aspect-ratio: 4 / 3;
  background: #dfe3d3 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="M50 20 C 30 30, 25 55, 50 80 C 75 55, 70 30, 50 20 Z" fill="%23c7cdb5"/></svg>') center/60px no-repeat;
  background-size: cover;
  background-position: center;
}
.card-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: #4a4636; font-size: 0.96rem; }
.card-footer { margin-top: auto; }

/* --- Über uns / Kontakt Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.fact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.fact-list li { border-left: 3px solid var(--ringel); padding-left: 14px; }
.fact-list strong { display: block; font-family: 'Space Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--moos); }

/* --- Termine --- */
.event-row {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--linie);
  align-items: baseline;
}
.event-date {
  font-family: 'Space Mono', monospace;
  color: var(--ringel);
  font-weight: 700;
  min-width: 130px;
}

/* --- Formulare --- */
form.stack { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 6px; }
input[type=text], input[type=password], input[type=email], input[type=date], textarea, select {
  width: 100%;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.field-hint { font-size: 0.82rem; color: #6b6a5a; margin-top: 4px; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.92rem; }
.flash-error { background: #f6e2dd; color: #7a2f1c; border: 1px solid #e2b6a8; }
.flash-success { background: #e4ecdd; color: var(--moos-dunkel); border: 1px solid #b9caa8; }

/* --- Admin --- */
.admin-bar { background: var(--moos-dunkel); color: #fff; font-size: 0.85rem; }
.admin-bar .container { display: flex; justify-content: space-between; padding: 8px 24px; }
.admin-bar a { color: #d8e3cd; }
.status-pill { font-family: 'Space Mono', monospace; font-size: 0.68rem; text-transform: uppercase; padding: 2px 8px; border-radius: 10px; }
.status-veroeffentlicht { background: #dcead0; color: var(--moos-dunkel); }
.status-entwurf { background: #efe1c6; color: #7a5a15; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linie); font-size: 0.92rem; }

/* --- Footer --- */
footer.site-footer {
  background: var(--moos-dunkel);
  color: #c9d4bf;
  padding: 36px 0;
  margin-top: 40px;
  font-size: 0.88rem;
}
footer.site-footer a { color: #e7ead9; }
footer.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
