/* TechRaid, techraid.de
   Indie-Tech-Studio. Schwarz, ein Amber-Balken, Outfit (lokal, SIL OFL). Selbstbewusst und direkt. */

@font-face { font-family: "Outfit"; font-weight: 300; font-display: swap; src: url("fonts/outfit-300.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("fonts/outfit-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("fonts/outfit-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("fonts/outfit-600.woff2") format("woff2"); }

:root {
  --black: #000000;
  --bg: #050505;
  --panel: #0D0D0D;
  --panel-2: #141414;
  --kohle: #1C1C1C;
  --graviert: #5A5A5A;
  --nebel: #8A8A8A;
  --white: #FFFFFF;
  --text: #F2F2F0;
  --text-2: #B9B9B5;
  --amber: #FFA23A;
  --amber-dim: rgba(255, 162, 58, 0.14);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);

  --font: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1280px;
  --pad: clamp(20px, 4.5vw, 56px);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); color-scheme: dark; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--amber); color: var(--black); }
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.3); transition: color 160ms ease, text-decoration-color 160ms ease; }
a:hover { text-decoration-color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { margin: 0; color: var(--white); letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(52px, 9.4vw, 156px); line-height: 0.92; font-weight: 600; }
h2 { font-size: clamp(40px, 6vw, 96px); line-height: 0.96; font-weight: 600; }
h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.12; font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Labels nach Markensprache: Versalien, gesperrt +0,26 em, Outfit 500 */
.label { font-size: 13px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--nebel); }
.label--amber { color: var(--amber); }
.lead { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.5; color: var(--text-2); max-width: 34em; }
.amber { color: var(--amber); }

/* ---------- Kopfzeile ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); border-bottom: 1px solid transparent; transition: background-color 300ms ease, border-color 300ms ease; }
.site-head.is-scrolled { background: rgba(5, 5, 5, 0.8); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.head-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 18px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a { font-size: 15.5px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color 160ms ease; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--white); }
.nav .nav-cta { padding: 9px 18px; border-radius: 999px; background: var(--white); color: var(--black); transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.nav .nav-cta:hover { background: var(--amber); color: var(--black); }
.nav .nav-cta:active { transform: scale(0.97); }
@media (max-width: 719px) { .nav a:not(.nav-cta) { display: none; } .brand img { height: 16px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 24px; border-radius: 999px; font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--amber { background: var(--amber); color: var(--black); }
.btn--amber:hover { background: #FFB35E; color: var(--black); }
.btn--ghost { border-color: var(--line-2); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn svg { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Vier Balken ---------- */
.bars { display: flex; align-items: flex-end; gap: var(--bar-gap, 12%); }
.bars i { display: block; width: var(--bar-w, 16%); height: 100%; background: var(--graviert); border-radius: 2px; transition: background-color 400ms var(--ease-out); }
.bars i.on { background: var(--amber); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; padding: calc(var(--nav-h) + 48px) 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(40px, 6vw, 96px); align-items: end; width: 100%; }
.hero .label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(24px, 3vw, 40px); }
.hero .label .bars { height: 14px; width: 17px; }
.hero h1 .accent { color: var(--amber); }
.hero .lead { margin-top: clamp(28px, 3vw, 40px); }
.hero .btn-row { margin-top: clamp(32px, 3.4vw, 48px); }

/* HUD: aktueller Raid */
.hud { border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, #101010, #0A0A0A); padding: 22px 22px 20px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.hud-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hud-live { display: inline-flex; align-items: center; gap: 8px; }
.hud-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--amber-dim); }
.hud-boss { margin-top: 18px; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; color: var(--white); line-height: 1.25; }
.hud-sub { margin-top: 6px; font-size: 15px; color: var(--nebel); }

