@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk Fallback";
  src: local("Arial");
  ascent-override: 91.20%;
  descent-override: 24.03%;
  line-gap-override: 0.00%;
  size-adjust: 106.42%;
}

/* ===== Reset (Tailwind v4 preflight) ===== */
/*
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
  2. Remove default margins and padding
  3. Reset all borders.
*/

*,
::after,
::before,
::backdrop,
::file-selector-button {
  box-sizing: border-box; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 2 */
  border: 0 solid; /* 3 */
}

/*
  1. Use a consistent sensible line-height in all browsers.
  2. Prevent adjustments of font size after orientation changes in iOS.
  3. Use a more readable tab size.
  4. Use the user's configured `sans` font-family by default.
  5. Use the user's configured `sans` font-feature-settings by default.
  6. Use the user's configured `sans` font-variation-settings by default.
  7. Disable tap highlights on iOS.
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
  1. Add the correct height in Firefox.
  2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
  3. Reset the default border style to a 1px solid border.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
  Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

/*
  Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
  Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  -webkit-text-decoration: inherit;
  text-decoration: inherit;
}

/*
  Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
  1. Use the user's configured `mono` font-family by default.
  2. Use the user's configured `mono` font-feature-settings by default.
  3. Use the user's configured `mono` font-variation-settings by default.
  4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', 'Courier New', monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
  Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
  Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
  1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
  2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
  3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
  Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
  Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
  Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
  Make lists unstyled by default.
*/

ol,
ul,
menu {
  list-style: none;
}

/*
  1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
  2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
      This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
  Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

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

/*
  1. Inherit font styles in all browsers.
  2. Remove border radius in all browsers.
  3. Remove background color in all browsers.
  4. Ensure consistent opacity for disabled states in all browsers.
*/

button,
input,
select,
optgroup,
textarea,
::file-selector-button {
  font: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  border-radius: 0; /* 2 */
  background-color: transparent; /* 3 */
  opacity: 1; /* 4 */
}

/*
  Restore default font weight.
*/

:where(select:is([multiple], [size])) optgroup {
  font-weight: bolder;
}

/*
  Restore indentation.
*/

:where(select:is([multiple], [size])) optgroup option {
  padding-inline-start: 20px;
}

/*
  Restore space after button.
*/

::file-selector-button {
  margin-inline-end: 4px;
}

/*
  Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
*/

::placeholder {
  opacity: 1;
}

/*
  Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
  crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
*/

@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
  (contain-intrinsic-size: 1px) /* Safari 17+ */ {
  ::placeholder {
    color: color-mix(in oklab, currentcolor 50%, transparent);
  }
}

/*
  Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
  Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
  1. Ensure date/time inputs have the same height when empty in iOS Safari.
  2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
*/

::-webkit-date-and-time-value {
  min-height: 1lh; /* 1 */
  text-align: inherit; /* 2 */
}

/*
  Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
*/

::-webkit-datetime-edit {
  display: inline-flex;
}

/*
  Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
*/

::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

::-webkit-datetime-edit,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-millisecond-field,
::-webkit-datetime-edit-meridiem-field {
  padding-block: 0;
}

/*
  Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
*/

::-webkit-calendar-picker-indicator {
  line-height: 1;
}

/*
  Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
  Correct the inability to style the border radius in iOS Safari.
*/

button,
input:where([type='button'], [type='reset'], [type='submit']),
::file-selector-button {
  appearance: button;
}

/*
  Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
  Make elements with the HTML hidden attribute stay hidden by default.
*/

[hidden]:where(:not([hidden='until-found'])) {
  display: none !important;
}

:root { --font-schibsted: "Schibsted Grotesk", "Schibsted Grotesk Fallback"; }


/* ============================================================
   Treffpunkt Freikirche Düren, design tokens
   Relaunch palette: deep blue + navy on white, minimalist.
   The token names stay (--violet-* / --gold-*) so the whole
   stylesheet re-themes from here; only the VALUES are blue now.
   Anchors: accent --violet-700 #33508C, navy --violet-900 #16243E.
   ============================================================ */
:root {
  /* --- Brand blue scale (accent = --violet-700 #33508C, navy = --violet-900 #16243E) --- */
  --violet-50: #eef3fa; /* "sand", soft cool surface */
  --violet-100: #dce7f4;
  --violet-200: #bbcee8;
  --violet-300: #8faed4;
  --violet-400: #5e84b6;
  --violet-500: #436a9c;
  --violet-600: #3a5c8e;
  --violet-700: #33508c; /* Brand primary (deep blue) */
  --violet-800: #21395e;
  --violet-900: #16243e; /* Navy anchor: header, hero, footer */

  /* --- Cool neutrals --- */
  --white: #ffffff;
  --paper: #edf2f8; /* cool soft white, used as light text on navy */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f4f8;
  --neutral-200: #e3e8ef;
  --neutral-300: #cdd5e0;
  --neutral-400: #9aa6b6;
  --neutral-500: #6b7686;
  --neutral-600: #4c5563;
  --neutral-700: #353c47;
  --neutral-800: #222831;
  --neutral-900: #141820;

  /* --- Light-blue accent (used for highlights on the navy field + pills) --- */
  --gold-200: #dce9f8;
  --gold-300: #b9d2f0;
  --gold-400: #7fa8dc;
  --gold-500: #4f79b5;

  /* --- Live indicator (only colour outside the blue family) --- */
  --live: #e0392b;
  --live-bg: #fdeceA;

  /* --- Semantic status --- */
  --green-500: #2f8a5b;
  --green-100: #e3f1ea;
  --red-500: #c0392b;
  --red-100: #f7e4e1;
  --amber-500: #c08a26;
  --amber-100: #f6ecd6;

  /* ----- Semantic aliases ----- */
  --color-primary: var(--violet-700);
  --color-primary-hover: var(--violet-800);
  --color-primary-active: var(--violet-900);
  --color-primary-soft: var(--violet-50);
  --color-on-primary: var(--paper);

  --color-accent: var(--gold-400);
  --color-accent-soft: var(--gold-200);

  --text-heading: var(--violet-700);
  --text-body: var(--neutral-800);
  --text-muted: var(--neutral-500);
  --text-on-dark: var(--paper);
  --text-on-dark-muted: color-mix(in srgb, var(--paper) 70%, var(--violet-700));

  --surface-page: var(--white);
  --surface-subtle: var(--violet-50);
  --surface-card: var(--white);
  --surface-invert: var(--violet-900);
  --surface-invert-2: var(--violet-900);

  --border: var(--neutral-200);
  --border-strong: var(--neutral-300);
  --border-on-dark: color-mix(in srgb, var(--paper) 22%, transparent);

  --color-success: var(--green-500);
  --color-success-bg: var(--green-100);
  --color-danger: var(--red-500);
  --color-danger-bg: var(--red-100);
  --color-warning: var(--amber-500);
  --color-warning-bg: var(--amber-100);

  /* --- Typography (Schibsted Grotesk via next/font) --- */
  --font-display: var(--font-schibsted), "Segoe UI", system-ui, sans-serif;
  --font-body: var(--font-schibsted), "Segoe UI", system-ui, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: 3rem;
  --text-4xl: 3.75rem;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extra: 800;

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-label: 0.14em;

  /* --- Spacing (4px grid) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;

  --container-sm: 640px;
  --container-md: 860px;
  --container-lg: 1120px;
  --container-xl: 1280px;

  /* --- Radii --- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  /* --- Shadows (violet-tinted, soft) --- */
  --shadow-xs: 0 1px 2px rgba(64, 18, 104, 0.06);
  --shadow-sm: 0 2px 6px rgba(64, 18, 104, 0.08);
  --shadow-md: 0 8px 20px rgba(64, 18, 104, 0.1);
  --shadow-lg: 0 18px 40px rgba(64, 18, 104, 0.14);
  --shadow-focus: 0 0 0 3px rgba(64, 18, 104, 0.22);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 360ms;
}

