/* Mobile Styles für Holzkonfigurator - basierend auf aluminium.html */

/* Mobile Responsive Design */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    height: auto;
    overflow: auto;
    font-family: "Inter", "Roboto", "Open Sans", "Helvetica Neue", Arial, sans-serif;
  }

  .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äßig 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 hinzugefügt wird */
  }
  
  #canvas-container {
    height: 100vh;
    min-height: 300px;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #f0f0f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Für bessere mobile Darstellung */
    box-sizing: border-box;
  }
  
  /* Sicherstellen, dass der Canvas-Container in der mobilen Ansicht korrekt angezeigt wird */
  #canvas-container canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    object-fit: contain;
    /* Für bessere mobile Darstellung */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Zentrieren des Canvas */
    margin: auto;
  }
  
  /* 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: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
  }
  
  .mobile-config-button:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  }
  
  /* Overlay für 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 für Sidebar */
  .sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: auto;
    min-width: 80px;
    height: 36px;
    border-radius: 18px;
    background: #dc2626;
    color: white;
    border: none;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 0 12px;
    white-space: nowrap;
  }
  
  .sidebar-close:hover {
    background: #b91c1c;
  }
  
  /* Mobile responsive sidebar content */
  .sidebar-scroll {
    padding: 15px;
    overflow-x: hidden;
  }
  
  .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;
  }
  
  .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 input {
    width: 100%;
    padding: 12px;
    padding-right: 50px; /* Platz für "cm" Einheit */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
  }
  
  .dimension-control .unit {
    position: absolute;
    right: 12px;
    top: calc(32px + 8px + 12px + 16px / 2); /* Label-Höhe (ca. 32px) + margin-bottom (8px) + Input padding-top (12px) + halbe Font-Size (8px) */
    transform: translateY(-50%);
    font-size: 14px;
    color: #666;
    pointer-events: none;
    line-height: 1;
    z-index: 2;
  }
  
  /* Mobile responsive platten auswahl */
  .platten-auswahl-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .platten-auswahl-select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .individualisieren-button,
  .zurueck-platten-button {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .breite-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    position: relative;
  }

  .breite-input-container input {
    width: 100%;
    padding: 12px;
    padding-right: 50px; /* Platz für "cm" Einheit */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
  }

  .breite-input-container .unit {
    position: absolute;
    right: 12px;
    top: calc(12px + 16px / 2); /* Input padding-top + halbe Font-Size für Zentrierung */
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
    line-height: 1;
    z-index: 2;
  }

  /* Mobile responsive laenge auswahl */
  .laenge-auswahl-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .laenge-auswahl-select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .laenge-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    position: relative;
  }

  .laenge-input-container input {
    width: 100%;
    padding: 12px;
    padding-right: 50px; /* Platz für "cm" Einheit */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
  }

  .laenge-input-container .unit {
    position: absolute;
    right: 12px;
    top: calc(12px + 16px / 2); /* Input padding-top + halbe Font-Size für Zentrierung */
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
    line-height: 1;
    z-index: 2;
  }
  
  /* 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-section-info {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    margin-bottom: 8px;
  }

  .options-binary-group {
    gap: 10px;
  }

  .options-binary-btn {
    min-width: 0;
    flex: 1 1 calc(50% - 10px);
    padding: 14px 12px;
    font-size: 15px;
  }

  .accessory-toggle-main {
    gap: 8px;
  }
  
  .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 */
  .sidebar-footer {
    padding: 15px;
    margin-top: 5px !important;
    margin-bottom: 50px !important;
  }
  
  .footer-button {
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
  }
  
  .footer-button:last-child {
    margin-bottom: 0;
  }
  
  /* Mobile responsive price widget */
  #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: 120px;
    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-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-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;
  }

  /* Mobile: Desktop Container verstecken */
  #price-widget .price-widget-desktop {
    display: none !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 */
  }
  
  /* Erste Zeile: Preis und MwSt */
  .price-widget-row1 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }
  
  /* Zweite Zeile: Lieferzeit und Lieferoptionen */
  .price-widget-row2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  
  /* Dritte Zeile: Buttons */
  .price-widget-row3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  .price-amount {
    font-size: 14px;
    font-weight: bold;
    color: #003A5D;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
    min-width: 70px;
  }
  
  .price-subtext {
    font-size: 9px;
    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: 70px;
  }
  
  .delivery-options {
    margin: 0;
    flex-shrink: 0;
    min-width: 110px;
  }
  
  .delivery-option {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 8px;
    color: #333;
  }
  
  .delivery-option input[type="radio"] {
    margin-right: 2px;
    transform: scale(0.4);
  }
  
  .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: #003A5D;
    color: white;
  }
  
  .price-widget-button.primary:hover {
    background: #002a4a;
  }
  
  .price-widget-button.secondary {
    background: #dc2626;
    color: white;
  }
  
  .price-widget-button.secondary:hover {
    background: #b91c1c;
  }

  #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 */
  }

  /* Hide mobile-only link by default (desktop) */
  .price-info-link {
    display: none;
  }

  .price-info-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #374151;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    font-size: 12px;
    padding: 0;
    cursor: pointer;
  }

  .price-info-link::after {
    content: ">";
    font-size: 12px;
    line-height: 1;
  }

  /* 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 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    text-align: center;
  }

  .price-info-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
  }

  .price-info-close:hover {
    background-color: #f3f4f6;
  }

  .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 {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
  }

  .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-row1 .price-original {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: line-through;
  }

  .price-info-row1 .price-discount {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    padding: 2px 6px;
    border-radius: 4px;
  }

  .price-info-row1b .price-amount {
    font-size: 20px;
    font-weight: 800;
    color: #16a34a;
  }
}

/* Kleinere mobile Anpassungen */
@media (max-width: 480px) {
  #canvas-container {
        height: 100vh;
        width: 100vw;
        min-height: 300px;
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
      }
     
      #canvas-container canvas {
             max-width: 100% !important;
             max-height: 100% !important;
             width: auto !important;
             height: auto !important;
             object-fit: contain;
             /* Für bessere mobile Darstellung */
             image-rendering: -webkit-optimize-contrast;
             image-rendering: crisp-edges;
             /* Zentrieren des Canvas */
             margin: auto;
             /* Für bessere mobile Darstellung */
             transform: scale(1);
             /* Für bessere mobile Darstellung */
             backface-visibility: hidden;
             /* Für bessere mobile Darstellung */
             will-change: transform;
           }
    
      /* Loading-Screen z-index anpassen, damit es nicht den Canvas verdeckt */
  .loading-screen {
    z-index: 9999;
  }
  
  /* Debug-UI z-index anpassen */
  #debug-transform-ui {
    z-index: 1000;
  }
  
  /* Price-Widget z-index anpassen */
  .price-widget {
    z-index: 100;
  }
  
  /* Mobile-Config-Button z-index anpassen */
  .mobile-config-button {
    z-index: 999;
  }
  
  /* Sidebar z-index anpassen */
  .sidebar {
    z-index: 1000;
  }
  
  /* Sidebar-Overlay z-index anpassen */
  .sidebar-overlay {
    z-index: 999;
  }
  
  /* Sidebar-Close z-index anpassen */
  .sidebar-close {
    z-index: 1001;
  }
  
  /* Anfrage-Formular z-index anpassen */
  .anfrage-form-container {
    z-index: 10000;
  }
  
  /* Canvas-Container z-index anpassen */
  #canvas-container {
    z-index: 1;
  }
  
  body {
    font-family: "Inter", "Roboto", "Open Sans", "Helvetica Neue", Arial, sans-serif;
  }
  
  .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;
  }
  
  .sidebar-scroll {
    padding: 10px;
  }
  
  .section-title {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .dimension-control {
    margin-bottom: 15px;
  }
  
  .dimension-control label {
    font-size: 14px;
  }
  
  .dimension-control input {
    padding: 10px;
    font-size: 14px;
  }
  
  .stegplatte-item,
  .option-card {
    padding: 12px;
  }
  
  .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;
  }
  
  .footer-button {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  #price-widget.price-widget {
    padding: 6px calc(12px + env(safe-area-inset-right)) 6px calc(12px + env(safe-area-inset-left));
    min-height: 50px;
    gap: 3px;
  }
  
  .price-widget-row1,
  .price-widget-row2,
  .price-widget-row3 {
    gap: 6px;
  }
  
  .price-amount {
    font-size: 12px;
    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: 7px;
  }
  
  .delivery-option input[type="radio"] {
    margin-right: 2px;
    transform: scale(0.35);
  }
  
  .price-widget-buttons {
    min-width: 120px;
    gap: 4px;
  }
  
  .price-widget-button {
    padding: 4px 6px;
    font-size: 9px;
    min-height: 20px;
  }

  /* Mobile Price Widget für kleinere Bildschirme */
  #price-widget .price-widget-left-mobile .price-widget-row1b .price-amount {
    font-size: 14px;
  }

  .price-info-dialog {
    padding: 12px;
  }

  .price-info-title {
    font-size: 16px;
  }

  .price-info-row1b .price-amount {
    font-size: 20px;
  }

  /* Zusätzliche Anpassungen für sehr kleine Bildschirme */
  #price-widget .price-widget-left-mobile {
    gap: 2px;
  }

  #price-widget .price-widget-row1 {
    gap: 4px;
  }

  .price-original {
    font-size: 10px;
  }

  .price-discount {
    font-size: 10px;
  }

  .price-info-link {
    font-size: 10px;
  }

  /* Zusätzliche Zentrierung für sehr kleine Bildschirme */
  #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 */
  }
}

@media (min-width: 769px) {
  .mobile-config-button,
  .sidebar-overlay,
  .sidebar-close {
    display: none !important;
  }

  /* Desktop: Preisinformation-Link verstecken */
  .price-info-link {
    display: none !important;
  }

  /* Desktop: Modal verstecken */
  .price-info-modal {
    display: none !important;
  }

  /* Desktop: Price Widget normale Positionierung */
  #price-widget.price-widget {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    left: auto !important;
    top: auto !important;
    width: 200px !important;
    padding: 16px 18px !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    z-index: 1000 !important;
    display: block !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-height: auto !important;
  }

  /* Desktop: Alle Rows wieder anzeigen */
  #price-widget .price-widget-row1c,
  #price-widget .price-widget-row2 {
    display: flex !important;
  }

  /* Desktop: Left-mobile Container verstecken */
  #price-widget .price-widget-left-mobile {
    display: none !important;
  }

  /* Desktop: Desktop Container anzeigen */
  #price-widget .price-widget-desktop {
    display: block !important;
  }
}
