body {
  margin: 0;
  display: flex;
  height: 100vh;
  height: calc(100vh - env(safe-area-inset-bottom));
  /* iPhone Safe Area Support */
  font-family: "Noto Sans Display";
  background-color: #f9f9f9;
  overflow: hidden;
  /* verhindert horizontales Scrollen */
  padding-bottom: env(safe-area-inset-bottom);
  /* Zusätzlicher Abstand für iPhone */
}

/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #003A5D, #dc2626);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-text {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-subtitle {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes config-button-pulse {
  0%, 100% {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transform: translateX(-50%) scale(1);
  }
  50% {
    box-shadow: 0 8px 24px rgba(0, 58, 93, 0.4), 0 6px 18px rgba(0, 0, 0, 0.25);
    transform: translateX(-50%) scale(1.02);
  }
}

@keyframes config-button-pulse-close {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
  }
}

/* Sicherstellen, dass alle Textelemente Umlaute korrekt anzeigen */
* {
  font-family: "Noto Sans Display";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sidebar {
  justify-content: space-between;
  width: 100%;
  /* max-width: 420px; */
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ddd;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.05);
  min-width: 500px;
  /* Oder z. B. max-width wenn du Begrenzung willst */
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    height: auto;
    overflow: auto;
    font-family: "Noto Sans Display";
  }

  .sidebar {
    min-width: auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: none;
    /* Standardmässig ausgeblendet auf Mobile */
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    /* Verhindert horizontales Scrollen */
  }

  .sidebar.open {
    display: flex;
    /* Wird angezeigt wenn .open Klasse hinzugefuegt wird */
  }

  #canvas-container {
    height: 100vh;
    min-height: 300px;
  }

  /* Konfigurieren Button für Mobile */
  .mobile-config-button {
    display: block;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(60px + 30px + env(safe-area-inset-bottom));
    height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #003A5D, #dc2626);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    z-index: 101;
    transition: box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    animation: config-button-pulse 1s ease-in-out infinite;
    -webkit-animation: config-button-pulse 1s ease-in-out infinite;
  }

  .mobile-config-button:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    animation: none;
  }

  /* Overlay fuer Sidebar */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .sidebar-overlay.open {
    display: block;
  }

  /* Close Button fuer Sidebar */
  .sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
  }

  /* Mobile: Close Button als "Zurück zum Konfigurator" */
  @media (max-width: 768px) {
    .sidebar-close {
      width: auto;
      /* Automatische Breite für Text */
      min-width: 80px;
      /* Mindestbreite für Text */
      height: 36px;
      border-radius: 18px;
      /* Abgerundete Ecken für Text-Button */
      font-size: 12px;
      /* Kleinere Schrift für Text */
      padding: 0 12px;
      /* Horizontales Padding für Text */
      white-space: nowrap;
      /* Kein Textumbruch */
      animation: config-button-pulse-close 1s ease-in-out infinite;
      -webkit-animation: config-button-pulse-close 1s ease-in-out infinite;
    }
    .sidebar-close::before {
      content: "Zum Konfigurator";
      /* Pfeil und Text */
      font-size: 10px;
      font-weight: 500;
    }

    /* X-Symbol verstecken */
    .sidebar-close::after {
      display: none !important;
    }

    /* Original-Text verstecken */
    .sidebar-close {
      font-size: 0;
      /* Original-Text unsichtbar machen */
    }
  }

  .sidebar-close:hover {
    background: #b91c1c;
    animation: none;
  }

  /* Mobile responsive sidebar content */
  .sidebar-scroll {
    padding: 15px;
    padding-bottom: calc(80px + 20px) !important;
    /* Platz für Footer */
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling auf iOS */
  }

  .section {
    margin-bottom: 15px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  /* Mobile responsive dimension controls */
  .dimension-control {
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .dimension-control label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .dimension-control .label-text {
    font-weight: bold;
    flex: 1;
  }

  .dimension-control .bereich {
    text-align: right;
    color: #666;
    font-size: 12px;
    padding-left: 10px;
    white-space: nowrap;
  }

  .dimension-control {
    position: relative;
  }

  .dimension-control input {
    width: 100%;
    padding: 12px 50px 12px 12px !important;
    /* Rechts mehr Platz für "cm" */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
    display: block;
    min-height: 44px;
    /* Feste Höhe für Berechnung */
  }

  .dimension-control .unit {
    position: absolute;
    right: 14px !important;
    /* Konsistenter Abstand */
    top: calc(24px + 8px + 22px) !important;
    /* Label-Höhe + margin-bottom + Input-Hälfte */
    transform: translateY(-50%) !important;
    /* Perfekte vertikale Zentrierung */
    font-size: 14px !important;
    color: #666;
    pointer-events: none;
    z-index: 2;
    /* Über dem Input */
    font-weight: 500;
    /* Etwas fetter für bessere Sichtbarkeit */
    line-height: 1 !important;
    /* Keine zusätzliche Zeilenhöhe */
    margin: 0 !important;
    /* Kein zusätzlicher Margin */
    padding: 0 !important;
    /* Kein Padding */
    height: auto !important;
    display: inline-block !important;
  }

  /* Mobile responsive measure toggle */
  .measure-toggle-row {
    margin-bottom: 14px;
    padding: 12px 14px;
    min-height: 44px;
  }
  .measure-toggle-label {
    font-size: 13px;
  }
  .toggle-switch {
    width: 52px;
    min-width: 52px;
    height: 28px;
  }
  .toggle-slider::before {
    height: 22px;
    width: 22px;
  }
  .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
  }

  /* Mobile responsive hoehe output */
  .hoehe-output {
    margin-top: 8px;
    gap: 8px;
  }

  .hoehe-block {
    padding: 10px 8px;
  }

  .hoehe-label {
    font-size: 12px;
    margin-bottom: 3px;
  }

  .hoehe-value {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .hoehe-unit {
    font-size: 10px;
  }

  /* Mobile responsive color buttons */
  .color-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .color-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .color-button {
    width: 60px;
    height: 80px;
    border-radius: 12px;
  }

  .color-box p {
    font-size: 14px;
    text-align: center;
    margin: 0;
  }

  /* Mobile responsive aufbau buttons */
  .aufbau-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .aufbau-button {
    flex: 1;
    padding: 12px;
  }

  .aufbau-button img {
    height: 60px;
    object-fit: cover;
    object-position: center;
    width: 100%;
    border: 1px solid #e5e5e5;
  }

  .aufbau-button span {
    font-size: 14px;
  }

  /* Mobile responsive platten anzahl */
  .platten-anzahl {
    margin-bottom: 20px;
  }

  .anzahl-display {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
  }

  .anzahl-label {
    font-size: 14px;
    color: #495057;
    margin-bottom: 5px;
    display: block;
  }

  .anzahl-value {
    font-size: 18px;
    font-weight: 600;
    color: #003A5D;
    display: block;
  }

  /* Mobile responsive stegplatten grid */
  .stegplatten-container {
    margin-bottom: 20px;
  }

  .stegplatten-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }

  .stegplatte-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .stegplatte-item:hover {
    border-color: #003A5D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .stegplatte-item.selected {
    border-color: #003A5D;
    background-color: #f0f8ff;
    box-shadow: 0 0 8px rgba(0, 58, 93, 0.3);
  }

  .stegplatte-image {
    text-align: center;
    margin-bottom: 10px;
  }

  .stegplatte-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 120px;
  }

  .stegplatte-info {
    text-align: center;
  }

  .stegplatte-title {
    font-size: 16px;
    font-weight: 600;
    color: #003A5D;
    margin-bottom: 5px;
  }

  .stegplatte-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
  }

  .stegplatte-price {
    font-size: 16px;
    font-weight: bold;
    color: #dc2626;
  }

  /* Mobile responsive options */
  .options-container {
    margin-bottom: 20px;
  }

  .options-section {
    margin-bottom: 25px;
  }

  .options-title {
    font-size: 18px;
    color: #003A5D;
    margin-bottom: 15px;
    font-weight: 600;
  }

  .options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }

  .option-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .option-card:hover {
    border-color: #003A5D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .option-card.selected {
    border-color: #003A5D;
    background-color: #f0f8ff;
    box-shadow: 0 0 8px rgba(0, 58, 93, 0.3);
  }

  .option-image {
    text-align: center;
    margin-bottom: 10px;
  }

  .option-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 120px;
  }

  .option-info {
    text-align: center;
  }

  .option-title {
    font-size: 16px;
    font-weight: 600;
    color: #003A5D;
    margin-bottom: 5px;
  }

  .option-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
  }

  /* Mobile responsive tab navigation */
  .tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .tab-button {
    flex: 1;
    padding: 12px 8px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .tab-button i {
    font-size: 16px;
    color: #003A5D;
  }

  .tab-button.active {
    background: #003A5D;
    color: white;
    border-color: #003A5D;
  }

  .tab-button.active i {
    color: white;
  }

  /* Mobile responsive sidebar header */
  .sidebar-header {
    padding: 20px 15px 15px;
  }

  .logo {
    width: 80px;
  }

  .sidebar-title {
    font-size: 18px;
  }

  /* Mobile responsive footer - Einheitlich für alle UIs */
  .sidebar-footer {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    min-height: 80px !important;
    height: calc(80px + env(safe-area-inset-bottom)) !important;
    padding: 12px 15px !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #ddd !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .sidebar-footer .next-button {
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important;
    padding: 14px 20px !important;
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #003A5D, #dc2626) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
  }

  .sidebar-footer .next-button:hover,
  .sidebar-footer .next-button:active {
    background: linear-gradient(135deg, #002a4a, #b91c1c) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  }

  /* Mobile responsive price widget */
  .price-widget {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    background: white;
    border-top: 1px solid #ddd;
    border-radius: 0;
    padding: 12px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
  }

  /* Erste Zeile: Preis und MwSt */
  .price-widget-row1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }

  /* Zweite Zeile: Aktueller Preis */
  .price-widget-row1b {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
  }

  /* Dritte Zeile: MwSt Info */
  .price-widget-row1c {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
  }

  /* Zweite Zeile: Lieferzeit und Lieferoptionen */
  .price-widget-row2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  /* Dritte Zeile: Buttons */
  .price-widget-row3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .price-original {
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: line-through;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
    min-width: 80px;
  }

  .price-amount {
    font-size: 16px;
    font-weight: bold;
    color: #003A5D;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
    min-width: 80px;
  }

  .price-discount {
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
    min-width: 80px;
  }

  .price-subtext {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
    min-width: 60px;
  }

  .delivery-time {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
    min-width: 60px;
  }

  .delivery-options {
    margin: 0;
    flex-shrink: 0;
    min-width: 120px;
  }

  .delivery-option {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 6px;
    color: #333;
  }

  .delivery-option input[type="radio"] {
    margin-right: 4px;
    transform: scale(0.6);
  }

  .delivery-option-btn {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #333;
    min-width: 50px;
    text-align: center;
  }

  .delivery-option-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
  }

  .delivery-option-btn.active {
    background: #1eae72;
    color: white;
    border-color: #1eae72;
  }

  .price-widget-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    flex-shrink: 0;
    min-width: 160px;
  }

  .price-widget-button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 32px;
  }

  .price-widget-button.primary {
    background: rgb(194, 25, 29);
    color: white;
  }

  .price-widget-button.primary:hover {
    background: rgb(174, 20, 25);
  }

  .price-widget-button.secondary {
    background: #dc2626;
    color: white;
  }

  .price-widget-button.secondary:hover {
    background: #b91c1c;
  }

  /* Mobile responsive platten anzahl */
  .platten-anzahl {
    margin-bottom: 20px;
  }

  .anzahl-display {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
  }

  .anzahl-label {
    font-size: 14px;
    color: #495057;
    margin-bottom: 5px;
    display: block;
  }

  .anzahl-value {
    font-size: 18px;
    font-weight: 600;
    color: #003A5D;
    display: block;
  }

  /* Mobile responsive stegplatten grid */
  .stegplatten-container {
    margin-bottom: 20px;
  }

  .stegplatten-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }

  .stegplatte-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .stegplatte-item:hover {
    border-color: #003A5D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .stegplatte-item.selected {
    border-color: #003A5D;
    background-color: #f0f8ff;
    box-shadow: 0 0 8px rgba(0, 58, 93, 0.3);
  }

  .stegplatte-image {
    text-align: center;
    margin-bottom: 10px;
  }

  .stegplatte-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 120px;
  }

  .stegplatte-info {
    text-align: center;
  }

  .stegplatte-title {
    font-size: 16px;
    font-weight: 600;
    color: #003A5D;
    margin-bottom: 5px;
  }

  .stegplatte-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
  }

  .stegplatte-price {
    font-size: 16px;
    font-weight: bold;
    color: #dc2626;
  }

  /* Mobile responsive options */
  .options-container {
    margin-bottom: 20px;
  }

  .options-section {
    margin-bottom: 25px;
  }

  .options-title {
    font-size: 18px;
    color: #003A5D;
    margin-bottom: 15px;
    font-weight: 600;
  }

  .options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }

  .option-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .option-card:hover {
    border-color: #003A5D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .option-card.selected {
    border-color: #003A5D;
    background-color: #f0f8ff;
    box-shadow: 0 0 8px rgba(0, 58, 93, 0.3);
  }

  .option-image {
    text-align: center;
    margin-bottom: 10px;
  }

  .option-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 120px;
  }

  .option-info {
    text-align: center;
  }

  .option-title {
    font-size: 16px;
    font-weight: 600;
    color: #003A5D;
    margin-bottom: 5px;
  }

  .option-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
  }

  /* Mobile responsive tab navigation */
  .tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .tab-button {
    flex: 1;
    padding: 12px 8px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .tab-button i {
    font-size: 16px;
    color: #003A5D;
  }

  .tab-button.active {
    background: #003A5D;
    color: white;
    border-color: #003A5D;
  }

  .tab-button.active i {
    color: white;
  }
}

