/* Art Legacy – Plattform Projekt: gemeinsame Design-Tokens & Basiskomponenten */

:root {
  --bg: #0a0a0f;
  --surface: #131319;
  --surface-2: #1a1a22;
  --line: #2a2a35;
  --line-soft: #1e1e27;
  --text: #f2f0f5;
  --text-muted: #9d9aa8;
  --text-faint: #6b687a;

  --purple: #b45cff;
  --purple-soft: rgba(180, 92, 255, 0.14);
  --orange: #ff7a3d;
  --orange-soft: rgba(255, 122, 61, 0.14);
  --green: #4ee08a;
  --green-soft: rgba(78, 224, 138, 0.14);
  --teal: #34d1c9;
  --teal-soft: rgba(52, 209, 201, 0.14);
  --yellow: #ffd23f;
  --yellow-soft: rgba(255, 210, 63, 0.14);
  --red: #ff4d4d;
  --red-soft: rgba(255, 77, 77, 0.14);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Martian Mono', monospace;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

code, .mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

::selection { background: var(--purple-soft); color: var(--text); }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.eyebrow::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px 1px currentColor;
}

/* ---------- Ambient bokeh background ---------- */

.bokeh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bokeh span {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.5;
  animation: bokeh-drift 22s ease-in-out infinite alternate;
}

@keyframes bokeh-drift {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-24px) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .bokeh span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Input-abhängige Hinweistexte (Maus vs. Touch) ---------- */

.touch-hint { display: none; }

@media (hover: none) and (pointer: coarse) {
  .mouse-hint { display: none; }
  .touch-hint { display: inline; }
}

/* ---------- Kopfzeile: Zurück-Button links, Login rechts ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55em 1em;
  text-decoration: none;
}

.back-btn:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Layout helpers ---------- */

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

.page-narrow { max-width: 760px; }

section + section { margin-top: 3rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3em 0.8em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75em 1.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--surface); }

.btn-accent {
  border-color: transparent;
  color: #0a0a0f;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem 1.5rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text);
}

.site-footer .footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer a { color: var(--text); }

.site-footer a { text-decoration: none; color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

.site-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

/* ---------- Login-Button (derzeit inaktiv) ---------- */

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.5em 0.9em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-muted);
  text-decoration: none;
}

.login-btn.is-disabled { opacity: 0.55; }
.login-btn.is-disabled:hover { border-color: var(--yellow); color: var(--yellow); opacity: 0.8; }

.social-row {
  display: flex;
  gap: 0.75rem;
}

.social-row a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
}

.social-row svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .page { padding: 1.5rem 1rem 4rem; }
  .card { padding: 1.25rem; }
}

/* ---------- Anmelde-Tor ----------
   Steht über Formularen, die ein Konto voraussetzen (Videovorschlag auf der
   Community-Seite, Bewerbung, Newsletter). Gefüllt wird es von
   assets/js/konto-status.js. */

.anmelde-tor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 0.7em 0.9em;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.anmelde-tor[hidden] { display: none; }
.anmelde-tor a { color: var(--orange); }
.anmelde-tor a:hover { text-decoration: underline; }

/* angemeldet: unauffälliger, es ist ja nur noch eine Bestätigung */
.anmelde-tor.at-offen {
  border-style: solid;
  border-color: rgba(78, 224, 138, 0.35);
  background: rgba(78, 224, 138, 0.06);
  color: var(--text-muted);
}
.anmelde-tor.at-offen b { color: #7fe0a0; font-weight: 400; }

/* ---------- Echte Profilbilder in den Platzhalter-Kreisen ----------
   Gesetzt von assets/js/mitglieder.js. Ohne echte Bilder greift hier nichts. */
.ring.mg-hat-bild { padding: 0; overflow: hidden; }
.ring .mg-bild { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
