/* Stammtisch 3. Halbzeit – royal blue and yellow from the old logo, night blue for dark areas. */

@font-face { font-family: "Fraunces"; src: url("/static/fonts/fraunces-latin-wght-normal.woff2?v=7f9d191d99") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/static/fonts/fraunces-latin-wght-italic.woff2?v=bceec2ef4d") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-latin-400-normal.woff2?v=b0a8ad37ac") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-latin-400-italic.woff2?v=7a306c56f6") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-latin-500-normal.woff2?v=cd759df8ef") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-latin-600-normal.woff2?v=4b52ddd483") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-latin-700-normal.woff2?v=2d797dd8b3") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlow-condensed-latin-600-normal.woff2?v=215a93c696") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --night: #0b1234;
  --night-2: #131d4f;
  --night-3: #1d2a6b;
  --royal: #2238c4;
  --royal-dark: #18299a;
  --gold: #f6c744;
  --gold-2: #ffd96a;
  --gold-deep: #c7921a;
  --paper: #f7f3ea;
  --paper-2: #efe8d8;
  --card: #fffdf8;
  --ink: #141a33;
  --ink-2: #4a5070;
  --line: #e2d9c4;
  --on-night: #f4efe2;
  --on-night-2: #b9bfdc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(11 18 52 / 6%), 0 10px 30px -12px rgb(11 18 52 / 22%);
  --shadow-lift: 0 2px 4px rgb(11 18 52 / 8%), 0 22px 40px -18px rgb(11 18 52 / 38%);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --label: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--royal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--royal-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; font-variation-settings: "SOFT" 50, "WONK" 0; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
