/* ==========================================================================
   altenheim-blumenau.org — second pass (2026-10-13): an editorial, print-like
   layout instead of the generic card grid. Kept from the 2014 site: bordeaux,
   gold, the green of the old header, the sand of the old content area, the 1938
   stone relief. Signature elements: a plane leaf (the tree in the courtyard) as
   ornament, hairlines instead of shadows, a warm serif with character for the
   headings, photos mounted with a thin gold frame. No framework, no external
   requests.
   ========================================================================== */

@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('../Fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('../Fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../Fonts/Fraunces-400-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../Fonts/Fraunces-400-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url('../Fonts/Literata-400-600i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url('../Fonts/Literata-400-600i-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --wine: #5a0f16;            /* the 2014 menu bar, a touch warmer */
  --wine-deep: #40090e;
  --wine-050: #f6ecec;
  --gold: #c9973b;            /* ochre: rules, ornaments, markers */
  --gold-bright: #e3b556;     /* the one colour for "Spenden" */
  --gold-100: #f7ead0;
  --terra: #a9502b;           /* the roof tiles: kickers, small accents */
  --green: #2e4a3d;           /* the old header */
  --green-100: #e6ece8;
  --green-050: var(--green-100);
  --cream: #f7f2e9;           /* page */
  --paper: #fffdf9;           /* panels */
  --sand: #efe7d8;            /* boxes */
  --line: #e2d7c3;
  --line-strong: #cdbd9e;
  --ink: #2b2522;
  --ink-soft: #4b423c;
  --muted: #6f655d;
  --r: 2px;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --italic: 'Literata', Georgia, serif;
  --sans: 'Source Sans 3', 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --leaf: url('../Images/leaf.svg');
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--cream);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--gold); }
a:hover { color: var(--wine-deep); text-decoration-color: var(--wine); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--wine); line-height: 1.15; font-weight: 600; margin: 1.5em 0 .5em; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); margin-top: 0; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2.1rem); }
h3 { font-size: 1.35rem; color: var(--green); }
h4 { font-size: 1.05rem; color: var(--ink); font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
em, i { font-family: var(--italic); font-style: italic; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
li::marker { color: var(--gold); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
small, .small { font-size: .9rem; color: var(--muted); }
.lead { font-size: 1.3rem; line-height: 1.5; color: var(--ink-soft); font-family: var(--serif); font-weight: 400; }
.note { background: var(--gold-100); border-left: 3px solid var(--gold); padding: .8em 1em; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skiplink { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--wine); color: #fff; padding: 10px 16px; }
.skiplink:focus { top: 0; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: .6em .7em; border-bottom: 1px solid var(--line); }
th { font-family: var(--sans); font-weight: 700; color: var(--green); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--line-strong); }
@media (max-width: 640px) {
  .table-compare, .table-compare tbody, .table-compare tr, .table-compare td { display: block; width: 100%; }
  .table-compare thead { display: none; }
  .table-compare tr { border: 1px solid var(--line); margin-bottom: 10px; padding: 10px 14px; background: var(--paper); }
  .table-compare td { border: 0; padding: 3px 0; }
  .table-compare td:first-child { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; padding-bottom: 6px; }
  .table-compare td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 1.02rem/1.2 var(--sans); padding: .72em 1.3em;
  border-radius: var(--r); border: 1.5px solid var(--wine); background: var(--wine); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); color: #fff; text-decoration: none; }
.btn--donate { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--wine-deep); }
.btn--donate:hover { background: #d9a842; border-color: #d9a842; color: var(--wine-deep); }
.btn--quiet { background: transparent; color: var(--wine); border-color: var(--line-strong); }
.btn--quiet:hover { background: var(--paper); border-color: var(--wine); color: var(--wine); }
.btn--large { font-size: 1.12rem; padding: .85em 1.6em; }
.btn--block { display: flex; width: 100%; }
p:has(> a.btn) { display: flex; flex-wrap: wrap; gap: .7em; align-items: center; }

/* ---------- staging bar ---------- */
.stagingbar { background: var(--gold-100); border-bottom: 1px solid var(--gold); color: #5a4200; font-size: .88rem; font-weight: 600; text-align: center; padding: 5px var(--gutter); }

/* ---------- masthead ---------- */
.topbar { background: var(--green); color: #dfe8e2; font-size: .92rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.topbar__contact li { margin: 0; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 7px; }
.topbar__contact svg { opacity: .75; }
.langnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.langnav li { margin: 0; }
.langnav__item { display: inline-block; padding: 2px 10px; font-weight: 600; border-bottom: 2px solid transparent; }
.langnav__item.is-active { border-bottom-color: var(--gold); }

.brandbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.brandbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: inherit; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 56px; height: auto; flex: none; outline: 1px solid var(--gold); outline-offset: 3px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.05rem); line-height: 1.05; color: var(--wine); }
.brand__sub { font: 600 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.brandbar__donate { flex: none; }
@media (max-width: 720px) {
  .topbar__contact li:nth-child(2) { display: none; }
  .brand__mark { width: 42px; }
  .brandbar__donate { padding: .55em .85em; font-size: .95rem; }
  .brandbar__donate span { display: none; }
  .brand__sub { font-size: .66rem; letter-spacing: .1em; }
}

/* ---------- main menu ---------- */
.navbar { background: var(--wine); position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--gold); }
.navbar__inner { display: flex; align-items: stretch; min-height: 54px; }
.mainnav { display: flex; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.mainnav__item { position: relative; margin: 0; display: flex; align-items: stretch; }
.mainnav__link { display: flex; align-items: center; gap: 8px; padding: 0 18px; min-height: 54px; color: #f5e9e9; font-weight: 600; font-size: 1.02rem; text-decoration: none; letter-spacing: .01em; }
.mainnav__link::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: transparent; flex: none; }
.mainnav__link:hover { color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }
.mainnav__item.is-active > .mainnav__link { color: #fff; }
.mainnav__item.is-active > .mainnav__link::before { background: var(--gold-bright); }
.mainnav__item--donate > .mainnav__link { color: var(--gold-bright); font-weight: 700; }
.mainnav__expand { display: none; }
.submenu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 270px; background: var(--paper);
  border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: 0 10px 30px rgba(50, 20, 10, .14); opacity: 0; visibility: hidden;
  transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.submenu li { margin: 0; }
.submenu a { display: block; padding: 9px 20px; color: var(--ink); text-decoration: none; font-size: 1rem; }
.submenu a:hover, .submenu .is-active > a { background: var(--cream); color: var(--wine); }
.submenu__overview { display: none; }
@media (min-width: 1001px) {
  .mainnav__item:hover > .submenu, .mainnav__item:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
  .navtoggle, .navpanel__extra { display: none; }
}
.navtoggle { display: none; }
@media (max-width: 1000px) {
  .navbar__inner { min-height: 50px; }
  .navtoggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; font: 700 1.02rem var(--sans); padding: 0 4px; cursor: pointer; }
  .navtoggle__icon { width: 24px; height: 18px; position: relative; display: inline-block; }
  .navtoggle__icon span, .navtoggle__icon::before, .navtoggle__icon::after { content: ''; position: absolute; left: 0; right: 0; height: 2.5px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
  .navtoggle__icon::before { top: 0; } .navtoggle__icon span { top: 7.5px; } .navtoggle__icon::after { bottom: 0; }
  .navbar.is-open .navtoggle__icon::before { transform: translateY(7.5px) rotate(45deg); }
  .navbar.is-open .navtoggle__icon span { opacity: 0; }
  .navbar.is-open .navtoggle__icon::after { transform: translateY(-7.5px) rotate(-45deg); }
  /* closed panel hidden by opacity — a translateX-parked panel widens mobile viewports (forumkronstadt 10-12) */
  .navpanel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); max-height: calc(100vh - var(--navbar-bottom, 120px));
    overflow-y: auto; border-bottom: 3px solid var(--gold); box-shadow: 0 16px 36px rgba(50, 20, 10, .18); opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s; }
  .navbar.is-open .navpanel { opacity: 1; visibility: visible; transform: none; }
  .mainnav { display: block; padding: 6px 0; }
  .mainnav__item { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); }
  .mainnav__link { color: var(--ink); min-height: 54px; padding: 0 var(--gutter); font-size: 1.12rem; font-family: var(--serif); font-weight: 600; }
  .mainnav__link::before { display: none; }
  .mainnav__link:hover { background: var(--cream); color: var(--wine); }
  .mainnav__item.is-active > .mainnav__link { color: var(--wine); box-shadow: inset 4px 0 0 var(--gold); }
  .mainnav__item--donate > .mainnav__link { color: var(--wine); }
  .mainnav__expand { display: flex; align-items: center; justify-content: center; width: 56px; background: none; border: 0; border-left: 1px solid var(--line); cursor: pointer; }
  .mainnav__expand span { width: 10px; height: 10px; border-right: 2px solid var(--wine); border-bottom: 2px solid var(--wine); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
  .mainnav__item.is-open .mainnav__expand span { transform: rotate(225deg) translate(-2px, -2px); }
  .submenu { position: static; grid-column: 1 / -1; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 8px; background: var(--cream); min-width: 0; }
  .mainnav__item.is-open > .submenu { display: block; }
  .submenu a { padding: 10px var(--gutter) 10px calc(var(--gutter) + 18px); font-size: 1.02rem; }
  .submenu__overview { display: block; }
  .navpanel__extra { display: flex; flex-direction: column; gap: 8px; padding: 16px var(--gutter) 22px; font-weight: 600; }
  body.menu-open { overflow: hidden; }
}

/* ---------- page head: photo band, then the title on cream ---------- */
.pagehead__media { height: clamp(180px, 26vw, 340px); overflow: hidden; border-bottom: 3px solid var(--gold); }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__inner { padding-block: 22px 26px; }
.pagehead__title { margin: .25em 0 0; }
.pagehead__lead { font-family: var(--italic); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); max-width: 46em; margin: .45em 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: .9rem; color: var(--muted); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: '›'; margin: 0 .5em; color: var(--gold); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- page grid ---------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding-block: 8px 72px; align-items: start; }
.page__aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 74px; }
@media (max-width: 1000px) { .page { grid-template-columns: minmax(0, 1fr); } .page__aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.sheet { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 4vw, 48px); }
.sheet > .frame:first-child > header > :first-child, .sheet > .frame:first-child > :first-child { margin-top: 0; }
.sheet p, .sheet li { max-width: 70ch; }
.sheet .frame + .frame { margin-top: 2.2em; }
.sheet .frame-default > header > h2 { padding-top: .5em; border-top: 1px solid var(--line); }
.sheet .frame:first-child > header > h2 { border-top: 0; padding-top: 0; }
.sidecard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.sidecard__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--wine); margin: 0 0 .5em; }
.sidecard__title a { color: inherit; text-decoration: none; }
.sectionnav ul { list-style: none; margin: 0; padding: 0; }
.sectionnav li { margin: 0; }
.sectionnav a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid var(--line); color: var(--ink); text-decoration: none; line-height: 1.35; }
.sectionnav a:hover { color: var(--wine); border-left-color: var(--gold); }
.sectionnav .is-active > a { color: var(--wine); font-weight: 700; border-left: 3px solid var(--gold); padding-left: 11px; }
.sectionnav ul ul { margin: 2px 0 6px 14px; font-size: .97rem; }
.donatecard { border-top: 4px solid var(--gold-bright); }
.donatecard__text { font-size: 1rem; color: var(--ink-soft); }
.donatecard__accounts { display: grid; grid-template-columns: 1fr; gap: 0; font-size: .95rem; margin: 0 0 .6em; }
.donatecard__accounts dd + dt { margin-top: 8px; }
.donatecard__accounts dt { color: var(--muted); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.donatecard__accounts dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; font-size: 1rem; }
.donatecard__holder { font-size: .9rem; color: var(--muted); }
.donatecard__f230 { font-size: .98rem; margin: .9em 0 0; }

