
#teile-hinzufuegen input,
#teile-hinzufuegen textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#teile-hinzufuegen button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
}

#teile-hinzufuegen button:hover {
  background-color: #0056b3;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
}

#teile-hinzufuegen {
  max-width: 600px;
  margin: auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #333;
  text-align: center;
  margin-bottom: 2rem;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

input[type="text"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 1rem;
}

button:hover {
  background-color: #0056b3;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.phone-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-weight: bold;
  color: #333;
  padding: 12px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
}

.phone-dropdown {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 100;
  min-width: 200px;
}

.phone-wrapper:hover .phone-dropdown {
  display: block;
}

.phone-dropdown a {
  display: block;
  padding: 6px 12px;
  text-decoration: none;
  color: #007bff;
  border-radius: 4px;
}

.phone-dropdown a:hover {
  background-color: #f2f2f2;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 12px;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  margin-bottom: 16px;
  display: none;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 12px;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  margin-bottom: 16px;
  display: none;
}
/* Link-Bar */
.link-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 24px 16px 0;
  gap: 16px; /* optional für Abstand */
  flex-wrap: nowrap; /* Verhindert Umbruch */
  max-width: 100%; /* Verhindert Überlauf */
}
main  a {
  display: block;
  text-align: left;
  margin: 16px 24px 0 0;
  font-weight: bold;
  color: #0077cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
    /* iOS-spezifische Verbesserungen */
    .loading-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 9999;
      justify-content: center;
      align-items: center;
      color: white;
      font-size: 18px;
    }
    
    .loading-overlay.show {
      display: flex;
    }
    
    .error-message, .success-message {
      padding: 10px;
      margin: 10px 0;
      border-radius: 5px;
      display: none;
    }
    
    .error-message {
      background-color: #ffebee;
      border: 1px solid #f44336;
      color: #d32f2f;
    }
    
    .success-message {
      background-color: #e8f5e8;
      border: 1px solid #4caf50;
      color: #2e7d32;
    }
    
    #addPartBtn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
    
    /* Bessere Touch-Targets für iOS */
    button, input, select, textarea {
      min-height: 44px;
      -webkit-appearance: none;
      border-radius: 8px;
    }
    
    input[type="file"] {
      padding: 12px;
      border: 2px dashed #ccc;
      background: #f9f9f9;
    }
    .telefonlabel {
      margin-top: 8px;
    }
    