figure { margin: 0; }
strong { font-weight: 600; }
.muted { color: var(--ink-2); }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.kicker {
  font: 600 .95rem/1.2 var(--label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--royal);
  margin: 0 0 .7em;
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

/* --- Emblem (inline SVG, digits in Fraunces) --- */
.emblem-disc { fill: var(--royal); }
.emblem-ring { fill: none; stroke: var(--gold); stroke-width: 4.5; stroke-linecap: round; }
.emblem-num { fill: var(--gold); font: 700 27px var(--display); text-anchor: middle; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(11 18 52 / 94%);
  border-bottom: 1px solid rgb(246 199 68 / 18%);
  color: var(--on-night);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgb(11 18 52 / 93%); backdrop-filter: blur(10px) saturate(140%); }
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-right: auto; }
.brand:hover { color: inherit; }
.brand-emblem { width: 46px; height: 46px; flex: none; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .brand-emblem { transform: rotate(-120deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-kicker { font: 600 .78rem/1 var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.brand-name { font: 600 1.55rem/1 var(--display); letter-spacing: -.01em; }

.nav-desktop ul { display: flex; gap: 4px; }
.nav-desktop a, .nav-mobile a {
  display: inline-flex; align-items: center;
  color: var(--on-night); text-decoration: none;
  font: 600 1.02rem/1 var(--label); letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 12px; border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.nav-desktop a:hover { background: rgb(255 255 255 / 8%); color: #fff; }
.nav-desktop a[aria-current="page"] { background: var(--gold); color: var(--night); }
.nav-desktop a.nav-accent:not([aria-current]) { color: var(--gold); }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  font: 600 1rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 14px; border: 1px solid rgb(246 199 68 / 45%); border-radius: 999px; color: var(--gold);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-mobile[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile nav {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(300px, calc(100vw - 32px));
  background: var(--night-2); border: 1px solid rgb(246 199 68 / 22%); border-radius: var(--radius);
  box-shadow: 0 24px 48px -16px rgb(0 0 0 / 55%); padding: 10px;
}
.nav-mobile li a { display: flex; width: 100%; padding: 14px 16px; border-radius: 12px; font-size: 1.15rem; }
.nav-mobile li a[aria-current="page"] { background: var(--gold); color: var(--night); }
.nav-mobile li a.nav-accent:not([aria-current]) { color: var(--gold); }

@media (max-width: 1020px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}

/* --- Buttons & chips --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 600 1.05rem/1 var(--label); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 15px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s, background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--night); box-shadow: 0 6px 18px -8px rgb(246 199 68 / 70%); }
.btn-primary:hover { background: var(--gold-2); color: var(--night); }
.btn-ghost { border-color: rgb(244 239 226 / 45%); color: var(--on-night); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 11px 18px; font-size: .95rem; background: var(--royal); color: #fff; }
.btn-small:hover { background: var(--royal-dark); color: #fff; }
.btn-small-ghost { padding: 11px 18px; font-size: .95rem; border-color: var(--royal); color: var(--royal); }
.btn-small-ghost:hover { background: var(--royal); color: #fff; }
.section .btn-primary { box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.more { font: 600 1rem/1 var(--label); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.chip {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  font: 600 .92rem/1 var(--label); letter-spacing: .06em; text-transform: uppercase;
  background: rgb(255 255 255 / 9%); color: var(--on-night); border: 1px solid rgb(255 255 255 / 14%);
}
.chip-link { text-decoration: none; }
.chip-link:hover { border-color: var(--gold); color: var(--gold); }
.chip-gold { background: var(--gold); color: var(--night); border-color: var(--gold); }
.chip-gold:hover { background: var(--gold-2); color: var(--night); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0 0; }

/* --- Dark areas: hero, page head, footer --- */
.hero, .page-head, .section-night, .site-footer, .error-page {
  position: relative; isolation: isolate;
  background: radial-gradient(1200px 500px at 85% -10%, rgb(34 56 196 / 55%), transparent 60%), var(--night);
  color: var(--on-night);
}
.hero::before, .page-head::before, .error-page::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/static/img/pitch.svg?v=7ed665e3f0") center / cover no-repeat;
  opacity: .9;
}
.hero .kicker, .page-head .kicker, .section-night .kicker, .error-page .kicker { color: var(--gold); }
.hero a:not(.btn), .page-head a:not(.btn):not(.chip), .section-night a, .site-footer a { color: var(--on-night); }

.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(3rem, 9vw, 6.6rem); font-weight: 700; line-height: .95; margin-bottom: .35em; letter-spacing: -.025em; }
.hero-title .accent { color: var(--gold); font-style: italic; font-weight: 600; }
.hero-lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--on-night-2); max-width: 38ch; margin-bottom: 1.1em; }
.beats { display: grid; gap: 14px; margin: 0 0 2.2em; counter-reset: none; }
.beats li { display: flex; align-items: center; gap: 16px; font: italic 500 clamp(1.3rem, 2.6vw, 1.75rem)/1.25 var(--display); }
.beat-num {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 2.5px solid var(--gold); color: var(--gold); background: var(--royal);
  font: normal 700 1.35rem/1 var(--display);
}
.hero-art { position: relative; display: grid; place-items: center; }
.hero-emblem { width: min(100%, 380px); filter: drop-shadow(0 30px 50px rgb(0 0 0 / 45%)); animation: settle 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.hero-glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgb(246 199 68 / 30%), transparent 65%); filter: blur(20px); }
@keyframes settle { from { transform: rotate(-120deg) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-emblem { animation: none; }
  .brand:hover .brand-emblem { transform: none; }
  * { scroll-behavior: auto !important; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; justify-self: start; }
  .hero-emblem { width: 120px; }
  .hero-glow { inset: -20%; }
}

.page-head { padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 6vw, 72px); }
.page-head h1 { margin-bottom: .25em; }
.page-head .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--on-night-2); max-width: 60ch; margin: 0; }
.lead { font-size: 1.25rem; }

