/* ==========================================================================
   BEEVANTA – KOMPONENTEN
   Wiederverwendbare Bausteine: Buttons, Cards, Listen, Tabs, Formular,
   Cookie-Banner, visuelle Layer (Gradient-Mesh, Neural-Pattern)
   ========================================================================== */

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-button);
  padding: 14px 32px;
  border-radius: var(--button-radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 1.3;
  transition: background var(--transition-fast), color var(--transition-fast),
              box-shadow var(--transition-fast), transform var(--transition-fast);
}

/* Text auf Gold-Flächen ist Royal Blue (#0B1628) – verbindliches Farbkonzept */
.btn-primary {
  background: var(--color-gold);
  color: var(--color-royal-blue);
}

.btn-primary:hover {
  background: var(--color-gold-hover);
  box-shadow: 0 6px 20px rgba(201, 164, 67, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  padding: 12px 30px; /* Border ausgleichen → gleiche Gesamthöhe wie primary */
}

.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-royal-blue);
  box-shadow: 0 6px 20px rgba(201, 164, 67, 0.25);
  transform: translateY(-1px);
}

/* Outline-Button auf hellem Grund: Text UND Border über das Kontrast-Token
   (Design-Regel 2). Im Hover wird die Fläche gold – dort ist Royal Blue
   als Textfarbe wieder kontraststark. */
.btn-secondary.on-light {
  color: var(--color-gold-text);
  border-color: var(--color-gold-text);
}

.btn-secondary.on-light:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-royal-blue);
}

.btn-block {
  display: block;
  width: 100%;
}

/* --------------------------------------------------------------------------
   CTA-ZUSATZLINK
   -------------------------------------------------------------------------- */
/* Steht in Hero/Teaser/CTA immer auf dunklem Grund → --color-muted */
.cta-alt-link {
  color: var(--color-muted);
  font-size: 13px;
  text-decoration: underline;
  margin-top: 8px;
  display: inline-block;
  transition: color var(--transition-fast);
}

.cta-alt-link:hover {
  color: var(--color-charcoal);
}

/* Variante für dunkle Flächen (Hero, CTA-Sektion) – Muted wäre dort zu schwach */
.cta-alt-link.on-dark {
  color: var(--color-snow);
}

.cta-alt-link.on-dark:hover {
  color: var(--color-white);
}

/* Variante für den Teaser-Block – dort einziger CTA, deshalb Gold */
.cta-alt-link.on-gold {
  color: var(--color-gold);
}

.cta-alt-link.on-gold:hover {
  color: var(--color-gold-hover);
}

/* --------------------------------------------------------------------------
   CARD
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  position: relative;
}

.card:hover {
  box-shadow: 0 8px 24px var(--color-gold-border);
  transform: translateY(-4px);
}

.card.featured {
  border: 2px solid var(--color-gold);
  box-shadow: 0 4px 24px rgba(201, 164, 67, 0.15);
}

/* Badge auf hervorgehobenen Karten */
.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-royal-blue);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   CHECKMARK-LISTE
   -------------------------------------------------------------------------- */
.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  color: var(--color-teal-text);
  font-weight: 700;
  margin-right: 8px;
  position: absolute;
  left: 0;
}

/* Standard ist der helle Grund (Karten, Tabs, Über uns).
   Auf dunklen Flächen .check-list.on-dark verwenden – dort ist das
   helle Teal kontraststark (9,6:1). */
.check-list.on-dark li::before {
  color: var(--color-teal);
}

/* Nicht enthaltene Leistungen in Pricing-Cards */
.check-list li.excluded {
  color: var(--color-muted-light);
  opacity: 0.75;
}

.check-list li.excluded::before {
  content: "–";
  color: var(--color-muted-light);
}

/* --------------------------------------------------------------------------
   ICONS (Lucide, inline SVG)
   -------------------------------------------------------------------------- */
/* Alle Icons stehen auf Weiß/Cool-Gray → Kontrast-Token (Design-Regel 2).
   Für Icons auf dunklem Grund .icon.on-dark verwenden. */
.icon {
  display: inline-flex;
  color: var(--color-gold-text);
}

