/* =========================================================
   Face2Face – Stylesheet
   Schriften werden lokal ausgeliefert (DSGVO): Dateien nach
   /public/assets/fonts/ legen. Fällt sonst auf Systemschriften zurück.
   ========================================================= */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-variable.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  /* Farbwelt: ruhiger Pflaumen-Grundton, die beiden Duellseiten in Petrol und Beere */
  --ink: #221826;
  --ink-soft: #4a3d4a;
  --muted: #7b6e77;
  --paper: #f7f4f6;
  --surface: #ffffff;
  --line: #e7dfe4;
  --plum: #5c2c4e;
  --plum-dark: #431f39;
  --side-a: #1d7a87;
  --side-a-soft: #e6f2f3;
  --side-b: #c0425f;
  --side-b-soft: #fbe9ed;
  --gold: #b08434;
  --ok: #2c6e4a;
  --err: #a32b3b;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(34, 24, 38, .06), 0 2px 8px rgba(34, 24, 38, .04);
  --shadow-md: 0 4px 12px rgba(34, 24, 38, .07), 0 14px 34px rgba(34, 24, 38, .07);

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --space: 1.5rem;
  --shell: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'kern' 1;
  /* zarte Zweiteilung im Hintergrund: links Petrol, rechts Beere */
  background-image:
    radial-gradient(60rem 40rem at 8% -10%, rgba(29, 122, 135, .07), transparent 60%),
    radial-gradient(60rem 40rem at 96% -6%, rgba(192, 66, 95, .07), transparent 60%);
  background-repeat: no-repeat;
}

img { max-width: 100%; display: block; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--plum-dark); }

:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--plum); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Grundraster --------------------------------------------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 2rem);
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr) 296px;
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
}
.col { min-width: 0; }
.col--left, .col--right { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1rem; }

/* ---------- Marke (nur Startseite) ------------------------------------ */

.brand { display: flex; align-items: center; text-decoration: none; padding: .2rem 0 .4rem; }
.brand__logo { height: 56px; width: auto; display: block; }

/* ---------- Panels (Seitenspalten) ----------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.panel__eyebrow {
  margin: 0 0 .7rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--plum);
  display: flex; align-items: center; gap: .5rem;
}
.panel__eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.panel__eyebrow--a { color: var(--side-a); }
.panel__eyebrow--b { color: var(--side-b); }
.panel__hint { margin: .8rem 0 0; font-size: .82rem; color: var(--muted); }
.panel__empty { margin: 0; font-size: .85rem; color: var(--muted); }
.panel__more {
  display: inline-block; margin-top: .8rem; font-size: .78rem; font-weight: 600;
  text-decoration: none; border-bottom: 1px solid currentColor;
}

/* ---------- Navigation ----------------------------------------------- */

