/* aktienregister – Platzhalter: Anmeldemaske, Impressum, Datenschutz.
   Farben und Schriften aus apps/web/src/app/globals.css („Aurora“), damit die spätere App nahtlos anschließt.
   Keine Inline-Styles und keine fremden Server (CSP: style-src 'self', font-src 'self'). */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #faf8ff;
  --surface: #ffffff;
  --border: #d6cef0;
  --border-strong: #6f6596;
  --primary: #6d28d9;
  --primary-deep: #4c1d95;
  --on-primary: #ffffff;
  --text: #1b1430;
  --muted: #4a4466;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --night: #0b0716;
  --night-text: #f3f0ff;
  --night-muted: #b8b3d4;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Inter Variable", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14102a;
    --surface: #1a1538;
    --border: #2e2557;
    --border-strong: #7d72b8;
    --primary: #a78bfa;
    --primary-deep: #c4b5fd;
    --on-primary: #0b0716;
    --text: #f3f0ff;
    --muted: #b8b3d4;
    --danger: #fca5a5;
    --danger-bg: #2a1024;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--body); }
a { color: var(--primary); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 2px;
}
.skip { position: absolute; left: -999px; top: .5rem; background: var(--surface); color: var(--text); padding: .5rem .75rem; border-radius: .375rem; z-index: 10; }
.skip:focus { left: .5rem; }

/* Wortmarke */
.wordmark { display: inline-flex; align-items: center; gap: .625rem; color: inherit; text-decoration: none;
  font: 600 1.375rem/1 var(--display); letter-spacing: -.01em; }
.wordmark svg { width: 2rem; height: 2rem; flex: none; }

/* Anmeldeseite: links Markenfläche, rechts Formular; auf dem Handy untereinander */
.shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
@media (min-width: 60rem) {
  .shell { grid-template-columns: minmax(0, 1.15fr) minmax(28rem, 1fr); grid-template-rows: none; }
}
.brand, .page-head {
  position: relative; overflow: hidden; color: var(--night-text);
  background:
    radial-gradient(60rem 40rem at 8% 112%, rgba(124, 58, 237, .55), transparent 60%),
    radial-gradient(40rem 30rem at 96% 4%, rgba(190, 24, 93, .32), transparent 60%),
    radial-gradient(30rem 24rem at 72% 72%, rgba(14, 116, 144, .32), transparent 65%),
    var(--night);
}
/* feine Registerlinien */
.brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .045) 0 1px, transparent 1px 2.75rem);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 35%, #000 70%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 35%, #000 70%, transparent);
}
.brand { padding: 1.25rem 1rem 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.brand > * { position: relative; }
.brand-copy { max-width: 36rem; }
.kicker { margin: 0 0 .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); }
.claim { margin: 0; font: 600 1.75rem/1.15 var(--display); letter-spacing: -.015em; }
.brand-copy p:last-child { margin: 1rem 0 0; color: var(--night-muted); max-width: 32rem; }
.brand-foot { margin: 0; font-size: .875rem; color: var(--night-muted); display: flex; align-items: center; gap: .5rem; }
.brand-foot::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 0 4px rgba(167, 139, 250, .2); }
@media (max-width: 59.99rem) {
  .brand-copy p:last-child, .brand-foot { display: none; }
}
@media (min-width: 60rem) {
  .brand { padding: 2.5rem 3.5rem; justify-content: space-between; }
  .claim { font-size: 2.75rem; }
}

.panel { display: flex; flex-direction: column; align-items: center; padding: 2.5rem 1rem 1.5rem; }
.card { width: 100%; max-width: 24rem; margin: auto 0; }
.card .kicker { color: var(--primary); margin-bottom: .5rem; }
.card h1 { margin: 0; font: 600 2rem/1.2 var(--display); letter-spacing: -.01em; }
.lead { margin: .375rem 0 0; color: var(--muted); font-size: .9375rem; }
.alert { margin: 1.25rem 0 0; padding: .75rem .875rem; border: 1px solid var(--danger); border-radius: .5rem;
  background: var(--danger-bg); font-size: .9rem; line-height: 1.5; }
.alert:target { display: block; }
.alert strong { color: var(--danger); }
form { margin-top: .5rem; }
label { display: block; margin: 1.125rem 0 .375rem; font-size: .875rem; font-weight: 600; }
input[type="email"], input[type="password"] {
  width: 100%; padding: .7rem .8rem; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: .5rem;
}
input:focus-visible { outline-offset: 0; }
button[type="submit"] {
  width: 100%; margin-top: 1.5rem; padding: .8rem 1rem; font: 600 1rem/1.2 var(--body);
  color: var(--on-primary); background: var(--primary); border: 0; border-radius: .5rem; cursor: pointer;
}
button[type="submit"]:hover { background: var(--primary-deep); }
button[type="submit"]:disabled { opacity: .75; cursor: progress; }
.hint { margin-top: 1rem; font-size: .9rem; }
.hint summary { color: var(--primary); cursor: pointer; width: max-content; }
.hint p { margin: .5rem 0 0; color: var(--muted); }
.invite { margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--muted); }
.foot { margin-top: 2.5rem; display: flex; gap: 1.25rem; font-size: .875rem; }
.foot a { color: var(--muted); }

/* Rechtstexte und Fehlerseite */
.page-head { padding: 1rem; }
.page-head .inner { max-width: 46rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.page-head a.back { color: var(--night-muted); font-size: .9rem; }
.legal { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1rem 3rem; overflow-wrap: break-word; }
.legal h1 { margin: 0 0 .5rem; font: 600 2.25rem/1.15 var(--display); letter-spacing: -.01em; }
.legal h2 { margin: 2.25rem 0 .5rem; font: 600 1.25rem/1.3 var(--display); }
.legal h3 { margin: 1.5rem 0 .25rem; font-size: 1rem; }
.legal p, .legal ul, .legal dl { margin: .5rem 0; }
.legal ul { padding-left: 1.25rem; }
.legal .meta { color: var(--muted); }
.legal dl { display: grid; grid-template-columns: 1fr; gap: .125rem 1rem; }
.legal dt { font-weight: 600; font-size: .875rem; color: var(--muted); margin-top: .375rem; }
.legal dd { margin: 0; }
@media (min-width: 40rem) {
  .legal dl { grid-template-columns: 10rem 1fr; }
  .legal dt { margin-top: 0; }
}
.page-foot { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .875rem; }
.page-foot a { color: var(--muted); }
