/* Login-Seiten im Stil der Startseite von deepen-projekte.de
   (Farben, Schriften und Bausteine wie die Download-Seite der Deepen Website). */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
  font-weight: 600 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --nacht: #0b0907;
  --kohle: #14100c;
  --flaeche-hell: #241b13;
  --linie: rgba(255, 196, 150, 0.12);
  --linie-stark: rgba(255, 196, 150, 0.22);
  --text: #f4ede4;
  --text-leise: #b6a796;
  --text-still: #8a7c6d;
  --glut: #f2741f;
  --glut-hell: #ffa04d;
  --glut-tief: #c4520e;
  --rand: clamp(16px, 5vw, 72px);
  --breite: 1240px;
  --schrift-titel: "Bricolage", "Arial Narrow", sans-serif;
  --schrift-text: "Atkinson", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--nacht);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* feines Filmkorn über allem */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23k)'/></svg>");
}

svg { display: block; }
a { color: inherit; }
.punkt { color: var(--glut); }

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

/* ---------- Kopf ---------- */
.kopf {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: 28px var(--rand);
}
.marke { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.marke__zeichen { width: 40px; height: 40px; flex: none; }
.marke__text { display: flex; flex-direction: column; line-height: 1.1; }
.marke__name {
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.marke__zusatz {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-top: 3px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border: 1px solid var(--linie-stark);
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.55);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status svg { width: 14px; height: 14px; color: var(--glut-hell); }

/* ---------- Bühne mit Login-Karte ---------- */
.buehne {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - 90px);
  display: grid;
  place-items: center;
  padding: clamp(120px, 16vw, 160px) var(--rand) clamp(56px, 8vw, 96px);
  background:
    radial-gradient(55% 60% at 82% 78%, rgba(242, 116, 31, 0.30), transparent 70%),
    radial-gradient(30% 30% at 88% 70%, rgba(255, 160, 77, 0.20), transparent 70%),
    radial-gradient(70% 50% at 10% 0%, rgba(107, 61, 23, 0.28), transparent 70%),
    linear-gradient(180deg, var(--nacht) 0%, #120d09 55%, #1e130a 100%);
  border-bottom: 1px solid var(--linie);
}
.buehne__raster {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 196, 150, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 196, 150, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 80%, transparent 100%);
}

.anmeldung {
  position: relative;
  width: min(100%, 420px);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--linie-stark);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(36, 27, 19, 0.85), rgba(20, 16, 12, 0.75));
  backdrop-filter: blur(10px);
}
.anmeldung::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 56px;
  height: 2px;
  background: var(--glut);
}
.vorzeile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--glut-hell);
}
.strich { width: 40px; height: 1px; background: var(--glut); }
h1 {
  margin: 0 0 24px;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.login-hinweis { margin: 0 0 20px; color: var(--text-leise); font-size: 0.95rem; }
.login-fehler {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 160, 77, 0.55);
  border-left: 3px solid var(--glut);
  border-radius: 2px;
  background: rgba(242, 116, 31, 0.12);
  color: #ffd1a6;
  font-size: 0.95rem;
}

.feld { display: block; margin-bottom: 18px; }
.feld span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.feld input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--linie-stark);
  border-radius: 2px;
  background: rgba(11, 9, 7, 0.7);
  color: var(--text);
  font: inherit;
}
.feld input:focus { outline: none; border-color: var(--glut); box-shadow: 0 0 0 3px rgba(242, 116, 31, 0.2); }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 16px 28px;
  border: 0;
  border-radius: 2px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.knopf--primaer {
  background: linear-gradient(180deg, var(--glut-hell), var(--glut) 60%, var(--glut-tief));
  color: #1a0d03;
  box-shadow: 0 10px 30px -10px rgba(242, 116, 31, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.knopf--primaer:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(242, 116, 31, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.login-links { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.92rem; }
.login-links a { color: var(--glut-hell); text-underline-offset: 3px; }
.login-links a:hover { color: var(--text); }

.anmeldung__zurueck {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-still);
}
.anmeldung__zurueck:hover { color: var(--text); }

/* ---------- Fuß ---------- */
.fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: 28px var(--rand) 36px;
  font-size: 0.85rem;
  color: var(--text-still);
}
.fuss p { margin: 0; }
.fuss a { text-decoration-color: var(--linie-stark); text-underline-offset: 3px; }
.fuss a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 640px) {
  .kopf { padding-top: 20px; gap: 10px; }
  .marke { gap: 10px; }
  .marke__zeichen { width: 36px; height: 36px; }
  .marke__name { font-size: 1.2rem; }
  .marke__zusatz { white-space: nowrap; font-size: 0.58rem; letter-spacing: 0.22em; }
  .status { padding: 6px 10px; gap: 7px; letter-spacing: 0.1em; font-size: 0.56rem; }
}
