@media (max-width: 600px) {
	
  .hidden {
  display: none !important;
  }
	
  .controle-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
  }

  .current-qr_mobile-only-container {
    order: -1; /* ganz nach oben */
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px;
  }

  .details-view {
    order: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* vertikal mittig */
    gap: 24px; /* Abstand zwischen Boxen */
    min-height: calc(100vh - 200px); /* Höhe mit Platz für Footer und QR */
    /*padding: 16px 10px;
    box-sizing: border-box;*/
  }

  .product-info-container,
  .input-section-container {
    /*width: 90%;*
    max-width: 480px;
    /*background: #ffffff;*/
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 16px;
	flex: 0;
  }

	.input-section-container {
		margin-top:20px;
	}
	
  .input-section-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
	
  .cancel-float-button {
    position: fixed;
    bottom: 85px;
    right: 16px;
    background-color: white;
    border: 2px solid #d9534f;
    color: #d9534f;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
}







/* iPhone View */
@media (max-width: 480px) {
  /* Hauptcontainer */
  .main-content {
    padding: 8px;
    gap: 8px;
    max-height: 100%;
  }

   /*Scannerbereich*/
  .camera-container {
    height: 45vh;
    background-color: #000;
    border-radius: 10px;
  }
	
  .scanner-border {
    width: 80%;
    height: 70%;
    border: 3px solid #75bd48;
    border-radius: 10px;
  }

  /* QR-Eingabe */
  .current-qr {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    /*bottom: 10px; */
  }

  .current-qr input,
  .current-qr button {
    width: 100%;
    font-size: 1.1rem;
    height: 44px;
  }

  /* Reset-Button evtl. kleiner */
  .refresh-icon {
    font-size: 0.9rem;
    padding: 4px 6px;
    right: unset;
	bottom: unset;
	top: 0px;
	left: 0px;
  }
 
	/*Container for secondary view on iPhone */
	.controle-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
	
	
  /* Produktinfos etwas kompakter */
  .product-info-row {
    padding: 6px 0;
    font-size: 0.95rem;
  }

	
	.details-view {
	gap: 20px;
	}
	
	
	
  .label, .value {
    width: 50%;
  }

	/* Anzeige für "Neuer Stand des Inventars" wird ausgeblendet 
	.product-info-row[data-role="new-quantity"] {
		display: none;
	  }
	*/

  /* Eingabe & Bestätigen */
  .input-section-card {
    gap: 10px;
  }
	
	/*
  .current-qr_mobile-only {
    display: flex;
    position: fixed;
    bottom: 60px; /* über dem Footer 
    left: 0;
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 999;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  }
	*/
	
	.current-qr_mobile-only-container {
	  display: flex;
	}
	
	.current-qr {
	  display: none;
	}

  #quantity-taken {
    height: 44px;
    font-size: 1.1rem;
  }

  #update-button {
    width: 100%;
    height: 48px;
    font-size: 1.2rem;
  }

  /* Navigation: größere Icons, Text kleiner oder ausblenden */
  .nav-item {
    font-size: 0.75rem;
    width: auto;
    padding: 6px;
  }

  .nav-item span {
    display: none; /* optional – nur Icons anzeigen */
  }

  .nav-item .icon {
    font-size: 1.4rem;
  }

  /* Footer mit sicherem Abstand */
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
