/* René Panque – gemeinsames Stylesheet */

@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/figtree-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #060606;
  --fg: #f4f4f4;
  --muted: #8c8c8c;
  --red: #e10600;
  --red-hot: #ff2a1f;
  --line: rgba(255, 255, 255, .16);
  --font: "Figtree", "Grandview", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }

canvas#bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; display: block;
}

/* Vignette */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(0, 0, 0, .88) 100%);
}

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

main.hero {
  position: relative; z-index: 2;
  flex: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 48px) 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.intro { order: 1; }
.portrait { order: 2; }

.tag {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--red-hot);
  margin-bottom: 22px;
}
.tag::before { content: ""; width: 44px; height: 2px; background: var(--red); }

h1 {
  font-weight: 800;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.02em;
  font-size: clamp(3.6rem, 11vw, 8.6rem);
  position: relative;
  display: inline-block;
}
h1 span { display: block; }
h1 .last { color: transparent; -webkit-text-stroke: 2px var(--fg); }

/* Glitch */
h1::before, h1::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  white-space: pre-line;
  pointer-events: none;
  opacity: 0;
}
h1::before { color: var(--red-hot); }
h1::after  { color: #fff; mix-blend-mode: difference; }
@media (prefers-reduced-motion: no-preference) {
  h1::before { animation: glitchA 6s infinite steps(1); }
  h1::after  { animation: glitchB 6s infinite steps(1); }
}
@keyframes glitchA {
  0%, 92%, 100% { opacity: 0; transform: none; }
  93% { opacity: .95; transform: translate(-6px, 1px); clip-path: inset(10% 0 60% 0); }
  95% { opacity: .95; transform: translate(5px, -2px); clip-path: inset(55% 0 15% 0); }
  97% { opacity: 0; }
}
@keyframes glitchB {
  0%, 92%, 100% { opacity: 0; transform: none; }
  94% { opacity: .9; transform: translate(6px, -1px); clip-path: inset(40% 0 35% 0); }
  96% { opacity: .9; transform: translate(-5px, 2px); clip-path: inset(5% 0 75% 0); }
  98% { opacity: 0; }
}

.sub {
  margin-top: 26px;
  color: var(--muted);
  font-weight: 700;
  font-size: clamp(.85rem, 2vw, 1rem);
  letter-spacing: .28em;
  text-transform: uppercase;
}
.sub b { color: var(--fg); font-weight: 700; }
.sub i { font-style: normal; color: var(--red-hot); padding: 0 .5em; }

.links {
  margin-top: 44px;
  display: grid;
  gap: 14px;
  max-width: 460px;
}

.btn {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  color: var(--fg);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .16em;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  isolation: isolate;
  overflow: hidden;
  transition: color .2s, border-color .2s, transform .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red);
  transform: translateX(-101%);
  transition: transform .3s cubic-bezier(.7, 0, .2, 1);
}
.btn:hover, .btn:focus-visible { color: #fff; border-color: var(--red); transform: translateY(-2px); }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn .label { display: flex; flex-direction: column; gap: 3px; }
.btn small { font-size: .68rem; font-weight: 400; letter-spacing: .22em; opacity: .7; }
.btn svg { width: 26px; height: 26px; flex: none; fill: currentColor; transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }

/* Foto: Weiß wird zu Rot, Schwarz bleibt Schwarz */
.portrait {
  position: relative;
  background: var(--red);
  aspect-ratio: 3 / 4;
  max-height: 78vh;
  width: 100%;
  justify-self: center;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 36px 100%, 0 calc(100% - 36px));
  box-shadow: 0 0 0 1px rgba(255, 42, 31, .5);
}
.portrait img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 15%;
  mix-blend-mode: multiply;
  filter: contrast(1.08);
}
.portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 4px);
}

/* Equalizer */
.eq {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 4px; height: 56px; padding: 0 20px;
}
.eq i {
  display: block; width: 5px; min-height: 4px; height: 20%;
  background: linear-gradient(to top, var(--red), var(--red-hot) 70%, #fff);
  transform-origin: bottom;
}
@media (prefers-reduced-motion: no-preference) {
  .eq i { animation: bounce 1s infinite ease-in-out alternate; }
}
@keyframes bounce { from { height: 8%; } to { height: 100%; } }

/* Footer */
footer {
  position: relative; z-index: 2;
  padding: 18px 20px 28px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  color: var(--muted);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
}
footer a { text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--red-hot); }

noscript p { position: relative; z-index: 3; text-align: center; padding: 10px; }

/* Mobil */
@media (max-width: 820px) {
  main.hero { grid-template-columns: 1fr; padding-top: 24px; }
  .portrait { order: 1; max-height: 52vh; aspect-ratio: 4 / 3; max-width: 520px; }
  .portrait img { object-position: 50% 22%; }
  .intro { order: 2; }
  .links { max-width: none; }
}

/* ---------- Impressum ---------- */

.legal {
  position: relative; z-index: 2;
  flex: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 32px) 24px;
}
.legal .back {
  display: inline-block; margin-bottom: 36px;
  font-size: .8rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
}
.legal .back:hover, .legal .back:focus-visible { color: var(--red-hot); }
.legal h1 {
  display: block;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: .95;
  margin-bottom: 36px;
}
.legal h2 {
  margin: 36px 0 10px;
  font-size: .8rem; font-weight: 800;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--red-hot);
}
.legal p { color: #d6d6d6; max-width: 62ch; }
.legal p + p { margin-top: 10px; }
.legal address { font-style: normal; color: var(--fg); font-size: 1.1rem; line-height: 1.6; }
.legal .todo { color: #fff; background: var(--red); padding: 1px 8px; font-weight: 700; }
.legal a { color: var(--fg); text-underline-offset: 3px; text-decoration-color: var(--red); }
.legal a:hover { color: var(--red-hot); }
