/* CH++
   Arimo for text, Bitter for headings, as before. The palette is the old
   one: ink #242d2f, purple #532a92 and #471f84, teal #239fb9 with its darker
   #0d778e for text, wash #e5eff5.

   The layout is a 12-column grid. A heading takes the left three columns and
   the text that belongs to it takes seven, so each section reads as a label
   and its body. Below 820px everything stacks. */

@font-face { font-family: "Arimo"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/arimo-v17-latin-regular.woff2") format("woff2"), url("/assets/fonts/arimo-v17-latin-regular.woff") format("woff"); }
@font-face { font-family: "Arimo"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("/assets/fonts/arimo-v17-latin-italic.woff2") format("woff2"), url("/assets/fonts/arimo-v17-latin-italic.woff") format("woff"); }
@font-face { font-family: "Arimo"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/arimo-v17-latin-700.woff2") format("woff2"), url("/assets/fonts/arimo-v17-latin-700.woff") format("woff"); }
@font-face { font-family: "Arimo"; font-weight: 700; font-style: italic; font-display: swap;
  src: url("/assets/fonts/arimo-v17-latin-700italic.woff2") format("woff2"), url("/assets/fonts/arimo-v17-latin-700italic.woff") format("woff"); }
@font-face { font-family: "Bitter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/bitter-v17-latin-regular.woff2") format("woff2"), url("/assets/fonts/bitter-v17-latin-regular.woff") format("woff"); }
@font-face { font-family: "Bitter"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("/assets/fonts/bitter-v17-latin-italic.woff2") format("woff2"), url("/assets/fonts/bitter-v17-latin-italic.woff") format("woff"); }

:root {
  --ink: #242d2f;
  --muted: #55646a;        /* 5.9:1 on white */
  --rule: #d9e1e5;
  --wash: #e5eff5;
  --purple: #532a92;
  --purple-deep: #471f84;
  --teal: #239fb9;         /* marks and rules only, 3.2:1 on white */
  --teal-deep: #0d778e;    /* text links, 5.4:1 on white */

  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Arimo", "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --col-gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 820px) { body { font-size: 1.125rem; } }

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

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

a { color: var(--teal-deep); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--teal-deep) 35%, transparent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--purple); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 3px; border-radius: 1px; }

.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { top: .75rem; }

/* ---- Masthead ---------------------------------------------------------- */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.brand { display: block; line-height: 0; flex-shrink: 0; }
.brand:hover { opacity: .8; }
.masthead nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1.75rem; }
.masthead nav a { color: var(--ink); text-decoration: none; font-size: .9375rem; padding-block: .35rem; border-bottom: 2px solid transparent; }
.masthead nav a:hover { color: var(--purple); border-bottom-color: var(--rule); }
.masthead nav a[aria-current="page"] { color: var(--purple-deep); border-bottom-color: var(--teal); }


.masthead .languages { gap: 1rem; padding-left: 1.75rem; border-left: 1px solid var(--rule); }
.masthead .languages a { color: var(--muted); font-size: .875rem; }

/* ---- Page head --------------------------------------------------------- */
.page-head { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(1.5rem, 3vw, 2.5rem); }
h1 { margin: 0; max-width: 18ch; font: 400 clamp(2.5rem, 6.4vw, 4.5rem)/1.04 var(--serif); letter-spacing: -.015em; color: var(--purple-deep); text-wrap: balance; }
.page-home h1 { max-width: 24ch; }

/* ---- Sections ---------------------------------------------------------
   The build wraps each heading and its text in a .band. The heading takes the
   left three columns and the text seven, so a section reads as a label and
   its body. */
.prose { padding-bottom: clamp(4rem, 9vw, 7rem); }
.preamble { max-width: 40rem; margin-bottom: 3.5rem; font-size: 1.1875rem; line-height: 1.6; }
.preamble > :last-child { margin-bottom: 0; }

