/* Hornschlittenclub Grabs
   Farben aus dem Verein: Tanne (Logo), Clubhemd-Rot, Kufen-Gold, Schnee. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800-latin.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --snow: #f4f7f6;
  --white: #ffffff;
  --ink: #14231f;
  --muted: #52635c;
  --line: #d6dfdb;
  --tanne: #10332b;
  --tanne-2: #1a4a3e;
  --on-tanne: #e8f0ec;
  --on-tanne-muted: #a9c2b8;
  --rot: #c4202b;
  --rot-d: #9e1822;
  --gold: #e0ad4b;
  --slope: 3.5vw;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0; }
h2 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); text-transform: uppercase; letter-spacing: .005em; }
h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .join :focus-visible { outline-color: var(--gold); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--rot); margin: 0 0 .6rem;
}
.on-dark .eyebrow { color: var(--gold); }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: .6rem 1rem; border-radius: 4px;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: .55em 1.2em;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .03em;
  text-transform: uppercase; text-decoration: none; border-radius: 3px; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-rot { background: var(--rot); color: #fff; }
.btn-rot:hover { background: var(--rot-d); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--rot-d); }
.btn-white:hover { background: var(--tanne); color: #fff; }
.more {
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase;
  letter-spacing: .04em; text-decoration: none; border-bottom: 2px solid var(--rot); padding-bottom: 1px;
}
.more:hover { color: var(--rot); }
.on-dark .more { border-color: var(--gold); }
.on-dark .more:hover { color: var(--gold); }

/* Kopfzeile */
.site-head {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.brand span {
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.02;
  text-transform: uppercase;
}
.nav ul { display: flex; gap: clamp(.7rem, 1.6vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .4rem 0; font-family: var(--display); font-weight: 600; font-size: 1.2rem;
  text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--rot); }
.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; margin: auto; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: .7rem 0; font-size: 1.4rem; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border-bottom: 0; }
}

/* Hero */
.hero { position: relative; background: var(--white); overflow: hidden; }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch;
  max-width: 1440px; margin: 0 auto;
}
.hero-text {
  padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(84px, 9vw, 136px);
  padding-left: max(var(--gutter), calc((min(100vw, 1440px) - var(--max)) / 2 + var(--gutter)));
  position: relative; z-index: 2;
}
.hero h1 {
  font-size: clamp(3.4rem, 6.2vw, 6.2rem); line-height: .92; text-transform: uppercase; margin-bottom: 1.5rem;
  letter-spacing: -.005em;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .accent { color: var(--rot); }
.hero h1 span.accent { display: inline; }
.hero-lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; max-width: 30em; margin-bottom: 1.8rem; color: #2a3a35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-photo { position: relative; min-height: 520px; }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.next {
  position: absolute; left: clamp(0px, 1vw, 24px); bottom: clamp(52px, 6vw, 88px); z-index: 3;
  background: var(--rot); color: #fff; padding: .9rem 1.3rem 1rem; max-width: 330px;
  box-shadow: 0 10px 28px rgba(16, 51, 43, .28); text-decoration: none;
}
.next small { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; opacity: .92; }
.next strong { display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.05; text-transform: uppercase; margin: .15rem 0; }
.next span { font-size: 1rem; }

/* Hangkante: diagonaler Übergang wie ein Pistenprofil */
.slope-top { clip-path: polygon(0 var(--slope), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--slope) * -1); position: relative; z-index: 4; }

/* Abschnitte */
section { position: relative; }
.pad { padding: clamp(64px, 8vw, 112px) 0; }
.pad-slope { padding: calc(clamp(64px, 8vw, 112px) + var(--slope)) 0 clamp(64px, 8vw, 112px); }
.on-dark { background: var(--tanne); color: var(--on-tanne); }
.sec-head { margin-bottom: clamp(28px, 4vw, 52px); }