/* ============================================================
   Base
   ============================================================ */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Always reserve the scrollbar gutter so page content never shifts
     horizontally between scrolling and non-scrolling pages. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--surface-page);
  font-family: var(--font-body);
  color: var(--text-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.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;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-heading);
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.container--md {
  max-width: var(--container-md);
}

.section {
  padding-block: clamp(48px, 9vw, 80px);
}

.surface-subtle {
  background: var(--surface-subtle);
}

/* ============================================================
   Eyebrow + section heading (signature pattern)
   ============================================================ */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: min(100%, 52rem);
}

.section-heading--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow--on-dark {
  color: var(--color-accent);
}

.section-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, var(--text-2xl));
  font-weight: var(--weight-extra);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  text-wrap: balance;
}

.section-intro {
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  line-height: 1;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn--sm {
  padding: 8px 16px;
  font-size: var(--text-sm);
  gap: 6px;
}
.btn--lg {
  padding: 16px 30px;
  font-size: var(--text-md);
  gap: 10px;
}
.btn--pill {
  border-radius: var(--radius-pill);
}
.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--secondary {
  background: var(--surface-page);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn--secondary:hover {
  background: var(--color-primary-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary-soft);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--violet-900);
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background: var(--gold-300);
}

/* On the violet hero, the outline button uses paper tones. */
.btn--on-dark {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--border-on-dark);
}
.btn--on-dark:hover {
  background: color-mix(in srgb, var(--paper) 12%, transparent);
}

.btn--danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: transparent;
}
.btn--danger:hover {
  background: color-mix(in srgb, var(--color-danger) 16%, var(--white));
}

/* ============================================================
   Badge
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  padding: 5px 12px;
  background: var(--violet-50);
  color: var(--violet-700);
}
.badge--sm {
  padding: 3px 9px;
  font-size: 0.7rem;
}
.badge--violet {
  background: var(--violet-50);
  color: var(--violet-700);
}
.badge--solid {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.badge--neutral {
  background: var(--neutral-100);
  color: var(--neutral-700);
}
.badge--accent {
  background: var(--gold-200);
  color: var(--violet-900);
}
.badge--success {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.badge--danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

/* ============================================================
   Card
   ============================================================ */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.card--flat {
  box-shadow: none;
}
.card--md {
  box-shadow: var(--shadow-md);
}
.card--pad-none {
  padding: 0;
}
.card--pad-md {
  padding: var(--space-5);
}
.card--interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   Site header
   ============================================================ */
.site-header {
  --logo-scale: 1;
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--violet-900) 92%, transparent);
  backdrop-filter: blur(10px);
  color: var(--paper);
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
  transition:
    background 480ms var(--ease-out),
    box-shadow 480ms var(--ease-out),
    border-color 480ms var(--ease-out);
}
.site-header[data-scrolled="true"] {
  --logo-scale: 0.74;
  background: color-mix(in srgb, var(--violet-900) 97%, transparent);
  box-shadow: 0 8px 24px rgba(8, 16, 32, 0.28);
  border-bottom-color: transparent;
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 14px;
  /* Slow, gentle tempo so the condensing never feels abrupt. */
  transition: padding-block 480ms var(--ease-out);
}
.site-header[data-scrolled="true"] .site-header__inner {
  padding-block: 9px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
}
.site-logo img {
  height: calc(min(var(--logo-h, 96px), 22vw) * var(--logo-scale, 1));
  width: auto;
  display: block;
  transition: height 480ms var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header__inner,
  .site-logo img {
    transition: none;
  }
}
.auth-logo {
  height: 72px;
  width: auto;
}
.brand-logo--auth {
  color: var(--color-primary);
}
.brand-logo--auth .brand-logo__mark {
  height: 44px;
}
.brand-logo--auth .brand-logo__word-1,
.brand-logo--auth .brand-logo__word-2 {
  font-size: 1.3rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav__link {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.site-nav__link:hover {
  color: var(--paper);
  background: color-mix(in srgb, var(--paper) 12%, transparent);
}
.site-nav__link[aria-current="page"] {
  color: var(--paper);
  background: color-mix(in srgb, var(--paper) 16%, transparent);
}
.site-nav__cta {
  margin-left: 6px;
}

/* Mobile nav toggle button (hidden on desktop). */
.nav-toggle-label {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  background: color-mix(in srgb, var(--paper) 8%, transparent);
  cursor: pointer;
  color: var(--paper);
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: var(--space-4);
    background: var(--violet-900);
    border: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 40px rgba(8, 16, 32, 0.45);
  }
  .site-nav[data-open="true"] {
    display: flex;
  }
  .site-nav__cta {
    margin-left: 0;
    margin-top: 4px;
  }
  .nav-toggle-label {
    display: inline-flex;
  }
}

/* ============================================================
   Hero (violet field)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-invert);
  color: var(--text-on-dark);
  padding-block: clamp(64px, 12vw, 104px);
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 80% at 50% 0%,
    rgba(255, 255, 255, 0.1),
    transparent 70%
  );
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
}
.hero__title {
  margin: 0;
  color: var(--text-on-dark);
  font-weight: var(--weight-extra);
  font-size: clamp(2.25rem, 7vw, var(--text-4xl));
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
.hero__intro {
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-on-dark-muted);
  max-width: 560px;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

/* ============================================================
   Event cards (Termine)
   ============================================================ */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}
.event-card {
  display: flex;
  overflow: hidden;
  padding: 0;
}
.event-card__date {
  flex: none;
  width: 96px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 8px;
  text-align: center;
}
.event-card__dow {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.event-card__day {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-lg);
}
.event-card__month {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.event-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.event-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: var(--text-heading);
  overflow-wrap: anywhere;
  hyphens: auto;
}
.event-card__time {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-primary);
}
.event-card__where {
  margin: 2px 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Empty state */
.empty-state {
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-5);
  color: var(--text-muted);
  background: var(--neutral-50);
}

