/* ============ Theme: Ausg'steckt – Weinlaub & Buschen ============ */
:root {
  --paper: #f6f0e2;        /* Hintergrund: helles Leinen */
  --paper-2: #ece2cc;
  --card: #fffcf5;
  --ink: #2a2a20;
  --ink-soft: #5c5a48;
  --muted: #8a8670;
  --line: #ddd1b6;
  --vine: #3f5d2a;         /* Rebengrün */
  --vine-dark: #2a421b;
  --vine-light: #e2ead2;
  --wine: #7a2134;         /* Weinrot */
  --wine-dark: #5a1626;
  --wine-light: #f4e0e3;
  --gold: #c88a24;         /* Herbstlaub */
  --gold-light: #f7e7c4;
  --plum: #6a4a8a;         /* Weinfeste */
  --plum-light: #ece4f4;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(60, 50, 20, .08), 0 1px 2px rgba(60, 50, 20, .06);
  --shadow-lg: 0 12px 34px rgba(40, 30, 10, .18);
  --font-title: "Alegreya", Georgia, serif;
  --font-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --nav-h: 60px;
}

* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(63, 93, 42, .10), transparent 45%),
    radial-gradient(ellipse at 100% 0%, rgba(200, 138, 36, .10), transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 700; margin: 0; line-height: 1.15; }