/* ---------- start page ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(32px, 5vw, 64px); }
.hero__text { position: relative; }
.hero__text::before { content: ''; position: absolute; right: -10px; top: -30px; width: 150px; height: 150px; background: var(--leaf) center/contain no-repeat; opacity: .08; pointer-events: none; }
.hero__text h1, .hero__text h2 { margin: 0 0 .4em; font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem); font-weight: 600; border: 0; padding: 0; }
.hero__text p { font-size: 1.22rem; color: var(--ink-soft); max-width: 36em; }
.hero__media { position: relative; z-index: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.hero__media::after { content: ''; position: absolute; inset: 12px -12px -12px 12px; border: 1px solid var(--gold); border-radius: var(--r); pointer-events: none; z-index: -1; }
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; } .hero__media { order: -1; } .hero__media::after { inset: 10px -8px -8px 10px; } }

.signature { background: var(--cream); border-bottom: 1px solid var(--line); }
.signature__inner { display: flex; align-items: center; gap: 22px; padding-block: 16px; }
.signature__mark { width: 56px; height: auto; flex: none; outline: 1px solid var(--gold); outline-offset: 3px; }
.signature__text { font-family: var(--italic); font-style: italic; font-size: 1.08rem; color: var(--ink-soft); margin: 0; }
.signature__text strong { font-family: var(--serif); font-style: normal; color: var(--wine); font-weight: 600; }
.signature__marklink { flex: none; line-height: 0; }
.signature__more { font-family: var(--sans, inherit); font-style: normal; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--wine); text-decoration: none; border-bottom: 1px solid var(--gold); margin-left: 10px; white-space: nowrap; }
.signature__more:hover, .signature__more:focus-visible { color: var(--terra); border-bottom-color: var(--terra); }
/* frame "relief": one tall picture, shown as large as the viewport allows, centred, click opens the lightbox */
.frame-relief .ce-gallery[data-ce-columns="1"] .ce-column img { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; display: block; outline: 1px solid var(--gold); outline-offset: 6px; }
.frame-relief .ce-gallery { margin: 1.2em 0 1.6em; }
.frame-relief figcaption { text-align: center; }

