:root {
  --gruen: #2f5d3a;
  --gruen-hell: #4a8256;
  --rot: #8c3b2e;
  --text: #1c2018;
  --grau: #6b7268;
  --linie: #dce0d6;
  --bg: #f6f7f3;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* --- Kopf und Navigation --- */
.kopf {
  display: flex; justify-content: space-between; align-items: baseline;
  background: var(--gruen); color: #fff; padding: .9rem 1rem;
}
.marke { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .08em; }
.ort { font-size: .8rem; color: #c8d6cb; letter-spacing: .06em; }
.nav {
  display: flex; background: #fff; border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 3;
}
.nav a {
  flex: 1; text-align: center; padding: .8rem .4rem; color: var(--grau);
  text-decoration: none; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .05em; border-bottom: 2px solid transparent;
}
.banner {
  background: #f7ecd9; border-bottom: 1px solid #e0cba8; color: #6b4d16;
  padding: .8rem 1rem; font-size: .85rem; line-height: 1.5;
}

main { max-width: 760px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
h1 { font-size: 1.45rem; margin: 0 0 .75rem; line-height: 1.25; }
.datum { font-size: 1rem; color: var(--grau); margin: 0 0 1.5rem; }
.unter { margin: .5rem 0 1rem; color: var(--grau); font-size: .88rem; }

/* --- Heute-Ansicht --- */
.block { margin-bottom: 2.5rem; }
.block h2 {
  font-size: .9rem; letter-spacing: .1em; margin: 0 0 .25rem;
  padding-bottom: .4rem; border-bottom: 2px solid currentColor;
}
.frei h2 { color: var(--gruen); }
.gesperrt h2 { color: var(--rot); }
.arten { list-style: none; margin: 0; padding: 0; }
.arten li { border-bottom: 1px solid var(--linie); }
.arten a {
  display: flex; align-items: center; gap: .85rem;
  padding: .7rem 0; color: var(--text); text-decoration: none;
}
.minibild {
  width: 62px; height: 62px; flex: 0 0 62px;
  object-fit: cover; border-radius: 6px; background: #e8ece4;
}
.artzeile { min-width: 0; }
.artname { display: block; font-weight: 650; }
.klassen { display: block; color: var(--grau); font-size: .85rem; line-height: 1.45; }
.freiab {
  display: inline-block; margin-left: .2rem; padding: .05rem .45rem;
  background: #f0e3e0; color: var(--rot); border-radius: 3px;
  font-size: .78rem; white-space: nowrap;
}

/* --- Jahreskalender: Balken statt Tabelle, passt ohne Seitwaertsscrollen --- */
.kal-legende {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px;
  position: sticky; top: 42px; z-index: 2;
  background: var(--bg); padding: .5rem 0; margin-bottom: .25rem;
  border-bottom: 1px solid var(--linie);
}
.kal-legende span {
  text-align: center; font-size: .7rem; color: var(--grau);
  letter-spacing: .02em;
}
.kal-art { margin-bottom: 1.5rem; }
.kal-art h2 {
  font-size: .95rem; margin: 0 0 .4rem; padding: 0; border: none;
  letter-spacing: 0;
}
.kal-art h2 a { color: var(--text); text-decoration: none; }
.kal-zeile { margin-bottom: .45rem; }
.kal-name {
  display: block; font-size: .76rem; color: var(--grau); margin-bottom: .15rem;
}
.kal-balken {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; height: 20px;
}
.kal-balken span {
  background: #fff; border: 1px solid var(--linie); border-radius: 2px;
}
.kal-balken span.an { background: var(--gruen); border-color: var(--gruen); }

/* --- Artseite --- */
.artbild {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 6px; margin-bottom: 1.25rem; background: #e8ece4;
}
.zeiten { margin: 1.25rem 0; }
.zeit-karte {
  background: #fff; border: 1px solid var(--linie); border-radius: 6px;
  padding: .8rem .9rem; margin-bottom: .6rem;
}
.zk-name { margin: 0 0 .15rem; font-weight: 650; }
.zk-zeitraum { margin: 0 0 .5rem; color: var(--grau); font-size: .92rem; }
.zk-status { margin: 0; }
.pille {
  display: inline-block; padding: .15rem .55rem; border-radius: 3px;
  font-size: .72rem; letter-spacing: .06em; font-weight: 600;
}
.pille.an { background: #e0ece2; color: var(--gruen); }
.pille.aus { background: #f0e3e0; color: var(--rot); }
.hinweise {
  margin: 2rem 0; padding: .9rem 1.1rem; background: #fff;
  border-left: 3px solid var(--rot); border-radius: 0 4px 4px 0;
}
.hinweise h2 {
  font-size: .78rem; letter-spacing: .1em; color: var(--rot);
  margin: 0 0 .5rem; border: none; padding: 0;
}
.hinweise ul { margin: 0; padding-left: 1.1rem; }
.hinweise li { margin-bottom: .5rem; font-size: .92rem; }
.quelle { font-size: .82rem; color: var(--grau); }

/* --- Wildarten-Uebersicht als Kacheln --- */
.kacheln { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.kachel {
  display: block; background: #fff; border: 1px solid var(--linie);
  border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--text);
}
.kachel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e8ece4; }
.kachel span {
  display: block; padding: .55rem .65rem; font-size: .88rem; font-weight: 600;
}

/* --- Fuss --- */
.fuss {
  max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 3rem;
  border-top: 1px solid var(--linie); color: var(--grau); font-size: .82rem;
}
.fuss .warnung { color: var(--rot); font-weight: 600; }
.fuss a { color: var(--grau); }

@media (min-width: 620px) {
  .kacheln { grid-template-columns: repeat(3, 1fr); }
  .minibild { width: 74px; height: 74px; flex-basis: 74px; }
  .kal-balken { height: 24px; }
  h1 { font-size: 1.7rem; }
  .nav a { font-size: .82rem; }
}
