/* Kleine Bildschirme */
@media (max-width: 768px) {
  .code-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .code-group {
    width: 100%;
  }
  
  .code-center {
    margin: 0;
    width: 100%;
  }

 #searchButton {
    width: 100%;
    justify-content: center;
  }
  
  
.server-os-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.server-os-option {
  position: relative;
  display: flex;
  flex-direction: column;
}

.server-os-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.server-os-option label {
  display: block;
  padding: 1rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.server-os-option input[type="checkbox"]:checked + label {
  border-color: var(--primary);
  background-color: rgba(74, 99, 243, 0.05);
  box-shadow: 0 0 0 2px var(--primary);
}

.server-os-option input[type="checkbox"]:checked ~ .arch-inputs {
  display: flex;
}

/* Gleiches Verhalten für Radio-Kacheln */
.server-os-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.server-os-option input[type="radio"]:checked + label {
  border-color: var(--primary);
  background-color: rgba(74, 99, 243, 0.05);
  box-shadow: 0 0 0 2px var(--primary);
}


.server-os-option:hover label {
  border-color: var(--accent);
}

.arch-inputs {
  display: none;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.arch-inputs input {
  flex: 1 1 48%;
  min-width: 0;
  padding: 0.6rem;
  border-radius: var(--border-radius);
  border: 1px solid #ccc;
  font-size: 0.95rem;
}



.server-os-other-input {
  margin-top: 1rem;
}

.server-os-other-input label,
.server-os-other-input input {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
}

.server-os-other-input textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid #ccc;
  box-sizing: border-box;
  resize: vertical; /* Optional: erlaubt Ziehen für mehr Platz */
  font-family: inherit;
}

.hidden {
  display: none !important;
}

.kachel-checkbox {
  position: relative;
  margin-bottom: 1rem;
}

.kachel-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.kachel-checkbox label {
  display: block;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  font-weight: 500;
  background-color: #fff;
}

.kachel-checkbox input[type="checkbox"]:checked + label {
  border-color: var(--primary);
  background-color: rgba(74, 99, 243, 0.05);
  box-shadow: 0 0 0 2px var(--primary);
}

.kachel-checkbox label:hover {
  border-color: var(--primary);
  background-color: rgba(74, 99, 243, 0.03);
}

.kachel-checkbox {
  flex: 1 1 calc(33.333% - 1rem);
  box-sizing: border-box;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.kachel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.kachel-checkbox {
  flex: 1 1 calc(33.333% - 1rem);
  box-sizing: border-box;
}

.input-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.input-row .form-group-inline {
  flex: 1 1 calc(33.333% - 1rem);
  display: flex;
  flex-direction: column;
}

.form-group-inline input[type="number"] {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group-inline {
  flex: 1 1 calc(50% - 1rem);
  display: flex;
  flex-direction: column;
}

.form-group-inline input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

.print-button-container {
  display: flex;
  justify-content: flex-end;
  padding: 2rem 1rem 4rem;
}

