/* Absolventenverein HAK | HAS Hall in Tirol – Website-Entwurf
   Swiss-Poster-Stil: große Schrift, flache Farbflächen, ein Raster, die Treppe als Motiv. */

/* Schriften liegen lokal in fonts/ (kein Google-Server, wichtig für den Datenschutz) */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/barlow-condensed-800.woff2) format('woff2'); }

:root {
  --paper: #ffffff;
  --tone: #f1f2f3;
  --ink: #24272a;
  --grey: #5d636a;
  --slate: #3a3b3d;
  --blue: #1570be;
  --green: #4fae3b;
  --orange: #e6671b;
  --yellow: #fdd948;

  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --text: "Barlow", Arial, sans-serif;

  --fs-small: 15px;
  --fs-body: 18px;
  --fs-lead: clamp(21px, 1.75vw, 27px);
  --fs-h2: clamp(44px, 6.4vw, 104px);
  --fs-h3: clamp(26px, 2.6vw, 40px);

  --m: clamp(16px, 2.8vw, 40px);
  --gap: clamp(16px, 1.7vw, 24px);
  --section: clamp(80px, 11vw, 168px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.skip {
  position: absolute; left: var(--m); top: -100px; z-index: 10;
  background: var(--ink); color: #fff; padding: 12px 16px;
}
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.h2, .display, .h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2 { font-size: var(--fs-h2); line-height: 0.92; }
.h3 { font-size: var(--fs-h3); line-height: 1; font-weight: 700; letter-spacing: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.38; text-wrap: pretty; }
.small { font-size: var(--fs-small); }
.muted { color: var(--grey); }
.measure { max-width: 34em; }

/* Farbflächen */
.f-blue { background: var(--blue); color: #fff; }
.f-slate { background: var(--slate); color: #fff; }
.f-yellow { background: var(--yellow); color: var(--ink); }
.f-orange { background: var(--orange); color: var(--ink); }
.f-green { background: var(--green); color: var(--ink); }
.f-tone { background: var(--tone); }

/* Buttons: eckig, flach, Orange = Aufruf zum Handeln */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 22px;
  background: var(--orange); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none;
  border: 0; cursor: pointer;
  transition: background-color 160ms, color 160ms, transform 160ms var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--ease-out); }
.btn:hover { background: var(--ink); color: #fff; }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:active { transform: scale(0.97); }
.f-slate .btn:hover, .f-blue .btn:hover { background: #fff; color: var(--ink); }
.f-orange .btn { background: var(--ink); color: #fff; }
.btn--small { min-height: 44px; padding: 8px 16px; font-size: 19px; }

.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: text-decoration-thickness 120ms, text-underline-offset 120ms;
}
.link:hover { text-decoration-thickness: 4px; text-underline-offset: 6px; }

/* Kopfzeile */
.top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 24px; padding: 20px var(--m);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 46px; height: 36px; flex: none; }
.brand b { display: block; font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1; letter-spacing: 0.01em; }
.brand span { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.nav a:not(.btn) {
  font-weight: 600; font-size: 17px; padding-block: 10px;
  text-decoration: underline transparent 3px; text-underline-offset: 7px;
  transition: text-decoration-color 180ms;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration-color: currentColor; }

/* Erster Bildschirm: Zeile für Zeile gesetzt, zwei Farben */
.hero { display: flex; flex-direction: column; min-height: 100svh; }
.hero--page { min-height: min(100svh, 760px); }
.hero__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(24px, 5vh, 72px) var(--m) var(--m); }
.display { font-size: clamp(44px, 11.9vw, 214px); line-height: 0.86; letter-spacing: -0.015em; text-wrap: nowrap; }
.display--wide { font-size: clamp(56px, 16.5vw, 300px); }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.lines [data-line] { display: block; }
.ink-yellow { color: var(--yellow); }
.ink-orange { color: var(--orange); }
.ink-blue { color: var(--blue); }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.hero__foot p { max-width: 30em; }

/* Abschnitt mit Randspalte */
.about__facts { grid-column: 1 / span 3; display: grid; gap: 24px; align-content: start; }
.about__facts dt { font-size: var(--fs-small); color: var(--grey); }
.about__facts dd { margin: 0; font-weight: 600; }
.about__main { grid-column: 5 / span 8; }
.about__main .h2 { margin-bottom: 0.35em; }
.about__main .lead + .lead { margin-top: 1em; }

/* Die Treppe: fünf Balken, jeder eine Stufe weiter rechts */
.stair { --step: clamp(10px, 4.6vw, 72px); display: grid; gap: clamp(8px, 1.1vw, 18px); margin-top: clamp(32px, 5vw, 72px); }
.stair li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap;
  margin-left: calc(var(--m) + var(--step) * var(--n));
  padding: clamp(10px, 1.3vw, 20px) var(--m) clamp(10px, 1.3vw, 20px) clamp(14px, 2vw, 32px);
  min-height: clamp(72px, 8.6vw, 132px);
}
.stair b { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6.2vw, 100px); line-height: 0.9; text-transform: uppercase; }
.stair span { max-width: 22em; }

/* Bilder */
.photo { overflow: clip; background: var(--tone); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.band { height: clamp(320px, 62vw, 820px); }
figcaption { font-size: var(--fs-small); padding-top: 10px; }
.band-fig figcaption { padding-inline: var(--m); }

/* Dein Abschlussjahr */
.year__ask { grid-column: 1 / span 5; align-self: start; }
.year__ask .h2 { margin-bottom: 0.3em; }
.year__out { grid-column: 7 / span 6; }
.stepper { display: flex; align-items: stretch; gap: 6px; margin-top: 28px; }
.stepper label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.stepper input {
  width: 4.2em; padding: 0 12px; border: 0; background: #fff; color: var(--ink); text-align: center;
  font-family: var(--display); font-weight: 800; font-size: 44px; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield; border-radius: 0;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button {
  width: 64px; min-height: 64px; border: 0; background: var(--ink); color: #fff; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1;
  transition: background-color 140ms, transform 140ms var(--ease-out);
}
.stepper button:hover { background: var(--blue); }
.stepper button:active { transform: scale(0.94); }
.year__num { font-family: var(--display); font-weight: 800; font-size: clamp(120px, 22vw, 380px); line-height: 0.78; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.year__unit { font-family: var(--display); font-weight: 800; font-size: var(--fs-h3); text-transform: uppercase; margin-top: 12px; }
.year__out .lead { margin: 16px 0 28px; max-width: 24em; }

/* Zeilen mit zwei Enden (Termine, Vorstand, Geschichte) */
.rows { display: grid; gap: 6px; }
.row {
  display: grid; grid-template-columns: 11em minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline;
  padding: 18px 20px; background: var(--tone);
}
.row__when { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.row__what b { display: block; font-size: 20px; font-weight: 600; line-height: 1.3; }
.row__where { font-size: var(--fs-small); color: var(--grey); text-align: right; }
.f-slate .row, .f-blue .row { background: rgb(255 255 255 / 0.1); }
.f-slate .row__where, .f-slate .muted { color: #c9cdd2; }

.dates__head { grid-column: 1 / span 5; }
.dates__head .h2 { margin-bottom: 0.3em; }
.dates__head .photo { aspect-ratio: 4 / 3; margin-top: 40px; }
.dates__list { grid-column: 7 / span 6; align-self: start; }
.dates__list .link { display: inline-block; margin-top: 28px; }

/* Zwei große Bild-Verweise */
.doors { row-gap: 40px; }
.door { text-decoration: none; display: block; }
.door:nth-child(1) { grid-column: 1 / span 7; }
.door:nth-child(2) { grid-column: 8 / span 5; }
.door .photo { height: clamp(260px, 36vw, 520px); }
.door img { transition: transform 700ms var(--ease-out); }
.door:hover img { transform: scale(1.04); }
.door .h2 { margin-top: 20px; font-size: clamp(40px, 5vw, 80px); }
.door p { margin-top: 8px; }

/* Ein Wort ist der Button */
.join { display: block; text-decoration: none; background: var(--orange); color: var(--ink); padding: var(--m); transition: background-color 120ms, color 120ms; }
.join:hover, .join:focus-visible { background: var(--ink); color: var(--orange); }
.join__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; min-height: clamp(120px, 16vw, 240px); }
.join__top p { font-size: var(--fs-lead); max-width: 22em; font-weight: 500; }
.join__top svg { width: clamp(36px, 4.4vw, 64px); height: auto; flex: none; transition: transform 300ms var(--ease-out); }
.join:hover .join__top svg { transform: translate(6px, -6px); }
.join__word { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 22.4vw; line-height: 0.8; letter-spacing: -0.02em; white-space: nowrap; margin-left: -0.04em; }

/* Fußzeile */
.foot { padding: var(--section) var(--m) var(--m); }
.foot__name { font-family: var(--display); font-weight: 800; font-size: 12vw; line-height: 0.82; letter-spacing: -0.015em; white-space: nowrap; margin-left: -0.03em; }
.foot__grid { margin-top: clamp(40px, 6vw, 88px); row-gap: 40px; }
.foot__reach { grid-column: 1 / span 6; display: grid; gap: 6px; align-content: start; }
.foot__reach a { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.15; color: var(--yellow); text-decoration: none; overflow-wrap: anywhere; }
.foot__reach a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.foot__col { grid-column: span 3; display: grid; gap: 8px; align-content: start; }
.foot__col a { text-decoration: none; }
.foot__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__legal { margin-top: clamp(48px, 7vw, 96px); display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: var(--fs-small); }
.credits { margin-top: 20px; font-size: var(--fs-small); max-width: 70em; }
.stripes { display: grid; grid-template-columns: repeat(5, 1fr); height: 12px; }

/* Vereinsseite */
.why__text { grid-column: 1 / span 6; align-self: center; }
.why__text .h2 { margin-bottom: 0.35em; }
.why__text .lead + .lead { margin-top: 1em; }
.why__pic { grid-column: 8 / span 5; }
.why__pic .photo { aspect-ratio: 4 / 5; }

.board__head { grid-column: 1 / span 4; }
.board__head p { margin-top: 20px; max-width: 22em; }
.board__list { grid-column: 5 / span 8; display: grid; gap: 6px; }
.person { display: grid; grid-template-columns: clamp(56px, 6vw, 88px) minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 10px 20px 10px 10px; background: var(--tone); }
.person i { aspect-ratio: 1; display: block; }
.person b { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.3vw, 52px); line-height: 1; text-transform: uppercase; }
.person span { font-size: var(--fs-small); color: var(--grey); text-align: right; }
.person span strong { display: block; font-size: var(--fs-body); color: var(--ink); font-weight: 600; }

.history__pics { grid-column: 1 / span 5; display: grid; gap: var(--gap); align-content: start; }
.history__pics .photo:first-child { aspect-ratio: 4 / 3; }
.history__pics .photo--tall { aspect-ratio: 5 / 6; width: 72%; }
.history__main { grid-column: 7 / span 6; }
.history__main .h2 { margin-bottom: 0.3em; }
.history__main .rows { margin-top: 40px; }
.history__main .row { grid-template-columns: 6.5em minmax(0, 1fr); }
.f-slate .row__what span { color: #dfe2e5; }

.alumni__list { margin-top: clamp(40px, 5vw, 72px); display: grid; gap: clamp(40px, 5vw, 72px); }
.alum { align-items: end; }
.alum__year { grid-column: 1 / span 5; font-family: var(--display); font-weight: 800; font-size: clamp(110px, 17vw, 290px); line-height: 0.76; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.alum__text { grid-column: 7 / span 6; }
.alum:nth-child(even) .alum__year { grid-column: 8 / span 5; order: 2; text-align: right; }
.alum:nth-child(even) .alum__text { grid-column: 1 / span 6; order: 1; }
.alum__text .h3 { margin-bottom: 10px; }
.alum__note { margin-top: clamp(48px, 6vw, 88px); }

/* News & Events */
.next { align-items: end; row-gap: 32px; }
.next__date { grid-column: 1 / span 8; }
.next__date .display { font-size: clamp(64px, 13.5vw, 240px); }
.next__info { grid-column: 9 / span 4; }
.next__info .btn { margin-top: 24px; }
.next__pic { grid-column: 1 / -1; height: clamp(260px, 40vw, 560px); margin-top: clamp(16px, 3vw, 48px); }

.cal__head { grid-column: 1 / span 4; }
.cal__head p { margin-top: 20px; max-width: 22em; }
.cal__list { grid-column: 5 / span 8; }

.news__lead { align-items: end; row-gap: 24px; margin-top: clamp(32px, 4vw, 56px); }
.news__lead .photo { grid-column: 1 / span 7; aspect-ratio: 3 / 2; }
.news__lead div { grid-column: 8 / span 5; }
.news__more { margin-top: clamp(48px, 6vw, 88px); row-gap: 48px; }
.news__item { grid-column: span 4; }
.news__item .photo { aspect-ratio: 4 / 3; margin-bottom: 20px; }
.news time { display: block; font-size: var(--fs-small); color: var(--grey); margin-bottom: 8px; }
.news .h3 { margin-bottom: 10px; }
.news__item--plain { background: var(--yellow); padding: 28px; align-self: start; }
.news__item--plain time { color: var(--ink); }

/* Bewegung: nur wo sie etwas sagt, nie ohne Inhalt */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 120ms); }
  .js .hero__foot > * { opacity: 0; transform: translateY(16px); animation: rise 600ms var(--ease-out) 620ms forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .stair li[data-reveal] { transform: translateX(64px); }
  .js .stair li[data-reveal].is-in { transform: none; }
  .js .photo[data-zoom] img { transform: scale(1.08); transition: transform 1600ms var(--ease-out); }
  .js .photo[data-zoom].is-in img { transform: none; }
  .year__num.tick { animation: tick 260ms var(--ease-out); }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes tick { from { transform: translateY(0.06em); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* Tablet */
@media (max-width: 960px) {
  .about__facts { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); order: 2; margin-top: 40px; }
  .about__main, .year__ask, .year__out, .dates__head, .dates__list, .why__text, .board__head, .board__list,
  .history__pics, .history__main, .cal__head, .cal__list, .next__date, .next__info { grid-column: 1 / -1; }
  .year__out, .dates__list, .board__list, .cal__list, .history__main { margin-top: 40px; }
  .why__pic { grid-column: 1 / span 8; margin-top: 40px; }
  .history__pics { grid-template-columns: 3fr 2fr; align-items: end; order: 2; margin-top: 40px; }
  .history__pics .photo--tall { width: 100%; }
  .foot__reach { grid-column: 1 / -1; }
  .foot__col { grid-column: span 6; }
  .news__lead .photo, .news__lead div { grid-column: 1 / -1; }
  .news__item { grid-column: span 6; }
  .alum__year, .alum:nth-child(even) .alum__year { grid-column: 1 / -1; order: 0; text-align: left; }
  .alum__text, .alum:nth-child(even) .alum__text { grid-column: 1 / -1; order: 1; margin-top: 20px; }
}

/* Telefon */
@media (max-width: 640px) {
  :root { --fs-body: 17px; }
  .top { padding-block: 14px; }
  .brand span { display: none; }
  .brand b { font-size: 20px; }
  .brand svg { width: 38px; height: 30px; }
  .nav { width: 100%; justify-content: space-between; gap: 12px; order: 3; }
  .nav .btn { display: none; }
  .top > .btn { display: inline-flex; }
  .hero__foot .btn { width: 100%; justify-content: space-between; }
  .about__facts { grid-template-columns: 1fr 1fr; }
  .stair li { flex-direction: column; align-items: flex-start; justify-content: center; }
  .row { grid-template-columns: 1fr; padding: 16px; }
  .row__where { text-align: left; }
  .history__main .row { grid-template-columns: 1fr; }
  .door:nth-child(n) { grid-column: 1 / -1; }
  .person { grid-template-columns: 56px minmax(0, 1fr); }
  .person span { grid-column: 2; text-align: left; }
  .why__pic { grid-column: 1 / -1; }
  .news__item { grid-column: 1 / -1; }
  .foot__col { grid-column: span 6; }
  .stepper input { flex: 1; }
}
@media (min-width: 641px) { .top > .btn { display: none; } }

/* Nachträge */
.row.f-blue { background: var(--blue); color: #fff; }
.hero__stair { display: block; flex: 1 1 0; min-height: 96px; max-height: 300px; width: 62%; margin-left: auto; margin-right: calc(var(--m) * -1); }
.credits { max-width: 62em; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__stair rect { transform: translateX(420px); animation: line-up 900ms var(--ease-out) forwards; }
  .js .hero__stair rect:nth-child(1) { animation-delay: 620ms; }
  .js .hero__stair rect:nth-child(2) { animation-delay: 540ms; }
  .js .hero__stair rect:nth-child(3) { animation-delay: 460ms; }
  .js .hero__stair rect:nth-child(4) { animation-delay: 380ms; }
  .js .hero__stair rect:nth-child(5) { animation-delay: 300ms; }
}
@media (max-width: 640px) {
  .top > .btn { display: none; }
  .hero__stair { width: 88%; max-height: 220px; }
  .display { font-size: 12.4vw; }
}

.person { grid-template-columns: clamp(56px, 6vw, 88px) minmax(0, 1fr); }
.person p { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 24px; flex-wrap: wrap; }
.person span, .person span strong { font-size: var(--fs-body); color: var(--ink); text-align: left; font-weight: 500; }
.news time { margin: 14px 0 0; }
.credits { max-width: 44em; }
.foot__legal p { max-width: 34em; }

.band img { object-position: center 30%; }
@media (max-width: 640px) {
  .display--wide { font-size: var(--phone, 15vw); }
  .hero--page { min-height: 0; }
  .hero--page .hero__body { padding-top: 40px; gap: 56px; }
}

/* ─────────── Feste Kopfzeile: nimmt die Farbe des Abschnitts darunter an ─────────── */
:root { --head-h: 76px; }
[id] { scroll-margin-top: calc(var(--head-h) + 16px); }
.top {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--head-h); padding-block: 0; flex-wrap: nowrap;
  --hbg: #fff; --hfg: var(--ink); --logo: var(--ink);
  --l1: var(--blue); --l2: var(--green); --l3: var(--slate); --l4: var(--orange); --l5: var(--yellow);
  background: var(--hbg); color: var(--hfg);
  transition: background-color 260ms, color 260ms;
}
.top[data-tone="blue"]   { --hbg: var(--blue);   --hfg: #fff; --logo: #fff; --l1: #fff; --l2: #fff; --l3: #fff; --l4: #fff; --l5: #fff; }
.top[data-tone="slate"]  { --hbg: var(--slate);  --hfg: #fff; --logo: #fff; --l1: #fff; --l2: #fff; --l3: #fff; --l4: #fff; --l5: #fff; }
.top[data-tone="orange"] { --hbg: var(--orange); --hfg: var(--ink); --logo: #fff; --l1: #fff; --l2: #fff; --l3: #fff; --l4: #fff; --l5: #fff; }
.top[data-tone="green"]  { --hbg: var(--green);  --hfg: var(--ink); --logo: #fff; --l1: #fff; --l2: #fff; --l3: #fff; --l4: #fff; --l5: #fff; }
/* Auf Gelb wäre Weiß nicht lesbar: dort steht das Zeichen in Schiefer */
.top[data-tone="yellow"] { --hbg: var(--yellow); --hfg: var(--ink); --logo: var(--ink); --l1: var(--slate); --l2: var(--slate); --l3: var(--slate); --l4: var(--slate); --l5: var(--slate); }
.brand { color: var(--logo); transition: color 260ms; }
.brand__txt { display: block; }
.brand__mark rect { transition: fill 260ms; }
.brand__mark .s1 { fill: var(--l1); } .brand__mark .s2 { fill: var(--l2); } .brand__mark .s3 { fill: var(--l3); }
.brand__mark .s4 { fill: var(--l4); } .brand__mark .s5 { fill: var(--l5); }
.top[data-tone="orange"] .btn { background: var(--ink); color: #fff; }
.top[data-tone="slate"] .btn:hover, .top[data-tone="blue"] .btn:hover, .top[data-tone="orange"] .btn:hover { background: #fff; color: var(--ink); }
.hero { padding-top: var(--head-h); }

/* ─────────── Bildlose Bausteine ─────────── */
.door { padding: clamp(20px, 2.4vw, 36px); min-height: clamp(220px, 24vw, 340px); display: grid; align-content: end; position: relative; transition: transform 300ms var(--ease-out); }
.door .h2 { margin-top: 0; }
.door svg { position: absolute; top: clamp(20px, 2.4vw, 36px); right: clamp(20px, 2.4vw, 36px); width: clamp(32px, 3.6vw, 52px); transition: transform 300ms var(--ease-out); }
.door:hover svg { transform: translate(6px, -6px); }
.door:active { transform: scale(0.99); }
.why__head { grid-column: 1 / span 5; }
.why__text { grid-column: 7 / span 6; align-self: start; }
.news__lead div { grid-column: 1 / span 9; }
.news__item { background: var(--tone); padding: 28px; align-self: start; }
.news__item--plain { background: var(--yellow); }
.next { align-items: center; }

.history__head { grid-column: 1 / span 5; }
.history__main .rows { margin-top: 0; }
.foot__reach p { font-size: var(--fs-body); margin-top: 14px; }

@media (max-width: 960px) {
  .why__head, .why__text { grid-column: 1 / -1; }
  .why__text { margin-top: 24px; }
  .history__head { grid-column: 1 / -1; }
  .news__lead div { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --head-h: 58px; }
  .top { padding-block: 0; }
  .brand__txt { display: none; }
  .nav { width: auto; order: 0; gap: 18px; }
  .nav a:not(.btn) { font-size: 16px; }
}
.history__head .h2 { margin-bottom: 0.3em; }
.news__item--wide { grid-column: 1 / span 6; }
@media (max-width: 960px) {
  .stair li { flex-direction: column; align-items: flex-start; justify-content: center; }
  .news__item--wide { grid-column: 1 / -1; }
}
.cal__list { align-self: start; }

/* ─────────── Rechtsseiten: Impressum, Datenschutz, Mitgliedschaft ─────────── */
.legal { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.legal__nav { grid-column: 1 / span 3; align-self: start; position: sticky; top: calc(var(--head-h) + 32px); display: grid; gap: 10px; font-weight: 600; }
.legal__nav a { text-decoration: none; }
.legal__nav a:hover, .legal__nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.legal__body { grid-column: 5 / span 8; max-width: 44em; }
.legal__body h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3vw, 44px); line-height: 1; margin: 1.6em 0 0.5em; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1.1; margin: 1.4em 0 0.3em; }
.legal__body p, .legal__body ul, .legal__body dl { margin: 0 0 0.9em; }
.legal__body ul { list-style: disc; padding-left: 1.2em; }
.legal__body li { margin-bottom: 0.3em; }
.legal__body a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal__body dl { display: grid; grid-template-columns: minmax(10em, auto) 1fr; gap: 6px 24px; border-top: 2px solid var(--ink); padding-top: 14px; }
.legal__body dt { font-weight: 600; }
.legal__body dd { margin: 0; }
.legal__body .stand { color: var(--grey); font-size: var(--fs-small); margin-top: 2.4em; }
/* Noch offene Angaben: gelb markiert, damit man sie vor dem Livegang sicher findet */
.todo { background: var(--yellow); padding: 0 4px; font-weight: 600; }
.foot__legal nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.foot__legal nav a { text-decoration: none; }
.foot__legal nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 960px) {
  .legal__nav { grid-column: 1 / -1; position: static; grid-auto-flow: column; justify-content: start; gap: 24px; margin-bottom: 40px; }
  .legal__body { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .legal__nav { grid-auto-flow: row; }
  .legal__body dl { grid-template-columns: 1fr; gap: 0; }
  .legal__body dd { margin-bottom: 10px; }
}