.nav { list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: flex; align-items: center; gap: .45rem;
  padding: .42rem .5rem; margin: 0 -.5rem;
  border-radius: 8px;
  color: var(--ink-soft); text-decoration: none; font-size: .93rem;
}
.nav__chev { color: var(--line); transition: color .15s, transform .15s; }
.nav__link:hover { background: var(--paper); color: var(--ink); }
.nav__link:hover .nav__chev { color: var(--plum); transform: translateX(2px); }
.nav__link.is-active { background: var(--plum); color: #fff; font-weight: 600; }
.nav__link.is-active .nav__chev { color: rgba(255, 255, 255, .6); }

/* ---------- Konto-Box ------------------------------------------------- */

.account__name { margin: 0 0 .4rem; font-family: var(--font-display); font-size: 1.15rem; }
.account__links { list-style: none; margin: 0 0 .8rem; padding: 0; font-size: .9rem; }
.account__links a { display: block; padding: .18rem 0; text-decoration: none; color: var(--ink-soft); }
.account__links a:hover { color: var(--plum); }

/* ---------- Buttons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; font-size: .92rem;
  padding: .62rem 1.1rem;
  border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background-color .15s, box-shadow .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--plum); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--plum-dark); color: #fff; }
.btn--outline { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn--outline:hover { background: rgba(92, 44, 78, .07); color: var(--plum); }
.btn--ghost { background: var(--paper); color: var(--ink-soft); border-color: var(--line); }
.btn--ghost:hover { background: #efe9ed; color: var(--ink); }
.btn--danger { color: var(--err); }
.btn--danger:hover { background: #fbeaec; }
.btn--danger-solid { background: var(--err); color: #fff; box-shadow: var(--shadow-sm); }
.btn--danger-solid:hover { background: #7f2130; color: #fff; }
.btn--small { padding: .38rem .7rem; font-size: .8rem; border-radius: 8px; }
.btn--block { width: 100%; }

/* ---------- Seitenkopf ------------------------------------------------ */

.eyebrow {
  margin: 0 0 .35rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--plum);
}
.page-head { margin: 0 0 1.4rem; }
.page-title {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: -.025em;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.1; margin: 0 0 .5rem;
}
.page-lead { margin: 0; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Hero ------------------------------------------------------ */

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.6rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--side-a) 0 50%, var(--side-b) 50% 100%);
}
.hero__title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.04; margin: 0 0 .7rem;
}
.hero__lead { margin: 0 0 1.3rem; color: var(--ink-soft); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2rem; margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.hero__stats dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero__stats dd {
  margin: .1rem 0 0; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Umschalter Frauen / Männer -------------------------------- */

.switch {
  display: inline-flex; gap: .25rem; padding: .25rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 1.3rem; box-shadow: var(--shadow-sm);
}
.switch__opt {
  padding: .45rem 1.1rem; border-radius: 9px; font-size: .9rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none;
}
.switch__opt:hover { background: var(--paper); color: var(--ink); }
.switch__opt.is-active { background: var(--plum); color: #fff; }

/* ---------- Eigene Voting-Seite: nur Umschalter + Duell ---------------- */

.voting-band { padding: clamp(1.6rem, 3vw, 2.2rem) 0 clamp(2.5rem, 5vw, 4rem); }
.voting-band .wide-wrap { max-width: 900px; text-align: center; }
.voting-band .switch { margin-bottom: 1.6rem; }
.voting-band #duel-area { text-align: left; }

/* ---------- Das Duell (Signature) ------------------------------------- */

.duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(.6rem, 1.6vw, 1.2rem);
}

.duel__card {
  position: relative;
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.duel__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.duel__frame {
  display: block; position: relative;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--paper);
  aspect-ratio: 4 / 5;
  color: inherit; text-decoration: none;
}
.duel__img { width: 100%; height: 100%; object-fit: cover; }

.duel__frame::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 60%; z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, .4) 50%, transparent);
  pointer-events: none;
}

.duel__info { position: absolute; left: 0; right: 0; bottom: 4.6rem; z-index: 1; padding: 0 1rem; color: #fff; }
.duel__nameline {
  margin: 0 0 .25rem; font-family: var(--font-display); font-weight: 600;
  font-size: 1.2rem; letter-spacing: -.01em; text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.duel__location { margin: 0; display: flex; align-items: center; gap: .3rem; font-size: .82rem; color: rgba(255, 255, 255, .92); }
.duel__location svg { width: 13px; height: 13px; flex: none; }

.duel__delta {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.7);
  padding: .35rem .8rem; border-radius: 999px; z-index: 2;
  font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.1rem;
  color: #fff; background: var(--ink); opacity: 0; pointer-events: none;
}
.duel__delta.is-win { background: var(--ok); }
.duel__delta.is-loss { background: var(--err); }
.duel__delta.is-visible { animation: delta-pop 1.1s ease forwards; }
@keyframes delta-pop {
  0%   { opacity: 0; transform: translate(-50%, -30%) scale(.7); }
  25%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  75%  { opacity: 1; transform: translate(-50%, -55%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(.95); }
}

.duel__heart {
  position: absolute; left: 50%; bottom: 1rem; z-index: 3; transform: translateX(-50%);
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center;
  background: #fff; box-shadow: 0 6px 16px rgba(34, 24, 38, .28);
  transition: transform .12s ease;
}
.duel__heart svg { width: 24px; height: 24px; }
.duel__heart:hover { transform: translateX(-50%) scale(1.08); }
.duel__heart:active { transform: translateX(-50%) scale(.94); }
.duel__heart--a { color: var(--side-a); }
.duel__heart--b { color: var(--side-b); }

.duel__vs {
  align-self: center;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transform: rotate(45deg);
  box-shadow: var(--shadow-sm);
}
.duel__vs span {
  transform: rotate(-45deg);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .02em; color: var(--plum);
}

.duel.is-busy { opacity: .55; pointer-events: none; transition: opacity .15s; }
.duel-hint { margin-top: 1.2rem; font-size: .82rem; color: var(--muted); }

.duel-empty {
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center;
}
.duel-empty__title { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 .4rem; }

.guest-note {
  margin-top: 1.1rem; padding: 1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--plum); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.guest-note__text { margin: 0 0 .8rem; font-weight: 600; }
.guest-note__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Abschnitte ------------------------------------------------ */

.section { margin-top: 2.2rem; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section__title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: 1.45rem; margin: 0 0 1rem;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.steps__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem;
}
.steps__num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--paper); color: var(--plum); font-weight: 700; font-size: .8rem; margin-bottom: .5rem;
}
.steps__head { margin: 0 0 .25rem; font-weight: 600; }
.steps__item p:last-child { margin: 0; font-size: .88rem; color: var(--ink-soft); }

