.selected-parameter {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: #f0f0f0;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  margin: 0 !important; /* Vertikale Margins entfernen */
  justify-content: space-between;
}

.selected-parameter-value {
  font-weight: 500;
}

.reset-parameter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #555555; 
  cursor: pointer;
  font-size: 16px;
  margin-left: 8px;
  line-height: 1;
}

.reset-parameter:hover {
  color: #333333; 
}

.reset-all-parameters {
  color: #313479; 
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.reset-all-parameters:hover {
  color: #1b1e4a; 
  text-decoration: underline;
}

.reset-all-parameters svg {
  margin-right: 4px;
  width: 14px;
  height: 14px;
}

.btn-action-secondary {
  background-color: #ffffff;
  color: #313479;
  border: 1px solid #313479;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-action-secondary:hover {
  background-color: #e0e0e0; 
  text-decoration: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; 
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
  min-height: 100vh;
  overflow-y: auto;
}

h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
  color: #333333;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

p {
  margin-bottom: 16px;
}

.card {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  overflow: hidden;
}

.card-header {
  padding: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

.card-content {
  padding: 16px;
}

.card-footer {
  padding: 16px;
  border-top: 1px solid #e5e5e5;
  text-align: center;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input, select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 14px;
}

input:focus, select:focus {
  outline: none;
  border-color: #313479;
  box-shadow: 0 0 0 2px rgba(49, 52, 121, 0.1);
}

input[type=number] {
  text-align: center;
  width: 60px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-primary {
  background-color: #313479;
  border: 1px solid #313479;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1b1e4a;
  border-color: #1b1e4a;
}

.btn-primary:disabled {
  background-color: #a0a0a0;
  border-color: #a0a0a0;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #ffffff;
  border: 1px solid #313479;
  color: #313479;
}

.btn-secondary:hover {
  background-color: #f5f5f5;
}

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

.btn-small {
  padding: 4px 8px;
  font-size: 12px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 4px;
}

a {
  color: #313479;
  text-decoration: none;
}

a:hover {
  color: #1b1e4a;
  text-decoration: underline;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

.col {
  flex: 1 0 0%;
  padding-right: 12px;
  padding-left: 12px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding-right: 12px;
  padding-left: 12px;
}

.col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding-right: 12px;
  padding-left: 12px;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 12px;
  padding-left: 12px;
}

@media (max-width: 768px) {
  .col-4,
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .row {
    flex-direction: column;
  }
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-2 {
  margin-top: 8px;
}

.mt-4 {
  margin-top: 16px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-4 {
  margin-bottom: 16px;
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-end {
  justify-content: flex-end;
}

.align-items-center {
  align-items: center;
}

.flex-column {
  flex-direction: column;
}

.gap-2 {
  gap: 8px;
}

.gap-4 {
  gap: 16px;
}

.quantity-input {
  display: flex;
  align-items: center;
}

.quantity-btn {
  background-color: #f5f5f5;
  border: 1px solid #cccccc;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

.quantity-btn:hover {
  background-color: #e5e5e5;
}

.specification-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e5;
}

.specification-row:last-child {
  border-bottom: none;
}

.specification-label {
  color: #666666;
}

.specification-row span:last-child {
  text-align: right;
}

.configurator-layout {
  display: flex;
}

.configurator-layout > .col-6 {
  display: flex;
  flex-direction: column;
}

.configurator-layout > .col-6:first-child {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.configurator-layout > .col-6:first-child > .card {
  margin-bottom: 16px; 
}

.configurator-layout > .col-6:first-child > .card:first-child {
  flex-grow: 0;
}

.configurator-layout > .col-6:first-child > .card:nth-child(2) {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.configurator-layout > .col-6:first-child > .card:nth-child(2) > .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.configurator-layout > .col-6:first-child > .card:last-child {
  flex-grow: 0;
  margin-bottom: 0; 
}

.configurator-layout > .col-6:first-child > .card:last-child > .card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.configurator-layout > .col-6:last-child {
}

.configurator-layout > .col-6:last-child > .card {
  margin-bottom: 0;
}

.row.configurator-layout > .col-6 {
  min-height: 820px; 
  height: 100%;
}

.product-visualization {
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border-radius: 4px;
}

.configurator-layout .product-visualization {
  min-height: 100%;
  height: 100%;
}

.configurator-layout .col-12 {
}

.configurator-layout #quote-items-container {
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #313479;
  font-size: 14px;
}

.pdf-link svg {
  width: 16px;
  height: 16px;
}

.btn-delete {
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
}

.btn-delete:hover {
  color: #ff3b30;
}

.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.alert-success {
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
}

.alert-warning {
  background-color: #fff8e1;
  border: 1px solid #ffecb3;
  color: #ff8f00;
}

.alert-info {
  background-color: #e1f5fe;
  border: 1px solid #b3e5fc;
  color: #0277bd;
}

.d-flex.justify-content-end.align-items-center {
  display: flex;
  align-items: center !important; 
}

.btn-group {
  display: flex;
  align-items: center;
}

#language-selector {
  display: flex;
  align-items: center;
}

.language-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 2px;
  transition: all 0.2s;
  font-size: 12px;
  border: 1px solid #313479;
  background-color: #ffffff;
  color: #313479;
  line-height: 1;
  height: 28px; 
  vertical-align: middle;
  box-sizing: border-box;
}

.language-btn img {
  width: 16px;
  height: 11px; 
  margin-right: 4px;
  vertical-align: middle;
  border-radius: 2px;
  display: inline-block;
}

.language-btn span {
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.language-btn.active {
  background-color: #313479;
  color: white;
}

.language-btn:hover:not(.active) {
  background-color: #e0e0e0; 
}

.user-email {
  font-size: 0.9em;
  color: #333333;
  margin-left: 12px; 
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  white-space: nowrap;
  line-height: 28px; 
  vertical-align: middle;
}

#logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 12px; 
  background-color: #E53935 !important;
  color: white !important;
  font-size: 12px;
  border: 0px solid #C62828;
  transition: all 0.2s;
  cursor: pointer;
  line-height: 1;
  height: 28px; 
  font-weight: normal;
  vertical-align: middle;
  box-sizing: border-box;
  width: 100px; 
  
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  box-shadow: none !important;
  text-transform: none;
}

#logout-btn:hover {
  background-color: #C62828 !important; 
}

.quantity-btn.disabled,
input[type=number].disabled {
  opacity: 0.5;
  pointer-events: none; 
  cursor: not-allowed;
}

.btn-primary.max-quantity-reached {
  background-color: #e53935; 
  border-color: #c62828;
  cursor: not-allowed;
}

.btn-primary.max-quantity-reached:hover {
  background-color: #d32f2f; 
  border-color: #b71c1c;
}

.btn-primary.will-reach-max {
  background-color: #fb8c00; 
  border-color: #ef6c00;
}

.btn-primary.will-reach-max:hover {
  background-color: #f57c00; 
  border-color: #e65100;
}

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: middle;
}

/* Styles */
.btn-reset {
  background-color: #E53935;
  color: #ffffff;
  border: 1px solid #E53935;
  transition: all 0.2s;
  text-decoration: none;
  padding: 6px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  margin-left: 16px;
}

.btn-reset:hover {
  background-color: #d32f2f;
  border-color: #d32f2f;
  text-decoration: none;
  color: #ffffff;
}

.btn-reset:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-action-danger {
  background-color: #ffffff;
  color: #E53935;
  border: 1px solid #E53935;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-action-danger:hover {
  background-color: rgba(229, 57, 53, 0.1);
  text-decoration: none;
  color: #E53935;
}

.contact-form-section {
  background-color: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  margin-top: 24px;
}

.contact-form-section h3 {
  margin-bottom: 20px;
  color: #313479;
  font-size: 18px;
  font-weight: 600;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 14px;
}

.form-group label .required {
  color: #E53935;
  margin-left: 2px;
}

.form-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #313479;
}

.form-group.error input {
  border-color: #E53935;
}

.form-group .error-message {
  color: #E53935;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

.address-note {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.close-alert {
  background: none;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 5px;
  color: #198754;
}

.close-alert:hover {
  color: #0d6d3c;
}

/* Quote folder specific styles */
.quote-item-image {
  max-width: 200px;
  height: auto;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 8px;
  background-color: #fff;
}

.no-image-placeholder {
  width: 200px;
  height: 150px;
  background-color: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.specification-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.specification-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.specification-item .specification-label {
  font-size: 12px;
  color: #666;
}

.specification-item .specification-value {
  font-weight: 500;
  font-size: 14px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
}

.quantity-controls .quantity-btn {
  width: 32px;
  height: 32px;
}

.quantity-controls .quantity-input {
  width: 60px;
  text-align: center;
  margin: 0;
}

.btn-danger {
  background-color: #E53935;
  color: #ffffff;
  border: 1px solid #E53935;
}

.btn-danger:hover {
  background-color: #d32f2f;
  border-color: #d32f2f;
}

.mb-3 {
  margin-bottom: 16px;
}

.col-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  padding-right: 12px;
  padding-left: 12px;
}

@media (max-width: 768px) {
  .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .quote-item-image,
  .no-image-placeholder {
    max-width: 100%;
    width: 100%;
  }
}

/* Minimal-Lösung für Dropdown-Layout-Problem */
.dimension-row {
  align-items: stretch; /* Alle Kinder gleich hoch */
}

.dimension-row .form-group {
  display: flex;
  flex-direction: column;
}

.dimension-row .form-group > div {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 38px;
}