/* Forum Demokratie Lahr — design 4 (bento, white, coloured tiles) */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-wght.woff2') format('woff2-variations'),
       url('../fonts/archivo-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Neutrals */
  --ink: #161616;
  --ink-2: #3d3d3d;
  --muted: #5a5852;
  --muted-2: #8a877f;
  --faint: #a49c8e;
  --surface: #f4f3ef;
  --line: rgba(0, 0, 0, .08);
  --line-soft: rgba(0, 0, 0, .05);
  --line-strong: rgba(0, 0, 0, .12);

  /* Logo colours */
  --red: #E23127;
  --blue: #009EE0;
  --green: #3AA637;
  --orange: #EE7D11;
  --purple: #7B4E9B;
  --yellow: #FFD400;

  /* Tile gradients */
  --tile-hero: linear-gradient(135deg, #FFF3BF, #FFDFD9);
  --tile-dark: linear-gradient(150deg, #161616, #2b2b30);
  --tile-blue: linear-gradient(160deg, #DDF2FC, #BFE6F9);
  --tile-green: linear-gradient(160deg, #E3F5E2, #CBEBC9);
  --tile-yellow: linear-gradient(160deg, #FFF6CC, #FFEC9E);
  --tile-purple: linear-gradient(160deg, #F0E7F7, #E0CFEE);
  --tile-orange: linear-gradient(160deg, #FFEBD4, #FFDCB6);

  --radius: 20px;
  --gap: 16px;
  --gutter: 40px;
  --max: 1360px;

  /* Font of the whole site (temporary: design.css swaps it depending on the chosen variant) */
  --font: 'Archivo', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; }

/* ---------- Buttons & Pills ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 13.5px; line-height: 1.2; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn--lg { padding: 13px 24px; font-size: 14.5px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { color: #fff; background: #c92a21; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; background: #000; }
.btn--outline { border-color: rgba(0, 0, 0, .15); color: var(--ink); background: transparent; }
.btn--glass { background: rgba(255, 255, 255, .8); border-color: rgba(0, 0, 0, .1); color: var(--ink); }
.btn--glass:hover, .btn--outline:hover { color: var(--ink); background: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.3;
}
.pill--glass { background: rgba(255, 255, 255, .75); color: var(--ink-2); }
.pill--white { background: rgba(255, 255, 255, .92); color: var(--ink); }
.pill--shade { background: rgba(0, 0, 0, .55); color: #fff; }

.diamond { flex: none; width: 9px; height: 9px; transform: rotate(45deg); background: currentColor; }
.diamond--sm { width: 7px; height: 7px; }

.navpills {
  display: flex; gap: 6px; padding: 5px;
  background: var(--surface); border: 1px solid rgba(0, 0, 0, .06); border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
}
.navpills a { padding: 8px 16px; border-radius: 999px; color: var(--ink-2); }
.navpills a:hover { color: var(--ink); background: #fff; }
.navpills a[aria-current] { background: var(--ink); color: #fff; }

/* ---------- Header (home page) ---------- */

.topbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px var(--gutter) 0;
}
.topbar__logo { display: none; }
.topbar__burger { display: none; }

.mobile-menu { display: none; }

/* Compact sticky header bar — appears as soon as the big logo scrolls out of view.
   Desktop: full width; on narrower screens a centred pill (see Tablet). */
.stickybar {
  position: fixed; z-index: 50; top: 12px; left: 50%;
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 24px; border-radius: 14px;
  /* Clearly set apart, even over dark tiles or a playing video */
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 14px 36px -8px rgba(0, 0, 0, .28);
  transform: translate(-50%, -140%); opacity: 0; visibility: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .25s ease, visibility 0s linear .35s;
}
.stickybar.is-visible {
  transform: translate(-50%, 0); opacity: 1; visibility: visible;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .25s ease, visibility 0s;
}
.stickybar__logo { flex: none; }
.stickybar img { height: 44px; width: auto; }
.stickybar nav { display: flex; gap: 4px; font-size: 13.5px; font-weight: 600; }
.stickybar nav a { padding: 9px 12px; border-radius: 999px; color: var(--ink-2); }
.stickybar nav a:hover { color: var(--ink); background: var(--surface); }
.stickybar nav a[aria-current] { color: #fff; background: var(--ink); }
.stickybar .btn { padding: 11px 20px; font-size: 13px; }
.stickybar__actions { display: flex; gap: 8px; }

/* ---------- Page head / hero ---------- */

.pagehead {
  display: grid; grid-template-columns: auto 1fr; column-gap: 56px; align-items: end;
  grid-template-areas: "logo lede" "title title";
  padding: 28px var(--gutter) 0;
}
.pagehead__logo { grid-area: logo; }
.pagehead__logo img { height: 150px; width: auto; }
.pagehead__lede {
  grid-area: lede; justify-self: end; margin: 0 0 14px; max-width: 40ch;
  font-size: 16px; line-height: 1.6; color: var(--muted);
}
.pagehead h1 {
  grid-area: title; margin: 40px 0 0; max-width: 16ch;
  font-size: clamp(44px, 6.8vw, 92px); line-height: .98; font-weight: 900; letter-spacing: -.03em;
  text-wrap: pretty;
}

/* ---------- Bento ---------- */

.bento {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  padding: 32px var(--gutter) 8px;
}
.tile {
  position: relative; border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--line-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .06); }
}
.tile__label { display: block; font-size: 12.5px; font-weight: 700; }
.tile__num { font-size: 52px; font-weight: 900; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile__num .plus { color: var(--red); }
/* Small badge at the top (optional, any home page tile); the diamond picks up the colour of the tile */
.tile__badge { width: fit-content; max-width: 100%; margin-bottom: 12px; }
.tile__badge .diamond { width: 7px; height: 7px; color: var(--red); }

.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack > .tile { flex: 1; }

.t-cta {
  grid-column: span 5; min-height: 300px; padding: 32px; background: var(--tile-hero);
  display: flex; flex-direction: column; justify-content: space-between;
}
.t-cta h2 { margin: 18px 0 10px; font-size: 27px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.t-cta p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #6b5c48; }
.t-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.t-cta .pill .diamond { color: var(--green); width: 7px; height: 7px; }
.t-cta .tile__badge { margin-bottom: 0; }

.t-photo { grid-column: span 4; min-height: 300px; padding: 0; overflow: hidden; border: 0; background: #e9e4da; }
.t-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-photo .pill { position: absolute; left: 14px; bottom: 14px; }
.t-photo .pill.tile__badge { top: 14px; bottom: auto; margin: 0; }

.t-stat { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }

.t-values { grid-column: span 3; background: var(--tile-green); display: flex; flex-direction: column; }
.t-values .tile__label { color: #3c6b3a; }
.t-values .tile__badge .diamond { color: var(--green); }
/* Values as light rows like in „Demnächst“ — they share the full height of the tile so nothing stays empty at the bottom */
.t-values ul { flex: 1; list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 800; }
.t-values li { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .7); }

.t-events { grid-column: span 5; background: var(--tile-yellow); }
.t-events__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.t-events .tile__label { color: #8a7327; }
.t-events .tile__badge .diamond { color: #e0b700; }
.t-events__all { font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); }
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.event { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .75); }
.event time, .event__pill { flex: none; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }
.event__title { font-size: 14.5px; font-weight: 700; }
.event__meta { font-size: 12px; color: var(--muted-2); }
/* Who is hosting (field „Veranstaltet von“) — in the colour of the event tiles so it stands out */
.event__org { margin-top: 2px; font-size: 12px; font-weight: 700; color: #8a7327; }
/* The whole row links to the event page; keyboard focus outlines the row */
.event { position: relative; }
.event__link::after { content: ''; position: absolute; inset: 0; }
.event__link:focus-visible { outline: none; }
.event:has(.event__link:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

.t-quote {
  grid-column: span 4; padding: 28px; background: var(--tile-purple);
  display: flex; flex-direction: column; justify-content: space-between;
}
.t-quote blockquote { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
.t-quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; font-weight: 700; color: #5f4a75; }
.t-quote .diamond { color: var(--purple); width: 8px; height: 8px; }
.t-quote .tile__badge { margin-bottom: 14px; }
.t-quote .tile__badge .diamond { width: 7px; height: 7px; }

.t-video { grid-column: span 7; min-height: 340px; padding: 0; overflow: hidden; border: 0; background: #2b2b30; color: #fff; }
.t-video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); }
.t-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.t-video__body { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.t-video__top { display: flex; justify-content: space-between; }
.t-video__top .tile__badge { margin: 0; }
/* Without a badge the duration stays on the right */
.t-video__top .pill--shade { margin-left: auto; }
.t-video__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.t-video h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.t-video__meta { font-size: 13px; opacity: .85; margin-top: 4px; }
.playbtn {
  flex: none; width: 62px; height: 62px; border-radius: 50%; border: 0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.playbtn:hover { transform: scale(1.06); }
.playbtn::before {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid var(--ink);
}

.t-insta, .t-fb { padding: 22px; display: flex; align-items: center; gap: 16px; }
.t-insta { border-color: var(--line) !important; }
.t-insta img { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; flex: none; background: #e9e4da; }
.t-insta__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted-2); }
.t-insta__when { white-space: nowrap; }
.t-insta__avatar { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(var(--yellow) 0 25%, var(--red) 0 50%, var(--green) 0 75%, var(--blue) 0); }
.t-insta p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.t-insta .tile__badge, .t-fb .tile__badge { margin-bottom: 8px; }
.t-fb .tile__badge .diamond { color: #1877F2; }
/* Instagram at full height (desktop): as a post with a large image above the text */
@media (min-width: 1101px) {
  .t-insta:not(.box--half) { flex-direction: column; align-items: stretch; }
  .t-insta:not(.box--half) img { flex: 1 1 0; width: 100%; height: auto; min-height: 160px; }
}
.t-fb { border: 1px dashed rgba(0, 0, 0, .18) !important; }
.t-fb__icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px; background: #1877F2; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 900 22px Georgia, serif;
}
.t-fb__title { font-size: 13.5px; font-weight: 700; }
.t-fb__text { font-size: 12.5px; color: var(--muted-2); line-height: 1.45; margin-top: 2px; }
.t-fb .btn { margin-left: auto; padding: 9px 16px; font-size: 12.5px; }
.t-fb.is-loaded { display: block; padding: 0; overflow: hidden; }
.t-fb iframe { display: block; width: 100%; min-height: 260px; border: 0; }

.t-donate {
  grid-column: span 8; padding: 32px; overflow: hidden; border: 0;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; gap: 32px;
}
.t-donate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(360px 200px at 100% 0%, rgba(226, 49, 39, .28), transparent),
    radial-gradient(300px 180px at 0% 100%, rgba(0, 158, 224, .18), transparent);
}
.t-donate > * { position: relative; }
.t-donate__text { flex: 1.3; }
.t-donate h2 { margin: 0 0 10px; font-size: 28px; font-weight: 900; letter-spacing: -.015em; line-height: 1.1; }
.t-donate p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .75); }
.t-donate .tile__badge { margin-bottom: 14px; }
/* On dark tiles: dark glass with white text instead of a grey pill */
.tone--dark .tile__badge, .t-donate .tile__badge { background: rgba(255, 255, 255, .12); color: #fff; }
.t-donate__form { flex: 1; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.t-donate__form .btn { padding: 14px 0; font-size: 15px; font-weight: 800; }

.segmented { display: flex; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 800; }
.segmented label { flex: 1; position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 10px 0; border-radius: 999px; transition: background-color .15s ease, color .15s ease; }
.segmented input:checked + span { background: #fff; color: var(--ink); }
.segmented input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.t-groups {
  grid-column: span 4; background: var(--tile-orange);
  display: flex; flex-direction: column; justify-content: space-between;
}
.t-groups .tile__label { color: #9a5f16; }
.t-groups .tile__badge .diamond { color: var(--orange); }
.t-groups .tile__num { margin-top: 10px; }
.tags { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 11.5px; font-weight: 700; }

/* ---------- Home page: tiles as modules ----------
   Each tile is a module with a width (twelfths) and a height (normal = 2 rows, half = 1 row).
   "dense" fills gaps: two half tiles of the same width stack on top of each other. */

.bento--boxes { grid-auto-flow: row dense; }
.bento--boxes > .box { grid-row: span 2; }
.bento--boxes > .box--half { grid-row: span 1; }
.bento--boxes > .box--w3 { grid-column: span 3; }
.bento--boxes > .box--w4 { grid-column: span 4; }
.bento--boxes > .box--w5 { grid-column: span 5; }
.bento--boxes > .box--w6 { grid-column: span 6; }
.bento--boxes > .box--w7 { grid-column: span 7; }
.bento--boxes > .box--w8 { grid-column: span 8; }
.bento--boxes > .box--w12 { grid-column: 1 / -1; }

/* Admin preview of a tile: the tile being edited is outlined */
.bento--preview > .box:target { outline: 3px solid var(--blue); outline-offset: 4px; }
/* Notice in the admin preview when unsaved changes are shown */
.preview-note {
  position: fixed; left: 16px; bottom: 16px; z-index: 100; max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: 999px; background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

/* Colours for tiles with a colour choice (stat, text, Instagram, Facebook) — there are deliberately no white tiles */
.tone--hero { background: var(--tile-hero); }
.tone--hero .tile__badge .diamond { color: var(--green); }
.tone--yellow { background: var(--tile-yellow); }
.tone--yellow .tile__label { color: #8a7327; }
.tone--yellow .tile__badge .diamond { color: #e0b700; }
.tone--green { background: var(--tile-green); }
.tone--green .tile__label { color: #3c6b3a; }
.tone--green .tile__badge .diamond { color: var(--green); }
.tone--blue { background: var(--tile-blue); }
.tone--blue .tile__label { color: #39708e; }
.tone--blue .tile__badge .diamond { color: var(--blue); }
.tone--purple { background: var(--tile-purple); }
.tone--purple .tile__label { color: #5f4a75; }
.tone--purple .tile__badge .diamond { color: var(--purple); }
.tone--orange { background: var(--tile-orange); }
.tone--orange .tile__label { color: #9a5f16; }
.tone--orange .tile__badge .diamond { color: var(--orange); }
.tone--dark { background: var(--tile-dark); color: #fff; border-color: transparent; }
.tone--dark .tile__label { color: rgba(255, 255, 255, .6); }
.tone--dark .tile__badge .diamond { color: var(--yellow); }

/* Photo with link: the whole tile is clickable */
.t-photo__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.t-photo__link:focus-visible { outline: none; }
.t-photo:has(.t-photo__link:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Media library category: the image fills the tile, the whole tile is a link */
.t-mcat { display: block; min-height: 300px; padding: 0; overflow: hidden; border: 0; background: #2b2b30; color: #fff; }
.t-mcat:hover { color: #fff; }
.t-mcat:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.t-mcat > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.t-mcat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .62)); }
.t-mcat__body { position: absolute; inset: 0; z-index: 1; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.t-mcat .tile__badge { margin: 0; }
.t-mcat__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.t-mcat__title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.t-mcat__meta { margin-top: 4px; font-size: 13px; opacity: .85; }
.t-mcat__go {
  flex: none; width: 54px; height: 54px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; transition: transform .2s ease;
}
.t-mcat__go::before { content: ''; width: 11px; height: 11px; margin-left: -4px; border-top: 2.5px solid var(--ink); border-right: 2.5px solid var(--ink); transform: rotate(45deg); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .t-mcat:hover > img { transform: scale(1.03); }
  .t-mcat:hover .t-mcat__go { transform: scale(1.06); }
}

/* Free text tile */
.t-textbox { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.t-textbox__title { margin: 0 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.t-textbox__text { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.t-textbox__text p, .t-textbox__text ul { margin: 0 0 10px; }
.t-textbox__text > :last-child { margin-bottom: 0; }
.t-textbox__text ul { padding-left: 18px; }
.t-textbox__text a { text-decoration: underline; }
.tone--dark .t-textbox__text { color: rgba(255, 255, 255, .8); }
.tone--dark .t-textbox__text a { color: #fff; }
.t-textbox.tone--dark .btn--dark { background: #fff; color: var(--ink); }

/* Narrow tiles: content meant for a wide tile stacks vertically */
.bento--boxes > .t-donate:is(.box--w3, .box--w4, .box--w5) { flex-direction: column; align-items: stretch; gap: 18px; }
.bento--boxes > .t-video:is(.box--w3, .box--w4) h3, .bento--boxes > .t-mcat.box--w3 .t-mcat__title { font-size: 19px; }

/* ---------- Footer ---------- */

.footer {
  margin: 40px var(--gutter) 0; padding: 24px 0 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.footer__id { display: flex; align-items: center; gap: 18px; }
.footer__id img { height: 34px; width: auto; }
.footer__contact { font-size: 12.5px; color: var(--muted-2); font-style: normal; }
.footer__contact a { color: inherit; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; font-weight: 700; }
.footer__links a { padding: 7px 14px; border-radius: 999px; background: var(--surface); }

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  :root { --gutter: 28px; }
  /* dense: half tiles fill gaps instead of leaving an empty half */
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-flow: row dense; }
  .t-cta { grid-column: span 6; min-height: 0; }
  .t-photo { grid-column: span 3; min-height: 280px; }
  .t-events { grid-column: span 6; }
  .t-values, .t-quote { grid-column: span 3; }
  .t-video, .t-donate, .t-groups { grid-column: span 6; }
  .bento--boxes > .box { grid-column: span 6; }
  .bento--boxes > .box--t3 { grid-column: span 3; }
  .bento--boxes > .t-donate:is(.box--w3, .box--w4, .box--w5) { flex-direction: row; align-items: center; }
  /* Footer: contact line below the logo so the links stay on one line */
  .footer__id { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer__links { flex-wrap: nowrap; }
  /* The big logo grows with the width so the short description has room next to it */
  .pagehead { column-gap: 32px; }
  .pagehead__logo img { height: clamp(96px, 13vw, 150px); }
  /* The compact header bar keeps its menu — otherwise there is no navigation left after scrolling */
  .stickybar {
    width: max-content; max-width: calc(100% - 2 * var(--gutter));
    justify-content: flex-start; gap: 20px; padding: 8px 8px 8px 20px; border-radius: 999px;
  }
  .stickybar img { height: 36px; }
  .stickybar nav { gap: 0; font-size: 13px; }
  .stickybar nav a { padding: 9px 10px; }
}
/* Narrow tablets: menu and both buttons only fit in the pill without the logo („Start“ leads to the home page) */
@media (max-width: 820px) {
  .stickybar__logo { display: none; }
}

/* ---------- Mobile (4d) ---------- */

@media (max-width: 720px) {
  :root { --gutter: 16px; --radius: 18px; --gap: 12px; }
  html { scroll-padding-top: 80px; }

  .topbar {
    position: sticky; top: 0; z-index: 40;
    justify-content: space-between; padding: 12px var(--gutter);
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
  }
  .topbar__logo { display: block; margin-right: auto; }
  .topbar__logo img { height: 44px; width: auto; }
  .topbar .navpills, .topbar .btn--outline { display: none; }
  .topbar .btn--red { padding: 11px 16px; font-size: 13px; }
  .topbar__burger {
    display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
    width: 42px; height: 42px; padding: 0; border: 0; border-radius: 999px; background: var(--surface);
  }
  .topbar__burger span { width: 16px; height: 2px; background: var(--ink); transition: transform .2s ease; }
  .topbar__burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .topbar__burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

  .mobile-menu {
    position: sticky; top: 69px; z-index: 39;
    padding: 8px var(--gutter) 16px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
  }
  .mobile-menu:not([hidden]) { display: block; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu li a { display: flex; align-items: center; gap: 10px; padding: 12px 4px; font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--line); }
  .mobile-menu li a[aria-current] { color: var(--red); }
  .mobile-menu li a[aria-current]::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: currentColor; }
  .mobile-menu .btn { margin-top: 14px; width: 100%; padding: 14px 0; font-size: 14px; }

  .stickybar { display: none; }

  .pagehead { display: flex; flex-direction: column; align-items: stretch; padding: 30px var(--gutter) 4px; }
  .pagehead__logo { display: none; }
  .pagehead h1 { margin: 0; font-size: clamp(36px, 11.6vw, 44px); line-height: .99; overflow-wrap: break-word; hyphens: auto; }
  .pagehead__lede { order: 2; justify-self: auto; margin: 12px 0 0; font-size: 14px; line-height: 1.55; max-width: none; }

  .bento { display: flex; flex-direction: column; padding: 20px var(--gutter); }
  .tile { padding: 20px; }
  .tile__label { font-size: 12px; }

  .bento--boxes { display: grid; grid-template-columns: 1fr 1fr; }
  .bento--boxes > .box { grid-column: 1 / -1; grid-row: auto; order: 0; }
  .bento--boxes > .box--m1 { grid-column: span 1; }
  .bento--boxes > .t-donate.box { flex-direction: column; align-items: stretch; }
  .t-mcat { min-height: 220px; }
  .t-mcat__body { padding: 18px; }
  .t-mcat__title, .bento--boxes > .t-mcat.box--w3 .t-mcat__title { font-size: 20px; }
  .t-mcat__go { width: 46px; height: 46px; }
  .t-textbox__title { font-size: 19px; }
  .t-cta { order: 1; padding: 24px; }
  .t-cta h2, .t-cta p { display: none; }
  .t-cta .pill, .tile__badge { font-size: 12px; padding: 5px 12px; }
  .tile__badge { margin-bottom: 10px; }
  .t-cta__actions { flex-direction: column; gap: 9px; margin-top: 16px; }
  .t-cta__actions .btn { padding: 14px 0; font-size: 14px; }

  .t-photo { order: 2; min-height: 200px; height: 200px; }
  .t-photo .pill { left: 12px; bottom: 12px; font-size: 12px; padding: 5px 11px; }
  .t-photo .pill.tile__badge { top: 12px; }

  .t-stat { padding: 18px; }
  .t-stat .tile__label { font-size: 12px; }
  .t-stat .tile__num { font-size: 36px; line-height: 1.05; }
  .t-stat__long { display: none; }

  .t-events { order: 4; }
  .t-events__all { font-size: 12px; padding: 8px 12px; margin: -4px 0; }
  .event { gap: 11px; padding: 11px 12px; border-radius: 12px; }
  .event time, .event__pill { font-size: 11.5px; padding: 4px 9px; }
  .event__title { font-size: 13.5px; line-height: 1.3; }
  .event__meta { margin-top: 2px; font-size: 12px; }

  .t-quote { order: 5; padding: 20px; }
  .t-quote blockquote { font-size: 16px; }
  .t-quote figcaption { font-size: 12px; margin-top: 12px; }

  .t-video { order: 6; min-height: 240px; }
  .t-video__body { padding: 18px; }
  .t-video h3 { font-size: 18px; }
  .t-video__meta { font-size: 12px; }
  .playbtn { width: 52px; height: 52px; }

  .t-insta, .t-fb { padding: 16px; gap: 12px; }
  .t-insta img { width: 72px; height: 72px; }
  .t-insta > div { min-width: 0; }
  .t-insta__meta { flex-wrap: wrap; row-gap: 2px; }
  .t-insta__meta a { padding: 4px 0; }
  .t-insta p { font-size: 13.5px; overflow-wrap: break-word; }
  .t-fb { flex-wrap: wrap; }
  .t-fb > div { flex: 1 1 200px; min-width: 0; }
  .t-fb .btn { margin-left: 52px; padding: 12px 20px; }

  .t-values { order: 8; }
  .t-groups { order: 9; }
  .t-groups .tile__num { font-size: 40px; }
  .tags li { font-size: 12px; padding: 6px 11px; }

  .t-donate { order: 10; flex-direction: column; align-items: stretch; gap: 14px; padding: 22px; }
  .t-donate::before { background: radial-gradient(240px 140px at 100% 0%, rgba(226, 49, 39, .28), transparent); }
  .t-donate h2 { font-size: 19px; line-height: 1.15; margin-bottom: 8px; }
  .t-donate p { font-size: 12.5px; }
  .t-donate__form { gap: 10px; }
  .t-donate__form .btn { padding: 13px 0; font-size: 14px; }
  .segmented { padding: 4px; font-size: 14px; }
  .segmented span { padding: 12px 0; }

  .footer { margin-top: 8px; flex-direction: column; text-align: center; gap: 12px; padding: 18px 0 24px; }
  .footer__id { flex-direction: column; gap: 6px; }
  .footer__id img { height: 30px; }
  .footer__contact { font-size: 12.5px; line-height: 1.5; }
  .footer__contact a { display: inline-block; padding: 6px 0; }
  .footer__links { justify-content: center; gap: 6px; font-size: 12.5px; }
  .footer__links a { padding: 10px 12px; }
  /* Legal links as a tidy 2×2 grid instead of a wrapping line */
  .footer:not(.footer--simple) .footer__links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
}

/* Touch devices and phones: input fields at 16px, otherwise iOS zooms into the page on tap */
@media (pointer: coarse), (max-width: 720px) {
  .field input[type="text"], .field input[type="email"], .field input[type="tel"],
  .field input[type="date"], .field input[type="number"] { font-size: 16px; }
}

/* =====================================================
   Membership
   ===================================================== */

.flowbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px var(--gutter); border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.flowbar__logo img { height: 60px; width: auto; }
.flowbar .btn { padding: 9px 16px; font-size: 13px; border-color: var(--line-strong); }

.stepper { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.stepper li { display: flex; align-items: center; gap: 10px; color: var(--muted-2); }
.stepper li + li::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: rgba(0, 0, 0, .15); }
.stepper li.is-done + li::before, .stepper li.is-current::before { background: var(--ink); }
.stepper__dot {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  border: 1.5px solid rgba(0, 0, 0, .2);
}
.stepper__item { display: flex; align-items: center; gap: 8px; }
.stepper li.is-current, .stepper li.is-done { color: var(--ink); }
.stepper li.is-current .stepper__dot, .stepper li.is-done .stepper__dot { background: var(--ink); border-color: var(--ink); color: #fff; }

.flowhead { padding: 48px var(--gutter) 10px; }
.flowhead h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); font-weight: 900; letter-spacing: -.025em; line-height: 1; }
.flowhead p { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 56ch; }

.flow {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--gap); align-items: start;
  padding: 28px var(--gutter) 56px;
}

.formcard {
  border-radius: var(--radius); background: var(--tile-blue); border: 1px solid var(--line-soft);
  padding: 34px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.formcard__step { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 18px; }
/* On the light blue form: grey surfaces as light glass, small hints darker for enough contrast */
.formcard .paytabs, .formcard .notebox, .formcard .confirm li, .formcard .tier__box { background: rgba(255, 255, 255, .6); }
.formcard .tier input:checked + .tier__box { background: var(--tile-yellow); }
.formcard .field__hint, .formcard .tier__note, .formcard .tier__price small, .formcard .switchrow__text { color: var(--muted); }
.formcard fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.formcard legend { padding: 0; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.field-grid .span-2 { grid-column: span 2; }
.field-grid--addr { grid-template-columns: 1fr 2fr; }

.field label, .field-label {
  display: block; margin-bottom: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.field-label { margin-bottom: 10px; }
.opt { color: #b0aca2; font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="date"], .field input[type="number"] {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line-strong); background: #fff;
  font: 500 15px 'Archivo', system-ui, sans-serif; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0, 158, 224, .15); }
.field input:user-invalid { border-color: var(--red); }
.field__hint { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted-2); }

/* Tier cards */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.tier { position: relative; display: block; cursor: pointer; }
.tier input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tier__box {
  display: block; height: 100%; padding: 20px; border-radius: 16px;
  border: 1.5px solid var(--line-strong); color: var(--ink-2);
  transition: border-color .15s ease, background .15s ease;
}
.tier__name { display: block; font-weight: 800; font-size: 15px; }
.tier__price { display: block; font-size: 26px; font-weight: 900; margin-top: 4px; }
.tier__price small { font-size: 12.5px; font-weight: 600; color: var(--muted-2); }
.tier__note { display: block; font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.tier__check {
  position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 900;
  display: none; align-items: center; justify-content: center;
}
.tier input:checked + .tier__box { border: 2px solid var(--ink); padding: 19.5px; background: var(--tile-yellow); color: var(--ink); }
.tier input:checked + .tier__box small, .tier input:checked + .tier__box .tier__note { color: #8a7327; }
.tier input:checked + .tier__box .tier__check { display: flex; }
.tier input:focus-visible + .tier__box { outline: 2px solid var(--blue); outline-offset: 2px; }
.tier:hover .tier__box { border-color: rgba(0, 0, 0, .3); }

.freeamount { margin: -8px 0 22px; max-width: 260px; }

/* Working group chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: block; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: background-color .15s ease, color .15s ease;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.chip input:checked + span::after { content: " ✓"; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Toggle row */
.switchrow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1.5px solid rgba(0, 0, 0, .1); border-radius: 16px; padding: 16px 18px; margin-bottom: 26px;
  cursor: pointer;
}
.switchrow__title { font-size: 14.5px; font-weight: 700; }
.switchrow__text { font-size: 12.5px; color: var(--muted-2); margin-top: 2px; line-height: 1.45; }
.switchrow__text a { text-decoration: underline; color: inherit; }
.switch { position: relative; flex: none; width: 46px; height: 27px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(0, 0, 0, .15); transition: background-color .2s ease; }
.switch span::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); transition: transform .2s ease;
}
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(19px); }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Payment method */
.paytabs { display: flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid rgba(0, 0, 0, .06); margin-bottom: 22px; font-size: 14px; font-weight: 700; }
.paytabs label { flex: 1; position: relative; cursor: pointer; }
.paytabs input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.paytabs span { display: block; text-align: center; padding: 11px 0; border-radius: 999px; color: var(--ink-2); }
.paytabs input:checked + span { background: var(--ink); color: #fff; }
.paytabs input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.notebox { padding: 14px 16px; border-radius: 14px; background: var(--surface); font-size: 13px; line-height: 1.55; color: var(--ink-2); margin-bottom: 22px; }

.checkrow { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.checkrow input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.checkrow a { text-decoration: underline; }

.formnav { display: flex; gap: 12px; margin-top: 26px; }
.formnav .btn { padding: 15px 26px; font-size: 14.5px; color: var(--muted); }
.formnav .btn--dark { flex: 1; padding: 15px 0; font-size: 15.5px; font-weight: 800; color: #fff; }
.formerror { margin: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--red); }

/* Confirmation */
.confirm__badge {
  width: 56px; height: 56px; border-radius: 50%; background: var(--tile-green);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; color: #2c6b2a;
  margin-bottom: 20px;
}
.confirm h2 { margin: 0 0 10px; font-size: 32px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.confirm > p { margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 52ch; }
.confirm ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: c; }
.confirm li {
  counter-increment: c; display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px; background: var(--surface); font-size: 14px; line-height: 1.5;
}
.confirm li::before {
  content: counter(c); flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.confirm li b { display: block; }

/* Sidebar */
.aside { display: flex; flex-direction: column; gap: var(--gap); }
.summary { border-radius: var(--radius); background: var(--tile-dark); color: #fff; padding: 26px; }
.summary__label { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .55); margin-bottom: 14px; }
.summary dl { margin: 0; }
.summary dl > div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.summary dl > div:last-child { border-bottom: 0; }
.summary dt { color: rgba(255, 255, 255, .7); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.summary__note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 12.5px; line-height: 1.55; color: rgba(255, 255, 255, .75); }

.asidebox { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line-soft); }
.asidebox--purple { background: var(--tile-purple); }
.asidebox--purple .tile__label { color: #5f4a75; margin-bottom: 10px; }
.asidebox--purple p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #4a3b59; }
.asidebox--purple a { color: inherit; text-decoration: underline; }
.asidebox--donate { position: relative; overflow: hidden; background: var(--ink); color: #fff; border: 0; }
.asidebox--donate::before { content: ""; position: absolute; inset: 0; background: radial-gradient(220px 130px at 100% 0%, rgba(226, 49, 39, .3), transparent); }
.asidebox--donate > * { position: relative; }
.asidebox--donate h2 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.asidebox--donate p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.asidebox--donate .btn { padding: 10px 20px; font-size: 12.5px; font-weight: 800; }

.footer--simple { margin-top: 0; }
.footer--simple .footer__contact { color: var(--muted-2); }
.footer--simple .footer__links { gap: 18px; }
.footer--simple .footer__links a { padding: 0; background: none; }

@media (max-width: 1100px) {
  .flow { grid-template-columns: 1fr; }
  .aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 720px) {
  .flowbar { flex-wrap: wrap; padding: 12px var(--gutter); row-gap: 12px; }
  .flowbar__logo img { height: 44px; }
  .flowbar .btn { padding: 11px 16px; }
  .stepper { order: 3; width: 100%; justify-content: space-between; gap: 8px; }
  .stepper li { flex: 1; gap: 8px; }
  .stepper li:first-child { flex: none; }
  .stepper li + li::before { flex: 1; width: auto; }
  .stepper__text { display: none; }
  .stepper li.is-current .stepper__text { display: inline; }
  .flowhead { padding: 30px var(--gutter) 4px; }
  .flowhead p { font-size: 14px; }
  .flow { padding: 20px var(--gutter) 40px; }
  .formcard { padding: 22px 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid--addr { grid-template-columns: 7.5em 1fr; gap: 12px; }
  .field-grid .span-2 { grid-column: auto; }
  /* Tiers as compact rows: name and note on the left, price on the right */
  .tiers { grid-template-columns: 1fr; gap: 10px; }
  .tier__box { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; padding: 14px 16px; }
  .tier input:checked + .tier__box { padding: 13.5px 15.5px; }
  .tier__name, .tier__note { grid-column: 1; }
  .tier__note { margin-top: 2px; }
  .tier__price { grid-column: 2; grid-row: 1 / span 2; margin: 0 28px 0 0; font-size: 22px; }
  .tier__check { top: 50%; right: 14px; transform: translateY(-50%); }
  .chip span { padding: 11px 16px; }
  .formnav .btn { padding: 15px 20px; }
  .aside { display: flex; }
  .confirm h2 { font-size: 26px; }
  .footer--simple { gap: 8px; }
  .footer--simple .footer__links { gap: 6px; }
  .footer--simple .footer__links a { padding: 10px 6px; }
}

/* =====================================================
   Subpages (event, event list, text pages, 404)
   ===================================================== */

/* Body text */
/* Text tiles are light blue — there are no white tiles */
.t-prose { background: var(--tile-blue); padding: 34px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.t-prose > :first-child { margin-top: 0; }
.t-prose > :last-child { margin-bottom: 0; }
.t-prose h2 { margin: 1.6em 0 .5em; font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); }
.t-prose h3 { margin: 1.4em 0 .4em; font-size: 18px; font-weight: 800; color: var(--ink); }
.t-prose strong { color: var(--ink); }
.t-prose a:not(.btn) { text-decoration: underline; }
.t-prose ul, .t-prose ol { padding-left: 1.3em; }
.t-prose li + li { margin-top: .35em; }
.t-prose blockquote { margin: 0 0 1.4em; padding: 14px 18px; border-radius: 14px; background: var(--tile-yellow); color: var(--ink); font-size: 15px; }
.t-prose blockquote p { margin: 0; }
.t-prose table { width: 100%; margin: 1.2em 0; border-collapse: collapse; font-size: 15px; }
.t-prose th, .t-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.t-prose th { color: var(--ink); font-weight: 800; }
.t-prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.t-prose img { border-radius: 14px; }

/* Subpage grid */
.t-main, .t-text, .t-upcoming { grid-column: span 8; }
.t-when, .t-side { grid-column: span 4; }
.t-more { grid-column: span 7; }
/* min-height: auto = never smaller than the content (0 let the button stick out in the sidebar) */
.t-cta--sub { grid-column: span 5; min-height: auto; }
.t-side > .tile { flex: 1 1 auto; }
.bento--sub .t-events--past { grid-column: span 12; }
.t-cta--sub h2 { margin-top: 0; }
/* Sticky tiles (event: „Wann & wo“, text pages: sidebar). The column fills the whole row
   and the tile sticks inside it — so it stays in its row in every browser. If the grid cell itself stuck,
   Safari moved it into the next row, under the tile there. */
.sticky-col { grid-column: span 4; min-width: 0; }
.sticky-col > .t-when, .sticky-col > .t-side--sticky { position: sticky; top: 96px; }
.t-vinfo { align-self: start; }

/* Event: „Wann & wo“ */
.t-when { display: flex; flex-direction: column; gap: 18px; background: var(--tile-yellow); }
.t-when .tile__label { margin: 0; color: #8a7327; }
.t-when__date { display: flex; align-items: flex-end; gap: 14px; }
.t-when__date .tile__num { font-size: 76px; }
.t-when__month { padding-bottom: 7px; font-size: 18px; font-weight: 800; line-height: 1.25; }
.t-when__month span { display: block; font-size: 14px; font-weight: 600; color: #8a7327; }
.t-when__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.t-when__facts li { display: flex; align-items: baseline; gap: 11px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .75); font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.t-when__map { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); text-decoration: underline; }
.t-when__cal, .t-when__past { align-self: flex-start; }
.t-main__photo { flex: none; min-height: 360px; }
.t-about .tile__label { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0; line-height: 1.3; color: #39708e; }
.t-about > .tile__label + p { font-size: 20px; font-weight: 600; line-height: 1.5; color: var(--ink); }

/* Event list: large rows with a date block */
.t-events__count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 8px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800;
}
.event--card { gap: 18px; padding: 14px 18px 14px 14px; border-radius: 16px; }
.event--card .event__date {
  flex: none; width: 62px; height: 62px; padding: 0; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.event__day { font-size: 24px; font-weight: 900; line-height: 1; }
.event__month { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.event__body { min-width: 0; }
.event--card .event__title { font-size: 17px; font-weight: 800; letter-spacing: -.005em; }
.event--card .event__meta { margin-top: 3px; font-size: 13px; }
.event__arrow { flex: none; margin-left: auto; font-size: 18px; font-weight: 800; color: var(--muted-2); transition: transform .15s ease, color .15s ease; }
.event--card:hover .event__arrow { transform: translateX(3px); color: var(--red); }
.t-upcoming__empty { margin: 0; padding: 18px; border-radius: 14px; background: rgba(255, 255, 255, .75); font-size: 15px; font-weight: 700; }
.events--cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-events--past { background: var(--surface); }
.t-events--past .tile__label { color: var(--muted); }
.t-events--past .event { background: #fff; }

/* Sidebar */
.t-suggest, .t-contact { background: var(--tile-purple); }
.t-suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.t-suggest .tile__label, .t-contact .tile__label { margin: 0; color: #5f4a75; }
.t-suggest p, .t-contact p, .t-contact address { margin: 0; font-size: 14px; line-height: 1.6; color: #4a3b59; font-style: normal; }
.t-contact .tile__label { margin-bottom: 10px; }
.t-contact p + address { margin-top: 10px; }
.t-contact a { color: inherit; text-decoration: underline; }
.t-toc { background: var(--surface); }
.t-toc[hidden] { display: none; }
.t-toc .tile__label { margin: 0 0 10px; color: var(--muted); }
.t-toc ol { list-style: none; margin: 0 -8px; padding: 0; counter-reset: toc; }
.t-toc li { counter-increment: toc; }
.t-toc a { display: flex; gap: 10px; padding: 8px; border-radius: 10px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.t-toc a::before {
  content: counter(toc); flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 800;
}
.t-toc a:hover { background: #fff; }

/* 404: jump tiles */
.t-jump { grid-column: span 4; min-height: 220px; padding: 28px; display: flex; flex-direction: column; color: var(--ink); }
.t-jump:hover { color: var(--ink); }
.t-jump__title { font-size: 27px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.t-jump__text { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.t-jump__arrow { margin-top: auto; padding-top: 22px; font-size: 26px; font-weight: 800; transition: transform .15s ease, color .15s ease; }
.t-jump:hover .t-jump__arrow { transform: translateX(4px); color: var(--red); }
.t-jump--hero { background: var(--tile-hero); }
.t-jump--yellow { background: var(--tile-yellow); }
.t-jump--green { background: var(--tile-green); }
.t-jump--blue { background: var(--tile-blue); }
.t-jump--purple { background: var(--tile-purple); }
.t-jump--orange { background: var(--tile-orange); }

/* Media library: video cards (whole card clickable), player on the video page */
.t-vcard { grid-column: span 4; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.t-vcard__media { position: relative; aspect-ratio: 16 / 9; background: #2b2b30; }
.t-vcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
.t-vcard__duration { position: absolute; top: 12px; right: 12px; }
.t-vcard__play {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.t-vcard__play::before { content: ""; margin-left: 4px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid var(--ink); }
.t-vcard:hover .t-vcard__play { transform: scale(1.06); }
.t-vcard__body { padding: 18px 20px 20px; }
.t-vcard__body .tile__label { margin-bottom: 6px; color: var(--muted); }
.t-vcard__title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.t-vcard__link::after { content: ''; position: absolute; inset: 0; }
.t-vcard__link:focus-visible { outline: none; }
.t-vcard:has(.t-vcard__link:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.t-vcard__meta { margin-top: 4px; font-size: 13px; color: var(--muted); }
/* Latest video: one wide tile, image left (2/3), purple info panel right (1/3) */
.t-vcard.t-vfeature { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; border: 0; background: var(--tile-purple); }
.t-vfeature .t-vcard__play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.t-vfeature__body { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 32px; }
.t-vfeature .tile__label { margin-bottom: 10px; color: #5f4a75; }
.t-vfeature__title { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.12; letter-spacing: -.015em; }
.t-vfeature__meta { margin-top: 8px; font-size: 14px; font-weight: 700; color: #5f4a75; }
.t-vfeature__text { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: #4a3b59; }
.t-vfeature__note { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; font-size: 13px; line-height: 1.55; color: #4a3b59; }
.t-vfeature__note .diamond { color: var(--purple); }
.t-player { grid-column: span 8; aspect-ratio: 16 / 9; min-height: 0; }
.t-vinfo__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.t-vinfo__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.t-vinfo__cats .diamond { width: 7px; height: 7px; color: var(--purple); }
.t-vinfo__cats a:hover { background: #fff; }
/* Media library: filter by category, above the videos */
.catnav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.catnav a { padding: 9px 16px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.catnav a:hover { background: #ebe8e1; color: var(--ink); }
.catnav a[aria-current] { background: var(--ink); color: #fff; }
.t-upcoming .btn { margin-top: 14px; }
.t-vmore { grid-column: span 4; }
.t-vmore.t-vmore--wide { grid-column: 1 / -1; }

/* Media library: items of every type. Type as a white badge top left; without an image a surface in the colour
   of the type with an icon (video dark, audio purple, photos green, PDF yellow, article light blue) */
.t-vcard__type { position: absolute; top: 12px; left: 12px; z-index: 1; }
.t-vcard__media--empty { display: flex; align-items: center; justify-content: center; }
.t-vcard__media--empty .media-icon { width: 30%; max-width: 120px; height: auto; }
.t-vcard__media--video.t-vcard__media--empty { color: rgba(255, 255, 255, .7); }
.t-vcard__media--audio.t-vcard__media--empty { background: var(--tile-purple); }
.t-vcard__media--photos.t-vcard__media--empty, .t-gallery__empty { background: var(--tile-green); }
.t-vcard__media--document.t-vcard__media--empty { background: var(--tile-yellow); }
.t-vcard__media--link.t-vcard__media--empty { background: var(--tile-blue); }
.t-vcard__media--audio, .t-media--audio .t-media__visual--empty { color: #5f4a75; }
.t-vcard__media--photos, .t-gallery__empty { color: #3c6b3a; }
.t-vcard__media--document, .t-media--document .t-media__visual--empty { color: #8a7327; }
.t-vcard__media--link, .t-media--link .t-media__visual--empty { color: #39708e; }
.t-vcard.t-vfeature .t-vcard__media--empty .media-icon { max-width: 150px; }

/* Large tile of a media item page (audio, PDF, article): image or surface, below it the player or button */
.t-media { grid-column: span 8; display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 0; background: var(--surface); }
.t-media__visual { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: #2b2b30; }
.t-media__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-media__visual--empty .media-icon { width: 22%; max-width: 140px; height: auto; }
/* The whole tile in the colour of its type, like the cards in the media library */
.t-media--audio { background: var(--tile-purple); }
.t-media--document { background: var(--tile-yellow); }
.t-media--link { background: var(--tile-blue); }
.t-media .t-media__visual--empty { background: rgba(255, 255, 255, .35); }
.t-media__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px 20px; }
.t-media__bar audio { flex: 1 1 280px; width: 100%; min-width: 0; }
.t-media__source { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.t-media__missing { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--ink-2); }

/* Photo gallery: grid, a click enlarges (main.js) */
.t-gallery { grid-column: span 8; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; align-content: start; background: var(--tile-green); }
.t-gallery__item { margin: 0; }
.t-gallery__item a { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .6); }
.t-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.t-gallery__item a:hover img { transform: scale(1.04); }
.t-gallery__item a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.t-gallery__item figcaption { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: #3c6b3a; font-weight: 600; }
.t-gallery__empty { grid-column: 1 / -1; aspect-ratio: 16 / 9; flex-direction: column; gap: 12px; border-radius: 12px; }
.t-gallery__empty .t-media__missing { color: inherit; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 15, 18, .94); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 140px); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 8px; object-fit: contain; }
.lightbox figcaption { font-size: 14px; text-align: center; opacity: .9; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Divider between types and categories in the filter buttons */
.catnav__sep { width: 1px; margin: 4px 6px; background: var(--line-strong); }
/* Home page: badge and title of the video tile lead to the media library */
a.tile__badge { font-weight: 800; }
a.tile__badge:hover { color: var(--red); }
.t-video h3 a { color: inherit; }
.t-video h3 a:hover { color: #fff; text-decoration: underline; }

/* Donation page: a provider's form (loads only after a click), bank details, three tiles below */
.t-give {
  grid-column: span 8; min-height: 320px; padding: 32px; overflow: hidden; border: 0;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 24px;
  background: var(--ink); color: #fff;
}
.t-give::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px 200px at 100% 0%, rgba(226, 49, 39, .28), transparent), radial-gradient(300px 180px at 0% 100%, rgba(0, 158, 224, .18), transparent);
}
.t-give > * { position: relative; }
.t-give h2 { margin: 0 0 10px; font-size: 28px; font-weight: 900; letter-spacing: -.015em; line-height: 1.1; }
.t-give p { margin: 0; max-width: 52ch; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.t-give__provider { display: flex; align-items: center; gap: 10px; margin-top: 12px !important; font-weight: 700; }
.t-give__provider .diamond { color: var(--red); }
.t-give.is-loaded { display: block; min-height: 0; padding: 0; background: #fff; border: 1px solid var(--line); }
.t-give.is-loaded::before { display: none; }
.t-give iframe { display: block; width: 100%; height: var(--embed-h, 900px); border: 0; }
.bento--sub .t-donate { grid-column: span 8; }
.t-bank__list { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.t-bank__list > div { padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .75); }
.t-bank__list dt { font-size: 11.5px; font-weight: 700; color: #8a7327; }
.t-bank__list dd { margin: 2px 0 0; font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.t-bank__iban { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.t-bank__missing { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.t-values.t-purpose, .t-ask, .t-cta--sub.t-givecta { grid-column: span 4; }

/* Large text tiles do not lift on hover */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .t-when:hover, .t-main .tile:hover, .t-text:hover, .t-upcoming:hover, .t-events--past:hover,
  .t-toc:hover, .t-contact:hover { transform: none; box-shadow: none; }
}

@media (max-width: 1100px) {
  .t-main, .t-text, .t-upcoming, .t-when, .t-side, .t-more, .t-cta--sub, .bento--sub .t-events--past { grid-column: span 6; }
  .t-vcard { grid-column: span 3; }
  .t-player, .t-vmore, .t-give, .bento--sub .t-donate, .t-cta--sub.t-givecta, .t-media, .t-gallery { grid-column: span 6; }
  .t-values.t-purpose, .t-ask { grid-column: span 3; }
  /* Info tiles are as wide as the page here: details in two columns instead of long, empty rows */
  .t-when__facts { display: grid; grid-template-columns: 1fr 1fr; }
  .t-vcard.t-vfeature { grid-template-columns: 1fr; }
  .t-vfeature__body { padding: 26px; }
  .t-jump { grid-column: span 2; }
  .sticky-col { grid-column: span 6; }
  .sticky-col > .t-when, .sticky-col > .t-side--sticky { position: static; }
}

@media (max-width: 720px) {
  /* Source order (the home page reorders its tiles) */
  .bento--sub .tile, .bento--sub > .stack { order: 0; }
  .t-when, .t-side--sticky { align-self: stretch; }
  .t-prose { padding: 22px 18px; font-size: 15px; }
  .t-prose h2 { font-size: 20px; }
  .t-cta--sub h2, .t-cta--sub p { display: block; }
  .t-cta--sub h2 { margin-bottom: 8px; font-size: 21px; }
  .t-cta--sub p { font-size: 13.5px; }
  .t-when__date .tile__num { font-size: 60px; }
  .t-when__facts { grid-template-columns: 1fr; }
  .t-main__photo { min-height: 220px; }
  .event--card { gap: 12px; padding: 10px 12px 10px 10px; }
  .event--card .event__date { width: 50px; height: 50px; border-radius: 12px; }
  .event__day { font-size: 19px; }
  .event__month { font-size: 11px; }
  .event--card .event__title { font-size: 14.5px; }
  .event--card .event__meta { display: block; font-size: 12px; }
  .events--cols { grid-template-columns: 1fr; }
  /* Table of contents before the text; the contact details are in the footer anyway */
  .bento--sub > .sticky-col--side { order: -1; }
  .t-side--sticky .t-contact { display: none; }
  .t-jump { min-height: 0; padding: 22px; }
  .t-give { min-height: 0; padding: 22px; }
  .t-give h2 { font-size: 21px; }
  .t-give .btn { align-self: stretch; }
  .t-jump__title { font-size: 21px; }
  .t-vcard__title { font-size: 16px; }
  .t-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .t-media__bar { padding: 14px 16px; }
  .lightbox figure { max-width: calc(100vw - 24px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; }
  .t-vfeature__body { gap: 18px; padding: 20px; }
  .t-vfeature__title { font-size: 22px; }
  .t-vfeature .t-vcard__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
}

/* =====================================================
   Association page: about us, profile, foundation, board, working groups
   ===================================================== */

.t-intro { grid-column: span 8; display: flex; flex-direction: column; background: var(--tile-purple); }
.t-intro .tile__label { color: #5f4a75; }
.t-intro > p { margin: 0 0 .9em; }
/* Motto at the bottom of the tile: fills it when the profile next to it is taller */
.t-intro__quote { margin: auto 0 0; padding: 22px 24px; border-radius: 16px; background: rgba(255, 255, 255, .6); }
.t-intro__quote blockquote { margin: 0; padding: 0; background: none; font-size: 19px; font-weight: 800; line-height: 1.4; letter-spacing: -.01em; color: var(--ink); }
.t-intro__quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; font-weight: 700; color: #5f4a75; }
.t-intro__quote .diamond { color: var(--purple); width: 8px; height: 8px; }
.t-facts { grid-column: span 4; display: flex; flex-direction: column; gap: 18px; background: var(--tile-yellow); }
.t-facts .tile__label { margin: 0; color: #8a7327; }
.t-facts .btn { align-self: flex-start; margin-top: auto; }

.t-foundation { grid-column: span 7; display: flex; flex-direction: column; background: var(--tile-green); }
.t-foundation .tile__label { margin: 0; color: #3c6b3a; }
.t-foundation__text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: #35522f; }
/* The cards share the full height of the tile when the board next to it is taller */
.t-foundation__list { flex: 1; list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; }
.t-foundation__list li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .7); }
.t-foundation__list .diamond { margin-top: 7px; }
.t-foundation__list strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; }
.t-foundation__list p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }

.t-board { grid-column: span 5; background: var(--tile-blue); }
.t-board .tile__label { margin: 0; color: #39708e; }
.t-board__text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: #2f5a72; }
.t-board__list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.t-board__list li { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(255, 255, 255, .75); }
.t-board__photo { flex: none; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.t-board__photo--empty { display: flex; align-items: center; justify-content: center; background: #fff; }
.t-board__photo--empty .diamond { width: 13px; height: 13px; }
.t-board__list strong { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.3; }
.t-board__role { display: block; margin-top: 1px; font-size: 13px; font-weight: 700; color: #39708e; }
.t-board__list p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }

.t-working-groups { grid-column: 1 / -1; background: var(--tile-orange); }
.t-working-groups__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px 24px; }
.t-working-groups .tile__label { margin: 0; color: #9a5f16; }
.t-working-groups__head p { margin: 8px 0 0; max-width: 62ch; font-size: 14.5px; line-height: 1.6; color: #6b4a1f; }
.t-working-groups__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.t-working-groups__item { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .75); }
.t-working-groups__item h3 { margin: 4px 0 0; font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -.005em; }
.t-working-groups__item p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.t-working-groups__item .t-working-groups__meets { margin-top: auto; padding-top: 4px; font-size: 12.5px; font-weight: 700; color: #9a5f16; }

.t-cta--sub.t-join { grid-column: span 8; }
.t-vcontact { grid-column: span 4; }
.t-vcontact address { font-size: 14px; line-height: 1.6; color: #4a3b59; font-style: normal; }
.t-text--wide { grid-column: 1 / -1; }

/* Home page: the „Mehr“ link in the foundation and working groups tiles leads to the association page */
.tile__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tile__more { flex: none; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .t-intro:hover { transform: none; box-shadow: none; }
}

@media (max-width: 1100px) {
  .t-intro, .t-facts, .t-foundation, .t-board, .t-cta--sub.t-join, .t-vcontact { grid-column: 1 / -1; }
  /* Full width: details and people in two columns instead of long, empty rows */
  .t-facts .t-bank__list, .t-board__list { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .t-facts .t-bank__list, .t-board__list, .t-foundation__list { grid-template-columns: 1fr; }
  .t-facts .btn, .t-working-groups__head .btn { align-self: stretch; }
  .t-working-groups__head { flex-direction: column; align-items: stretch; }
  .t-working-groups__list { grid-template-columns: 1fr; }
  .t-working-groups__item { padding: 16px; }
  .t-foundation__list li { padding: 14px 16px; }
  .t-foundation__list strong { font-size: 16px; }
  .t-intro__quote { padding: 18px; }
  .t-intro__quote blockquote { font-size: 17px; }
  .tile__more { font-size: 12px; padding: 8px 12px; margin: -4px 0; }
}

/* Very narrow phones: logo, „Mitglied werden“ and the menu button only fit side by side when slightly smaller.
   None of the three may be squeezed. */
@media (max-width: 720px) {
  .topbar__logo, .topbar .btn, .topbar__burger { flex: none; }
}
@media (max-width: 374px) {
  .topbar { gap: 8px; }
  .topbar__logo img { height: 38px; }
  .topbar .btn--red { padding: 10px 12px; font-size: 12.5px; }
}
@media (max-width: 340px) {
  .topbar__logo img { height: 34px; }
}
