/* ARTgenossen – öffentliche Webseite
   Markenfarbe kommt aus den Einstellungen (--brand, --brand-ink, --on-brand, --tint, --tint-2 im <head>). */
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --brand: #44d552; --brand-ink: #17702a; --on-brand: #111418; --tint: #ebf9ed; --tint-2: #c7f0cb;
  --sun: #ffc94a; --coral: #ff7a5c; --sky: #6aaeff; --lilac: #b994ff;
  --ink: #111418; --ink-2: #2b3038; --muted: #5a616b; --line: #e6e7e3; --paper: #ffffff; --cream: #f8f7f3;
  --r-sm: 12px; --r: 20px; --r-lg: 32px;
  --shadow: 0 1px 2px rgba(17, 20, 24, .05), 0 12px 32px -16px rgba(17, 20, 24, .25);
  --shadow-lg: 0 30px 60px -30px rgba(17, 20, 24, .35);
  --wrap: 1200px;
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
/* Telefonnummern nie mitten in der Nummer umbrechen */
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
svg { flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--brand-ink); }
.link-arrow:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 650; font-size: .97rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; background: var(--ink); color: #fff; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }
.btn:hover svg { transform: translateX(3px); }
.btn--cta { background: var(--brand); color: var(--on-brand); }
.btn--cta:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--sm { padding: 9px 16px; font-size: .9rem; }

/* Kopfleiste: schwebend, wird beim Scrollen kompakter */
.hd { position: sticky; top: 0; z-index: 100; padding: 14px 16px 0; transition: padding .25s var(--ease); }
.hd__bar { position: relative; isolation: isolate; max-width: calc(var(--wrap) + 16px); margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 18px; }
/* Glas-Hintergrund als eigene Ebene: backdrop-filter direkt auf der Leiste würde das Vollbild-Menü einsperren */
.hd__bar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(17, 20, 24, .07); box-shadow: 0 6px 24px -14px rgba(17, 20, 24, .25); transition: box-shadow .25s; }
.is-scrolled .hd { padding-top: 8px; }
.is-scrolled .hd__bar::before { box-shadow: 0 14px 36px -18px rgba(17, 20, 24, .4); }
.hd__logo { position: relative; z-index: 2; }
.hd__logo img { height: 42px; width: auto; }
.menu { display: flex; align-items: center; margin-left: auto; }
.menu__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.menu__item { position: relative; }
.menu__row { display: flex; align-items: center; }
.menu__row > a { padding: 9px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .15s; }
.menu__row > a:hover { background: var(--tint); }
.menu__item.is-here > .menu__row > a { background: var(--tint); color: var(--ink); }
.menu__toggle { border: 0; background: none; padding: 6px; margin-left: -10px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.menu__toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; display: block; transition: transform .2s; }
.menu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu__sub { position: absolute; left: -8px; top: 100%; padding-top: 14px; z-index: 10; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility 0s linear .18s; }
.menu__sub > ul { list-style: none; margin: 0; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); min-width: 270px; }
.menu__item:nth-child(n+3) .menu__sub { left: auto; right: -8px; }
.menu__sub a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; }
.menu__sub a:hover, .menu__sub a[aria-current] { background: var(--tint); }
.menu__sub3 { list-style: none; padding: 0 0 6px; margin: 0; }
.menu__sub3 a { font-weight: 450; font-size: .9rem; color: var(--muted); padding: 5px 12px; }
.menu__item.is-open .menu__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu__extra { display: none; }
.hd__cta { margin-left: 4px; }
.hd__burger { display: none; }
@media (hover: hover) and (min-width: 1101px) { .menu__item.has-sub:hover .menu__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } }
@media (min-width: 1101px) {
  .menu__sub--wide { left: 50% !important; right: auto !important; transform: translate(-30%, 6px); }
  .menu__item.is-open .menu__sub--wide, .menu__item.has-sub:hover .menu__sub--wide { transform: translate(-30%, 0); }
  .menu__sub--wide > ul { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 6px 10px; width: min(780px, 88vw); padding: 16px; }
  .menu__sub--wide > ul > li > a { font-family: var(--display); font-weight: 700; font-size: 1rem; }
}

