/* ============================================================
   GRUNDLAYOUT
   ============================================================ */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #f5f5f7;
  color: #111827;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

/* ============================================================
   TOPBAR / NAVIGATION
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.brand-logo {
  height: 60px;
  display: block;
}

@media (max-width: 480px) {
  .brand-logo {
    height: 48px;
  }
}

.topnav {
  display: flex;
  align-items: center;
}

.topnav a {
  font-size: 1.05rem;
  color: #4b5563;
  text-decoration: none;
  margin-left: 16px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.topnav a:hover {
  color: #111827;
  border-color: #007aff;
}

/* Icons in der Navigation */

.nav-ico {
  width: 1em;
  height: 1em;
  margin-right: 6px;
  opacity: 0.78;
  vertical-align: -2px;
  transition: opacity .2s;
}

.topnav a:hover .nav-ico {
  opacity: 1;
}

/* ============================================================
   HERO – TAB-WECHSEL
   ============================================================ */

.hero-tabs-section {
  margin-top: 8px;
  margin-bottom: 32px;
}

.hero-headline {
  max-width: 720px;
  margin: 0 auto 16px;
  text-align: center;
}

.hero-headline h1 {
  font-size: 1.9rem;
  margin: 0 0 6px;
}

.hero-headline p {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 0.95rem;
}

/* Hero-Untertabs (Info / Monitor) */

.hero-tabbar {
  display: flex;
  justify-content: center;
  gap: 28px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 18px;
}

.hero-tab-link {
  position: relative;
  padding: 10px 0;
  background: none;
  border: none;
  font-size: 0.95rem;
  color: #6b7280;
  cursor: pointer;
}

.hero-tab-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #007aff;
  border-radius: 99px;
  transition: width 0.22s ease;
}

.hero-tab-link:hover::after {
  width: 100%;
}

.hero-tab-link.active {
  color: #111827;
  font-weight: 600;
}

.hero-tab-link.active::after {
  width: 100%;
}

/* Panels */

.hero-panels {
  margin-top: 16px;
}

.hero-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.hero-panel.active {
  display: grid;
}

.hero-panel-media img {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  display: block;
  margin: 0 auto;
}

.hero-panel-text h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.hero-panel-text p {
  margin: 0 0 10px;
  color: #4b5563;
  font-size: 0.96rem;
}

.hero-panel-text ul {
  padding-left: 18px;
  margin: 0;
  color: #4b5563;
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  .hero-panel {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-panel-media img {
    max-width: 420px;
  }

  .hero-headline h1 {
    font-size: 1.5rem;
  }
}

/* ============================================================
   USP-LEISTE UNTER HERO
   ============================================================ */

.hero-usps {
  margin: 20px auto 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-usp-item {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e5edff;
  border: 1px solid #c7d2fe;
  font-size: 0.8rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-usp-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  color: #64748b;
}

.hero-usp-value {
  font-weight: 600;
  color: #111827;
  font-size: 0.85rem;
}

/* ============================================================
   TABS / KARTEN – BEREINIGT
   ============================================================ */

.tabs-section {
  margin-bottom: 32px;
}

.tabs-card {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 16px 16px 20px;
}

/* Tabs oben (Preise / Tabelle / Warenkorb / Trends) */

.tabs-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 12px;
}

.tab-button {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  background: #f3f4f6;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.tab-button.active {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35);
  transform: translateY(-1px);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Mobile: Tabs etwas kompakter, breiter Pill-Look */

@media (max-width: 600px) {
  .tabs-card {
    padding: 14px 10px;
    border-radius: 14px;
  }

  .tabs-header {
    justify-content: center;
    gap: 6px;
  }

  .tab-button {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
    padding: 9px 10px;
    font-size: 0.85rem;
  }
}

/* Intro-Block im Tab-Bereich */

.tabs-intro {
  text-align: center;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.tabs-intro h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .tabs-intro h2 {
    font-size: 1.15rem;
  }
}

.tabs-intro p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

/* ============================================================
   STEPS-Leiste (1–3 oben)
   ============================================================ */

.tabs-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 18px 0 20px;
}

.tabs-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #f3f4ff;
  font-size: 1rem;
}

.tabs-step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #4f46e5;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.tabs-step-text {
  color: #111827;
  font-size: 1rem;
  font-weight: 500;
}

/* ============================================================
   AKKORDEON
   ============================================================ */

.accordion {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  color: #111827;
}

.accordion-header span:first-child {
  display: flex;
  gap: 6px;
  align-items: center;
  text-align: left;
}