.icon.on-dark {
  color: var(--color-gold);
}

.icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-sm svg { width: 28px; height: 28px; }
.icon-lg svg { width: 40px; height: 40px; }

/* "Draw-in"-Effekt beim Scroll-Reveal (statt simplem Fade) */
.reveal .icon svg > * {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}

.reveal.visible .icon svg > * {
  animation: icon-draw 0.6s ease forwards;
}

@keyframes icon-draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal .icon svg > * {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

/* --------------------------------------------------------------------------
   CHIPS & BADGES
   -------------------------------------------------------------------------- */
.chip {
  border: 1px solid var(--color-gold-border);
  border-radius: 20px;
  padding: 7px 16px;
  color: var(--color-snow);
  font-size: 12px;
  line-height: 1.3;
  background: rgba(201, 164, 67, 0.04);
  transition: border-color var(--transition-fast), background var(--transition-fast),
              color var(--transition-fast);
}

.chip:hover {
  border-color: var(--color-teal);
  background: rgba(45, 212, 168, 0.08);
  color: var(--color-white);
}

.badge-soft {
  display: inline-block;
  background: var(--color-gold-subtle);
  color: var(--color-gold);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
}

/* --------------------------------------------------------------------------
   ALERT (EU AI Act Warn-Box)
   -------------------------------------------------------------------------- */
.alert-amber {
  border-left: 3px solid var(--color-amber);
  background: rgba(245, 158, 11, 0.06);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--color-charcoal);
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   PRICING-CARDS (in den Tab-Panels)
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
}

.pricing-card .pricing-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-royal-blue);
}

.pricing-card .pricing-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-price);
  color: var(--color-gold-text);
  margin: 8px 0 4px;
}

.pricing-card .pricing-meta {
  font-size: var(--text-small);
  color: var(--color-muted-light);
  margin-bottom: 16px;
}

.pricing-card .check-list {
  margin-bottom: 20px;
  flex: 1;
}

.pricing-card .pricing-cta {
  margin-top: auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   TABS / ACCORDION (Pakete)
   -------------------------------------------------------------------------- */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--color-white);
  border-bottom: 1px solid var(--border-light);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  padding: 0 8px;
}

.tab-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-muted-light);
  padding: 16px 20px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

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

.tab-btn.active {
  color: var(--color-gold-text);
  border-bottom-color: var(--color-gold);
}

.tab-content {
  background: var(--color-white);
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 40px;
}

.tab-panel {
  display: none;
}

.tab-item.active .tab-panel {
  display: block;
  animation: tab-fade var(--transition-fast) ease;
}

@keyframes tab-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Accordion-Header: nur unter 768px sichtbar */
.accordion-header {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-charcoal);
  padding: 18px 20px;
  text-align: left;
}

.accordion-header .chevron {
  color: var(--color-gold-text);
  font-size: 20px;
  line-height: 1;
  transition: transform var(--transition-medium);
}

.tab-item.active .accordion-header .chevron {
  transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   TIMELINE (Coaching-Fahrplan)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 28px;
  margin-top: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--color-gold-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 18px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 67, 0.12);
}

.timeline-week {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-gold-text);
}

.timeline-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-charcoal);
}

/* --------------------------------------------------------------------------
   PROZESS-STEPS mit Verbindungslinie
   -------------------------------------------------------------------------- */
.steps {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-top: 40px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

/* Verbindungslinie zwischen den Steps (nicht nach dem letzten) */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(50% + 28px);
  width: calc(100% + 32px - 56px);
  height: 1px;
  background: var(--color-gold-border);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-charcoal);
  margin-top: 12px;
}

.step-desc {
  font-size: 14px;
  color: var(--color-muted-light);
  margin-top: 4px;
}

/* Dot-Variante (Ablauf-Steps im Tab "KI ohne IT") */
.steps-dots .step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gold);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.steps-dots .step:not(:last-child)::after {
  top: 4px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--color-gold-border);
}

.steps-dots .step-time {
  font-size: var(--text-small);
  color: var(--color-muted-light);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   VERGLEICHSTABELLE
   -------------------------------------------------------------------------- */
.comparison-table {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  margin-top: 8px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-charcoal);
}

