/* Design tokens — Zahnarztpraxis Schwabing */
:root {
  /* Backgrounds */
  --bg-canvas: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EDF5ED;
  --bg-emphasis: #1F3A28;

  /* Brand */
  --brand-primary: #3A9D50;
  --brand-primary-hover: #2F8A43;
  --brand-soft: #E7EFE6;
  --brand-deep: #1F3A28;

  /* Text */
  --text-primary: #161616;
  --text-secondary: #5C5C5C;
  --text-muted: #8A8A8A;
  --text-on-dark: #FFFFFF;

  /* Borders */
  --border-subtle: #E5E5E5;
  --border-strong: #CCCCCC;

  /* Accent */
  --accent-warning: #B85C2E;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 40px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(20,20,20,0.04);
  --shadow-sm: 0 1px 2px rgba(20,20,20,0.04), 0 4px 12px rgba(20,20,20,0.04);
  --shadow-md: 0 1px 2px rgba(20,20,20,0.05), 0 12px 32px rgba(20,20,20,0.06);
  --shadow-lg: 0 4px 8px rgba(20,20,20,0.06), 0 24px 56px rgba(20,20,20,0.08);

  /* Easing */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Layout */
  --container-max: 1280px;
  --reading-max: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--brand-soft); color: var(--brand-deep); }

/* Type utilities */
.font-display { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -0.01em; }
.font-mono    { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-primary);
  font-family: 'Inter', system-ui, sans-serif;
}

.display-2xl { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 88px; line-height: 1.0; letter-spacing: -0.02em; }
.display-xl  { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 72px; line-height: 1.05; letter-spacing: -0.02em; }
.display-lg  { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 56px; line-height: 1.1; letter-spacing: -0.015em; }
.display-md  { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 40px; line-height: 1.15; letter-spacing: -0.01em; }
.display-sm  { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 32px; line-height: 1.2; }
.heading-lg  { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 28px; line-height: 1.25; }
.heading-md  { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 22px; line-height: 1.3; }
.heading-sm  { font-size: 18px; line-height: 1.4; font-weight: 600; }
.body-xl     { font-size: 20px; line-height: 1.65; }
.body-lg     { font-size: 18px; line-height: 1.6; }
.body-md     { font-size: 16px; line-height: 1.6; }
.body-sm     { font-size: 14px; line-height: 1.5; }
.body-xs     { font-size: 13px; line-height: 1.5; }
.pull-quote  { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 400; font-size: 32px; line-height: 1.3; }

.italic-accent { font-style: italic; color: var(--brand-primary); }

@media (max-width: 768px) {
  .display-2xl { font-size: 56px; }
  .display-xl  { font-size: 44px; }
  .display-lg  { font-size: 36px; }
  .display-md  { font-size: 28px; }
  .heading-lg  { font-size: 24px; }
  .pull-quote  { font-size: 24px; }
}
@media (max-width: 480px) {
  .display-2xl { font-size: 40px; }
  .display-xl  { font-size: 34px; }
  .display-lg  { font-size: 28px; }
  .display-md  { font-size: 24px; }
  .heading-lg  { font-size: 20px; }
  .pull-quote  { font-size: 20px; }
  .body-xl     { font-size: 17px; }
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 400px) { .container { padding: 0 16px; } }
@media (min-width: 768px) { .container { padding: 0 48px; } }
@media (min-width: 1024px) { .container { padding: 0 80px; } }

/* Section spacing */
.section { padding: 64px 0; }
@media (max-width: 480px) { .section { padding: 48px 0; } }
@media (min-width: 1024px) { .section { padding: 120px 0; } }
.section-tight { padding: 48px 0; }
@media (min-width: 1024px) { .section-tight { padding: 80px 0; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all 200ms var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn svg { transition: transform 200ms var(--ease-out); }
.btn:hover svg.btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.btn-tertiary {
  padding: 8px 0;
  color: var(--brand-primary);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  background: none;
  border: none;
}
.btn-tertiary::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  height: 1px;
  width: 0;
  background: var(--brand-primary);
  transition: width 200ms var(--ease-out);
}
.btn-tertiary:hover::after { width: calc(100% - 24px); }
.btn-tertiary:hover svg { transform: translateX(4px); }

.btn-warning {
  background: var(--accent-warning);
  color: #FFFFFF;
}

@media (max-width: 480px) {
  .btn { padding: 12px 20px; font-size: 14px; }
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-canvas); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid var(--bg-canvas); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