.band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: 3.25rem; padding-top: 2.25rem; border-top: 1px solid var(--rule); }
.band > h2, .band > h3 { grid-column: 1 / 4; margin: 0; padding-right: 1rem; position: sticky; top: 1.5rem; align-self: start; font: 400 1.5rem/1.25 var(--serif); color: var(--purple); }
.band-body { grid-column: 4 / 11; min-width: 0; }
.band-body > * { margin: 0 0 1.15rem; }
.band-body > :last-child { margin-bottom: 0; }
.band-body > h3 { margin: 2.25rem 0 .5rem; font: 400 1.3125rem/1.3 var(--serif); color: var(--ink); }
.band-body > h3:first-child { margin-top: 0; }
.band-body > h3 + p { margin-top: 0; }
.band-body strong { font-weight: 700; }

/* Home: the h1 is the statement, the preamble holds the subtitle and the lead. */
.page-home .preamble { max-width: 40rem; margin-bottom: 0; }
.page-home .preamble > p:first-child { margin: 0 0 2rem; font: italic 400 clamp(1.25rem, 2.2vw, 1.5rem)/1.3 var(--serif); color: var(--muted); }
.page-home .preamble > p { font-size: clamp(1.0625rem, 2.4vw, 1.1875rem); }

/* Projekte: the number is the label. */
.page-projects .band > h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; color: var(--teal); overflow-wrap: break-word; hyphens: auto; }
.page-projects .band-body p { font-size: 1.1875rem; }
.docs-label { margin: 1.75rem 0 .5rem; font: 700 .9375rem/1.3 var(--sans, inherit); color: var(--muted); }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { display: flex; flex-direction: column; margin: 0 0 .85rem; font-size: 1rem; line-height: 1.4; }
.docs li span { font-size: .875rem; color: var(--muted); }
.docs a { color: var(--ink); text-decoration-color: var(--rule); }
.docs a:hover { color: var(--purple); text-decoration-color: currentColor; }
.page-projects .preamble { color: var(--muted); }

/* Mitteilungen: date and title, newest first. */
.news { list-style: none; margin: 0; padding: 0; }
.news li { display: flex; flex-direction: column; margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.4; }
.news li span { font-size: .875rem; color: var(--muted); }
.news a { color: var(--ink); text-decoration-color: var(--rule); }
.news a:hover { color: var(--purple); text-decoration-color: currentColor; }
.news-all { margin: 1.25rem 0 0; font-size: .9375rem; }