/* Aktuelles + Jahresprogramm */
.termine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(36px, 6vw, 96px); }
.aktuell-box { border-top: 3px solid var(--gold); padding-top: 1rem; margin-top: 1.5rem; color: var(--on-tanne); }
.aktuell-box p { font-size: 1.15rem; }
.prog-year { font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--gold); margin: 0 0 .75rem; }
.prog-year:not(:first-of-type) { margin-top: 2.25rem; }
.prog { list-style: none; margin: 0; padding: 0; }
.prog li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.25rem; align-items: center;
  padding: .85rem 0; border-top: 1px solid rgba(232, 240, 236, .2);
}
.prog li:last-child { border-bottom: 1px solid rgba(232, 240, 236, .2); }
.bib {
  background: #fff; color: var(--ink); text-align: center; border-radius: 4px; padding: .35rem .25rem .4rem;
  font-family: var(--display); line-height: 1; border-top: 7px solid var(--rot);
}
.bib b { display: block; font-size: 2.2rem; font-weight: 800; }
.bib i { display: block; font-style: normal; font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .1rem; }
.bib.offen b { font-size: 1.45rem; padding: .45rem 0 .3rem; }
.prog-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.1; }
.prog li.past { opacity: .5; }
.prog-empty { color: var(--on-tanne-muted); margin: 0; }