.home > .frame { padding: clamp(40px, 6vw, 76px) max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }
.home > .frame:nth-child(odd) { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home > .frame > header { max-width: 760px; }
.home > .frame > header > h2:first-child { margin-top: 0; }
.home > .frame-type-text > *:not(header), .home > .frame-type-textmedia .ce-bodytext { max-width: 760px; }

/* ---------- frames ---------- */
.frame-box { background: var(--sand); border-left: 3px solid var(--gold); padding: 20px 24px; }
.sheet .frame-box + .frame, .sheet .frame + .frame-box { margin-top: 1.8em; }
.frame-box > header > h2, .frame-box > header > h3 { margin-top: 0; font-size: 1.3rem; }
.frame-box > :last-child, .frame-box .ce-bodytext > :last-child { margin-bottom: 0; }
.frame-highlight { background: var(--wine); color: #f6ecec; padding: clamp(24px, 4vw, 40px); position: relative; overflow: hidden; }
.frame-highlight::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 220px; height: 220px; background: var(--leaf) center/contain no-repeat; opacity: .1; }
.frame-highlight h2, .frame-highlight h3, .frame-highlight a:not(.btn) { color: #fff; }
.frame-highlight > header > h2 { margin-top: 0; }
.frame-highlight .btn--quiet { background: transparent; color: #fff; border-color: #fff; }
.frame-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); }
.frame-card > header > h2 { font-size: 1.35rem; }
.frame-highlight .ce-bodytext > :last-child, .frame-card .ce-bodytext > :last-child { margin-bottom: 0; }

/* ---------- notes for the board (test system only) ---------- */
.frame-boardnote { border: 1px dashed var(--gold); background: #fffaf0; padding: 12px 16px; font-size: .95rem; }
.frame-boardnote > header > h2, .frame-boardnote > header > h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #8a6a00; margin: 0 0 .4em; }
.frame-boardnote p { color: #5a4a20; margin-bottom: .4em; }
.home > .frame-boardnote { margin: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); padding: 12px 16px; border-top: 1px dashed var(--gold) !important; }
body:not(.is-staging) .frame-boardnote { display: none; }

/* ---------- editor-selectable lists ---------- */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.2em 0 1.4em; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 1.1em 3.2em; min-height: 2.6em; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: .05em; width: 2.1em; height: 2.1em; background: var(--wine); color: #fff;
  font: 600 1.05rem/2.1em var(--serif); text-align: center; border-radius: var(--r); }
ol.steps > li:not(:last-child)::after { content: ''; position: absolute; left: 1.05em; top: 2.5em; bottom: .2em; border-left: 1px solid var(--line-strong); }
ul.checklist { list-style: none; padding: 0; }
ul.checklist > li { position: relative; padding-left: 1.9em; }
ul.checklist > li::before { content: ''; position: absolute; left: .1em; top: .42em; width: 1em; height: .55em; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
ul.facts { list-style: none; padding: 0; margin: 1.6em 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0;
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); max-width: none !important; }
ul.facts > li { margin: 0; padding: 14px 18px; max-width: none !important; border-left: 1px solid var(--line); }
ul.facts > li:first-child { border-left: 0; padding-left: 0; }
ul.facts strong { display: block; font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 600; color: var(--wine); line-height: 1.1; margin-bottom: 4px; }
@media (max-width: 640px) { ul.facts { grid-template-columns: 1fr 1fr; } ul.facts > li { padding: 10px 12px; font-size: .95rem; }
  ul.facts > li:nth-child(odd) { border-left: 0; padding-left: 0; } ul.facts > li:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- donation ways: entries, not cards ---------- */
.ways { list-style: none; margin: 1.4em 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line-strong); }
.way { margin: 0; border-bottom: 1px solid var(--line); }
.way__link { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding: 18px 8px 18px 0; text-decoration: none; color: var(--ink); transition: background .15s; }
.way__link:hover { background: var(--cream); color: var(--ink); text-decoration: none; }
.way__link:hover .way__title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .15em; }
.way__icon { grid-row: 1 / span 3; color: var(--wine); padding-top: 4px; }
.way__icon svg { width: 34px; height: 34px; }
.way--companies .way__icon { color: var(--green); }
.way--abroad .way__icon { color: #2d4a6b; }
.way--inkind .way__icon, .way--volunteer .way__icon, .way--occasions .way__icon { color: var(--terra); }
.way__group { font: 700 .74rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.way__title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--wine); line-height: 1.2; margin: 2px 0 4px; }
.way__title::after { content: ' →'; color: var(--gold); }
.way__text { font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; gap: 0; } .way__link { padding: 14px 4px 14px 0; } .way__icon svg { width: 28px; height: 28px; } .way__title { font-size: 1.25rem; } }
.ways__company { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 22px 0 0; padding: 16px 20px; background: var(--green-100); border-left: 3px solid var(--green); }
.ways__company label { font-weight: 700; color: var(--green); flex: 1 1 260px; }
.ways__company input { font: 1.05rem var(--sans); padding: .55em .8em; border: 1.5px solid var(--line-strong); background: #fff; min-width: 180px; }
.ways__company .btn { padding-block: .55em; }

/* ---------- card menus and news ---------- */
.cards { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card { margin: 0; }
.card__link { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.card__link:hover { border-color: var(--gold); color: var(--ink); text-decoration: none; }
.card__link:hover .card__title { text-decoration: underline; text-decoration-color: var(--gold); }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.card__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--wine); line-height: 1.2; }
.card__text { font-size: 1rem; color: var(--ink-soft); flex: 1; }
.card__more { font: 700 .78rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--terra); margin-top: 6px; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; margin-top: 1.2em; }
.news-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.news-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card--noimage { border-top: 3px solid var(--gold); }
.news-card__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card__date { font: 700 .76rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--terra); }
.news-card__title { margin: 0; font-size: 1.3rem; }
.news-card__title a { color: var(--wine); text-decoration: none; }
.news-card__title a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.news-card__teaser { font-size: 1rem; color: var(--ink-soft); margin: 0; flex: 1; }
.news-card__more { font: 700 .78rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--terra); text-decoration: none; margin-top: 6px; }
.news-grid__all { margin-top: 1.6em; }
.news-article__date { display: inline-block; font: 700 .8rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--terra); margin-bottom: .5em; }
.news-article__title { margin-top: 0; }
.news-article__image { margin: 1.4em 0; }
.news-article__image img { width: 100%; }
.news-article__image figcaption, .ce-gallery figcaption, .lbox__cap { font-family: var(--italic); font-style: italic; font-size: .95rem; color: var(--muted); padding-top: 6px; }
.news-article__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 1.6em 0; }
.news-article__gallery figure { margin: 0; }
.news-article__back { margin-top: 2em; }
.page-navigation ul, .f3-widget-paginator { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 2em 0 0; }
.page-navigation li a, .page-navigation li span { display: inline-block; min-width: 2.4em; padding: .35em .7em; border: 1px solid var(--line); text-align: center; text-decoration: none; background: var(--paper); }
.page-navigation li.current span, .page-navigation li.current a { background: var(--wine); color: #fff; border-color: var(--wine); }

/* ---------- call to action ---------- */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; background: var(--wine); color: #f6ecec;
  padding: clamp(24px, 4vw, 40px); position: relative; overflow: hidden; border-top: 3px solid var(--gold); }
