/* Tauchclub Triton Tübingen - site styles. No build step; modern CSS only. */

/* Colors shared by all palettes. */
:root {
  --surface: #ffffff;
  --warn-bg: #fff3d1;
  --warn-ink: #5c4000;
  --alert-bg: #fde7e7;
  --alert-ink: #821b1b;
  --focus: #b4530a;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --radius: 0.5rem;
  --gutter: 1rem;
  --wrap: 76rem;
  --prose: 46rem;
  --header-h: 4.5rem;
  --fab-h: 3rem;
  --shadow: 0 1px 2px color-mix(in srgb, var(--brand-deep) 6%, transparent), 0 4px 16px color-mix(in srgb, var(--brand-deep) 6%, transparent);
}

/* Palettes, selected via <html data-palette="..."> (theme setting). The first one is the default. */
:root, [data-palette="ozean"] {
  --ink: #15191e;
  --heading: #0f1924;
  --brand: #1a4d86;
  --brand-deep: #0c2a4b;
  --accent: #1764b8;
  --accent-dark: #0f4f96;
  --accent-tint: #e6effa;
  --bg: #f5f7fa;
  --line: #d3dce7;
  --muted: #4a5868;
}

[data-palette="fjord"] {
  --ink: #16191d;
  --heading: #12171e;
  --brand: #2b4766;
  --brand-deep: #152235;
  --accent: #2d5a88;
  --accent-dark: #22476d;
  --accent-tint: #e8edf4;
  --bg: #f4f6f8;
  --line: #d2d9e1;
  --muted: #4a5562;
}

[data-palette="lagune"] {
  --ink: #13191d;
  --heading: #0c1a21;
  --brand: #0d5a87;
  --brand-deep: #0a2d45;
  --accent: #0a6ea6;
  --accent-dark: #075a89;
  --accent-tint: #e1f2fa;
  --bg: #f3f8fb;
  --line: #cde0ea;
  --muted: #455866;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { hyphens: auto; overflow-wrap: break-word; color: var(--heading); line-height: 1.2; letter-spacing: -0.012em; font-weight: 750; margin: 1.6em 0 0.5em; }
h1 { font-size: clamp(1.85rem, 1.4rem + 2vw, 2.75rem); margin-top: 0; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.8rem); }
h3 { font-size: 1.2rem; }
p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--brand-deep); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--prose); }
.prose > :first-child { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.6rem 1.15rem; border-radius: 999px;
  border: 2px solid transparent; font: inherit; font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--heading); border-color: var(--brand); }
