* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0e1512;
  color: #e8f5ee;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

#main {
  display: block;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #131c17;
  border-bottom: 1px solid #22332a;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
}

.brand-icon {
  font-size: 22px;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: transparent;
  border: 1px solid #2ecc71;
  color: #2ecc71;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.tab-btn:hover {
  background: rgba(46, 204, 113, 0.1);
}

.tab-btn.active {
  background: #2ecc71;
  color: #0e1512;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.card {
  background: #131c17;
  border: 1px solid #22332a;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.field.small {
  max-width: 100px;
}

.row {
  display: flex;
  gap: 12px;
}

label {
  font-size: 13px;
  color: #9db8a9;
}

input,
select {
  background: #0e1512;
  border: 1px solid #2b3d32;
  border-radius: 8px;
  color: #e8f5ee;
  padding: 10px 12px;
  font-size: 14px;
}

input:focus,
select:focus {
  outline: none;
  border-color: #2ecc71;
}

button[type="submit"] {
  background: #2ecc71;
  color: #0e1512;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

button[type="submit"]:hover {
  background: #27ae60;
}

button[type="submit"]:disabled {
  background: #2b3d32;
  color: #6b7d72;
  cursor: not-allowed;
}

.hint {
  font-size: 13px;
  color: #9db8a9;
  margin: 0;
}

.warning {
  background: rgba(230, 126, 34, 0.15);
  border: 1px solid #e67e22;
  color: #f0a860;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}

.liste-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kategorie-card {
  background: #131c17;
  border: 1px solid #22332a;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.kategorie-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #2ecc71;
}

.fahrzeug-item {
  font-size: 13px;
  color: #cfe6d8;
  padding: 4px 0;
  border-bottom: 1px solid #1c2921;
}

.fahrzeug-item:last-child {
  border-bottom: none;
}

.fahrzeug-name {
  font-weight: 500;
  color: #e8f5ee;
}

.fahrzeug-extra {
  color: #9db8a9;
}

.fahrzeug-item.entfernbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.delete-btn {
  background: transparent;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.delete-btn:hover {
  background: rgba(231, 76, 60, 0.15);
}

.delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.logo-card {
  background: #131c17;
  border: 1px solid #22332a;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  color: #cfe6d8;
  transition: border-color 0.15s;
}

.logo-card:hover {
  border-color: #2ecc71;
}

.logo-ergebnis {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo-ergebnis img {
  max-width: 220px;
  max-height: 220px;
  border-radius: 10px;
  background: #131c17;
  border: 1px solid #22332a;
  padding: 1rem;
}