@media (min-width: 769px) {

  .mobile-config-button,
  .sidebar-overlay,
  .sidebar-close {
    display: none !important;
  }
}

/* Kleinere mobile Anpassungen */
@media (max-width: 480px) {
  body {
    font-family: "Noto Sans Display";
  }

  .mobile-config-button {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    height: 40px;
    font-size: 14px;
    bottom: calc(60px + 30px + env(safe-area-inset-bottom));
    padding: 0 16px;
    animation: config-button-pulse 1s ease-in-out infinite;
  }

  .sidebar-scroll {
    padding: 10px;
    padding-bottom: calc(70px + 20px) !important;
    /* Platz für Footer auf kleinen Geräten */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling auf iOS */
  }

  .section-title {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .dimension-control {
    margin-bottom: 15px;
  }

  .dimension-control label {
    font-size: 14px;
  }

  .dimension-control label {
    min-height: 22px;
    /* Angepasst für kleinere Geräte */
    margin-bottom: 6px;
  }

  .dimension-control input {
    padding: 10px 45px 10px 10px !important;
    /* Rechts mehr Platz für "cm" */
    font-size: 14px;
    min-height: 40px;
    /* Angepasst für kleinere Geräte */
  }

  .dimension-control .unit {
    right: 12px !important;
    /* Angepasst für kleinere Geräte */
    font-size: 13px !important;
    top: calc(22px + 6px + 20px) !important;
    /* Label-Höhe + margin-bottom + Input-Hälfte */
    transform: translateY(-50%) !important;
    /* Perfekte vertikale Zentrierung */
    line-height: 1 !important;
    /* Keine zusätzliche Zeilenhöhe */
    margin: 0 !important;
    /* Kein zusätzlicher Margin */
    padding: 0 !important;
    /* Kein Padding */
  }

  /* Mobile responsive platten anzahl */
  .platten-anzahl {
    margin-bottom: 20px;
  }

  .anzahl-display {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
  }

  .anzahl-label {
    font-size: 14px;
    color: #495057;
    margin-bottom: 5px;
    display: block;
  }

  .anzahl-value {
    font-size: 18px;
    font-weight: 600;
    color: #003A5D;
    display: block;
  }

  /* Mobile responsive stegplatten grid */
  .stegplatten-container {
    margin-bottom: 20px;
  }

  .stegplatten-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }

  .stegplatte-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .stegplatte-item:hover {
    border-color: #003A5D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .stegplatte-item.selected {
    border-color: #003A5D;
    background-color: #f0f8ff;
    box-shadow: 0 0 8px rgba(0, 58, 93, 0.3);
  }

  .stegplatte-image {
    text-align: center;
    margin-bottom: 10px;
  }

  .stegplatte-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 120px;
  }

  .stegplatte-info {
    text-align: center;
  }

  .stegplatte-title {
    font-size: 16px;
    font-weight: 600;
    color: #003A5D;
    margin-bottom: 5px;
  }

  .stegplatte-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
  }

  .stegplatte-price {
    font-size: 16px;
    font-weight: bold;
    color: #dc2626;
  }

  /* Mobile responsive options */
  .options-container {
    margin-bottom: 20px;
  }

  .options-section {
    margin-bottom: 25px;
  }

  .options-title {
    font-size: 18px;
    color: #003A5D;
    margin-bottom: 15px;
    font-weight: 600;
  }

  .options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }

  .option-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .option-card:hover {
    border-color: #003A5D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .option-card.selected {
    border-color: #003A5D;
    background-color: #f0f8ff;
    box-shadow: 0 0 8px rgba(0, 58, 93, 0.3);
  }

  .option-image {
    text-align: center;
    margin-bottom: 10px;
  }

  .option-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 120px;
  }

  .option-info {
    text-align: center;
  }

  .option-title {
    font-size: 16px;
    font-weight: 600;
    color: #003A5D;
    margin-bottom: 5px;
  }

  .option-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
  }

  /* Mobile responsive tab navigation */
  .tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .tab-button {
    flex: 1;
    padding: 12px 8px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .tab-button i {
    font-size: 16px;
    color: #003A5D;
  }

  .tab-button.active {
    background: #003A5D;
    color: white;
    border-color: #003A5D;
  }

  .tab-button.active i {
    color: white;
  }

  .color-button {
    width: 50px;
    height: 70px;
  }

  .color-box p {
    font-size: 12px;
  }

  .aufbau-button {
    padding: 8px;
  }

  .aufbau-button img {
    height: 50px;
    object-fit: cover;
    object-position: center;
    width: 100%;
    border: 1px solid #e5e5e5;
  }

  .aufbau-button span {
    font-size: 12px;
  }

  .next-button {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Kleinere Mobile: Footer bleibt gleich, nur Anpassungen für sehr kleine Geräte */
  .sidebar-footer {
    min-height: 70px !important;
    height: calc(70px + env(safe-area-inset-bottom)) !important;
    padding: 10px 12px !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }

  .sidebar-footer .next-button {
    height: 50px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }

  /* Mobile responsive price widget */
  .price-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    background: white;
    border-top: 1px solid #ddd;
    border-radius: 0;
    padding: 8px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 55px;
  }

  /* Erste Zeile: Preis und MwSt */
  .price-widget-row1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }

  /* Zweite Zeile: Aktueller Preis */
  .price-widget-row1b {
    display: flex;
    justify-content: center;
    margin-bottom: 3px;
  }

  /* Dritte Zeile: MwSt Info */
  .price-widget-row1c {
    display: flex;
    justify-content: center;
    margin-bottom: 3px;
  }

  /* Zweite Zeile: Lieferzeit und Lieferoptionen */
  .price-widget-row2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  /* Dritte Zeile: Buttons */
  .price-widget-row3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .price-original {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: line-through;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
    min-width: 70px;
  }

  .price-amount {
    font-size: 14px;
    font-weight: bold;
    color: #003A5D;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
    min-width: 70px;
  }

  .price-discount {
    font-size: 10px;
    font-weight: 700;
    color: #dc2626;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
    min-width: 70px;
  }

  .price-subtext {
    font-size: 8px;
    color: #666;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
    min-width: 50px;
  }

  .delivery-time {
    font-size: 8px;
    color: #666;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
    min-width: 60px;
  }

  .delivery-options {
    margin: 0;
    flex-shrink: 0;
    min-width: 110px;
  }

  .delivery-option {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 6px;
    color: #333;
  }

  .delivery-option input[type="radio"] {
    margin-right: 2px;
    transform: scale(0.4);
  }

  .delivery-option-btn {
    padding: 3px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #333;
    min-width: 40px;
    text-align: center;
  }

  .delivery-option-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
  }

  .delivery-option-btn.active {
    background: #1eae72;
    color: white;
    border-color: #1eae72;
  }

  .price-widget-buttons {
    display: flex;
    flex-direction: row;
    gap: 6px;
    justify-content: flex-end;
    flex-shrink: 0;
    min-width: 140px;
  }

  .price-widget-button {
    padding: 5px 8px;
    border: none;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 24px;
  }

  .price-widget-button.primary {
    background: rgb(194, 25, 29);
    color: white;
  }

  .price-widget-button.primary:hover {
    background: rgb(174, 20, 25);
  }

  .price-widget-button.secondary {
    background: #dc2626;
    color: white;
  }

  .price-widget-button.secondary:hover {
    background: #b91c1c;
  }

  .price-widget {
    padding: 6px 12px;
    min-height: 50px;
    gap: 3px;
  }

  .price-widget-row1,
  .price-widget-row1b,
  .price-widget-row1c,
  .price-widget-row2,
  .price-widget-row3 {
    gap: 6px;
  }

  .price-original {
    font-size: 10px;
    min-width: 60px;
  }

  .price-amount {
    font-size: 12px;
    min-width: 60px;
  }

  .price-discount {
    font-size: 8px;
    min-width: 60px;
  }

  .price-subtext {
    font-size: 8px;
    min-width: 40px;
  }

  .delivery-time {
    font-size: 7px;
    min-width: 60px;
  }

  .delivery-options {
    min-width: 90px;
  }

  .delivery-option {
    font-size: 6px;
  }

  .delivery-option input[type="radio"] {
    margin-right: 2px;
    transform: scale(0.35);
  }

  .delivery-option-btn {
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #333;
    min-width: 35px;
    text-align: center;
  }

  .delivery-option-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
  }

  .delivery-option-btn.active {
    background: #1eae72;
    color: white;
    border-color: #1eae72;
  }

  .price-widget-buttons {
    min-width: 120px;
    gap: 4px;
  }

  .price-widget-button {
    padding: 4px 6px;
    font-size: 9px;
    min-height: 20px;
  }

  /* Kleinere Mobile: Anpassungen für Stegplatten und Optionen */
  .stegplatte-title,
  .option-title {
    font-size: 14px;
  }

  .stegplatte-description,
  .option-description {
    font-size: 12px;
  }

  .stegplatte-price {
    font-size: 14px;
  }

  .tab-button {
    padding: 10px 6px;
    font-size: 12px;
  }

  .tab-button i {
    font-size: 14px;
  }
}