/* ---------- Ranglisten ------------------------------------------------- */

.ranklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ranklist__item { display: flex; align-items: center; gap: .6rem; }
.ranklist__pos {
  width: 20px; text-align: center; font-weight: 700; font-size: .8rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ranklist__img { width: 38px; height: 46px; object-fit: cover; border-radius: 7px; background: var(--paper); }
.ranklist__meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ranklist__name { font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranklist__rating { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ranklist--a .ranklist__pos { color: var(--side-a); }
.ranklist--b .ranklist__pos { color: var(--side-b); }

.thumbgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.thumbgrid__item { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4/5; background: var(--paper); }
.thumbgrid__item img { width: 100%; height: 100%; object-fit: cover; }

.stats { margin: 0; }
.stats__row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dotted var(--line); font-size: .87rem; }
.stats__row:last-child { border-bottom: 0; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Tabellen, Karten, Listen ---------------------------------- */

.table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.table th, .table td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.table tbody tr:last-child td { border-bottom: 0; }
.table__pos { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--plum); width: 3rem; }
.table__num { font-variant-numeric: tabular-nums; }
.table__img { width: 44px; height: 54px; object-fit: cover; border-radius: 7px; }
.table-wrap { overflow-x: auto; }

.cardgrid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.minicard {
  display: block; position: relative; color: inherit; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.minicard__img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.minicard__rank {
  position: absolute; top: .7rem; left: .7rem; z-index: 1;
  min-width: 32px; height: 32px; padding: 0 .5rem; border-radius: 999px;
  background: var(--ink); color: #fff; box-shadow: 0 3px 10px rgba(34, 24, 38, .35);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.minicard__rank--a { background: var(--side-a); }
.minicard__rank--b { background: var(--side-b); }

.cardgrid--top { grid-template-columns: repeat(auto-fill, minmax(200px, 230px)); gap: 1.2rem; }
.cardgrid--top .minicard__name { font-family: var(--font-display); font-size: 1.05rem; }
.minicard__body { padding: .6rem .7rem .8rem; }
.minicard__name { display: flex; align-items: center; gap: .35rem; margin: 0 0 .15rem; font-weight: 600; font-size: .9rem; }
.minicard__meta { margin: 0; font-size: .76rem; color: var(--muted); }
.minicard__actions { margin-top: .6rem; display: flex; gap: .3rem; flex-wrap: wrap; }
.minicard__actions form { display: flex; gap: .3rem; flex-wrap: wrap; }

.userlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.userlist__item {
  display: flex; align-items: center; gap: .6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem;
}
.userlist__name { font-weight: 600; font-size: .92rem; }
.userlist__time { margin-left: auto; font-size: .78rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--a { background: var(--side-a); }
.dot--b { background: var(--side-b); }

.pill {
  display: inline-block; padding: .12rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line);
}
.pill--on { background: #e8f3ec; color: var(--ok); border-color: #cfe6d8; }
.pill--off { background: #f6eef0; color: var(--err); border-color: #eddadd; }
.muted { color: var(--muted); font-size: .85rem; }
.inline-form { display: flex; gap: .3rem; flex-wrap: wrap; }

/* ---------- Formulare -------------------------------------------------- */

.formcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 2.5vw, 1.9rem); box-shadow: var(--shadow-sm); max-width: 560px;
}
.formcard--danger { border-color: #eddadd; background: #fdf8f9; }

.settings-stack { display: grid; gap: 1.4rem; max-width: 560px; }
.settings-stack .formcard { max-width: none; }

/* ---------- Profil-Kopf -------------------------------------------------- */

.profile-hero {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm); margin-bottom: 1.6rem;
}
.profile-hero__avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--paper); box-shadow: var(--shadow-sm);
}
.profile-hero__body { min-width: 0; }
.profile-hero__name {
  margin: .1rem 0 .25rem; font-family: var(--font-display); font-weight: 600;
  font-size: 1.7rem; letter-spacing: -.02em;
}
.profile-hero__meta { margin: 0; color: var(--muted); font-size: .9rem; }
.profile-hero__stats {
  display: flex; flex-wrap: wrap; gap: 1.6rem; margin: .9rem 0 0;
  padding-top: .9rem; border-top: 1px solid var(--line);
}
.profile-hero__stats dt { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.profile-hero__stats dd {
  margin: .1rem 0 0; font-family: var(--font-display); font-weight: 600;
  font-size: 1.15rem; font-variant-numeric: tabular-nums;
}

.profile-hero__city {
  display: flex; align-items: center; gap: .55rem; margin-top: 1.1rem; max-width: 420px;
}
.profile-hero__city svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.profile-hero__city input {
  flex: 1; min-width: 0; font: inherit; font-size: .88rem;
  padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink);
}
.profile-hero__city input:focus { background: var(--surface); }

@media (max-width: 480px) {
  .profile-hero { text-align: center; justify-content: center; }
  .profile-hero__stats { justify-content: center; }
  .profile-hero__city { max-width: none; }
}
.form { display: grid; gap: .9rem; }
.form--compact { gap: .6rem; }
.field { display: grid; gap: .3rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=date], .field input[type=file], .field select, .field textarea {
  font: inherit; font-size: .95rem;
  padding: .6rem .75rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); width: 100%;
}
.field input:focus { background: var(--surface); }
.field__hint { font-size: .76rem; color: var(--muted); }
.field__error { font-size: .78rem; color: var(--err); font-weight: 600; }
.field.is-invalid input { border-color: var(--err); background: #fdf5f6; }
.field-row { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
.choice { display: flex; gap: 1.2rem; }
.choice__opt, .check { display: flex; align-items: flex-start; gap: .45rem; font-size: .92rem; }
.check { align-items: flex-start; font-size: .86rem; color: var(--ink-soft); }
.check input { margin-top: .25rem; }
.formcard__foot { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }

.flash { padding: .7rem 1rem; border-radius: 10px; margin: 0 0 .6rem; font-size: .9rem; border: 1px solid var(--line); background: var(--surface); }
.flash--success { border-color: #cfe6d8; background: #eef7f1; color: var(--ok); }
.flash--error { border-color: #eddadd; background: #fbeff1; color: var(--err); }
.flash--info { border-color: #dfe6ef; background: #f0f4f9; color: #2e4a6b; }
.flash-stack { margin-bottom: 1rem; }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.4rem; color: var(--muted); }
.note { background: #fdf8ec; border: 1px solid #eadfc4; color: #6b5626; padding: .8rem 1rem; border-radius: 10px; font-size: .88rem; }
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--font-display); font-size: 1.2rem; margin: 1.6rem 0 .4rem; }
.prose code { background: var(--paper); padding: .1rem .35rem; border-radius: 5px; font-size: .88em; }

/* ---------- Fuß --------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; background: var(--surface); }
.site-footer__inner {
  max-width: var(--shell); margin: 0 auto; padding: 1.2rem clamp(1rem, 2vw, 2rem);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .84rem; color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer__nav { display: flex; gap: 1rem; }
.site-footer__nav a { color: var(--muted); text-decoration: none; }
.site-footer__nav a:hover { color: var(--plum); }

/* ---------- Umbrüche ---------------------------------------------------- */

@media (max-width: 1140px) {
  .shell { grid-template-columns: 236px minmax(0, 1fr); }
  .col--right { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
  .col--left { position: static; }
}

@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .col--main { order: 1; }
  .col--left { order: 2; }
  .col--right { order: 3; grid-template-columns: minmax(0, 1fr); }

  .duel { grid-template-columns: minmax(0, 1fr); }
  .duel__vs { justify-self: center; width: 44px; height: 44px; margin: -.2rem 0; }

  .field-row { grid-template-columns: minmax(0, 1fr); }
  .hero__stats { gap: 1.2rem; }
  .thumbgrid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .duel__card:hover { transform: none; }
}

/* =========================================================
   Breites Layout mit Kopfleiste (Startseite)
   ========================================================= */

.page-wide { background-image: none; }

.wide-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- Kopfleiste ------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1220px; margin: 0 auto;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: 1.5rem;
}
.site-header .brand { padding: 0; margin-right: auto; }

.topnav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.topnav__list { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.topnav__link {
  color: var(--ink-soft); text-decoration: none; font-size: .93rem; font-weight: 500;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.topnav__link:hover { color: var(--plum); border-bottom-color: var(--plum); }
.topnav__actions { display: flex; align-items: center; gap: .9rem; padding-left: 1.4rem; border-left: 1px solid var(--line); }

.navtoggle {
  display: none; align-items: center; gap: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .45rem .8rem; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  color: var(--ink);
}
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after {
  display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.navtoggle__bars::before, .navtoggle__bars::after { content: ''; position: absolute; left: 0; }
.navtoggle__bars::before { top: -5px; }
.navtoggle__bars::after { top: 5px; }

/* ---------- Kopfbereich ------------------------------------------------ */

.hero-wide {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(46rem 34rem at 82% 12%, rgba(29, 122, 135, .13), transparent 62%),
    radial-gradient(40rem 30rem at 96% 62%, rgba(192, 66, 95, .13), transparent 60%),
    linear-gradient(180deg, #fdfbfc 0%, var(--paper) 100%);
}
.hero-wide__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.eyebrow--spaced { letter-spacing: .2em; }

.hero-wide__title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.02; margin: .2rem 0 1rem;
}
.hero-wide__accent { color: var(--plum); }
.hero-wide__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600; color: var(--ink-soft);
  margin: 0 0 1rem; max-width: 34ch;
}
.hero-wide__lead { margin: 0 0 1.8rem; color: var(--muted); max-width: 46ch; }
.hero-wide__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2.2rem; }
.btn--lg { padding: .85rem 1.6rem; font-size: 1rem; border-radius: 12px; }

.hero-wide__stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); margin: 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-wide__stats dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-wide__stats dd {
  margin: .15rem 0 0; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600; font-variant-numeric: tabular-nums;
}

/* ---------- Collage im Kopfbereich ------------------------------------- */

.hero-wide__visual { position: relative; }
.blob {
  /* organische Form statt Kreis oder Rechteck */
  border-radius: 46% 54% 36% 64% / 56% 44% 56% 44%;
  overflow: hidden;
  transform: rotate(-4deg);
  box-shadow: 0 24px 60px rgba(34, 24, 38, .16);
  background: var(--surface);
  max-width: 520px; margin-inline: auto;
}
.blob__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
  aspect-ratio: 1 / 0.92; background: var(--surface);
  transform: rotate(4deg) scale(1.12);
}
/* Kopf oben halten, damit die Porträts nicht zu eng beschnitten werden */
.blob__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }

.blob__vs {
  position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%) rotate(45deg);
  width: 60px; height: 60px; display: grid; place-items: center;
  background: var(--surface); border-radius: 17px;
  box-shadow: 0 8px 22px rgba(34, 24, 38, .2);
}
.blob__vs span {
  transform: rotate(-45deg);
  font-family: var(--font-display); font-weight: 700; color: var(--plum); font-size: 1rem;
  letter-spacing: .02em;
}