/* Mitmachen: one membership level per section. */
.button, .page-join .band-body > p > a:only-child { display: inline-block; padding: .65em 1.15em; background: var(--purple); color: #fff; text-decoration: none; font-weight: 700; font-size: .9375rem; border-radius: 2px; }
.button:hover, .page-join .band-body > p > a:only-child:hover { background: var(--purple-deep); color: #fff; }

/* In den Medien: the year at the left, one entry per heading. */
.page-media .band-body { grid-column: 4 / 12; }
.page-media .band-body > h3 { margin: 1.75rem 0 .25rem; font-size: 1.1875rem; line-height: 1.35; }
.page-media .band-body > h3:first-child { margin-top: 0; }
.page-media .band-body > h3 a { color: var(--ink); text-decoration-color: var(--rule); }
.page-media .band-body > h3 a:hover { color: var(--purple); text-decoration-color: currentColor; }
.page-media .band-body > h3 + p { margin: 0; font-size: .9375rem; color: var(--muted); }
.page-media .preamble { color: var(--muted); }

.page-notfound .prose > * { max-width: 40rem; }

/* ---- People ------------------------------------------------------------ */
.page-people .jump { margin: 0; font-size: 1rem; }
.page-people .jump a { color: var(--ink); text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
.page-people .jump a:hover { color: var(--purple); }
.people { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: 3.25rem; padding-top: 2.25rem; border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.people > h2 { grid-column: 1 / 4; margin: 0; position: sticky; top: 1.5rem; align-self: start; font: 400 1.5rem/1.25 var(--serif); color: var(--purple); }
.people-grid { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 3rem var(--col-gap); }
.member { margin: 0; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; background: var(--wash); margin-bottom: 1rem; }
.member h3 { margin: 0; font: 400 1.25rem/1.3 var(--serif); color: var(--ink); }
.member .role { margin: .2rem 0 0; font-size: .9375rem; color: var(--muted); }
/* A statement shows a fixed number of lines so that every card is the same
   height; the full text opens over the card on hover or keyboard focus. */
.statement { --lines: 9; position: relative; margin-top: .75rem; height: calc(var(--lines) * 1.55em); font-size: .875rem; line-height: 1.55; }
.statement blockquote { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines); line-clamp: var(--lines); overflow: hidden; color: var(--muted); }
.statement blockquote p { margin: 0; }
.statement:hover blockquote, .statement:focus blockquote { display: block; position: absolute; z-index: 5; top: -.6rem; left: -.8rem; right: -.8rem; padding: .6rem .8rem; background: #fff; color: var(--ink); box-shadow: 0 8px 28px rgba(36, 45, 47, .2); border-radius: 2px; overflow: visible; }
.statement:focus { outline: none; }
.statement:focus-visible blockquote { outline: 2px solid var(--teal-deep); }

.member-single { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.member-single img { grid-column: 1 / 5; margin: 0; }
.member-single > div { grid-column: 6 / 12; }
.member-single blockquote { font-size: 1rem; line-height: 1.65; margin: .75rem 0 0; }
.member-single .role { margin: 0; }

/* ---- Newsletter ------------------------------------------------------- */
.newsletter { background: var(--wash); margin-top: clamp(3rem, 7vw, 5rem); padding-block: clamp(2.5rem, 6vw, 4rem); }
.newsletter-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.newsletter-inner > :first-child { grid-column: 1 / 6; }
.newsletter-inner > :last-child { grid-column: 6 / 12; }
.newsletter-kicker { margin: 0 0 .35rem; font-size: .9375rem; color: var(--muted); }
.newsletter h2 { margin: 0; font: 400 clamp(1.75rem, 3.6vw, 2.5rem)/1.15 var(--serif); color: var(--purple-deep); }
.newsletter p { margin: 0 0 1.1rem; }
.newsletter p:last-child { margin-bottom: 0; }
.newsletter-mail { font-size: .9375rem; color: var(--muted); }
.newsletter a:not(.button) { color: var(--purple-deep); }

/* ---- Colophon ---------------------------------------------------------- */
.colophon { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.75rem 3rem; border-top: 1px solid var(--rule); font-size: .875rem; }
.colophon a { color: var(--muted); }
.colophon a:hover { color: var(--purple); }

/* ---- Narrow ------------------------------------------------------------ */
@media (max-width: 819px) {
  .masthead { flex-direction: column; align-items: flex-start; padding-block: 1.25rem; }
  .masthead nav { justify-content: flex-start; gap: .1rem 1.25rem; }
  .masthead .languages { padding-left: 0; border-left: 0; }
  .band, .people, .member-single { display: block; margin-top: 2.5rem; padding-top: 1.75rem; }
  .band > h2, .band > h3, .people > h2 { position: static; padding: 0; margin-bottom: 1rem; }
  .page-projects .band > h2 { margin-bottom: .75rem; }
  .preamble { margin-bottom: 2.5rem; }
  .people-grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
  .newsletter-inner { display: block; }
  .newsletter-inner > :first-child { margin-bottom: 1rem; }
  .member-single img { margin-bottom: 1.5rem; max-width: 18rem; }
}
@media (max-width: 819px) and (min-width: 520px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.langlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; font: 400 1.5rem/1.3 var(--serif); }
.langlist a { color: var(--purple); }

/* Small profile icon with an accessible pointer and keyboard target. */

/* Four support categories, with the payment actions aligned at the bottom. */
.support-intro { max-width: 48rem; margin-bottom: 2.5rem; }
.support-intro h2 { color: var(--purple); font: 400 1.5rem/1.3 var(--serif); }
.support-after { max-width: 48rem; margin-top: 3rem; }
.support-after h2 { color: var(--purple); font: 400 1.5rem/1.3 var(--serif); }
.support-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.support-card { display: flex; flex-direction: column; min-width: 0; padding: 1.5rem; background: var(--wash); border-top: 3px solid var(--teal); }
.support-card h2 { margin: 0 0 1.25rem; color: var(--purple); font: 400 1.375rem/1.35 var(--serif); overflow-wrap: break-word; }
.support-card p { margin: 0 0 1.5rem; }
.support-card .support-action { margin: auto 0 0; }
.support-card .button { display: block; text-align: center; }
@media (max-width: 1099px) { .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }

/* Home: two independent, keyboard-accessible sections without JavaScript. */
.page-home .page-head { padding-block: 2.5rem; }
.page-home h1 { max-width: 30ch; font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.home-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.home-panel { min-width: 0; border-top: 3px solid var(--teal); padding-top: 1.5rem; }
.home-panel > h2 { margin: 0 0 1.5rem; color: var(--purple-deep); font: 400 clamp(1.75rem, 3vw, 2.25rem)/1.2 var(--serif); }
.home-panel p { margin: 0 0 1.25rem; }
.home-subtitle { font: italic 400 1.25rem/1.4 var(--serif); color: var(--muted); }
.home-feature h3 { font: 400 1.5rem/1.3 var(--serif); margin: .5rem 0 1.25rem; }
.home-feature h3 a { color: var(--ink); }
.news-date { color: var(--muted); font-size: .875rem; }
.home-feature .news-date { margin: 0; }
.news-portraits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.25rem; }
.news-portraits img, .board-profile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; background: var(--wash); }
.home-disclosure, .privacy-disclosure { border-block: 1px solid var(--rule); }
.home-disclosure summary, .privacy-disclosure summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; color: var(--purple-deep); font-size: 1rem; font-weight: 700; list-style: none; }
.home-disclosure summary::-webkit-details-marker, .privacy-disclosure summary::-webkit-details-marker { display: none; }
.home-disclosure summary:hover, .privacy-disclosure summary:hover { color: var(--teal-deep); }
.disclosure-icon::before { content: '+'; font-size: 1.5rem; font-weight: 400; }
.home-disclosure[open] > summary .disclosure-icon::before, .privacy-disclosure[open] > summary .disclosure-icon::before { content: '−'; }
.home-expanded { padding: .5rem 0 1rem; }
.home-expanded h3, .home-expanded h4 { font: 400 1.25rem/1.35 var(--serif); color: var(--purple); margin: 1.5rem 0 .75rem; }
.home-expanded h4 { color: var(--ink); font-size: 1.125rem; }
.home-expanded > :first-child { margin-top: 0; }
.home-recent { margin-top: 1.75rem; }
.board-profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; margin: 2.5rem 0; }
.board-profile { min-width: 0; }
.board-profile h2 { color: var(--purple); font: 400 1.5rem/1.3 var(--serif); margin: 1rem 0 .75rem; }
.board-profile p { margin-top: 0; }
.board-profile img { max-width: 22rem; }
.board-news-lead { max-width: 45rem; font-size: 1.1875rem; }
.home-expanded .board-profiles { display: block; margin: 0; }
.home-expanded .board-profile + .board-profile { border-top: 1px solid var(--rule); padding-top: .5rem; }
/* Without fresh news the AI panel stands alone, at reading width. */
.home-panels-single { grid-template-columns: minmax(0, 45rem); }
@media (max-width: 819px) { .home-panels { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 519px) { .board-profiles { grid-template-columns: minmax(0, 1fr); } }
.page-boardNews h1 { hyphens: auto; overflow-wrap: anywhere; }

/* Privacy policy: collapsed by default, full text available without JavaScript. */
.privacy-content { padding: .5rem 0 1.5rem; overflow-wrap: anywhere; }
.privacy-content h3 { margin: 2rem 0 .75rem; font: 400 1.3125rem/1.3 var(--serif); color: var(--purple); }
.privacy-content h4 { margin: 1.5rem 0 .5rem; font: 400 1.125rem/1.35 var(--serif); color: var(--ink); }
.privacy-content > :first-child { margin-top: 0; }