.sidebar-header {
  padding: 40px 10px 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.logo {
  width: 120px;
  margin-bottom: 8px;
}

.sidebar-title {
  font-size: 22px;
  color: #003A5D;
  margin: 0;
}

.sidebar-scroll {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.sidebar-scroll {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.section {
  margin-bottom: 10px;
}

.section-title {
  font-size: 20px;
  color: #003A5D;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
}

/* Toggle: Maße in 3D anzeigen */
.measure-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px 12px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}
.measure-toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
  flex: 1;
  line-height: 1.4;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  min-width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 26px;
  transition: 0.25s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #dc2626;
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}
.toggle-switch input:focus-visible + .toggle-slider {
  box-shadow: 0 0 0 2px #003A5D;
}

.dimension-control {
  margin-bottom: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.dimension-control label {
  display: block;
  font-size: 19px;
  color: #333;
  margin-bottom: 5px;
  min-height: 28px;
  /* Feste Höhe für Berechnung */
  line-height: 1.5;
}

.dimension-control {
  position: relative;
}

.dimension-control input {
  width: 100%;
  padding: 10px 50px 10px 10px;
  /* Rechts mehr Platz für "cm" */
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  position: relative;
  display: block;
  min-height: 44px;
  /* Feste Höhe für Berechnung */
}

.dimension-control .unit {
  position: absolute;
  right: 14px;
  /* Konsistenter Abstand */
  top: calc(28px + 5px + 22px);
  /* Label-Höhe + margin-bottom + Input-Hälfte */
  transform: translateY(-50%);
  /* Perfekte vertikale Zentrierung */
  font-size: 14px;
  color: #666;
  pointer-events: none;
  z-index: 2;
  /* Über dem Input */
  font-weight: 500;
  /* Etwas fetter für bessere Sichtbarkeit */
  line-height: 1;
  /* Keine zusätzliche Zeilenhöhe */
  margin: 0;
  /* Kein zusätzlicher Margin */
  padding: 0;
  /* Kein Padding */
  height: auto;
  display: inline-block;
}

/* Hoehe Output Styles */
.hoehe-output {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.hoehe-block {
  flex: 1;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  text-align: center;
  transition: all 0.2s ease;
}

.hoehe-block:hover {
  background-color: #e9ecef;
  border-color: #003A5D;
}

.hoehe-label {
  color: #495057;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
  display: block;
}

.hoehe-value {
  color: #003A5D;
  font-weight: 600;
  font-size: 18px;
  display: block;
  margin-bottom: 2px;
}

.hoehe-unit {
  color: #6c757d;
  font-size: 12px;
  display: block;
}

.color-palette {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.color-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.color-swatch {
  width: 60px;
  height: 80px;
  border-radius: 14px;
  border: 1px solid #aaa;
}

.color-box p {
  margin: 7;
  font-size: 20px;
  color: #003A5D;
}

hr {
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 20px 0;
}

.sidebar-footer {
  padding: 20px;
  text-align: center;
  margin-top: 30px;
  /* Abstand nach oben hinzufuegen - groesser fuer Desktop */
  margin-bottom: 20px;
}

.next-button {
  background-color: white;
  color: #003A5D;
  border: 2px solid #003A5D;
  padding: 14px 24px;
  font-size: 20px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.next-button:hover {
  background-color: #003A5D;
  color: white;
}

#canvas-container {
  flex-grow: 1;
  position: relative;
  background: #f0f0f0;
}

.color-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
}



.color-button {
  width: 90px;
  height: 120px;
  border-radius: 16px;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.color-button:hover {
  transform: scale(1.05);
  border-color: #003A5D;
}

.color-button.selected {
  border: 2px solid #003A5D;
  box-shadow: 0 0 6px rgba(0, 58, 93, 0.5);
}

.color-button.active {
  border: 3px solid #dc2626;
  /* Professionelle rote Farbe */
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.4);
}


input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.icon i {
  margin-right: 8px;
  font-size: 1.1em;
  opacity: 0.8;
  color: #003A5D;
}

:root {
  --bg-dark: #ffffff;
  --bg-light: #ffffff;
  --primary: #dc2626;
  --text-light: #111111;
  --text-dark: #222222;
  --accent: #dc2626;
  --border-dark: #ccc;
  --grey: #888;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.sidebar,
.container,
.card {
  background-color: var(--bg-light);
  color: var(--text-dark);
  border-color: var(--border-dark);
}

h1,
h2,
label,
.card-name,
.card-price,
.section-title,
.sidebar-title {
  color: var(--text-dark);
}

input,
input[type=number] {
  background-color: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border-dark);
}

.next-button,
.platten-footer button,
.tab {
  background-color: var(--bg-light);
  border: 2px solid var(--primary);
  color: var(--primary);
}

.next-button:hover,
.platten-footer button:hover,
.tab:hover {
  background-color: var(--primary);
  color: var(--bg-light);
}

#btn-cart,
#btn-cart:hover {
  border-color: var(--primary);
  background-color: var(--bg-light);
  color: var(--bg-light);
}

.card {
  background-color: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border-dark);
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.card-tooltip {
  background-color: var(--grey);
  color: var(--bg-light);
}

.card-tooltip:hover,
.tooltip-bubble {
  background-color: var(--primary);
  color: var(--bg-light);
}

.tab.active {
  background: var(--primary);
  border-bottom: 2px solid var(--primary);
  color: var(--bg-light);
}

.icon i {
  color: var(--primary);
}

hr {
  background-color: var(--border-dark);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background-color: var(--bg-light);
}

.color-box p {
  color: var(--text-dark);
}

.card-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  overflow-x: hidden;
  /* verhindert horizontales Scrollen innerhalb der Galerie */
}

.tab-content {
  overflow-x: hidden;
  /* verhindert horizontales Scrollen des gesamten Tabs */
}

/* Desktop Labels - nur fuer Desktop */
@media (min-width: 769px) {
  .label-breite {
    display: flex;
    justify-content: space-between;
    font-size: 19px;
    color: #333;
    margin-bottom: 5px;
    width: 100%;
  }

  .label-breite .label-text {
    flex: 1;
    font-weight: bold;
  }

  .label-breite .bereich {
    text-align: right;
    white-space: nowrap;
    color: #666;
    font-size: 15px;
    padding-left: 280px;
  }

  .label-hoehe {
    display: flex;
    justify-content: space-between;
    font-size: 19px;
    color: #333;
    margin-bottom: 5px;
    width: 100%;
  }

  .label-hoehe .label-text {
    flex: 1;
    font-weight: bold;
  }

  .label-hoehe .bereich {
    text-align: right;
    white-space: nowrap;
    color: #666;
    font-size: 15px;
    padding-left: 200px;
  }

  .label-tiefe {
    display: flex;
    justify-content: space-between;
    font-size: 19px;
    color: #333;
    margin-bottom: 5px;
    width: 100%;
  }

  .label-tiefe .label-text {
    flex: 1;
    font-weight: bold;
  }

  .label-tiefe .bereich {
    text-align: right;
    white-space: nowrap;
    color: #666;
    font-size: 15px;
    justify-content: space-between;
    padding-left: 300px;
  }
}

/* Aufbau Buttons */
.aufbau-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}