/* Month divider on the Termine page */
.month-heading {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  color: var(--text-heading);
  letter-spacing: var(--tracking-wide);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   Prose / info blocks
   ============================================================ */
.prose p {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}
.prose p + p {
  margin-top: var(--space-4);
}
.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Legal pages (Impressum / Datenschutz) */
.legal {
  max-width: 72ch;
}
.legal h2 {
  font-size: var(--text-lg);
  margin: var(--space-7) 0 var(--space-3);
}
.legal h3 {
  font-size: var(--text-md);
  margin: var(--space-5) 0 var(--space-2);
}
.legal p {
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  margin: 0 0 var(--space-3);
}
.legal address {
  font-style: normal;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}
.legal a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.info-list__label {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 3px;
}

/* ============================================================
   Forms
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-body);
}
.input,
.textarea,
.select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-body);
  background: var(--surface-page);
  padding: 11px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  outline: none;
  width: 100%;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.textarea {
  min-height: 96px;
  resize: vertical;
}
.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}
.field__hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.form-error {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  font-size: var(--text-sm);
  padding: 10px 14px;
  border-radius: var(--radius-md);
}
.form-ok {
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: var(--text-sm);
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--surface-invert-2);
  color: var(--text-on-dark-muted);
  padding-top: clamp(46px, 7vw, 70px);
  padding-bottom: var(--space-6);
}
.site-footer__brush {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: clamp(26px, 5vw, 48px);
  display: block;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--paper);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
}
.site-footer__nav {
  display: flex;
  gap: var(--space-5);
}

/* ============================================================
   Admin
   ============================================================ */
.admin-shell {
  display: flex;
  align-items: stretch;
  min-height: 100dvh;
  background: var(--neutral-50);
}
.admin-side {
  flex: none;
  width: 234px;
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--surface-invert);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-5);
}
.admin-side__brand {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-md);
  color: var(--paper);
}
.admin-side__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.admin-side__user {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--paper);
}
.admin-side__user .muted {
  color: var(--text-on-dark-muted);
  font-weight: var(--weight-regular);
  font-size: var(--text-xs);
}
.admin-side__link {
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  text-decoration: none;
}
.admin-side__link:hover {
  color: var(--paper);
}
.admin-main {
  flex: 1;
  min-width: 0;
}
.admin-main__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-8) clamp(20px, 4vw, 44px);
}

@media (max-width: 820px) {
  .admin-shell {
    flex-direction: column;
  }
  .admin-side {
    width: auto;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-4);
    padding: var(--space-3) clamp(16px, 4vw, 28px);
  }
  .admin-side__brand {
    display: none;
  }
  .admin-side__foot {
    margin-top: 0;
    margin-left: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .admin-side__user {
    display: none;
  }
  .admin-main__inner {
    padding: var(--space-6) clamp(16px, 4vw, 28px);
  }
}
.admin-bar {
  background: var(--surface-invert);
  color: var(--text-on-dark);
}
.admin-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 14px;
}
.admin-bar__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--paper);
  font-size: var(--text-md);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.admin-table th {
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stack {
  display: flex;
  flex-direction: column;
}
.muted {
  color: var(--text-muted);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

/* ============================================================
   Hero logo + legal text + admin extras (added for relaunch v2)
   ============================================================ */
.hero__logo-chip {
  display: inline-flex;
  background: var(--paper);
  border-radius: var(--radius-2xl);
  padding: clamp(14px, 3vw, 26px);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-2);
}
.hero__logo {
  height: clamp(92px, 17vw, 150px);
  width: auto;
}

.legal-text {
  max-width: 72ch;
}
.legal-text p {
  white-space: pre-line;
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  margin: 0 0 var(--space-5);
}

/* Admin navigation (vertical in the sidebar, horizontal on mobile) */
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (max-width: 820px) {
  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
.admin-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--text-on-dark-muted);
}
.admin-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--violet-900);
  font-size: 12px;
  font-weight: var(--weight-bold);
}
.admin-nav a:hover {
  color: var(--paper);
  background: color-mix(in srgb, var(--paper) 12%, transparent);
}
.admin-nav a[aria-current="page"] {
  color: var(--paper);
  background: color-mix(in srgb, var(--paper) 16%, transparent);
}
.admin-user {
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
}

/* Content editor groups */
.content-group {
  margin-bottom: var(--space-6);
}
.content-group__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  color: var(--text-heading);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

/* Role badge */
.role-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 0.7rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}
.role-badge--admin {
  background: var(--violet-50);
  color: var(--violet-700);
}
.role-badge--editor {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

/* Centered single-card screens (login, setup) */
.center-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  background: var(--neutral-50);
}
.auth-card {
  max-width: 440px;
  width: 100%;
}

/* ============================================================
   Hero next-event, rich content, media, editor (relaunch v3)
   ============================================================ */
.hero-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--paper);
  color: var(--text-body);
  border-radius: var(--radius-xl);
  padding: clamp(18px, 3vw, 28px) clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-md);
  max-width: 580px;
}
.hero-event__label {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-primary);
}
.hero-event__name {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: clamp(1.5rem, 4vw, var(--text-2xl));
  color: var(--text-heading);
  line-height: var(--leading-tight);
  text-wrap: balance;
}
.hero-event__when {
  font-size: var(--text-md);
  color: var(--text-body);
}
.hero__note {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-on-dark-muted);
  max-width: 540px;
}

/* Rich content rendered from the editor */
.rich {
  max-width: 70ch;
}

/* Centered page intro (Wer sind wir, Royal Rangers, …) for a consistent look. */
.page-intro {
  max-width: 52rem;
  margin: var(--space-6) auto 0;
  text-align: center;
}
.page-intro .rich {
  max-width: none;
}
.rich h2 {
  font-size: var(--text-xl);
  margin: var(--space-7) 0 var(--space-3);
  color: var(--text-heading);
}
.rich h3 {
  font-size: var(--text-lg);
  margin: var(--space-6) 0 var(--space-2);
  color: var(--text-heading);
}
.rich p {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  margin: 0 0 var(--space-4);
}
.rich a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rich ul,
.rich ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.4em;
  line-height: var(--leading-relaxed);
}
.rich li {
  margin-bottom: 6px;
}
.rich img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
}
.rich blockquote {
  border-left: 3px solid var(--border-strong);
  margin: var(--space-4) 0;
  padding-left: var(--space-4);
  color: var(--text-muted);
}

/* Media */
.page-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  display: block;
}
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--neutral-900);
}

/* Vertical embeds (e.g. TikTok). */
.video-embed--portrait {
  aspect-ratio: 9 / 16;
  max-width: 340px;
  margin-inline: auto;
}

/* DSGVO consent placeholder shown until the visitor clicks to load YouTube. */
.video-consent {
  background:
    radial-gradient(120% 100% at 50% 0%, var(--violet-800), var(--violet-900));
}
.video-consent__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-consent__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 36, 62, 0.55),
    rgba(22, 36, 62, 0.78)
  );
}
.video-consent__inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5);
  text-align: center;
}
.video-consent__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
}
.video-consent__play {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  transition: background 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.video-consent__btn:hover .video-consent__play {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.04);
}
.video-consent__label {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-md);
}
.video-consent__note {
  max-width: 42ch;
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}
.video-consent__note a {
  color: #fff;
  text-decoration: underline;
}
.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.image-field__preview {
  max-width: 280px;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: block;
}

/* Editor */
.editor {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-page);
}
.editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-bottom: 1px solid var(--border);
  background: var(--neutral-50);
}
.editor__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-body);
}
.editor__btn:hover {
  background: var(--color-primary-soft);
}
.editor__btn--active {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.editor__sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}
.editor__content {
  padding: 14px 16px;
}
.ProseMirror {
  outline: none;
  min-height: 180px;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}