.blob__badge {
  position: absolute; right: 4%; bottom: 2%;
  width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: .1rem;
  background: linear-gradient(140deg, var(--side-a), var(--plum));
  color: #fff; box-shadow: 0 12px 28px rgba(34, 24, 38, .22);
  padding: .5rem;
}
.blob__badge strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.blob__badge span { font-size: .66rem; line-height: 1.25; opacity: .92; }

/* ---------- Bänder ------------------------------------------------------ */

.band { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.band--muted { background: var(--surface); border-block: 1px solid var(--line); }
.band__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.band__title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em;
  font-size: clamp(1.6rem, 3vw, 2.1rem); margin: .1rem 0 0;
}
.band__links { display: flex; gap: .4rem; }

.featuregrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.4rem; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.5rem;
}
.feature__num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; color: var(--plum); margin-bottom: .8rem;
}
.feature__title { font-size: 1.02rem; margin: 0 0 .35rem; }
.feature p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

.toplists { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.panel--wide { padding: 1.3rem 1.5rem 1.5rem; }
.panel--wide .ranklist { gap: .7rem; }
.panel--wide .ranklist__img { width: 46px; height: 56px; }
.panel--wide .ranklist__name { font-size: .95rem; }

/* ---------- Abschlussband ------------------------------------------------ */

.cta { background: var(--plum); color: #fff; padding: clamp(2.2rem, 4vw, 3.2rem) 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; }
.cta__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .3rem; }
.cta__lead { margin: 0; color: rgba(255, 255, 255, .82); max-width: 52ch; }
.cta__actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.btn--light { background: #fff; color: var(--plum); }
.btn--light:hover { background: #f3ecf1; color: var(--plum-dark); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.site-footer--wide .site-footer__inner { max-width: 1220px; }

/* ---------- Umbrüche ------------------------------------------------------ */

@media (max-width: 980px) {
  .hero-wide__grid { grid-template-columns: minmax(0, 1fr); }
  .hero-wide__visual { max-width: 420px; margin: 1.5rem auto 0; }
  .hero-wide__text { text-align: left; }

  .navtoggle { display: inline-flex; }
  .topnav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .6rem clamp(1rem, 4vw, 2.5rem) 1.1rem;
    box-shadow: var(--shadow-md);
  }
  .topnav.is-open { display: flex; }
  .site-header__inner { position: relative; }
  .topnav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .topnav__link { padding: .65rem 0; border-bottom: 1px solid var(--line); }
  .topnav__link:hover { border-bottom-color: var(--line); }
  .topnav__actions { padding: .9rem 0 0; border-left: 0; }
}

@media (max-width: 620px) {
  .blob__badge { width: 92px; height: 92px; right: -2%; }
  .blob__badge strong { font-size: 1.2rem; }
  .blob__vs { width: 50px; height: 50px; font-size: .85rem; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Einzelansicht eines Bildes (aus dem Duell heraus) ---------- */

.photoview { max-width: 460px; margin: 0 auto; }
.photoview__back {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .86rem; font-weight: 600; color: var(--muted); text-decoration: none;
  margin-bottom: 1.1rem;
}
.photoview__back:hover { color: var(--plum); }
.photoview__frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow-md); aspect-ratio: 4 / 5;
}
.photoview__img { width: 100%; height: 100%; object-fit: cover; }
.photoview__meta { margin-top: 1.3rem; text-align: center; }
.photoview__name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.7rem;
  letter-spacing: -.02em; margin: 0;
}
.photoview__stats {
  display: flex; justify-content: center; gap: 1.8rem; margin: 1rem 0 1.4rem;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.photoview__stats dt { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.photoview__stats dd {
  margin: .15rem 0 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums;
}

/* Duell im breiten Layout: Karten links, Erklärung rechts */
.duelband {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, .85fr);
  gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start;
}
.duelband__side {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.4rem; box-shadow: var(--shadow-sm);
}
.ticklist { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .55rem; }
.ticklist li { position: relative; padding-left: 1.4rem; font-size: .9rem; color: var(--ink-soft); }
.ticklist li::before {
  content: ''; position: absolute; left: 0; top: .52em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--side-a);
}
.ticklist li:nth-child(even)::before { background: var(--side-b); }
.kbd-hint { font-size: .82rem; color: var(--muted); margin: 0 0 1rem; }
kbd {
  display: inline-block; padding: .05rem .38rem; margin: 0 .1rem;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
  background: var(--paper); font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink);
}
.page-wide .duel__frame { aspect-ratio: 3 / 4; }
.page-wide .hero-wide + .band { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

@media (max-width: 900px) {
  .duelband { grid-template-columns: minmax(0, 1fr); }
}