/* Aktivitäten */
.acts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.act { background: #fff; display: flex; flex-direction: column; border-bottom: 5px solid var(--tanne); }
.act:nth-child(1), .act:nth-child(2) { grid-column: span 6; }
.act:nth-child(3) { grid-column: span 12; flex-direction: row; }
.act-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.act-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.act:hover .act-img img { transform: scale(1.03); }
.act-body { padding: clamp(20px, 2.5vw, 32px); display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; flex: 1; }
.act-body p { margin: 0; }
.act-body .more { margin-top: auto; }
.act-logo { flex: 0 0 42%; display: flex; align-items: center; justify-content: center; background: #fff; padding: 28px; border-right: 1px solid var(--line); }
.act-logo img { max-width: 380px; width: 100%; }

/* Verein / Mitglied werden */
.join { background: var(--rot); color: #fff; }
.join-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.join figure { margin: 0; }
.join figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.join figcaption { font-size: .95rem; margin-top: .5rem; opacity: .95; }
.join .eyebrow { color: #fff; }
.join h2 { margin-bottom: 1rem; }
.join p { font-size: 1.2rem; }
.join .btn { margin-top: .5rem; }

/* Vorstand + Kontakt */
.team { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.board { list-style: none; margin: 0; padding: 0; }
.board li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; align-items: baseline;
  padding: .9rem 0; border-top: 1px solid var(--line);
}
.board li:last-child { border-bottom: 1px solid var(--line); }
.board span { color: var(--muted); }
.board strong { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; }
.contact { background: var(--tanne); color: var(--on-tanne); padding: clamp(24px, 3vw, 36px); }
.contact h3 { margin-bottom: .75rem; }
.contact a.mail { color: #fff; font-weight: 600; overflow-wrap: anywhere; }

/* Galerie-Band */
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.strip a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--line); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.strip a:hover img { transform: scale(1.05); }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: clamp(24px, 3vw, 36px); }

/* Links */
.linklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); }
.linklist a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); text-decoration: none; min-height: 48px; }
.linklist a:hover strong { color: var(--rot); }
.linklist strong { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.linklist small { color: var(--muted); font-size: .98rem; }
.linklist svg { flex: none; color: var(--rot); }

/* Fusszeile */
.site-foot { background: var(--tanne); color: var(--on-tanne); padding: 48px 0 32px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 1rem; }
.foot-brand img { height: 68px; width: auto; background: #fff; padding: 5px; border-radius: 4px; }
.foot-brand b { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; display: block; line-height: 1.05; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.foot-nav a { display: inline-block; padding: .3rem 0; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; color: #fff; }
.foot-mail { color: #fff; font-weight: 600; overflow-wrap: anywhere; }

/* Unterseiten */
.page-head { background: var(--tanne); color: var(--on-tanne); padding: clamp(48px, 7vw, 88px) 0 calc(clamp(40px, 5vw, 64px) + var(--slope)); }
.page-head h1 { font-size: clamp(3.2rem, 8vw, 6.5rem); text-transform: uppercase; margin-bottom: .6rem; }
.page-head p { font-size: 1.2rem; max-width: 40em; }
.after-head { background: var(--snow); clip-path: polygon(0 var(--slope), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--slope) * -1); padding-top: calc(var(--slope) + 24px); padding-bottom: clamp(48px, 6vw, 88px); position: relative; }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(28px, 4vw, 48px); }
.filters button {
  min-height: 44px; padding: .3em 1em; border: 2px solid var(--tanne); background: transparent; color: var(--tanne); border-radius: 3px;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; cursor: pointer;
}
.filters button:hover { background: rgba(16, 51, 43, .08); }
.filters button[aria-pressed="true"] { background: var(--tanne); color: #fff; }

/* Archiv */
.year { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); padding-bottom: clamp(32px, 4vw, 56px); }
.year-label { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.5rem); line-height: .9; color: var(--tanne); position: sticky; top: 92px; align-self: start; margin: 0; }
.year-items { display: grid; gap: 1rem; border-left: 3px solid var(--line); padding-left: clamp(16px, 3vw, 36px); min-width: 0; }
.entry { background: #fff; padding: clamp(18px, 2.4vw, 28px); position: relative; min-width: 0; }
.entry::before { content: ""; position: absolute; left: calc(clamp(16px, 3vw, 36px) * -1 - 8px); top: 28px; width: 13px; height: 13px; background: var(--rot); transform: rotate(45deg); }
.entry[data-kat="hornschlitten"]::before { background: var(--tanne-2); }
.entry[data-kat="verein"]::before { background: var(--gold); }
.entry-meta { display: flex; flex-wrap: wrap; gap: .3rem .75rem; align-items: center; font-size: .98rem; color: var(--muted); margin-bottom: .3rem; }
.tag { font-family: var(--display); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tanne-2); }
.badge { background: #f7e6e7; color: var(--rot-d); font-weight: 600; font-size: .9rem; padding: .05em .55em; border-radius: 3px; }
.entry h3 { margin-bottom: .5rem; }
.entry .text { max-width: 44em; }
.ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem 1.75rem; margin-top: 1rem; }
.rank h4 { font-family: var(--display); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .25rem; color: var(--muted); }
.rank ol { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rank ol.rest { counter-reset: r 3; }
.rank li { counter-increment: r; display: flex; gap: .55rem; padding: .12rem 0; font-size: 1rem; line-height: 1.35; }
.rank li::before { content: counter(r) "."; flex: none; min-width: 1.55em; font-weight: 600; color: var(--muted); }
.rank ol.top li:first-child { font-weight: 600; }
.rank ol.top li:first-child::before { color: var(--rot); }
.rank details summary { cursor: pointer; font-size: .95rem; color: var(--tanne-2); font-weight: 600; padding: .2rem 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 4px; margin-top: 1rem; }
.thumbs a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.entry-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .9rem; }
.entry-links a { color: var(--rot-d); font-weight: 600; }

/* Galerie */
.gal-group { margin-bottom: clamp(36px, 5vw, 64px); }
.gal-group h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.gal-group h3 { margin: 1.5rem 0 .6rem; font-size: 1.5rem; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; }
.gal-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gal-grid a:hover img { transform: scale(1.04); }

/* Lightbox */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; background: rgba(8, 20, 17, .96); color: #fff; }
.lb::backdrop { background: rgba(8, 20, 17, .96); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb img { max-width: min(100vw, 1400px); max-height: calc(100dvh - 72px); object-fit: contain; }
.lb button { position: absolute; width: 56px; height: 56px; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 3px; cursor: pointer; font-size: 1.8rem; line-height: 1; }
.lb button:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem 16px; text-align: center; font-size: 1rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding: 40px var(--gutter) 32px; }
  .hero h1 { font-size: clamp(2.6rem, 12.5vw, 6.5rem); }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-photo img { clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%); }
  .next { left: var(--gutter); bottom: calc(var(--slope) + 16px); }
  .termine, .team, .join-in { grid-template-columns: minmax(0, 1fr); }
  .year { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .year-label { position: static; }
}
@media (max-width: 720px) {
  .act:nth-child(1), .act:nth-child(2) { grid-column: span 12; }
  .act:nth-child(3) { flex-direction: column; }
  .act-logo { flex: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip a:nth-child(n+4) { display: none; }
  .linklist { grid-template-columns: minmax(0, 1fr); }
  .prog li { grid-template-columns: 78px minmax(0, 1fr); gap: .9rem; }
  .bib b { font-size: 1.9rem; }
  .bib.offen b { font-size: 1.25rem; }
  .board li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand span { font-size: 1.15rem; }
  .brand img { height: 46px; }
  .lb-prev, .lb-next { top: auto; bottom: 76px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