.ProseMirror p {
  margin: 0 0 var(--space-3);
}
.ProseMirror h2 {
  font-size: var(--text-xl);
  margin: var(--space-5) 0 var(--space-2);
  color: var(--text-heading);
}
.ProseMirror h3 {
  font-size: var(--text-lg);
  margin: var(--space-4) 0 var(--space-2);
  color: var(--text-heading);
}
.ProseMirror ul,
.ProseMirror ol {
  padding-left: 1.4em;
  margin: 0 0 var(--space-3);
}
.ProseMirror a {
  color: var(--color-primary);
  text-decoration: underline;
}
.ProseMirror img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ============================================================
   Home hero — split layout, crosses, brush edge, quick cards
   ============================================================ */
.hero--split {
  padding-block: clamp(44px, 8vw, 84px) clamp(60px, 9vw, 104px);
  text-align: left;
}
.hero__split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.hero__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero--split .hero__title {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
}
.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
@media (max-width: 820px) {
  .hero__split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__lead {
    align-items: center;
  }
}

.hero__crosses {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: #ffffff;
}
.hero__cross {
  position: absolute;
}
.hero__cross--a {
  width: clamp(130px, 18vw, 230px);
  top: -30px;
  right: 3%;
  transform: rotate(12deg);
  opacity: 0.07;
}
.hero__cross--b {
  width: clamp(80px, 12vw, 150px);
  bottom: 20px;
  left: 5%;
  transform: rotate(-10deg);
  opacity: 0.06;
}

.hero__brush {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(28px, 5vw, 50px);
  display: block;
  z-index: 1;
}

.hero-event__note {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Small "i" tooltip */
.info-tip {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-page);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  cursor: help;
  padding: 0;
}
.info-tip__bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 240px;
  background: var(--violet-900);
  color: var(--paper);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  padding: 8px 11px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
  z-index: 5;
}
.info-tip:hover .info-tip__bubble,
.info-tip:focus-visible .info-tip__bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hero-event__more {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
}
.hero-event__more:hover {
  color: var(--gold-300);
}

/* Quick-access cards */
.section--tight {
  padding-block: clamp(28px, 5vw, 52px);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}
.quick-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.quick-card--gold {
  border-left-color: var(--color-accent);
}
.quick-card__title {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-lg);
  color: var(--text-heading);
}
.quick-card__text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}
.quick-card__more {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-primary);
}

/* ============================================================
   Admin dashboard
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.stat-card__num {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  line-height: 1;
}
.stat-card__lab {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.log-mini {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.log-mini li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.log-mini li:last-child {
  border-bottom: none;
}
.log-mini__row,
.log-mini summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.log-mini summary {
  cursor: pointer;
  list-style: none;
}
.log-mini summary::-webkit-details-marker {
  display: none;
}
.log-mini summary .log-mini__what::after {
  content: " ›";
  color: var(--text-muted);
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.log-mini details[open] summary .log-mini__what::after {
  transform: rotate(90deg);
}
.log-mini__detail {
  margin-top: 6px;
  padding-left: 2px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

/* Page with image: the full photo floats left, the text flows around and
   below it like a magazine article, so there is no empty gap. */
.page-split {
  display: flow-root;
}
.page-split__img {
  float: left;
  width: clamp(220px, 42%, 360px);
  height: auto;
  margin: 4px clamp(22px, 3vw, 34px) 16px 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  display: block;
}
.page-split__body {
  min-width: 0;
}
@media (max-width: 620px) {
  .page-split__img {
    float: none;
    width: 100%;
    margin: 0 0 var(--space-5);
  }
}

/* ============================================================
   Hero rich title + editor size select + new event cards
   ============================================================ */
.hero__title--rich {
  /* Base weight a touch lighter than the bold parts, so the editor's bold and
     font-size choices are actually visible in the hero. */
  font-weight: var(--weight-semibold);
  /* Honour the line breaks as entered instead of auto-balancing them. */
  text-wrap: pretty;
}
.hero__title--rich p {
  margin: 0 0 0.12em;
}
.hero__title--rich p:last-child {
  margin-bottom: 0;
}
.hero__title--rich strong {
  font-weight: var(--weight-extra);
}

.editor__size {
  height: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-body);
  padding: 0 6px;
  cursor: pointer;
}
.editor__size:hover {
  background: var(--color-primary-soft);
}

/* Event cards (Termine) */
.ev-card {
  display: flex;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.ev-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.ev-card__date {
  flex: none;
  width: 94px;
  background: var(--surface-invert);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 8px;
}
.ev-card__dow {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 82%, var(--violet-700));
}
.ev-card__day {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-3xl);
  line-height: 1;
}
.ev-card__mon {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 82%, var(--violet-700));
}
.ev-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-width: 0;
}
.ev-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-lg);
  color: var(--text-heading);
  line-height: var(--leading-snug);
  overflow-wrap: break-word;
}
.ev-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.ev-card__time {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--violet-900);
  background: var(--gold-200);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}
.ev-card__loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  min-width: 0;
}

/* ============================================================
   Termine — list / schedule layout + multi-line address
   ============================================================ */
.ev-list {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ev-row {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  align-items: center;
  padding: clamp(16px, 2.5vw, 22px) clamp(16px, 3vw, 26px);
  transition: background var(--dur-fast) var(--ease-out);
}
.ev-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}
.ev-row:hover {
  background: var(--neutral-50);
}
.ev-row__date {
  flex: none;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ev-row__day {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  line-height: 1;
}
.ev-row__mon {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 0.7rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}
.ev-row__main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  flex: 1;
}
.ev-row__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-lg);
  color: var(--text-heading);
  line-height: var(--leading-snug);
  overflow-wrap: break-word;
}
.ev-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: flex-start;
}
.ev-row__time {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--violet-900);
  background: var(--gold-200);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.ev-row__loc {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.addr {
  display: inline-flex;
  flex-direction: column;
}

/* Cancelled occurrence ("fällt aus") */
.ev-row--cancelled .ev-row__day,
.ev-row--cancelled .ev-row__mon,
.ev-row--cancelled .ev-row__time {
  opacity: 0.5;
}
.ev-row--cancelled .ev-row__title {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--text-muted) 60%, transparent);
}
.ev-row__cancel {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 0.7rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--live);
  background: var(--live-bg);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  text-decoration: none;
  vertical-align: middle;
}
.addr__line {
  display: block;
}

/* ============================================================
   Administration tiles (match the clean dashboard cards)
   ============================================================ */
.admin-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-4);
}
.admin-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}
.admin-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.admin-tile__title {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-md);
  color: var(--text-heading);
}
.admin-tile__text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}
.admin-tile__more {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--color-primary);
}

/* ============================================================
   Contact form + message inbox + tile badge
   ============================================================ */
