/* ============================================================
   Mein-Tandemsprung — Design Tokens
   Bold / adrenalin · Sky-Blau · shadcn-Konventionen
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* — Neutrals (cool slate) — */
  --background: #ffffff;
  --surface: #f8fafc;          /* slate-50 */
  --surface-2: #f1f5f9;        /* slate-100 */
  --foreground: #0b1220;       /* near-black, cool */
  --muted: #f1f5f9;
  --muted-foreground: #64748b; /* slate-500 */
  --subtle-foreground: #94a3b8;/* slate-400 */
  --border: #e2e8f0;           /* slate-200 */
  --border-strong: #cbd5e1;    /* slate-300 */
  --card: #ffffff;

  /* — Night sky (bold dark surfaces) — */
  --night: #070b16;
  --night-1: #0a1120;
  --night-2: #0f1a30;
  --night-border: #1e2a44;
  --night-foreground: #eef2fb;
  --night-muted: #8ea0c4;

  /* — Primary: Sky blue — */
  --primary: #1f6feb;
  --primary-600: #1a5fd0;
  --primary-700: #1850b0;
  --primary-foreground: #ffffff;
  --primary-soft: #e8f0fe;
  --primary-soft-fg: #1850b0;
  --ring: #1f6feb;

  /* — Ampel (Verfügbarkeit) — */
  --avail-green: #15a34a;
  --avail-green-soft: #dcfce7;
  --avail-green-fg: #0f7a37;
  --avail-amber: #e08a00;
  --avail-amber-soft: #fef0d3;
  --avail-amber-fg: #a85d00;
  --avail-red: #dc2626;
  --avail-red-soft: #fde2e2;
  --avail-red-fg: #b01717;

  /* — Radii — */
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* — Shadows — */
  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 1px 1px rgba(11,18,32,.04);
  --shadow: 0 4px 16px -4px rgba(11,18,32,.10), 0 2px 6px -2px rgba(11,18,32,.06);
  --shadow-lg: 0 18px 50px -12px rgba(11,18,32,.22), 0 8px 20px -8px rgba(11,18,32,.12);
  --shadow-primary: 0 10px 30px -8px rgba(31,111,235,.45);

  /* — Type — */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-sans: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Focus-visible — accessibility */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

/* — Display headline scale — */
.display-xl { font-size: clamp(2.8rem, 7vw, 6.5rem); font-weight: 900; line-height: 0.92; letter-spacing: -0.03em; }
.display-lg { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; line-height: 0.96; letter-spacing: -0.03em; }

/* ====== Reusable component classes (shadcn-ish) ====== */

.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-600); }
.btn-dark { background: var(--foreground); color: #fff; }
.btn-dark:hover { background: #1c2740; }
.btn-outline { background: var(--card); color: var(--foreground); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn-block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  background: var(--surface-2); color: var(--muted-foreground);
  border: 1px solid var(--border);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.input {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--foreground);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,111,235,.15); }

label { font-size: 0.85rem; font-weight: 600; color: var(--foreground); }

/* — Photo placeholder (until real photos dropped) — */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, #0c1426 0 14px, #0e1830 14px 28px);
  color: #5d7099;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .12em;
  text-transform: uppercase; text-align: center;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  padding: 0.5rem 0.8rem;
  border: 1px dashed #2a3a5e; border-radius: 6px;
  background: rgba(7,11,22,.5);
}

/* utilities */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* Ampel dot */
.ampel { display:inline-flex; align-items:center; gap:0.45rem; font-weight:600; font-size:0.85rem; }
.ampel-dot { width:10px; height:10px; border-radius:999px; flex:none; box-shadow:0 0 0 3px var(--dot-ring, transparent); }
.ampel.green  { color: var(--avail-green-fg); --dot-ring: var(--avail-green-soft); }
.ampel.green  .ampel-dot { background: var(--avail-green); }
.ampel.amber  { color: var(--avail-amber-fg); --dot-ring: var(--avail-amber-soft); }
.ampel.amber  .ampel-dot { background: var(--avail-amber); }
.ampel.red    { color: var(--avail-red-fg); --dot-ring: var(--avail-red-soft); }
.ampel.red    .ampel-dot { background: var(--avail-red); }
