/* nordboegge.info – "Nordbögge – Ein Dorf lebt!"
   Vanilla CSS, kein Framework. Mobil-first.
   Palette aus dem Titelbild abgeleitet:
   Menü: Honiggelb #F2A900, Text Schwarz (Kontrast 10,45:1 AAA)
   Überschriften: Dunkelbraun #47240C, Links: Rostrot #AC450B
   Hell-Flächen: Sand #F9DF9E */

:root {
  --gelb: #F2A900;
  --gelb-hover: #D49400;
  --gelb-hell: #F9DF9E;
  --braun: #47240C;
  --rost: #AC450B;
  --text: #1a1a1a;
  --text-hell: #5c5c5c;
  --bg: #ffffff;
  --linie: #e8e2d9;
  --radius: 10px;
  --max: 1060px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

a { color: var(--rost); }
a:hover { color: var(--braun); }

/* ---------- Kopfbereich ---------- */
.kopf { background: var(--gelb); box-shadow: 0 2px 8px rgba(0,0,0,.18); position: sticky; top: 0; z-index: 50; }

.kopf-innen {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  min-height: 62px;
}

.marke {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: #000;
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.15;
}

.marke img { width: 42px; height: auto; border-radius: 6px; }

.marke small { display: block; font-weight: 500; font-size: .74rem; color: #3d2a10; }

.navi { margin-left: auto; display: flex; gap: .2rem; flex-wrap: wrap; }

.navi a {
  color: #000;
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
}

.navi a:hover { background: var(--gelb-hover); }

.navi a[aria-current="page"] { background: #000; color: var(--gelb); }

/* Dropdown "Vereine" */
.navi-dropdown { position: relative; display: flex; align-items: center; }
.navi-dropdown > a { cursor: default; }
.navi-dropdown ul {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--gelb);
  margin: 0;
  padding: .4rem;
  list-style: none;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 60;
}
.navi-dropdown:hover ul,
.navi-dropdown:focus-within ul { display: block; }
.navi-dropdown ul a { display: block; white-space: nowrap; font-weight: 400; }
.navi-dropdown ul a[aria-current="page"] { background: #000; color: var(--gelb); }

/* Hamburger mobil */
.navi-toggle {
  display: none;
  margin-left: auto;
  background: #000;
  color: var(--gelb);
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  padding: .45rem .7rem;
  cursor: pointer;
  border-radius: 6px;
}

/* ---------- Hero ---------- */
.willkommen-banner {
  max-width: var(--max);
  margin: 1.8rem auto 0;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.willkommen-banner img {
  width: 130px;
  max-width: 30vw;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  flex-shrink: 0;
}

.willkommen-banner .banner-text h1 { margin: 0 0 .3rem; font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--braun); }
.willkommen-banner .banner-text p { margin: 0; font-size: 1.02rem; color: var(--text-hell); max-width: 46em; }

/* ---------- Layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 2rem 1rem 3rem; }

.seite h1 { margin: 0 0 1.2rem; color: var(--braun); font-size: clamp(1.5rem, 4vw, 2.1rem); }
.seite h2 { margin: 2rem 0 .8rem; color: var(--braun); font-size: 1.3rem; }
.seite h3 { margin: 1.6rem 0 .6rem; color: var(--rost); font-size: 1.05rem; }

article img.rand { border-radius: var(--radius); }

.abbildung { margin: 1.2rem 0 2.2rem; }
.abbildung figcaption { font-size: .85rem; color: var(--text-hell); margin-top: .4rem; }

.bild-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.bild-duo .abbildung { margin: 0; }

/* Karten (Startseite) */
.karten { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 2rem; }

.karte {
  background: #fff;
  border: 1px solid var(--linie);
  border-top: 4px solid var(--gelb);
  border-radius: var(--radius);
  padding: 1.3rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .15s;
}
.karte:hover { box-shadow: 0 6px 20px rgba(0,0,0,.10); transform: translateY(-2px); }
.karte h2 { margin: .6rem 0 .4rem; font-size: 1.08rem; color: var(--braun); }
.karte p { margin: 0; font-size: .93rem; color: var(--text-hell); }
.karte .pfeil { color: var(--rost); font-weight: 700; }

/* Spaltenlayout: Inhalt + Termin/Sidebar (Startseite + Rundgang-Seiten) */
.start-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); gap: 2rem; align-items: start; margin-top: 2rem; }
@media (max-width: 800px) { .start-grid { grid-template-columns: 1fr; } }

/* Rundgang-Stationen-Menü (Sidebar auf allen Rundgang-Seiten) */
.stationen-box { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.stationen-box h2 { margin: 0 0 .3rem; font-size: 1.05rem; color: var(--braun); border-bottom: 2px solid var(--gelb); padding-bottom: .4rem; }
.stationen-box .zurueck { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .6rem; }
.stationen-box ul { list-style: none; margin: 0; padding: 0; }
.stationen-box li { margin: 0; border-bottom: 1px solid rgba(71,36,12,.08); }
.stationen-box li:last-child { border-bottom: none; }
.stationen-box li a { display: block; padding: .45rem 0; text-decoration: none; color: var(--text); font-size: .93rem; }
.stationen-box li a:hover { color: var(--rost); }
.stationen-box li a[aria-current="page"] { color: #000; font-weight: 700; }
.stationen-box li a[aria-current="page"]::before { content: "▸ "; color: var(--gelb-hover); }

/* Termin-Box (Sidebar + Kalenderseite) */
.termine-box { background: var(--gelb-hell); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.termine-box h2 { margin: 0 0 .8rem; font-size: 1.05rem; color: var(--braun); border-bottom: 2px solid var(--gelb); padding-bottom: .4rem; }
.termin { padding: .6rem 0; border-bottom: 1px solid rgba(71,36,12,.15); }
.termin:last-child { border-bottom: none; }
.termin .titel { font-weight: 700; display: block; color: #000; }
.termin .wann { font-size: .88rem; color: var(--braun); display: block; }
.termin .wo { font-size: .85rem; color: var(--text-hell); display: block; }
.termine-box .alle { display: inline-block; margin-top: .6rem; font-size: .9rem; font-weight: 600; color: #000; }

/* Kalender-Seite: Monatsliste */
.kal-monat { margin: 1.5rem 0 2.5rem; }
.kal-monat > h2 { color: var(--braun); border-bottom: 3px solid var(--gelb); padding-bottom: .35rem; }
.kal-tag { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--linie); }
@media (max-width: 560px) { .kal-tag { grid-template-columns: 1fr; gap: .2rem; } }
.kal-tag .datum { font-weight: 700; color: var(--braun); }
.kal-tag .tag-kurz { display: block; font-weight: 400; font-size: .85rem; color: var(--text-hell); }
.kal-tag .titel { font-weight: 700; }
.kal-tag .wo { font-size: .88rem; color: var(--text-hell); }

/* Hinweisbox */
.hinweis { background: var(--gelb-hell); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; }

/* ---------- Fußbereich ---------- */
.fuss { background: var(--braun); color: #e8dcc8; padding: 2rem 1rem 3rem; font-size: .9rem; }
.fuss-innen { max-width: var(--max); margin: 0 auto; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fuss h3 { color: #fff; font-size: 1rem; margin: 0 0 .5rem; }
.fuss a { color: var(--gelb); }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .3rem; }
.fuss-copyright { max-width: var(--max); margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .8rem; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .navi-toggle { display: block; }
  .navi { display: none; width: 100%; flex-direction: column; padding-bottom: .8rem; }
  .navi.offen { display: flex; }
  .navi a { padding: .6rem .8rem; }
  .navi-dropdown ul { display: block; position: static; box-shadow: none; background: var(--gelb-hover); border-radius: 0; padding: 0 0 0 1rem; min-width: 0; }
}

/* Druck */
@media print {
  .kopf, .fuss, .hero .cta, .navi-toggle { display: none; }
  body { background: #fff; }
}