.accordion-icon {
  font-size: 0.9rem;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.accordion-body {
  display: none;
  padding: 0 14px 12px;
  font-size: 0.9rem;
  color: #4b5563;
}

.accordion-item.open .accordion-body {
  display: block;
}

.accordion-item.open .accordion-header {
  background: #f3f4f6;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .accordion-header {
    font-size: 0.9rem;
  }

  .accordion-body {
    font-size: 0.85rem;
  }
}

/* ============================================================
   HINWEISE / LEGENDE
   ============================================================ */

.hint {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.legend {
  font-size: 0.8rem;
  margin-top: 8px;
  color: #444;
}

.legend span {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
}

.legend-inline {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}

.legend-box {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
}

.legend-box.hard { background: #1f77b4; }
.legend-box.est  { background: #0077cc; }
.legend-box.down { background: #888888; }

/* ============================================================
   CHART
   ============================================================ */

#chart-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 16px;
}

/* ============================================================
   KARTEN / TABELLEN
   ============================================================ */

.card {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f9fafb;
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  max-height: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th,
td {
  padding: 4px 6px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  white-space: nowrap;
}

thead {
  background: #f3f4f6;
}

tbody tr:nth-child(even) {
  background: #fdfdfd;
}

/* Sticky Table-Header */
table thead th {
  position: sticky;
  top: 0;
  background: #f3f4f6;
  z-index: 1;
}

/* ============================================================
   WARENKORB-LAYOUT + TOOLBAR
   ============================================================ */

.basket-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1.5fr);
  gap: 16px;
  margin-top: 8px;
}

.basket-summary {
  display: flex;
  flex-direction: column;
}

.basket-summary h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.basket-summary-values {
  margin-bottom: 12px;
}

.basket-summary-values > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.basket-summary .label {
  color: #4b5563;
}

.basket-summary .value {
  font-weight: 600;
}

/* Jahr-Auswahl */
.basket-years {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.basket-years-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.basket-year-selects {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #334155;
}

.basket-year-separator {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Pill-Selects */
.basket-year-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0.35rem 2rem 0.35rem 0.7rem;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  background-color: #ffffff;
  color: #0f172a;
  cursor: pointer;
  line-height: 1.3;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%),
                    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.basket-year-select:hover {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.basket-year-select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25);
}

/* Toggle "Nur Produkte mit Menge > 0" */

.basket-filter-row {
  margin-top: 4px;
  margin-bottom: 6px;
  display: flex;
  justify-content: flex-start;
}

.toggle-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #444;
  user-select: none;
}

/* echte Checkbox verstecken */
.toggle-filter input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Pill-Hintergrund */
.toggle-pill {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

/* Knopf */
.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.2s ease;
}

.toggle-filter input[type="checkbox"]:checked + .toggle-pill {
  background: #2563eb;
}

.toggle-filter input[type="checkbox"]:checked + .toggle-pill .toggle-knob {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 0.9rem;
  color: #111827;
}

/* Suche im Warenkorb */

.basket-search-row {
  margin: 10px 0 12px;
}

.basket-search-input {
  width: 100%;
  max-width: 320px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  font-size: 0.9rem;
  outline: none;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.basket-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

/* Warenkorb-Tabelle etwas großzügiger */

#basketTable th,
#basketTable td {
  padding: 6px 8px;
  font-size: 0.9rem;
}

#basketTable .qty-input {
  width: 60px !important;
  text-align: center;
}

/* Zahlenfeld (Mengen) – generelles Styling */

input[type="number"] {
  border: 1px solid #d2d7df;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 14px;
  background: #fff;
  outline: none;
  appearance: none;
}

input[type="number"]:focus {
  border-color: #4a7bff;
  box-shadow: 0 0 0 2px rgba(74, 123, 255, 0.2);
}

/* ============================================================
   PRODUKT-TRENDS – Such-/Select-Felder
   ============================================================ */

