/*
  Gestaltungsregeln (bitte beibehalten, damit es konsistent bleibt):
  - Eine Schräge für alles: --slant (Balken per skewX, Formen per --cut).
  - Pink = Marke (Labels, Schild). Link-Buttons tragen die Farbe ihrer Plattform (--c).
  - Display-Schrift immer 800 kursiv in Großbuchstaben, Labels 700 gesperrt.
  - Ecken: --radius für Flächen, Parallelogramme ohne Rundung.
*/
:root {
  color-scheme: dark;
  --ink: #0c0e13;
  --surface: #151922;
  --surface-2: #1c2130;
  --line: #262c3b;
  --bone: #eef0f5;
  --text-2: #b8bfcf;
  --slate: #8b93a7;
  --pink: #ff3f9e;
  --ice: #6cc6ec;
  --ok: #4fd18b;
  --err: #ff6b6b;
  --display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --slant: -14deg;
  --cut: 10px;
  --radius: 4px;
}
* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  padding-inline: 16px;
  padding-block: 0 40px;
}
img { max-width: 100%; }
a { color: inherit; }
h1 {
  margin: 0;
  font-family: var(--display); font-weight: 800; font-style: italic;
  line-height: .86; letter-spacing: -.01em; text-transform: uppercase;
}

/* ---------- Öffentliche Seite ---------- */
body.site { padding: 0; }
.page { max-width: 560px; margin: 0 auto; }

/* Bausteine */
.label {
  margin: 0;
  font-family: var(--display); font-weight: 700; font-style: normal; font-size: 14px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ice);
  display: flex; align-items: center; gap: 10px;
}
.label::before {
  content: ""; flex: none; width: 24px; height: 4px;
  background: var(--pink); transform: skewX(var(--slant));
}

/* Hero */
.hero {
  position: relative; margin: 0; background: var(--surface);
  aspect-ratio: 4 / 3.4; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}
.hero > img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 62%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,14,19,0) 50%, rgba(12,14,19,.7) 82%, var(--ink) 100%);
}
.hero figcaption { position: absolute; top: 12px; right: 12px; z-index: 2; }
.hero figcaption a {
  display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bone); text-decoration: none;
  background: rgba(12,14,19,.8); padding: 5px 10px; border-radius: var(--radius);
}
.hero figcaption a:hover { color: var(--bone); }

.content { position: relative; z-index: 2; padding: 0 16px calc(32px + env(safe-area-inset-bottom, 0px)); }

/* Intro */
.intro { margin-top: -88px; display: grid; gap: 8px; }
.tagrow { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 48px; height: 44px; object-fit: cover; flex: none; background: var(--surface);
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}
.site h1 { font-size: clamp(60px, 18vw, 92px); text-wrap: balance; }
.site h1 .badge {
  display: table; margin-top: 14px;
  padding: 7px 18px 6px 16px;
  background: var(--pink); color: #1a0010;
  font-size: clamp(15px, .22em, 20px); font-weight: 800; font-style: italic;
  line-height: 1; letter-spacing: .08em; text-transform: none; /* exakt wie im Admin eingetippt */
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}
@media (forced-colors: active) { .site h1 .badge { forced-color-adjust: none; } }
.bio { margin: 8px 0 0; color: var(--text-2); max-width: 44ch; }
.stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--slate); }
.stats b {
  color: var(--bone); font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: 20px; font-variant-numeric: tabular-nums;
}

/* Links: fügen sich über den Verlauf in den Hintergrund ein,
   der pinke Schrägbalken (gleiches Motiv wie bei den Labels) macht sie erkennbar */
