/* Wolfgang Viebahn – theme in the existing design of www.wolfgangviebahn.de (rebuilt without page builder)
   Values measured on the live site (22.10.2026): yellow #f2db8c / #f7e597, navy #202a54 / #303e7a, grey #f6f8fa,
   Kumbh Sans (text, navigation), Saira (headings). Changes are limited to consistency, mobile use and accessibility. */

@font-face { font-family: 'Kumbh Sans'; src: url('../fonts/kumbh-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Kumbh Sans'; src: url('../fonts/kumbh-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Kumbh Sans'; src: url('../fonts/kumbh-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Saira'; src: url('../fonts/saira-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Saira'; src: url('../fonts/saira-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'OpenDyslexic'; src: url('../fonts/opendyslexic-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'OpenDyslexic'; src: url('../fonts/opendyslexic-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --yellow: #f2db8c;
  --yellow-light: #f7e597;
  --navy: #202a54;
  --navy-2: #303e7a;
  --grey: #f6f8fa;
  --white: #ffffff;
  --ink: #202a54;
  --heading: #3e3e3e;
  --muted: #4d5673;
  --line: #d9dee8;
  --field: #9fb4d9;
  --focus: #0b57d0;
  --link: #303e7a;
  --on-navy: #f6f8fa;
  --hero-page: linear-gradient(90deg, #fafafa 0%, #fafafa 45%, #f7e597 85%, #f7e597 100%);
  /* Sub pages: header and title share one surface; the yellow fades out to the right and downwards instead of ending in an edge */
  --page-wash: radial-gradient(110% 100% at 100% 0%, #f7e597 0%, rgb(247 229 151 / .7) 30%, rgb(247 229 151 / 0) 72%) top / 100% 640px no-repeat, linear-gradient(#fafafa, #ffffff) top / 100% 640px no-repeat;
  --radius: 3px;
  --maxw: 1232px;
  --gutter: clamp(16px, 3vw, 30px);
  --sans: 'Kumbh Sans', Helvetica, Arial, sans-serif;
  --head: 'Saira', 'Kumbh Sans', Helvetica, Arial, sans-serif;
  --ts: 1;
  --lh: 1.65;
  --ls: normal;
  --ws: normal;
  color-scheme: light;
}
html[data-ts="112"] { --ts: 1.12 } html[data-ts="125"] { --ts: 1.25 } html[data-ts="150"] { --ts: 1.5 } html[data-ts="175"] { --ts: 1.75 } html[data-ts="200"] { --ts: 2 }
html[data-spacing="on"] { --lh: 2; --ls: .12em; --ws: .16em; }
html[data-font="dyslexic"] { --sans: 'OpenDyslexic', sans-serif; --head: 'OpenDyslexic', sans-serif; }
/* High contrast: light */
html[data-contrast="light"] {
  --yellow: #ffffff; --yellow-light: #ffffff; --navy: #000033; --navy-2: #000033; --grey: #ffffff; --ink: #000000; --heading: #000000; --muted: #1a1a1a;
  --line: #000000; --field: #000000; --link: #00007a; --focus: #c00000; --hero-page: #ffffff; --page-wash: none;
}
/* High contrast: dark */
html[data-contrast="dark"] {
  --yellow: #000000; --yellow-light: #000000; --navy: #000000; --navy-2: #0d0d0d; --grey: #000000; --white: #000000; --ink: #ffffff; --heading: #ffffff; --muted: #f0f0f0;
  --line: #ffffff; --field: #ffffff; --link: #ffe066; --focus: #7fd0ff; --on-navy: #ffffff; --hero-page: #000000; --page-wash: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--ts)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1.0625rem/var(--lh) var(--sans); letter-spacing: var(--ls); word-spacing: var(--ws);
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word; overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.2; color: var(--heading); margin: 0 0 .6em; hyphens: auto; }
h1 { font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3rem); color: var(--navy); }
p { margin: 0 0 1.1em; }
kbd { font: 600 .85em var(--sans); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: .05em .4em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Draft notice on published previews (PREVIEW_BANNER=1) */
.preview-banner { margin: 0; padding: .5rem var(--gutter); background: var(--navy); color: #fff; font-size: .9rem; text-align: center; }
.preview-banner strong { color: #f2db8c; text-transform: uppercase; letter-spacing: .06em; margin-right: .3em; }

/* Skip link */
.skip { position: absolute; left: 16px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: .75rem 1.1rem; font-weight: 700; transform: translateY(-120%); }
.skip:not(:focus) { clip-path: inset(50%); }
.skip:focus { transform: translateY(12px); }
main:focus { outline: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .55em 1.4em; border: 1px solid var(--navy-2); border-radius: var(--radius); background: var(--navy-2); color: #fff; font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; max-width: 100%; }
.btn:hover { background: var(--navy); }
.btn--small { min-height: 40px; padding: .4em 1em; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--navy-2); }
.btn--ghost:hover { background: var(--grey); }
html[data-contrast="dark"] .btn { background: #ffe066; color: #000; border-color: #ffe066; }
html[data-contrast="dark"] .btn--ghost { background: transparent; color: #ffe066; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Header (arrangement of the existing site: logo centred, menu below; larger logo and menu) ---------- */
.top { background: transparent; }
.is-home .top { background: var(--yellow); }
body.is-page { background: var(--page-wash), var(--white); }
.site-header__box { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 10px 20px 0; display: flex; flex-direction: column; align-items: center; }
.is-home .site-header__box { max-width: none; padding-bottom: 6px; }
.is-home .site-header { background: linear-gradient(var(--yellow) 0 58px, var(--yellow-light) 58px); }
html[data-contrast] .site-header__box { border-bottom: 1px solid var(--line); }
.brand { display: block; padding: 4px; min-width: 0; margin-top: -4px; }
.brand img { display: block; width: 860px; max-width: 100%; height: auto; }
html[data-contrast="dark"] .brand img { filter: invert(1) brightness(2); }
.nav { width: 100%; margin-top: 14px; border-top: 1px solid rgb(32 42 84 / .12); }
.is-home .nav { border-top-color: rgb(32 42 84 / .14); }
.nav__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(20px, 2.6vw, 38px); margin: 0; padding: 4px 0; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 5px; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--navy); font: 500 1.125rem/1.4 var(--sans); letter-spacing: var(--ls); text-decoration: none; cursor: pointer; }
.nav__link:hover, .nav__link[aria-current="page"], .nav__item.is-active > .nav__link { border-bottom-color: currentColor; }
html[data-contrast] .nav__link[aria-current="page"], html[data-contrast] .nav__item.is-active > .nav__link { border-bottom-width: 3px; }
.nav__chev { width: 1.05em; height: 1.05em; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 30; min-width: 250px; list-style: none; margin: 0; padding: 6px 0; background: #fff; border-top: 3px solid var(--yellow); box-shadow: 0 12px 32px -8px rgb(32 42 84 / .35); }
html[data-contrast] .sub { background: var(--white); border: 2px solid var(--line); box-shadow: none; }
.sub[hidden] { display: none; }
.sub a { display: block; padding: 11px 20px; color: var(--ink); font-size: 1rem; font-weight: 500; text-decoration: none; }
.sub a:hover, .sub a:focus-visible { background: var(--grey); text-decoration: underline; }
.sub a[aria-current="page"] { font-weight: 700; }
/* Search, accessibility and language as a slim bar above the logo, with visible labels */
.tools { align-self: center; width: min(100%, var(--maxw)); justify-content: flex-end; display: flex; align-items: center; gap: 8px; } /* aligned with the content, also on the full-width home header */
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; width: 44px; height: 44px; padding: 0; border: 1.5px solid transparent; border-radius: 50%; background: transparent; color: var(--navy); font: 700 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.tool .icon { width: 22px; height: 22px; }
.tool:hover { background: rgb(32 42 84 / .08); border-color: rgb(32 42 84 / .25); }
.tool--label, .tool--lang { width: auto; height: 40px; padding: 0 14px; border-color: rgb(32 42 84 / .28); border-radius: 999px; background: rgb(255 255 255 / .55); font-weight: 500; }
.tool--lang { font-weight: 700; padding: 0 12px; min-width: 44px; }
.tool--label:hover, .tool--lang:hover { background: #fff; border-color: var(--navy-2); }
html[data-contrast] .tool--label, html[data-contrast] .tool--lang { background: transparent; border-color: currentColor; }
html[data-contrast="dark"] .tool { color: #fff; }
.tool--menu { display: none; background: var(--navy-2); color: #fff; border-radius: var(--radius); }
.tool--menu:hover { background: var(--navy); }
/* Without JavaScript the menu button jumps to the footer navigation instead of opening the dialog */
html.js .tool--nojs, html:not(.js) .tool--menu[data-open-menu] { display: none !important; }

@media (max-width: 980px) {
  /* Logo stays large on small screens: tools and menu button in the slim bar above it */
  .is-home .site-header { background: linear-gradient(var(--yellow) 0 52px, var(--yellow-light) 52px); }
  .site-header__box { padding: 6px var(--gutter) 14px; }
  .brand { margin: 4px auto 0; }
  .brand img { width: 560px; }
  .nav { display: none; }
  .tools { gap: 6px; }
  .tool--label { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .tool--label .tool__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tool--menu { display: inline-flex; }
}
@media (max-width: 400px) {
  .tool, .tool--label { width: 42px; height: 42px; }
}
/* Larger text: switch to the compact header earlier so nothing overflows */
@media (max-width: 1400px) {
  html[data-ts="150"] .nav, html[data-ts="175"] .nav, html[data-ts="200"] .nav, html[data-ts="125"] .nav, html[data-spacing="on"] .nav, html[data-font="dyslexic"] .nav { display: none; }
  html[data-ts="150"] .tool--menu, html[data-ts="175"] .tool--menu, html[data-ts="200"] .tool--menu, html[data-ts="125"] .tool--menu, html[data-spacing="on"] .tool--menu, html[data-font="dyslexic"] .tool--menu { display: inline-flex; }
  html[data-ts="150"] .tools, html[data-ts="175"] .tools, html[data-ts="200"] .tools { flex-wrap: wrap; justify-content: center; align-self: center; }
}

/* Mobile menu */
.m-nav { width: 100%; max-width: 440px; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--white); color: var(--ink); display: none; flex-direction: column; }
.m-nav[open] { display: flex; animation: slidein .25s ease-out; }
.m-nav::backdrop { background: rgb(10 16 40 / .45); }
.m-nav__top { display: flex; align-items: center; gap: 8px; padding: 12px var(--gutter); background: var(--yellow-light); }
html[data-contrast] .m-nav__top { border-bottom: 1px solid var(--line); }
.m-nav__top .brand { margin-right: auto; }
.m-nav__top .brand img { width: 200px; }
.m-nav nav { flex: 1; overflow-y: auto; padding: 8px var(--gutter); }
.m-nav__list, .m-nav__sub { list-style: none; margin: 0; padding: 0; }
.m-nav__link, .m-nav__toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 54px; padding: .6em 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: 400 1.1rem var(--sans); letter-spacing: var(--ls); text-decoration: none; text-align: left; cursor: pointer; }
.m-nav__toggle .icon { transition: transform .2s; }
.m-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.m-nav__sub a { display: block; padding: .7em 0 .7em 1rem; border-left: 3px solid var(--yellow); margin: 6px 0; color: var(--ink); text-decoration: none; }
html[data-contrast] .m-nav__sub a { border-left-color: currentColor; }
.m-nav [aria-current="page"] { font-weight: 700; text-decoration: underline; }
.m-nav__bottom { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--grey); }
.m-nav__legal { margin: 0; font-size: .95rem; line-height: 2; }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } }

/* ---------- Page heads ---------- */
.page-hero { padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 48px); }
.page-hero h1 { max-width: var(--maxw); margin: 0 auto; padding: 0 0 0 clamp(0px, 2vw, 30px); }
.page-hero h1 { max-width: min(var(--maxw), 100%); word-break: break-word; } /* long compounds at 200 % text must never overflow */
@media (min-width: 981px) { .page-hero h1 { padding-right: min(45%, 520px); } } /* % refers to the window, so cap it: on very wide screens the title must keep its width */
.home-hero { background: var(--yellow); height: clamp(40px, 10vw, 120px); }

/* ---------- Home: service tiles and "about" ---------- */
.cards-band { background: linear-gradient(to bottom, var(--yellow) 0 78px, var(--navy) 78px); padding: 0 var(--gutter) 60px; }
html[data-contrast] .cards-band { background: var(--white); padding-top: 24px; }
.cards { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 190px; padding: 24px 16px; background: var(--navy-2); color: #fff; text-decoration: none; text-align: center; transition: background .2s, transform .2s; }
.card:hover { background: #3a4a8f; transform: translateY(-2px); }
html[data-contrast="light"] .card { background: #fff; color: #000; border: 2px solid #000; }
html[data-contrast="dark"] .card { background: #000; color: #fff; border: 2px solid #fff; }
.card__icon .icon { width: 44px; height: 44px; }
.card__title { font: 700 1.15rem/1.3 var(--head); letter-spacing: var(--ls); overflow-wrap: anywhere; }
@media (max-width: 800px) { .cards { grid-template-columns: minmax(0, 1fr); gap: 20px; } .card { min-height: 128px; } }

.about { background: var(--grey); padding: clamp(56px, 8vw, 104px) var(--gutter); }
.about__inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about__aside { position: sticky; top: 32px; }
.about__title { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); line-height: 1.15; margin: 0 0 .7em; color: var(--navy); }
.about__title::after { content: ''; display: block; width: 72px; height: 4px; margin-top: .45em; background: var(--yellow); }
html[data-contrast] .about__title::after { background: currentColor; }
.about__facts { display: grid; gap: 14px; }
.about__facts p { margin: 0; padding: 16px 18px; background: var(--white); border-left: 4px solid var(--navy-2); font-size: 1.05rem; line-height: 1.55; }
html[data-contrast] .about__facts p { border: 1px solid var(--line); border-left-width: 4px; }
.about__text { max-width: 40rem; }
.about__text p { font-size: 1.125rem; line-height: 1.7; }
.about__pull { font: 400 clamp(1.35rem, 1.1rem + .9vw, 1.7rem)/1.35 var(--head) !important; color: var(--navy); margin: .2em 0 .9em; padding-left: 18px; border-left: 4px solid var(--yellow); }
html[data-contrast] .about__pull { border-left-color: currentColor; }
.about__offer { margin-top: 2em; padding: clamp(20px, 3vw, 32px); background: var(--white); border-top: 4px solid var(--yellow); box-shadow: 0 10px 30px -18px rgb(32 42 84 / .45); }
html[data-contrast] .about__offer { border: 2px solid var(--line); box-shadow: none; }
.about__offer p { font-size: 1.1rem; line-height: 1.55; }
.about__cta { margin: 1.4em 0 0 !important; }
@media (max-width: 900px) { .about__inner { grid-template-columns: minmax(0, 1fr); } .about__aside { position: static; } .about__text { max-width: none; } }

/* ---------- Content pages ---------- */
.page-body { padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(64px, 10vw, 130px); }
.prose { max-width: 820px; margin: 0 auto; }
.prose--wide { max-width: 880px; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.35rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose .chips, .prose .tl__items { padding-left: 0; margin: 0; }
.prose .chips li, .prose .tl__items > li { margin: 0; }
.prose li { margin-bottom: .35em; }
.legal h2 { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); }
.note { background: var(--grey); border-left: 4px solid var(--navy-2); padding: .8rem 1rem; }
.lead-quote { font-size: 1.1rem; }
.media-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: center; margin: 1.5em 0 2em; }
.media-row__img { margin: 0; }
.media-row__img img { display: block; width: 100%; }
.media-row__text p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .media-row { grid-template-columns: minmax(0, 1fr); } }
.doc-figure { margin: 2.5em auto 0; max-width: 360px; }
.doc-figure img { display: block; box-shadow: 0 6px 24px -10px rgb(32 42 84 / .4); }
.support-name { font: 400 1.0625rem/var(--lh) var(--sans); letter-spacing: var(--ls); margin: 1.8em 0 .6em; }
.support-name:first-child { margin-top: 0; }
.support-note { color: var(--ink); }
.page-body .prose .contact-alt { margin-top: 2.5em; }
.form-heading { font: 700 1.1rem var(--sans); color: var(--ink); margin: 0 0 1em; }

/* Qualifications and references: timeline by year (from the September draft, in the colours of the existing site) */
.filter { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin: 2em 0 2.5em; padding: 18px 20px; background: var(--grey); border: 1px solid var(--line); }
.filter__l { font-weight: 700; margin: 0; }
.filter__count { color: var(--muted); margin: 0; font-size: .95rem; }
.chip[aria-pressed="true"] { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
html[data-contrast="dark"] .chip[aria-pressed="true"] { background: #ffe066; color: #000; border-color: #ffe066; }
.chip__n { font-size: .8rem; opacity: .75; margin-left: .35em; }
.tl { --tl-x: 92px; list-style: none; margin: 2em 0 0; padding: 0 0 0 var(--tl-x); position: relative; }
.tl::before { content: ''; position: absolute; left: var(--tl-x); top: 10px; bottom: 0; width: 3px; margin-left: -1px; background: linear-gradient(var(--yellow), var(--navy-2)); }
html[data-contrast] .tl::before { background: currentColor; }
.tl__year { position: relative; padding-left: 32px; margin-bottom: 2.2rem; }
.tl__year::before { content: ''; position: absolute; left: -9px; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 4px solid var(--navy-2); }
html[data-contrast] .tl__year::before { border-color: currentColor; }
.tl__y { position: absolute; right: calc(100% + 22px); top: 0; margin: 0; font: 400 1.6rem/1.1 var(--head); color: var(--navy); }
.tl__items { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.tl__item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: start; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.tl__item:hover { border-color: var(--field); box-shadow: 0 8px 24px -16px rgb(32 42 84 / .5); }
.tl__item[hidden], .tl__year[hidden] { display: none; }
.tl__thumb { display: block; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 4px 12px -6px rgb(32 42 84 / .4); transition: transform .2s; }
.tl__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; }
.tl__thumb:hover { transform: scale(1.04); }
.tl__date { font-size: .9rem; color: var(--muted); margin: 0 0 .25rem; font-weight: 700; }
.tl__title, .prose .tl__title { font: 500 1.15rem/1.35 var(--sans); color: var(--ink); margin: 0 0 .3rem; letter-spacing: var(--ls); }
.tl__issuer { margin: 0; color: var(--muted); font-size: .98rem; }
.tl__text { margin: 0; min-width: 0; }
.tl__item--ref { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 20px; }
.tl__quote { margin: 0 0 .7rem; padding: 0; font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.tl__quote p { margin: 0; }
.tl__item--ref .tl__issuer { font-weight: 700; color: var(--navy-2); }
html[data-contrast="dark"] .tl__item--ref .tl__issuer { color: #ffe066; }
@media (max-width: 700px) {
  .tl { --tl-x: 8px; }
  .tl__y { position: static; margin: 0 0 .7rem; }
  .tl__year { padding-left: 24px; }
  .tl__item { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .tl__item--ref { grid-template-columns: minmax(0, 1fr); }
  .tl__item--ref .tl__thumb { width: 96px; }
}

/* ---------- Contact form ---------- */
.contact-form { max-width: 560px; margin-top: 1.5em; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; margin-bottom: 1.2rem; }
.field label { font-weight: 400; }
.req { color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 46px; padding: .6rem .8rem; border: 1px solid var(--field); border-radius: var(--radius); background: var(--grey); color: var(--ink); font: inherit; letter-spacing: inherit; word-spacing: inherit;
}
html[data-contrast] .field input, html[data-contrast] .field textarea { background: var(--white); }
.field textarea { resize: vertical; min-height: 200px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy); background: #fff; }
.field input[type="file"] { font: inherit; padding: .4rem 0; max-width: 100%; }
.field__hint { margin: 0; font-size: .9rem; color: var(--muted); }
.field__err { margin: 0; color: #a4161a; font-weight: 700; font-size: .95rem; }
html[data-contrast="dark"] .field__err { color: #ff9b9b; }
.field [aria-invalid="true"] { border-color: #a4161a !important; box-shadow: 0 0 0 1px #a4161a; }
.consent-title { font: 700 1.05rem var(--sans); color: var(--ink); margin: 1.6em 0 .5em; }
.field--check { grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: .2rem .6rem; }
.field--check input { width: 24px; height: 24px; margin: .2rem 0 0; accent-color: var(--navy); }
.field--check .field__err { grid-column: 2; }
.form-errors { border: 2px solid #a4161a; padding: 1rem 1.2rem; margin-bottom: 1.5rem; background: #fff5f5; color: #3a0a0c; }
html[data-contrast="dark"] .form-errors { background: #000; color: #fff; border-color: #ff9b9b; }
.form-errors h3 { font: 700 1.05rem var(--sans); margin: 0 0 .4rem; color: inherit; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }
.form-result, .form-sent { margin-top: 1.5rem; padding: 1.2rem 1.4rem; border: 2px solid var(--navy-2); background: var(--grey); }
.form-result h3 { font: 700 1.05rem var(--sans); margin-top: 0; color: var(--ink); }
/* ALTCHA widget, matched to the form fields */
.field--altcha altcha-widget { --altcha-border-radius: 3px; --altcha-color-border: var(--field); --altcha-color-base: var(--grey); --altcha-color-text: var(--ink); --altcha-color-border-focus: var(--focus); --altcha-max-width: 100%; display: block; max-width: 100%; }
.field--altcha[aria-invalid="true"] altcha-widget { --altcha-color-border: #a4161a; }
.field--altcha .altcha, .field--altcha .altcha-main, .field--altcha .altcha-main > div, .field--altcha .altcha-checkbox-wrap { min-width: 0; max-width: 100%; }
.field--altcha .altcha-checkbox-wrap { flex-wrap: wrap; }
.field--altcha .altcha-checkbox input { width: 24px; height: 24px; }
.field--altcha .altcha-footer, .field--altcha .altcha-footer p { font-size: .8rem; }

/* ---------- Simple language ---------- */
.version__note { display: block; max-width: 820px; margin: 32px auto 0; padding: 1rem 1.2rem; background: var(--grey); border-left: 4px solid var(--navy-2); }
.version__note[hidden] { display: none; }
.version--simple .version__note { margin: 32px var(--gutter) 0; }
@media (min-width: 900px) { .version--simple .version__note { margin: 32px auto 0; } }
.simple { max-width: 44rem; margin: 0 auto; font-size: 1.15rem; }
.simple h2 { font-size: 1.6rem; margin-top: 1.4em; }
.simple ul { padding-left: 1.3rem; } .simple li { margin-bottom: .6em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding: 34px var(--gutter) 30px; text-align: center; font-size: .95rem; }
html[data-contrast="light"] .site-footer { background: #fff; color: #000; border-top: 2px solid #000; }
.site-footer a { color: var(--on-navy); }
html[data-contrast="light"] .site-footer a { color: #00007a; }
html[data-contrast="dark"] .site-footer { border-top: 2px solid #fff; }
.site-footer__copy { margin: 0 0 .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.4rem; }
.site-footer li a { display: inline-block; padding: .35rem 0; }
.site-footer__all { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgb(246 248 250 / .2); font-size: .88rem; }
.site-footer__all a { color: rgb(246 248 250 / .85); }

/* ---------- Dialogs ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgb(10 16 40 / .55); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: .35em .95em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 500 .95rem var(--sans); cursor: pointer; max-width: 100%; text-align: left; overflow-wrap: anywhere; }
.chip:hover { border-color: var(--navy-2); background: var(--grey); }
.search-dialog { width: min(720px, calc(100vw - 24px)); max-height: min(80vh, 720px); margin: 10vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 40px 80px -20px rgb(10 16 40 / .5); overflow: hidden; }
.search-dialog[open] { display: flex; flex-direction: column; animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.search-dialog__form { display: flex; gap: 8px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.search-dialog__field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; border: 1px solid var(--field); border-radius: var(--radius); background: var(--white); }
.search-dialog__field input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; font: inherit; color: var(--ink); }
.search-dialog__field input:focus { outline: none; }
.search-dialog__field:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search-dialog__field .btn { white-space: nowrap; flex: none; }
.search-dialog__body { overflow-y: auto; padding: 16px 18px 20px; }
.search-dialog__h { font: 700 .85rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .7rem; }
.search-dialog__status { color: var(--muted); margin: 1rem 0 .5rem; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.results a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: .8rem 1rem; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.results a:hover, .results a:focus-visible { background: var(--grey); border-color: var(--navy-2); }
.results .r__t { font-weight: 700; }
.results .r__h { color: var(--navy-2); font-weight: 500; }
html[data-contrast="dark"] .results .r__h { color: #ffe066; }
.results .r__s { font-size: .92rem; color: var(--muted); }
.results mark { background: #f2db8c; color: #000; padding: 0 .1em; }
.search-page form { margin-bottom: .5rem; }
@media (max-width: 600px) { .search-dialog { margin-top: 12px; max-height: calc(100dvh - 24px); } .search-dialog__field .btn { display: none; } }

.a11y { width: min(440px, 100vw); height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--white); color: var(--ink); }
.a11y[open] { display: flex; flex-direction: column; animation: slidein .22s ease-out; }
.a11y__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.a11y__brand { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.a11y__head h2 { margin: .1em 0 .2em; font-size: 1.7rem; }
.a11y__intro { margin: 0; font-size: .92rem; color: var(--muted); }
.a11y__body { overflow-y: auto; padding: 8px 22px 28px; overscroll-behavior: contain; }
.a11y__group { border: 0; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.a11y__h { font: 700 1rem var(--sans); margin: 0 0 .7rem; padding: 0; color: var(--ink); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper__btn { width: 52px; height: 48px; border: 1px solid var(--navy-2); background: var(--white); color: var(--navy); border-radius: var(--radius); font: 700 1.1rem var(--sans); cursor: pointer; }
html[data-contrast="dark"] .stepper__btn { color: #fff; }
.stepper__btn:disabled { opacity: .4; cursor: not-allowed; }
.stepper__val { min-width: 4.5rem; text-align: center; font-weight: 700; font-size: 1.1rem; }
.radio { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 6px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--navy-2); background: #fbf3d2; }
html[data-contrast] .radio:has(input:checked) { background: transparent; outline: 2px solid currentColor; }
.radio input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.font-dys-sample { font-family: 'OpenDyslexic', sans-serif; font-size: .92rem; }
.switch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 1rem; padding: .7rem 0; cursor: pointer; }
.switch input { grid-column: 2; grid-row: 1 / span 2; appearance: none; width: 50px; height: 30px; border-radius: 999px; background: #8b8fa3; position: relative; cursor: pointer; transition: background .2s; margin: 0; align-self: center; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--navy-2); }
html[data-contrast="dark"] .switch input:checked { background: #ffe066; }
.switch input:checked::after { transform: translateX(20px); }
.switch input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.switch__label { font-weight: 700; grid-row: 1; }
.switch__hint { font-size: .88rem; color: var(--muted); grid-row: 2; }
.a11y__foot { padding-top: 16px; }
.a11y__note { font-size: .85rem; color: var(--muted); }
.a11y__status { min-height: 1.2em; font-weight: 700; margin: .6rem 0; }

.lightbox { width: min(1000px, calc(100vw - 24px)); height: calc(100dvh - 24px); max-height: none; padding: 0; border: 0; border-radius: 6px; background: #11162b; color: #fff; overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; animation: pop .2s ease-out; }
.lightbox::backdrop { background: rgb(5 8 20 / .8); }
.lightbox__fig { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; gap: 12px; }
.lightbox__fig img { max-height: calc(100% - 3.5rem); width: auto; object-fit: contain; background: #fff; }
.lightbox__fig figcaption { text-align: center; font-size: .95rem; max-width: 60ch; color: #e7e9f3; }
.lightbox__bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; border-top: 1px solid rgb(255 255 255 / .15); }
.a11y__head .tool, .search-dialog__close, .m-nav__top .tool:not(.tool--menu) { border-color: rgb(32 42 84 / .25); }
.lightbox .tool { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); }
.lightbox .tool:hover { background: rgb(255 255 255 / .12); }
.lightbox__count { min-width: 5rem; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Settings effects ---------- */
html[data-links="on"] a:not(.btn):not(.card):not(.tl__thumb):not(.tool) { text-decoration: underline 2px !important; background: #fbf3d2; color: #00007a !important; }
html[data-links="on"][data-contrast="dark"] a:not(.btn):not(.card):not(.tl__thumb):not(.tool) { background: transparent; color: #ffe066 !important; }
html[data-links="on"] .btn, html[data-links="on"] .card, html[data-links="on"] .tl__thumb { outline: 2px dashed currentColor; outline-offset: 2px; }
html[data-noimg="on"] .media-row__img, html[data-noimg="on"] .tl__thumb { display: none; }
html[data-noimg="on"] .tl__item { grid-template-columns: minmax(0, 1fr); }
html[data-noimg="on"] .media-row { grid-template-columns: minmax(0, 1fr); }
html[data-motion="on"] *, html[data-motion="on"] *::before, html[data-motion="on"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* Large text, wide spacing or OpenDyslexic: long German compounds may break anywhere instead of overflowing. */
html[data-ts="150"] body, html[data-ts="175"] body, html[data-ts="200"] body, html[data-spacing="on"] body, html[data-font="dyslexic"] body { overflow-wrap: anywhere; }
html[data-ts="150"] .tl, html[data-ts="175"] .tl, html[data-ts="200"] .tl, html[data-spacing="on"] .tl { --tl-x: 8px; }
html[data-ts="150"] .tl__y, html[data-ts="175"] .tl__y, html[data-ts="200"] .tl__y, html[data-spacing="on"] .tl__y { position: static; margin: 0 0 .7rem; }
html[data-ts="150"] .tl__year, html[data-ts="175"] .tl__year, html[data-ts="200"] .tl__year, html[data-spacing="on"] .tl__year { padding-left: 24px; }
html[data-ts="175"] .tl__item, html[data-ts="200"] .tl__item { grid-template-columns: minmax(0, 1fr); }
html[data-ts="175"] .tl__thumb, html[data-ts="200"] .tl__thumb { width: 96px; }
/* At 175–200 % text even the hyphenated half of a long compound title can exceed a 320 px screen: allow breaking anywhere there. */
html[data-ts="175"] .page-hero h1, html[data-ts="200"] .page-hero h1 { word-break: break-all; overflow-x: clip; } /* clip only the trailing letter spacing */
html:not(.js) .filter { display: none; }

/* ---------- Privacy notice (as on musikscheune-wilnsdorf.de, in the colours of this site): no tracking, once per visit ---------- */
.note { width: min(700px, calc(100vw - 2 * var(--gutter))); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px -24px rgb(10 16 40 / .6), 8px 8px 0 var(--yellow); overflow: auto; }
.note[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); animation: pop .3s ease-out; }
.note::backdrop { background: rgb(10 16 40 / .55); backdrop-filter: blur(3px); }
html[data-contrast] .note { box-shadow: none; border: 2px solid var(--line); }
.note__proof { display: grid; gap: 12px; align-content: start; padding: 24px; background: var(--grey); border-right: 1px solid var(--line); }
.note__kicker { margin: 0; font-weight: 700; font-size: .85rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.note ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.note li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: .95rem; line-height: 1.45; }
.note li .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--navy-2); stroke-width: 2.6; }
html[data-contrast="dark"] .note li .icon { color: #ffe066; }
.note__stamp { margin: 4px 0 0; padding-top: 10px; border-top: 1px dashed var(--field); font-size: .9rem; color: var(--muted); }
.note__main { display: grid; gap: 14px; align-content: start; padding: 24px; }
.note__title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 700; line-height: 1.15; color: var(--navy); }
.note__text { margin: 0; color: var(--muted); font-size: 1.05rem; }
.note__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.note__actions .btn { flex: 1 1 100%; min-height: 48px; font-weight: 700; }
.note__actions .btn--ghost { flex: 1 1 auto; }
.note__legal { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: .92rem; }
.note__legal a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 640px) {
  .note[open] { grid-template-columns: minmax(0, 1fr); }
  .note__proof { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .note__main { padding: 18px; }
  .note__stamp { display: none; }
}
.site-footer__consent { margin: .6rem 0 0; }
.site-footer__consent .linkbtn { color: var(--on-navy); font-size: .95rem; min-height: 44px; }
html[data-contrast="light"] .site-footer__consent .linkbtn { color: #00007a; }