.product-trend-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.product-trend-controls input,
.product-trend-controls select {
  flex: 1 1 200px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.primary-button {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  background: linear-gradient(135deg, #007aff, #00b4ff);
  color: #ffffff;
  cursor: pointer;
  align-self: flex-start;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.primary-button:hover {
  filter: brightness(1.05);
}

.primary-button:active {
  transform: translateY(1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

/* Toggle-Button in Tab "Tabelle" */

.table-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 4px;
}

.table-button,
#toggleTableLimit.table-button {
  font-size: 0.9rem;
  padding: 6px 18px;
  height: 38px;
  border-radius: 999px;
  background-color: #ffffff;
  border: 1px solid #cbd5f5;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.table-button:hover,
#toggleTableLimit.table-button:hover {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99,102,241,.15);
}

/* ============================================================
   FOOTER
   ============================================================ */

.page-footer {
  font-size: 0.75rem;
  color: #6b7280;
  width: 100%;
  border-top: 1px solid #e5e7eb;
  display: block;
  margin-top: 20px;
  text-align: center;
  padding: 12px 0 20px;
}

.footer-link {
  color: #007aff;
  text-decoration: none;
  font-weight: 500;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ============================================================
   MOBILE-OPTIMIERUNG ALLGEMEIN
   ============================================================ */

@media (max-width: 900px) {
  .page {
    padding: 12px 12px 24px;
  }

  .tabs-card {
    padding: 12px 12px 16px;
  }

  .basket-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .topnav a {
    margin-left: 0;
    margin-right: 12px;
  }

  table {
    font-size: 0.78rem;
  }
}

/* ============================================================
   BURGER MENU (MOBILE)
   ============================================================ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  height: 2px;
  width: 100%;
  background: #111827;
  border-radius: 999px;
  transition: all 0.25s ease;
}

/* Aktiv: X */

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  .topnav {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .topnav.show {
    display: flex;
  }

  .topnav a {
    margin-left: 0;
    font-size: 0.95rem;
    padding: 4px 0;
  }

  .hamburger {
    display: flex;
  }

  .topbar {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
}

.topnav.show {
  animation: navFade 0.22s ease, navGlow 0.5s.ease;
}

@keyframes navFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes navGlow {
  0%   { box-shadow: 0 0 0 rgba(0,0,0,0); }
  100% { box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18); }
}

/* ============================================================
   MODAL / OVERLAY (Datenschutz)
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.modal-overlay.show {
  display: flex;
}

.modal-dialog {
  max-width: 720px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.5);
  padding: 18px 20px 20px;
  position: relative;
}

.modal-dialog h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.modal-content {
  font-size: 0.9rem;
  color: #374151;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  color: #6b7280;
}

.modal-close:hover {
  color: #111827;
}

.form-feedback {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.form-feedback.success {
  background: #e6f4ea;
  color: #166534;
  border: 1px solid #15803d;
}

.form-feedback.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #b91c1c;
}

/* ============================================================
   MOBILE: Warenkorb-Tabelle
   ============================================================ */

@media (max-width: 480px) {

  #basketTable {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
  }

  #basketTable td:first-child {
    max-width: 120px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }

  #basketTable td:nth-child(2),
  #basketTable th:nth-child(2) {
    max-width: 40px;
    width: 40px;
    text-align: center;
  }

  #basketTable td {
    white-space: nowrap;
  }

  #basketTable input[type="number"] {
    width: 55px;
    padding: 3px 4px;
    font-size: 0.8rem;
  }
}

/* ============================================================
   MOBILE: Detail-Tabelle (#priceTable)
   ============================================================ */

@media (max-width: 480px) {

  #priceTable {
    table-layout: auto;
    width: 100%;
  }

  #priceTable td:first-child {
    white-space: normal;
    word-break: keep-all;
    line-height: 1.25;
  }

  /* 2010 & 2015 ausblenden → schmaler */
  #priceTable th:nth-child(3),
  #priceTable th:nth-child(4),
  #priceTable td:nth-child(3),
  #priceTable td:nth-child(4) {
    display: none;
  }
}

/* ============================================================
   FIXE SOCIAL-BAR LINKS
   ============================================================ */

.social-bar {
  position: fixed;
  left: 14px;               /* Abstand vom Browserrand */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.social-bar a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.social-bar a i {
  font-size: 18px;
}

/* Hover-Effekt */
.social-bar a:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
}

/* Auf kleinen Screens ausblenden */
@media (max-width: 768px) {
  .social-bar {
    display: none;
  }
}

/* Dark-Mode-Variante */
@media (prefers-color-scheme: dark) {
  .social-bar a {
    background: rgba(15, 23, 42, 0.96);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  }
}

    /* ============================================================
   MOBILE SOCIAL BAR (unten zentriert)
   ============================================================ */

.social-bar-mobile {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: none;                 /* Standard: ausblenden, wird per Media Query an */
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  z-index: 60;
  gap: 6px;
}

/* Icons in der Mobile-Bar */
.social-bar-mobile a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  color: #111827;
}

.social-bar-mobile a i {
  font-size: 18px;
}