/* Handy: Menü als Vollbild */
@media (max-width: 1100px) {
  .hd__cta { display: none; }
  .hd__burger { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 16px 10px 14px; font: inherit; font-weight: 650; cursor: pointer; position: relative; z-index: 2; }
  .bars { display: grid; gap: 4px; width: 18px; }
  .bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
  .hd__burger[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hd__burger[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
  .hd__burger[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .menu { position: fixed; inset: 0; z-index: 1; background: var(--paper); flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px;
    padding: 96px 24px 28px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .3s var(--ease), visibility 0s linear .3s; }
  .menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu__list { flex-direction: column; gap: 0; }
  .menu__item { border-bottom: 1px solid var(--line); }
  .menu__row > a { flex: 1; font-family: var(--display); font-size: 1.6rem; font-weight: 700; padding: 14px 4px; border-radius: 0; background: none !important; }
  .menu__item.is-here > .menu__row > a { color: var(--brand-ink); }
  .menu__toggle { margin: 0; padding: 12px; background: var(--cream); }
  .menu__sub { position: static; padding: 0 0 14px; opacity: 1; visibility: visible; transform: none; display: none; }
  .menu__item.is-open .menu__sub { display: block; }
  .menu__sub > ul { border: 0; box-shadow: none; padding: 0; min-width: 0; background: none; }
  .menu__sub a { font-size: 1.02rem; padding: 9px 4px; }
  .menu__extra { display: grid; gap: 14px; }
  .menu__extra .btn { width: 100%; padding: 16px; font-size: 1.05rem; }
  .menu__contact { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin: 0; font-weight: 600; }
  .is-menu-open { overflow: hidden; }
}
@media (max-width: 560px) { .hd { padding: 10px 10px 0; } .hd__logo img { height: 36px; } .hd__burger .lbl { display: none; } .hd__burger { padding: 12px; } }

/* Seitenkopf */
.phead { position: relative; overflow: hidden; margin: -78px 0 0; padding: 140px 0 56px; background: var(--cream); }
.phead__in { position: relative; z-index: 1; }
.phead__shape { position: absolute; border-radius: 50%; pointer-events: none; }
.phead__shape--a { width: 420px; height: 420px; right: -120px; top: -140px; background: var(--brand); opacity: .9; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.phead__shape--b { width: 140px; height: 140px; right: 300px; bottom: -70px; background: var(--sun); }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 550; display: inline-block; padding: 4px 0; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.phead__title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; max-width: 16ch; }
.phead__lead { margin: 18px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 58ch; }
@media (max-width: 760px) { .phead { padding: 120px 0 40px; } .phead__shape--a { width: 240px; height: 240px; right: -110px; top: -40px; } .phead__shape--b { display: none; } }

/* Aufbau */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 56px; padding-bottom: 96px; }
.layout--single { grid-template-columns: minmax(0, 1fr); }
.layout--single .content { max-width: 860px; margin: 0 auto; width: 100%; }
.is-home .layout--single .content { max-width: none; }
.is-home .layout { padding-top: 0; }
.side { position: sticky; top: 110px; align-self: start; }
.side__title { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; padding: 0 14px 12px; }
.side__list, .side__list ul { list-style: none; margin: 0; padding: 0; }
.side__list { display: grid; gap: 2px; border-left: 2px solid var(--line); }
.side__list a { display: block; padding: 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .15s, border-color .15s; }
.side__list a:hover { color: var(--ink); border-left-color: var(--muted); }
.side__list a[aria-current] { color: var(--ink); font-weight: 700; border-left-color: var(--brand); background: linear-gradient(90deg, var(--tint), transparent); }
.side__list ul a { padding-left: 28px; font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 28px; padding-top: 0; }
  .side { position: static; margin: 0 -24px; padding: 14px 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side__title { display: none; }
  .side__list { display: flex; gap: 8px; border: 0; width: max-content; }
  .side__list ul { display: none; }
  .side__list a { border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; margin: 0; white-space: nowrap; background: none; }
  .side__list a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .layout--single { padding-top: 40px; }
}

/* Bausteine */
.content > .b { margin: 0 0 32px; }
.b--h { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
.content > .b--h { margin: 56px 0 20px; }
.content > .b--h:first-child { margin-top: 0; }
.prose { font-size: 1.06rem; color: var(--ink-2); }
.prose > :last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.prose h3, .prose h2.sub { font-size: 1.35rem; margin: 1.5em 0 .5em; color: var(--ink); }
.prose > h2.sub:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--brand-ink); }
.b--bg-tint, .b--bg-brand { padding: 32px 36px; border-radius: var(--r-lg); }
.b--bg-tint { background: var(--tint); }
.b--bg-brand { background: var(--brand); color: var(--on-brand); }
.b--bg-brand .prose, .b--bg-brand .prose strong, .b--bg-brand a { color: var(--on-brand); }
.b--hr { border: 0; height: 2px; background: var(--line); margin: 48px 0; border-radius: 2px; }
.b--space { height: 32px; }
@media (max-width: 560px) { .b--bg-tint, .b--bg-brand { padding: 22px 20px; border-radius: var(--r); } }

.fig a { display: block; border-radius: var(--r); overflow: hidden; }
.fig img { width: 100%; transition: transform .5s var(--ease); }
.fig a:hover img { transform: scale(1.03); }
.fig figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.cols { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 32px; align-items: start; }
.cols--right { grid-template-columns: 1fr minmax(150px, 230px); }
.cols--right .cols__img { order: 2; }
.cols__img a { display: block; border-radius: var(--r); overflow: hidden; }
.cols__img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease); }
.cols__img a:hover img { transform: scale(1.04); }
@media (max-width: 560px) { .cols, .cols--right { grid-template-columns: 1fr; gap: 16px; } .cols--right .cols__img { order: 0; } .cols__img { max-width: 200px; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.gallery--few { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery--many a:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.gallery a { display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--cream); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } .gallery--many a:nth-child(7n+1) { grid-column: span 2; grid-row: auto; } }

.note { display: flex; gap: 18px; align-items: flex-start; }
.note__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
.note__icon svg { width: 22px; height: 22px; fill: currentColor; }
.b--bg-brand .note__icon { background: var(--paper); color: var(--ink); }
.note__title { font-size: 1.3rem; margin-bottom: 8px; }

/* Startseite */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: .92rem; color: var(--ink-2); background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; margin-bottom: 26px; }
.hero__kicker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--tint); }
.hero__title { font-size: clamp(2.6rem, 5.6vw, 4.8rem); font-weight: 800; letter-spacing: -0.045em; line-height: .98; margin-bottom: 24px; }
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 46ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__chips { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--cream); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; border: 1px solid var(--line); transition: background .15s, border-color .15s; }
.hero__chips a:hover { background: var(--tint); border-color: var(--brand); }
.hero__art { position: relative; padding: 28px; }
.hero__art img { position: relative; z-index: 2; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 220px 220px var(--r-lg) var(--r-lg); box-shadow: var(--shadow-lg); }
.hero__blob { position: absolute; z-index: 1; inset: 0 0 60px 60px; background: var(--brand); border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; animation: blob 14s ease-in-out infinite alternate; }
.hero__ring { position: absolute; z-index: 3; width: 110px; height: 110px; left: -6px; bottom: 40px; border: 14px solid var(--sun); border-radius: 50%; }
.hero__squiggle { position: absolute; z-index: 3; right: -10px; top: 26px; width: 120px; color: var(--coral); }
.hero__squiggle svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; }
.hero__sticker { position: absolute; z-index: 4; right: 6px; bottom: 6px; width: 124px; height: 124px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-content: center; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: .98rem; line-height: 1.1; transform: rotate(-10deg); box-shadow: var(--shadow); }
@keyframes blob { to { border-radius: 58% 42% 55% 45% / 42% 58% 42% 58%; transform: rotate(4deg); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 20px 0 56px; }
  .hero__art { order: -1; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero__art img { aspect-ratio: 5 / 4; border-radius: 180px 180px var(--r-lg) var(--r-lg); }
  .hero__sticker { width: 100px; height: 100px; font-size: .85rem; }
  .hero__ring { width: 70px; height: 70px; border-width: 10px; bottom: 20px; }
  .hero__art { padding: 18px; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cards--bento { grid-template-columns: repeat(6, 1fr); }
.cards--bento .card { grid-column: span 2; }
.cards--bento .card:nth-child(1), .cards--bento .card:nth-child(2) { grid-column: span 3; }
.cards--bento .card:nth-child(1) .card__img, .cards--bento .card:nth-child(2) .card__img { aspect-ratio: 16 / 9; }
@media (max-width: 900px) { .cards--bento { grid-template-columns: repeat(2, 1fr); } .cards--bento .card, .cards--bento .card:nth-child(1), .cards--bento .card:nth-child(2) { grid-column: span 1; } }
@media (max-width: 560px) { .cards--bento { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__ph { position: relative; display: grid; place-items: center; height: 100%; background: var(--ph, var(--brand)); overflow: hidden; }
.card__ph span { position: relative; z-index: 1; font-family: var(--display); font-size: 5.5rem; font-weight: 800; color: #fff; letter-spacing: -0.05em; transition: transform .5s var(--ease); }
.card:hover .card__ph span { transform: scale(1.12) rotate(-6deg); }
.card__ph::before { content: ""; position: absolute; width: 180px; height: 180px; right: -50px; top: -60px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.card__ph::after { content: ""; position: absolute; width: 120px; height: 40px; left: -20px; bottom: 26px; border-radius: 40px; background: rgba(17, 20, 24, .12); transform: rotate(-18deg); }
.card:nth-child(5n+1) { --ph: #2fb346; } .card:nth-child(5n+2) { --ph: #f0a52a; } .card:nth-child(5n+3) { --ph: #f06449; }
.card:nth-child(5n+4) { --ph: #3f8ee6; } .card:nth-child(5n+5) { --ph: #9a6be0; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 70px; flex: 1; }
.card__title { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.card__text { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.card__go { position: absolute; left: 22px; bottom: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); transition: background .25s, transform .3s var(--ease); }
.card__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__go { background: var(--brand); color: var(--on-brand); transform: rotate(-45deg); }
.b--kids { margin-top: 56px !important; }

/* Kurse */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter__chip { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 15px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--ink); transition: background .15s, border-color .15s, color .15s; }
.filter__chip small { opacity: .6; margin-left: 2px; font-weight: 700; }
.filter__chip:hover { border-color: var(--ink); }
.filter__chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.courses__group[hidden] { display: none; }
.courses__group + .courses__group { margin-top: 30px; }
.courses__cat { font-size: 1.25rem; margin: 0 0 12px; }
.courses__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.course { display: flex; gap: 18px; align-items: center; padding: 14px 16px 14px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.course:hover { border-color: var(--tint-2); box-shadow: var(--shadow); }
.course__date { flex: none; width: 58px; height: 62px; border-radius: 14px; background: var(--tint); color: var(--ink); display: grid; place-content: center; text-align: center; line-height: 1; }
.course__date b { font-family: var(--display); font-size: 1.55rem; font-weight: 800; }
.course__date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-top: 3px; }
.course__date.is-empty svg { width: 24px; height: 24px; fill: none; stroke: var(--brand-ink); stroke-width: 2; }
.course__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.course__cat { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--brand-ink); }
.course__title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.course__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.course__desc { font-size: .92rem; color: var(--muted); margin-top: 4px; }
.course__side { display: flex; align-items: center; gap: 12px; flex: none; }
.course.is-full .course__title { color: var(--muted); }
.course.is-full .course__date { background: var(--cream); }
.pill { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--tint); color: var(--brand-ink); white-space: nowrap; }
.pill--few { background: #fff0cf; color: #7a4800; }
.pill--full { background: #f0f0ee; color: #555; }
@media (max-width: 680px) {
  .course { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "date main" "date side"; gap: 6px 14px; align-items: start; }
  .course__date { grid-area: date; width: 50px; height: 54px; }
  .course__main { grid-area: main; }
  .course__side { grid-area: side; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
}
.upcoming__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.courses__list--grid { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.course--compact { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "date main" "date side"; gap: 8px 16px; align-items: start; }
.course--compact .course__date { grid-area: date; }
.course--compact .course__main { grid-area: main; }
.course--compact .course__side { grid-area: side; justify-content: space-between; }
@media (max-width: 420px) { .courses__list--grid { grid-template-columns: 1fr; } }

/* Kurzinfos auf Kurskarten: Alter, Wochentag/Uhrzeit, Preis */
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fact { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.5; background: var(--cream); color: var(--ink-2); border: 1px solid var(--line); }
.fact--age { background: var(--tint); color: var(--brand-ink); border-color: transparent; }

/* Kursfinder */
.finder__title { margin-bottom: 16px; }
.finder__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; padding: 20px; border-radius: var(--r); background: var(--tint); margin-bottom: 14px; }
.b--bg-tint .finder__form, .b--bg-brand .finder__form { background: var(--paper); }
.finder__field { display: flex; flex-direction: column; gap: 6px; }
.finder__field label { font-weight: 700; font-size: .95rem; color: var(--ink); }
.finder__field input, .finder__field select { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--muted); border-radius: var(--r-sm); padding: 10px 12px; min-height: 48px; }
.finder__field select { min-width: 12em; }
.finder__age { display: flex; align-items: center; gap: 8px; }
.finder__age input { width: 6.5em; }
.finder__age span { color: var(--ink-2); }
.finder__field input:focus-visible, .finder__field select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.finder__actions { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.finder__reset { color: var(--ink); font-weight: 600; }
.finder__reset[hidden] { display: none; }
.finder__count { font-weight: 700; margin: 0 0 14px; scroll-margin-top: 110px; }
.finder__list .course[hidden] { display: none; }
.finder__empty { padding: 18px 20px; border: 1.5px dashed var(--line); border-radius: var(--r); }
.finder__empty p { margin: 0; }
.finder__empty[hidden] { display: none; }
@media (max-width: 560px) {
  .finder__form { flex-direction: column; align-items: stretch; padding: 16px; }
  .finder__field select, .finder__age input { width: 100%; }
  .finder__age input { flex: 1; }
}

/* Downloads */
.dl { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.dl:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.content > .dl + .dl { margin-top: -22px; }
.dl__icon { flex: none; width: 48px; height: 56px; border-radius: 10px 18px 10px 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .74rem; letter-spacing: .05em; }
.dl__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dl__title { font-weight: 700; }
.dl__meta { color: var(--muted); font-size: .88rem; }
.dl__go { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); flex: none; transition: background .2s; }
.dl__go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dl:hover .dl__go { background: var(--brand); color: var(--on-brand); }

/* Newsletter */
.nl { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; padding: 44px; border-radius: var(--r-lg); background: var(--ink); color: #fff; margin-top: 56px !important; }
.nl::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -110px; border-radius: 50%; background: var(--brand); opacity: .9; }
.nl__title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.nl__text p { color: rgba(255, 255, 255, .78); margin: 0; }
.nl__form { position: relative; z-index: 1; }
.nl__row { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; }
.nl__row input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; padding: 0 16px; color: var(--ink); outline: none; }
.nl__row .btn { background: var(--brand); color: var(--on-brand); }
.nl__row:focus-within { box-shadow: 0 0 0 3px var(--brand); }
.nl__ok { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: rgba(255, 255, 255, .82); margin-top: 14px; cursor: pointer; }
.nl__ok input { margin-top: 3px; accent-color: var(--brand); width: 17px; height: 17px; }
.nl__ok a { color: #fff; }
@media (max-width: 760px) { .nl { grid-template-columns: 1fr; padding: 30px 22px; } .nl__row { flex-direction: column; border-radius: 18px; } .nl__row input { padding: 12px; } }

/* Formular und Karte */
.formbox { background: var(--cream); border-radius: var(--r-lg); padding: 8px; }
.formbox iframe { width: 100%; border: 0; display: block; background: transparent; }
.map__frame { aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: var(--tint) radial-gradient(circle at 30% 30%, var(--tint-2) 0 2px, transparent 3px) 0 0 / 22px 22px; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; overflow: hidden; padding: 20px; }
.map__pin { width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; box-shadow: var(--shadow); }
.map__pin svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.map__label { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 0; }
.map__frame .small { color: var(--muted); margin: 0; }
.map__frame iframe { width: 100%; height: 100%; border: 0; }
.map__frame.is-loaded { padding: 0; display: block; }
.map__links { margin-top: 12px; display: flex; gap: 18px; font-size: .95rem; }

/* Kontakt-Band und Fußzeile */
.cta-band { background: var(--brand); color: var(--on-brand); padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 340px; height: 340px; left: -120px; bottom: -220px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .25); }
.cta-band__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band__title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.cta-band p { margin: 0; font-size: 1.08rem; opacity: .9; }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ft { background: var(--ink); color: #c9ccc6; padding: 64px 0 0; font-size: .96rem; }
.ft a { color: #fff; text-decoration: none; }
.ft a:hover { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
/* Fokus auf dunklem Grund: heller Rahmen */
.ft :focus-visible, .nl :focus-visible, .lightbox :focus-visible, .editbtn:focus-visible { outline-color: #fff; }
.btn--cta:focus-visible, .cta-band :focus-visible { outline-color: var(--ink); }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ft__brand img { height: 44px; width: auto; margin-bottom: 16px; }
.ft__h { font-family: var(--text); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: #8d928b; margin-bottom: 14px; font-weight: 700; }
.ft address { font-style: normal; }
.ft__social { list-style: none; display: flex; gap: 10px; margin: 18px 0 0; padding: 0; }
.ft__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .2s, transform .2s var(--ease); }
.ft__social a:hover { background: var(--brand); color: var(--on-brand); transform: translateY(-2px); }
.ft__social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ft__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 52px; padding-top: 20px; padding-bottom: 24px; font-size: .85rem; color: #8d928b; }
@media (max-width: 860px) { .ft__grid { grid-template-columns: 1fr 1fr; } .ft__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ft__grid { grid-template-columns: 1fr; } .cta-band__actions, .cta-band__actions .btn { width: 100%; } }

/* Bearbeiten-Knopf für angemeldete Personen */
.editbtn { position: fixed; left: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff;
  text-decoration: none; font-weight: 650; font-size: .92rem; box-shadow: var(--shadow-lg); }
.editbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.editbtn:hover { background: var(--brand); color: var(--on-brand); }

/* Bild groß */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 12, 14, .92); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 14px; }
.lightbox__count { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); color: #fff; font-weight: 600; margin: 0; font-size: .92rem; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next, .lightbox.is-single .lightbox__count { display: none; }
.lightbox__btn { position: fixed; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lightbox__btn:hover { background: var(--brand); color: var(--on-brand); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Erscheinen beim Scrollen (nur wenn das Skript läuft – sonst bleibt alles sichtbar) */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* Vorschau im Editor */
.is-preview .reveal { opacity: 1 !important; transform: none !important; }
.is-preview [data-b] { cursor: pointer; transition: outline-color .15s; outline: 2px dashed transparent; outline-offset: 8px; }
.is-preview [data-b]:hover { outline-color: var(--brand); }
.is-preview .hd { position: relative; }
.is-preview .editbtn { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}
@media print { .hd, .ft, .cta-band, .side, .editbtn { display: none; } .layout { display: block; } .phead { margin: 0; padding: 20px 0; } }
