/* ==========================================================================
   KraftForm – Krafttraining & Sporternährung
   Runner-Inspired Athletic Design System (Teal / Mint & Emerald Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,700;1,800&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette matching the Runner reference screenshot */
  --brand-teal: #18b795;
  --brand-teal-hover: #129a7d;
  --brand-teal-bright: #2dd4bf;
  --brand-teal-dark: #0f766e;
  --brand-teal-header: #19b896;
  --brand-teal-dim: rgba(24, 183, 149, 0.12);
  --brand-teal-glow: 0 0 24px rgba(24, 183, 149, 0.4);

  --bg-darkest: #0b1118;
  --bg-primary: #111923;
  --bg-surface: #182330;
  --bg-surface-elevated: #212f40;
  --bg-surface-card: #151e2a;

  --bg-white: #ffffff;
  --bg-light-gray: #f8fafc;
  --bg-light-alt: #f1f5f9;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #0f172a;
  --text-dark-secondary: #475569;

  --border-hairline: rgba(255, 255, 255, 0.1);
  --border-subtle: #243346;
  --border-light: #e2e8f0;
  --border-focus: #18b795;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Typography */
  --font-display: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Layout */
  --container-width: 1240px;
  --header-height: 74px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.container-narrow {
  max-width: 860px;
}

/* Top Magazine Meta Bar (Subtle Teal Dark Ticker) */
.top-meta-bar {
  background-color: #080d13;
  border-bottom: 1px solid rgba(24, 183, 149, 0.2);
  font-size: 0.8125rem;
  color: #94a3b8;
  padding: 0.4rem 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.top-meta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.top-meta-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-teal-bright);
  font-weight: 700;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--brand-teal-bright);
  box-shadow: 0 0 8px var(--brand-teal-bright);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   Header: Solid Vibrant Teal Bar (Exactly like the Runner reference site)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--brand-teal-header);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background-color: #149c7f;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Brand Logo (Crisp Athletic White) */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: #ffffff;
}

.brand-title span.accent {
  color: #e0f2fe;
}

/* Navigation Links (White on Teal) */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.18);
}

.nav-link.active {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.18);
  font-weight: 700;
}

/* Header Action Icons / Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-fast);
}

.header-social-icon:hover {
  background-color: #ffffff;
  color: var(--brand-teal-header);
  border-color: #ffffff;
}

.header-social-icon svg {
  width: 15px;
  height: 15px;
}

.btn-header-cta {
  background-color: #ffffff;
  color: var(--brand-teal-dark);
  font-weight: 800;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-header-cta:hover {
  background-color: #f1f5f9;
  color: #0b1118;
  transform: translateY(-1px);
}

/* Buttons (Pill Shapes like in Runner Reference) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-teal, .btn-primary {
  background-color: var(--brand-teal);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(24, 183, 149, 0.4);
}

.btn-teal:hover, .btn-primary:hover {
  background-color: var(--brand-teal-hover);
  box-shadow: 0 6px 26px rgba(24, 183, 149, 0.6);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-outline-white, .btn-secondary {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.btn-outline-white:hover, .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline-teal {
  background-color: transparent;
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

.btn-outline-teal:hover {
  background-color: var(--brand-teal);
  color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

/* Mobile Toggle & Drawer */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85%;
  height: 100vh;
  background-color: #0b1118;
  border-left: 2px solid var(--brand-teal);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-xl) var(--spacing-lg);
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.5rem;
  margin-bottom: var(--spacing-lg);
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--spacing-xl);
}

.drawer-nav-link {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-nav-link.active {
  color: var(--brand-teal-bright);
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--brand-teal-bright);
  z-index: 999;
  transition: width 0.1s ease-out;
}

