/* Skirnir – Anmeldeseite (Anthrazit & Gold, passend zum Logo)
 * Stylesheet ausschließlich für public/index.html. Die Rechtstexte (Impressum, Datenschutz, 404) nutzen weiterhin site.css.
 * Keine externen Schriften oder Bilder - die Content-Security-Policy erlaubt nur die eigene Domain.
 * Aufbau: Variablen, Grundlagen, Kopf mit Logos, Anmeldekarte, Fußzeile, kleine Bildschirme. */

:root {
  --gold: #d4ae6a; --gold-2: #e8c98c; --gold-strong: #a8823f;
  --night: #121212; --night-2: #1b1b1a;
  --ink: #1b1a18; --ink-2: #4a4640; --muted: #7a746b; --on-dark-2: #b9b0a2;
  --ok: #2f7d4f; --danger: #b3261e;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: radial-gradient(1200px 600px at 50% -10%, #2a2620 0%, var(--night) 60%); color: #efe9de; font-family: var(--font); line-height: 1.5; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Seitenrahmen: Inhalt mittig, Fußzeile unten */
.page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 32px 16px 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }

/* Kopf mit beiden Logos */
.brands { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; width: 100%; max-width: 640px; }
.brand-skirnir { width: 210px; max-width: 46%; border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.brand-partner { display: flex; align-items: center; justify-content: center; min-width: 150px; max-width: 46%; font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; color: var(--gold); text-align: center; }
.brand-partner img { display: block; max-width: 100%; max-height: 90px; }
/* Das Logo (transparent, graue Schrift) steht auf einer weißen Platte, damit es auf dem dunklen Grund gut lesbar bleibt. */
.brand-partner.has-logo { background: #fff; border-radius: 12px; padding: 14px 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }

/* Anmeldekarte */
.card { width: 100%; max-width: 420px; background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; border-top: 4px solid var(--gold); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.card h1, .card h2 { font-size: 1.45rem; margin-bottom: .2rem; }
.sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }
.fld { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .95rem; }
.fld label { font-size: .85rem; font-weight: 650; color: var(--ink-2); }
.fld input { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #cfc7b9; border-radius: 10px; padding: .75rem .85rem; width: 100%; }
.fld input:focus { outline: none; border-color: var(--gold-strong); box-shadow: 0 0 0 3px rgba(212, 174, 106, .35); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: .85rem 1.2rem; border-radius: 10px; font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; border: 1px solid var(--night); background: var(--night); color: var(--gold); }
.btn:hover { background: #000; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.line { background: transparent; color: var(--ink); border-color: #e3ddd2; margin-top: .6rem; }
.btn.line:hover { border-color: var(--gold-strong); background: transparent; }
.msg { border-radius: 10px; padding: .7rem .9rem; font-size: .93rem; margin-bottom: .9rem; }
.msg.err { background: #fbe5e3; color: var(--danger); }
.msg.ok { background: #e3f2e8; color: var(--ok); }
.foot { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.welcome .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--night); color: var(--gold); display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; margin-bottom: .8rem; }
.welcome .btn { margin-top: .4rem; }
[hidden] { display: none !important; }

/* Fußzeile */
.legal { text-align: center; font-size: .85rem; color: var(--on-dark-2); }
.legal a { color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold); }
.legal span { margin: 0 .5rem; }
.legal p { margin-top: .4rem; font-size: .78rem; opacity: .8; }

/* Kleine Bildschirme: Logos untereinander, Karte mit weniger Innenabstand */
@media (max-width: 520px) {
  .brands { flex-direction: column; gap: 18px; }
  .brand-skirnir { width: 190px; max-width: 70%; }
  .brand-partner { max-width: 80%; }
  .card { padding: 22px; }
}
