/* Shared by every page: colours, type, the header and the content pages. The map page keeps its
   own layout rules in index.html. */
:root { --bg: #fbfaf6; --fg: #23301f; --muted: #6b7565; --line: #dcd9cf; --accent: #4f7a2e; }
* { box-sizing: border-box; }
html, body { margin: 0; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
a { color: var(--accent); }

#top { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.brand a { display: flex; align-items: center; gap: 8px; color: var(--fg); text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--accent); }
.tagline { padding-left: 14px; border-left: 1px solid var(--line); font-size: 13px; color: var(--muted); }
#top nav { display: flex; align-self: stretch; margin-left: auto; }
/* Tabs run the full header height, so the active underline sits on the header's bottom border. */
#top nav a { display: flex; align-items: center; padding: 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap; }
#top nav a:hover { color: var(--fg); }
#top nav a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
#top nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 4px; }
@media (max-width: 640px) {
  /* Six entries do not fit beside the name on a phone: the nav takes its own row and may scroll. */
  .tagline { display: none; }
  #top { flex-wrap: wrap; height: auto; padding: 0 16px; row-gap: 0; }
  .brand { height: 44px; display: flex; align-items: center; }
  #top nav { flex-basis: calc(100% + 32px); margin: 0 -16px; padding: 0 6px; height: 40px; border-top: 1px solid var(--line); justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  #top nav::-webkit-scrollbar { display: none; }
  #top nav a { padding: 0 7px; }
}
@media (max-width: 370px) {
  #top nav a { padding: 0 4px; font-size: 13px; }
}

/* Content pages (everything except the map) */
.page { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; font-size: 15px; line-height: 1.55; }
.page h1 { font-size: 28px; line-height: 1.15; margin: 8px 0 8px; }
.page h2 { font-size: 18px; margin: 28px 0 8px; }
.page .lead { max-width: 720px; margin: 0 0 24px; font-size: 16px; color: var(--muted); }
.page .heute { max-width: 720px; margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--accent); background: #eef3e8; font-size: 16px; }
.page .heute:empty { display: none; }
.latin { color: var(--muted); font-weight: 400; }
.crumbs { margin: 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 3px 12px rgba(0, 0, 0, .1); }
.card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .body { padding: 12px 14px 14px; }
.card h2 { margin: 0; font-size: 16px; }
.card p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.article { max-width: 720px; }
.article figure { margin: 16px 0 20px; }
.article figure > a { display: block; }
.article .hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.article figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.article p { margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.button { display: inline-block; padding: 9px 14px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 500; text-decoration: none; }
.button:hover { background: #446a27; }
.empty { padding: 32px 20px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }
footer.site { max-width: 960px; margin: 0 auto; padding: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Pilzkalender: the table scrolls inside its box if a phone is narrower than it. */
.kalender, .lage { overflow-x: auto; margin: 0 0 8px; }
.kalender table, .lage table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kalender caption { padding: 0 0 6px; text-align: left; font-size: 13px; color: var(--muted); }
.kalender th, .kalender td, .lage th, .lage td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.kalender thead th, .lage thead th { vertical-align: bottom; font-weight: 600; }
.kalender tbody th, .lage tbody th { font-weight: 500; }
.kalender td, .kalender thead th + th, .lage td, .lage thead th + th { text-align: center; }
.kalender .k-main { background: var(--accent); color: #fff; font-weight: 600; }
.kalender .k-maybe { background: #dfe9d2; }
.kalender .k-off { color: var(--muted); }
/* One row per mushroom, a narrow coloured cell per month; the cell text is for screen readers. */
.kalender td { min-width: 22px; border-left: 2px solid #fff; }
.kalender td span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kalender thead th + th { padding-left: 2px; padding-right: 2px; font-weight: 500; }
.kalender caption span { display: inline-block; width: 12px; height: 12px; margin: 0 2px 0 10px; vertical-align: -1px; border-radius: 2px; }
.kalender caption span:first-child { margin-left: 0; }
@media (max-width: 560px) {
  .kalender table, .lage table { font-size: 13px; }
  .kalender th, .kalender td, .lage th, .lage td { padding: 5px 4px; }
  .kalender td { min-width: 14px; }
  .kalender tbody th { font-size: 12px; }
  .kalender thead .k-rest { display: none; } /* one letter per month */
}

/* Region pages */
.note { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid #c9a227; border-radius: 0 8px 8px 0; background: #fdf6e3; }
.hint { font-size: 12px; color: var(--muted); }
.wx { margin: 0 0 12px; }
.wx-row { display: grid; grid-template-columns: 120px 1fr 48px; gap: 10px; align-items: center; padding: 4px 0; font-size: 14px; }
.wx-bar { height: 8px; overflow: hidden; border-radius: 4px; background: #e8e6de; }
.wx-bar i { display: block; height: 100%; border-radius: 4px; }
.wx-val { text-align: right; font-variant-numeric: tabular-nums; }
.wx-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.regions { columns: 2; column-gap: 24px; margin: 0 0 8px; padding: 0; list-style: none; }
.regions li { padding: 3px 0; break-inside: avoid; }
@media (max-width: 560px) {
  .posts li { grid-template-columns: 110px 1fr; }
  .regions { columns: 1; }
  .wx-row { grid-template-columns: 96px 1fr 44px; }
}

/* Blog */
.meta { margin: -4px 0 10px; font-size: 13px; color: var(--muted); }
.posts { margin: 0; padding: 0; list-style: none; }
.posts li { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: start; margin: 0 0 20px; }
.posts li:not(:has(img)) { grid-template-columns: 1fr; }
.posts img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.posts h2 { margin: 0 0 2px; font-size: 18px; }
.posts .date { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.posts p { margin: 0; }
.article code { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 14px; }
.article ul, .article ol { margin: 0 0 12px; padding-left: 20px; }
.article li { margin: 0 0 4px; }

/* Map control: jump to the own position */
.locate a { display: flex; align-items: center; justify-content: center; color: #23301f; }
.locate svg { width: 16px; height: 16px; }