a { color: var(--wine); }
a:hover { color: var(--wine-dark); }
button, input, select { font: inherit; color: inherit; }
small { font-size: .82em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a, button { -webkit-tap-highlight-color: rgba(63, 93, 42, .15); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Navigation ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 24px;
  min-height: var(--nav-h);
  background: rgba(255, 252, 245, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--vine-dark); }
.brand:hover { color: var(--vine-dark); }
.buschen { width: 38px; height: 38px; color: #6b4b2a; flex: none; }
.brand-text { font-family: var(--font-title); font-weight: 800; font-size: 22px; line-height: 1; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
.topnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.topnav ul a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}
.topnav ul a:hover { background: var(--vine-light); color: var(--vine-dark); }
.topnav ul a[aria-current="page"] { background: var(--vine); color: #fff; }
.nav-icon { font-size: 15px; }
.nav-short { display: none; }

.testdate { margin: 0; padding: 6px 16px; text-align: center; background: var(--gold-light); color: #6a4a10; font-size: 15px; }
.tag.hidden-tag { background: #5a5a5a; color: #fff; font-size: 13px; vertical-align: middle; }
.hidden-note { border-left-color: #5a5a5a; }

/* ---------- Kopfbereich ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 40px 16px 30px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(63, 93, 42, .14), transparent 60%);
}
.hero .hero-buschen { width: 92px; height: 92px; color: #6b4b2a; }
.hero .leaf { position: absolute; width: 220px; opacity: .10; pointer-events: none; fill: var(--vine); }
.hero .leaf.l1 { left: -40px; top: -30px; transform: rotate(-25deg); }
.hero .leaf.l2 { right: -50px; bottom: -60px; transform: rotate(150deg); fill: var(--gold); opacity: .16; }
.eyebrow { margin: 0 0 6px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; color: var(--vine); }
.hero h1 { font-size: clamp(32px, 6vw, 56px); color: var(--vine-dark); }
.hero h1 em { font-style: normal; color: var(--wine); }
.lead { max-width: 640px; margin: 12px auto 0; color: var(--ink-soft); font-size: 19px; }
.hero-stats { display: flex; justify-content: center; gap: 32px; margin-top: 22px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--font-title); font-size: 34px; line-height: 1; color: var(--wine); }
.hero-stats small { color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; font-weight: 600; }

.page-hero { text-align: center; padding: 30px 16px 22px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 42px); color: var(--vine-dark); }
.page-hero .lead { font-size: 18px; margin-top: 8px; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 24px 48px;
}
.results { min-width: 0; }

/* ---------- Filter ---------- */
.filters {
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 14px);
  max-height: calc(100vh - var(--nav-h) - 28px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.filters-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.filters h2 { font-size: 22px; color: var(--vine-dark); }
.link-btn { background: none; border: 0; color: var(--wine); cursor: pointer; text-decoration: underline; padding: 0; font-size: inherit; text-align: left; }
.link-btn:hover { color: var(--wine-dark); }
.field { display: block; border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.field > span, .field > legend { display: block; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; padding: 0; }
.field input[type="search"], .field select, .sort select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.chip small { color: var(--muted); }
.chip:hover { border-color: var(--vine); }
.chip[aria-pressed="true"] { background: var(--vine); border-color: var(--vine); color: #fff; }
.chip[aria-pressed="true"] small { color: #d6e2c4; }
.check { display: flex; gap: 10px; align-items: center; margin: 8px 0; cursor: pointer; font-size: 16px; }
.check input { accent-color: var(--vine); width: 18px; height: 18px; flex: none; }

/* ---------- Werkzeugleiste ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.count { margin: 0; font-weight: 700; color: var(--vine-dark); }
.sort select { width: auto; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 700;
  border: 1px solid var(--vine);
  background: var(--vine);
  color: #fff;
  text-decoration: none;
}
.btn:hover { background: var(--vine-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--vine-dark); }
.btn.ghost:hover { background: var(--vine-light); }
#filterToggle { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; min-height: 4px; }
.active-filters .chip { font-size: 14px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--wine); color: #fff; font-size: 12px; line-height: 1; }

/* ---------- Tags & Status ---------- */
.tag { display: inline-block; font-size: 13px; padding: 1px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); white-space: nowrap; }
.tag.warn { background: var(--gold-light); color: #7a5410; }
.tag.note-tag { background: var(--wine-light); color: var(--wine-dark); }
.tag.open-tag { background: var(--vine-light); color: var(--vine-dark); font-weight: 700; }
.tag.fest-tag { background: var(--plum-light); color: var(--plum); font-weight: 700; }
.warn-inline { color: var(--gold); font-size: .85em; cursor: help; }
.status { display: inline-block; margin: 6px 0 0; padding: 2px 10px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.status.open { background: var(--vine); color: #fff; }
.status.soon { background: var(--gold-light); color: #6a4a10; }
.status.later { background: var(--paper-2); color: var(--ink-soft); }
.status.none { background: transparent; color: var(--muted); padding-left: 0; font-weight: 500; }

/* ---------- Heute & morgen ---------- */
.days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.day-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.day-block:first-child { border-top: 5px solid var(--vine); }
.day-block + .day-block { border-top: 5px solid var(--gold); }
.day-head h2 { font-size: 30px; color: var(--vine-dark); }
.day-date { margin: 2px 0 0; font-weight: 600; color: var(--ink-soft); }
.holiday { color: var(--wine); font-weight: 700; }
.day-count { margin: 4px 0 12px; color: var(--muted); }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.entry {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.entry:hover { border-color: var(--vine); box-shadow: var(--shadow); }
.entry.fest { border-left: 4px solid var(--plum); }
.entry-time { font-family: var(--font-title); font-weight: 800; font-size: 19px; line-height: 1.15; color: var(--wine); }
.entry-time .time-unknown { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--muted); }
.entry-main { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.entry-name { font-weight: 700; font-size: 18px; line-height: 1.25; }
.entry-place { color: var(--vine-dark); font-weight: 600; font-size: 16px; }
.entry-place small { color: var(--muted); font-weight: 400; }
.entry-addr { color: var(--ink-soft); font-size: 15px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.star { color: var(--gold); }
.always { margin-top: 14px; }
.always summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); padding: 6px 0; }
.always .entries { margin-top: 6px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 19px; font-style: italic; }
.empty.small { padding: 16px 8px; font-size: 17px; }

.soon { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.soon h2 { font-size: 24px; color: var(--vine-dark); margin-bottom: 10px; }
.soon-list { list-style: none; margin: 0; padding: 0; }
.soon-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); }
.soon-list li:first-child { border-top: 0; }
.soon-day { font-weight: 700; color: var(--vine-dark); text-decoration: none; }
.soon-day small { display: block; font-weight: 500; color: var(--muted); }
.soon-names { line-height: 1.6; }
.soon-names .link-btn { font-weight: 700; color: var(--ink); text-decoration-color: var(--line); }
.soon-names small { color: var(--ink-soft); }

/* ---------- Kalender ---------- */
.cal-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cal-head h2 { font-size: 28px; color: var(--vine-dark); text-align: center; flex: 1; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 22px; line-height: 1; color: var(--vine-dark); }
.cal-nav:hover { background: var(--vine-light); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-height: 104px;
  padding: 6px;
  text-align: left;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.cal-day:hover { border-color: var(--vine); }
.cal-day.out { opacity: .45; }
.cal-day.has { background: #f4f8ec; }
.cal-day.many { background: var(--vine-light); }
.cal-day.hol .cal-num { color: var(--wine); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--gold); }
.cal-day.sel { border-color: var(--vine-dark); box-shadow: inset 0 0 0 2px var(--vine-dark); }
.cal-num { font-family: var(--font-title); font-weight: 800; font-size: 18px; line-height: 1; }
.cal-hol { font-size: 11px; line-height: 1.1; color: var(--wine); }
.cal-count {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--vine);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.cal-names { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; min-width: 0; }
.cal-name { font-size: 12.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
.cal-name::before { content: "● "; color: var(--vine); font-size: 9px; vertical-align: 1px; }
.cal-name.fest::before { color: var(--plum); }
.cal-more { font-size: 12px; color: var(--muted); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 2px 0; font-size: 14px; color: var(--ink-soft); }
.cal-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--line); }
.cal-legend .lg-today::before { box-shadow: inset 0 0 0 2px var(--gold); background: #fff; }
.cal-legend .lg-has::before { background: #f4f8ec; }
.cal-legend .lg-many::before { background: var(--vine-light); }
.cal-legend .lg-hol::before { background: var(--wine-light); }
.day-list { margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--vine); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; scroll-margin-top: calc(var(--nav-h) + 10px); }
.day-list .day-head h2 { font-size: 26px; }

/* ---------- Betriebe (Steckbriefe) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  scroll-margin-top: calc(var(--nav-h) + 10px);
}
.card.fest { border-left: 5px solid var(--plum); }
.card-place { margin: 0 44px 2px 0; font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--vine); }
.card h3 { font-size: 22px; margin-right: 36px; }
.card .desc { margin: 8px 0 10px; font-size: 16px; color: var(--ink-soft); }
.contact { list-style: none; margin: 0 0 10px; padding: 10px 0 0; border-top: 1px dashed var(--line); font-size: 16px; display: grid; gap: 3px; }
.contact li { overflow-wrap: anywhere; }
.next { font-size: 16px; flex: 1; }
.next ul { margin: 4px 0 0; padding-left: 20px; }
.next p { margin: 4px 0 0; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.btn.small { min-height: 40px; padding: 6px 12px; font-size: 15px; }
.fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
}
.fav:hover { background: var(--gold-light); }
.fav[aria-pressed="true"] { color: var(--gold); }

/* ---------- Karte ---------- */
.map-wrap { position: relative; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: var(--card); }
.map { height: calc(100vh - 230px); min-height: 460px; background: var(--paper-2); }
.map .leaflet-tile-pane { filter: saturate(.8) sepia(.12); }
.map-offline { display: none; margin: 0; padding: 32px 16px; text-align: center; font-style: italic; color: var(--muted); }
.map-wrap.offline .map { display: none; }
.map-wrap.offline .map-offline { display: block; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 2px 0; font-size: 15px; color: var(--ink-soft); }
.map-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); margin-right: 6px; vertical-align: -2px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }

.leaf-marker {
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.leaf-marker span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 14px; line-height: 1; }
.leaf-marker.open, .map-legend .open { background: var(--vine); }
.leaf-marker.soon, .map-legend .soon { background: var(--gold); }
.leaf-marker.later, .map-legend .later { background: #9a9580; }
.leaf-marker.fest, .map-legend .fest { background: var(--plum); }
.leaflet-popup-content { margin: 12px 14px; font-family: var(--font-body); font-size: 15px; }
.map-popup strong { display: block; font-family: var(--font-title); font-size: 17px; }
.map-popup small { display: block; color: var(--ink-soft); }
.map-popup .status { font-size: 13px; margin: 6px 0; }
.map-popup button { display: block; width: 100%; margin-top: 4px; min-height: 40px; border: 0; border-radius: 8px; background: var(--vine); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Detail-Fenster ---------- */
.detail {
  max-width: 600px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 48px);
  border: 0;
  padding: 0;
  border-radius: 14px;
  color: var(--ink);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.detail::backdrop { background: rgba(30, 28, 18, .55); }
.detail .inner { padding: 26px 24px 22px; position: relative; }
.detail .kicker { margin: 0; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--vine); margin-right: 40px; }
.detail h2 { font-size: 28px; margin: 4px 40px 2px 0; color: var(--vine-dark); }
.detail h3 { font-size: 20px; margin: 18px 0 8px; color: var(--vine-dark); }
.detail .close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.detail .close:hover { background: var(--paper-2); }
.detail dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 14px 0 0; font-size: 16px; }
.detail dt { font-weight: 700; color: var(--ink-soft); }
.detail dd { margin: 0; overflow-wrap: anywhere; }
.periods { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 16px; }
.periods li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 6px 10px; border-radius: 8px; background: var(--paper); }
.periods li.running { background: var(--vine-light); }
.periods .when { font-weight: 700; }
.detail .note { font-size: 15px; color: var(--ink-soft); background: var(--gold-light); padding: 8px 12px; border-radius: 8px; }
.detail .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.detail .actions a, .detail .actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--vine);
  color: var(--vine-dark);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
}
.detail .actions .primary { background: var(--vine); color: #fff; }

/* ---------- Fußzeile ---------- */
.foot { text-align: center; color: var(--ink-soft); font-size: 15px; padding: 24px 16px 40px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
.foot-links { margin-top: 12px !important; font-weight: 700; }
.foot-app { margin-top: 14px !important; }

/* ---------- Impressum / Textseiten ---------- */
.page-narrow { max-width: 1200px; margin: 0 auto; padding: 26px 24px 48px; }
.legal { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; }
.legal section + section { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.legal h2 { font-size: 22px; color: var(--vine-dark); margin-bottom: 8px; }
.legal p, .legal ul { margin: 0 0 8px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
/* Platzhalter, die vor der Veröffentlichung ersetzt werden müssen */

/* ---------- Handy-Filterfenster ---------- */
.filters-close, .filters-foot { display: none; }

@media (hover: none) {
  .entry:hover { box-shadow: none; }
}

@media (max-width: 1100px) {
  .days { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 0; padding: 16px 16px 40px; }

  #filterToggle { display: inline-flex; }
  .filters { display: none; }
  .filters.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2000;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding: 0 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.filters-open { overflow: hidden; }
  .filters-head {
    position: sticky;
    top: 0;
    z-index: 1;
    align-items: center;
    gap: 12px;
    margin: 0 -16px 14px;
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
    background: var(--card);
    border-bottom: 1px solid var(--line);
  }
  .filters-head h2 { flex: 1; }
  .filters-close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; color: var(--ink-soft); }
  .filters-foot {
    display: block;
    position: sticky;
    bottom: 0;
    margin: 16px -16px 0;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: var(--card);
    border-top: 1px solid var(--line);
  }
  .filters-foot .btn { width: 100%; min-height: 48px; font-size: 17px; }

  /* Größere Tippflächen */
  .chip { padding: 8px 14px; font-size: 16px; min-height: 40px; }
  .check { padding: 8px 0; margin: 2px 0; }
  .check input { width: 22px; height: 22px; }
  .field input[type="search"], .field select, .sort select { padding: 10px 12px; font-size: 16px; min-height: 44px; }
  .btn { min-height: 44px; }

  .toolbar-right { margin-left: auto; }
  .map { height: calc(100vh - 290px); height: calc(100dvh - 290px); min-height: 340px; }
  .page-narrow { padding: 16px 16px 40px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* Navigation: Marke oben, Seiten als Tab-Leiste unten */
  /* kein backdrop-filter: der würde die fixierte Tab-Leiste an die Kopfzeile binden */
  .topnav { padding: 6px 12px; min-height: 52px; backdrop-filter: none; background: var(--card); }
  .brand-text { font-size: 20px; }
  .topnav ul {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 4px 4px max(4px, env(safe-area-inset-bottom));
    background: rgba(255, 252, 245, .97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgba(60, 50, 20, .08);
  }
  .topnav ul a { flex-direction: column; gap: 0; min-height: 54px; padding: 4px 2px; border-radius: 10px; font-size: 13px; justify-content: center; }
  .topnav ul a[aria-current="page"] { background: var(--vine-light); color: var(--vine-dark); }
  .nav-icon { font-size: 20px; line-height: 1.1; }
  .nav-long { display: none; }
  .nav-short { display: inline; }

  .hero { padding: 22px 16px 20px; }
  .hero .hero-buschen { width: 64px; height: 64px; }
  .eyebrow { font-size: 12px; letter-spacing: .12em; }
  .lead { font-size: 17px; }
  .hero-stats { gap: 24px; margin-top: 14px; }
  .hero-stats b { font-size: 28px; }
  .page-hero { padding: 18px 16px 14px; }
  .page-hero .lead { font-size: 16px; }

  .day-block, .soon, .day-list { padding: 14px 12px; }
  .day-head h2 { font-size: 26px; }
  .entry { grid-template-columns: 1fr; gap: 2px; padding: 12px; }
  .entry-time { font-size: 17px; }
  .soon-list li { grid-template-columns: 1fr; gap: 2px; }

  /* Kalender: nur Zahlen, Namen erscheinen darunter in der Tagesliste */
  .cal-wrap { padding: 8px; margin: 0 -8px; }
  .cal-head h2 { font-size: 22px; }
  .cal-grid { gap: 3px; }
  .cal-wd { font-size: 11px; }
  .cal-day { min-height: 56px; padding: 4px; align-items: center; }
  .cal-names, .cal-hol { display: none; }
  .cal-num { font-size: 16px; }
  .cal-count { position: static; margin-top: auto; min-width: 22px; height: 20px; font-size: 12px; }
  .cal-day.hol::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--wine); }

  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 16px 14px 14px; }
  .card h3 { font-size: 20px; }
  .card-actions .btn { flex: 1 1 auto; }

  /* Detail als Bottom-Sheet */
  .detail {
    width: 100%;
    max-width: none;
    max-height: 90vh;
    max-height: 90dvh;
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .detail .inner { padding: 20px 16px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .detail h2 { font-size: 24px; }
  .detail dl { grid-template-columns: 1fr; gap: 0; }
  .detail dt { margin-top: 8px; font-size: 14px; }
  .detail .actions a, .detail .actions button { flex: 1 1 calc(50% - 8px); }
  .detail .actions .primary { flex-basis: 100%; }

  .legal { padding: 20px 16px; }
  .foot { font-size: 14px; }
}

@media (max-width: 360px) {
  .brand-text small { display: none; }
  .cal-day { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
