/* KS-Konzepte — Apple-inspiriertes Layout */
:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --line: #d2d2d7;
  --line-2: #e8e8ed;
  --accent: #d3202f;
  --accent-h: #b51a27;
  --accent-soft: rgba(211, 32, 47, .08);
  --stop: #d3202f;
  --nav: rgba(255, 255, 255, .72);
  --card: #ffffff;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 980px;
  --sh-md: 0 12px 40px rgba(0, 0, 0, .08);
  --sh-lg: 0 30px 80px rgba(0, 0, 0, .16);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1rem, 5vw, 3rem);
  --maxw: 1180px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --ink-2: #d2d2d7;
    --muted: #a1a1a6;
    --paper: #000000;
    --mist: #101012;
    --line: #3a3a3c;
    --line-2: #2c2c2e;
    --accent: #ff4d5b;
    --accent-h: #ff6a76;
    --accent-soft: rgba(255, 77, 91, .14);
    --stop: #ff4d5b;
    --nav: rgba(22, 22, 23, .72);
    --card: #1c1c1e;
    --sh-md: 0 12px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Navigation: schwebende Glas-Pille ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; transition: transform .4s var(--ease); }
.nav.is-hidden { transform: translateY(calc(-100% - 28px)); }
.nav__pill {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  padding: 6px; border-radius: var(--r-pill);
  background: var(--nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line-2); box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
  transition: box-shadow .4s var(--ease);
}
.nav.is-scrolled .nav__pill { box-shadow: 0 8px 28px rgba(0, 0, 0, .12); }
.nav__mono { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px 0 4px; color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -.02em; white-space: nowrap; border-radius: var(--r-pill); }
.nav__mono img { width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links > li { position: relative; }
.nav__links a, .nav__links button {
  display: flex; align-items: center; gap: 5px; height: 38px; padding: 0 13px; border-radius: var(--r-pill);
  font: inherit; font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--muted);
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s;
}
.nav__links li.open > button { background: rgba(127, 127, 127, .1); color: var(--ink); }
.nav__links a[aria-current="page"], .nav__links li.is-current > button { background: rgba(127, 127, 127, .14); color: var(--ink); font-weight: 600; }
.nav__links button svg { width: 10px; height: 10px; transition: transform .3s var(--ease); }
.nav__links li.open > button svg { transform: rotate(180deg); }
.nav__links .sub {
  position: absolute; top: calc(100% + 12px); left: 50%; min-width: 260px; padding: 8px; margin: 0; list-style: none;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px) scale(.97); transform-origin: top center;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__links li.open > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.nav__links .sub a { height: auto; padding: 10px 14px; border-radius: 12px; font-size: 15px; color: var(--ink); font-weight: 400; }
.nav__links .sub a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.nav__cta { display: flex; align-items: center; height: 38px; padding: 0 18px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .25s; }
.nav__burger { display: none; width: 38px; height: 38px; border: 0; padding: 0; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; }
.nav__burger span { display: block; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav__burger span + span { margin-top: 5px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: calc(88px + env(safe-area-inset-top)) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--paper); opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s 0s; }
.mobile-menu .mm-main { list-style: none; margin: 0; padding: 0; }
.mobile-menu .mm-main a { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: clamp(26px, 7vw, 34px); font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.mobile-menu .mm-main a .idx { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.mobile-menu a:hover { text-decoration: none; }
.mobile-menu a[aria-current="page"], .mobile-menu a[aria-current="page"] .idx { color: var(--accent); }
.mobile-menu .mm-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 32px; }
.mobile-menu .mm-groups .mm-h { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin: 0 0 8px; }
.mobile-menu .mm-groups ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu .mm-groups a { display: block; padding: 6px 0; font-size: 16px; color: var(--ink); }
.mobile-menu .mm-cta { display: flex; justify-content: center; margin-top: 32px; }
body.mm-lock { overflow: hidden; }

@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__pill { width: 100%; max-width: 560px; justify-content: space-between; }
}
@media (min-width: 1081px) { .mobile-menu { display: none; } }