/* kleiner Hover auch auf Mobile spürbar */
.social-bar-mobile a:active {
  transform: scale(0.95);
}

/* Nur auf kleinen Screens anzeigen */
@media (max-width: 768px) {
  .social-bar-mobile {
    display: flex;
  }

  /* Desktop-Leiste auf Mobile verstecken (hast du schon, zur Sicherheit nochmal) */
  .social-bar {
    display: none;
  }
}

/* Dark Mode Variante */
@media (prefers-color-scheme: dark) {
  .social-bar-mobile {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.85);
  }

  .social-bar-mobile a {
    color: #e5e7eb;
  }
}
    
    /* Dark-Mode-Variante */
@media (prefers-color-scheme: dark) {
  .social-bar a {
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .social-bar-mobile {
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }
}
/* ============================================================
   DARK MODE (prefers-color-scheme)
   ============================================================ */

@media (prefers-color-scheme: dark) {
  body {
    background: #020617;
    color: #e5e7eb;
  }

  .topbar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(148, 163, 184, 0.3);
  }

  .topnav {
    background: rgba(15, 23, 42, 0.96);
    border-bottom-color: rgba(15, 23, 42, 1);
  }

  .topnav a {
    color: #cbd5e1;
  }

  .topnav a:hover {
    color: #ffffff;
    border-color: #38bdf8;
  }

  .hamburger span {
    background: #e2e8f0;
  }

  .hero-headline h1 {
    color: #f9fafb;
  }

  .hero-headline p {
    color: #9ca3af;
  }

  .hero-tabbar {
    border-bottom-color: #1f2937;
  }

  .hero-tab-link {
    color: #9ca3af;
  }

  .hero-tab-link.active {
    color: #f9fafb;
  }

  .hero-panel-media img {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  }

  .hero-panel-text p,
  .hero-panel-text ul {
    color: #cbd5e1;
  }

  .tabs-card,
  .card,
  .accordion-item,
  .basket-summary {
    background: #0f172a;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    border-color: #1f2937;
  }

  .accordion-header {
    color: #e5e7eb;
  }

  .accordion-item.open .accordion-header {
    background: #111827;
  }

  .accordion-body,
  .hint,
  .legend,
  .basket-summary .label {
    color: #cbd5e1;
  }

  /* Tabs im Dark Mode */
  .tab-button {
    background: #020617;
    color: #e5e7eb;
  }

  .tab-button.active {
    background: #f9fafb;
    color: #020617;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
  }

  .tabs-intro {
    background: #020617;
    border-color: #1f2937;
    color: #e5e7eb;
  }

  .tabs-intro p {
    color: #cbd5e1;
  }

  .tabs-step {
    background: #020617;
  }

  .tabs-step-text {
    color: #e5e7eb;
  }

  .hero-usp-item {
    background: #020617;
    border-color: #1f2937;
  }

  .hero-usp-label {
    color: #9ca3af;
  }

  .hero-usp-value {
    color: #e5e7eb;
  }

  .table-wrapper {
    background: #020617;
    border-radius: 14px;
  }

  table {
    background: transparent;
  }

  thead,
  table thead th {
    background: #0b1120 !important;
    color: #e2e8f0 !important;
    border-bottom: 1px solid #1e293b !important;
  }

  tbody tr:nth-child(even),
  tbody tr:nth-child(odd) {
    background: #020617;
  }

  tbody tr {
    color: #e2e8f0;
  }

  th,
  td {
    border-color: #1f2937;
  }

  input[type="number"],
  .basket-search-input,
  .basket-year-select,
  .product-trend-controls input,
  .product-trend-controls select {
    background: #020617;
    border-color: #334155;
    color: #e5e7eb;
  }

  input[type="number"]::placeholder {
    color: #64748b;
  }

  .basket-years {
    background: #020617;
    border-color: #1f2937;
  }

  .basket-years-label {
    color: #9ca3af;
  }

  .basket-year-separator {
    color: #64748b;
  }

  .toggle-label {
    color: #e5e7eb;
  }

  .page-footer {
    color: #9ca3af;
    border-top-color: #1f2937;
  }

  .footer-link {
    color: #93c5fd;
  }

  .nav-ico {
    filter: invert(92%) brightness(115%);
  }

  .modal-dialog {
    background: #020617;
    color: #e5e7eb;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  }

  .modal-content {
    color: #e5e7eb;
  }

  .modal-close {
    color: #cbd5e1;
  }

  .modal-close:hover {
    color: #f9fafb;
  }
}