/* Self-hosted fonts (OFL). Figtree for text and headings, Fraunces italic as accent. */
@font-face { font-family: 'Figtree'; src: url(../fonts/figtree.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; font-style: italic; src: url(../fonts/fraunces-italic.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --sky: #e2f2fb; --mist: #f4f9fc; --white: #ffffff;
  --ink: #0f2a3d; --ink-2: #4b6272; --rule: #d9e7ef;
  --sba-blue: #009ee2; --blue-text: #00699b;
  --b1: #d4ecf8; --b2: #b3dcf1; --b3: #7cc3e8; --b4: #2f8ec7; --deep: #0b4f7a; --night: #083a5a;
  --font: 'Figtree', system-ui, sans-serif; --accent: 'Fraunces', Georgia, serif;
  --wrap: 1120px;
  --logo-gap: #d7eefa;
  /* the pocket-square colours of the choir outfit, one per voice */
  --v-t1: #3fae5a; --v-t2: #f2b81f; --v-b1: #e0483c; --v-b2: #f08a2b;
  --curtain: #13284a; --card: #ffffff; --line: var(--rule); --cream-2: var(--mist);
  /* landscape, day */
  --l1: #d4ecf8; --l2: #b3dcf1; --river: #f3fafe; --l3: #7cc3e8; --t3: #5fb2e0; --l4: #2f8ec7; --t4: #2a84bb; --front: #0b4f7a;
  --house: #2f8ec7; --roof: #2f8ec7; --outline: rgba(16,50,74,0); --sun: rgba(255,255,255,.8);
  --win: #cfe9f7; --mistc: #ffffff;
}
/* landscape, evening */
html.night { --house: #1e355e; --roof: #1e355e; --outline: rgba(16,50,74,0); --l1: #5a6f99; --l2: #465e8b; --river: #d9ab8c; --l3: #2f4a78; --t3: #284270; --l4: #1e355e; --t4: #1a2f55; --front: #13284a;
  --win: #ffd27a; --mistc: #f3c39c; --logo-gap: #0c1b36; }
html { font-size: 112.5%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1rem/1.7 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-text); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 750; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
em.a { font-family: var(--accent); font-style: italic; font-weight: 450; letter-spacing: -.01em; color: var(--sba-blue); font-variation-settings: 'opsz' 96; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.over { display: inline-block; font-size: .85rem; font-weight: 650; color: var(--blue-text); background: var(--sky); padding: .35rem .95rem; border-radius: 999px; margin: 0 0 1.1rem; }
.hero .over { background: rgba(255,255,255,.65); transition: background 1.2s, color 1.2s; }
.night .hero .over { background: rgba(255,255,255,.1); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sba-blue); outline-offset: 3px; border-radius: 6px; }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 58px; padding: .8rem 1.6rem; border-radius: 18px; font: 650 1.05rem/1 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn-primary { background: var(--sba-blue); color: #fff; box-shadow: 0 7px 0 var(--deep); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--deep); }
.btn-quiet { color: var(--ink); background: #fff; box-shadow: 0 7px 0 #cdeaf8; }
.btn-quiet:hover { background: #fff; }
.btn svg { width: 20px; height: 20px; }

/* ── Header ── */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.header.solid { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--rule); --logo-gap: #fff; }
.header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.brand { display: flex; color: var(--ink); }
.brand .logo { height: 52px; width: auto; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .4rem 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover { border-color: var(--sba-blue); }
.menu-btn { display: none; }
/* evening: light header text over the dark sky, but not on the white header (scrolled or menu open) */
.night body:not(.nav-open) .header:not(.solid) :is(.brand, .nav a, .mode, .menu-btn) { color: #fff; }
.night body:not(.nav-open) .header:not(.solid) .menu-btn { background: transparent; border-color: rgba(255,255,255,.5); }
.mode { all: unset; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; opacity: .85; }
.mode:hover { opacity: 1; } .mode:focus-visible { outline: 3px solid var(--sba-blue); }
.mode svg { width: 20px; height: 20px; } .mode .m { display: none; } .night .mode .s { display: none; } .night .mode .m { display: block; }

/* ── Hero with landscape ── */
.hero { position: relative; background: linear-gradient(180deg, #d7eefa 0%, var(--sky) 40%, #f2f9fd 75%); padding-top: 124px; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 34%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 37% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 10%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 6%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 42%, #fff 50%, transparent 51%),
    linear-gradient(180deg, #0c1b36 0%, #17305a 38%, #3d5a8a 62%, #c99a8e 82%, #f1c29a 100%); }
.night .hero::before { opacity: 1; }
.hero h1, .hero .lead, .hero .over, .hero em.a { transition: color 1.2s; }
.night .hero h1 { color: #fff; } .night .hero .lead { color: #d3def0; } .night .hero .over { color: #f3c79f; } .night .hero em.a { color: #8fd6f6; }
.night .hero .btn-primary { background: #fff; color: var(--night); box-shadow: 0 7px 0 #8fa6c4; }
.night .hero .btn-quiet { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.land .l1 { fill: var(--l1); } .land .l2 { fill: var(--l2); } .land .l3 { fill: var(--l3); } .land .t3 { fill: var(--t3); }
.land .l4 { fill: var(--l4); } .land .t4 { fill: var(--t4); } .land .front { fill: var(--front); } .land .win { fill: var(--win); }
.land .river { stroke: var(--river); }
.land .house { fill: var(--house); stroke: var(--outline); stroke-width: 2.5; stroke-linejoin: round; }
.land .roof { fill: var(--roof); stroke: var(--outline); stroke-width: 2.5; stroke-linejoin: round; }
.land .house, .land .roof { transition: fill 1.4s, stroke 1.4s; }
.land .sun { fill: var(--sun); animation: sunpulse 8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sunpulse { 50% { transform: scale(1.06); } }
.cloud { animation: drift 48s linear infinite; transition: opacity 1.2s; } .cloud.c2 { animation-duration: 70s; animation-delay: -30s; }
@keyframes drift { from { transform: translateX(-260px); } to { transform: translateX(1800px); } }
.night .cloud { opacity: 0; }
/* notes flying up like birds (from B) */
.flying { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.flying span { position: absolute; bottom: 22%; font-size: 1.6rem; color: var(--deep); opacity: 0; animation: fly 9s ease-in infinite; transition: color 1.2s; }
.night .flying span { color: #cfe2f7; }
@keyframes fly { 0% { opacity: 0; transform: translate(0,0) rotate(0); } 15% { opacity: .7; } 100% { opacity: 0; transform: translate(var(--dx), -420px) rotate(var(--rot)); } } .land .mist-stop { stop-color: var(--mistc); }
.land .l1, .land .l2, .land .l3, .land .t3, .land .l4, .land .t4, .land .front, .land .win, .land .river, .land .mist-stop { transition: fill 1.4s, stroke 1.4s, stop-color 1.4s; }
.sun, .flock { transition: opacity 1.2s; } .night .sun, .night .flock { opacity: 0; }
.moon, .stars { opacity: 0; transition: opacity 1.4s; } .night .moon, .night .stars { opacity: 1; }
.star { animation: twinkle 3s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .2; } }
.night .win { animation: glow 4s ease-in-out infinite alternate; }
@keyframes glow { to { opacity: .65; } }
/* Thursday 20:00–21:30: notes rise from the village */
.music { opacity: 0; } .probe .music { opacity: 1; }
.music text { font: 900 22px var(--font); fill: var(--win); animation: rise 3.6s ease-out infinite; }
.music text:nth-child(2) { animation-delay: 1.2s; } .music text:nth-child(3) { animation-delay: 2.4s; }
@keyframes rise { from { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } to { opacity: 0; transform: translate(26px, -90px); } }
.live { display: none; } .probe .live { display: inline-flex; align-items: center; gap: .5rem; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #ff6b5a; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.band { transition: background 1.4s; }
.hstaff line:not(.hstem) { stroke: rgba(16,50,74,.24); stroke-width: 1.5; stroke-dasharray: 760; stroke-dashoffset: 760; animation: drawl 2.2s cubic-bezier(.6,0,.2,1) forwards; transition: stroke 1.2s; }
@keyframes drawl { to { stroke-dashoffset: 0; } }
.night .hstaff line:not(.hstem) { stroke: rgba(255,255,255,.24); }
.hnote { fill: var(--deep); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .5s cubic-bezier(.3,1.7,.5,1) forwards; transition: fill 1.2s; }
.hnote.b { fill: var(--sba-blue); }
.night .hnote { fill: #fff; } .night .hnote.b { fill: #8fd6f6; }
@keyframes pop { from { opacity: 0; transform: scale(0) rotate(-20deg); } to { opacity: 1; transform: rotate(-20deg); } }
.hstem { stroke: var(--deep); stroke-width: 2; opacity: 0; animation: fadein .4s forwards; transition: stroke 1.2s; }
.night .hstem { stroke: #fff; }
@keyframes fadein { to { opacity: .8; } }
.hero-text { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 5.8rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-bottom: .35em; }
.hero h1 em.a { font-weight: 400; letter-spacing: -.02em; padding-right: .05em; }
.hero .lead { margin: 0 auto 2.2rem; }
/* home: the big logo opens the page; the "since 1866" pill only shows during rehearsal */
.hero-logo { display: block; height: 120px; width: auto; margin: 0 auto 1.6rem; color: var(--ink); transition: color 1.2s; }
.night .hero-logo { color: #fff; }
.page-index .hero .over { display: none; } .probe .page-index .hero .over { display: inline-block; }
.hero .cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
/* height grows with the width, so wide screens still show the staff and the sun; only a small tuck under the text */
.land { display: block; position: relative; z-index: 1; width: 100%; height: clamp(250px, 34vw, 900px); margin-top: clamp(-50px, -2.5vw, -10px); }
.land .layer { will-change: transform; }
.mist { animation: mist 9s ease-in-out infinite alternate; }
@keyframes mist { from { opacity: .35; transform: translateX(-30px); } to { opacity: .8; transform: translateX(30px); } }
.bird { fill: none; stroke: var(--deep); stroke-width: 2.2; stroke-linecap: round; opacity: .55; }
.flock { animation: flock 46s linear infinite; }
.flock.f2 { animation-duration: 64s; animation-delay: -30s; }
@keyframes flock { from { transform: translateX(-160px); } to { transform: translateX(1760px); } }
.flap { animation: flap 1.1s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes flap { to { transform: scaleY(.55) translateY(2px); } }

/* ── Info tiles overlapping the hill (from B) ── */
.glance { position: relative; z-index: 4; margin-top: -84px; }
.glance .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tile { background: #fff; border-radius: 26px; padding: 1.6rem 1.6rem 1.4rem; box-shadow: 0 18px 50px -28px rgba(16,50,74,.5); display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--ink); transition: transform .25s; }
.tile:hover { transform: translateY(-5px) rotate(-.4deg); }
.tile .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: .5rem; }
.tile .ico svg { width: 28px; height: 28px; }
.tile small { font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.tile .val { font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.tile [data-next-event] strong { display: block; }
.tile [data-next-event] span { font-weight: 400; color: var(--ink-2); font-size: 1rem; }
.tile .sub { color: var(--ink-2); }
.tile .more { margin-top: auto; padding-top: .6rem; color: var(--blue-text); font-weight: 650; }
/* (old band) */
.band { background: var(--front); color: #fff; }
.band .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.band .cell { padding: 1.6rem 1.5rem 1.9rem 0; }
.band .cell + .cell { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.16); }
.band small { display: block; font-size: .75rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: #9fd2f0; margin-bottom: .35rem; }
.band strong, .band [data-next-event] strong { display: block; font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.band span, .band [data-next-event] span { color: #cfe5f3; }
.band a { color: #fff; }

section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.measure { position: absolute; left: max(12px, calc(50% - var(--wrap) / 2 - 64px)); top: clamp(72px, 10vw, 128px); font-family: var(--accent); font-style: italic; font-size: 1.05rem; color: var(--ink-2); opacity: .8; }
.dark .measure { color: #8aa0b8; }
@media (max-width: 1260px) { .measure { display: none; } }
.center { text-align: center; } .center .lead { margin-inline: auto; }

/* ── Mitsingen ── */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.facts { margin: .4rem 0 0; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink-2); font-weight: 500; }
.facts dd { margin: 0; font-weight: 650; font-size: 1.08rem; }
.facts dd span { display: block; font-weight: 400; color: var(--ink-2); font-size: .95rem; }
.note { margin-top: 1.6rem; padding-left: 1.1rem; border-left: 3px solid var(--sba-blue); color: var(--ink-2); }
.note strong { color: var(--ink); }
.friends { margin-top: 2.4rem; color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.checks li { display: flex; gap: .9rem; align-items: flex-start; font-size: 1.08rem; }
.checks svg { flex: none; width: 30px; height: 30px; margin-top: 1px; }
.join-card { background: #fff; border-radius: 26px; padding: .6rem 1.6rem; box-shadow: 0 18px 50px -30px rgba(16,50,74,.55); }
.join-card .facts div:first-child { border-top: 0; } .join-card .facts div:last-child { border-bottom: 0; }
.hint { margin-top: 1.2rem; background: #fff7e3; border-radius: 18px; padding: 1.1rem 1.3rem; display: flex; gap: .9rem; }
.hint svg { flex: none; width: 28px; height: 28px; }
.hint p { margin: 0; }
.friends strong { color: var(--ink); }

/* ── Stage ── */
.stage { position: relative; border-radius: 32px; overflow: hidden; background: var(--curtain); box-shadow: 0 30px 60px -36px rgba(27,36,64,.8); }
.stage svg.choir { display: block; width: 100%; height: auto; }
.stage .hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: rgba(255,255,255,.12); color: #e9eefb; padding: .45rem 1rem; border-radius: 999px; font-weight: 700; font-size: .92rem; white-space: nowrap; backdrop-filter: blur(4px); }
.stage .controls { position: absolute; right: 18px; top: 14px; }
.grp { cursor: pointer; outline: none; }
.grp .lift { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.grp:hover .lift, .grp:focus-visible .lift { transform: translateY(-5px); }
.grp:focus-visible .plate rect { stroke: #fff; stroke-width: 3; }
.singer .body { animation: breathe 4s ease-in-out infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: bottom; }
@keyframes breathe { 50% { transform: scaleY(1.025); } }
.singer .mouth { transform-box: fill-box; transform-origin: center; transition: transform .15s; }
.singer .eyes { transform-box: fill-box; transform-origin: center; }
.singer.blink .eyes { transform: scaleY(.1); }
.is-sounding .mouth { transform: scaleY(3.2) scaleX(.9); animation: sing .45s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes sing { to { transform: scaleY(2.2) scaleX(1); } }
.is-sounding .head { animation: sway 1s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom; animation-delay: var(--d); }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.plate rect { transition: fill .2s; }
.is-sounding .plate rect { fill: #fff; }
.is-sounding .plate text { fill: var(--ink); }
.free { cursor: pointer; }
.free .ghost { stroke-dasharray: 6 5; animation: march 1s linear infinite; }
@keyframes march { to { stroke-dashoffset: -11; } }
.free:hover .ghost, .free:focus-visible .ghost { stroke: var(--v-t2); }
.flynote { font-size: 26px; font-weight: 900; animation: flyup 2s ease-out forwards; pointer-events: none; }
@keyframes flyup { from { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } to { opacity: 0; transform: translate(var(--dx), -110px) rotate(var(--rot)); } }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1rem; margin-top: 1.2rem; }
.legend button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1rem; min-height: 44px; box-sizing: border-box; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); font-weight: 800; }
.legend button i { width: 16px; height: 16px; border-radius: 3px; transform: rotate(45deg); }
.legend button.is-sounding { box-shadow: inset 0 0 0 3px var(--ink); }
.legend button:focus-visible { outline: 3px solid var(--sba-blue); }

.stage-sec { background: var(--mist); }
.stage-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.stage-head .btn.is-sounding { background: var(--v-t2); color: var(--ink); }
/* (old noteheads) */
.voices-sec { background: var(--mist); }
.voices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 880px; margin: 3rem auto 0; }
.voice { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .9rem; }
.voice .head { position: relative; width: 132px; height: 132px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 16px 40px -24px rgba(11,79,122,.55), inset 0 0 0 1.5px var(--rule); transition: transform .3s cubic-bezier(.3,1.5,.5,1), background .3s; }
.voice .head b { font-size: 2.6rem; font-weight: 750; color: var(--deep); letter-spacing: -.03em; transition: color .3s; }
.voice .head::before, .voice .head::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sba-blue); opacity: 0; }
.voice:hover .head { transform: translateY(-4px); }
.voice:focus-visible .head { outline: 3px solid var(--sba-blue); outline-offset: 4px; }
.voice .name { font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.voice .name span { display: block; font-weight: 400; color: var(--ink-2); font-size: .92rem; }
.voice.is-sounding .head { background: var(--sba-blue); transform: scale(1.05); }
.voice.is-sounding .head b { color: #fff; }
.voice.is-sounding .head::before { animation: ripple 1.4s ease-out infinite; }
.voice.is-sounding .head::after { animation: ripple 1.4s .7s ease-out infinite; }
@keyframes ripple { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
.all { margin-top: 2.6rem; }
.all.is-sounding { background: var(--sba-blue); }

/* ── Wir ── */
.us { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.photo { margin: 0; position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 966/593; background: linear-gradient(140deg, var(--b4), var(--deep)); box-shadow: 0 30px 60px -40px rgba(11,79,122,.8); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .ph { display: none; }
.photo.img-missing img { display: none; }
.photo.img-missing .ph { display: grid; place-items: center; position: absolute; inset: 0; color: rgba(255,255,255,.85); --logo-gap: #1f6fa3; }
.photo .ph svg { width: 34%; color: #fff; opacity: .9; }
.photo figcaption { margin-top: .9rem; color: var(--ink-2); font-size: .95rem; }
.quote { font-family: var(--accent); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.35; margin: 0 0 1rem; font-variation-settings: 'opsz' 48; color: var(--ink); }
.quote-by { color: var(--ink-2); font-weight: 600; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem; margin-top: clamp(3.5rem, 7vw, 5rem); border-top: 1px solid var(--rule); }
.people div { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.people small { display: block; color: var(--ink-2); font-size: .85rem; }
.people strong { font-weight: 650; font-size: 1.08rem; }

/* ── Termine: calm list like Hochrhein in Blau, grouped by month ── */
.termine { list-style: none; margin: 2.4rem 0 0; padding: 0; }
.termine > li { min-width: 0; }
.t-month { margin: 2.2rem 0 0; padding-bottom: .5rem; font-size: .85rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-text); border-bottom: 1px solid var(--rule); }
.t-month:first-child { margin-top: 0; }
.t-item { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1.5rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.t-cal { line-height: 1; }
.t-d { display: inline-block; font-size: 2.3rem; font-weight: 300; letter-spacing: -.04em; color: var(--deep); }
.t-w { display: block; margin-top: .3rem; font-size: .85rem; color: var(--ink-2); }
.is-month .t-d { font-size: 1.1rem; font-weight: 500; color: var(--ink-2); }
.t-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 .1rem; hyphens: auto; overflow-wrap: break-word; }
.t-prov { font-weight: 400; color: var(--ink-2); font-size: .95rem; }
.t-when, .t-where { margin: 0; color: var(--ink-2); }
.t-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.t-badge { font-size: .85rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.t-ics { font-size: .88rem; font-weight: 600; color: var(--blue-text); text-decoration: none; white-space: nowrap; }
.t-ics:hover { text-decoration: underline; }
.is-next .t-d { color: var(--sba-blue); font-weight: 500; }
.is-next .t-badge { color: #fff; background: var(--sba-blue); padding: .4rem .85rem; border-radius: 999px; }
.is-past { opacity: .5; }
.t-pastwrap { list-style: none; border-bottom: 1px solid var(--rule); }
.t-pastwrap summary { cursor: pointer; padding: 1rem 0; color: var(--blue-text); font-weight: 600; }
.t-pastwrap .termine { margin: 0; }
.t-pastwrap .t-item:last-child { border-bottom: 0; }
.dates-foot { margin-top: 1.6rem; color: var(--ink-2); }
/* ── Geschichte: five moments joined by slurs (from G/H) ── */
.hist-sec { background: var(--mist); }
.years { list-style: none; padding: 0; margin: 3.5rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; position: relative; }
.years svg.slurs { position: absolute; left: 0; top: -6px; width: 100%; height: 40px; overflow: visible; pointer-events: none; }
.years svg.slurs path { fill: none; stroke: var(--b3); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.2s ease; }
.years.is-in svg.slurs path { stroke-dashoffset: 0; }
.years.is-in svg.slurs path:nth-child(2) { transition-delay: .3s; } .years.is-in svg.slurs path:nth-child(3) { transition-delay: .6s; } .years.is-in svg.slurs path:nth-child(4) { transition-delay: .9s; }
.years li { position: relative; padding-top: 3rem; }
.years li::before { content: ''; position: absolute; left: 0; top: 18px; width: 20px; height: 14px; border-radius: 50%; background: var(--deep); transform: rotate(-20deg); }
.years li:last-child::before { background: var(--sba-blue); }
.years b { display: block; font-size: 1.9rem; font-weight: 300; letter-spacing: -.04em; color: var(--deep); line-height: 1; margin-bottom: .5rem; }
.years h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.years p { color: var(--ink-2); font-size: .97rem; margin: 0; line-height: 1.6; }
.hock { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: baseline; padding-top: 2rem; border-top: 1px solid var(--rule); }
.hock h3 { font-size: 1.6rem; margin: 0; letter-spacing: -.02em; }
.hock p { margin: 0; color: var(--ink-2); }

/* ── Kontakt ── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: end; }
address { font-style: normal; font-size: 1.15rem; line-height: 1.65; color: var(--ink-2); }
address strong { display: block; font-size: 1.5rem; color: var(--ink); font-weight: 750; letter-spacing: -.02em; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; word-break: break-word; transition: color .2s; }
.links a:first-child { border-top: 1px solid var(--rule); }
.links a small { display: block; font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.links a svg { flex: none; width: 26px; height: 26px; color: var(--sba-blue); transition: transform .25s; }
.links a:hover { color: var(--blue-text); } .links a:hover svg { transform: translateX(5px); }

/* ── Footer with hill edge ── */
footer { background: var(--deep); color: #b9d9ee; position: relative; padding: 2.6rem 0 2.8rem; margin-top: 70px; }
footer > svg { position: absolute; left: 0; bottom: 100%; width: 100%; height: 70px; display: block; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
footer .logo { height: 72px; color: #fff; --logo-gap: var(--deep); }
footer nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
footer a { color: #fff; text-decoration: none; } footer a:hover { text-decoration: underline; }

@media (max-width: 1020px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: .5rem 20px 1.2rem; box-shadow: 0 20px 30px -20px rgba(15,42,61,.3); }
  .nav a { font-size: 1.2rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
  .nav-open .nav { display: flex; }
  .nav-open .header { background: #fff; --logo-gap: #fff; }
  .menu-btn { display: inline-flex; margin-left: auto; align-items: center; min-height: 46px; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid rgba(11,79,122,.3); background: rgba(255,255,255,.7); color: var(--ink); font: 650 1rem var(--font); cursor: pointer; }
  .years { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } .years svg.slurs { display: none; }
}
@media (max-width: 860px) {
  .stage { border-radius: 18px; margin-inline: -8px; }
  .stage .hint { display: none; }
  .join, .us, .contact, .hock { grid-template-columns: 1fr; }
  .glance { margin-top: -40px; }
  .glance .wrap { grid-template-columns: 1fr; }
  .band .wrap { grid-template-columns: 1fr; }
  .band .cell, .band .cell + .cell { padding: 1.2rem 0; border-left: 0; }
  .band .cell + .cell { border-top: 1px solid rgba(255,255,255,.16); }
  .voices { grid-template-columns: 1fr 1fr; row-gap: 2.2rem; }
  .people { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .header .wrap { min-height: 70px; gap: .35rem; }
  .brand .logo { height: 42px; }
  .hero-logo { height: 92px; margin-bottom: 1.2rem; }
  .mode { width: 34px; height: 34px; }
  .menu-btn { padding: 0 .85rem; }
  .hero { padding-top: 116px; }
  .hero .sep, .hero .loc { display: none; }
  .land { height: 300px; }
  .voice .head { width: 112px; height: 112px; }
  .people, .years { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: .1rem; }
  .t-item { grid-template-columns: 4rem 1fr; gap: 1rem; }
  .t-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem .8rem; }
  .t-side:empty { display: none; }
}

/* ═════════════════════════════════════════════════════════════
   Multi-page additions
   ═════════════════════════════════════════════════════════════ */
.nav a[aria-current="page"] { border-color: var(--sba-blue); }

/* smaller hero on sub pages, same landscape and day/evening */
.hero.sub { padding-top: 140px; }
.hero.sub h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.hero.sub .lead { margin-bottom: 1rem; }
/* sub pages: a lower strip of the landscape, tall enough to keep the hilltops, below the text */
.hero.sub .land { height: clamp(120px, 24vw, 420px); margin-top: 0; -webkit-mask-image: linear-gradient(transparent, #000 28%); mask-image: linear-gradient(transparent, #000 28%); }
.hero.sub .hstaff, .hero.sub .flock, .hero.sub .sun, .hero.sub .moon { display: none; }

.soft { background: var(--mist); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { font-size: 1.1rem; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.center-note { text-align: center; color: var(--ink-2); margin-top: 2.4rem; font-size: 1.08rem; }
.more-link { font-weight: 700; color: var(--blue-text); text-decoration: none; }
a.more-link:hover { text-decoration: underline; }
.dark .more-link { color: #8fd6f6; }

/* first visit: three steps */
.steps { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li { background: #fff; border-radius: 24px; padding: 1.6rem; box-shadow: 0 18px 44px -30px rgba(16,50,74,.55); }
.steps b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sba-blue); color: #fff; font-size: 1.4rem; margin-bottom: 1rem; box-shadow: 0 5px 0 var(--deep); }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--ink-2); }

/* singers by voice */
.singers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.4rem; }
.singers > div { background: #fff; border-radius: 22px; padding: 1.3rem 1.4rem; box-shadow: inset 0 0 0 1.5px var(--rule); border-top: 6px solid var(--c); }
.singers h3 { display: flex; justify-content: space-between; align-items: baseline; }
.singers h3 span { font-weight: 300; font-size: 1.8rem; letter-spacing: -.03em; color: var(--deep); }
.singers ul { list-style: none; padding: 0; margin: 0; }
.singers li { padding: .45rem 0; border-top: 1px solid var(--rule); }
.singers li small { display: block; color: var(--ink-2); font-size: .82rem; }

/* past events */
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.4rem; }
.articles article { background: var(--mist); border-radius: 24px; padding: 1.6rem 1.7rem; }
.articles time { display: inline-block; font-weight: 700; font-size: 1rem; letter-spacing: .02em; color: var(--deep); margin-bottom: .4rem; }
.articles h3 { margin-bottom: .5rem; }
.articles p { color: var(--ink-2); }
.articles p:last-child { margin-bottom: 0; }
.articles .src { font-size: .88rem; font-style: italic; }

/* teasers */
.teasers { padding-top: 0; }
.page-index .teasers { padding-top: clamp(72px, 10vw, 128px); }
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.teaser { display: flex; flex-direction: column; align-items: flex-start; background: #fff; border-radius: 26px; padding: 1.6rem; color: var(--ink); text-decoration: none; box-shadow: 0 18px 50px -30px rgba(16,50,74,.5), inset 0 0 0 1.5px var(--rule); transition: transform .25s; }
a.teaser:hover { transform: translateY(-5px); }
.teaser h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.teaser p { color: var(--ink-2); }
.teaser .more-link { margin-top: auto; }

/* legal pages */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.12rem; margin: 1.8rem 0 .4rem; }
.legal p { color: var(--ink-2); }
.legal .intro { font-size: 1.15rem; color: var(--ink); background: var(--mist); border-radius: 18px; padding: 1.1rem 1.3rem; }
.legal .small { font-size: .9rem; margin-top: 2.5rem; }
/* to be checked before go-live */
.todo { background: #ffe2c2; box-shadow: 0 0 0 3px #ffe2c2; border-radius: 3px; }

@media (max-width: 960px) {
  .singers { grid-template-columns: 1fr 1fr; }
  .steps, .teaser-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .split, .articles { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .singers, .years { grid-template-columns: 1fr; }
  .hero.sub { padding-top: 110px; }
}

/* ── Photo ── */
.photo-sec { padding-top: 0; }
.photo-wide { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 966 / 593; background: var(--mist); box-shadow: 0 30px 60px -40px rgba(11,79,122,.7); }
.photo-wide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-sec:has(.img-missing) { display: none; }