.aufbau-button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px;
  border: 2px solid #ccc;
  border-radius: 12px;
  background: #F8F8F8;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aufbau-button:hover {
  border-color: #003A5D;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.aufbau-button.active {
  border-color: #d94f66;
  background-color: #F8F8F8;
  box-shadow: 0 0 8px rgba(217, 79, 102, 0.3);
}

.aufbau-button img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  max-width: 100%;
  max-height: 100%;
}

.aufbau-button span {
  font-size: 16px;
  font-weight: bold;
  color: #003A5D;
  text-align: center;
}

/* Price Widget */
.price-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 200px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 16px 18px;
  z-index: 1000;
}

.price-widget .price-widget-row1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: left;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 8px;
}

.price-widget .price-widget-row1b {
  display: flex;
  justify-content: left;
  margin-bottom: 8px;
}

.price-widget .price-widget-row1c {
  display: flex;
  justify-content: left;
  margin-bottom: 8px;
}

.price-widget .price-original {
  font-size: 20px;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
  margin: 0;
  flex-shrink: 0;
  min-width: 70px;
  text-align: center;
}

.price-widget .price-amount {
  font-size: 28px;
  font-weight: 800;
  color: #1eae72;
  /* green */
  margin: 0;
  flex-shrink: 0;
  min-width: 70px;
  text-align: center;
}