.comparison-table tbody th {
  font-weight: 500;
  color: var(--color-charcoal);
}

.comparison-table .col-alt {
  background: var(--color-cool-gray);
  color: var(--color-muted-light);
}

.comparison-table .col-us {
  background: rgba(201, 164, 67, 0.05);
  color: var(--color-charcoal);
  font-weight: 600;
}

.comparison-table tbody .col-us {
  color: var(--color-teal-text);
}

/* --------------------------------------------------------------------------
   KONTAKTFORMULAR
   -------------------------------------------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin: 24px auto 0;
  text-align: left;
}

.contact-form label {
  font-size: var(--text-small);
  color: var(--color-snow);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: var(--text-body);
  padding: 12px 16px;
  border: 1px solid var(--color-gold-border);
  border-radius: var(--button-radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  width: 100%;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-snow);
  opacity: 0.75;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
  border-color: var(--color-gold);
}

.form-note {
  font-size: var(--text-small);
  color: var(--color-snow);
  text-align: center;
  margin-top: 8px;
}

.form-status {
  font-size: var(--text-small);
  text-align: center;
  margin-top: 8px;
  min-height: 1em;
}

.form-status.success { color: var(--color-teal); }
.form-status.error { color: var(--color-amber); }

/* Honeypot – für Menschen unsichtbar, fängt einfache Bots ab */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   VISUELLES KONZEPT: GRADIENT-MESH
   -------------------------------------------------------------------------- */
.has-mesh {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.has-mesh::before,
.has-mesh::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

.has-mesh::before {
  background: var(--color-gold);
  top: -200px;
  left: -100px;
}

.has-mesh::after {
  background: var(--color-teal);
  bottom: -250px;
  right: -150px;
  animation-delay: -9s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .has-mesh::before,
  .has-mesh::after {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   VISUELLES KONZEPT: NEURAL-PATTERN
   -------------------------------------------------------------------------- */
.neural-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
  z-index: -2; /* liegt hinter dem Gradient-Mesh (-1), aber über dem BG */
}

.neural-bg circle {
  animation: pulse 4s ease-in-out infinite;
}

.neural-bg .neural-nodes circle:nth-child(odd) {
  animation-delay: -2s;
}

.neural-bg .neural-nodes circle:nth-child(3n) {
  animation-delay: -3s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .neural-bg circle { animation: none; }
}

/* --------------------------------------------------------------------------
   COOKIE-BANNER
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-cookie);
  background: rgba(7, 15, 28, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 24px;
  border-top: 1px solid var(--color-gold-border);
  color: var(--color-snow);
  font-size: 14px;
}

.cookie-banner[hidden] {
  display: none;
}

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

.cookie-banner strong {
  color: var(--color-white);
  font-family: var(--font-display);
}

.cookie-banner a {
  color: var(--color-gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  padding: 11px 22px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE – KOMPONENTEN
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Tabs → Accordion */
  .tab-nav {
    display: none;
  }

  .accordion-header {
    display: flex;
  }

  .tab-content {
    padding: 0;
    border-radius: var(--card-radius);
    overflow: hidden;
  }

  .tab-item {
    border-bottom: 1px solid var(--border-light);
  }

  .tab-item:last-child {
    border-bottom: none;
  }

  .tab-panel {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height var(--transition-medium), padding var(--transition-medium);
  }

  .tab-item.active .tab-panel {
    max-height: 6000px;
    padding: 0 20px 28px;
    animation: none;
  }

  /* Steps stapeln → Verbindungslinie vertikal */
  .steps {
    flex-direction: column;
    gap: 24px;
  }

  .step:not(:last-child)::after {
    top: auto;
    bottom: -24px;
    left: 50%;
    width: 1px;
    height: 24px;
    transform: translateX(-50%);
  }

  .steps-dots .step:not(:last-child)::after {
    width: 2px;
    height: 24px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }

  /* Vergleichstabelle horizontal scrollbar statt gequetscht */
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 480px;
  }
}

@media (max-width: 390px) {
  .btn {
    padding: 13px 20px;
  }
}
