/**
 * Index Page Styles
 * Uses CSS variables from theme.css for light/dark mode support
 */

:root {
  --radius: 1.25rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-feature-settings: "ss01" 1, "ss02" 1;
  background-color: transparent;
  color: var(--text-primary);
}

main {
  background-color: transparent !important;
}

.navbar-blur {
  backdrop-filter: saturate(180%) blur(8px);
  background: color-mix(in oklab, var(--bg-primary), transparent 35%);
}

.navbar.scrolled {
  box-shadow: 0 8px 24px var(--header-shadow);
}

/* Navigation links - ensure proper text color in dark mode */
.nav-link {
  color: var(--text-primary) !important;
  transition: color var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary) !important;
}

/* Gradient background container - extends behind hero and following sections */
.content::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 0;
  right: 0;
  height: 150vh;
  background: radial-gradient(1200px 800px at 90% -10%, var(--color-primary) 7%, transparent 60%),
              radial-gradient(1200px 800px at -40% 45%, var(--color-success) 5%, transparent 60%);
  background-color: var(--bg-primary);
  pointer-events: none;
  z-index: 0;
}

.content {
  position: relative;
}

.hero {
  min-height: 78vh;
  display: grid;
  place-items: center;
  background-color: transparent;
  position: relative;
  border-bottom: 0;
  z-index: 1;
}

.section-pad {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.pill {
  border-radius: 999px;
}

.card-soft {
  border: 1px solid color-mix(in oklab, var(--border-color), transparent 50%);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--card-bg), transparent 20%);
  backdrop-filter: saturate(180%) blur(10px);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.card-soft:hover {
  background: color-mix(in oklab, var(--card-bg), transparent 10%);
  backdrop-filter: saturate(200%) blur(12px);
  box-shadow: 0 8px 24px color-mix(in oklab, var(--card-hover-shadow), transparent 40%);
}

.icon-badge {
  width: 4rem;
  height: 3rem;
  border-radius: .9rem;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--bg-secondary), transparent 25%);
  backdrop-filter: saturate(180%) blur(8px);
  color: var(--text-primary);
  border: 1px solid color-mix(in oklab, var(--border-color), transparent 60%);
  transition: all 0.3s ease;
}

.icon-badge:hover {
  background: color-mix(in oklab, var(--bg-secondary), transparent 15%);
  backdrop-filter: saturate(200%) blur(10px);
}

.lead-tight {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(12, 1fr);
}

.grid-3 > * {
  grid-column: span 12;
}

@media (min-width: 992px) {
  .grid-3 > * {
    grid-column: span 6;
  }
}

.step {
  position: relative;
  padding-left: 2.5rem;
  color: var(--text-primary);
}

.step::before {
  content: "";
  position: absolute;
  left: .625rem;
  top: 1.25rem;
  bottom: -1.25rem;
  width: 2px;
  background: var(--color-primary);
  opacity: 0.55;
}

.step:last-child::before {
  bottom: .35rem;
}

.step .dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.6;
  box-shadow: 0 0 0 .25rem var(--color-primary);
  box-shadow-opacity: 0.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.muted-box {
  background: color-mix(in oklab, var(--bg-secondary), transparent 30%);
  backdrop-filter: saturate(180%) blur(8px);
  border: 1px solid color-mix(in oklab, var(--border-light), transparent 50%);
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.muted-box:hover {
  background: color-mix(in oklab, var(--bg-secondary), transparent 20%);
  backdrop-filter: saturate(200%) blur(10px);
}

/* Override Bootstrap's bg-body-secondary to use theme variables */
.bg-body-secondary {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

.bg-body-secondary h1,
.bg-body-secondary h2,
.bg-body-secondary h3,
.bg-body-secondary h4,
.bg-body-secondary h5,
.bg-body-secondary h6,
.bg-body-secondary p,
.bg-body-secondary span,
.bg-body-secondary li,
.bg-body-secondary a {
  color: var(--text-primary) !important;
}

/* But keep text-secondary class for secondary text */
.bg-body-secondary .text-secondary {
  color: var(--text-secondary) !important;
}

/* Ensure muted-box inside bg-body-secondary also uses theme colors */
.bg-body-secondary .muted-box {
  background-color: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}

/* Override Bootstrap's bg-body-tertiary to use theme variables */
.bg-body-tertiary {
  background-color: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}

.bg-body-tertiary h1,
.bg-body-tertiary h2,
.bg-body-tertiary h3,
.bg-body-tertiary h4,
.bg-body-tertiary h5,
.bg-body-tertiary h6,
.bg-body-tertiary p,
.bg-body-tertiary span,
.bg-body-tertiary li,
.bg-body-tertiary a {
  color: var(--text-primary) !important;
}

/* But keep text-secondary class for secondary text */
.bg-body-tertiary .text-secondary {
  color: var(--text-secondary) !important;
}

footer a {
  text-decoration: none;
  color: var(--text-secondary);
}

/* Vorgehen section - make right column smaller for better spacing */
#vorgehen .col-lg-7 {
  flex: 0 0 calc(100% * 5 / 12);
  max-width: calc(100% * 5 / 12);
  margin-left: auto;
}

/* Reset margin on smaller screens */
@media (max-width: 991px) {
  #vorgehen .col-lg-7 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0;
  }
}