/* Lebensleiste */
.hp { margin-top: 18px; }
.hp-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.hp-row .label { font-size: 11px; letter-spacing: 0.22em; }
.hp-val { font-size: 14px; font-weight: 500; color: var(--white); font-variant-numeric: tabular-nums; }
.hp-track { position: relative; height: 12px; border-radius: 3px; background: var(--kohle); overflow: hidden; }
.hp-fill { position: absolute; inset: 0 auto 0 0; width: var(--hp, 100%); background: var(--amber); border-radius: 3px; transition: width 1600ms var(--ease-out); }
.hp-ghost { position: absolute; inset: 0 auto 0 0; width: var(--hp-ghost, 100%); background: rgba(255, 255, 255, 0.22); border-radius: 3px; transition: width 1400ms var(--ease-out) 350ms; }
.hp-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(0, 0, 0, 0.55) calc(10% - 1px) 10%); pointer-events: none; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(104px, 14vw, 210px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 980px; }
.section-head .lead { margin-top: 28px; }

/* Warum Raid */
.why { display: grid; grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 80px); }
.statement { font-size: clamp(30px, 3.9vw, 60px); line-height: 1.12; font-weight: 400; letter-spacing: -0.03em; color: var(--white); text-wrap: balance; }
.statement + .statement { margin-top: 0.7em; }
.why-steps { list-style: none; margin: clamp(48px, 6vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.why-steps li { padding: 28px 28px 0 0; }
.why-steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.why-steps .label { display: block; margin-bottom: 14px; }
.why-steps p { color: var(--text-2); font-size: 18px; }

/* Raids */
.raids { margin-top: clamp(56px, 7vw, 104px); display: grid; gap: 20px; }
.raid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); padding: clamp(28px, 3.6vw, 56px); border-radius: 26px; background: var(--panel); border: 1px solid var(--line); transition: border-color 300ms ease; }
@media (hover: hover) and (pointer: fine) { .raid:hover { border-color: var(--line-2); } }
.raid-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.raid-name { margin-top: 18px; font-size: clamp(56px, 7vw, 112px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.9; color: var(--white); display: flex; align-items: center; gap: 18px; }
.raid-name img { width: clamp(44px, 4.6vw, 72px); height: auto; }
.raid-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); }
.raid-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.raid-status--done { color: var(--black); background: var(--amber); border-color: var(--amber); }
.raid-status--done::before { background: var(--black); }
.raid-body { display: flex; flex-direction: column; gap: 24px; justify-content: space-between; }
.boss .label { display: block; margin-bottom: 8px; }
.boss p { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.3; letter-spacing: -0.015em; color: var(--white); }
.loot .label { display: block; margin-bottom: 8px; }
.loot p { color: var(--text-2); font-size: 18px; max-width: 34em; }
.raid-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.raid-foot .label { color: var(--text-2); }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color 200ms ease; }
.arrow-link svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .arrow-link:hover { border-color: var(--amber); } .arrow-link:hover svg { transform: translate(2px, -2px); } }

