:root {
  --paper: #FAF3E3;
  --ink: #141414;
  --orange: #F24E1E;
  --coral: #FF7262;
  --purple: #A259FF;
  --blue: #1ABCFE;
  --green: #0ACF83;
  --yellow: #FFF22F;
  --pink: #FA447F;
  --lavender: #9A85B6;
  --gold: #DCC97E;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
a, button, select, input { touch-action: manipulation; -webkit-tap-highlight-color: rgba(162,89,255,.25); }
h1, h2, h3 { text-wrap: balance; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
}
/* Halbton-Punkte nur auf der Startseite (der laute Moment) */
body.home {
  background-image: radial-gradient(rgba(20,20,20,.08) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
}
::selection { background: var(--purple); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.display { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: -0.02em; }

/* ---------- Start: Hero ---------- */
.hero { padding: clamp(64px, 12vw, 120px) 20px clamp(48px, 8vw, 70px); text-align: center; position: relative; }
/* „10 ×“ immer groß ÜBER „Open House“, nie daneben */
.hero h1 { font-size: clamp(40px, 14.5vw, 150px); display: flex; flex-direction: column; align-items: center; }
.hero h1 .num {
  display: block; font-size: 2.3em; line-height: .78; letter-spacing: -0.05em;
  color: var(--ink); text-shadow: .045em .045em 0 var(--blue);
  transform: rotate(-3deg); margin-bottom: .12em;
}
.hero h1 .filled { display: block; white-space: nowrap; color: var(--orange); text-shadow: .045em .045em 0 var(--ink); transform: rotate(1deg); }
.badge {
  display: inline-block; background: var(--blue); border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink); padding: 6px 16px; font-family: "Space Mono", monospace;
  font-weight: 700; transform: rotate(-3deg); margin-bottom: 26px;
  white-space: nowrap; font-size: clamp(13px, 3.9vw, 17px);
}

/* ---------- Marquee (nur Startseite) ---------- */
.marquee {
  background: var(--ink); color: var(--yellow); overflow: hidden; white-space: nowrap;
  font-family: "Space Mono", monospace; font-weight: 700; font-size: 15px; text-transform: uppercase; padding: 10px 0;
  transform: rotate(-1deg) scale(1.02);
}
.marquee .track { display: inline-block; animation: scroll 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Start: Türen ---------- */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 30px; max-width: 1000px; margin: 70px auto 0; padding: 0 20px; }
.door {
  display: block; text-decoration: none; border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  padding: 30px 26px; transition: transform .18s ease, box-shadow .18s ease;
}
.door:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 var(--ink); }
.door h2 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 5vw, 48px); line-height: .95; }
.door p { margin-top: 10px; font-size: 17px; }
.door .go { display: inline-block; margin-top: 18px; font-family: "Space Mono", monospace; font-weight: 700; font-size: 14px; border: 3px solid var(--ink); padding: 6px 14px; box-shadow: 4px 4px 0 var(--ink); background: var(--yellow); color: var(--ink); }
.door.flyer { background: var(--lavender); }
.door.rezepte { background: var(--pink); }
.door.rezepte .go { background: #fff; }

/* ---------- Unterseiten: Kopf ---------- */
.page-head { max-width: 1240px; margin: 0 auto; padding: 24px 20px 10px; }
.page-head h1 { font-size: clamp(48px, 9vw, 96px); color: var(--orange); text-shadow: 4px 4px 0 var(--ink); margin-top: 28px; }
.page-head .sub { margin-top: 14px; max-width: 62ch; font-size: 18px; }
@media (min-width: 600px) { .page-head .sub.oneline { white-space: nowrap; max-width: none; } }
.backlink { display: inline-block; font-family: "Space Mono", monospace; font-weight: 700; font-size: 14px; text-decoration: none; border: 3px solid var(--ink); background: #fff; padding: 8px 14px; min-height: 44px; box-shadow: 4px 4px 0 var(--ink); }
.backlink:hover { background: var(--yellow); }

/* ---------- Filterleiste ---------- */
.filterbar {
  position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper);
  padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 30px;
}
.filterbar input, .filterbar select {
  font-family: "Space Mono", monospace; font-size: 16px; padding: 8px 10px; min-height: 44px;
  border: 3px solid var(--paper); background: var(--paper); color: var(--ink); border-radius: 0; max-width: 100%;
}
.filterbar input { flex: 1 1 220px; max-width: 360px; }
.filterbar input:focus, .filterbar select:focus { outline: 3px solid var(--yellow); }
.filterbar button {
  font-family: "Space Mono", monospace; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 44px;
  background: var(--orange); color: #fff; border: 3px solid var(--paper); padding: 8px 14px;
}
.filterbar button:hover { background: var(--yellow); color: var(--ink); }
.filterbar .count { margin-left: auto; font-family: "Space Mono", monospace; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
section { padding: 40px 20px; max-width: 1240px; margin: 0 auto; }
.sec-head { margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(36px, 6vw, 60px); }

/* ---------- Gerichte-Karten ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px 22px; align-items: start; }
.card {
  background: #fff; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  padding: 14px 16px 16px; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translate(-3px, -3px) !important; box-shadow: 11px 11px 0 var(--ink); }
.card.flash { animation: flash 1s ease; }
@keyframes flash { 0%,100% { background:#fff; } 30% { background: var(--yellow); } 65% { background: var(--coral); } }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
/* Kategorie: runde Pille in Farben, die keine Flyer-/Jahresfarbe sind (Jahres-Badges sind eckig) */
.card .cat { font-family: "Space Mono", monospace; font-size: 12px; font-weight: 700; text-transform: uppercase; border: 2.5px solid var(--ink); border-radius: 999px; padding: 1px 10px; background: var(--green); color: var(--ink); }
.card .cat.süß { background: var(--orange); }
.card h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -0.005em; hyphens: auto; }
.card .yrs { display: flex; gap: 5px; flex-wrap: wrap; }
.yr { font-family: "Space Mono", monospace; font-weight: 700; font-size: 12px; border: 2.5px solid var(--ink); padding: 0 6px; white-space: nowrap; }
.empty { font-family: "Space Mono", monospace; padding: 34px; text-align: center; border: 4px dashed var(--ink); background: #fff; }

/* ---------- Flyer-Wand ---------- */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 24px; align-items: start; }
.poster { border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 10px; transition: transform .18s ease; background: #fff; }
.poster:hover { transform: scale(1.02) !important; z-index: 3; }
.poster-open { display: block; width: 100%; padding: 0; border: 3px solid var(--ink); background: none; cursor: zoom-in; }
.poster-open img { width: 100%; height: auto; display: block; }
.poster-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.poster .yr { font-family: "Bricolage Grotesque", sans-serif; font-size: 22px; padding: 0 10px; border-width: 3px; background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.poster.pause { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: repeating-linear-gradient(45deg, #fff, #fff 14px, var(--gold) 14px, var(--gold) 28px); }
.poster.pause .yr { background: var(--ink); color: var(--yellow); }
.pause-txt { font-family: "Space Mono", monospace; font-weight: 700; font-size: 13px; background: #fff; border: 2.5px solid var(--ink); padding: 0 8px; }
.poster.upcoming img { filter: grayscale(.5) contrast(1.05); }
.tag { display: inline-block; border: 3px solid var(--ink); font-family: "Space Mono", monospace; font-size: 12px; font-weight: 700; padding: 3px 8px; box-shadow: 2.5px 2.5px 0 var(--ink); text-decoration: none; color: var(--ink); }
.tag-upcoming { background: var(--blue); }
.tag-menu { background: var(--green); min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; }
.tag-menu:hover { background: var(--yellow); }

.lightbox { overscroll-behavior: contain; margin: auto; border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); background: var(--paper); padding: 14px; max-width: min(92vw, 900px); max-height: 92dvh; }
.lightbox::backdrop { background: rgba(20,20,20,.75); }
.lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(92dvh - 90px); margin: 0 auto; border: 3px solid var(--ink); }
.lb-cap { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 22px; margin-top: 8px; }
.lb-close:hover { background: #fff; }
.lb-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; font-size: 26px; font-weight: 700; line-height: 1; border: 3px solid var(--ink); background: var(--yellow); cursor: pointer; }

footer { border-top: 4px solid var(--ink); margin-top: 60px; padding: 26px 20px 50px; text-align: center; font-family: "Space Mono", monospace; font-size: 14px; background: var(--ink); color: var(--paper); }
footer a { color: var(--yellow); display: inline-block; padding: 12px 6px; }
.home footer { margin-top: 120px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee .track { animation: none; }
  * { transition: none !important; }
  .card.flash { animation: none; }
}