/* Category Badges & Flags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface-elevated);
  color: #94a3b8;
  border: 1px solid var(--border-hairline);
}

.badge-teal {
  background-color: var(--brand-teal-dim);
  color: var(--brand-teal-bright);
  border-color: rgba(24, 183, 149, 0.4);
}

.badge-science {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-outline {
  background-color: transparent;
  border-color: var(--border-subtle);
  color: #94a3b8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  color: #ffffff;
}

.display-1 {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 900;
  line-height: 0.98;
}

.display-2 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
}

.display-3 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 800;
}

.lead-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #94a3b8;
}

/* Clean White Section (Matching "ABOUT US" in reference image) */
.section-white {
  background-color: var(--bg-white);
  color: var(--text-dark);
  padding: var(--spacing-3xl) 0;
}

.section-white h1, 
.section-white h2, 
.section-white h3, 
.section-white h4 {
  color: var(--text-dark);
}

.section-white p {
  color: var(--text-dark-secondary);
}

/* Light Gray Section (Matching "OUR PROGRAMS" with subtle faceted background) */
.section-light-gray {
  background-color: var(--bg-light-gray);
  color: var(--text-dark);
  padding: var(--spacing-3xl) 0;
  position: relative;
  overflow: hidden;
}

.section-light-gray h1, 
.section-light-gray h2, 
.section-light-gray h3, 
.section-light-gray h4 {
  color: var(--text-dark);
}

.section-light-gray p {
  color: var(--text-dark-secondary);
}

/* Geometric Faceted Background Pattern (Runner Style) */
.section-light-gray::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle at top right, rgba(24, 183, 149, 0.06), transparent 70%);
  pointer-events: none;
}

/* Sections */
.section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-sm {
  padding: var(--spacing-2xl) 0;
}

.section-header {
  margin-bottom: var(--spacing-2xl);
}

.section-header-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-top: 0.35rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 680px;
  margin-top: 0.5rem;
  line-height: 1.7;
}

.section-header-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Three Cards Grid (Like "OUR PROGRAMS" in reference image) */
.three-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.program-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-teal);
}

.program-card-media {
  height: 220px;
  overflow: hidden;
  background-color: #0b1118;
}

.program-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-card-media img {
  transform: scale(1.06);
}

.program-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-card-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.program-card:hover .program-card-title {
  color: var(--brand-teal-dark);
}

.program-card-text {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.program-card-footer {
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.program-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-teal-dark);
}

.program-card-link:hover {
  color: var(--brand-teal);
  gap: 10px;
}

/* Geometric Zigzag Badge / Framed Visual (Like "RunnerZ" in About Us) */
.runner-badge-frame {
  position: relative;
  display: inline-block;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.runner-badge-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.runner-badge-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(24, 183, 149, 0.35) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.runner-chevron-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--brand-teal);
}

.runner-chevron-badge strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

.runner-chevron-badge span {
  font-size: 0.78rem;
  color: var(--brand-teal-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Editorial Grid Layouts */
.editorial-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-2xl);
}

.editorial-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.editorial-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

/* Callout Box / Science Note */
.callout-box {
  background-color: var(--bg-surface);
  border-left: 4px solid var(--brand-teal);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.callout-box.green {
  border-left-color: var(--success);
}

.callout-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: #64748b;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs a {
  color: #94a3b8;
}

.breadcrumbs a:hover {
  color: var(--brand-teal-bright);
}

.breadcrumbs [aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
}

/* Site Footer (Dark Slate with Teal Accents) */
.site-footer {
  background-color: #070b10;
  border-top: 1px solid var(--border-subtle);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-brand-desc {
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 380px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9125rem;
  color: #94a3b8;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-teal-bright);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  font-size: 0.8125rem;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* Floating Cookie Trigger */
.cookie-settings-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.cookie-settings-btn:hover {
  border-color: var(--brand-teal);
  color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .three-cards-grid {
    grid-template-columns: 1fr;
  }
  .editorial-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }
}

@media (max-width: 860px) {
  .main-nav, .btn-header-cta, .header-social-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .editorial-grid-3, .editorial-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .section, .section-white, .section-light-gray {
    padding: var(--spacing-2xl) 0;
  }
}