/* --- Sections --- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-tight { padding-top: clamp(28px, 5vw, 48px); }
.section-alt { background: var(--paper-2); }
.section-night { padding: clamp(48px, 8vw, 96px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 4px 24px; margin-bottom: 28px; }
.section-head .kicker { flex-basis: 100%; margin: 0; }
.section-head h2 { margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* --- Album cards --- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 24px; }
.album-grid-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .album-grid-featured { grid-template-columns: 1fr 1fr; } .album-grid-featured > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .album-grid-featured { grid-template-columns: 1fr; } }
.album-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: inherit; }
.album-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-2); }
.album-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.album-card:hover .album-card-media img { transform: scale(1.05); }
.album-card-count {
  position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgb(11 18 52 / 82%); color: var(--gold); font: 600 .9rem/1 var(--label); letter-spacing: .06em; text-transform: uppercase;
}
.album-card-body { display: block; padding: 18px 20px 22px; }
.album-card-when { display: block; font: 600 .9rem/1.2 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--royal); margin-bottom: 6px; }
.album-card-title { font-size: 1.4rem; margin: 0; }
.album-card-more { background: var(--night); color: var(--on-night); border-color: var(--night-3); }
.album-card-more:hover { color: var(--on-night); }
.album-card-more .album-card-when { color: var(--gold); }
.more-media { display: grid; place-items: center; background: url("/static/img/pitch.svg?v=7ed665e3f0") center / cover, var(--night-2); }
.more-emblem { width: 38%; opacity: .95; }

/* --- Gallery --- */
.gallery-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 1.6em 0 .7em; font-size: clamp(1.5rem, 3vw, 2rem); }
.gallery-title:first-child { margin-top: 0; }
.gallery-title .muted { font: 600 .95rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 230px), 1fr)); gap: 10px; }
.gallery li { display: flex; flex-direction: column; gap: 6px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--paper-2); }
.gallery-portrait .tile { aspect-ratio: 3 / 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(11 18 52 / 10%); pointer-events: none; }
.tile:hover img { transform: scale(1.06); filter: saturate(1.1); }
.tile-caption { font-size: .95rem; line-height: 1.35; color: var(--ink-2); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.pager a:hover { border-color: var(--royal); color: var(--ink); }
.pager .muted { font: 600 .9rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.pager strong { font: 600 1.2rem/1.25 var(--display); }
.pager-next { text-align: right; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager-next { text-align: left; } }

/* --- Start page: dates, poster, sponsored child, year strip --- */
.card-termine h2, .card-poster h2 { margin-bottom: .2em; }
.mini-dates { margin: 20px 0 24px; border-top: 1px solid var(--line); }
.mini-dates li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.35; }
.mini-date { flex: none; width: 64px; font: 700 1.05rem/1.3 var(--display); color: var(--royal); }
.poster { display: block; margin: 18px 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.poster:hover { transform: rotate(-.6deg) scale(1.01); }

.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature-media { display: flex; justify-content: center; gap: 0; padding: 20px 0; }
.feature-media .polaroid { width: min(46%, 230px); }
.feature-media .polaroid + .polaroid { margin-left: -24px; margin-top: 48px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }
.polaroid { display: block; background: #fff; padding: 10px 10px 34px; border-radius: 4px; box-shadow: var(--shadow-lift); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.polaroid img { border-radius: 2px; }
.tilt-left { transform: rotate(-3deg); }
.tilt-right { transform: rotate(2.5deg); }
.polaroid:hover, .postcard:hover { transform: rotate(0) scale(1.03); z-index: 2; position: relative; }

.year-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgb(246 199 68 / 60%) transparent; }
.year-strip li { scroll-snap-align: start; }
.year-strip a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; border-radius: var(--radius); border: 1px solid rgb(246 199 68 / 25%); background: rgb(255 255 255 / 4%); text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s; }
.year-strip a:hover { background: rgb(246 199 68 / 10%); border-color: var(--gold); transform: translateY(-3px); }
.year-strip-year { font: 700 2rem/1 var(--display); color: var(--gold); }
.year-strip-title { font-size: 1rem; line-height: 1.35; color: var(--on-night-2); }

/* --- Dates --- */
.month { font-size: 1.6rem; margin: 0 0 16px; }
.month:not(:first-child) { margin-top: 40px; }
.dates { display: grid; gap: 14px; }
.date-row { display: flex; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.date-badge { flex: none; display: grid; place-items: center; width: 76px; height: 82px; border-radius: 12px; background: var(--night); color: var(--on-night); border-bottom: 5px solid var(--gold); }
.date-day { font: 700 2.1rem/1 var(--display); }
.date-month { font: 600 .9rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: -10px; }
.date-body h3 { margin: 0 0 4px; }
.date-body p { margin: 0; }

/* --- Chronicle --- */
.timeline { display: grid; gap: clamp(40px, 6vw, 64px); }
.timeline-year { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: start; }
.timeline-label { position: sticky; top: calc(var(--header-h) + 20px); font: 700 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); color: var(--royal); margin: 0; }
.timeline-entries { display: grid; gap: 18px; border-left: 3px solid var(--gold); padding-left: 28px; }
.timeline-entry { position: relative; }
.timeline-entry::before { content: ""; position: absolute; left: -41px; top: 30px; width: 17px; height: 17px; border-radius: 50%; background: var(--royal); border: 3px solid var(--gold); }
.timeline-entry h3 { font-size: 1.55rem; }
.timeline-content.has-media { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: start; }
.timeline-media { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.timeline-media:hover { transform: scale(1.02); }
.timeline-entry .actions { margin: 16px 0 0; }
.timeline-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 4px; text-decoration: none; }
.timeline-thumbs picture { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--paper-2); }
.timeline-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.timeline-thumbs:hover img { transform: scale(1.06); }
@media (max-width: 760px) {
  .timeline-year { grid-template-columns: 1fr; gap: 12px; }
  .timeline-label { position: static; }
  .timeline-entries { padding-left: 20px; }
  .timeline-entry::before { left: -32px; }
  .timeline-content.has-media { grid-template-columns: 1fr; }
  .timeline-media { max-width: 320px; }
}

