/* Tokens 1:1 gespiegelt aus app/src/app/globals.css — siehe design-guidelines.md */
:root {
  --background: oklch(0.975 0.006 142);
  --foreground: oklch(0.16 0.025 145);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.16 0.025 145);
  --primary: oklch(0.42 0.18 148);
  --primary-dark: oklch(0.32 0.16 148);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.94 0.02 142);
  --secondary-foreground: oklch(0.25 0.05 142);
  --muted: oklch(0.94 0.012 142);
  --muted-foreground: oklch(0.43 0.025 142);
  --accent: oklch(0.82 0.14 84);
  --accent-foreground: oklch(0.22 0.05 84);
  --destructive: oklch(0.572 0.245 27.325);
  --border: oklch(0.89 0.018 142);
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);
  --pitch: oklch(0.42 0.18 148);
  --pitch-light: oklch(0.92 0.055 148);
  --gold: oklch(0.78 0.16 82);
  --gold-light: oklch(0.94 0.06 82);
  --chart-3: oklch(0.6 0.1 250);
  --chart-4: oklch(0.7 0.15 30);
  --chart-5: oklch(0.5 0.1 300);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.06);
  --shadow-md: 0 8px 24px -8px oklch(0 0 0 / 0.16);
  --shadow-lg: 0 20px 48px -16px oklch(0 0 0 / 0.24);
}

.dark,
[data-theme="dark"] {
  --background: oklch(0.13 0.022 148);
  --foreground: oklch(0.93 0.012 145);
  --card: oklch(0.17 0.02 148);
  --card-foreground: oklch(0.93 0.012 145);
  --primary: oklch(0.53 0.16 148);
  --primary-dark: oklch(0.44 0.15 148);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.22 0.018 148);
  --secondary-foreground: oklch(0.88 0.012 145);
  --muted: oklch(0.21 0.015 148);
  --muted-foreground: oklch(0.65 0.022 145);
  --accent: oklch(0.76 0.14 84);
  --accent-foreground: oklch(0.15 0.04 84);
  --destructive: oklch(0.62 0.22 27);
  --border: oklch(0.26 0.018 148);
  --pitch: oklch(0.53 0.16 148);
  --pitch-light: oklch(0.23 0.06 148);
  --gold: oklch(0.76 0.14 82);
  --gold-light: oklch(0.22 0.05 82);
  --chart-3: oklch(0.6 0.1 250);
  --chart-4: oklch(0.7 0.15 30);
  --chart-5: oklch(0.5 0.1 300);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 8px 24px -8px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 20px 48px -16px oklch(0 0 0 / 0.5);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Geist Sans", system-ui, sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: "Geist Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: var(--primary);
}

/* Responsive Grundregel, siehe CLAUDE.md "Responsive Design" */
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
}

.card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Icon-Kreis für Feature-Icons, siehe design-guidelines.md "Icons & Emojis" */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  margin-bottom: 0.25rem;
}

.icon-circle img {
  width: 26px;
  height: 26px;
}

.icon-circle.tone-primary {
  background: color-mix(in srgb, var(--primary) 16%, var(--card));
}

.icon-circle.tone-accent {
  background: color-mix(in srgb, var(--accent) 22%, var(--card));
}

.icon-circle.tone-chart3 {
  background: color-mix(in srgb, var(--chart-3) 18%, var(--card));
}

.icon-circle.tone-chart4 {
  background: color-mix(in srgb, var(--chart-4) 18%, var(--card));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.5rem;
  border-radius: calc(var(--radius) * 0.8);
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  filter: brightness(1.03);
}

.btn-arrow {
  display: inline-block;
  margin-left: 0.375rem;
  transition: transform 0.15s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

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

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
  font-size: 0.875rem;
}

