/* Wildfiddler – Farben aus dem Waldbild: Moosgrün und Laub-/Rindenbraun */
:root {
  --wald: #1f2e17;       /* tiefes Waldgrün */
  --moos: #5f7f2c;       /* Moosgrün */
  --moos-hell: #a9c46a;  /* junges Blattgrün */
  --rinde: #4a3321;      /* dunkles Rindenbraun */
  --laub: #9b6a3c;       /* Herbstlaub */
  --papier: #f6f1e6;     /* helles Pergament */
  --text: #2b2118;

  --breite: 60rem;
  --kopfhoehe: 3.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wald);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

h1, h2, h3 { line-height: 1.2; font-weight: 600; }

/* ---------- Menü (Kacheln) ---------- */

/* Das Menü liegt durchscheinend auf der oberen Kante des Waldbildes
   (negativer Rand zieht das Bild unter das Menü) und bleibt beim Scrollen oben. */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--kopfhoehe);
  margin-bottom: calc(-1 * var(--kopfhoehe));
}

/* Verwaltung: kein Bild darunter, daher deckend */
.admin .kopf {
  height: auto;
  margin-bottom: 0;
  background: var(--rinde);
  border-bottom: 3px solid var(--moos);
}

.menue {
  max-width: var(--breite);
  margin: 0 auto;
  display: flex;
  gap: 3px;
  padding: 3px;
}

.menue a,
.menue button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: calc(var(--kopfhoehe) - 6px);
  padding: 0 .25rem;
  white-space: nowrap;
  background: rgba(31, 46, 23, .6);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  text-decoration: none;
  font: inherit;
  /* wächst mit der Bildschirmbreite, damit alle 6 Kacheln in eine Reihe passen */
  font-size: clamp(.66rem, 3.3vw, .95rem);
  letter-spacing: .02em;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.menue a:hover,
.menue a:focus-visible,
.menue button:hover {
  background: rgba(95, 127, 44, .9);
  color: #fff;
}

.admin .menue a,
.admin .menue button { background: var(--wald); }

.admin .menue a:hover,
.admin .menue a:focus-visible,
.admin .menue button:hover { background: var(--moos); }

section[id] { scroll-margin-top: var(--kopfhoehe); }

/* ---------- Home ---------- */

.home { background: var(--wald); }

.buehne {
  position: relative;
  max-width: 75rem;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  max-height: 100vh;
  background: url("../img/fiddle-1000.webp") center / cover no-repeat;
}

@media (min-width: 1000px) {
  .buehne { background-image: url("../img/fiddle-1920.webp"); }
}

/* Baskerville nur für die beiden Schriftzüge im Waldbild */
.buehne h1,
.buehne .claim {
  font-family: Baskerville, "Baskerville Old Face", "Libre Baskerville", Georgia, "Times New Roman", serif;
}

.buehne h1 {
  position: absolute;
  left: 5%;
  top: calc(var(--kopfhoehe) + 3%);
  max-width: 62%;
  margin: 0;
  color: #fff;
  font-size: clamp(1.3rem, 5.2vw, 3.6rem);
  letter-spacing: .03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .75);
}

/* Schriftzug unten mittig im Bild */
.buehne .claim {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 5%;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: clamp(.95rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: .03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .85);
}

/* YouTube-Icon links unten im Bild, oberhalb des Schriftzugs */
.buehne .youtube {
  position: absolute;
  left: 5%;
  bottom: 16%;
  width: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .7));
}

.buehne .youtube svg { display: block; width: 100%; height: auto; }