.price-widget .price-discount {
  font-size: 16px;
  font-weight: 700;
  color: #dc2626;
  margin: 0;
  flex-shrink: 0;
  min-width: 70px;
  text-align: center;
}

.price-widget .price-subtext {
  font-size: 10px;
  color: #4b5563;
  margin: 0;
  flex-shrink: 0;
  min-width: 80px;
  text-align: center;
}

.price-widget .delivery-time {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
}

.price-widget .delivery-options {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.price-widget .delivery-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.price-widget .delivery-options {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 20px;
}

.price-widget .delivery-option-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9fafb;
  color: #374151;
  text-align: center;
}

.price-widget .delivery-option-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.price-widget .delivery-option-btn.active {
  background: #e9f7f1;
  color: #1eae72;
  border-color: #1eae72;
}

/* Price Widget Buttons */
.price-widget-buttons {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-widget-button {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Price Widget Row 3 - Buttons mit Abstand */
.price-widget-row3 {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 16px;
}

.price-widget-button.primary {
  background: linear-gradient(135deg, rgb(194, 25, 29), rgb(214, 30, 34));
  color: white;
}

.price-widget-button.primary:hover {
  background: linear-gradient(135deg, rgb(214, 30, 34), rgb(234, 35, 39));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194, 25, 29, 0.3);
}

.price-widget-button.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 58, 93, 0.3);
}

