/* 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; }
}

/* ---------- Bestell-Knopf fuers gedruckte Galeriebuch ---------- */

.nav-rechts {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bestell-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 1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--teal);
  background: rgba(45, 212, 191, 0.12);
  color: var(--teal);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.bestell-btn:hover { background: var(--teal); color: #0a0a0f; }
.bestell-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.bestell-btn.is-disabled { opacity: 0.6; border-color: var(--line); color: var(--text-muted); background: var(--surface-2); }

/* Auf schmalen Schirmen wird die Kopfzeile sonst zu eng:
   artlegacy.de tritt zurueck, der Bestell-Knopf bleibt. */
@media (max-width: 560px) {
  .bestell-btn { font-size: 0.66rem; padding: 0.5em 0.7em; }
  .nav-rechts .login-btn { display: none; }
}