/* Platz unter der schwebenden Navigation */
main > section:first-child:not(.hero) { padding-top: clamp(112px, 13vw, 160px); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.mist { background: var(--mist); }
.dark { background: #000; color: #f5f5f7; --ink: #f5f5f7; --ink-2: #d2d2d7; --muted: #a1a1a6; --card: #1c1c1e; --line-2: #2c2c2e; --accent: #ff4d5b; --accent-h: #ff6a76; --accent-soft: rgba(255, 77, 91, .14); }
.center { text-align: center; }
.center .lead, .center .actions { margin-left: auto; margin-right: auto; justify-content: center; }

.eyebrow { font-size: 17px; font-weight: 600; color: var(--accent); margin: 0 0 10px; letter-spacing: -.01em; }
.eyebrow.stop { color: var(--stop); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.07; color: var(--ink); }
.display { font-size: clamp(40px, 7vw, 80px); line-height: 1.04; letter-spacing: -.035em; }
h1 { font-size: clamp(36px, 5.5vw, 64px); }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3, .h3 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.15; }
.lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: var(--muted); max-width: 760px; margin: 18px 0 0; letter-spacing: -.015em; }
.lead strong { color: var(--ink); }
.prose { font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--ink); }
.prose h3, .prose .h3 { margin: 1.6em 0 .5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 500; border: 0; cursor: pointer; font-family: inherit;
  transition: background .2s, transform .16s var(--ease);
}
.btn:active { transform: scale(.98); }
.hero .btn { color: #1d1d1f; }
.btn.small { padding: 7px 15px; font-size: 14px; }
.link-arrow { font-size: 17px; font-weight: 400; }
.link-arrow::after { content: " ›"; font-size: 1.15em; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); min-height: min(88svh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #000; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 15%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.82) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(48px, 8vw, 96px); width: 100%; }
.hero h1, .hero .display { color: #fff; }
.hero .lead { color: rgba(255,255,255,.86); }
.hero .eyebrow { color: rgba(255,255,255,.9); }
.hero .btn { background: #fff; }
.hero .link-arrow { color: #fff; }

.page-head { padding: clamp(56px, 9vw, 110px) 0 clamp(32px, 5vw, 56px); }
.hero .wrap { padding-top: 110px; }
.page-head .lead { margin-top: 20px; }

/* ---------- Media ---------- */
.media { border-radius: var(--r-xl); overflow: hidden; background: var(--mist); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.wide { aspect-ratio: 16 / 9; }
.media.land { aspect-ratio: 3 / 2; }
.media.port { aspect-ratio: 4 / 5; }
.media.tall { aspect-ratio: 2 / 3; }
.media.r43 { aspect-ratio: 4 / 3; }
.media > a { display: block; width: 100%; height: 100%; }
/* Abgerundete Ecken auch beim Hover-Zoom in Safari sauber halten */
.media, .masonry a, .tile { isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.zoom { cursor: zoom-in; transition: transform .4s var(--ease); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }
.split.rev > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .trio { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .duo, .trio { grid-template-columns: 1fr; } }
.stack-top { margin-top: clamp(40px, 6vw, 64px); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); position: relative; }
.mist .card { background: var(--card); }
.section:not(.mist):not(.dark) .card { background: var(--mist); }
.card h3, .card .h3 { margin-bottom: 10px; }
.card p { margin: 0 0 .8em; color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.card li { margin: .35em 0; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.tile { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-xl); overflow: hidden; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.section:not(.mist) .tile { background: var(--mist); }
.tile .media { border-radius: 0; aspect-ratio: 4 / 3; }
.tile .body { padding: 22px 24px 26px; }
.tile h3, .tile .h3 { font-size: 22px; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile .more { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 15px; }
.tile .more::after { content: " ›"; }
.tile.text-only { justify-content: flex-end; min-height: 100%; }
.tile.text-only .glyph { flex: 1; display: grid; place-items: center; font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -.04em; color: var(--accent); min-height: 180px; text-align: center; line-height: 1; padding: 0 16px; }

/* ---------- Quote ---------- */
.quote { font-size: clamp(24px, 3vw, 36px); line-height: 1.3; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.quote-by { margin-top: 18px; color: var(--muted); font-size: 17px; }

/* ---------- Bracelet / statement ---------- */
.statement { font-size: clamp(44px, 9vw, 112px); font-weight: 800; letter-spacing: -.045em; line-height: 1; margin: 0; }
.statement span { color: var(--accent); }

/* ---------- Events ---------- */
.events { display: grid; gap: 16px; }
.event { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; background: var(--card); border-radius: var(--r-lg); padding: 22px 26px; }
.section:not(.mist) .event { background: var(--mist); }
.event .date { text-align: center; }
.event .day { display: block; font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.event .mon { display: block; font-size: 14px; font-weight: 600; color: var(--stop); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.event .wd { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.event h3, .event .h3 { font-size: 21px; margin-bottom: 4px; }
.event p { margin: 0; color: var(--ink-2); font-size: 15px; }
.event .meta { color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.badge.full { background: var(--ink); color: var(--paper); }
.badge.past { background: var(--line-2); color: var(--muted); }
.event.is-past { opacity: .55; }
@media (max-width: 700px) {
  .event { grid-template-columns: 72px 1fr; gap: 16px; padding: 18px; }
  .event .day { font-size: 34px; }
  .event .side { grid-column: 2; }
}

/* ---------- Flyer cards (Aktuelles) ---------- */
.flyer { background: var(--card); border-radius: var(--r-xl); padding: clamp(26px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.section:not(.mist) .flyer { background: var(--mist); }
.flyer .when { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.flyer .time { font-size: 19px; color: var(--ink-2); }
.flyer dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.flyer dt { color: var(--muted); }
.flyer dd { margin: 0; color: var(--ink); }
.flyer ul { margin: 0; padding-left: 1.1em; font-size: 15px; color: var(--ink-2); }
.flyer .note { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 14px; margin-top: auto; }
.flyer-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.flyer.is-past { opacity: .5; }
.flyer.is-past .hl { background: var(--line-2); }
.flyer .hl { background: var(--accent-soft); color: var(--ink); border-radius: var(--r-md); padding: 12px 14px; font-size: 15px; }

/* ---------- Prices ---------- */
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.price-row:last-child { border-bottom: 0; }
.price-row .what { font-weight: 600; }
.price-row .what small { display: block; font-weight: 400; color: var(--muted); font-size: 15px; margin-top: 2px; }
.price-row .amount { font-size: 24px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }

/* ---------- Gallery ---------- */
/* Blocksatz-Reihen: Reihenfolge zeilenweise, jede Reihe gleich hoch */
.masonry { display: flex; flex-wrap: wrap; gap: 12px; --row: 210px; }
.masonry::after { content: ""; flex: 999 1 0; }
.masonry a { display: block; flex: var(--ar) 1 calc(var(--ar) * var(--row)); aspect-ratio: var(--ar); border-radius: var(--r-md); overflow: hidden; background: var(--mist); }
.masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
@media (max-width: 620px) { .masonry { --row: 150px; gap: 8px; } }

.chronicle { list-style: none; padding: 0; margin: 0; columns: 2 360px; column-gap: 48px; }
.chronicle li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 16px; color: var(--ink-2); }
.chronicle .y { display: block; font-size: 13px; color: var(--muted); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility 0s .2s; }
.lb.open { opacity: 1; visibility: visible; transition: opacity .25s var(--ease), visibility 0s; }
.lb img { transform: scale(.96); transition: transform .3s var(--ease); touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.lb.open img { transform: none; }
.lb.dragging img { transition: none; }
.lb img { max-width: 94vw; max-height: 88vh; border-radius: 8px; object-fit: contain; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; display: grid; place-items: center; }
.lb .x { top: 16px; right: 16px; }
.lb .prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb .count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 14px; }

/* ---------- Guestbook ---------- */
.gb { columns: 3 300px; column-gap: 20px; }
.gb article { break-inside: avoid; background: var(--card); border-radius: var(--r-lg); padding: 24px; margin: 0 0 20px; }
.section:not(.mist) .gb article { background: var(--mist); }
.gb p { margin: 0 0 .7em; color: var(--ink-2); font-size: 16px; white-space: pre-line; }
.gb footer { font-size: 14px; color: var(--muted); }
.js .gb:not(.show-all) article.more { display: none; }
.gb-toggle { display: none; margin-top: 12px; }
.js .gb-toggle { display: block; }
.gb.show-all + .gb-toggle { display: none; }
.gb footer strong { color: var(--ink); display: block; font-size: 15px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.section:not(.mist) .form input, .section:not(.mist) .form textarea { background: var(--mist); border-color: transparent; }
.form textarea { min-height: 170px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form .hp { position: absolute; left: -9999px; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 17px; flex-wrap: wrap; }
.contact-list span:first-child { color: var(--muted); }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--ink); }
.mist .socials a { background: var(--card); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); color: var(--ink); border-radius: var(--r-md); padding: 14px 18px; font-size: 15px; font-weight: 500; margin-top: 28px; }
.notice::before { content: "!"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--stop); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 24px; margin: 2em 0 .6em; }
.legal h3, .legal .h3 { font-size: 19px; margin: 1.6em 0 .4em; }
.legal p { font-size: 16px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { background: var(--mist); color: var(--muted); font-size: 13px; padding: 48px 0 28px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
@media (max-width: 820px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
.footer h4, .footer .h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--ink); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 7px 0; }
.footer a { color: var(--muted); }
.footer .brand { margin-bottom: 12px; }
.footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; }

/* ---------- Silbentrennung (deutsch) ---------- */
.prose, .card p, .card li, .lead, .flyer, .tile p, .gb p, .event p, .legal p, .chronicle li { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 620px) {
  h1, h2, h3, .statement { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
}

/* ---------- Reveal ---------- */
/* Nur ausblenden, wenn JavaScript läuft – sonst bleibt alles sichtbar */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .zoom, .masonry img, .tile { transition: none; }
}

a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
.flyer a[href^="mailto:"], .event a[href^="mailto:"] { white-space: normal; overflow-wrap: anywhere; }

/* Abstand zwischen Foto und Probetraining-Box in derselben Spalte */
.media + .card { margin-top: 20px; }

/* ================= UI/UX-Feinschliff ================= */

/* 1) Kurs-Kacheln am Handy als wischbare Reihe (wie apple.com) */
@media (max-width: 620px) {
  .shelf {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf > * { flex: 0 0 82%; scroll-snap-align: start; }
  .js .shelf .reveal { opacity: 1; transform: none; }
  .shelf .tile:hover { transform: none; box-shadow: none; }
}

/* 2) „Weitere Kurse“: Kacheln auf grauem Grund weiß */
.more-courses .tile { background: var(--card); }

/* 6) Kursseiten am Handy: Foto direkt unter die Überschrift, Probetraining nach dem Text */
@media (max-width: 820px) {
  .course-split > .side { display: contents; }
  .course-split > .side > .media { order: -1; }
  .course-split > .side > .card { order: 1; }
  .course-split > .side > .media + .card { margin-top: 0; }
}

/* 3) Kontakt: Schnellknöpfe nur am Handy */
.quick-actions { display: none; }
@media (max-width: 820px) {
  .quick-actions { display: flex; gap: 12px; margin-top: -8px; margin-bottom: 36px; }
  .quick-actions .btn { flex: 1; justify-content: center; }
}
.btn-ghost { background: var(--accent-soft); color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* 5) Nach-oben-Knopf */
.to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer;
  background: var(--nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 18px rgba(0, 0, 0, .1);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }
body.mm-lock .to-top { display: none; }

/* 8) Bildunterschrift in der Bildansicht */
.lb .cap { position: absolute; bottom: 44px; left: 72px; right: 72px; text-align: center; color: #fff; font-size: 15px; line-height: 1.4; }
.lb img { max-height: 80vh; }
@media (max-width: 620px) { .lb .cap { left: 16px; right: 16px; bottom: 48px; font-size: 14px; } }

/* 9) Footer-Links am Handy gut treffbar (mind. 44 px) */
@media (max-width: 820px) {
  .footer li { margin: 0; }
  .footer li a { display: block; padding: 12px 0; font-size: 15px; }
  .footer h4, .footer .h4 { margin-top: 8px; }
}

/* 10) Spürbares Feedback beim Antippen */
a, button { -webkit-tap-highlight-color: transparent; }
.btn:active, .nav__cta:active, .socials a:active, .to-top:active { transform: scale(.96); }
.tile:active { transform: scale(.98); transition-duration: .1s; }
@media (prefers-reduced-motion: reduce) {
  .btn:active, .nav__cta:active, .socials a:active, .to-top:active, .tile:active { transform: none; }
}

/* ================= Feinschliff nach Apple-/Mobile-/Emil-Skills ================= */

/* Hover nur bei Geräten mit Maus/Trackpad – auf Touch bleibt sonst der Hover nach dem Tippen hängen */
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; }
  .nav__mono:hover { text-decoration: none; opacity: .7; }
  .nav__cta:hover { background: var(--accent-h); color: #fff; text-decoration: none; }
  .btn:hover { background: var(--accent-h); text-decoration: none; }
  .hero .btn:hover { background: #e8e8ed; }
  .media:hover .zoom { transform: scale(1.03); }
  .tile:hover { transform: translateY(-4px); box-shadow: var(--sh-md); text-decoration: none; }
  .masonry a:hover img { transform: scale(1.03); }
  .lb button:hover { background: rgba(255,255,255,.24); }
  .socials a:hover { background: var(--accent); color: #fff; text-decoration: none; }
  .footer a:hover { color: var(--ink); }
  .btn-ghost:hover { background: var(--accent-soft); color: var(--accent-h); }
  .nav__links a:hover, .nav__links button:hover { background: rgba(127, 127, 127, .1); color: var(--ink); text-decoration: none; }
}

/* Tippen fühlt sich nativ an: sofortiges Feedback, keine 300-ms-Verzögerung, kein Markieren von Bedienelementen */
html { -webkit-tap-highlight-color: transparent; }
a, button, [role="button"], summary { touch-action: manipulation; }
button, .btn, .nav__cta, .nav__burger, .nav__links button, .to-top, .lb button, .socials a {
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.nav__links a, .nav__links button, .nav__links .sub a, .mobile-menu a, .lb button, .nav__burger, .footer li a {
  transition-property: background, color, transform; transition-duration: .16s; transition-timing-function: var(--ease);
}
.nav__links a:active, .nav__links button:active, .nav__links .sub a:active, .lb button:active, .nav__burger:active { transform: scale(.96); }
.mobile-menu a:active, .footer li a:active { opacity: .6; }
.lb button:active { transform: scale(.92); }
.lb .prev:active, .lb .next:active { transform: translateY(-50%) scale(.92); }

/* Handy-Menü: Einträge erscheinen kurz gestaffelt (nur Deko, blockiert nichts) */
.mobile-menu .mm-main li, .mobile-menu .mm-groups > div { opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.mobile-menu.is-open .mm-main li, .mobile-menu.is-open .mm-groups > div { opacity: 1; transform: none; }
.mobile-menu.is-open .mm-main li:nth-child(2) { transition-delay: 30ms; }
.mobile-menu.is-open .mm-main li:nth-child(3) { transition-delay: 60ms; }
.mobile-menu.is-open .mm-main li:nth-child(4) { transition-delay: 90ms; }
.mobile-menu.is-open .mm-main li:nth-child(5) { transition-delay: 120ms; }
.mobile-menu.is-open .mm-main li:nth-child(6) { transition-delay: 150ms; }
.mobile-menu.is-open .mm-main li:nth-child(7) { transition-delay: 180ms; }
.mobile-menu.is-open .mm-groups > div { transition-delay: 210ms; }

/* Kachel-Raster: Kacheln kommen leicht versetzt statt alle gleichzeitig */
.js .grid > .reveal:nth-child(3n+2) { transition-delay: 60ms; }
.js .grid > .reveal:nth-child(3n+3) { transition-delay: 120ms; }

/* Typografie: ausgewogene Zeilenumbrüche, kleine Schrift minimal weiter gesperrt */
h1, h2, h3, .display, .lead, .statement, .quote { text-wrap: balance; }
.prose p, .card p, .tile p, .gb p, .flyer li, .event p { text-wrap: pretty; }
.small, .footer, .badge, .tag, .eyebrow, .event .wd, .gb footer { letter-spacing: 0; }

/* Barrierefreiheit: „Transparenz reduzieren“ und „Kontrast erhöhen“ respektieren */
@media (prefers-reduced-transparency: reduce) {
  .nav__pill, .to-top { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .nav__pill, .to-top, .card, .tile, .event, .flyer { border: 1px solid var(--ink-2); }
  :root { --muted: var(--ink-2); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu .mm-main li, .mobile-menu .mm-groups > div { transform: none; transition: opacity .2s; transition-delay: 0s !important; }
  .lb img, .lb.open img { transform: none; transition: none; }
  .nav__links .sub { transform: translate(-50%, 0); }
  .js .grid > .reveal { transition-delay: 0s; }
}

/* ================= Inhalte aus der Verwaltung (Flyer, Berichte) ================= */
.flyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; align-items: start; }
.flyer-up { background: var(--card); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.section:not(.mist) .flyer-up { background: var(--mist); }
.flyer-up.is-past { opacity: .5; }
.flyer-img { display: block; background: var(--line-2); }
.flyer-img img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.flyer-pdf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 3 / 4; color: var(--ink); background: var(--line-2); font-weight: 600; }
.flyer-pdf:hover { text-decoration: none; }
.pdf-icon { display: grid; place-items: center; width: 64px; height: 80px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 15px; letter-spacing: .04em; }
.flyer-up-body { padding: 16px 18px 18px; }
.flyer-up-body h3 { font-size: 18px; margin: 0 0 4px; }

.posts { display: grid; gap: 28px; }
.post { background: var(--card); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); }
.post-title { font-size: clamp(24px, 3vw, 32px); margin: 0 0 16px; }
.post-text { font-size: 17px; }
.post-text p:last-child { margin-bottom: 0; }
.post-photos { margin-top: 20px; --row: 160px; }
@media (max-width: 620px) { .post-photos { --row: 110px; } }

/* ================= Verwaltung ================= */
.adm { background: var(--mist); min-height: 100vh; min-height: 100svh; }
.adm [hidden] { display: none !important; }
.adm-bar { position: sticky; top: 0; z-index: 50; background: var(--nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line-2); }
.adm-bar-inner { display: flex; align-items: center; gap: 14px; height: 56px; }
.adm-bar-title { color: var(--muted); font-size: 15px; padding-left: 14px; border-left: 1px solid var(--line); }
.adm-bar-inner .adm-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.adm-pad { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 80px; }
.adm-login { max-width: 420px; margin: clamp(24px, 8vh, 80px) auto 0; text-align: center; background: var(--card) !important; }
.adm-login img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; background: #fff; }
.adm-login h1 { font-size: 30px; }
.adm-login .form { text-align: left; margin-top: 24px; }
.adm-login .btn { width: 100%; justify-content: center; }

.adm-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--line-2); border-radius: var(--r-pill); margin-bottom: 28px; }
.adm-tabs button { font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2); background: none; border: 0; border-radius: var(--r-pill); padding: 9px 18px; cursor: pointer; transition: background .16s var(--ease), color .16s var(--ease); }
.adm-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); font-weight: 600; }
.adm-tabs button:active { transform: scale(.97); }

.adm-grid { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .adm-grid { grid-template-columns: 1fr; } }
.adm-card { background: var(--card); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); }
@media (min-width: 901px) { .adm-form-card { position: sticky; top: 76px; } }
.adm-card h2 { font-size: 22px; margin: 0 0 18px; }
.adm .form input, .adm .form textarea, .adm .form select { background: var(--mist) !important; border-color: transparent !important; }
.adm .form input:focus, .adm .form textarea:focus { border-color: var(--accent) !important; }
.adm-hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; letter-spacing: 0; }
.adm-field-error { font-size: 13px; color: var(--accent); margin: 6px 0 0; font-weight: 500; }
.adm-error { background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: 10px 14px; font-size: 15px; margin: 0; }
.adm [aria-invalid="true"] { border-color: var(--accent) !important; }

.adm-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--mist); border-radius: 12px; }
.adm-seg label { margin: 0; }
.adm-seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; padding: 0 !important; }
.adm-seg span { display: block; text-align: center; padding: 9px 6px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background .16s var(--ease); }
.adm-seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); font-weight: 600; }
.adm-seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }

.adm-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn.secondary { background: var(--line-2); color: var(--ink); }
.btn.danger { background: transparent; color: var(--accent); padding-left: 10px; padding-right: 10px; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.adm-preview-label { font-size: 13px; color: var(--muted); margin: 22px 0 8px; letter-spacing: 0; }
.adm-preview .event { background: var(--mist) !important; }

.adm-list { display: grid; gap: 14px; }
.adm-item { background: var(--card); border-radius: var(--r-lg); overflow: hidden; }
.adm-item .event { background: transparent !important; border-radius: 0; }
.adm-item.is-editing { box-shadow: 0 0 0 2px var(--accent); }
.adm-item-actions { display: flex; gap: 6px; justify-content: flex-end; padding: 0 16px 14px; }
.adm-item-head { padding: 18px 20px 6px; }
.adm-item-head h3 { font-size: 19px; margin: 2px 0 4px; }
.adm-item-head p { margin: 0; color: var(--muted); font-size: 14px; }
.adm-thumbs { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 20px 4px; }
.adm-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.adm-section-title { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 12px; letter-spacing: 0; }
.adm-empty { color: var(--muted); background: var(--card); border-radius: var(--r-lg); padding: 22px; text-align: center; margin: 0; }
details.adm-past { margin-top: 28px; }
details.adm-past summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: 15px; padding: 6px 0; list-style: none; }
details.adm-past summary::-webkit-details-marker { display: none; }
details.adm-past summary::before { content: "›"; display: inline-block; margin-right: 8px; transition: transform .2s var(--ease); }
details.adm-past[open] summary::before { transform: rotate(90deg); }
details.adm-past .adm-list { margin-top: 12px; opacity: .75; }

.adm-drop { display: block; border: 1.5px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; color: var(--ink-2); cursor: pointer; transition: border-color .16s, background .16s; }
.adm-drop:hover, .adm-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.adm-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.adm-drop strong { color: var(--accent); }
.adm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
.adm-photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line-2); }
.adm-photo img { width: 100%; height: 100%; object-fit: cover; }
.adm-photo.uploading img { opacity: .4; }
.adm-photo .rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.adm-photo .spin { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--ink); font-weight: 600; }
.adm-file-preview { margin-top: 12px; }
.adm-file-preview img { max-height: 220px; width: auto; border-radius: 10px; }

.adm-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); z-index: 300;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500;
  box-shadow: var(--sh-lg); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .25s var(--ease); max-width: calc(100vw - 32px); }
.adm-toast.show { opacity: 1; transform: translate(-50%, 0); }
.adm-toast.err { background: var(--accent); color: #fff; }
@media (prefers-reduced-motion: reduce) { .adm-toast { transform: translate(-50%, 0); } }

/* Logo-Schriftzug (Footer, Verwaltung) */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 50%; background: #fff; }

@media (max-width: 620px) {
  .adm-bar-title { display: none; }
  .adm-bar-inner { gap: 8px; }
  .adm-bar-inner .adm-right .btn { padding: 7px 12px; }
}

/* Verwaltung: Formularspalte darf nicht über die Karte hinauswachsen; Vorschau im kompakten Termin-Layout */
.adm-grid > *, .adm-form-card .form, .adm-form-card .form > * { min-width: 0; }
.adm-preview .event { grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; }
.adm-preview .event .day { font-size: 32px; }
.adm-preview .event .side { grid-column: 2; }

/* Terminseite: vergangene Termine eingeklappt unter den kommenden */
details.past-events { margin-top: 32px; }
details.past-events summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: 15px; padding: 10px 0; list-style: none; }
details.past-events summary::-webkit-details-marker { display: none; }
details.past-events summary::before { content: "›"; display: inline-block; margin-right: 8px; transition: transform .2s var(--ease); }
details.past-events[open] summary::before { transform: rotate(90deg); }
details.past-events .events { margin-top: 12px; }
[data-flyers][hidden] { display: none; }
[data-flyers][hidden] + .center { margin-top: 0 !important; }
