/* ============================================================
   21 SKILLZ – Design System
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Colours */
  --bg:               #F7F6F2;
  --surface:          #FFFFFF;
  --text-primary:     #0F172A;
  --text-secondary:   #475569;
  --text-muted:       #94A3B8;
  --accent:           #1D53FF;
  --accent-light:     #EEF2FF;
  --border:           #E2E8F0;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);

  /* Radii */
  --radius-card: 16px;
  --radius-sm:    8px;
  --radius-pill: 999px;

  /* Category colours */
  --cat-produktivitaet:  #F59E0B;
  --cat-kollaboration:   #10B981;
  --cat-problemloesung:  #6366F1;
  --cat-kreativitaet:    #EC4899;
  --cat-kommunikation:   #0EA5E9;
  --cat-fuehrung:        #1D53FF;

  /* Typography */
  --font-headline: 'Sora', sans-serif;
  --font-body:     'Inter', sans-serif;

  /* Layout */
  --nav-height: 64px;
  --content-max: 1160px;
  --content-padding: 24px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   Typography Utilities
   ============================================================ */
.font-headline { font-family: var(--font-headline); }
.font-body     { font-family: var(--font-body); }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.nav__logo {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav__logo span {
  color: var(--accent);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background 0.18s ease, transform 0.18s ease;
  cursor: pointer;
  border: none;
}

.nav__cta:hover {
  background: #1644e0;
  transform: translateY(-1px);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 80px var(--content-padding);
  text-align: center;
}

.hero__inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero__headline {
  font-family: var(--font-headline);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero__subtext {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   Filter Bar
   ============================================================ */
.filter-bar {
  padding: 0 0 40px;
  overflow: hidden;
}

.filter-bar__scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px var(--content-padding);
  max-width: var(--content-max);
  margin: 0 auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-bar__scroll::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.filter-pill:hover:not(.filter-pill--active) {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.filter-pill--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filter-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   Cards Grid
   ============================================================ */
.cards-section {
  padding: 0 0 80px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

/* ============================================================
   Method Card
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;

  /* Filter animation */
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card.is-hidden {
  display: none;
}

.card.is-filtering {
  opacity: 0;
  transform: translateY(8px);
}

/* Category Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  width: fit-content;
}

.badge--produktivitat,
.badge--produktivitaet {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
}

.badge--kollaboration {
  background: rgba(16, 185, 129, 0.12);
  color: #065F46;
}

.badge--problemlosung,
.badge--problemloesung {
  background: rgba(99, 102, 241, 0.12);
  color: #3730A3;
}

.badge--kreativitat,
.badge--kreativitaet {
  background: rgba(236, 72, 153, 0.12);
  color: #9D174D;
}

.badge--kommunikation {
  background: rgba(14, 165, 233, 0.12);
  color: #0369A1;
}

.badge--fuhrung,
.badge--fuehrung {
  background: rgba(29, 83, 255, 0.12);
  color: #1D53FF;
}

.card__title {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card__description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  transition: gap 0.15s ease;
}

.card:hover .card__link {
  gap: 8px;
}

/* ============================================================
   Method Detail Page
   ============================================================ */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px var(--content-padding) 96px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  transition: color 0.15s ease;
}

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

.method-header {
  margin-bottom: 40px;
}

.method-header .badge {
  margin-bottom: 16px;
}

.method-title {
  font-family: var(--font-headline);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.method-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Quick Facts / Steckbrief */
.quickfacts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.quickfact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quickfact__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quickfact__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.quickfact__icon {
  font-size: 18px;
  margin-bottom: 2px;
}

/* Skills Impact */
.skills-section {
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
}

/* Content Sections */
.content-section {
  margin-bottom: 40px;
}

.content-section__title {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.content-section__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.content-section__text p + p {
  margin-top: 12px;
}

/* Steps List */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: step-counter;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  counter-increment: step-counter;
}

.step-item::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 1px;
}

.step-item__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-top: 3px;
}

/* Bullets List */
.bullets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullet-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.bullet-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 9px;
}

/* Loading / Error states */
.state-loading,
.state-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.state-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   About Page
   ============================================================ */
.about-hero {
  padding: 64px var(--content-padding) 48px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about-hero__title {
  font-family: var(--font-headline);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about-hero__lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--content-padding) 96px;
}

.about-body h2 {
  font-family: var(--font-headline);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 40px 0 14px;
}

.about-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* ============================================================
   Legal Pages (Impressum / Datenschutz)
   ============================================================ */
.legal-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px var(--content-padding) 96px;
}

.legal-content h1 {
  font-family: var(--font-headline);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 10px;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px var(--content-padding);
}

.footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 14px;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer__links a:hover {
  color: var(--text-primary);
}

/* ============================================================
   Divider
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 var(--content-padding);
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .hero__headline {
    font-size: 36px;
  }

  .hero__subtext {
    font-size: 16px;
  }

  .hero {
    padding: 56px var(--content-padding) 48px;
  }

  .method-title {
    font-size: 30px;
  }

  .quickfacts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .about-hero__title {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  :root {
    --content-padding: 16px;
  }

  .hero__headline {
    font-size: 30px;
  }

  .nav__logo {
    font-size: 16px;
  }

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