.buehne .youtube:hover,
.buehne .youtube:focus-visible { filter: drop-shadow(0 0 10px #fff); }

/* Franks Foto rechts im Laub, über dem Schriftzug im Bild */
.buehne .portrait {
  position: absolute;
  right: 5%;
  top: calc(var(--kopfhoehe) + 4%);
  width: 24%;
  border: clamp(3px, .8vw, 8px) solid var(--papier);
  border-radius: 3px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .55);
  transform: rotate(2deg);
}

/* ---------- Inhaltsbereiche ---------- */

.bereich {
  max-width: var(--breite);
  margin: 1rem auto;
  padding: 1.5rem 1.25rem 2rem;
  background: var(--papier);
  border-top: 6px solid var(--moos);
  border-radius: 4px;
}

@media (min-width: 62rem) {
  .bereich { padding-inline: 2.5rem; }
}

@media (max-width: 61.99rem) {
  .bereich { margin-inline: .75rem; }
}

.bereich h2 {
  margin: 0 0 1rem;
  color: var(--rinde);
  font-size: 1.9rem;
}

.lead {
  color: var(--laub);
  font-size: 1.25rem;
  font-style: italic;
}

/* Aufzählung mit Icons statt Punkten */
.punkte { list-style: none; margin: 1rem 0; padding: 0; }

.punkte li {
  position: relative;
  margin: .5rem 0;
  padding-left: 2rem;
}

.punkte .icon { position: absolute; left: 0; }

/* Konzerte */
.termine { list-style: none; margin: 0; padding: 0; }

.termine li {
  padding: 1rem 0 1rem 1rem;
  border-left: 4px solid var(--laub);
  margin-bottom: 1rem;
  background: rgba(155, 106, 60, .07);
}

.termine .wann {
  margin: 0;
  color: var(--moos);
  font-weight: bold;
  font-size: .95rem;
}

.termine h3 {
  margin: .2rem 0 .3rem;
  font-size: 1.3rem;
  color: var(--rinde);
}

.termine li p:last-child { margin-bottom: 0; }

/* Downloads */
.downloads { padding-left: 1.2rem; }
.downloads li { margin: .4rem 0; }
.downloads .groesse { color: #7a6a58; font-size: .85rem; margin-left: .3rem; }

/* Videos */
.videos { padding-left: 1.2rem; }
.videos li { margin: .4rem 0; }

/* Kontakt */
.mail { font-size: 1.25rem; }

/* ---------- Fuß / Impressum ---------- */

.fuss {
  max-width: var(--breite);
  margin: 2rem auto 0;
  padding: 1.5rem 1.25rem 2rem;
  color: #cfd8bf;
  font-size: .9rem;
}

.fuss h2 { font-size: 1.1rem; color: var(--moos-hell); margin: 0 0 .5rem; }
.fuss a { color: var(--moos-hell); }
.klein { opacity: .7; }

/* ---------- Verwaltung (konzerte.php) ---------- */

.admin main { margin-top: 1rem; }
.admin h1 { color: var(--rinde); margin-top: 0; }

.menue-admin form { flex: none; margin: 0; }
.menue-admin button { height: 100%; padding: 0 1rem; }

.admin label { display: block; margin-bottom: .75rem; font-size: .95rem; }

.admin input:not([type="checkbox"]),
.admin textarea {
  display: block;
  width: 100%;
  margin-top: .2rem;
  padding: .55rem .6rem;
  font: inherit;
  border: 1px solid #b9ab94;
  border-radius: 4px;
  background: #fff;
}

.admin input:focus,
.admin textarea:focus {
  outline: 2px solid var(--moos);
  border-color: var(--moos);
}

.termin {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px solid #d8ccb6;
  border-left: 4px solid var(--moos);
  border-radius: 4px;
  background: #fffdf8;
}

.termin.vergangen { opacity: .65; border-left-color: #999; }
.termin legend { padding: 0 .4rem; font-weight: bold; color: var(--rinde); }

.zweispaltig { display: grid; gap: 0 1rem; }
@media (min-width: 36rem) {
  .zweispaltig { grid-template-columns: 11rem 1fr; }
}

.loeschen { color: #8a2a1a; }

.login { max-width: 22rem; }

.admin main > form > button,
.login button {
  padding: .7rem 1.6rem;
  font: inherit;
  color: #fff;
  background: var(--moos);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.admin main > form > button:hover,
.login button:hover { background: var(--rinde); }

.speichern {
  position: sticky;
  bottom: .75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

.hinweis { padding: .7rem 1rem; border-radius: 4px; }
.hinweis.fehler { background: #f7ddd6; color: #7a2112; }
.hinweis.ok { background: #e3eed0; color: #33461a; }
