/* Köhlerfest Frammersbach – Stylesheet
   Farben: Kohle (schwarz), Buchengrün (hell), Weiß.
   Schriften: Systemschriften, damit keine Daten an Dritte (z. B. Google Fonts) gehen. */

:root {
  --kohle: #151515;
  --kohle-2: #262626;
  --gruen: #9ad14b;
  --gruen-dunkel: #3d7a17;
  --gruen-hell: #eef6dd;
  --weiss: #ffffff;
  --grau: #5b5b5b;
  --linie: #dfe3d6;

  --schrift-kopf: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --schrift-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --breite: 68rem;
  --text-breite: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--kohle);
  background: var(--weiss);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--gruen-dunkel); text-underline-offset: 0.18em; }
a:hover { color: var(--kohle); }

:focus-visible {
  outline: 3px solid var(--gruen);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gruen);
  color: var(--kohle);
  padding: 0.75rem 1rem;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { left: 0; }

.wrap {
  width: min(100% - 2.5rem, var(--breite));
  margin-inline: auto;
}

/* ---------- Kopfzeile ---------- */

.kopf {
  background: var(--kohle);
  color: var(--weiss);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--gruen);
}

.kopf .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--weiss);
  text-decoration: none;
  font-family: var(--schrift-kopf);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.15;
}
.marke:hover { color: var(--weiss); }
.marke img { height: 2.75rem; width: auto; }
.marke small {
  display: block;
  font-family: var(--schrift-text);
  font-weight: 400;
  font-size: 0.8rem;
  color: #c9c9c9;
  letter-spacing: 0.01em;
}

.menue-knopf {
  display: none;
  background: none;
  border: 2px solid var(--weiss);
  color: var(--weiss);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.45rem 0.9rem;
  border-radius: 2rem;
  cursor: pointer;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.nav li { position: relative; }

.nav a {
  display: block;
  color: var(--weiss);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 0.98rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--kohle);
  background: var(--gruen);
}

.nav .unter {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 13rem;
  flex-direction: column;
  gap: 0;
  background: var(--kohle-2);
  padding: 0.4rem;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.35);
}

.nav li:hover > .unter,
.nav li:focus-within > .unter { display: flex; }

/* ---------- Startseite: Hero ---------- */

