/* ===== Ab ins Grüne! – Stylesheet ===== */

/* --- Schriften (selbst gehostet, DSGVO-konform) --- */
@font-face {
  font-family: 'Alata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/alata-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/roboto-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/roboto-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/roboto-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/roboto-700.woff2') format('woff2');
}

/* --- Farben & Grundlagen --- */
:root {
  --gruen-dunkel: #2f4a28;
  --gruen: #4d8b3f;
  --gruen-hell: #83d660;
  --gruen-blass: #eef7ea;
  --gruen-mint: #e9ffec;
  --gruen-soft: #b4db90;
  --text: #2c3327;
  --grau: #67705f;
  --linie: #dde5d6;
  --weiss: #ffffff;
  --schatten: 0 2px 12px rgba(47, 74, 40, .10);
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--weiss);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Alata', 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--gruen-dunkel);
  margin-bottom: .6em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1em; }
ul, ol { margin: 0 0 1em 1.4em; }

a { color: var(--gruen); }
a:hover { color: var(--gruen-dunkel); }

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

/* --- Kopfbereich --- */
.kopf {
  position: sticky; top: 0; z-index: 100;
  background: var(--weiss);
  box-shadow: var(--schatten);
}
.kopf-innen {
  max-width: 1200px; margin: 0 auto; padding: .5rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo img { width: 56px; height: 56px; }
.logo-text {
  font-family: 'Alata', sans-serif; font-size: 1.35rem; color: var(--gruen-dunkel);
  white-space: nowrap;
}
.logo-ausruf { color: var(--gruen-hell); }

.nav ul { list-style: none; margin: 0; display: flex; gap: .25rem; align-items: center; }
.nav a {
  display: block; padding: .55rem .7rem; text-decoration: none;
  color: var(--text); font-weight: 500; font-size: .97rem; border-radius: 8px;
}
.nav a:hover, .nav a.aktiv { background: var(--gruen-blass); color: var(--gruen-dunkel); }
.pfeil { font-size: .7em; opacity: .6; }

.hat-untermenue { position: relative; }
.nav .untermenue {
  display: none; position: absolute; top: 100%; left: 0; min-width: 270px;
  background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: .5rem; z-index: 50; flex-direction: column; gap: 0;
}
.nav .hat-untermenue:hover .untermenue,
.nav .hat-untermenue.offen .untermenue { display: flex; }
.untermenue a { padding: .5rem .7rem; }

.nav-knopf { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-knopf span {
  display: block; width: 26px; height: 3px; margin: 5px 0;
  background: var(--gruen-dunkel); border-radius: 2px; transition: .2s;
}

@media (max-width: 1080px) {
  .nav-knopf { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--weiss); box-shadow: var(--schatten); padding: .75rem 1.25rem 1.25rem;
  }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav .untermenue { position: static; box-shadow: none; padding-left: 1rem; min-width: 0; }
}

/* --- Held (Startseite) --- */
.held {
  position: relative; min-height: 480px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: url('/assets/img/baum_skaliert.avif') center/cover no-repeat;
}
.held::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(29, 46, 24, .45), rgba(29, 46, 24, .55));
}
.held-inhalt { position: relative; padding: 4rem 1.25rem; max-width: 820px; }
.held-inhalt h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.2rem); text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.held-inhalt p { color: #f0f6ec; font-size: clamp(1.05rem, 2vw, 1.3rem); text-shadow: 0 1px 6px rgba(0,0,0,.4); }

/* --- Abschnitte & Layout --- */
.abschnitt { padding: 3.5rem 1.25rem; }
.abschnitt-innen { max-width: 1100px; margin: 0 auto; }
.abschnitt-schmal { max-width: 800px; margin: 0 auto; }
.abschnitt.gruen { background: var(--gruen-blass); }
.abschnitt.dunkel { background: var(--gruen-dunkel); }
.abschnitt.dunkel h2, .abschnitt.dunkel p { color: #f0f6ec; }
.zentriert { text-align: center; }

.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 800px) { .zwei-spalten { grid-template-columns: 1fr; } }

.seiten-kopf {
  background: linear-gradient(rgba(47, 74, 40, .78), rgba(47, 74, 40, .78)),
              url('/assets/img/wald2-jpg.avif') center/cover no-repeat;
  padding: 3.2rem 1.25rem; text-align: center;
}
.seiten-kopf h1 { color: #fff; margin: 0; }

.inhalt-bild { border-radius: var(--radius); box-shadow: var(--schatten); margin: 0 auto 1.5rem; }
.inhalt-bild.schmal { max-width: 480px; }

/* --- Knöpfe --- */
.btn {
  display: inline-block; padding: .7rem 1.5rem; border: 0; border-radius: 999px;
  background: var(--gruen); color: #fff; font-family: 'Roboto', sans-serif;
  font-size: 1rem; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--gruen-dunkel); color: #fff; }
.btn.hell { background: var(--gruen-hell); color: var(--gruen-dunkel); }
.btn.hell:hover { background: var(--gruen-soft); }
.btn.kontur { background: transparent; border: 2px solid var(--gruen); color: var(--gruen); }
.btn.kontur:hover { background: var(--gruen-blass); }
.btn.klein { padding: .4rem 1rem; font-size: .9rem; }
.btn.gefahr { background: #b3452f; }
.btn.gefahr:hover { background: #8c3423; }

/* --- Karten (Angebote) --- */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.karte {
  background: var(--weiss); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--schatten); display: flex; flex-direction: column;
}
.karte img { width: 100%; height: 200px; object-fit: cover; }
.karte-inhalt { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.karte-inhalt h3 { margin-bottom: .5rem; }
.karte-inhalt .btn { margin-top: auto; align-self: flex-start; }

/* --- Veranstaltungen --- */
.termin {
  display: grid; grid-template-columns: 110px 1fr; gap: 1.25rem;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--schatten);
  position: relative; overflow: hidden;
}

/* Ausgebucht: schräges Band über der Ecke + Schild statt Anmelde-Knopf */
.termin.ausgebucht::after {
  content: 'AUSGEBUCHT';
  position: absolute; top: 26px; right: -44px;
  transform: rotate(35deg);
  background: #b3452f; color: #fff;
  padding: .35rem 3.2rem;
  font-family: 'Alata', sans-serif; font-size: .85rem; letter-spacing: .08em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  pointer-events: none;
}
.termin.ausgebucht .termin-bild, .termin.ausgebucht .termin-datum { opacity: .75; }
.ausgebucht-schild {
  display: inline-block; background: #b3452f; color: #fff;
  border-radius: 999px; padding: .35rem 1.1rem; font-weight: 700;
}
.wenig-plaetze { color: #b3452f; font-weight: 700; font-size: .92rem; }
.termin-datum {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--gruen-blass); border-radius: var(--radius); padding: .8rem .4rem;
  text-align: center; align-self: start;
}
.termin-datum .tag { font-family: 'Alata', sans-serif; font-size: 1.9rem; color: var(--gruen-dunkel); line-height: 1.1; }
.termin-datum .monat { font-size: .95rem; color: var(--gruen); font-weight: 500; }
.termin-datum .jahr { font-size: .8rem; color: var(--grau); }
.termin-inhalt h3 { margin-bottom: .3rem; }
/* Größere Überschrift in der ausführlichen Termin-Ansicht */
.termin-haupt h3 { font-size: clamp(1.45rem, 2.5vw, 1.8rem); margin-bottom: .4rem; }
.termin-meta { color: var(--grau); font-size: .95rem; margin-bottom: .6rem; }
.termin-meta span { margin-right: 1.1rem; white-space: nowrap; }
.termin-bild { width: 100%; max-width: 180px; border-radius: var(--radius); }
.termin-haupt { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; }
@media (max-width: 700px) {
  .termin { grid-template-columns: 84px 1fr; }
  .termin-haupt { grid-template-columns: 1fr; }
  .termin-bild { order: -1; max-width: 100%; max-height: 200px; object-fit: cover; }
}
.termin-fuss { margin-top: .6rem; display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.preis-schild {
  display: inline-block; background: var(--gruen-mint); color: var(--gruen-dunkel);
  border-radius: 999px; padding: .25rem .9rem; font-weight: 700;
}

/* --- Veranstaltungsort (Anmeldeseite) --- */
.ort-box {
  background: var(--gruen-blass); border: 1px solid var(--gruen-soft);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem;
}
.ort-medien {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .8rem;
  align-items: stretch;
}
@media (max-width: 700px) { .ort-medien { grid-template-columns: 1fr; } }
.ort-medien img {
  width: 100%; height: 100%; min-height: 220px; max-height: 300px;
  object-fit: cover; border-radius: var(--radius); box-shadow: var(--schatten);
}
.karte-halter {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; border: 1px dashed var(--gruen-soft); border-radius: var(--radius);
  min-height: 220px; text-align: center; padding: 1rem;
}
.karte-halter iframe {
  width: 100%; height: 260px; border: 0; border-radius: var(--radius);
  box-shadow: var(--schatten);
}
.karte-halter a { font-size: .9rem; margin-top: .4rem; }

/* --- Formulare --- */
.formular { max-width: 640px; }
.feld { margin-bottom: 1.1rem; }
.feld label { display: block; font-weight: 500; margin-bottom: .3rem; color: var(--gruen-dunkel); }
.feld .pflicht { color: #b3452f; }
.feld input[type=text], .feld input[type=email], .feld input[type=date],
.feld input[type=time], .feld input[type=password], .feld select, .feld textarea {
  width: 100%; padding: .65rem .8rem; font: inherit; color: var(--text);
  border: 1px solid var(--linie); border-radius: 8px; background: #fff;
}
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: 2px solid var(--gruen-soft); border-color: var(--gruen);
}
.feld textarea { min-height: 140px; resize: vertical; }
.feld-hinweis { font-size: .88rem; color: var(--grau); margin-top: .25rem; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .feld-reihe { grid-template-columns: 1fr; } }

/* ALTCHA-Spamschutz ans Seitendesign anpassen */
altcha-widget {
  display: block; max-width: 320px;
  --altcha-border-radius: 8px;
  --altcha-color-border: var(--linie);
  --altcha-color-base: #ffffff;
  --altcha-color-text: var(--text);
  --altcha-max-width: 320px;
}

/* Honeypot: für Menschen unsichtbar */
.hp-feld { position: absolute !important; left: -9999px; height: 1px; overflow: hidden; }

.meldung { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.meldung.ok { background: var(--gruen-mint); border: 1px solid var(--gruen-soft); color: var(--gruen-dunkel); }
.meldung.fehler { background: #fdeeea; border: 1px solid #ecc4b8; color: #8c3423; }

/* --- Gästebuch (öffentliche Seite) --- */
@font-face {
  font-family: 'Caveat'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/caveat-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/caveat-600.woff2') format('woff2');
}

.gb-held {
  background: linear-gradient(rgba(35, 56, 29, .55), rgba(35, 56, 29, .65)),
              url('/assets/img/startseite_blumen.avif') center/cover no-repeat;
  padding: 4rem 1.25rem; text-align: center;
}
.gb-held h1 { color: #fff; margin-bottom: .3rem; }
.gb-held p {
  color: #eaf5e4; font-family: 'Caveat', cursive; font-size: 1.7rem; margin: 0;
}

.gb-wand { columns: 2 340px; column-gap: 1.5rem; margin-top: 2rem; }

.gb-karte {
  position: relative; display: inline-block; width: 100%;
  background: #fefdf8;
  border: 1px solid #e8e4d4;
  border-radius: 14px;
  padding: 2.4rem 1.6rem 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 14px rgba(47, 74, 40, .09);
  break-inside: avoid;
}
.gb-karte::before {
  content: '\201E';
  position: absolute; top: -0.65em; left: .8rem;
  font-family: Georgia, serif; font-size: 4.6rem; line-height: 1;
  color: var(--gruen-soft);
}
.gb-karte-text { white-space: pre-line; font-size: .99rem; }
.gb-karte-fuss {
  display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem;
  padding-top: .9rem; border-top: 1px dashed var(--linie);
}
.gb-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Alata', sans-serif; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--gruen), var(--gruen-dunkel));
}
.gb-avatar.t2 { background: linear-gradient(135deg, #6aa84f, #38761d); }
.gb-avatar.t3 { background: linear-gradient(135deg, #93c47d, #45818e); }
.gb-avatar.t4 { background: linear-gradient(135deg, #8fce00, #38761d); }
.gb-wer { min-width: 0; }
.gb-wer .gb-name {
  font-family: 'Caveat', cursive; font-weight: 600; font-size: 1.45rem;
  color: var(--gruen-dunkel); line-height: 1.15; display: block;
}
.gb-wer .gb-herkunft { color: var(--grau); font-size: .85rem; }
.gb-karte-datum { margin-left: auto; color: var(--grau); font-size: .82rem; white-space: nowrap; align-self: flex-end; }

.gb-schreiben-karte {
  background: var(--gruen-blass); border: 1px solid var(--gruen-soft);
  border-radius: var(--radius); padding: 1.8rem; margin-top: 1.2rem;
}
.gb-schreiben-karte[hidden] { display: none; }
.gb-zaehler { text-align: center; color: var(--grau); margin: 2.2rem 0 0; }
.gb-zaehler strong { color: var(--gruen-dunkel); font-size: 1.15rem; }
.gb-zaehler .blatt { font-size: 1.4rem; }

/* --- Gästebuch (Verwaltung) --- */
.gb-eintrag {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--schatten);
}
.gb-eintrag-kopf { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .4rem; }
.gb-name { font-family: 'Alata', sans-serif; color: var(--gruen-dunkel); font-size: 1.1rem; }
.gb-ort { color: var(--gruen); font-size: .95rem; }
.gb-datum { color: var(--grau); font-size: .88rem; margin-left: auto; }
.gb-text { white-space: pre-line; }

/* --- Fußbereich --- */
.fuss { background: var(--gruen-dunkel); color: #dfe9d8; margin-top: 4rem; }
.fuss a { color: var(--gruen-hell); text-decoration: none; }
.fuss a:hover { text-decoration: underline; color: var(--gruen-soft); }
.fuss-innen {
  max-width: 1100px; margin: 0 auto; padding: 3rem 1.25rem 2rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem;
}
.fuss h3 { color: #fff; font-size: 1.1rem; }
.fuss ul { list-style: none; margin: 0; }
.fuss li { margin-bottom: .35rem; }
.fuss-unten { border-top: 1px solid rgba(255,255,255,.15); text-align: center; padding: 1.1rem; font-size: .9rem; }
.fuss-unten p { margin: 0; }

/* --- Verwaltung --- */
.verwaltung-leiste {
  background: var(--gruen-dunkel); padding: .8rem 1.25rem;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
.verwaltung-leiste .titel { color: #fff; font-family: 'Alata', sans-serif; font-size: 1.15rem; }
.verwaltung-leiste a { color: var(--gruen-hell); text-decoration: none; font-weight: 500; }
.verwaltung-leiste a:hover, .verwaltung-leiste a.aktiv { color: #fff; }
.verwaltung-leiste .abmelden { margin-left: auto; }

.verwaltung-inhalt { max-width: 900px; margin: 0 auto; padding: 2rem 1.25rem; }

.v-tabelle { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--schatten); border-radius: var(--radius); overflow: hidden; }
.v-tabelle th, .v-tabelle td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: top; }
.v-tabelle th { background: var(--gruen-blass); color: var(--gruen-dunkel); font-family: 'Alata', sans-serif; font-weight: 400; }
.v-tabelle tr:last-child td { border-bottom: 0; }
.v-aktionen { display: flex; gap: .4rem; flex-wrap: wrap; }
.vergangen { opacity: .55; }

.login-box {
  max-width: 420px; margin: 4rem auto; background: #fff; padding: 2.5rem;
  border-radius: var(--radius); box-shadow: var(--schatten); text-align: center;
}
.login-box .logo-gross { width: 90px; margin: 0 auto 1rem; }

.bild-auswahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; margin-top: .5rem; }
.bild-auswahl label {
  display: block; cursor: pointer; border: 3px solid transparent; border-radius: 8px; overflow: hidden;
}
.bild-auswahl input { position: absolute; opacity: 0; }
.bild-auswahl img { width: 100%; height: 80px; object-fit: cover; }
.bild-auswahl label:has(input:checked) { border-color: var(--gruen-hell); }
.bild-auswahl .kein-bild {
  display: flex; align-items: center; justify-content: center; height: 80px;
  background: var(--gruen-blass); color: var(--grau); font-size: .85rem;
}

/* --- Sonstiges --- */
.zitat {
  border-left: 4px solid var(--gruen-hell); background: var(--gruen-blass);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; margin: 1.5rem 0;
}
.hinweis-box {
  background: var(--gruen-mint); border: 1px solid var(--gruen-soft);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.galerie img { border-radius: var(--radius); box-shadow: var(--schatten); width: 100%; object-fit: cover; }
