:root {
  /* Warm stone neutral scale */
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a6a09b;
  --stone-500: #79716b;
  --stone-600: #57534d;
  --stone-700: #44403b;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;

  /* Brand warm neutrals — one muted tint per surface/category */
  --cream: #f6f4f0;
  --sand: #dbd4ca;
  --tan: #cdbda3;
  --sage: #d6dbd5;

  /* Sparing accents */
  --orange: #ff6900;
  --forest-green: #0d7835;
  --forest-green-bg: #e7f1ea;

  /* Semantic aliases — used throughout the app */
  --bg: var(--cream);
  --surface: #ffffff;
  --text-primary: var(--stone-900);
  --text-secondary: var(--stone-600);
  --text-muted: var(--stone-400);
  --border: var(--stone-200);

  /* The everyday interactive color (selected states, buttons, CTAs, icons) — a quiet
     dark neutral, NOT green. Green is not a CTA color anywhere on the customer-facing
     site; the only place it appears is the "Mit Gutachten" result value on the
     Sparrechner (rechner.css), where it highlights the actual positive number itself. */
  --action: var(--stone-900);
  --action-bg: var(--stone-100);

  --accent-green: var(--forest-green);
  --accent-green-bg: var(--forest-green-bg);

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  --font: -apple-system, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

p {
  letter-spacing: 0.005em;
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="tel"],
select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-family: var(--font);
  font-size: 16px;
  background: var(--surface);
  color: var(--text-primary);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

input:focus,
select:focus,
button:focus {
  outline: 1.5px solid var(--stone-950);
  outline-offset: 1px;
}

input[type="range"] {
  width: 100%;
  height: 44px;
  accent-color: var(--stone-950);
}

button {
  min-height: 44px;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--stone-950);
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  padding: 0 20px;
  transition: background-color 0.15s var(--ease), box-shadow 0.15s var(--ease), opacity 0.15s var(--ease);
}

button:hover {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 0 0 1px var(--stone-300);
}

button.primary {
  background: var(--action);
  color: #fff;
  border-color: var(--action);
}

button.primary:hover {
  background: var(--action);
  opacity: 0.85;
  box-shadow: none;
  transform: translateY(-1px);
}

.card {
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}