/* --- Reports --- */
.banner { background: var(--night); }
.banner img { width: 100%; max-height: 300px; object-fit: cover; }
.report { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .report { grid-template-columns: 1fr; } }
.prose { font-size: 1.15rem; line-height: 1.7; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose > :last-child { margin-bottom: 0; }
.intro { margin-bottom: clamp(32px, 5vw, 56px); }
.aside-title { font-size: 1.5rem; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; margin-bottom: 32px; }
.podium li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.podium-1 { order: 2; }
.podium-2 { order: 1; }
.podium-3 { order: 3; }
.podium-photo { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; border: 4px solid var(--card); box-shadow: var(--shadow-lift); }
.podium-1 .podium-photo { border-color: var(--gold); transform: translateY(-14px); }
.podium-photo img { width: 100%; height: 100%; object-fit: cover; }
.podium-place { font: 700 1.6rem/1 var(--display); color: var(--royal); }
.podium-1 .podium-place { color: var(--gold-deep); }
.podium-name { font-weight: 600; line-height: 1.25; }
.certificates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.certificate { display: block; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.certificate:hover { transform: scale(1.04) rotate(-1deg); }
.aside-images { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aside-images figure:first-child { grid-row: span 2; }
.aside-images a { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.aside-images img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: .95rem; color: var(--ink-2); margin-top: 8px; line-height: 1.35; }

.results { columns: 3 260px; column-gap: 32px; counter-reset: none; }
.results li {
  break-inside: avoid; display: grid; grid-template-columns: 3ch minmax(0, 1fr) auto; gap: 12px; align-items: baseline;
  padding: 9px 4px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.results-place { font-weight: 600; color: var(--ink-2); text-align: right; }
.results-points { font-weight: 600; color: var(--royal); }
.results .top { background: var(--card); border-radius: 8px; padding-inline: 10px; border-bottom-color: transparent; margin-bottom: 4px; box-shadow: var(--shadow); }
.results .top-1 { background: var(--gold); }
.results .top-1 .results-points, .results .top-1 .results-place { color: var(--night); }
.results .top .results-name { font-weight: 600; }

/* --- Sponsored child --- */
.kids { display: grid; gap: 28px; }
.kid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.kid-current { border: 2px solid var(--gold); }
.kid-photos { display: flex; justify-content: center; gap: 18px; padding: 10px; }
.kid-photos figure { width: min(48%, 220px); text-align: center; }
.kid-photos figure:nth-child(2) { margin-top: 36px; }
.kid-photos figure:first-child .polaroid { transform: rotate(-2.5deg); }
.kid-photos figure:nth-child(2) .polaroid { transform: rotate(2deg); }
.kid-photos .polaroid:hover { transform: rotate(0) scale(1.03); }
.kid-text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
@media (max-width: 820px) { .kid { grid-template-columns: 1fr; } }

/* --- Contact --- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-card { background: var(--night); color: var(--on-night); border-color: var(--night-3); }
.contact-card .kicker { color: var(--gold); }
.contact-list { display: grid; gap: 16px; margin-top: 20px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-label { font: 600 .9rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-2); }
.contact-list a { color: var(--gold); font-size: 1.4rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.postcards { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; align-items: flex-start; }
.postcard { background: #fff; padding: 10px; border-radius: 4px; box-shadow: var(--shadow-lift); width: min(100%, 300px); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.postcard a { display: block; }
.postcard img { width: 100%; }

/* --- Members --- */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 24px 18px; }
.member { text-align: center; }
.member-photo { display: block; aspect-ratio: 200 / 227; border-radius: 50% 50% 14px 14px; overflow: hidden; border: 4px solid var(--card); box-shadow: var(--shadow-lift); margin-bottom: 12px; background: var(--paper-2); transition: transform .25s; }
.member-photo:hover { transform: translateY(-3px); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.3rem; margin: 0 0 2px; }
.member p { margin: 0; }

/* --- Error pages --- */
.error-page { min-height: 62vh; display: grid; align-items: center; padding: 80px 0; text-align: left; }
.error-code { font: 700 clamp(5rem, 18vw, 10rem)/.9 var(--display); color: var(--gold); margin: 0 0 .1em; }
.error-page .lead { color: var(--on-night-2); max-width: 52ch; }

/* --- Footer --- */
.site-footer { padding: 56px 0 0; border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-emblem { width: 64px; flex: none; }
.footer-title { font: 600 .95rem/1.2 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.site-footer p { color: var(--on-night-2); }
.site-footer strong { color: var(--on-night); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-links { columns: 2; column-gap: 24px; }
.footer-links li { margin-bottom: 8px; }
.footer-base p { margin: 0; padding-block: 20px; border-top: 1px solid rgb(255 255 255 / 10%); font: italic 500 1.05rem/1.4 var(--display); color: var(--gold); }

/* --- Lightbox (site.js) --- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(6 9 28 / 98%); color: var(--on-night); overflow: hidden;
}
.lightbox::backdrop { background: rgb(6 9 28 / 85%); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.lb-count { font: 600 1rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.lb-tools { display: flex; gap: 8px; align-items: center; }
.lb-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 20%); background: rgb(255 255 255 / 6%); color: var(--on-night);
  font: 600 1.5rem/1 var(--body); cursor: pointer; text-decoration: none; transition: background-color .2s, border-color .2s;
}
.lb-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.lb-btn svg { width: 22px; height: 22px; }
/* A fixed 1fr track on both levels: with an auto row the track grows to the photo's natural
   height and max-height: 100% no longer limits tall portrait scans (bottom got cut off). */
.lb-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); padding: 0 72px; min-height: 0; touch-action: pan-y pinch-zoom; }
.lb-frame { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; }
.lb-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgb(0 0 0 / 60%); transition: opacity .2s; }
.lb-frame img.is-loading { opacity: .3; }
.lb-frame img.can-zoom { cursor: zoom-in; }
/* Original size, e.g. to read the newspaper clippings; block layout so wide images scroll from the left edge. */
.lb-frame.is-zoomed { display: block; overflow: auto; text-align: center; overscroll-behavior: contain; }
.lb-frame.is-zoomed img { display: inline-block; max-width: none; max-height: none; vertical-align: top; cursor: zoom-out; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-caption { min-height: 56px; padding: 14px 20px 20px; text-align: center; font: italic 500 1.15rem/1.4 var(--display); color: var(--on-night); }
@media (max-width: 640px) {
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -64px; transform: none; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-caption { padding-inline: 76px; }
}
html.lb-open { overflow: hidden; }

@media print {
  .site-header, .site-footer, .pager, .actions { display: none; }
  .hero, .page-head { background: none; color: #000; }
  .hero::before, .page-head::before { display: none; }
}
