/* s'Lädle Michelbach am Wald eG — Anschlagbrett
   Gestaltung: Korkwand als Grundfläche, jeder Abschnitt ein angehefteter Zettel. */

@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("schriften/frank-ruhl-libre-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("schriften/frank-ruhl-libre-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("schriften/nunito-sans-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("schriften/nunito-sans-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --kork: #e3d3b4;
  --kork-tief: #d6c29c;
  --kork-dunkel: #c9b189;
  --zettel: #fcfaf5;
  --zettel-rand: #e7e0d1;
  --gruen: #15633a;
  --gruen-tief: #0c3c23;
  --gruen-hell: #e6efe7;
  --gold: #7d5507;
  --gold-hell: #f4e9cf;
  --tinte: #1e241f;
  --tinte-leise: #4a544c;
  --schatten: 0 1px 2px rgba(60, 45, 20, .18), 0 6px 18px rgba(60, 45, 20, .14);
  --schatten-klein: 0 1px 2px rgba(60, 45, 20, .16), 0 3px 9px rgba(60, 45, 20, .12);
  --breit: 74rem;
  --eng: 46rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinte);
  background-color: var(--kork);
  background-image:
    radial-gradient(circle at 12% 20%, rgba(150, 118, 66, .16) 0 2px, transparent 3px),
    radial-gradient(circle at 63% 8%, rgba(120, 92, 48, .14) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 47%, rgba(160, 128, 76, .18) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 71%, rgba(120, 92, 48, .12) 0 3px, transparent 4px),
    radial-gradient(circle at 77% 88%, rgba(150, 118, 66, .15) 0 2px, transparent 3px),
    radial-gradient(circle at 5% 92%, rgba(140, 108, 58, .13) 0 2px, transparent 3px);
  background-size: 190px 170px;
  overflow-x: hidden;
}

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