.cta::before { content: ''; position: absolute; right: -40px; top: -50px; width: 260px; height: 260px; background: var(--leaf) center/contain no-repeat; opacity: .1; transform: rotate(18deg); }
.cta__text { flex: 1 1 420px; position: relative; }
.cta__title { color: #fff; margin: 0 0 .4em; }
.cta__text p { color: #f3e6e6; margin-bottom: .6em; max-width: 62ch; }
.cta__text a { color: #fff; }
.cta__action { position: relative; }
.home > .frame-type-blumenau_cta { background: transparent !important; border: 0 !important; }

/* ---------- bank box ---------- */
.bankbox { display: grid; grid-template-columns: minmax(0, 1fr) 220px; grid-template-areas: "acc acc" "meta qr"; gap: 18px 28px; align-items: start;
  background: var(--sand); padding: clamp(16px, 3vw, 28px); border-top: 3px solid var(--gold); }
.bankbox__accounts { grid-area: acc; display: grid; gap: 10px; }
.bankbox__meta { grid-area: meta; }
.bankbox__qr { grid-area: qr; }
.account { background: var(--paper); border: 1px solid var(--line); padding: 12px 16px; }
.account__currency { margin: 0 0 4px; font-size: .95rem; color: var(--ink-soft); }
.account__badge { display: inline-block; font: 800 .78rem/1.5 var(--sans); letter-spacing: .08em; background: var(--wine); color: #fff; padding: 1px 8px; margin-right: 4px; }
.account__badge--eur { background: #2d4a6b; }
.account__iban { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; }
.iban { font-variant-numeric: tabular-nums; }
.iban__label { font-size: .76rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; margin-right: .2em; }
.account__iban .iban strong { font-family: var(--serif); font-size: clamp(1.1rem, .95rem + .6vw, 1.4rem); font-weight: 600; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.copybtn { font: 700 .9rem var(--sans); border: 1.5px solid var(--wine); color: var(--wine); background: var(--paper); border-radius: var(--r); padding: 4px 12px; cursor: pointer; }
.copybtn:hover { background: var(--wine-050); }
.copybtn.is-copied { background: var(--green); border-color: var(--green); color: #fff; }
.copybtn--small { padding: 1px 9px; font-size: .8rem; margin-left: 6px; }
.bankbox__meta { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 22px; align-content: start; }
.bankbox__meta div { margin: 0; }
.bankbox__meta dt { font: 700 .74rem/1.4 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.bankbox__meta dd { margin: 0; font-weight: 600; }
.bankbox__purpose { grid-column: 1 / -1; }
.bankbox__qr { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 12px; text-align: center; }
.bankbox__qr svg { width: 100%; height: auto; display: block; margin: 0 auto 8px; }
.bankbox__qr svg path { fill: #1d1512; }
.bankbox__qr figcaption { font-size: .84rem; line-height: 1.4; color: var(--muted); text-align: left; }
.bankbox__qr figcaption strong { color: var(--ink); }
.qrpick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 10px; }
.qrpick__btn { font: 700 .82rem/1.2 var(--sans); padding: 5px 9px; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer; border-radius: var(--r); }
.qrpick__btn[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.qrpick__code[hidden] { display: none; }
@media (max-width: 640px) {
  .bankbox { grid-template-columns: 1fr; grid-template-areas: "acc" "meta"; padding: 12px; }
  .account { padding: 12px; }
  .bankbox__qr { display: none; }     /* nobody scans a QR code on the phone it is shown on */
}
@media (max-width: 420px) { .iban__label { display: block; margin: 2px 0 0; } .account__iban .iban strong { font-size: 1.1rem; letter-spacing: 0; } }
@media (max-width: 340px) { .account__iban .iban strong { white-space: normal; } }

/* ---------- forms (contract generator) ---------- */
.contractform { margin-top: 1.2em; }
.contractform__step { border: 1px solid var(--line); ; padding: 18px clamp(16px, 3vw, 26px) 10px; margin: 0 0 18px; background: #fcfaf6; min-width: 0; }
.contractform__step legend { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--wine); padding: 0 8px; }
.stepno { width: 1.9em; height: 1.9em; background: var(--wine); color: #fff; display: inline-grid; place-items: center; font: 600 .95rem var(--serif); border-radius: var(--r); }
.field { margin: 0 0 14px; min-width: 0; }
.field label { display: block; font-weight: 700; margin-bottom: 5px; font-size: 1rem; }
.field input, .field select { width: 100%; font: 1.08rem var(--sans); padding: .62em .8em; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--wine); outline: 3px solid rgba(201, 151, 59, .4); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field__row { display: flex; gap: 10px; }
.field__row input { flex: 1; }
.field__row .btn { white-space: nowrap; padding-block: .6em; }
.field__help { font-size: .92rem; color: var(--muted); margin: 6px 0 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 4px 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--wine); }
.contractform__status { font-size: .98rem; margin: 0 0 10px; }
.contractform__status.is-ok { color: var(--green); font-weight: 600; }
.contractform__status.is-error, .contractform__result.is-error { color: #a1231b; font-weight: 600; }
.contractform__result.is-ok { background: var(--green-050); border-left: 4px solid var(--green); padding: .8em 1em; border-radius: var(--r); }
.contractform__submit { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 10px; }
.contractform.is-busy { opacity: .7; pointer-events: none; }
@media (max-width: 520px) { .field__row { flex-direction: column; } }

/* ---------- Fluid Styled Content ---------- */
.ce-textpic.ce-intext.ce-nowrap, .ce-textpic.ce-intext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36%); gap: 28px; align-items: start; }
.ce-textpic.ce-left.ce-intext { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); }
.ce-textpic.ce-right.ce-intext .ce-gallery { order: 2; }
.ce-textpic.ce-intext .ce-gallery { margin: 0; }
.ce-textpic.ce-intext .ce-gallery .ce-column img { aspect-ratio: auto; }
@media (max-width: 760px) { .ce-textpic.ce-intext, .ce-textpic.ce-left.ce-intext { grid-template-columns: 1fr; } .ce-textpic.ce-right.ce-intext .ce-gallery { order: 0; } }
.ce-gallery figure { margin: 0; }
.ce-gallery img {  }
.ce-gallery figcaption { font-size: .9rem; color: var(--muted); padding-top: 6px; }
.ce-textpic .ce-gallery { margin-bottom: 1em; }
.ce-uploads { list-style: none; padding: 0; }
.ce-uploads li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ce-uploads a { font-weight: 700; }
.ce-uploads-fileName { font-weight: 700; }
.ce-uploads-filesize { color: var(--muted); font-size: .9rem; }
.frame-type-image .ce-gallery .ce-row, .frame-type-textmedia .ce-gallery .ce-row { gap: 10px; }
.ce-gallery[data-ce-columns] .ce-outer, .ce-gallery[data-ce-columns] .ce-inner { float: none; right: auto; }
.ce-gallery .ce-row { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ce-gallery[data-ce-columns="1"] .ce-row { --cols: 1; } .ce-gallery[data-ce-columns="3"] .ce-row { --cols: 3; } .ce-gallery[data-ce-columns="4"] .ce-row { --cols: 4; }
@media (max-width: 640px) { .ce-gallery .ce-row { --cols: 2 !important; } }
.ce-gallery .ce-column { float: none; margin: 0; }
.ce-gallery .ce-column img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ce-gallery[data-ce-columns="1"] .ce-column img { aspect-ratio: auto; }

/* ---------- lightbox ---------- */
a.lightbox { display: block; cursor: zoom-in; }
.lbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: transparent; }
.lbox::backdrop { background: rgba(28, 14, 12, .92); }
.lbox[open] { display: grid; place-items: center; }
.lbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 92vw; }
.lbox__img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; outline: 1px solid var(--gold); outline-offset: 6px; }
.lbox__cap { color: #f1e9e0; font-size: 1rem; text-align: center; min-height: 1.4em; }
.lbox__btn { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%;
  font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lbox__btn:hover { background: rgba(255,255,255,.25); }
.lbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lbox__close { right: 16px; top: 16px; font-size: 1.8rem; }
.lbox.is-single .lbox__prev, .lbox.is-single .lbox__next { display: none; }

/* ---------- map (click to load) ---------- */
.embed-consent { background: var(--green-100); border: 1px dashed var(--green); padding: 22px; text-align: center; }
.embed-consent p { margin: 0 auto .8em; max-width: 52ch; font-size: 1rem; }
.embed-frame { width: 100%; height: 380px; border: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-footer { background: var(--green); color: #dfe8e2; font-size: 1rem; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: min(38vw, 420px); background: url('../Images/relief-duotone.jpg') right center/cover no-repeat; opacity: .45;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); pointer-events: none; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1fr 1.45fr .75fr 1fr; gap: 32px; padding-block: 48px 40px; }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; gap: 26px; } }
.site-footer__title { font-family: var(--serif); color: #fff; font-size: 1.2rem; font-weight: 600; margin: 0 0 .7em; padding-bottom: .4em; border-bottom: 1px solid var(--gold); display: inline-block; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__org { margin-bottom: .5em; }
.site-footer__small { font-size: .9rem; color: #b8c8be; margin-top: .6em; }
.site-footer__bank { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; }
.site-footer__bank dt { color: #b8c8be; }
.site-footer__bank dd { margin: 0; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 360px) { .site-footer__bank dd { white-space: normal; } }
.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin: 0 0 .35em; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__help p { color: #dfe8e2; }
.site-footer__bottom { background: var(--wine-deep); color: #e3cfcf; font-size: .92rem; position: relative; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-block: 14px; }
.site-footer__legal { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-footer__legal li { margin: 0; }
.site-footer__bottom a { color: #fff; }

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  .topbar, .navbar, .brandbar__donate, .page__aside, .site-footer, .stagingbar, .copybtn, .hero__media, .qrpick, .lbox { display: none !important; }
  body { background: #fff; font-size: 11pt; } .sheet { border: 0; padding: 0; } .page { display: block; padding: 0; }
  a { color: #000; } .bankbox { border: 1px solid #999; }
}

/* video in a news article (Oktoberfest 2026): full width of the gallery grid, native controls */
.news-article__gallery .news-article__video { grid-column: 1 / -1; }
.news-article__video video { display: block; width: 100%; height: auto; background: #000; border: 1px solid var(--line); }
