/* === Gartenbauverein Unterdießen-Oberdießen-Dornstetten === */

:root {
  --gruen-dunkel: #2d5016;
  --gruen-mittel: #558b2f;
  --gruen-hell: #aed581;
  --gruen-blass: #e8f5e9;
  --apfel-rot: #c62828;
  --apfel-rot-hell: #ef5350;
  --creme: #faf6f0;
  --creme-dunkel: #f0e9dd;
  --holz: #6d4c41;
  --holz-hell: #8d6e63;
  --text: #2d2d2d;
  --text-hell: #5a5a5a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--creme);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gruen-dunkel);
  line-height: 1.3;
}

a {
  color: var(--gruen-mittel);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--apfel-rot); }

/* === HEADER === */
header {
  background: var(--creme);
  border-bottom: 3px solid var(--gruen-dunkel);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  font-size: 2rem;
}

.logo-mark img {
  height: 56px;
  width: auto;
  display: block;
}

.logo-text h1 {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

.logo-text p {
  font-size: 0.78rem;
  color: var(--text-hell);
  font-style: italic;
  margin: 0;
}

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav a:hover, nav a.active {
  border-color: var(--apfel-rot);
  color: var(--gruen-dunkel);
}

/* === HERO === */
.hero {
  position: relative;
  height: 480px;
  background: linear-gradient(135deg, var(--gruen-dunkel) 0%, var(--gruen-mittel) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    radial-gradient(circle at 20% 30%, var(--apfel-rot) 0%, transparent 8%),
    radial-gradient(circle at 80% 60%, var(--apfel-rot) 0%, transparent 7%),
    radial-gradient(circle at 50% 80%, var(--apfel-rot) 0%, transparent 9%),
    radial-gradient(circle at 30% 70%, var(--apfel-rot-hell) 0%, transparent 6%),
    radial-gradient(circle at 70% 20%, var(--apfel-rot-hell) 0%, transparent 8%);
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;
  padding: 0 20px;
  max-width: 800px;
}

.hero h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  font-style: italic;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.hero-small {
  height: 280px;
}

.hero-small h2 { font-size: 2.3rem; }

/* === LAYOUT === */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

section {
  margin-bottom: 70px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gruen-hell);
}

section h3 {
  font-size: 1.35rem;
  margin: 28px 0 12px;
  color: var(--holz);
}

section p {
  margin-bottom: 16px;
  color: var(--text);
}

/* === KARTEN === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--creme-dunkel);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card-body {
  padding: 22px;
}

.card h3 {
  margin-top: 0;
  color: var(--gruen-dunkel);
}

/* === PLATZHALTER-BILDER === */
.placeholder-img {
  width: 100%;
  height: 220px;
  background:
    linear-gradient(135deg, var(--gruen-hell) 0%, var(--gruen-mittel) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-style: italic;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.placeholder-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(198,40,40,0.4) 0%, transparent 10%),
    radial-gradient(circle at 75% 65%, rgba(198,40,40,0.4) 0%, transparent 10%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 30%);
}

.placeholder-img span {
  position: relative;
  background: rgba(0,0,0,0.35);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.placeholder-img.tall { height: 320px; }
.placeholder-img.flat { height: 160px; }

.placeholder-img.herbst {
  background: linear-gradient(135deg, #d84315 0%, #ff8a65 100%);
}

.placeholder-img.bluete {
  background: linear-gradient(135deg, #f8bbd0 0%, #ec407a 100%);
}

.placeholder-img.fest {
  background: linear-gradient(135deg, var(--apfel-rot) 0%, var(--holz) 100%);
}

/* === GALERIE === */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 30px 0;
}

.galerie .placeholder-img {
  height: 180px;
  border-radius: 6px;
}

/* === TABELLE === */
.tabelle {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tabelle th {
  background: var(--gruen-dunkel);
  color: white;
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
}

.tabelle td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--creme-dunkel);
}

.tabelle tr:last-child td { border-bottom: none; }

.tabelle tr:hover td { background: var(--gruen-blass); }

/* === HIGHLIGHT-BOX === */
.highlight {
  background: linear-gradient(135deg, var(--creme-dunkel) 0%, var(--creme) 100%);
  border-left: 5px solid var(--apfel-rot);
  padding: 24px 28px;
  border-radius: 6px;
  margin: 30px 0;
}

.highlight h3 {
  color: var(--apfel-rot);
  margin-top: 0;
}

/* === BUTTON === */
.btn {
  display: inline-block;
  background: var(--apfel-rot);
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
  margin-top: 10px;
}

.btn:hover {
  background: var(--apfel-rot-hell);
  color: white;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gruen-dunkel);
  border: 2px solid var(--gruen-dunkel);
}

.btn-outline:hover {
  background: var(--gruen-dunkel);
  color: white;
}

/* === KONTAKT-FORMULAR === */
.formular {
  display: grid;
  gap: 18px;
  max-width: 600px;
  margin: 30px 0;
}

.formular label {
  font-weight: 600;
  color: var(--gruen-dunkel);
  display: block;
  margin-bottom: 6px;
}

.formular input, .formular textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--creme-dunkel);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: white;
}

.formular input:focus, .formular textarea:focus {
  outline: none;
  border-color: var(--gruen-mittel);
  box-shadow: 0 0 0 3px var(--gruen-blass);
}

.formular textarea { min-height: 130px; resize: vertical; }

/* === KONTAKT-INFO === */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 30px 0;
}

.kontakt-info p { margin-bottom: 8px; }

.kontakt-info strong { color: var(--gruen-dunkel); }

/* === VORSTAND === */
.vorstand-liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.vorstand-mitglied {
  text-align: center;
  background: white;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--creme-dunkel);
}

.vorstand-mitglied .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gruen-hell), var(--gruen-mittel));
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-family: Georgia, serif;
  font-weight: bold;
}

.vorstand-mitglied .rolle {
  color: var(--apfel-rot);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.vorstand-mitglied .name {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 6px;
  color: var(--text);
}

/* === FOOTER === */
footer {
  background: var(--gruen-dunkel);
  color: var(--gruen-hell);
  padding: 40px 24px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer a {
  color: var(--gruen-hell);
  display: block;
  padding: 3px 0;
}

footer a:hover { color: white; }

.footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* === ECHTE BILDER === */
.bild {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.bild.tall { height: 360px; }
.bild.flat { height: 180px; }

.galerie .bild {
  height: 200px;
  border-radius: 6px;
}

.bild-zentriert {
  max-width: 100%;
  width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.bild-bildunterschrift {
  text-align: center;
  font-style: italic;
  color: var(--text-hell);
  font-size: 0.9rem;
  margin-top: -20px;
  margin-bottom: 30px;
}

.vorstand-mitglied .avatar.foto {
  background: var(--creme-dunkel);
  overflow: hidden;
}

.vorstand-mitglied .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
  .hero h2 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero { height: 360px; }
  .kontakt-grid { grid-template-columns: 1fr; }
  nav ul { gap: 16px; }
  section h2 { font-size: 1.6rem; }
}