.hero {
  background: var(--kohle);
  color: var(--weiss);
  overflow: hidden;
  position: relative;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.hero h1 {
  font-family: var(--schrift-kopf);
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 0.98;
  margin: 0 0 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hero .datum {
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  color: var(--gruen);
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.hero .ort {
  margin: 0 0 1.75rem;
  color: #cfcfcf;
  max-width: 30rem;
}

.zaehler {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
  margin: 0 0 1.75rem;
}
.zaehler strong {
  font-family: var(--schrift-kopf);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--weiss);
}
.zaehler span { color: #cfcfcf; }

.meiler-bild { width: 100%; max-width: 30rem; margin-inline: auto; }
.meiler-bild svg { width: 100%; height: auto; display: block; }

.rauch {
  stroke-dasharray: 6 9;
  animation: aufsteigen 6s linear infinite;
}
@keyframes aufsteigen { to { stroke-dashoffset: -150; } }

@media (prefers-reduced-motion: reduce) {
  .rauch { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-block;
  background: var(--gruen);
  color: var(--kohle);
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 2rem;
  border: 2px solid var(--gruen);
}
.knopf:hover { background: var(--weiss); border-color: var(--weiss); color: var(--kohle); }

.knopf.hell { background: transparent; color: var(--weiss); border-color: var(--weiss); margin-left: 0.5rem; }
.knopf.hell:hover { background: var(--weiss); color: var(--kohle); }

.knopf.dunkel { background: var(--kohle); color: var(--weiss); border-color: var(--kohle); }
.knopf.dunkel:hover { background: var(--gruen); border-color: var(--gruen); color: var(--kohle); }

/* ---------- Abschnitte ---------- */

.abschnitt { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.abschnitt.gruen { background: var(--gruen-hell); }
.abschnitt.schwarz { background: var(--kohle); color: var(--weiss); }

h2, h3 {
  font-family: var(--schrift-kopf);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.4rem; margin: 2rem 0 0.5rem; }

.text { max-width: var(--text-breite); }
.text p { margin: 0 0 1.1rem; }

/* Vier Festtage */
.tage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem;
  border-top: 3px solid var(--kohle);
}

.tag {
  padding: 1.1rem 1.25rem 1.4rem 0;
  border-right: 1px solid var(--linie);
  padding-left: 1.25rem;
}
.tag:first-child { padding-left: 0; }
.tag:last-child { border-right: 0; }
.tag h3 { margin: 0 0 0.15rem; font-size: 1.5rem; }
.tag .kalender { color: var(--gruen-dunkel); font-weight: 700; margin: 0 0 0.6rem; }
.tag p { margin: 0; color: var(--grau); font-size: 0.98rem; }

/* Themenliste auf der Startseite */
.themen { list-style: none; padding: 0; margin: 2rem 0 0; }
.themen li { border-top: 1px solid #3a3a3a; }
.themen li:last-child { border-bottom: 1px solid #3a3a3a; }
.themen a {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0;
  color: var(--weiss);
  text-decoration: none;
}
.themen a:hover { background: var(--kohle-2); }
.themen strong {
  font-family: var(--schrift-kopf);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
}
.themen a:hover strong { color: var(--gruen); }
.themen span { color: #cfcfcf; }

/* ---------- Unterseiten ---------- */

.seitenkopf { background: var(--kohle); color: var(--weiss); padding-block: clamp(2rem, 5vw, 3.5rem); }
.seitenkopf h1 {
  font-family: var(--schrift-kopf);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
}
.seitenkopf p { margin: 0.75rem 0 0; color: #cfcfcf; max-width: 38rem; }

.inhalt { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }

.krume { font-size: 0.9rem; color: #bdbdbd; margin: 0 0 0.9rem !important; }
.krume a { color: var(--gruen); }

.hinweis {
  background: var(--gruen-hell);
  border-left: 5px solid var(--gruen);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  max-width: var(--text-breite);
}
.hinweis p { margin: 0; }
.hinweis p + p { margin-top: 0.6rem; }

/* Festprogramm */
.programm { max-width: 48rem; }
.programm-tag {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 3px solid var(--kohle);
}
.programm-tag + .programm-tag { border-top-width: 1px; border-top-color: var(--linie); }
.programm-tag h3 { margin: 0; font-size: 1.35rem; }
.programm-tag h3 span { display: block; font-family: var(--schrift-text); font-size: 1rem; color: var(--gruen-dunkel); font-weight: 700; }
.programm-tag dl { margin: 0; }
.programm-tag dt { font-weight: 700; margin-top: 0.75rem; }
.programm-tag dt:first-child { margin-top: 0; }
.programm-tag dd { margin: 0; }

.vorjahr { margin-top: 3rem; }

/* Köhler-Porträts */
.person {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.75rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--linie);
  max-width: 50rem;
  align-items: start;
}
.person:first-of-type { border-top: 3px solid var(--kohle); }
.person h3 { margin: 0 0 0.4rem; }
.person p { margin: 0 0 0.6rem; }

.portrait {
  width: 9rem;
  aspect-ratio: 3 / 4;
  background: var(--kohle);
  color: var(--gruen);
  display: grid;
  place-items: center;
  font-family: var(--schrift-kopf);
  font-size: 2.4rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  border-radius: 0.3rem;
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Holzkohle */
.merkmale { list-style: none; padding: 0; margin: 1.25rem 0 0; max-width: var(--text-breite); }
.merkmale li { padding: 0.6rem 0 0.6rem 1.9rem; border-top: 1px solid var(--linie); position: relative; }
.merkmale li:last-child { border-bottom: 1px solid var(--linie); }
.merkmale li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.15rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--kohle);
  border-radius: 50%;
  border: 2px solid var(--gruen);
}

/* Geschichte – Zeitstrahl (hier gibt es wirklich eine Abfolge) */
.zeit { list-style: none; margin: 2rem 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--kohle); max-width: 46rem; }
.zeit li { position: relative; padding: 0 0 1.75rem 1.25rem; }
.zeit li::before {
  content: "";
  position: absolute;
  left: -2.05rem;
  top: 0.45rem;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--gruen);
  border: 3px solid var(--kohle);
  border-radius: 50%;
}
.zeit b { font-family: var(--schrift-kopf); font-size: 1.5rem; display: block; line-height: 1.2; }
.zeit p { margin: 0.2rem 0 0; }

/* Bilder */
.jahre { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.jahre a {
  display: block;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--kohle);
  border-radius: 2rem;
  text-decoration: none;
  color: var(--kohle);
  font-weight: 600;
}
.jahre a:hover { background: var(--gruen); border-color: var(--gruen); }

.galerie-jahr { margin: 0 0 2.5rem; scroll-margin-top: 6rem; }
.galerie-jahr h2 { border-bottom: 3px solid var(--kohle); padding-bottom: 0.3rem; }
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
}
.galerie a { display: block; overflow: hidden; background: var(--kohle); border-radius: 0.3rem; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.25s; }
.galerie a:hover img { transform: scale(1.04); }

/* Kontakt */
.kontakt-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.kontakt-raster h2 { font-size: 1.5rem; }
address { font-style: normal; }

/* Tabellen / Karten-Links */
.karte-link { margin-top: 1rem; }

/* ---------- Fußzeile ---------- */

.fuss { background: var(--kohle); color: #cfcfcf; border-top: 3px solid var(--gruen); padding-block: 2.5rem; font-size: 0.95rem; }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.fuss strong { color: var(--weiss); }
.fuss a { color: var(--gruen); }
.fuss a:hover { color: var(--weiss); }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li + li { margin-top: 0.35rem; }

/* ---------- Mobil ---------- */

@media (max-width: 62rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .meiler-bild { max-width: 22rem; }
  .tage { grid-template-columns: 1fr 1fr; }
  .tag { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--linie); }
  .kontakt-raster { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 56rem) {
  .menue-knopf { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--kohle); padding: 0.5rem 1.25rem 1.25rem; border-bottom: 3px solid var(--gruen); max-height: calc(100vh - 5rem); overflow-y: auto; }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav .unter { display: flex; position: static; box-shadow: none; background: none; padding: 0 0 0.4rem 1rem; }
  .nav a { padding: 0.7rem 0.4rem; }
  .kopf { position: relative; }
}

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .tage { grid-template-columns: 1fr; }
  .themen a { grid-template-columns: 1fr; gap: 0.25rem; }
  .programm-tag { grid-template-columns: 1fr; gap: 0.5rem; }
  .person { grid-template-columns: 6.5rem 1fr; gap: 1rem; }
  .portrait { width: 6.5rem; font-size: 1.8rem; }
  .knopf.hell { margin: 0.75rem 0 0; }
}

@media print {
  .kopf, .fuss, .knopf, .menue-knopf { display: none; }
  body { color: #000; }
  .seitenkopf, .hero { background: none; color: #000; }
}