.links { margin-top: 28px; }
.links:focus { outline: none; }
.links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.links a {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 28px 1fr 20px; align-items: center; gap: 16px;
  min-height: 68px; padding: 12px 18px 12px 24px;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 55%, rgba(21,25,34,.35) 100%);
  border-radius: var(--radius);
  color: var(--bone); text-decoration: none;
  transition: background-color .2s ease;
}
.links a::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -4px; width: 10px;
  background: var(--bar, var(--c)); transform: skewX(var(--slant)); transition: width .2s ease;
}
.ico { color: var(--c); }
.ico svg { width: 26px; height: 26px; display: block; }
.txt { min-width: 0; display: grid; }
.net {
  font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: 22px; line-height: 1.1; text-transform: uppercase; letter-spacing: .01em;
}
.handle { font-size: 15px; color: var(--slate); overflow-wrap: anywhere; }
.go { color: var(--slate); transition: color .2s ease, transform .2s ease; }
.go svg { width: 18px; height: 18px; display: block; }
.links a:hover, .links a:focus-visible {
  background: var(--surface-2);
  background: color-mix(in srgb, var(--c) 12%, var(--surface));
}
.links a:hover::before, .links a:focus-visible::before { width: 16px; }
.links a:hover .go, .links a:focus-visible .go { color: var(--c); transform: translate(2px, -2px); }

/* Jede Plattform in ihrer eigenen Farbe (alle mind. 4,5:1 auf dem Button-Hintergrund) */
.links a { --c: var(--ice); }
.links a.n-instagram {
  --c: #f04f8a;
  --bar: linear-gradient(180deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 85%, #4f5bd5);
}
.links a.n-tiktok { --c: #25f4ee; --bar: linear-gradient(180deg, #25f4ee 50%, #fe2c55 50%); }
.links a.n-youtube { --c: #ff3b30; }
.links a.n-twitch { --c: #a970ff; }
.links a.n-snapchat { --c: #fffc00; }

/* Startnummer-Stil (Variante E): ganzer Button schräg wie das Official-Schild */
.links.slanted ul { padding-inline: 10px; }
.links.slanted a { transform: skewX(var(--slant)); border-radius: 2px; background: var(--surface); padding-left: 26px; }
.links.slanted a > * { transform: skewX(calc(-1 * var(--slant))); }
.links.slanted a::before { left: -2px; transform: none; }
.links.slanted a:hover .go, .links.slanted a:focus-visible .go { transform: skewX(calc(-1 * var(--slant))) translate(2px, -2px); }

/* Instagram */
.ig { margin-top: 44px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sec-head a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; color: var(--slate); text-decoration: underline; text-underline-offset: 3px;
}
.sec-head a:hover { color: var(--pink); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid a {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--surface); border-radius: var(--radius);
}
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.grid a:hover img { transform: scale(1.04); }
.grid .play {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px;
  color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.8));
}

/* Footer */
.site footer {
  margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 14px; color: var(--slate);
}
.site footer p { margin: 0; }
.stripe { display: inline-flex; gap: 4px; }
.stripe i { display: block; width: 18px; height: 4px; transform: skewX(var(--slant)); }
.stripe i:nth-child(1) { background: var(--pink); }
.stripe i:nth-child(2) { background: var(--ice); }
.stripe i:nth-child(3) { background: var(--bone); }

/* Impressum / Datenschutz */
.legal { max-width: 680px; margin: 0 auto; padding: 32px 20px calc(40px + env(safe-area-inset-bottom, 0px)); }
.legal .back {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--slate); text-decoration: none; font-size: 15px;
}
.legal .back:hover { color: var(--pink); }
.legal h1 { font-size: clamp(48px, 13vw, 72px); margin: 16px 0 8px; }
.legal h2.label { margin: 32px 0 10px; }
.legal p { margin: 0 0 12px; color: var(--text-2); max-width: 65ch; }
.legal .lead { color: var(--bone); font-size: 18px; margin-top: 16px; }
.legal main a, .site footer a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 3px; }
.legal main a:hover, .site footer a:hover { color: var(--pink); }
.legal footer { margin-top: 48px; }
.legal .muted { color: var(--slate); font-size: 14px; }

/* Hinweis nur auf staging.schaefie.de */
.staging-badge {
  position: fixed; right: 12px; bottom: 12px; z-index: 20; margin: 0;
  background: #ffd23f; color: #1a1400; font-weight: 600; font-size: 13px;
  padding: 6px 10px; border-radius: var(--radius); pointer-events: none;
}

/* Barrierefreiheit */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -100px; z-index: 10;
  background: var(--pink); color: #1a0010; font-weight: 600;
  padding: 12px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 12px; }