a { color: var(--gruen); text-underline-offset: .18em; }
a:hover { color: var(--gruen-tief); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 .5em;
  color: var(--gruen-tief);
  letter-spacing: -.005em;
}
h1 { font-size: clamp(1.85rem, 1.25rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.05rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + .55vw, 1.4rem); }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
body, li, td, th, p, h1, h2, h3, h4 { overflow-wrap: break-word; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

/* ---------- Sprungmarke ---------- */
.sprung {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gruen-tief); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 6px 0; font-weight: 700;
}
.sprung:focus { left: 0; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 100;
  background: var(--gruen-tief);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 3px 14px rgba(30, 20, 5, .28);
}
.kopf-innen {
  max-width: var(--breit); margin: 0 auto; padding: .55rem 1rem;
  display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap;
}
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.marke svg { display: block; height: 44px; width: auto; }
.marke-text b { display: block; font-family: "Frank Ruhl Libre", Georgia, serif; font-size: 1.05rem; color: #fff; line-height: 1.15; }
.marke-text .lang { display: none; }
.marke-text .kurz { display: inline; }
.marke-text .zusatz { display: none; font-size: .72rem; color: #cbe0d1; letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 34rem) {
  .marke-text .lang { display: inline; }
  .marke-text .kurz { display: none; }
  .marke-text .zusatz { display: block; }
}

.menue-knopf {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; min-width: 44px; padding: .45rem .8rem;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 4px;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.menue-knopf:hover { background: rgba(255, 255, 255, .2); }
.menue-knopf svg { width: 18px; height: 18px; }
.menue-knopf .zu { display: none; }
.menue-knopf[aria-expanded="true"] .auf { display: none; }
.menue-knopf[aria-expanded="true"] .zu { display: block; }

.haupt-nav { display: none; flex-basis: 100%; order: 3; }
.haupt-nav.offen { display: block; }
.haupt-nav ul { padding-inline: 0; }
.haupt-nav ul {
  list-style: none; margin: 0; padding: .4rem 1rem 1rem;
  display: flex; flex-direction: column; gap: .15rem;
  max-width: var(--breit); margin-inline: auto;
}
.haupt-nav a {
  display: block; padding: .7rem .8rem; min-height: 44px;
  color: #eef5ef; text-decoration: none; font-weight: 600;
  border-radius: 4px; border-left: 4px solid transparent;
}
.haupt-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.haupt-nav a[aria-current="page"] { border-left-color: var(--gold); background: rgba(255, 255, 255, .1); color: #fff; }

@media (min-width: 62rem) {
  .menue-knopf { display: none; }
  .haupt-nav { display: block !important; flex-basis: auto; order: 0; flex: 1 1 auto; }
  .haupt-nav ul { flex-direction: row; padding: 0; gap: .1rem; flex-wrap: wrap; justify-content: flex-end; }
  .haupt-nav a { padding: .55rem .7rem; border-left: 0; border-bottom: 3px solid transparent; border-radius: 3px 3px 0 0; font-size: .98rem; }
  .haupt-nav a[aria-current="page"] { border-left: 0; border-bottom-color: var(--gold); }
}

/* ---------- Statusband ---------- */
.statusband {
  background: var(--gold-hell);
  border-bottom: 1px solid #d9c79a;
  font-size: .95rem;
}
.statusband-innen {
  max-width: var(--breit); margin: 0 auto; padding: .5rem 1rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center;
}
.statusband strong { color: var(--gruen-tief); }
#oeffnungsstatus { display: inline-flex; align-items: baseline; gap: .5rem; }
.punkt { width: .7rem; height: .7rem; border-radius: 50%; background: var(--gruen); display: inline-block; flex-shrink: 0; }
.punkt.sb { background: var(--gold); }
.statusband a { color: var(--gold); font-weight: 700; }

/* ---------- Grundgerüst ---------- */
main { display: block; padding: 1.6rem 0 3rem; }
.bahn { max-width: var(--breit); margin: 0 auto; padding: 0 1rem; }

/* ---------- Zettel ---------- */
.blatt {
  position: relative;
  background: var(--zettel);
  border: 1px solid var(--zettel-rand);
  border-radius: 3px;
  box-shadow: var(--schatten);
  padding: 2.4rem 1.25rem 1.6rem;
  margin: 0 0 2.4rem;
}
@media (min-width: 48rem) { .blatt { padding: 2.8rem 2.4rem 2.2rem; } }

/* Abrisskante unten */
.blatt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 7px;
  background:
    radial-gradient(circle at 6px 0, transparent 0 5px, var(--zettel) 5.5px) repeat-x;
  background-size: 12px 7px;
  transform: scaleY(-1);
  pointer-events: none;
}
/* Reißzwecke */
.blatt > .zwecke {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; filter: drop-shadow(0 2px 2px rgba(60, 45, 20, .35));
}
.blatt.dunkel { background: var(--gruen-tief); border-color: #082b18; color: #eaf1ea; }
.blatt.dunkel::after { background: radial-gradient(circle at 6px 0, transparent 0 5px, var(--gruen-tief) 5.5px) repeat-x; background-size: 12px 7px; }
.blatt.dunkel h1, .blatt.dunkel h2, .blatt.dunkel h3 { color: #fff; }
.blatt.dunkel a { color: #ffd98a; }
.blatt.dunkel .leise { color: #bcd0c0; }

.notiz {
  background: var(--gold-hell);
  border: 1px solid #ddc898;
  border-radius: 3px;
  box-shadow: var(--schatten-klein);
  padding: 1.5rem 1.15rem 1.2rem;
  position: relative;
}
.notiz > .zwecke { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; filter: drop-shadow(0 2px 2px rgba(60, 45, 20, .35)); }
.notiz h2, .notiz h3 { color: var(--gruen-tief); }

.blatt-kopf { margin-bottom: 1.2rem; }
.rubrik {
  display: inline-block; font-size: .74rem; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; color: var(--gold);
  margin-bottom: .35rem;
}
.blatt.dunkel .rubrik { color: #f2c96a; }
.leise { color: var(--tinte-leise); }
.klein { font-size: .93rem; }

/* ---------- Zwei Spalten ---------- */
.duo { display: grid; gap: 1.6rem; }
@media (min-width: 56rem) { .duo { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.duo-gleich { display: grid; gap: 1.6rem; }
.duo > *, .duo-gleich > *, .rezept-inhalt > *, .kacheln > *, .bildreihe > *, .bildreihe-eng > * { min-width: 0; }
@media (min-width: 48rem) { .duo-gleich { grid-template-columns: 1fr 1fr; } }

/* ---------- Listen ---------- */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; }
.liste li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--gruen);
}
.blatt.dunkel .liste li::before { background: #7fbf95; }

.zeiten { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.zeiten th, .zeiten td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--zettel-rand); vertical-align: top; }
.zeiten th { font-weight: 700; color: var(--gruen-tief); hyphens: auto; }
.zeiten td:last-child { font-variant-numeric: tabular-nums; }
.blatt.dunkel .zeiten th, .blatt.dunkel .zeiten td { border-bottom-color: rgba(255, 255, 255, .2); }
.blatt.dunkel .zeiten th { color: #fff; }

.tabelle-rahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

/* ---------- Bilder ---------- */
.abzug {
  background: var(--zettel);
  padding: 10px; border: 1px solid var(--zettel-rand);
  box-shadow: var(--schatten-klein);
  border-radius: 3px;
  display: block; margin: 0;
}
.abzug img { border-radius: 1px; }
.abzug figcaption { font-size: .89rem; color: var(--tinte-leise); padding: .55rem .1rem 0; }

.bildreihe { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.bildreihe-eng { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); }

.verhaeltnis-43 img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.verhaeltnis-11 img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.verhaeltnis-169 img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* ---------- Karten / Kacheln ---------- */
.kacheln { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.kachel {
  background: var(--zettel); border: 1px solid var(--zettel-rand); border-radius: 3px;
  box-shadow: var(--schatten-klein); padding: 1.15rem 1.1rem; position: relative;
}
.kachel h3 { margin-bottom: .35rem; font-size: 1.12rem; }
.kachel p { font-size: .96rem; margin-bottom: .6rem; }
.kachel .weiter { font-weight: 700; font-size: .95rem; text-decoration: none; }
.kachel .weiter::after { content: " →"; }
a.kachel { text-decoration: none; color: inherit; display: block; }
a.kachel:hover { border-color: var(--gruen); box-shadow: var(--schatten); }
a.kachel:hover h3 { color: var(--gruen); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.3rem;
  background: var(--gruen); color: #fff; text-decoration: none;
  border: 2px solid var(--gruen); border-radius: 4px; font-weight: 700;
  box-shadow: var(--schatten-klein);
}
.knopf:hover { background: var(--gruen-tief); border-color: var(--gruen-tief); color: #fff; }
.knopf.zweit { background: transparent; color: var(--gruen); }
.knopf.zweit:hover { background: var(--gruen-hell); color: var(--gruen-tief); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }

/* ---------- Zeitstrahl ---------- */
.chronik { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--kork-tief); }
.chronik li { position: relative; padding: 0 0 1.4rem 1.4rem; }
.chronik li::before {
  content: ""; position: absolute; left: -9px; top: .45rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--gruen); border: 3px solid var(--zettel);
}
.chronik b { display: block; font-family: "Frank Ruhl Libre", Georgia, serif; font-size: 1.1rem; color: var(--gold); }

/* ---------- Rezepte ---------- */
.rezept { border-top: 2px solid var(--zettel-rand); padding-top: 1.6rem; margin-top: 1.6rem; }
.rezept:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.rezept-kopf { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; }
.rezept-monat { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.rezept-inhalt { display: grid; gap: 1.3rem; }
@media (min-width: 52rem) { .rezept-inhalt { grid-template-columns: 15rem 1fr; align-items: start; } }
.zutaten { background: var(--gruen-hell); border: 1px solid #cadecd; border-radius: 3px; padding: .9rem 1rem; }
.zutaten h4 { margin-bottom: .4rem; color: var(--gruen-tief); }
.zutaten ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.zutaten li { padding: .22rem 0; border-bottom: 1px dotted #b9cfbd; }
.zutaten li:last-child { border-bottom: 0; }
.schritte { margin: 0; padding-left: 1.3rem; }
.schritte li { margin-bottom: .7rem; }

/* Jahresregister */
.jahre { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.jahre a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 4.6rem; padding: .5rem .9rem;
  background: var(--gold-hell); border: 1px solid #ddc898; border-radius: 3px;
  color: var(--gruen-tief); font-weight: 700; text-decoration: none;
  box-shadow: var(--schatten-klein);
}
.jahre a:hover { background: var(--gruen); color: #fff; border-color: var(--gruen); }
.jahre a[aria-current="page"] { background: var(--gruen); color: #fff; border-color: var(--gruen); }

/* ---------- Lageplan ---------- */
.lageplan { background: var(--zettel); border: 1px solid var(--zettel-rand); border-radius: 3px; padding: .8rem; box-shadow: var(--schatten-klein); }
.lageplan svg { width: 100%; height: auto; display: block; }

/* ---------- Fuß ---------- */
.fuss {
  background: var(--gruen-tief); color: #d9e5db;
  border-top: 4px solid var(--gold);
  padding: 2.4rem 0 1.4rem; margin-top: 1rem;
  font-size: .97rem;
}
.fuss-innen { max-width: var(--breit); margin: 0 auto; padding: 0 1rem; display: grid; gap: 1.8rem; }
@media (min-width: 48rem) { .fuss-innen { grid-template-columns: repeat(3, 1fr); } }
.fuss h2 { font-size: 1.05rem; color: #fff; margin-bottom: .6rem; }
.fuss a { color: #ffd98a; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .35rem; }
.fuss li a { display: inline-block; padding: .22rem 0; min-height: 1.5rem; }
.fuss address { font-style: normal; }
.fuss-schluss {
  max-width: var(--breit); margin: 2rem auto 0; padding: 1rem 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9rem; color: #b7c9ba;
}

/* ---------- Hilfsklassen ---------- */
.nur-fuer-screenreader {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.eng { max-width: var(--eng); }
.abstand-oben { margin-top: 1.4rem; }
.hinweis {
  background: var(--gold-hell); border-left: 4px solid var(--gold);
  padding: .9rem 1rem; border-radius: 0 3px 3px 0; font-size: .96rem;
}
