/* Kleingartenverein „Vogelgesang“ e.V. – Gestaltung
   Farben: Dunkelgrün #1E4A1C · Gelb #E6D21E · Hellgrün #F1F4EE
   Schrift: Arial, Text schwarz */

:root {
  --gruen: #1E4A1C;
  --gelb: #E6D21E;
  --hell: #EEF5E4;
  --rand: #d5ddcf;
  --schatten: 0 2px 10px rgba(30, 74, 28, 0.07);
}

html { font-size: 20px; }
html.gross { font-size: 24px; }

* { box-sizing: border-box; }

body {
  margin: 0;
  /* ein großer Apfelbaum mit singendem Vogel, unten rechts, bleibt beim Scrollen stehen */
  background: #FFFDF6 url(../bilder/hintergrund.svg) right 24px bottom 0 / 520px auto no-repeat fixed;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

img { max-width: 100%; }
a { color: var(--gruen); }
a:hover { color: #000000; }

h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 16px; }
h3 { font-size: 1.3rem; margin: 0 0 12px; }
p { margin: 0 0 14px; }

.inhalt { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.schmal { max-width: 900px; }
.abschnitt { padding-top: 48px; padding-bottom: 48px; }
.hellgruen { background: rgba(238, 245, 228, 0.72); }

/* Kopfbereich */
.kopfleiste { background: var(--hell); border-bottom: 1px solid #c9d3c3; }
.kopfleiste .inhalt { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.klein { font-size: 0.85rem; }
.schriftwahl { display: flex; align-items: center; gap: 8px; }
.schriftwahl button {
  font-family: Arial, sans-serif; font-weight: bold; cursor: pointer;
  min-width: 48px; min-height: 44px; border-radius: 10px;
  border: 2px solid var(--gruen); background: #ffffff; color: #000000;
}
.schriftwahl button.aktiv { background: var(--gruen); color: #ffffff; }
.schriftwahl .a-normal { font-size: 18px; }
.schriftwahl .a-gross { font-size: 24px; }

.vereinskopf { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.vereinskopf img { width: 96px; height: 96px; object-fit: contain; }
.vereinsname { font-size: 1.6rem; font-weight: bold; line-height: 1.2; }

/* Menü */
nav { background: var(--gruen); }
nav .inhalt { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
nav a {
  color: #ffffff; text-decoration: none; font-weight: bold;
  padding: 12px 20px; min-height: 44px; display: inline-block; border-radius: 999px;
}
nav a:hover, nav a.aktiv { background: var(--gelb); color: #000000; }

.brotkrumen { font-size: 0.95rem; margin-bottom: 8px; }

/* Bausteine */
.zeile { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.zeile > * { flex: 1 1 420px; min-width: 0; }
.zeile.oben { align-items: flex-start; }

.foto { width: 100%; object-fit: cover; display: block; border-radius: 18px; }
.foto-gross { height: 340px; }
.foto-mittel { height: 240px; margin-bottom: 20px; }
.foto-4zu3 { aspect-ratio: 4 / 3; }
.foto-breit { aspect-ratio: 16 / 9; }

.raster { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.raster-2 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.karte { background: #ffffff; border-radius: 18px; padding: 20px; box-shadow: var(--schatten); }
.karte-hell { background: var(--hell); border-radius: 22px; padding: 22px; }
.flaeche { background: var(--hell); border-radius: 26px; padding: 24px; }
.hinweis { background: var(--gelb); border-radius: 20px; padding: 22px 28px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hinweis-hell { background: var(--hell); border-radius: 20px; padding: 22px 28px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hinweis > div, .hinweis-hell > div { flex: 1 1 400px; min-width: 0; }
.fett { font-weight: bold; }
.titel-klein { font-weight: bold; font-size: 1.15rem; margin-bottom: 4px; }

.kachel {
  background: #ffffff; border: 2px solid var(--rand); border-radius: 22px;
  box-shadow: 0 4px 14px rgba(30, 74, 28, 0.08); padding: 26px;
  display: flex; flex-direction: column; gap: 10px; min-height: 180px;
  color: #000000; text-decoration: none; transition: box-shadow .15s, border-color .15s;
}
.kachel:hover { border-color: var(--gruen); box-shadow: 0 8px 22px rgba(30, 74, 28, 0.16); color: #000000; }
.kachel-titel { font-size: 1.25rem; font-weight: bold; }

.zahl { font-size: 1.8rem; font-weight: bold; color: var(--gruen); }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 14px 26px; border-radius: 999px; font-weight: bold; text-decoration: none;
  background: var(--gruen); color: #ffffff; white-space: nowrap;
}
.knopf:hover { background: var(--gelb); color: #000000; }
.knopf-gelb { background: var(--gelb); color: #000000; }
.knopf-gelb:hover { background: var(--gruen); color: #ffffff; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

/* Listen */
.liste { display: flex; flex-direction: column; gap: 10px; }
.dokument { background: #ffffff; border-radius: 16px; box-shadow: var(--schatten); padding: 16px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dokument .info { font-size: 0.9rem; }
.punkte { margin: 0 0 24px; padding-left: 28px; }
.punkte li { margin-bottom: 8px; }

.termin { background: var(--hell); border-radius: 16px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.marke { background: #ffffff; border-radius: 999px; padding: 4px 14px; font-size: 0.9rem; }

figure { margin: 0; }
figcaption { font-weight: bold; padding-top: 6px; }
.ganze-breite { grid-column: 1 / -1; }

/* Fußzeile */
footer { background: var(--gruen); color: #ffffff; border-radius: 32px 32px 0 0; margin-top: 24px; }
footer .inhalt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 36px; padding-bottom: 36px; }
footer a { color: #ffffff; font-weight: bold; }
footer a:hover { color: var(--gelb); }
.fusslinks { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }

@media (max-width: 600px) {
  body { background-size: 280px auto; background-position: right 0 bottom 0; }
  .inhalt { padding-left: 16px; padding-right: 16px; }
  .foto-gross { height: 240px; }
  .raster-2 { grid-template-columns: 1fr; }
  .hinweis, .hinweis-hell { padding: 20px; }
  .knopf { white-space: normal; }
}

/* Belegungskalender */
.kalender { background: #ffffff; border-radius: 22px; box-shadow: var(--schatten); padding: 20px; max-width: 640px; }
.kal-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.kal-titel { font-size: 1.3rem; font-weight: bold; text-align: center; flex: 1; }
.kal-pfeil { min-width: 52px; min-height: 52px; border-radius: 999px; border: none; background: var(--gruen); color: #ffffff; font-size: 1.1rem; cursor: pointer; }
.kal-pfeil:hover { background: var(--gelb); color: #000000; }
.kal-pfeil:disabled { background: #d5ddcf; color: #ffffff; cursor: default; }
.kal-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.kal-wt { text-align: center; font-weight: bold; font-size: 0.85rem; padding: 4px 0; }
.kal-tag { min-height: 56px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1rem; font-family: Arial, Helvetica, sans-serif; color: #000000; border: none; padding: 2px; }
.kal-tag span { font-size: 0.6rem; line-height: 1.1; }
.kal-frei { background: #cfe8c8; font-weight: bold; }
.kal-woche { background: #ffffff; border: 2px solid #d5ddcf; }
.kal-belegt { background: #6b6b6b; color: #ffffff; font-weight: bold; }
.kal-vorbei { opacity: 0.35; }
button.kal-tag { cursor: pointer; }
button.kal-tag:hover { outline: 3px solid var(--gelb); }
.kal-liste { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 4px; }
.kal-frei-text { font-weight: bold; color: var(--gruen); }
.kal-legende { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 0; font-size: 0.9rem; }
.kal-legende i { display: inline-block; width: 18px; height: 18px; border-radius: 5px; vertical-align: -3px; margin-right: 6px; }
@media (max-width: 600px) {
  .kalender { padding: 12px; }
  .kal-tag { min-height: 48px; }
  .kal-tag span { display: none; }
}

/* Begrüßung mit Blumenfoto */
.hero { background: linear-gradient(135deg, #EEF5E4 0%, #FBF6D2 100%); padding: 40px 0; }
.hero-zeile { display: flex; align-items: center; gap: 40px; }
.hero-bild { flex: 0 0 340px; width: 340px; height: 420px; object-fit: cover; object-position: 50% 25%; border-radius: 26px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15); }
.hero-karte {
  flex: 1 1 auto; background: #ffffff; border-radius: 26px; padding: 32px 36px;
  max-width: 640px; box-shadow: 0 8px 28px rgba(30, 74, 28, 0.12);
  border-top: 8px solid var(--gelb);
}
/* fröhliche Symbole auf den Kacheln */
.kachel svg { background: #FBF3B8; border-radius: 999px; padding: 10px; width: 68px; height: 68px; box-sizing: border-box; }
@media (max-width: 600px) {
  .hero { padding: 20px 0; }
  .hero-zeile { flex-direction: column; gap: 16px; }
  .hero-bild { flex: none; width: 100%; height: 240px; object-position: 50% 30%; order: 2; }
  .hero-karte { padding: 20px; }
  .hero-karte h1 { font-size: 1.6rem; }
  h1, h2 { hyphens: auto; overflow-wrap: break-word; }
}

/* Lageplan: Bild immer vollständig zeigen (nicht zuschneiden) */
.lageplan-bild { display: block; width: 100%; height: auto !important; object-fit: contain; border-radius: 12px; }

/* Lageplan auf dem Handy: nur die Karte (ohne Legende), groß genug zum Lesen, seitlich verschiebbar */
.nur-handy { display: none; }
@media (max-width: 700px) {
  .karte:has(.plan-rahmen) { padding: 10px; }
  .plan-rahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
  .plan-rahmen .lageplan-bild { width: 880px; max-width: none; }
  .nur-handy { display: block; }
  .wisch-hinweis { text-align: center; padding-top: 6px; }
  .plan-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; padding-top: 8px; }
  .plan-legende i { display: inline-block; width: 18px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
}