.site a:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; }
.links a:focus-visible { outline-offset: 2px; }
@media (forced-colors: active) {
  .links a { border: 1px solid CanvasText; }
  .links a::before, .label::before, .stripe { forced-color-adjust: none; }
  .hero::after { display: none; }
}

/* Tablet: Foto als Block mit Abstand oben */
@media (min-width: 600px) {
  .page { padding-top: 24px; }
  .hero { border-radius: var(--radius) var(--radius) 0 0; }
  .content { padding-inline: 0; }
}

/* PC: Foto links bildschirmhoch mit schräger Kante, Inhalt rechts */
@media (min-width: 960px) {
  .page {
    max-width: none; padding: 0; min-height: 100vh;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, 620px);
  }
  .hero {
    position: sticky; top: 0; height: 100vh; height: 100dvh;
    aspect-ratio: auto; border-radius: 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14vh) 100%, 0 100%);
  }
  .hero::after { background: linear-gradient(90deg, rgba(12,14,19,0) 70%, rgba(12,14,19,.45) 100%); }
  .hero figcaption { top: auto; right: auto; bottom: 20px; left: 20px; }
  .content {
    padding: clamp(48px, 10vh, 120px) clamp(32px, 4vw, 64px) 40px clamp(16px, 2vw, 32px);
    display: flex; flex-direction: column;
  }
  .content main { flex: 1 0 auto; padding-bottom: 8px; }
  .intro { margin-top: 0; }
  .ig { margin-top: 48px; }
}
@media (min-width: 1600px) {
  .page { grid-template-columns: minmax(0, 1fr) 700px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .grid a:hover img, .links a:hover .go { transform: none; }
  .links.slanted a:hover .go { transform: skewX(calc(-1 * var(--slant))); }
}

/* ---------- Admin ---------- */
.admin { max-width: 760px; margin: 0 auto; padding-top: 24px; }
.admin header.bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.admin h1 { font-size: 36px; }
.admin h2 {
  margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: 22px; letter-spacing: .02em;
  display: flex; align-items: center; gap: 10px;
}
.admin h2::before { content: ""; width: 18px; height: 4px; background: var(--pink); transform: skewX(-30deg); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 18px; }
.stack { display: grid; gap: 18px; margin-top: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
label { display: grid; gap: 4px; font-size: 13px; color: var(--slate); }
label.check { display: flex; align-items: center; gap: 8px; color: var(--bone); font-size: 14px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--bone);
  background: var(--ink); border: 1px solid var(--line); border-radius: 3px; padding: 9px 10px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ice); outline-offset: 0; border-color: transparent; }
input[type=checkbox] { accent-color: var(--pink); width: 16px; height: 16px; }
.btn {
  font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 16px; letter-spacing: .04em; cursor: pointer; text-decoration: none;
  background: var(--pink); color: #1a0010; border: 0; border-radius: 3px; padding: 10px 18px;
  display: inline-block;
}
.btn:hover { filter: brightness(1.1); }
.btn:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--bone); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ice); }
.linkrow {
  display: grid; grid-template-columns: 56px 130px 1fr 1fr; gap: 8px; align-items: end;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.linkrow .wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: end; }
.linkrow.new { border-top: 1px dashed var(--pink); }
@media (max-width: 600px) {
  .linkrow { grid-template-columns: 70px 1fr; }
  .linkrow .wide { grid-template-columns: 1fr; }
}
.flash { padding: 10px 14px; border-radius: 3px; margin-top: 16px; border: 1px solid; }
.flash.ok { border-color: var(--ok); color: var(--ok); }
.flash.error { border-color: var(--err); color: var(--err); }
.muted { color: var(--slate); font-size: 13px; margin: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.thumbs img { width: 56px; height: 70px; object-fit: cover; display: block; }
.heroprev { width: 160px; aspect-ratio: 4/3; object-fit: cover; display: block; }
.savebar {
  position: sticky; bottom: 0; padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(12,14,19,0), var(--ink) 40%);
  display: flex; justify-content: flex-end; gap: 12px;
}
.login { max-width: 360px; margin: 12vh auto 0; display: grid; gap: 14px; }

