/* ==========================================================================
   KraftForm – Specific UI Components & Magazine Elements
   Runner-Inspired Athletic Design Theme (Teal & Emerald)
   ========================================================================== */

/* ==========================================================================
   Hero Section: Centered Athletic Display (Matching Runner Reference)
   ========================================================================== */
.hero-runner {
  position: relative;
  background-color: var(--bg-darkest);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  min-height: clamp(580px, 78vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: 
    linear-gradient(180deg, rgba(11, 17, 24, 0.72) 0%, rgba(11, 17, 24, 0.6) 50%, rgba(11, 17, 24, 0.9) 100%),
    linear-gradient(135deg, rgba(24, 183, 149, 0.28) 0%, transparent 60%),
    url('../images/hero-squat.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: var(--spacing-3xl) 0;
}

.hero-runner-inner {
  position: relative;
  z-index: 5;
  max-width: 860px;
  margin: 0 auto;
}

.hero-runner-title {
  font-size: clamp(3rem, 7.5vw, 5.6rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-runner-title span.highlight-teal {
  color: var(--brand-teal-bright);
  text-shadow: 0 0 30px rgba(45, 212, 191, 0.5);
}

.hero-runner-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #e2e8f0;
  font-weight: 500;
  max-width: 680px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-runner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Metric Ticker beneath Hero Actions */
.hero-stats-pill-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.85rem 2rem;
  background: rgba(11, 17, 24, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-pill-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-pill-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.stat-pill-val span.unit {
  color: var(--brand-teal-bright);
  font-size: 1.1rem;
}

.stat-pill-lbl {
  font-size: 0.775rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Subpage Hero */
.page-hero {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--spacing-2xl) 0 var(--spacing-xl);
}

.page-hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.page-hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 760px;
  line-height: 1.7;
}

/* Feature Split Section */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.feature-split.reverse {
  direction: rtl;
}

.feature-split.reverse > * {
  direction: ltr;
}

.feature-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.feature-media img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.feature-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 17, 24, 0.92);
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  border-top: 1px solid var(--border-hairline);
}

.feature-info {
  display: flex;
  flex-direction: column;
}

/* Scientific Fact Box / Data Grid */
.science-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-2xl) 0;
}

.science-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  position: relative;
  transition: all var(--transition-base);
}

.science-card:hover {
  border-color: var(--brand-teal);
  background-color: var(--bg-surface-elevated);
}

.science-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--brand-teal-dim);
  color: var(--brand-teal-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.science-card-icon svg {
  width: 22px;
  height: 22px;
}

.science-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.science-card-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Comparison Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  margin: var(--spacing-xl) 0;
  -webkit-overflow-scrolling: touch;
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.editorial-table th {
  background-color: var(--bg-surface-elevated);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

.editorial-table td {
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  vertical-align: top;
}

.editorial-table tr:last-child td {
  border-bottom: none;
}

.editorial-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.editorial-table td strong {
  color: #ffffff;
}

.editorial-table .tag-positive {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #10b981;
  font-weight: 600;
}

.editorial-table .tag-neutral {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-weight: 600;
}

/* Interactive Tabs Component */
.tab-container {
  margin: var(--spacing-xl) 0;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-subtle);
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--brand-teal-bright);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-teal);
  box-shadow: 0 0 10px var(--brand-teal);
}

.tab-content {
  display: none;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--spacing-xl);
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Accordion (FAQ) */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: var(--spacing-xl) 0;
}

.accordion-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item.open {
  border-color: var(--brand-teal);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
}

.accordion-trigger:hover {
  color: var(--brand-teal-bright);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--brand-teal-bright);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1.5rem;
}

.accordion-item.open .accordion-panel {
  max-height: 600px;
  padding: 0 1.5rem 1.5rem;
}

.accordion-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--border-hairline);
  padding-top: 1rem;
}

/* Product Showcase Specifics */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--spacing-3xl);
  align-items: start;
  margin: var(--spacing-2xl) 0;
}

.product-gallery {
  position: sticky;
  top: 100px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-main-image {
  max-width: 380px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7));
  margin: 0 auto;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--spacing-lg);
  justify-content: center;
}

.product-detail-box {
  display: flex;
  flex-direction: column;
}

.product-category-meta {
  color: var(--brand-teal-bright);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
}

.product-factual-specs {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-item .spec-label {
  font-size: 0.775rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-item .spec-val {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 2px;
}

/* Forms: Anfrage & Contact */
.form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-label .required-mark {
  color: var(--brand-teal-bright);
  margin-left: 2px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(24, 183, 149, 0.2);
  background-color: var(--bg-surface-card);
}

.form-input.is-invalid, .form-textarea.is-invalid {
  border-color: var(--danger);
}

.form-error {
  font-size: 0.7875rem;
  color: #f87171;
  margin-top: 0.35rem;
  display: none;
}

.form-error.active {
  display: block;
}

.form-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: var(--spacing-xl) 0 var(--spacing-lg);
}

.form-checkbox {
  width: 19px;
  height: 19px;
  accent-color: var(--brand-teal);
  margin-top: 3px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--brand-teal-bright);
  text-decoration: underline;
}

/* Confirmation Box */
.confirmation-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--spacing-3xl) var(--spacing-2xl);
  text-align: center;
  max-width: 680px;
  margin: var(--spacing-3xl) auto;
}

.confirmation-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: rgba(24, 183, 149, 0.15);
  border: 2px solid var(--brand-teal);
  color: var(--brand-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.confirmation-icon svg {
  width: 36px;
  height: 36px;
}

/* Cookie Consent Banner & Modal */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(11, 17, 24, 0.98);
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem var(--spacing-lg);
  z-index: 1000;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  display: none;
  backdrop-filter: blur(12px);
}

.cookie-banner.active {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-banner-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.cookie-text {
  flex: 1 1 500px;
  font-size: 0.8875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cookie-text strong {
  color: #ffffff;
}

.cookie-text a {
  color: var(--brand-teal-bright);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Cookie Settings Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.cookie-modal-backdrop.active {
  display: flex;
}

.cookie-modal {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--spacing-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 0.75rem;
}

.cookie-category {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.cookie-category-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-subtle);
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
  background-color: var(--brand-teal);
}

.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-category-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .hero-stats-pill-row {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
  }
  .feature-split {
    grid-template-columns: 1fr;
  }
  .feature-split.reverse {
    direction: ltr;
  }
  .product-layout {
    grid-template-columns: 1fr;
  }
  .product-gallery {
    position: static;
  }
  .spec-list {
    grid-template-columns: 1fr;
  }
}
