/* Suchseiten (Workshops, Kurse und Milongas): bauen auf den Farben und Schriften von style.css auf */
:root {
  --ok: #1d6b45; --ok-bg: #e3f2e9; --mid: #8a5a00; --mid-bg: #fbefd2; --low: #7a2a2a; --low-bg: #f6dede; --chip: #f1ebdc;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ok: #7fd1a3; --ok-bg: #1d3328; --mid: #e6c36a; --mid-bg: #3a2f14; --low: #f0a3a3; --low-bg: #3b2222; --chip: #232d28; }
}
:root[data-theme="dark"] { --ok: #7fd1a3; --ok-bg: #1d3328; --mid: #e6c36a; --mid-bg: #3a2f14; --low: #f0a3a3; --low-bg: #3b2222; --chip: #232d28; }

body.suche { font-family: var(--sans); font-size: 1rem; line-height: 1.5; }
.suche .wrap { max-width: 60rem; padding-bottom: 3rem; }
.sitenav { display: flex; flex-wrap: wrap; gap: .4rem; padding: 1rem 0 .4rem; font-family: var(--sans); font-size: .85rem; }
.sitenav a { text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; }
.sitenav a[aria-current="page"] { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.suche h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.05; margin: 1.2rem 0 .6rem; }
.suche .sub { color: var(--muted); max-width: 46rem; margin: 0 0 1.4rem; font-size: 1.02rem; }
.panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.field { flex: 1 1 170px; min-width: 0; }
label.l { display: block; font-size: .74rem; color: var(--muted); margin: 0 0 4px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.suche input[type=search], .suche select { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; min-height: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.chip { font: inherit; border: 1px solid var(--line); background: var(--chip); color: var(--ink); border-radius: 999px; padding: 6px 13px; min-height: 40px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.suche input:focus-visible, .suche select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--muted); font-size: .93rem; }
.opts label { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; }
.count { margin: 16px 2px 10px; color: var(--muted); }
.count strong { color: var(--ink); }
.list { display: grid; gap: 10px; }
.month { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin: 1.4rem 0 .2rem; border-bottom: 1px solid var(--line); padding-bottom: .2rem; }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: 1fr; gap: 6px; min-width: 0; }
.card > * { min-width: 0; }
.top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.name { font-weight: 650; overflow-wrap: anywhere; }
.badge { font-size: .74rem; border-radius: 999px; padding: 2px 9px; background: var(--chip); color: var(--muted); border: 1px solid var(--line); }
.badge.sicher { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.Sammelkalender { background: var(--mid-bg); color: var(--mid); border-color: transparent; }
.badge.unsicher, .badge.nicht { background: var(--low-bg); color: var(--low); border-color: transparent; }
.where { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.when { font-size: 1rem; overflow-wrap: anywhere; }
.date { font-weight: 650; color: var(--terra); }
.meta { color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.days { display: inline-flex; gap: 4px; margin-right: 6px; }
.day { font-size: .76rem; font-weight: 650; background: var(--green); color: var(--green-ink); border-radius: 6px; padding: 1px 7px; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }
.more { display: block; margin: 16px auto 0; font: inherit; border: 1px solid var(--green); background: var(--green); color: var(--green-ink); border-radius: 999px; padding: 10px 24px; min-height: 44px; cursor: pointer; }
.suche footer { margin-top: 2rem; color: var(--muted); font-size: .88rem; max-width: 46rem; }
.suche footer a { color: inherit; }
.footnav { font-family: var(--sans); font-size: .9rem; display: flex; gap: 1rem; margin-top: 1rem; }
@media (min-width: 720px) { .card.wide { grid-template-columns: 1fr auto; align-items: start; } .side { text-align: right; } .side .meta { justify-content: flex-end; } }

/* Startseite und Reiseübersicht: gleichrangige Auswahlkarten */
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.4rem; }
.choice { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-top: 4px solid var(--terra); border-radius: 10px; padding: 1.1rem 1.2rem 1.2rem; min-width: 0; }
.choice:hover { border-color: var(--green); border-top-color: var(--green); }
.choice:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice b { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.15; }
.choice span { color: var(--muted); font-size: .97rem; line-height: 1.45; }

/* Kalenderansicht */
.calhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 8px; }
.calmonth { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; text-align: center; flex: 1; }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calwd { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: center; padding: 2px 0; font-weight: 600; }
.calcell { position: relative; min-height: 3.1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 5px 6px; font: inherit; color: var(--ink); text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 2px; min-width: 0; }
.calcell.empty { border-color: transparent; background: transparent; }
.calcell.has { cursor: pointer; background: var(--paper-2); }
.calcell.has:hover { border-color: var(--green); }
.calcell.sel { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.calcell.today .caln { color: var(--terra); font-weight: 700; text-decoration: underline; }
.calcell.sel.today .caln { color: var(--green-ink); }
.caln { font-size: .86rem; }
.calc { align-self: flex-end; font-size: .74rem; font-weight: 650; background: var(--terra); color: #fff; border-radius: 999px; padding: 0 7px; min-width: 1.4rem; text-align: center; }
.calcell.sel .calc { background: var(--green-ink); color: var(--green); }
#cal { margin-bottom: 4px; }
@media (max-width: 520px) { .calcell { min-height: 2.6rem; padding: 3px 4px; } .calmonth { font-size: 1.15rem; } }

/* Filterbereiche wie auf der ChatGPT-Seite: Listen zum Ankreuzen */
.selbar { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 12px; }
.selbar span { color: var(--muted); font-size: .93rem; }
.linkbtn { font: inherit; font-size: .9rem; background: none; border: 0; color: var(--terra); cursor: pointer; text-decoration: underline; margin-left: auto; min-height: 36px; }
.chip.big { padding: 8px 18px; font-size: 1rem; }
.facetbox { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.facettitle { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin: 0 0 4px; }
.facethint { color: var(--muted); font-size: .88rem; margin: 0 0 10px; max-width: 52rem; }
.facetbox input[type=search] { max-width: 28rem; margin-bottom: 4px; }
.facetgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2px 18px; margin-top: 12px; max-height: 24rem; overflow-y: auto; padding-right: 4px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.opt input { margin-top: 4px; width: 1.1rem; height: 1.1rem; accent-color: var(--green); }
.optname { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.optname small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.opt em { font-style: normal; color: var(--muted); font-size: .8rem; }
.linkrow { margin: 0 0 14px; }
.choicelink { font-family: var(--sans); font-size: .95rem; color: var(--terra); }

/* Terminübersicht an der Seite */
.suche .wrap.wide { max-width: 78rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.mainc { min-width: 0; }
.aside { order: -1; background: #8e1b32; color: #fff; border-radius: 12px; padding: 16px 18px; max-height: 18rem; overflow-y: auto; min-width: 0; }
@media (min-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr) 20rem; }
  .aside { order: 0; position: sticky; top: 12px; max-height: calc(100vh - 24px); }
}
.aeyebrow { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; text-align: center; margin: 0 0 6px; opacity: .9; }
.atitle { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; text-align: center; margin: 0 0 6px; color: #fff; }
.asub { font-size: .85rem; text-align: center; margin: 0 0 8px; opacity: .92; }
.acount { font-size: .85rem; text-align: center; margin: 0 0 10px; opacity: .92; }
.ayear { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; text-align: center; margin: 16px 0 2px; }
.amonth { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; text-align: center; margin: 12px 0 6px; }
.aitem { display: block; text-align: center; color: #fff; font-family: var(--serif); font-size: 1rem; margin: 0 0 8px; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.aitem small { display: block; font-family: var(--sans); font-size: .76rem; opacity: .92; text-decoration: none; }
.aitem:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.card.flash { box-shadow: 0 0 0 3px var(--gold); transition: box-shadow .3s; }
