/* Clawrence Design System — Finanzen Dashboard */

:root {
  --bg: #0a0a0c;
  --surface: #1c1c20;
  --surface-2: #26262a;
  --surface-3: #33333a;
  --text: #fafafa;
  --muted: #a1a1aa;
  --dim: #71717a;
  --mint: #14b8a6;
  --mint-deep: #0d9488;
  --neg: #fb7185;
  --border-soft: #15151a;
  --border-field: #2a2a2e;
  --border-table: #2a2a2e;

  --font: 'Lato', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: 'kern' 1;
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* --- Header-Tape (§5.1) --- */
.tape {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--mint);
  border-radius: 50%;
  font-family: var(--font);
  font-weight: 900;
  font-size: 0.92rem;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.crumb {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
}
.crumb em { font-style: normal; color: var(--text); font-weight: 700; }
.crumb .sep { color: var(--dim); padding: 0 8px; }

.grow { flex: 1; }

.user-pill {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  margin-right: 8px;
}

/* --- Buttons (§5.3) --- */
.btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.12s;
}
.btn:hover { background: var(--surface-2); }
.btn.primary {
  background: var(--mint);
  color: #062021;
  border-color: var(--mint);
}
.btn.primary:hover { background: #1cd6c2; }
.btn.full { width: 100%; padding: 12px 16px; }

/* --- Page-Header (§5.2) --- */
.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 36px 0 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.head h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.022em;
}
.head .sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

/* --- Tile-Grid (eigene Zusammensetzung aus §5.4 KPI-Tile-Pattern) --- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.tile {
  background: var(--surface);
  padding: 20px 22px;
  border-radius: 14px;
  transition: background 0.12s;
  display: block;
}
.tile:hover { background: var(--surface-2); }
.tile .tile-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.tile .tile-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--text);
  margin-bottom: 6px;
}
.tile .tile-desc {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}

/* --- Empty-State --- */
.empty {
  background: var(--surface);
  padding: 56px 28px;
  text-align: center;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 18px;
}

/* --- Login-Screen --- */
.login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 28px;
}
.login-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 36px 36px 32px;
  width: 100%;
  max-width: 380px;
}
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}
.login-brand .label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Form-Row (§5.8 Label + §5.9 Field) --- */
.form-row { margin-bottom: 18px; }
.form-row label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.form-row label::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--mint);
}

.field {
  background: var(--bg);
  border: 1px solid var(--border-field);
  border-radius: 9px;
  padding: 10px 12px;
  transition: border-color 0.12s;
}
.field:focus-within { border-color: var(--mint); }
.field input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

/* --- Alert (§5.12) --- */
.alert {
  background: var(--surface);
  border-left: 3px solid var(--neg);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: var(--text);
}