.contact-block {
  margin-top: clamp(36px, 6vw, 64px);
  background: linear-gradient(160deg, var(--violet-700) 0%, var(--violet-800) 100%);
  border-radius: var(--radius-2xl);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
}
.contact-block__title {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-2);
  color: #ffffff;
}
.contact-block__lead {
  margin: 0 0 var(--space-5);
  color: var(--text-on-dark-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
/* Light form fields sitting on the violet card */
.contact-block .field__label {
  color: var(--paper);
}
.contact-block .input,
.contact-block .textarea {
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
  color: var(--neutral-900);
}
.contact-block .input:focus,
.contact-block .textarea:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.contact-form__note {
  margin: -2px 0 0;
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
}
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-done {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid transparent;
  color: var(--neutral-800);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.contact-done strong {
  color: var(--color-primary);
  font-size: var(--text-md);
}
@media (max-width: 560px) {
  .contact-form__row {
    grid-template-columns: 1fr !important;
  }
}

.msg-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg-card--unread {
  border-left: 4px solid var(--color-primary);
}
.msg-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.msg-card__from {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.msg-card__email {
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}
.msg-card__email:hover {
  text-decoration: underline;
}
.msg-card__subject {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
}
.msg-card__body {
  white-space: pre-wrap;
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}

.admin-tile__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--paper);
  font-size: 12px;
  font-weight: var(--weight-bold);
  vertical-align: middle;
}

/* HTML source-code mode in the editor (for pasted legal HTML) */
.editor__code {
  display: block;
  width: 100%;
  min-height: 340px;
  padding: 14px 16px;
  border: none;
  background: var(--neutral-50);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--neutral-800);
  resize: vertical;
}
.editor__code:focus {
  outline: none;
}
.editor__codehint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-left: 4px;
}

/* User form: password mode radios + invite link fallback */
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: var(--text-sm);
}
.invite-link {
  background: var(--neutral-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  overflow-x: auto;
}
.invite-link code {
  font-size: 12px;
  color: var(--color-primary);
  word-break: break-all;
}

/* Verse of the year ("Jahreslosung") on the homepage */
.verse {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
  background: linear-gradient(180deg, var(--violet-50), var(--surface-page));
  border: 1px solid var(--violet-100);
  border-radius: var(--radius-2xl);
  padding: clamp(28px, 5vw, 52px) clamp(24px, 6vw, 60px);
  box-shadow: var(--shadow-sm);
}
.verse::before {
  content: "\201C";
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 66px;
  line-height: 0.4;
  height: 34px;
  color: var(--color-accent);
}
.verse__label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--space-4);
}
.verse__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: var(--weight-extra);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  text-wrap: balance;
}
.verse__ref {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
}

/* Dashboard alert banner (unread messages) */
.dash-alert {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--gold-200), var(--gold-300));
  border: 1px solid var(--gold-400);
  color: var(--violet-900);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.dash-alert:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.dash-alert__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--violet-700);
  color: var(--gold-200);
  font-size: 18px;
}
.dash-alert__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.dash-alert__text strong {
  font-family: var(--font-display);
  font-size: var(--text-md);
}
.dash-alert__text span {
  font-size: var(--text-sm);
}
.dash-alert__cta {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

/* ============================================================
   Privacy-friendly map + route-planning links
   ============================================================ */
.map-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.map-block__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.map-block__name {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-size: var(--text-md);
}
.map-block__addr {
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.map-block__map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--violet-50);
}
.map-block__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-block__osm-link {
  align-self: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.map-block__larger {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}
.route-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.route-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-body);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  text-decoration: none;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.route-link:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.route-links--compact {
  margin-top: 10px;
  gap: 6px;
}
.route-links--compact .route-link {
  padding: 5px 11px;
  font-size: var(--text-xs);
}

/* Event location: tap the address to reveal route options in a small popover */
.route-pop__trigger {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding: 2px 4px;
  border: none;
  background: none;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.route-pop__trigger .addr__line:first-child {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.route-pop__trigger:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}
.route-pop__chev {
  transition: transform var(--dur-fast) var(--ease-out);
}
.route-pop__menu {
  position: absolute;
  z-index: 100;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}
.route-pop__title {
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: 2px 10px 4px;
}
.route-pop__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-body);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}
.route-pop__link:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Protokoll: before/after comparison (eye toggle) */
.log-diff {
  margin-top: 8px;
}
.log-diff__eye {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  cursor: pointer;
  list-style: none;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}
.log-diff__eye::-webkit-details-marker {
  display: none;
}
.log-diff__eye:hover {
  background: var(--color-primary-soft);
}
.log-diff__panel {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
  max-width: 660px;
}
.log-diff__field {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--neutral-50);
}
.log-diff__flabel {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--text-heading);
  margin-bottom: 8px;
}
.log-diff__cols {
  display: grid;
  gap: 8px;
}
@media (min-width: 560px) {
  .log-diff__cols {
    grid-template-columns: 1fr 1fr;
  }
}
.log-diff__col {
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: var(--text-sm);
  overflow: auto;
  max-height: 220px;
}
.log-diff__col--before {
  background: var(--color-danger-bg);
}
.log-diff__col--after {
  background: var(--color-success-bg);
}
.log-diff__tag {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--weight-bold);
  margin-bottom: 4px;
  color: var(--text-muted);
}
.log-diff__col--before .log-diff__tag {
  color: var(--color-danger);
}
.log-diff__col--after .log-diff__tag {
  color: var(--color-success);
}
.log-diff__text {
  white-space: pre-wrap;
  word-break: break-word;
}
.log-diff__empty {
  font-style: italic;
  color: var(--text-muted);
}
.log-diff__rich :is(h1, h2, h3, p, ul, ol) {
  margin: 0 0 6px;
  font-size: var(--text-sm);
}

/* ============================================================
   Relaunch: brand wordmark, live pill (Treffpunkt Freikirche)
   ============================================================ */
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: currentColor;
}
.brand-logo__mark {
  height: calc(42px * var(--logo-scale, 1));
  width: auto;
  flex: none;
  transition: height 480ms var(--ease-out);
}
.brand-logo__word {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.brand-logo__word-1 {
  font-weight: var(--weight-extra);
  font-size: 1.18rem;
}
.brand-logo__word-2 {
  font-weight: var(--weight-semibold);
  font-size: 1.18rem;
  color: color-mix(in srgb, currentColor 66%, transparent);
}
@media (max-width: 420px) {
  .brand-logo__word-1,
  .brand-logo__word-2 {
    font-size: 1rem;
  }
  .brand-logo__mark {
    height: calc(36px * var(--logo-scale, 1));
  }
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--live);
  color: #fff;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(224, 57, 43, 0.4);
}
.live-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fff;
  animation: live-pulse 1.4s var(--ease-out) infinite;
}
@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-pill__dot {
    animation: none;
  }
}

/* ============================================================
   Livestream block
   ============================================================ */
.stream {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.stream__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}
.stream__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--live);
}
.stream__live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(224, 57, 43, 0.5);
  animation: live-ring 1.6s var(--ease-out) infinite;
}
@keyframes live-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 57, 43, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(224, 57, 43, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(224, 57, 43, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stream__live-dot {
    animation: none;
  }
}
.stream__badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--violet-50);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

