@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(fonts/montserrat-400.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(fonts/montserrat-600.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(fonts/montserrat-800.woff2) format('woff2'); }

:root {
  --green: #239747; --dark: #006826; --mint: #7CC8A9; --soft: #E9F5EC; --cream: #FFFDF2;
  --blue: #2898B7; --yellow: #FFDF30; --orange: #FF7821; --berry: #BA3353;
  --text: #2F2F2F; --muted: #5d5d5d; --line: #e2e6e3; --bg: #f5f7f4; --card: #fff;
  --radius: 16px; --top: env(safe-area-inset-top, 0px); --bottom: env(safe-area-inset-bottom, 0px);
  --fs: 17px;
}
html.large { --fs: 20px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Montserrat, -apple-system, system-ui, sans-serif; font-size: var(--fs); line-height: 1.55; -webkit-text-size-adjust: 100%; }
body { padding-top: calc(60px + var(--top)); padding-bottom: calc(70px + var(--bottom)); min-height: 100vh; }
a { color: var(--dark); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; top: calc(8px + var(--top)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopfzeile */
.top { position: fixed; z-index: 20; inset: 0 0 auto 0; height: calc(60px + var(--top)); padding: var(--top) 10px 0; background: var(--dark); color: #fff; display: flex; align-items: center; gap: 6px; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.top .logo { height: 40px; width: auto; margin-left: 6px; }
.top .title { font-size: 1.02rem; font-weight: 800; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .logo:not([hidden]) + .title { display: none; }
.top-actions { margin-left: auto; display: flex; gap: 2px; }
.icon-btn, .back { width: 44px; height: 44px; border: 0; background: none; color: #fff; display: grid; place-items: center; border-radius: 12px; cursor: pointer; }
.icon-btn svg, .back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn[aria-pressed="true"] svg { fill: currentColor; }

/* Tab-Leiste */
.tabs { position: fixed; z-index: 20; inset: auto 0 0 0; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: var(--bottom); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px 7px; font-size: .68rem; font-weight: 600; color: var(--muted); text-decoration: none; position: relative; min-height: 56px; }
html.large .tabs a { font-size: .62rem; }
.tabs svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current="page"] { color: var(--dark); }
.tabs a[aria-current="page"] svg { stroke-width: 2.5; }
.tabs .dot { position: absolute; top: 7px; left: calc(50% + 9px); width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }

main { max-width: 760px; margin: 0 auto; padding: 14px 14px 24px; outline: none; }
h2 { font-size: 1.35rem; font-weight: 800; line-height: 1.25; margin: 6px 0 12px; }
h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.3; margin: 20px 0 8px; }
.lead { color: var(--muted); margin: -6px 0 14px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }

.banner { position: sticky; top: calc(60px + var(--top)); z-index: 10; background: var(--cream); border-bottom: 1px solid #efe6b5; padding: 8px 16px; font-size: .82rem; text-align: center; }

/* Filter-Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: 7px 14px; font-size: .84rem; font-weight: 600; cursor: pointer; min-height: 40px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.filterlabel { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 0 6px; }

.search { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: .95rem; background: #fff; margin-bottom: 12px; }

/* Karten */
.list { display: grid; gap: 14px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,60,20,.06); text-decoration: none; color: inherit; display: block; position: relative; }
.card .img { aspect-ratio: 16/9; background: var(--soft) center/cover no-repeat; position: relative; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px 14px 14px; }
.card h3 { margin: 4px 0 4px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .76rem; color: var(--muted); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: .72rem; font-weight: 800; background: var(--soft); color: var(--dark); }
.badge.instagram { background: #fbe7ef; color: #a2214f; } .badge.facebook { background: #e6eefc; color: #1d4fa5; }
.badge.youtube { background: #fde8e6; color: #b3261e; } .badge.tiktok { background: #ececec; color: #111; }
.badge.new { background: var(--orange); color: #fff; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play span { width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; }
.play svg { width: 22px; fill: #fff; margin-left: 3px; }
.card.row { display: flex; gap: 12px; align-items: center; padding: 10px; }
.card.row .thumb { width: 92px; height: 92px; flex: none; border-radius: 12px; background: var(--soft) center/cover; overflow: hidden; }
.card.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card.row .body { padding: 0; min-width: 0; }
.card.row p { -webkit-line-clamp: 2; }

.area-title { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-size: 1.05rem; font-weight: 800; }
.area-title::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--green); }

/* Detailseiten */
.hero { margin: -14px -14px 14px; aspect-ratio: 16/10; background: var(--soft) center/cover; position: relative; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.article p, .article li { margin: 0 0 12px; }
.article ul { padding-left: 22px; margin: 0 0 12px; }
.article h3 { margin-top: 22px; }
.article figure { margin: 16px 0; }
.article figure img { border-radius: 12px; width: 100%; }
.article figcaption { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.caption { white-space: pre-line; }

.actions { display: grid; gap: 10px; margin: 18px 0; }
.actions.two { grid-template-columns: 1fr 1fr; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 14px; border: 0; padding: 10px 16px; font-weight: 800; font-size: .95rem; text-decoration: none; cursor: pointer; background: var(--dark); color: #fff; text-align: center; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.light { background: var(--soft); color: var(--dark); }
.btn.outline { background: #fff; color: var(--dark); border: 2px solid var(--dark); }
.btn.warm { background: var(--orange); color: #1a1a1a; }

.date-box { flex: none; width: 62px; border-radius: 12px; background: var(--soft); color: var(--dark); text-align: center; padding: 8px 0; line-height: 1.1; }
.date-box b { display: block; font-size: 1.5rem; font-weight: 800; }
.date-box span { font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.month { font-weight: 800; margin: 20px 0 8px; color: var(--dark); }
.facts { background: #fff; border-radius: var(--radius); padding: 4px 16px; margin: 0 0 16px; }
.facts div { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.facts div:last-child { border: 0; }
.facts svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

/* Mitmachen / Mehr */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: #fff; border-radius: var(--radius); padding: 16px 14px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.05); display: flex; flex-direction: column; gap: 6px; min-height: 120px; border: 0; text-align: left; cursor: pointer; }
.tile .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); }
.tile .ic svg { width: 24px; height: 24px; fill: none; stroke: var(--dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile b { font-size: .95rem; line-height: 1.25; }
.tile span { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.tile.wide { grid-column: 1 / -1; background: var(--dark); color: #fff; min-height: 0; flex-direction: row; align-items: center; }
.tile.wide span { color: #d9efe0; } .tile.wide .ic { background: rgba(255,255,255,.15); } .tile.wide .ic svg { stroke: #fff; }
.menu { background: #fff; border-radius: var(--radius); overflow: hidden; margin: 0 0 16px; }
.menu > * { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; text-decoration: none; color: inherit; min-height: 54px; cursor: pointer; }
.menu > *:last-child { border-bottom: 0; }
.menu .grow { flex: 1; min-width: 0; }
.menu small { display: block; color: var(--muted); font-size: .78rem; }
.menu .chev { width: 18px; height: 18px; fill: none; stroke: #9aa29c; stroke-width: 2.4; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #c9cfca; transition: background .2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid var(--yellow); outline-offset: 2px; }

.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.empty svg { width: 56px; height: 56px; fill: none; stroke: var(--mint); stroke-width: 1.6; margin: 0 auto 10px; }
.legal h3 { margin-top: 18px; }
.legal p { margin: 0 0 10px; }
.note { background: var(--cream); border-radius: 12px; padding: 12px 14px; font-size: .86rem; margin: 12px 0; }
.ptr { text-align: center; font-size: .8rem; color: var(--muted); height: 0; overflow: hidden; transition: height .15s; }

.toast { position: fixed; left: 50%; bottom: calc(84px + var(--bottom)); transform: translate(-50%, 20px); background: #222; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .86rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 30; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { background: linear-gradient(90deg, #eef1ee 25%, #f7f8f7 50%, #eef1ee 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); height: 240px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 700px) { .list.grid2 { grid-template-columns: 1fr 1fr; } .tiles { grid-template-columns: repeat(3, 1fr); } }
[hidden] { display: none !important; }
main:focus, main:focus-visible { outline: none; }
.menu > * > svg:first-child { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu label { cursor: pointer; }
