/* ============================================================
   Kackabän – Stylesheet
   ============================================================ */
:root {
  --bg: #0b1017;
  --bg-2: #111927;
  --panel: #161f2e;
  --line: rgba(255,255,255,.08);
  --text: #e8edf3;
  --muted: #9aa8ba;
  --snow: #dff3ff;
  --ice: #6fc3ff;
  --rock: #f0a35e;
  --accent: var(--ice);
  --radius: 14px;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: .01em; margin: 0; line-height: 1; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
section { padding: 0 clamp(16px, 5vw, 72px); }
.section-head { max-width: 1200px; margin: 0 auto 28px; }
.section-head h2 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; text-transform: uppercase; }
.section-head p { color: var(--muted); margin: 8px 0 0; font-size: 17px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(11,16,23,.85), rgba(11,16,23,0));
  transition: background .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(11,16,23,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: .04em;
}
.brand-mark { width: 34px; height: 34px; color: var(--ice); }
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav-links a { position: relative; padding: 6px 0; color: var(--text); opacity: .85; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  height: 100svh; min-height: 560px;
  padding: 0;
  overflow: hidden;
}
.hero-half {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  transition: flex .5s;
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s;
  filter: saturate(.9) brightness(.85);
}
.hero-half::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,16,23,.92) 0%, rgba(11,16,23,.35) 45%, rgba(11,16,23,.15) 100%);
  transition: opacity .5s;
}
.hero-half:hover .hero-img { transform: scale(1.1); filter: saturate(1.05) brightness(.95); }
.hero-text {
  position: relative; z-index: 2;
  padding: clamp(24px, 4vw, 56px);
  max-width: 520px;
}
.hero-kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.hero-rock .hero-kicker, .hero-rock .hero-cta { color: var(--rock); }
.hero-text h2 { font-size: clamp(64px, 9vw, 128px); font-weight: 800; text-transform: uppercase; line-height: .9; }
.hero-text p { color: var(--snow); opacity: .9; margin: 14px 0 18px; font-size: clamp(15px, 1.3vw, 18px); }
.hero-cta { font-weight: 600; font-size: 15px; color: var(--ice); transition: letter-spacing .3s; }
.hero-half:hover .hero-cta { letter-spacing: .04em; }
.hero-title {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%);
  text-align: center; z-index: 3; pointer-events: none; width: min(92vw, 900px);
}
.hero-title h1 {
  font-size: clamp(72px, 15vw, 220px); font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 10px 60px rgba(0,0,0,.6), 0 2px 12px rgba(0,0,0,.5);
  mix-blend-mode: screen;
}
.hero-title p {
  margin: 8px auto 0; font-size: clamp(15px, 1.4vw, 19px); color: var(--snow);
  text-shadow: 0 2px 16px rgba(0,0,0,.8); max-width: 640px;
}
.hero::before {
  /* vertical split line */
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,.18); z-index: 2; pointer-events: none;
}

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: 1200px; margin: -1px auto 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2);
  transform: translateY(-40px);
  position: relative; z-index: 4;
  padding: 0;
}
.stat { padding: 22px 12px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 800; color: #fff; line-height: 1; }
.stat span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Touren ---------- */
.touren { padding-top: 24px; padding-bottom: 90px; }
.toolbar {
  max-width: 1200px; margin: 0 auto 18px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.segmented {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
}
.segmented button {
  padding: 9px 18px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--muted);
  transition: background .2s, color .2s;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-selected="true"] { background: #fff; color: #0b1017; font-weight: 600; }
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 16px; height: 46px; min-width: 260px; flex: 0 1 340px; color: var(--muted);
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--accent); color: var(--text); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input {
  flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; min-width: 0;
}
.search input::placeholder { color: var(--muted); }

.years {
  max-width: 1200px; margin: 0 auto 26px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.years button {
  padding: 7px 14px; border-radius: 8px; font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--muted); border: 1px solid var(--line); background: transparent;
  transition: .2s;
}
.years button:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.years button[aria-pressed="true"] { background: var(--accent); color: #0b1017; border-color: var(--accent); }
.years button .n { font-family: var(--font-body); font-size: 11px; opacity: .7; margin-left: 5px; }

.result-count { max-width: 1200px; margin: 0 auto 12px; color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

.grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.card {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line);
  transform: translateY(0); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  animation: rise .5s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  filter: saturate(.95);
}
.card:hover img { transform: scale(1.07); }
.card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,12,18,.95) 0%, rgba(8,12,18,.45) 40%, rgba(8,12,18,0) 70%);
}
.card.no-img { background: radial-gradient(120% 100% at 0% 100%, #1b2a3d, var(--panel)); }
.card.no-img::before {
  content: ''; position: absolute; inset: auto -10% -30% -10%; height: 70%;
  background: linear-gradient(135deg, transparent 45%, rgba(255,255,255,.05) 46%, rgba(255,255,255,.05) 55%, transparent 56%);
}
.card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; z-index: 2; }
.card-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.05; color: #fff; }
.card-sub { color: var(--snow); opacity: .75; font-size: 13px; margin-top: 4px; min-height: 1.2em; }
.card-n { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 11px; font-weight: 600; }
.card-sub:empty { display: none; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  background: rgba(11,16,23,.6); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.15);
}
.badge.ski { color: var(--ice); }
.badge.climb { color: var(--rock); }
.card-year {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: rgba(255,255,255,.85);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.card-open {
  position: absolute; right: 14px; bottom: 16px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  opacity: 0; transform: translateX(6px); transition: .3s;
}
.card:hover .card-open { opacity: 1; transform: none; }
.card-open svg { width: 16px; height: 16px; }
.empty { max-width: 1200px; margin: 40px auto; text-align: center; color: var(--muted); font-size: 18px; }

/* ---------- Feinheiten ---------- */
.feinheiten { padding-bottom: 90px; }
.specials {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px;
}
.special {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, background .3s;
}
.special:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.22); background: #1a2536; }
.special .icon { font-size: 30px; line-height: 1; }
.special h3 { font-size: 24px; font-weight: 700; }
.special p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.special .arrow { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14px; }

/* ---------- Crew ---------- */
.crew { padding-bottom: 100px; }
.crew-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px;
}
.member { text-align: center; }
.member .avatar {
  width: 112px; height: 112px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--panel); box-shadow: 0 0 0 2px var(--line);
  background: var(--panel);
  transition: transform .3s, box-shadow .3s;
}
.member:hover .avatar { transform: scale(1.06) rotate(-2deg); box-shadow: 0 0 0 2px var(--accent); }
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member .avatar .initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--muted); }
.member .alias { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; line-height: 1; }
.member .name { color: var(--muted); font-size: 13px; margin-top: 4px; }
.member .role { display: inline-block; margin-top: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(16px, 5vw, 72px);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: var(--muted); font-size: 14px;
}
.footer a { color: var(--text); }
.footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); transform: translateY(-24px); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-right: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(11,16,23,.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 12px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; font-size: 18px; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; height: auto; min-height: 100svh; }
  .hero::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; }
  .hero-title { top: 14%; transform: translate(-50%, 0); }
  .hero-title h1 { font-size: clamp(64px, 20vw, 120px); }
  .hero-half { align-items: flex-end; }
  .hero-text h2 { font-size: 56px; }
  .hero-text p { font-size: 15px; margin: 8px 0 12px; }
  .hero-title p { display: none; }
  .hero-half { min-height: 50svh; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0 !important; border-top: 0 !important; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .stat:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .search { flex: 1 1 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .card-title { font-size: 20px; }
  .card-sub { display: none; }
  .badge { padding: 4px 8px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