footer a {
  color: var(--muted-foreground);
  margin-right: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  box-shadow: 0 1px 0 0 var(--border), var(--shadow-sm);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-link img {
  border-radius: calc(var(--radius) * 0.5);
}

.header-cta {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: none;
  min-height: 44px;
  padding: 0 1.25rem;
  font-size: 0.9375rem;
}

.header-cta:hover {
  background: var(--primary-dark);
  filter: none;
  transform: none;
}

/* Full-bleed section bands, siehe CLAUDE.md Responsive Design */
.band {
  padding: 4rem 0;
}

.band-white {
  background: var(--card);
}

.band-tint {
  background-color: var(--pitch-light);
  background-image: radial-gradient(oklch(0 0 0 / 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.band h2 {
  text-align: center;
  font-size: 1.75rem;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.band-lead {
  text-align: center;
  max-width: 34rem;
  margin: -1rem auto 2rem;
}

/* Hero */
.hero-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--primary-foreground);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

@media (min-width: 56rem) {
  .hero-band {
    padding: 6rem 0 5rem;
  }
}

.hero-decor {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 18rem;
  height: 18rem;
  opacity: 0.12;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  background: oklch(1 0 0 / 0.15);
  padding: 0.375rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

.hero h1 {
  color: var(--primary-foreground);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-sub {
  max-width: 34rem;
  color: oklch(1 0 0 / 0.9);
  font-size: 1.125rem;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.btn-lg {
  min-height: 52px;
  padding: 0 2rem;
  font-size: 1.0625rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: oklch(1 0 0 / 0.85);
}

/* Rangliste-Vorschau im Hero */
.rank-preview {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.5rem;
  max-width: 23rem;
  margin: 2.5rem auto 0;
  text-align: left;
}

.rank-preview-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  margin: 0 0 0.875rem;
  text-align: center;
}

.rank-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.rank-preview-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border);
}

.rank-preview-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.rank-preview-list li span {
  margin-left: auto;
  color: var(--primary);
  font-weight: 700;
}

/* Responsive card grids */
.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 0;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 56rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.card p {
  margin: 0;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 56rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.steps li > div > h3 {
  margin: 0 0 0.25rem;
}

.steps li > div > p {
  margin: 0;
}

/* Blog / Ratgeber */
.blog-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1875rem 0.625rem;
  border-radius: 999px;
}

.blog-card time {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.blog-card .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* Preise */
.pricing-grid {
  grid-template-columns: 1fr;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 40rem) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-card.is-free {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
}

.price-card .badge {
  position: absolute;
  top: -0.75rem;
  left: 1.75rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}

.price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.price .unit {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.price-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
}

.price-note {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Final CTA band */
.cta-final {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--primary-foreground);
  text-align: center;
}

.cta-final h2 {
  color: var(--primary-foreground);
}

.cta-final p {
  color: oklch(1 0 0 / 0.9);
  margin: 0 auto;
  max-width: 30rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.cta-final .btn-secondary {
  background: oklch(1 0 0 / 0.15);
  color: var(--primary-foreground);
}

.cta-final .btn-secondary:hover {
  background: oklch(1 0 0 / 0.25);
}

/* Artikel-Seiten (Ratgeber) */
.article-hero {
  padding: 2.5rem 0 2rem;
}

.article-hero-inner {
  max-width: 42rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.back-link:hover {
  color: var(--foreground);
}

.article-hero h1 {
  margin: 0.875rem 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.article-body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.article-body .card {
  padding: 2rem 1.75rem;
}

.article-content h3 {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
}

.article-content h3:first-child {
  margin-top: 0;
}

.article-content p {
  margin: 0.75rem 0 0;
  line-height: 1.7;
  color: var(--card-foreground);
}

.article-content h3 + p {
  margin-top: 0.5rem;
}

.related-articles {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

.related-articles h2 {
  text-align: left;
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.related-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.related-card {
  display: block;
  text-decoration: none;
  color: var(--card-foreground);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 1.5rem;
}

/* Sanfte Einblendung beim Laden, siehe design-guidelines.md "Animationen" */
@media (prefers-reduced-motion: no-preference) {
  .animate-fade-in {
    animation: fadeInUp 0.6s ease both;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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