/* Studio-Regeln */
.rules { list-style: none; margin: clamp(56px, 7vw, 104px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.rule { padding: clamp(32px, 3.4vw, 52px) clamp(24px, 3vw, 48px) clamp(32px, 3.4vw, 52px) 0; border-bottom: 1px solid var(--line); }
.rule:nth-child(even) { padding-left: clamp(24px, 3vw, 48px); padding-right: 0; border-left: 1px solid var(--line); }
.rule .bars { height: 22px; width: 26px; margin-bottom: 26px; }
.rule h3 { font-size: clamp(26px, 2.5vw, 38px); font-weight: 600; letter-spacing: -0.03em; }
.rule p { margin-top: 12px; color: var(--text-2); font-size: 18px; }

/* Kontakt */
.contact h2 { max-width: 12em; }
.contact-mail { display: inline-block; margin-top: clamp(32px, 3.4vw, 48px); font-size: clamp(36px, 6.4vw, 104px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--amber); text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) left bottom / 0% 3px no-repeat; padding-bottom: 12px; transition: background-size 500ms var(--ease-out); overflow-wrap: anywhere; }
.contact-mail:hover, .contact-mail:focus-visible { background-size: 100% 3px; }
.contact .lead { margin-top: 24px; }

/* ---------- Rechtstexte ---------- */
.page { padding: calc(var(--nav-h) + clamp(56px, 8vw, 120px)) 0 clamp(80px, 10vw, 140px); }
.page h1 { font-size: clamp(44px, 6vw, 96px); }
.page .lead { margin-top: 20px; }
.prose { max-width: 70ch; margin-top: clamp(40px, 5vw, 72px); }
.prose h2 { font-size: clamp(24px, 2vw, 30px); font-weight: 500; letter-spacing: -0.02em; margin: 52px 0 12px; line-height: 1.2; }
.prose p, .prose li { font-size: 17px; line-height: 1.72; color: var(--text-2); }
.prose p + p { margin-top: 14px; }

/* ---------- Fusszeile ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.foot-in img { height: 16px; width: auto; }
.foot-claim { margin-top: 14px; font-size: 15px; color: var(--nebel); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--nebel); }
.foot-links a { color: var(--nebel); text-decoration: none; }
.foot-links a:hover { color: var(--white); }

/* ---------- Abschnittsanzeige: vier Balken, einer an ---------- */
.indicator { position: fixed; left: 20px; bottom: 24px; z-index: 40; height: 20px; width: 24px; opacity: 0; transition: opacity 400ms var(--ease-out); pointer-events: none; }
.indicator.is-visible { opacity: 1; }
.indicator.is-hidden { opacity: 0; }
@media (max-width: 1099px) { .indicator { display: none; } }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero .label, html.js .hero .lead, html.js .hero .btn-row, html.js .hud { opacity: 0; }
  html.js .hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  html.js .hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: line-up 1000ms var(--ease-spring) forwards; }
  html.js .hero h1 .line:nth-child(2) > span { animation-delay: 90ms; }
  html.js .hero h1 .line:nth-child(3) > span { animation-delay: 180ms; }
  html.js .hero .label { animation: fade 700ms var(--ease-out) 60ms forwards; }
  html.js .hero .lead { transform: translateY(12px); animation: fade-up 800ms var(--ease-out) 360ms forwards; }
  html.js .hero .btn-row { transform: translateY(12px); animation: fade-up 800ms var(--ease-out) 460ms forwards; }
  html.js .hud { transform: translateY(24px) scale(0.98); animation: fade-up 900ms var(--ease-spring) 600ms forwards; }
  html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-spring); transition-delay: calc(var(--i, 0) * 90ms); }
  html.js .reveal.is-in { opacity: 1; transform: none; }
  .hp.is-hit .hp-track { animation: hit 260ms ease-out; }
  @supports (animation-timeline: view()) {
    .statement .w { animation: word linear both; animation-timeline: view(); animation-range: cover calc(6% + var(--wi) * 0.9%) cover calc(24% + var(--wi) * 0.9%); }
  }
}
@keyframes line-up { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes word { from { opacity: 0.18; } to { opacity: 1; } }
@keyframes hit { 0% { transform: translateX(0); } 30% { transform: translateX(-3px); } 60% { transform: translateX(2px); } 100% { transform: translateX(0); } }

/* ---------- Responsiv ---------- */
@media (max-width: 999px) {
  .hero-grid, .why, .raid { grid-template-columns: 1fr; }
  .hud { max-width: 460px; }
}
@media (max-width: 719px) {
  .why-steps, .rules { grid-template-columns: 1fr; }
  .why-steps li, .why-steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .rule, .rule:nth-child(even) { padding: 32px 0; border-left: 0; }
  .raid { padding: 24px; border-radius: 20px; }
}

.nav .nav-cta[aria-current="true"] { color: var(--black); background: var(--amber); }
