/* ==========================================================================
   VANTA E-Sports – Stylesheet
   1  Schriften & Farben (hell/dunkel)
   2  Basis
   3  Typografie
   4  Bausteine (Buttons, Slots, Karten)
   5  Header & Teams-Panel
   6  Startseite
   7  Unterseiten
   8  Footer
   9  Bewegung (Laden, Scrollen)
   10 Responsive
   ========================================================================== */

/* 1  Schriften & Farben ----------------------------------------------------- */

@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/big-shoulders.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/familjen-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/*
  Kein reines Invertieren: die allgemeine Oberfläche (Hintergrund, Text, Karten,
  Linien) bekommt im dunklen Modus eigene, gedämpfte Grautöne statt eines
  simplen Schwarz-Weiß-Tauschs. Die grafischen Flächen der Marke – der Keil auf
  der Startseite, die Team-Leiste, der Discord-Block – bleiben dagegen immer
  echtes Schwarz mit weißer Schrift, so wie ein gedrucktes Poster das auch
  wäre; diese werden weiter unten mit --poster-bg / --poster-fg (helle Seite)
  und --poster-panel / --poster-panel-fg (dunkle Fläche) gesetzt.
  Im Dark Mode sind das keine reinen Schwarz/Weiß-Werte mehr, sondern zwei
  unterschiedlich dunkle Töne – die Fläche bleibt als Form erkennbar, ohne dass
  irgendwo noch reines Weiß aufblitzt.
  Der Browser wählt nach Systemeinstellung; der Schalter im Header setzt
  data-theme="light" oder "dark" auf <html> und überstimmt das System.
*/
:root {
  color-scheme: light dark;

  --paper: light-dark(#ffffff, #0a0a0b);      /* Seitenhintergrund */
  --ink: light-dark(#111113, #ededec);        /* Text, Linien, Flächen */
  --surface: light-dark(#f1f2f3, #151517);    /* leichte Hintergründe */
  --surface-2: light-dark(#fafafa, #101012);  /* freie Plätze */
  --stripe: light-dark(rgba(0, 0, 0, .035), rgba(255, 255, 255, .05));
  --ink-soft: light-dark(#2a2a2e, #cbcbcf);   /* Fließtext auf Rechtsseiten */
  --ink-2: light-dark(#55555c, #97979d);      /* gedämpfter Text */
  --ink-3: light-dark(#8a8a90, #5c5c62);      /* Platzhalter-Namen */
  --rule: light-dark(#d9d9de, #232327);       /* feine Linien */
  --rule-strong: light-dark(#9a9aa0, #3c3c41);
  --placeholder: light-dark(#c6c6cb, #29292d);

  /* Poster-Farben für Hero, Team-Leiste und Discord-Block. Zwei Rollen, die
     getrennt behandelt werden:
     - poster-bg / poster-fg: die "helle" Seite (z. B. linkes Dreieck im Hero).
       Im Dark Mode wird poster-bg dunkel, poster-fg entsprechend hell, damit
       Text lesbar bleibt.
     - poster-panel / poster-panel-fg: die dunkle Fläche selbst (Keil,
       Team-Leiste, Discord-Block). Bleibt in beiden Modi dunkel mit heller
       Schrift, damit die Form als Form erkennbar bleibt und nicht zu einer
       hellen Fläche kippt. */
  --poster-bg: light-dark(#ffffff, #141416);
  --poster-fg: light-dark(#000000, #f2f2f0);
  --poster-panel: light-dark(#000000, #000000);
  --poster-panel-fg: #ffffff;
  --poster-rule: #2c2c31;
  --poster-muted: #9a9aa1;

  /* auf Tinten-Flächen (Poster-Elemente sind immer schwarz, daher fest statt light-dark) */
  --on-ink-text: #c9c9ce;
  --on-ink-muted: #9a9aa1;
  --on-ink-rule: #2c2c31;

  /* für Hover-Flächen, die lokal Vorder-/Hintergrund tauschen (Teams-Menü, Teams-Liste):
     die Fläche wird selbst zu --ink, darum muss der gedämpfte Text hier dem Theme folgen */
  --patch-muted: light-dark(#c9c9ce, #6e6e75);

  /* Rot = hier ist noch Platz */
  --signal: #dc1f2b;                            /* Flächen mit weißer Schrift */
  --signal-2: light-dark(#b3121d, #ff5a63);     /* Hover */
  --signal-text: light-dark(#dc1f2b, #ff4650);  /* Text und Balken */

  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --body: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --hdr: 72px;
  --line: 1.5px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Ältere Browser ohne light-dark(): immer hell */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    --paper: #ffffff; --ink: #111113; --surface: #f1f2f3; --surface-2: #fafafa;
    --stripe: rgba(0, 0, 0, .035); --ink-soft: #2a2a2e; --ink-2: #55555c; --ink-3: #8a8a90;
    --rule: #d9d9de; --rule-strong: #9a9aa0; --placeholder: #c6c6cb;
    --poster-bg: #ffffff; --poster-fg: #000000; --poster-panel: #000000; --poster-panel-fg: #ffffff; --poster-rule: #2c2c31; --poster-muted: #9a9aa1;
    --signal-2: #b3121d; --signal-text: #dc1f2b;
  }
}

/* 2  Basis ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, dl { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--paper); }
::selection { background: var(--ink); color: var(--paper); }
.sprite { position: absolute; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); font-weight: 600; }
.skip:focus { top: 16px; }

/* 3  Typografie ------------------------------------------------------------- */

.h1, .h2, .h3, .hero-title, .card-name, .brand-word {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .012em;
  line-height: .88;
  overflow-wrap: anywhere;
}
.h1 { font-size: clamp(64px, 10vw, 150px); }
.h2 { font-size: clamp(44px, 6vw, 84px); }
.h3 { font-size: clamp(28px, 3.4vw, 44px); line-height: .95; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; max-width: 34em; }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-2); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.link:hover { text-decoration-color: var(--signal-text); }
.sub-h { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 26px; margin: 64px 0 20px; }

/* 4  Bausteine -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  font-weight: 600;
  font-size: 16px;
  border: var(--line) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--paper); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-signal { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn-signal:hover { background: var(--signal-2); border-color: var(--signal-2); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Auch der Discord-Block ist ein Poster-Element: die Fläche bleibt in beiden Modi dunkel. */
.on-ink { background: var(--poster-panel); color: var(--poster-panel-fg); }
.on-ink .btn { border-color: var(--poster-panel-fg); }
.on-ink .btn-ink { background: var(--poster-panel-fg); color: var(--poster-panel); }
.on-ink .btn-ink:hover { background: transparent; color: var(--poster-panel-fg); }
.on-ink .btn-line { background: transparent; color: var(--poster-panel-fg); }
.on-ink .btn-line:hover { background: var(--poster-panel-fg); color: var(--poster-panel); }

/* Roster-Plätze: Tinte = besetzt, rot = frei */
.slots { display: inline-flex; gap: 3px; }
.slots i { display: block; width: 14px; height: 5px; background: var(--signal-text); }
.slots i.on { background: currentColor; }

/* Personen-Karten (Spieler, Staff, Management) */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.roster-staff { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { border: var(--line) solid var(--ink); background: var(--paper); display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 3 / 4; background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.card-media.is-square { aspect-ratio: 1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .mark { width: 32%; color: var(--placeholder); }
.card-body { padding: 16px 18px 20px; border-top: var(--line) solid var(--ink); flex: 1; }
.card-name { font-size: 28px; }
.card-role { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.card-real { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.card-bio { margin-top: 10px; font-size: 15px; }
.card-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.card-links a { text-decoration: underline; text-underline-offset: 4px; }
.card-tba .card-name { color: var(--ink-3); }
.card-open { border-style: dashed; border-color: var(--rule-strong); }
.card-open .card-media { background: repeating-linear-gradient(-45deg, transparent 0 10px, var(--stripe) 10px 12px), var(--surface-2); }
.card-open .card-body { border-top-style: dashed; border-top-color: var(--rule-strong); }
.card-open .card-name { color: var(--ink-2); }
.card-open .card-role a { color: var(--signal-text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.open-tag { position: absolute; top: 12px; left: 12px; padding: 4px 9px; background: var(--signal); color: #fff; font-size: 13px; font-weight: 700; }

/* 5  Header & Teams-Panel --------------------------------------------------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--hdr);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  transition: transform .35s var(--ease-out), background-color .3s;
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand svg { width: 34px; height: 27px; }
.brand-word { font-size: 27px; letter-spacing: .07em; line-height: 1; }
.nav { display: flex; gap: 2px; }
.nav a { position: relative; padding: 8px 12px; font-weight: 500; font-size: 16px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--ink); }
.hdr-actions { display: flex; align-items: center; gap: 10px; }

.iconbtn, .dots {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: var(--line) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .18s, color .18s;
}
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { background: var(--ink); color: var(--paper); }
.dots span { display: grid; gap: 4px; }
.dots i { display: block; width: 5px; height: 5px; background: var(--ink); transition: background-color .18s; }
.dots:hover, .dots[aria-expanded="true"] { background: var(--ink); }
.dots:hover i, .dots[aria-expanded="true"] i { background: var(--paper); }

.tpanel {
  position: fixed;
  z-index: 49;
  top: calc(var(--hdr) + 14px);
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - var(--hdr) - 40px);
  overflow: auto;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  animation: panel-in .2s var(--ease-out);
}
.tpanel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px); } }
.tpanel-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 22px 12px; font-size: 14px; font-weight: 600; }
.tpanel-head span { color: var(--ink-2); }
.tpanel-head a { text-decoration: underline; text-underline-offset: 4px; }
.tlist a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--ink);
  transition: background-color .15s, color .15s;
}
.tlist a:hover, .tlist a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.tlist .t-name { font-family: var(--display); font-weight: 900; font-size: 24px; text-transform: uppercase; line-height: 1; letter-spacing: .012em; }
.tlist .t-status { grid-column: 1; font-size: 14px; color: var(--ink-2); }
.tlist a:hover .t-status, .tlist a[aria-current="page"] .t-status { color: var(--patch-muted); }
.tlist .slots { grid-column: 2; grid-row: 1 / span 2; }
.tpanel-pages { display: none; border-top: 1px solid var(--ink); padding: 8px 0 12px; }
.tpanel-pages a { display: block; padding: 10px 22px; font-weight: 500; }
.tpanel-pages a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* 6  Startseite ------------------------------------------------------------- */

/*
  Hero und Team-Leiste sind das grafische Markenzeichen der Seite (Keil,
  Überschrift die per mix-blend-mode die Farbe wechselt). Die dunkle Fläche
  bleibt in beiden Modi dunkel (--poster-panel), die helle Seite wird im Dark
  Mode selbst dunkel (--poster-bg) statt weiß zu bleiben; die Schrift darauf
  (--poster-fg) hellt entsprechend auf. So bleibt die Form erkennbar, ohne dass
  irgendwo noch reines Weiß aufblitzt.
*/
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(600px, calc(92svh - var(--hdr)), 860px);
  background: var(--poster-bg);
  color: var(--poster-fg);
}
.hero-slab {
  position: absolute;
  inset: 0;
  z-index: auto;
  background: var(--poster-panel);
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 43% 100%);
  animation: slab-in 1.1s var(--ease-out) .15s both;
  will-change: transform;
}
@keyframes slab-in { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } }
.hero-motto {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 56px);
  max-width: 7.6em;
  color: var(--poster-panel-fg);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: .95;
  letter-spacing: .012em;
  text-transform: uppercase;
  text-align: right;
}
.hero-body { position: relative; padding-block: clamp(40px, 8vh, 96px); } /* kein z-index, keine Transformation: sonst blendet die Überschrift nicht mit der Fläche */
.hero-title {
  font-size: clamp(76px, 12.2vw, 176px);
  color: #fff;
  mix-blend-mode: difference;
  white-space: nowrap;
  animation: rise .9s var(--ease-out) .05s both;
}
.hero-title span { display: block; }
.hero .lead { margin-top: 30px; max-width: 29em; animation: rise .8s var(--ease-out) .4s both; }
.hero .btn-row { margin-top: 36px; animation: rise .8s var(--ease-out) .5s both; }
.hero .btn { background: var(--poster-bg); border-color: var(--poster-fg); color: var(--poster-fg); }
.hero .btn-ink { background: var(--poster-fg); color: var(--poster-bg); }
.hero .btn-ink:hover { background: var(--poster-bg); color: var(--poster-fg); }
.hero .btn-line:hover { background: var(--poster-fg); color: var(--poster-bg); }
@supports not (mix-blend-mode: difference) {
  .hero-title { color: var(--poster-fg); }
}

.teamband { background: var(--poster-panel); color: var(--poster-panel-fg); }
.teamband ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.teamband li + li { border-left: 1px solid var(--poster-rule); }
.teamband a { display: grid; gap: 10px; padding: 24px 24px 26px; height: 100%; transition: background-color .18s, color .18s; }
.teamband li:first-child a { padding-left: 0; }
.teamband a:hover { background: var(--poster-bg); color: var(--poster-fg); }
.teamband li:first-child a:hover { padding-left: 24px; margin-left: -24px; }
.teamband .t-name { font-family: var(--display); font-weight: 900; font-size: clamp(22px, 2.1vw, 30px); text-transform: uppercase; line-height: 1; letter-spacing: .012em; }
.teamband .t-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--poster-muted); }
.teamband a:hover .t-meta { color: var(--poster-muted); }

.block { padding-block: clamp(72px, 10vw, 140px); }
.block-tight { padding-top: clamp(40px, 5vw, 64px); }

/*
  Logo setzt sich beim Scrollen zusammen: die zwei Flügel starten außerhalb
  der Spur, leicht gedreht, und finden beim Durchscrollen des Abschnitts als
  großes, dezentes Wasserzeichen zueinander. main.js steuert transform/opacity
  live über den Scrollfortschritt; die .pop-Klasse (kurzer Bounce + roter
  Schein) wird einmal gesetzt, sobald die Flügel eingerastet sind.
*/
.intro-wrap { position: relative; overflow: hidden; }
.mark-build {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}
.mark-build svg { width: min(60vw, 760px); height: auto; color: var(--ink); overflow: visible; }
.mark-left, .mark-right { transform-box: fill-box; transform-origin: center; will-change: transform; }
@keyframes mark-pop { 0% { transform: scale(1); } 45% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes mark-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(220, 31, 43, 0)); }
  35% { filter: drop-shadow(0 0 30px rgba(220, 31, 43, .38)); }
}
.mark-build.pop svg { animation: mark-pop .55s var(--ease-out), mark-glow .9s ease-out; }

.intro { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.intro .h2 { grid-column: 1 / span 7; }
.intro-copy { grid-column: 8 / span 5; display: grid; gap: 18px; justify-items: start; font-size: 18px; padding-top: .35em; }

.recruit { background: var(--surface); }
.recruit-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; margin-bottom: 44px; }
.recruit-head .h2 { grid-column: 1 / span 5; }
.recruit-head .lead { grid-column: 7 / span 6; }
.recruit-list { border-top: 1px solid var(--ink); }
.recruit-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 18px 0;
  border-bottom: 1px solid var(--ink);
}
.r-team { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3.2vw, 44px); text-transform: uppercase; line-height: 1; letter-spacing: .012em; }
.r-team:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.r-open { color: var(--signal-text); font-weight: 600; font-size: 15px; white-space: nowrap; }

.community { padding-top: 0; }
.slab { padding: clamp(36px, 5vw, 72px); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
.slab-copy { grid-column: 1 / span 7; }
.slab-copy p { margin-top: 20px; max-width: 34em; font-size: 18px; color: var(--on-ink-text); }
.slab-side { grid-column: 9 / span 4; display: grid; gap: 16px; }
.server { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--on-ink-rule); }
.server-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border: 1px solid var(--on-ink-rule); }
.server-icon svg { width: 30px; }
.server-text strong { display: block; font-weight: 700; }
.server-text small { display: block; font-size: 14px; color: var(--on-ink-muted); }

/* 7  Unterseiten ------------------------------------------------------------ */

.phead { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--ink); }
.phead .h1 { animation: rise .8s var(--ease-out) both; }
.phead .lead { margin-top: 26px; animation: rise .8s var(--ease-out) .15s both; }
.phead .btn-row { margin-top: 36px; animation: rise .8s var(--ease-out) .25s both; }
.phead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.crumbs { display: flex; gap: 10px; margin-bottom: 20px; font-size: 14px; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tstatus { display: grid; justify-items: end; gap: 8px; padding-bottom: 14px; font-size: 15px; color: var(--ink-2); animation: rise .8s var(--ease-out) .2s both; }
.tstatus .slots i { width: 24px; height: 6px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; animation: rise .8s var(--ease-out) .3s both; }
.tabs a { padding: 9px 16px; border: var(--line) solid var(--ink); font-weight: 500; font-size: 15px; transition: background-color .15s, color .15s; }
.tabs a:hover { background: var(--surface); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.team-rows { border-top: 1px solid var(--ink); }
.team-rows a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 26px var(--gutter) 30px;
  margin-inline: calc(var(--gutter) * -1);
  border-bottom: 1px solid var(--ink);
  transition: background-color .18s, color .18s;
}
.team-rows a:hover { background: var(--ink); color: var(--paper); }
.tr-name { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 7vw, 104px); text-transform: uppercase; line-height: .9; letter-spacing: .012em; }
.tr-meta { display: grid; justify-items: end; gap: 8px; font-size: 15px; color: var(--ink-2); }
.team-rows a:hover .tr-meta { color: var(--patch-muted); }
.tr-meta .slots i { width: 22px; height: 6px; }

.tryout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 26px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.tryout p { font-size: 19px; font-weight: 500; }

.about { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.profile { grid-column: 1 / span 4; position: sticky; top: calc(var(--hdr) + 24px); border-top: 1px solid var(--ink); }
.profile div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.profile dt { color: var(--ink-2); }
.profile dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.profile dd a { text-decoration: underline; text-underline-offset: 4px; }
.prose { grid-column: 6 / span 7; font-size: 18px; }
.prose h2 { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 4vw, 52px); text-transform: uppercase; line-height: .92; letter-spacing: .012em; margin: 60px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 14px; }
.prose .btn-row { margin-top: 28px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.values li { border-top: 2px solid var(--ink); padding-top: 14px; }
.values strong { display: block; font-family: var(--display); font-weight: 900; font-size: 24px; text-transform: uppercase; letter-spacing: .012em; margin-bottom: 6px; }
.values p { font-size: 16px; color: var(--ink-2); }

.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.contact form { grid-column: 1 / span 7; }
.contact-aside { grid-column: 9 / span 4; border-top: 1px solid var(--ink); }
.contact-aside section { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; justify-items: start; }
.contact-aside h2 { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.contact-aside p { color: var(--ink-2); font-size: 16px; }
.contact-aside .big { font-weight: 600; font-size: 19px; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.contact-aside .btn { margin-top: 6px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field[hidden] { display: none; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: var(--line) solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  font-size: 16px;
  transition: background-color .15s;
}
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { background: var(--surface); }
.field [aria-invalid="true"] { border-color: var(--signal-text); box-shadow: inset 0 0 0 1px var(--signal-text); }
.err { font-size: 14px; font-weight: 500; color: var(--signal-text); }
.err:empty { display: none; }
.err-block { display: block; margin: -16px 0 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 28px; font-size: 15px; color: var(--ink-2); }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.form-status { margin-top: 20px; padding: 16px 18px; border: var(--line) solid var(--ink); background: var(--surface); font-size: 15px; }
.form-status.is-error { border-color: var(--signal-text); }
.form-status[hidden] { display: none; }
.form-status a { text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }

.legal { max-width: 720px; font-size: 17px; }
.legal h2 { font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; letter-spacing: .012em; margin: 44px 0 10px; }
.legal p { color: var(--ink-soft); }
.legal p a { text-decoration: underline; text-underline-offset: 4px; }
.note { padding: 18px 20px; border: 1px dashed var(--rule-strong); background: var(--surface); }

/* 8  Footer ----------------------------------------------------------------- */

.ftr { border-top: 1px solid var(--ink); margin-top: clamp(72px, 10vw, 140px); padding: 56px 0 28px; }
.community + .ftr { margin-top: 0; }
.ftr-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.ftr-brand { grid-column: 1 / span 5; display: grid; gap: 18px; align-content: start; justify-items: start; }
.ftr-brand p { font-size: 15px; color: var(--ink-2); max-width: 28em; }
.ftr-col { grid-column: span 2; }
.ftr-col:first-of-type { grid-column: 7 / span 2; }
.ftr-col h2 { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.ftr-col ul { display: grid; gap: 9px; }
.ftr-col a { font-size: 16px; }
.ftr-col a:hover { text-decoration: underline; text-underline-offset: 5px; }
.ftr-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.ftr-bottom nav { display: flex; gap: 22px; }
.ftr-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 9  Bewegung ---------------------------------------------------------------- */

/* Beim Laden: Elemente steigen kurz auf */
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
}

/* Beim Scrollen: Elemente mit data-reveal blenden ein, sobald sie sichtbar werden.
   Ohne JavaScript (kein .js an <html>) bleibt alles sofort sichtbar. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
.js [data-reveal="left"] { transform: translateX(-32px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Roster-Balken zeichnen sich nach, wenn ihr Block erscheint */
.js [data-reveal] .slots i { transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.js [data-reveal].is-in .slots i { transform: scaleX(1); }
.js [data-reveal].is-in .slots i:nth-child(2) { transition-delay: .06s; }
.js [data-reveal].is-in .slots i:nth-child(3) { transition-delay: .12s; }
.js [data-reveal].is-in .slots i:nth-child(4) { transition-delay: .18s; }
.js [data-reveal].is-in .slots i:nth-child(5) { transition-delay: .24s; }
.js [data-reveal].is-in .slots i:nth-child(6) { transition-delay: .30s; }
.js [data-reveal].is-in .slots i:nth-child(n + 7) { transition-delay: .36s; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* 10 Responsive -------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav { display: none; }
  .tpanel-pages { display: block; }
  .intro .h2, .intro-copy, .recruit-head .h2, .recruit-head .lead,
  .slab-copy, .slab-side, .about .profile, .about .prose,
  .contact form, .contact-aside { grid-column: 1 / -1; }
  .intro-copy { padding-top: 0; }
  .profile { position: static; }
  .slab-side { max-width: 460px; }
  .ftr-brand { grid-column: 1 / -1; }
  .ftr-col, .ftr-col:first-of-type { grid-column: span 4; }
}

@media (max-width: 820px) {
  .mark-build svg { width: min(82vw, 480px); }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-slab {
    order: 2;
    position: relative;
    inset: auto;
    margin-top: 40px;
    padding: calc(14% + 28px) var(--gutter) 36px;
    clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
    animation: none;
    transform: none !important;
  }
  .hero-motto { position: static; text-align: left; }
  .teamband { border-top: 1px solid var(--on-ink-rule); }
  .hero-body { padding-block: 44px 0; }
  .hero-title { color: var(--poster-fg); mix-blend-mode: normal; }
  .teamband ul { grid-template-columns: 1fr 1fr; }
  .teamband li:nth-child(3) { border-left: 0; }
  .teamband li:nth-child(n + 3) { border-top: 1px solid var(--on-ink-rule); }
  .teamband li:nth-child(3) a { padding-left: 0; }
  .teamband li:nth-child(3) a:hover { padding-left: 24px; margin-left: -24px; }
  .recruit-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .recruit-list .slots { display: none; }
  .recruit-list .r-open { grid-column: 1; }
  .recruit-list .btn { grid-column: 2; grid-row: 1 / span 2; }
  .values { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; gap: 0; }
  .phead-row { flex-direction: column; align-items: flex-start; }
  .tstatus { justify-items: start; padding-bottom: 0; }
  .team-rows a { grid-template-columns: 1fr; gap: 14px; }
  .tr-meta { justify-items: start; }
}

@media (max-width: 560px) {
  :root { --hdr: 64px; }
  body { font-size: 16px; }
  .hdr-discord { display: none; }
  .hdr-actions { gap: 8px; }
  .brand svg { width: 30px; height: 24px; }
  .brand-word { font-size: 24px; }
  .hero-title { font-size: clamp(50px, 16vw, 90px); }
  .btn-row .btn { flex: 1 1 100%; }
  .teamband ul { grid-template-columns: 1fr; }
  .teamband li { border-left: 0 !important; border-top: 1px solid var(--on-ink-rule); }
  .teamband li:first-child { border-top: 0; }
  .teamband a, .teamband li:first-child a, .teamband li:nth-child(3) a { padding: 18px 0; grid-template-columns: 1fr auto; align-items: center; }
  .teamband a:hover, .teamband li:first-child a:hover, .teamband li:nth-child(3) a:hover { padding-inline: 0; margin-left: 0; }
  .teamband .t-meta span:first-child { display: none; }
  .roster, .roster-staff { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 12px 14px 14px; }
  .card-name { font-size: 22px; }
  .card-role { font-size: 14px; }
  .tabs a { padding: 8px 12px; font-size: 14px; }
  .ftr-col, .ftr-col:first-of-type { grid-column: span 6; }
  .ftr-col:last-of-type { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js [data-reveal] .slots i { transform: none !important; }
  .hero-slab { transform: none !important; }
  .mark-build { opacity: .08 !important; }
  .mark-left, .mark-right { transform: none !important; }
}

@media print {
  .hdr, .tpanel, .skip, .hero-slab, .teamband, .ftr nav { display: none; }
  .hero-title { color: #000; mix-blend-mode: normal; }
  .js [data-reveal] { opacity: 1; transform: none; }
  a { color: #000; }
}
