/* Gemeinsame Gestaltung von App und Admin: Farben, Schriften, Grundformen (Kopie aus mockup/shared).
   Bewusst nur dunkel: Swoopr sieht aus wie eine Nachtfahrt mit Lichtspur. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/unbounded-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;

  --ink-0: #07080f;
  --ink-1: #0d0f1a;
  --ink-2: #151827;
  --ink-3: #1e2235;
  --ink-4: #2a2f47;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f3f1ec;
  --text-2: #a8adc2;
  --text-3: #6e7390;

  --coral: #ff6b4a;
  --pink: #ff3d8b;
  --violet: #8a6bff;
  --lime: #c8f560;
  --amber: #ffc24b;
  --sky: #5ad1ff;
  --danger: #ff5a5f;

  --grad: linear-gradient(120deg, var(--coral), var(--pink) 50%, var(--violet));
  --grad-soft: linear-gradient(120deg, rgba(255, 107, 74, 0.18), rgba(255, 61, 139, 0.14) 50%, rgba(138, 107, 255, 0.18));

  --font-display: "Unbounded", "Inter", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(255, 61, 139, 0.35), 0 10px 40px rgba(255, 61, 139, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.display { font-family: var(--font-display); letter-spacing: -0.02em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink-3);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.12s ease, background 0.2s ease, opacity 0.2s;
}
a.btn { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn.primary { border: 0; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(255, 90, 95, 0.4); color: var(--danger); background: transparent; }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink-2);
  position: relative;
}
.icon-btn svg { width: 20px; height: 20px; }

/* Karten, Chips, Felder */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--text-2);
  white-space: nowrap;
}
.chip.on { background: var(--text); color: var(--ink-1); border-color: var(--text); }
.chip svg { width: 14px; height: 14px; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--ink-1);
  color: var(--text);
  outline: none;
}
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 139, 0.18); }
textarea.input { min-height: 90px; resize: vertical; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
}
.badge.lime { background: rgba(200, 245, 96, 0.14); color: var(--lime); }
.badge.amber { background: rgba(255, 194, 75, 0.14); color: var(--amber); }
.badge.pink { background: rgba(255, 61, 139, 0.16); color: #ff86b7; }
.badge.danger { background: rgba(255, 90, 95, 0.16); color: var(--danger); }

/* Avatare */
.avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ink-3);
}
.avatar.s { width: 28px; height: 28px; }
.avatar.l { width: 64px; height: 64px; }
.avatar.xl { width: 104px; height: 104px; }
.avatar.ini {
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #0d0f1a;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 70%, white), var(--c) 55%, color-mix(in srgb, var(--c) 55%, black));
}
.avatar.ini.s { font-size: 10px; }
.avatar.ini.l { font-size: 22px; }
.avatar.ini.xl { font-size: 34px; }

/* Fortschrittsbalken */
.bar { height: 8px; border-radius: 999px; background: var(--ink-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar.lime > i { background: linear-gradient(90deg, #8be04a, var(--lime)); }

/* Routen-Kunstwerk */
.route-art { display: block; width: 100%; height: auto; border-radius: var(--r-md); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
