/*
 * Layout und Komponenten der Homepage. Farben, Radius und Schrift kommen nur aus tokens.css.
 * Regeln für den Einsatz: docs/design.md
 */

:root {
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --logo-bg: var(--primary);
  --logo-fg: var(--primary-foreground);
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --logo-bg: var(--brand);
    --logo-fg: var(--brand-foreground);
  }
}

:root.dark {
  --logo-bg: var(--brand);
  --logo-fg: var(--brand-foreground);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Kopfzeile */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklch, var(--background) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--logo-bg);
  color: var(--logo-fg);
}

/* Zeichen von Pasha Board: drei Board-Spalten, Quelle assets/logo/ */
.logo-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.6;
  stroke-linecap: round;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.nav a:not(.button) {
  color: var(--muted-foreground);
  text-decoration: none;
}

.nav a:not(.button):hover {
  color: var(--foreground);
}

@media (max-width: 36rem) {
  .nav a:not(.button) {
    display: none;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding-inline: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s, background-color 0.15s;
}

.button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button-primary:hover {
  opacity: 0.9;
}

.button-outline {
  border-color: var(--border);
  background: var(--background);
}

.button-outline:hover {
  background: var(--muted);
}

.button-sm {
  height: 2.25rem;
  padding-inline: 0.875rem;
  font-size: 0.875rem;
}

/* Hero */

.hero {
  padding-block: clamp(4rem, 10vw, 7rem) clamp(3rem, 7vw, 5rem);
}

.hero .container {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .hero .container {
    grid-template-columns: 1fr 1.1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

.eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.hero h1 .accent {
  color: var(--brand);
}

.lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

/* Beispieltabelle mit Ampel */

.preview {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: 0 1px 2px oklch(0 0 0 / 4%), 0 12px 32px -12px oklch(0 0 0 / 12%);
  overflow: hidden;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
}

.preview-head span {
  color: var(--muted-foreground);
  font-weight: 400;
  font-size: 0.8125rem;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.preview-table th,
.preview-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.preview-table tr:last-child td {
  border-bottom: 0;
}

.preview-table th {
  color: var(--muted-foreground);
  font-weight: 500;
}

.preview-table .reason {
  color: var(--muted-foreground);
}

@media (max-width: 36rem) {
  .preview-table .col-market {
    display: none;
  }

  .preview-table th,
  .preview-table td {
    padding-inline: 0.75rem;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
}

.status-red {
  background: var(--status-red);
  color: var(--status-red-foreground);
}

.status-yellow {
  background: var(--status-yellow);
  color: var(--status-yellow-foreground);
}

.status-green {
  background: var(--status-green);
  color: var(--status-green-foreground);
}

/* Abschnitte */

.section {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  border-top: 1px solid var(--border);
}

.section-muted {
  background: var(--muted);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.section-intro {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.125rem;
}

.card p {
  margin: 0;
  color: var(--muted-foreground);
}

.icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--background);
}

.icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.step-number {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta h2 {
  margin-bottom: 0.5rem;
}

.cta p {
  margin: 0;
  color: var(--muted-foreground);
}

/* Rechtstexte */

.legal {
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.legal .container {
  max-width: 46rem;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.legal .meta {
  margin: 0 0 2.5rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.legal h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
}

.legal p,
.legal li {
  color: var(--foreground);
}

.legal ol,
.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.375rem;
}

.legal address {
  font-style: normal;
}

.todo {
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  background: var(--status-yellow);
  color: var(--status-yellow-foreground);
}

/* Fußzeile mit Impressum */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.site-footer .container {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .site-footer .container {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.site-footer address {
  font-style: normal;
  line-height: 1.7;
}

.site-footer strong {
  color: var(--foreground);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--foreground);
}
