/* ===== Design Tokens ==================================================== */
:root {
  --radius: 12px;
  --radius-lg: 16px;

  --surface: #ffffff;
  --faint: #f8fafc;

  --text: #1a202c;
  --text-2: #718096;

  --primary: #0096ff;
  --primary-contrast: #ffffff;

  --ring: 0 2px 12px rgba(0, 0, 0, 0.08);

  --hero-overlay: rgba(26, 32, 44, 0.25);
  --hero-fg: #ffffff;
}

/* ===== Utilities ======================================================== */
.bg-surface { background: var(--surface); }
.bg-faint { background: var(--faint); }
.section-pad { padding: clamp(64px, 8vw, 120px) 0; }
.section-tight { padding-top: clamp(40px, 5vw, 56px); padding-bottom: clamp(48px, 6vw, 64px); }
.text-body-secondary { color: var(--text-2); }
.nowrap { white-space: nowrap; }

/* ===== Buttons ========================================================== */
.btn {
  --py: 0.75rem;
  --px: 1.5rem;
  padding: var(--py) var(--px);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.938rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn i {
  margin-right: 0.375rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: 0 2px 8px rgba(0, 150, 255, 0.25);
}

.btn-primary:hover {
  background: #0077cc;
  box-shadow: 0 4px 16px rgba(0, 150, 255, 0.35);
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.04);
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #eeeeee;
}

.btn-outline-dark {
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
}

.btn-outline-dark:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.3);
}

/* ===== HERO ============================================================= */
.hero-landing {
  position: relative;
  isolation: isolate;
  min-height: min(85vh, 800px);
  display: grid;
  align-items: center;
  color: var(--hero-fg);
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 0;
}

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

.eyebrow {
  display: inline-block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.813rem;
  color: var(--primary);
  background: rgba(0, 150, 255, 0.15);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  line-height: 1.1;
  margin: 0 0 1rem 0;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Hero-Illustration */
.hero-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-preview img {
  display: block;
  width: 100%;
}

/* ===== Hero USP-Leiste ================================================== */
.hero-usp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 1);
  font-size: 0.875rem;
}

.hero-usp-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-usp-list i {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 1);
}

/* ===== Home Section Title =============================================== */
.home-section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  color: var(--text);
}

/* ===== Kategorien-Strip ================================================= */
.home-category-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 150, 255, 0.3) transparent;
}

.home-category-strip::-webkit-scrollbar {
  height: 6px;
}

.home-category-strip::-webkit-scrollbar-thumb {
  background: rgba(0, 150, 255, 0.3);
  border-radius: 999px;
}

.home-category-strip::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 150, 255, 0.5);
}

.home-category-card {
  scroll-snap-align: start;
  min-width: 180px;
  max-width: 220px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.125rem;
  box-shadow: var(--ring);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.home-category-card:hover {
  box-shadow: 0 4px 16px rgba(0, 150, 255, 0.15);
  border-color: rgba(0, 150, 255, 0.3);
}

.home-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 150, 255, 0.1);
  color: var(--primary);
  font-size: 1.125rem;
}

.home-category-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.home-category-sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ===== Feature Cards ==================================================== */
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--ring);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 150, 255, 0.12);
}

.feature-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--text);
}

.feature-card p {
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
  font-size: 0.938rem;
}

/* ===== Featured Grid ==================================================== */
.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .home-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-featured-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--ring);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.home-featured-card:hover {
  box-shadow: 0 4px 16px rgba(0, 150, 255, 0.15);
  border-color: rgba(0, 150, 255, 0.3);
}

.home-featured-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 150, 255, 0.1);
  color: var(--primary);
  align-self: flex-start;
}

.home-featured-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.home-featured-text {
  font-size: 0.938rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}

.home-featured-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.813rem;
  color: var(--text-2);
}

.home-featured-meta i {
  margin-right: 0.25rem;
  color: var(--primary);
}

/* ===== KPI Band ========================================================= */
.kpi-band {
  background: linear-gradient(135deg, rgba(0, 150, 255, 0.05) 0%, rgba(0, 150, 255, 0.02) 100%);
}

.kpi-item {
  padding: 1rem;
}

.kpi-value {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}

.kpi-label {
  color: var(--text-2);
  font-size: 0.938rem;
}

/* ===== Book Callout ===================================================== */
.book-callout {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.book-hero {
  max-height: clamp(280px, 45vh, 480px);
  width: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

/* ===== Plans ============================================================ */
.plan-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--ring);
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.2s ease;
}

.plan-card:hover {
  box-shadow: 0 4px 16px rgba(0, 150, 255, 0.12);
}

.plan-card--accent {
  border: 2px solid rgba(0, 150, 255, 0.3);
}

.plan-head h3 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.plan-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.938rem;
}

.plan-list i {
  color: #22c55e;
  margin-top: 0.25rem;
  font-size: 1rem;
}

/* ===== Quote ============================================================ */
.quote-band {
  background: var(--faint);
}

.quote-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--ring);
  border: 1px solid rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

.quote-card blockquote {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  color: var(--text);
}

.quote-card figcaption {
  color: var(--text-2);
  font-size: 0.938rem;
}

/* ===== CTA Footer ======================================================= */
.cta-footer {
  background: linear-gradient(135deg, rgba(0, 150, 255, 0.08) 0%, rgba(0, 150, 255, 0.02) 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== Reveal Animation ================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--in {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ======================================================= */

/* Desktop */
@media (min-width: 992px) {
  .hero-landing {
    padding: 3rem 0;
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  .hero-landing {
    min-height: auto;
    padding: 4rem 0 3rem;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

  .hero-actions {
    gap: 0.75rem;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .section-pad {
    padding: 48px 0;
  }

  .hero-landing {
    padding: 3rem 0 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .home-category-card {
    min-width: 170px;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .plan-card {
    padding: 1.5rem;
  }

  .kpi-item {
    padding: 0.5rem;
  }
}

/* Small Mobile */
@media (max-width: 575.98px) {
  .hero-landing {
    padding: 2rem 0 1.5rem;
  }

  .eyebrow {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-usp-list {
    gap: 0.5rem 1rem;
    font-size: 0.813rem;
  }

  .section-pad {
    padding: 40px 0;
  }

  .home-section-title {
    font-size: 1.375rem;
  }

  .book-hero {
    max-height: 280px;
  }

  .quote-card {
    padding: 1.5rem;
  }

  .quote-card blockquote {
    font-size: 1.125rem;
  }
}

/* ===== Safe guards ===================================================== */
html,
body {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
}

/* ===== Button Small Variant ============================================ */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}