.btn-secondary:hover { background: var(--accent-tint); color: var(--heading); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); padding-block: 0.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--heading); text-decoration: none; margin-right: auto; }
.brand img { width: auto; height: 48px; }
.brand__name { white-space: nowrap; display: flex; flex-direction: column; font-weight: 750; line-height: 1.15; font-size: 1.05rem; }
.brand__name small { font-weight: 500; font-size: 0.85rem; color: var(--muted); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0.9rem;
  border: 2px solid var(--brand); border-radius: var(--radius); background: var(--surface);
  color: var(--heading); font: inherit; font-weight: 650; cursor: pointer;
}
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after {
  display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; content: "";
}
.menu-toggle__icon::before { position: absolute; top: -6px; }
.menu-toggle__icon::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 0; transform: rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--heading); font-weight: 600; }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover, .site-nav a.btn-primary[aria-current] { color: #fff; }
.nav-list a[aria-current] { color: var(--accent-dark); }
.nav-home { gap: 0.5rem; }
.nav-home svg { flex-shrink: 0; position: relative; top: -0.2em; }

/* Mobile navigation: one vertical list, everything visible. */
@media (max-width: 71.99rem) {
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 0.5rem var(--gutter) 1.25rem; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .no-js .site-header { position: static; }
  .no-js .site-nav { position: static; box-shadow: none; padding-inline: 0; }
  .no-js .header-bar { flex-wrap: wrap; }
  .nav-list a { display: flex; align-items: center; min-height: 2.75rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
  .nav-actions { margin-top: 1rem !important; }
  .nav-actions .btn { width: 100%; }
}

/* Desktop navigation */
@media (min-width: 72rem) {
  :root { --header-h: 5rem; }
  .header-bar { gap: 1.5rem; }
  .brand { flex-shrink: 0; }
  .brand__name { font-size: 1rem; }
  .menu-toggle { display: none; }
  .brand img { height: 64px; }
  .site-nav { display: flex; align-items: center; gap: 1rem; min-width: 0; }
  .nav-list { display: flex; align-items: center; gap: 0; }
  .nav-list > li { display: flex; align-items: center; }
  .nav-list > li > a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 0.5rem; border-radius: var(--radius); }
  .nav-list > li > a:hover { background: var(--accent-tint); }
  .nav-list .mobile-only { display: none; }
  .nav-home__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav-actions { white-space: nowrap; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: 0.9rem; color: var(--muted); padding-block: 1rem 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

/* Page sections */
main { display: block; padding-bottom: 3rem; }
.page-head { padding-block: 1.5rem 0.5rem; }
.page-head .lead { font-size: 1.15rem; color: var(--muted); max-width: var(--prose); }
.section { padding-block: 2rem; }
.section > h2:first-child, .section-head h2 { margin-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.section-head a { font-weight: 600; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card h3 { margin-top: 0; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 56rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.8rem; font-weight: 650; background: var(--accent-tint); color: var(--accent-dark); }
.badge--warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge--alert { background: var(--alert-bg); color: var(--alert-ink); }
.badge--muted { background: #e9edf1; color: var(--muted); }

.notice { border-left: 4px solid var(--accent); background: var(--accent-tint); padding: 0.85rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1rem; }
.notice--wichtig { border-color: #b58100; background: var(--warn-bg); }
.notice--ausfall { border-color: #b42318; background: var(--alert-bg); }
.notice strong { display: block; color: var(--heading); }
.notice p { margin: 0.25rem 0 0; }


/* Home */
.hero { padding-block: 1.5rem 1rem; display: grid; gap: 1.25rem; grid-template-areas: "text" "training" "photo"; }
.hero__text { grid-area: text; }
.hero__text p { font-size: 1.15rem; max-width: 36rem; }
.hero__training { grid-area: training; }
.hero__photo { grid-area: photo; margin: 0; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.hero__photo figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
@media (min-width: 56rem) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "text photo" "training photo"; align-items: start; column-gap: 2.5rem; padding-top: 2.5rem; }
  .hero__photo img { aspect-ratio: auto; height: 100%; max-height: 30rem; }
}

.next-training { background: var(--brand-deep); color: #fff; border-radius: var(--radius); padding: 1.25rem; }
.next-training h2 { color: #fff; font-size: 1.15rem; margin: 0 0 0.75rem; text-transform: none; }
.next-training a { color: var(--accent-tint); }
.next-training .when { font-size: 1.35rem; font-weight: 750; margin: 0; }
.next-training dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; margin: 0.75rem 0 0; }
.next-training dt { color: rgb(255 255 255 / 0.72); }
.next-training dd { margin: 0; }
.next-training .status { font-size: 0.9rem; color: rgb(255 255 255 / 0.84); margin: 0.75rem 0 0; }
.next-training:has(.next-training__map) { display: flex; flex-direction: column; }
.next-training__map { flex: 1; display: flex; flex-direction: column; min-height: 11rem; margin: 1rem 0 0; }
.next-training__frame { flex: 1; display: block; position: relative; min-height: 11rem; border-radius: calc(var(--radius) - 0.15rem); overflow: hidden; }
.next-training__map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
a.next-training__frame:hover img { transform: scale(1.03); }
.next-training__map figcaption { font-size: 0.75rem; color: rgb(255 255 255 / 0.72); margin-top: 0.35rem; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 3.75rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 750; display: grid; place-items: center; }
.steps h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.steps p { margin: 0; }

/* Home: club panel with fact tiles */
.club { display: grid; gap: 1.5rem 3rem; align-items: center; margin-top: 2rem; padding: 2rem 1.25rem; border-radius: var(--radius); background: var(--accent-tint); }
@media (min-width: 56rem) { .club { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 2.5rem; } }
.club__text .btn-row { margin-top: 0.5rem; }
.club__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; }
.club__facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 1rem 1.1rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.club__facts dd { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); font-weight: 750; line-height: 1.1; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.club__facts dt { margin-top: 0.25rem; font-size: 0.95rem; color: var(--muted); }

/* Agenda */
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda-month { margin: 1.75rem 0 0.5rem; font-size: 1.15rem; }
.event { display: grid; grid-template-columns: 4.25rem 1fr; gap: 0.25rem 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.event__date { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.35rem 0.25rem; line-height: 1.1; align-self: start; }
.event__date .d { display: block; font-size: 1.4rem; font-weight: 750; color: var(--heading); }
.event__date .m { display: block; font-size: 0.8rem; text-transform: uppercase; color: var(--muted); }
.event__body h3 { margin: 0; font-size: 1.05rem; }
.event__meta { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.95rem; }
.event--cancelled h3 { text-decoration: line-through; }
.event__desc { margin: 0.4rem 0 0; white-space: pre-line; font-size: 0.95rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.25rem; }
.filters label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.filters .field { flex: 1 1 12rem; }
.filters .field--wide { flex: 2 1 18rem; }
.filters input, .filters select { width: 100%; min-height: 2.75rem; padding: 0.5rem 0.75rem; border: 1px solid #8a9aab; border-radius: var(--radius); font: inherit; background: #fff; color: var(--ink); }
.filters .actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.result-count { font-weight: 600; margin: 0 0 1rem; }

/* Reports */
.report-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 44rem) { .report-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .report-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.report-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.report-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.report-card__body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; }
.report-card__title { margin: 0; font-size: 1.1rem; }
.report-card__title a { color: var(--heading); text-decoration: none; }
.report-card__title a::after { content: ""; position: absolute; inset: 0; }
.report-card { position: relative; }
.report-card__title a:hover { text-decoration: underline; }
.report-card__meta { font-size: 0.9rem; color: var(--muted); margin: 0; }
.report-card__excerpt { margin: 0; font-size: 0.95rem; }

.pagination ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.75rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); font-weight: 700; }

.article-head { padding-block: 1.25rem 0.5rem; }
.article-meta { color: var(--muted); margin: 0; }
.historic-note { font-size: 0.95rem; background: #eef2f6; border-radius: var(--radius); padding: 0.75rem 1rem; margin: 1rem 0 1.5rem; color: var(--muted); }
.article-body { font-size: 1.075rem; }
.article-body figure { margin: 1.5rem 0; }
.article-body figure video { max-height: 80vh; width: auto; max-width: 100%; margin-inline: auto; }
.article-body figure img, .article-body figure video { border-radius: var(--radius); background: #dfe6ec; }
.article-body figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 0.4rem; }
.article-body blockquote { border-left: 4px solid var(--accent); margin-left: 0; padding: 0.25rem 0 0.25rem 1rem; color: var(--brand); }
.table-scroll { overflow-x: auto; margin-bottom: 1rem; }
.article-body table, .data-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.article-body th, .article-body td, .data-table th, .data-table td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: 0.9rem; color: var(--muted); font-weight: 650; }
.data-table td.num, .data-table th.num { text-align: right; white-space: nowrap; }
.back-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; min-height: 2.75rem; }

/* Footer */
.site-footer { background: var(--brand-deep); color: rgb(255 255 255 / 0.84); padding-top: 1.75rem; margin-top: 2rem; overflow: clip; }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 0.4rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding-block: 0.15rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.footer-grid > :first-child { grid-column: 1 / -1; }
.footer-bottom { position: relative; border-top: 1px solid rgb(255 255 255 / 0.15); margin: 1.25rem 0 0; padding: 0.75rem 0 calc(var(--fab-h) + 1.5rem + env(safe-area-inset-bottom, 0px)); font-size: 0.9rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { padding-right: 13rem; padding-bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px)); }
}

/* Footer snail: .snail moves horizontally (% of the line width), .snail__lift vertically
   (% of the height from the line to the page bottom), .snail__body turns. Same timeline. */
.snail, .snail__lift { position: absolute; inset: 0; pointer-events: none; animation: 240s linear infinite; }
.snail { animation-name: snail-x; }
.snail__lift { animation-name: snail-y; }
.snail__body { position: absolute; left: 0; top: calc(-1px - 18px); animation: snail-turn 240s linear infinite; }
.snail__shape { transform-box: fill-box; transform-origin: right bottom; animation: snail-stretch 3s ease-in-out infinite; }
.snail__foot { fill: #cfc4b2; stroke: #5a3e24; stroke-width: 0.7; }
.snail__feeler { stroke: #cfc4b2; stroke-width: 1.1; }
.snail__eye { fill: #5a3e24; }
.snail__shell { fill: #f2e4c9; stroke: #5a3e24; stroke-width: 0.8; }
.snail__whorl { stroke: #a8794f; stroke-width: 0.9; }
@keyframes snail-x {
  0% { transform: translateX(30%); opacity: 0; }
  2% { opacity: 1; }
  30%, 51% { transform: translateX(0); }
  96% { transform: translateX(calc(100% - 2.5rem)); opacity: 1; }
  100% { transform: translateX(calc(100% - 2.5rem)); opacity: 0; }
}
@keyframes snail-y {
  0%, 33% { transform: translateY(100%); }
  48%, 100% { transform: translateY(0); }
}
@keyframes snail-turn {
  0%, 30% { transform: rotate(0deg) scaleX(-1); }
  33%, 48% { transform: rotate(90deg) scaleX(-1); }
  51%, 100% { transform: rotate(0deg) scaleX(1); }
}
@keyframes snail-stretch { 50% { transform: scaleX(1.06); } }

/* Floating contact action */
.fab { --fab-shadow: 0 4px 14px color-mix(in srgb, var(--brand-deep) 30%, transparent); position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.fab__toggle, .fab__fallback {
  display: inline-flex; align-items: center; gap: 0.5rem; height: var(--fab-h); padding: 0 1.15rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid #fff; background: var(--accent); color: #fff;
  font: inherit; font-weight: 700; box-shadow: var(--fab-shadow); cursor: pointer; text-decoration: none;
}
.fab__toggle:hover, .fab__fallback:hover { background: var(--accent-dark); color: #fff; }
.js .fab__fallback { display: none; }
.fab__bar { display: flex; align-items: center; gap: 0.5rem; }
.fab__insta { display: inline-grid; place-items: center; width: var(--fab-h); height: var(--fab-h); border-radius: 50%; border: 2px solid #fff; color: #fff; background: linear-gradient(45deg, #e8792b 0%, #dc2743 40%, #bc1888 70%, #7f37c0 100%); box-shadow: var(--fab-shadow); }
.fab__insta:hover { color: #fff; filter: brightness(0.9) saturate(1.1); }
.fab__panel { width: min(20rem, calc(100vw - 2rem)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px color-mix(in srgb, var(--brand-deep) 22%, transparent); padding: 1rem; position: relative; }
.fab__panel[hidden] { display: none; }
.fab__title { font-weight: 750; margin: 0 2.5rem 0.75rem 0; color: var(--heading); }
.fab__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.fab__panel li a { display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 650; text-decoration: none; color: var(--heading); }
.fab__panel li a:hover { background: var(--accent-tint); }
.fab__panel small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.2rem; }
.fab__close { position: absolute; top: 0.4rem; right: 0.4rem; width: 2.75rem; height: 2.75rem; border: 0; background: none; color: var(--heading); cursor: pointer; border-radius: var(--radius); font-size: 1.5rem; line-height: 1; }
.fab__close:hover { background: var(--accent-tint); }

/* Contact lists */
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; }

.member-card { display: flex; flex-direction: column; gap: 0.5rem; }
.member-card h3 { margin: 0; }

.download-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }

.error-page { padding-block: 3rem; }

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

@media print {
  .site-header .site-nav, .menu-toggle, .fab, .filters, .site-footer { display: none !important; }
  body { background: #fff; }
}

/* Utility rules that replace inline styles (the CSP forbids inline styles). */
.plain-list { list-style: none; padding: 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.member-card h2 { font-size: 1.2rem; }
.member-card > * { margin: 0; }
.download-list h2, .download-list h3 { font-size: 1.15rem; }
.download-list .card > * { margin: 0 0 0.35rem; }

/* --- B: Startseite, Training, Kurse --- */

/* Request button with a WhatsApp / e-mail choice (partials/trial-choice). */
.choice { position: relative; display: inline-block; }
.choice > summary { list-style: none; }
.choice > summary::-webkit-details-marker { display: none; }
.choice__chevron { flex: none; transition: transform 0.15s ease; }
.choice[open] .choice__chevron { transform: rotate(180deg); }
.choice__menu {
  position: absolute; z-index: 30; top: calc(100% + 0.4rem); left: 0; min-width: max(100%, 13rem);
  margin: 0; padding: 0.4rem; list-style: none; display: grid; gap: 0.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow), 0 12px 28px color-mix(in srgb, var(--brand-deep) 18%, transparent);
}
.choice__menu a { display: flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 0.75rem; border-radius: calc(var(--radius) - 0.15rem); font-weight: 650; color: var(--heading); text-decoration: none; }
.choice__menu a:hover, .choice__menu a:focus-visible { background: var(--accent-tint); color: var(--heading); }

/* Home: Schnuppertauchen teaser */
.teaser { display: grid; gap: 1rem 2rem; align-items: center; margin-block: 1rem; padding: 1.5rem; border-radius: var(--radius); background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.teaser h2 { margin: 0 0 0.5rem; }
.teaser__text p:last-child { margin-bottom: 0; }
.teaser__kicker, .offer__kicker { margin: 0 0 0.25rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-dark); }
.teaser__facts { margin: 0 0 1rem; display: grid; gap: 0.35rem; }
.teaser__facts li { position: relative; padding-left: 1.25rem; }
.teaser__facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }
@media (min-width: 48rem) { .teaser { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); padding: 1.75rem 2rem; } }

/* Training: pointer from Schnuppertraining to Schnuppertauchen */
.trial-hint { margin: 1rem 0 0; padding-top: 0.85rem; border-top: 1px solid var(--line); font-size: 0.9375rem; }

/* Kurse: Schnuppertauchen offer */
.offer__card { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.offer__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.offer__body { padding: 1.25rem; }
.offer__body h2 { margin-top: 0; }
.offer__intro { font-size: 1.075rem; }
.offer-facts { display: grid; gap: 0.15rem 1.25rem; margin: 1.25rem 0 0; }
.offer-facts dt { font-weight: 700; color: var(--heading); }
.offer-facts dd { margin: 0 0 0.6rem; }
.offer-facts__note { display: block; margin-top: 0.15rem; font-size: 0.9375rem; color: var(--muted); }
.offer__gift { margin: 0 1.25rem 1.25rem; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--accent-tint); }
.offer__gift h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.offer__gift p { margin: 0 0 0.85rem; }
@media (min-width: 36rem) { .offer-facts { grid-template-columns: max-content minmax(0, 1fr); } }
@media (min-width: 56rem) {
  .offer__card { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: auto 1fr; grid-template-areas: "body media" "body gift"; gap: 0 2.5rem; padding: 2rem; }
  .offer__media { grid-area: media; }
  .offer__img { border-radius: var(--radius); }
  .offer__body { grid-area: body; padding: 0; }
  .offer__gift { grid-area: gift; align-self: start; margin: 1.5rem 0 0; }
}

/* Kurse: course cards with equal heights */
.courses-note { max-width: var(--prose); margin: 0 0 1.25rem; padding: 0.6rem 0.9rem; border-left: 4px solid var(--accent); background: var(--accent-tint); border-radius: 0 var(--radius) var(--radius) 0; }
.course-grid { margin: 0; }
@media (min-width: 40rem) { .course-grid { grid-auto-rows: 1fr; } }
.course-card { padding: 0; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); }
.course-card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.course-card__body { flex: 1; display: flex; flex-direction: column; padding: 1.15rem 1.25rem 1.25rem; }
.course-card__body h3 { margin: 0 0 0.25rem; }
.course-card__body h4 { margin: 0 0 0.35rem; font-size: 1rem; }
.course-card__body ul { padding-left: 1.15rem; font-size: 0.9375rem; }
.course-card__price { margin: 0 0 0.75rem; font-size: 1.25rem; font-weight: 750; color: var(--accent-dark); }
.course-card__facts { margin: 0 0 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.course-card__facts dt { font-weight: 700; color: var(--heading); }
.course-card__facts dd { margin: 0 0 0.5rem; }
.course-card__ask { margin: auto 0 0; padding-top: 0.75rem; }

/* --- C: Verein, Mitglieder, Rechtliches --- */
@media (min-width: 48rem) { .steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.icon { flex-shrink: 0; width: 2.75rem; height: 2.75rem; color: var(--accent); transition: transform 0.2s ease; }
.member-card:hover .icon, .member-card:focus-within .icon { transform: translateY(-2px) rotate(-6deg); }
.member-card > p:has(> .btn) { margin-top: auto; }
.member-card--wide { grid-column: 1 / -1; background: var(--accent-tint); border-color: transparent; }
.member-card--wide > p:has(> .btn) { margin-top: 0; }
.member-card__body > * { margin: 0 0 0.35rem; }
.member-card__body > :last-child { margin-bottom: 0; }
@media (min-width: 40rem) {
  .member-card--wide { flex-direction: row; align-items: center; gap: 1.25rem; }
  .member-card__body { flex: 1; }
}

.contact-wa { margin: 1rem 0; padding: 1rem; background: var(--accent-tint); border-radius: var(--radius); }
.contact-wa > * { margin: 0; }
.contact-wa > * + * { margin-top: 0.5rem; }
.contact-wa .btn svg { flex-shrink: 0; }