/* On the navy hero the livestream sits on a light card. */
.hero .stream__card,
.stream--on-dark {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: clamp(14px, 3vw, 22px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   Donations (Spenden) flow
   ============================================================ */
.donate {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.donate__card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 4vw, 36px);
}
.donate__q {
  margin: 0 0 var(--space-3);
  font-size: var(--text-lg);
  color: var(--text-heading);
}
.donate__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
.donate__choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.donate__methods {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
.donate__receipt-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-body);
}

/* Reorderable list (homepage blocks editor) */
.block-order {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.block-order__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}
.block-order__pos {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--violet-50);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
}
.block-order__label {
  flex: 1;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--text-body);
}
.block-order__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.block-order__toggle input {
  accent-color: var(--color-primary);
}
.block-order__item--off {
  opacity: 0.55;
}
.block-order__item--off .block-order__label {
  text-decoration: line-through;
}

/* ============================================================
   Image crop dialog (upload)
   ============================================================ */
.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: rgba(8, 14, 26, 0.6);
  backdrop-filter: blur(3px);
}
.crop-modal__panel {
  width: 100%;
  max-width: 560px;
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.crop-modal__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  color: var(--text-heading);
}
.crop-stage {
  position: relative;
  width: 100%;
  height: min(60vh, 420px);
  background: var(--neutral-900);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.crop-modal__zoom {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.crop-modal__zoom input[type="range"] {
  flex: 1;
  accent-color: var(--color-primary);
}
.donate__method {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  text-decoration: none;
}
.donate__method--paypal {
  border-left: 5px solid var(--violet-700);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.donate__method--paypal:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.donate__method--bank {
  border-left: 5px solid var(--gold-400);
}
.donate__method-label {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-md);
  color: var(--text-heading);
}
.donate__method-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.donate__choose-lead {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--text-heading);
  text-align: center;
}
.donate__choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}
.donate__choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.donate__choice:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.donate__choice-title {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-lg);
  color: var(--text-heading);
}
.donate__choice-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.donate__back {
  align-self: flex-start;
  border: none;
  background: none;
  padding: 0;
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.donate__timing {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}
.donate__bank-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-5);
  margin-top: var(--space-3);
}
.donate__bank {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
  flex: 1 1 260px;
  font-size: var(--text-sm);
}
.donate__giro {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.donate__giro img {
  width: 150px;
  height: 150px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
}
.donate__giro figcaption {
  max-width: 162px;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.donate__bank dt {
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
}
.donate__bank dd {
  margin: 0;
  color: var(--text-body);
  overflow-wrap: anywhere;
}
.copy-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.copy-value code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: var(--weight-semibold);
  color: var(--text-heading);
}
.copy-value__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.copy-value__btn:hover {
  background: var(--violet-100);
}
.copy-value__btn--copied,
.copy-value__btn--copied:hover {
  color: #fff;
  background: #2f8f5b;
  border-color: #2f8f5b;
}

/* ============================================================
   People cards (Wer sind wir)
   ============================================================ */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 260px);
  justify-content: center;
  gap: var(--space-5);
}
.person-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  text-align: center;
  align-items: center;
}
.person-card__photo {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--violet-50);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-3);
  border: 1px solid var(--violet-100);
}
.person-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.person-card__initials {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-xl);
  color: var(--color-primary);
}
.person-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-lg);
  color: var(--text-heading);
}
.person-card__role {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-primary);
}
.person-card__bio {
  margin: 6px 0 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}

/* ============================================================
   Offener Brief: member contributions
   ============================================================ */
.letter-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 46rem;
  margin: var(--space-8) auto 0;
}
.letter-entry {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 4vw, 36px);
}
.letter-entry__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.letter-entry__photo {
  position: relative;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  display: grid;
  place-items: center;
}
.letter-entry__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.letter-entry__initials {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-lg);
  color: var(--color-primary);
}
.letter-entry__avatar {
  width: 58%;
  height: 58%;
  color: var(--color-primary);
  opacity: 0.85;
}
.letter-entry__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: var(--text-lg);
  color: var(--text-heading);
}
.letter-entry__subtitle {
  margin: 2px 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.letter-entry__text {
  margin: 0;
  white-space: pre-line;
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}
.letter-entry__media {
  margin-top: var(--space-2);
}
.letter-entry__audio {
  width: 100%;
}
.letter-entry__gallery {
  margin-top: var(--space-2);
}

/* Consent-management box on the Datenschutz page. */
.consent-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.consent-box__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-heading);
}
.consent-box__intro {
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
.consent-box__list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.consent-box__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.consent-box__label {
  font-size: var(--text-sm);
}
.consent-box__status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.consent-box__badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--violet-50);
}
.consent-box__badge--on {
  color: #fff;
  background: #2f8f5b;
}

/* Admin: reorder the content blocks of an Offener-Brief entry. */
.block-order {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.block-order__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  font-size: var(--text-sm);
}

/* ============================================================
   Royal Rangers layout + gallery
   ============================================================ */
.rr-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 760px) {
  .rr-layout {
    grid-template-columns: 1fr;
  }
}
.rr-contact__title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-lg);
  color: var(--text-heading);
}

.gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, 260px);
  justify-content: center;
  gap: var(--space-4);
}
.gallery__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-lg);
}
.gallery__btn img {
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.gallery__btn:hover img {
  opacity: 0.92;
  transform: scale(1.01);
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: block;
}

/* Lightbox overlay for enlarged gallery images. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(13, 22, 40, 0.88);
  backdrop-filter: blur(2px);
}
.lightbox__fig {
  margin: 0;
  max-width: min(100%, 1100px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.lightbox__fig img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__fig figcaption {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  transition: background var(--dur-fast) var(--ease-out);
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.28);
}
.lightbox__close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox__nav--prev {
  left: clamp(8px, 2vw, 28px);
}
.lightbox__nav--next {
  right: clamp(8px, 2vw, 28px);
}
@media (max-width: 560px) {
  .lightbox__nav {
    width: 40px;
    height: 40px;
  }
}
.gallery__item figcaption {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Videos sit centered below the photo grid. */
.gallery-videos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}
.gallery-video {
  margin: 0;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery-video figcaption {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}

/* Multi-photo upload previews (admin) */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.upload-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.upload-thumb__x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: rgba(8, 16, 32, 0.7);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

/* ============================================================
   Home hero with the praying-hands header photo
   ============================================================ */
.hero--home {
  text-align: center;
  padding-block: clamp(76px, 14vw, 140px) clamp(60px, 9vw, 100px);
}
.hero--home__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Default look: a navy field with a soft cool light from the upper right,
     recreating the mood of the praying-hands photo without an image. When an
     admin uploads a hero image, an inline style overrides background-image. */
  background-color: var(--hero-base, #0c1726);
  background-image:
    radial-gradient(circle 380px at 84% 13%, color-mix(in srgb, var(--hero-glow, #bed6f5) 24%, transparent) 0%, color-mix(in srgb, var(--hero-glow, #bed6f5) 10%, transparent) 42%, transparent 100%),
    radial-gradient(circle 680px at 88% 4%, color-mix(in srgb, var(--hero-glow-2, #82a8d6) 18%, transparent) 0%, color-mix(in srgb, var(--hero-glow-2, #82a8d6) 6%, transparent) 50%, transparent 100%),
    radial-gradient(150% 130% at 14% 120%, color-mix(in srgb, var(--hero-shadow, #02060d) 72%, transparent), transparent 55%),
    linear-gradient(160deg, var(--hero-g1, #12243a) 0%, var(--hero-g2, #0b1525) 50%, var(--hero-g3, #060f1b) 100%);
  background-size: cover;
  background-position: center 28%;
}
.hero--home__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero--home .hero__title {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
}
.hero--home .hero__intro {
  color: color-mix(in srgb, var(--paper) 86%, transparent);
}

/* ============================================================
   Design-Themes (Verwaltung -> Logo & Design). Jedes Theme tauscht
   nur die Farbtoken; alle Ableitungen (Buttons, Hero, Footer, Pills)
   ergeben sich daraus automatisch.
   ============================================================ */

/* Tannengrün: sattes, dunkles Waldgrün */
:root[data-theme="tanne"] {
  --hero-base: #0b1a12;
  --hero-glow: #c9ecd4;
  --hero-glow-2: #8ec9a4;
  --hero-shadow: #020d06;
  --hero-g1: #15382a;
  --hero-g2: #0c1f15;
  --hero-g3: #06120b;
  --violet-50: #eef5f0;
  --violet-100: #dcebe1;
  --violet-200: #b9d6c4;
  --violet-300: #8fbaa0;
  --violet-400: #5e9878;
  --violet-500: #437f60;
  --violet-600: #3a7154;
  --violet-700: #33654b;
  --violet-800: #214534;
  --violet-900: #16281f;
  --paper: #edf5ef;
  --gold-200: #e2efd2;
  --gold-300: #c8e0ab;
  --gold-400: #a3c97b;
  --gold-500: #7fa851;
}

/* Salbei: gedecktes, weiches Graugrün */
:root[data-theme="salbei"] {
  --hero-base: #141a10;
  --hero-glow: #e0e8d2;
  --hero-glow-2: #a8ba92;
  --hero-shadow: #070a04;
  --hero-g1: #2a3520;
  --hero-g2: #151d0f;
  --hero-g3: #0b1007;
  --violet-50: #f1f4ef;
  --violet-100: #e2e9df;
  --violet-200: #c6d3c2;
  --violet-300: #a3b89e;
  --violet-400: #7d977a;
  --violet-500: #64805f;
  --violet-600: #587253;
  --violet-700: #4d654a;
  --violet-800: #33452f;
  --violet-900: #202b1e;
  --paper: #f0f3ec;
  --gold-200: #e9ecd9;
  --gold-300: #d4dab4;
  --gold-400: #b3bd85;
  --gold-500: #8f9b5c;
}

/* Smaragd: frisches, kräftiges Smaragdgrün */
:root[data-theme="smaragd"] {
  --hero-base: #071c12;
  --hero-glow: #bdf0d5;
  --hero-glow-2: #6fc79c;
  --hero-shadow: #020e08;
  --hero-g1: #0f3d29;
  --hero-g2: #082517;
  --hero-g3: #04130c;
  --violet-50: #ebf6f1;
  --violet-100: #d5ece2;
  --violet-200: #aad9c5;
  --violet-300: #79bfa2;
  --violet-400: #47a17d;
  --violet-500: #2c8a64;
  --violet-600: #247a58;
  --violet-700: #1e6d4e;
  --violet-800: #144a35;
  --violet-900: #0c2e21;
  --paper: #eaf6ef;
  --gold-200: #d9f2e0;
  --gold-300: #b0e3c1;
  --gold-400: #7cc996;
  --gold-500: #4da96c;
}

/* Olivgrün: warmes, erdiges Olivgrün */
:root[data-theme="oliv"] {
  --hero-base: #171a0c;
  --hero-glow: #eef0cd;
  --hero-glow-2: #bcc384;
  --hero-shadow: #0a0b04;
  --hero-g1: #333a18;
  --hero-g2: #191d0c;
  --hero-g3: #0d0f06;
  --violet-50: #f4f5ec;
  --violet-100: #e8ebd8;
  --violet-200: #d1d7b0;
  --violet-300: #b2bc82;
  --violet-400: #8f9c55;
  --violet-500: #75823c;
  --violet-600: #687434;
  --violet-700: #5c672e;
  --violet-800: #3e451f;
  --violet-900: #262a13;
  --paper: #f3f4e9;
  --gold-200: #eeeed2;
  --gold-300: #dedfa8;
  --gold-400: #c3c675;
  --gold-500: #a0a34c;
}

/* Hellgrün (Lindgrün): helle, freundliche Variante */
:root[data-theme="lind"] {
  --hero-base: #12241a;
  --hero-glow: #d8f5c8;
  --hero-glow-2: #9bd98f;
  --hero-shadow: #06130c;
  --hero-g1: #23543a;
  --hero-g2: #143122;
  --hero-g3: #0a1c12;
  --violet-50: #f0faf1;
  --violet-100: #e0f4e3;
  --violet-200: #c0e6c8;
  --violet-300: #94d1a4;
  --violet-400: #5fb47d;
  --violet-500: #3f9d61;
  --violet-600: #2f8a51;
  --violet-700: #2b7d4c;
  --violet-800: #225a39;
  --violet-900: #1c3a29;
  --paper: #eefaf0;
  --gold-200: #e6f8d2;
  --gold-300: #cfefab;
  --gold-400: #b3e88c;
  --gold-500: #8cc95e;
}

/* Mint (modern): kräftiges Smaragd-Mint auf fast schwarzem Grün */
:root[data-theme="mint"] {
  --hero-base: #070f0c;
  --hero-glow: #a7f3d0;
  --hero-glow-2: #34d399;
  --hero-shadow: #010604;
  --hero-g1: #10352a;
  --hero-g2: #0a1f18;
  --hero-g3: #040d0a;
  --violet-50: #ecfdf5;
  --violet-100: #d1fae5;
  --violet-200: #a7f3d0;
  --violet-300: #6ee7b7;
  --violet-400: #34d399;
  --violet-500: #10b981;
  --violet-600: #0b8058;
  --violet-700: #0a7852;
  --violet-800: #0d2e23;
  --violet-900: #0b1512;
  --paper: #e9faf2;
  --gold-200: #cdfae6;
  --gold-300: #99f2cd;
  --gold-400: #6ee7b7;
  --gold-500: #2fbf8b;
}

/* Petrol: tiefes Türkisblau, modern und elegant */
:root[data-theme="petrol"] {
  --hero-base: #06181b;
  --hero-glow: #b8ecf0;
  --hero-glow-2: #5fc3cc;
  --hero-shadow: #02090b;
  --hero-g1: #0d3b41;
  --hero-g2: #072328;
  --hero-g3: #041215;
  --violet-50: #ecf5f6;
  --violet-100: #d7ecee;
  --violet-200: #aedbdf;
  --violet-300: #7cc0c7;
  --violet-400: #489da6;
  --violet-500: #2c848e;
  --violet-600: #23747d;
  --violet-700: #1e676f;
  --violet-800: #14454b;
  --violet-900: #0c2a2e;
  --paper: #eaf4f5;
  --gold-200: #d5f0ea;
  --gold-300: #a8e2d6;
  --gold-400: #74ccba;
  --gold-500: #45ab96;
}

/* Himmelblau: helles, freundliches Blau */
:root[data-theme="himmel"] {
  --hero-base: #0c2033;
  --hero-glow: #cfe8fb;
  --hero-glow-2: #7ab8e8;
  --hero-shadow: #04101c;
  --hero-g1: #1c4a70;
  --hero-g2: #102c45;
  --hero-g3: #081827;
  --violet-50: #eef5fb;
  --violet-100: #dcecf8;
  --violet-200: #b9d9f0;
  --violet-300: #8cc0e4;
  --violet-400: #58a1d3;
  --violet-500: #3a88c0;
  --violet-600: #2f79ae;
  --violet-700: #2a6da0;
  --violet-800: #1c4a6e;
  --violet-900: #122e45;
  --paper: #edf5fb;
  --gold-200: #dbeffa;
  --gold-300: #b3ddf4;
  --gold-400: #85c6ea;
  --gold-500: #549fce;
}

/* Bordeaux: warmes, tiefes Weinrot mit goldenem Akzent */
:root[data-theme="bordeaux"] {
  --hero-base: #1c0a10;
  --hero-glow: #f3ccd6;
  --hero-glow-2: #c97f92;
  --hero-shadow: #0d0306;
  --hero-g1: #451625;
  --hero-g2: #260b13;
  --hero-g3: #14060a;
  --violet-50: #f8eef0;
  --violet-100: #f0dbe0;
  --violet-200: #dfb6c0;
  --violet-300: #c8899a;
  --violet-400: #ab5a72;
  --violet-500: #8f3c56;
  --violet-600: #7f2f49;
  --violet-700: #732941;
  --violet-800: #4e1a2c;
  --violet-900: #30101b;
  --paper: #f7eff1;
  --gold-200: #f3e5c8;
  --gold-300: #e6cf9b;
  --gold-400: #d3b168;
  --gold-500: #b8923f;
}

/* Terrakotta: warmes, erdiges Rostrot */
:root[data-theme="terra"] {
  --hero-base: #1f120b;
  --hero-glow: #f7d9c4;
  --hero-glow-2: #dd9c72;
  --hero-shadow: #0e0703;
  --hero-g1: #4d2917;
  --hero-g2: #2a160c;
  --hero-g3: #160b06;
  --violet-50: #f9f0ea;
  --violet-100: #f3e0d3;
  --violet-200: #e5c1a8;
  --violet-300: #d49b76;
  --violet-400: #bd7247;
  --violet-500: #a65a30;
  --violet-600: #954e28;
  --violet-700: #874724;
  --violet-800: #5c2f18;
  --violet-900: #391d0f;
  --paper: #f8f1ea;
  --gold-200: #f6e8c9;
  --gold-300: #ecd49d;
  --gold-400: #dcb96b;
  --gold-500: #c19a43;
}

/* Schiefer & Gold: ruhiges Anthrazit mit edlem Goldakzent */
:root[data-theme="schiefer"] {
  --hero-base: #101418;
  --hero-glow: #d7dee8;
  --hero-glow-2: #8fa1b5;
  --hero-shadow: #05070a;
  --hero-g1: #2a3542;
  --hero-g2: #171e26;
  --hero-g3: #0b0f14;
  --violet-50: #f0f2f5;
  --violet-100: #e1e5ea;
  --violet-200: #c3cad4;
  --violet-300: #9ba7b6;
  --violet-400: #6f7f93;
  --violet-500: #55657a;
  --violet-600: #4a5a6e;
  --violet-700: #425063;
  --violet-800: #2c3745;
  --violet-900: #1b222c;
  --paper: #eff2f4;
  --gold-200: #f2e7c9;
  --gold-300: #e6d29e;
  --gold-400: #d4b871;
  --gold-500: #b99948;
}

/* ============================================================
   Parkmöglichkeiten: große lokale Karte mit klickbaren Pins
   ============================================================ */
.park-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(10, 18, 32, 0.18);
  border: 1px solid var(--border);
}
.park-map img {
  display: block;
  width: 100%;
  height: auto;
}
.park-map__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(10, 18, 32, 0.4);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.park-map__pin:hover,
.park-map__pin:focus-visible {
  transform: translate(-50%, -50%) scale(1.16);
  box-shadow: 0 6px 18px rgba(10, 18, 32, 0.5);
  z-index: 3;
}
.park-map__pin--home {
  background: var(--surface-invert);
  width: 34px;
  height: 34px;
}
.park-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}
.park-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 52px 16px 16px;
}
.park-card__num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.park-card__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  margin: 2px 0 2px;
}
.park-card__addr {
  margin: 0;
  color: var(--text-body);
  font-size: var(--text-sm);
}
.park-card__note {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.park-card .route-links {
  margin-top: 10px;
}

/* Zoom-Overlay der Parkkarte (Pin-Klick) */
.park-zoom {
  max-width: min(920px, 94vw);
}
.park-zoom__frame {
  background: var(--surface-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.park-zoom__frame img {
  display: block;
  width: 100%;
  height: auto;
}
.park-zoom__loading {
  color: var(--text-muted);
  padding: 48px 24px;
  font-size: var(--text-sm);
}
.park-zoom__caption {
  background: var(--surface-card);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 14px 18px 16px;
  text-align: center;
}
.park-zoom__name {
  display: block;
  font-family: var(--font-display);
  color: var(--text-heading);
  font-size: var(--text-base);
}
.park-zoom__meta {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: 2px;
}
.park-zoom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  justify-content: center;
}

/* Aufklappbare Park-Kacheln */
.park-card {
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.park-card:hover,
.park-card:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 10px 24px rgba(10, 18, 32, 0.08);
}
.park-card__zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.park-card:hover .park-card__zoom,
.park-card:focus-visible .park-card__zoom {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

/* Vollbild-Ansicht der Parkkarte */
.park-map--full {
  width: min(96vw, calc((100vh - 96px) * 1.5));
  max-height: calc(100vh - 96px);
}

/* Größere Detail-Ansicht, wenn sie aus dem Vollbild geöffnet wird */
.park-zoom--large {
  max-width: min(96vw, calc((100vh - 200px) * 1.55), 1400px);
}

.park-card__walk {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Tooltip mit dem Standortnamen beim Zeigen auf einen Karten-Pin */
.park-map__pin::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) scale(0.96);
  background: var(--surface-invert);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  line-height: 1.2;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(10, 18, 32, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.park-map__pin::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--surface-invert);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.park-map__pin:hover::after,
.park-map__pin:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.park-map__pin:hover::before,
.park-map__pin:focus-visible::before {
  opacity: 1;
}

/* ============================================================
   Barrierefreiheit: Skip-Link, Kontrast, reduzierte Bewegung
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-weight: var(--weight-semibold);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top 0.15s ease-out;
}
.skip-link:focus {
  top: var(--space-4);
}

/* The gold label sits on a light card; plain gold is too low in contrast,
   so the label uses a darkened blend of the theme's gold tone. */
.verse__label {
  color: color-mix(in srgb, var(--gold-500) 58%, black);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
