body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(120deg, #f8fafc 0%, #e0e7ef 100%);
  color: #222;
  margin: 0;
  padding: 0;
}

main, section {
  width: auto;
  max-width: 1400px;
  margin: 30px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 64px 16px 32px 16px;
  overflow-x: auto;
  position: relative;
  box-sizing: border-box;
}

h1, h2, h3 {
  font-weight: 700;
  color: #2a4365;
  margin-bottom: 18px;
}

.rbtn,
.abtn {
  height: 42px;
  min-width: 140px;
  border-radius: 8px;
  font-size: 1.05rem;
  background: #2a4365; /* gleiche Farbe wie Überschrift */
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(79,140,255,0.08);
  cursor: pointer;
  margin: 0 8px 0 0;
  transition: background 0.2s, box-shadow 0.2s;
}
.rbtn:hover,
.abtn:hover {
  background: #1a2740;
  box-shadow: 0 4px 16px rgba(42,67,101,0.12);
}

.button-row {
  display: flex;
  gap: 18px;
  margin-top: 32px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-group input {
  padding: 10px 12px;
  font-size: 1.05rem;
  border: 1.5px solid #bcd0ee;
  border-radius: 6px;
  margin-top: 6px;
  background: #f7fafc;
  color: #222;
  transition: border 0.2s;
}
.form-group input:focus {
  border-color: #4f8cff;
  outline: none;
}

.form-group label {
  margin-bottom: 4px;
  font-weight: 600;
  color: #2a4365;
}

#alias-table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 28px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(44,62,80,0.06);
}

#alias-table th,
#alias-table td {
  border-bottom: 1px solid #e3e8ee;
  padding: 12px 14px;
  text-align: left;
}

#alias-table th {
  background: #f1f5fa;
  color: #2a4365;
  font-weight: 700;
}

#alias-table tr:last-child td {
  border-bottom: none;
}

#alias-table tr:nth-child(even) {
  background-color: #f8fafc;
}

#status-message {
  margin: 18px 0;
  font-size: 1.08rem;
  font-weight: 500;
  min-height: 24px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  appearance: textfield;
}

@media (max-width: 1200px) {
  main, section {
    padding: 16px 4px;
  }
  #alias-table th, #alias-table td {
    padding: 8px 6px;
  }
  .button-row {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .form-group {
    width: 100%;
  }
  .corner-logo {
    width: 60px;
  }
}

@media (max-width: 900px) {
  .responsive-table-wrapper {
    overflow-x: auto;
    width: 100%;
  }
  #alias-table {
    min-width: 900px;
    font-size: 0.95em;
  }
}

@media (max-width: 600px) {
  #alias-table th, #alias-table td {
    padding: 4px 2px;
    font-size: 0.9em;
  }
  h1 {
    font-size: 1.2em;
  }
  .button-row {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
}

/* Gesamtzeit fett */
#alias-table td.summe, #alias-table th.summe {
  font-weight: bold;
  color: #2a4365;
}

.small-btn {
  padding: 2px 10px !important;
  font-size: 0.95em !important;
  min-width: unset !important;
  height: 30px !important;
}

.corner-logo {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
  z-index: 10;
}