.price-widget-button.secondary {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.price-widget-button.secondary:hover {
  background: #e5e7eb;
}


/* Hide mobile-only link by default (desktop) */
.price-info-link {
  display: none;
}

/* ===== Mobile overrides for new Price Widget layout ===== */
@media (max-width: 768px) {

  /* Bottom bar layout: left = original+discount+link, right = icon buttons */
  #price-widget.price-widget {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    box-sizing: border-box;
    border-top: 1px solid #ddd;
    border-radius: 0;
    padding: 8px calc(12px + env(safe-area-inset-right)) 8px calc(12px + env(safe-area-inset-left));
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 60px;
    z-index: 100;
  }

  #price-widget .price-widget-left-mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  #price-widget .price-widget-row1 {
    margin: 0;
    gap: 6px;
  }

  #price-widget .price-widget-row1 .price-original {
    font-size: 12px;
    text-align: left;
  }

  #price-widget .price-widget-row1 .price-discount {
    font-size: 11px;
    text-align: left;
  }

  /* Hide extra rows inside bar; details go into modal */
  #price-widget .price-widget-row1c,
  #price-widget .price-widget-row2 {
    display: none !important;
  }

  /* Show prominent price under row1 on mobile */
  #price-widget .price-widget-left-mobile .price-widget-row1b {
    display: block !important;
  }

  #price-widget .price-widget-left-mobile .price-widget-row1b .price-amount {
    font-size: 16px;
    font-weight: 700;
    color: #0f5132;
    /* neutral greenish tone for emphasis */
  }

  #price-widget .price-widget-row3 {
    margin-left: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
  }

  /* Icon-only buttons */
  #price-widget .price-widget-row3 .price-widget-button {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    /* hide text labels */
    text-align: center;
    /* Zusätzliche Text-Zentrierung */
    line-height: 1;
    /* Perfekte Zeilenhöhe für Icons */
    position: relative;
    /* Relative Positionierung für absolute Icons */
  }

  #price-widget .price-widget-row3 .price-widget-button i {
    font-size: 20px;
    margin: 0;
    position: absolute;
    /* Absolute Positionierung für perfekte Zentrierung */
    top: 50%;
    /* 50% von oben */
    left: 50%;
    /* 50% von links */
    transform: translate(-50%, -50%);
    /* Perfekte Zentrierung mit Transform */
    text-align: center;
    /* Icon-Text zentrieren */
    line-height: 1;
    /* Perfekte Zeilenhöhe */
    width: auto;
    /* Automatische Breite für Icon */
    height: auto;
    /* Automatische Höhe für Icon */
    display: block;
    /* Block-Display für bessere Kontrolle */
  }

  .price-info-link {
    display: inline-block !important;
    background: transparent;
    border: none;
    color: #374151;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    padding: 0;
    cursor: pointer;
  }

  /* Price Info Modal */
  .price-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
  }

  .price-info-modal.open {
    display: flex;
    align-items: flex-end;
    /* bottom sheet */
    justify-content: center;
  }

  .price-info-dialog {
    position: relative;
    background: #ffffff;
    width: 100%;
    border-radius: 12px 12px 0 0;
    padding: 16px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  }

  .price-info-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
  }

  .price-info-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #e5e7eb;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .price-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .price-info-subtext {
    font-size: 12px;
    color: #6b7280;
    text-align: left;
    width: 100%;
  }

  .price-info-options {

    /* Zusätzliche Zentrierung für sehr kleine Bildschirme */
    @media (max-width: 480px) {
      #price-widget .price-widget-row3 .price-widget-button {
        width: 40px;
        /* Etwas kleiner für sehr kleine Bildschirme */
        height: 40px;
        border-radius: 8px;
        /* Kleinere abgerundete Ecken */
      }

      #price-widget .price-widget-row3 .price-widget-button i {
        font-size: 18px;
        /* Etwas kleinere Icons */
        /* Absolute Positionierung bleibt für perfekte Zentrierung */
      }
    }

    display: flex;
    gap: 8px;
    justify-content: flex-start;
  }

  .price-info-options .delivery-option-btn {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
  }

  .price-info-delivery-time {
    font-size: 12px;
    color: #6b7280;
    text-align: left;
    width: 100%;
  }

  .price-info-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 8px 0 12px 0;
    width: 100%;
    display: block;
  }

  .price-info-prices {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    width: 100%;
  }

  .price-info-row1 {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
  }

  .price-info-row1b .price-amount {
    font-size: 20px;
    font-weight: 800;
    color: #16a34a;
  }
}