a.button-link {
  display: block;
  margin: 4px 0;
  padding: 6px 10px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #d5dbe3;
  text-decoration: none;
  color: #004a85;
  font-weight: 600;
  transition: all 0.2s ease;
}

a.button-link:hover {
  background: #004a85;
  color: #fff;
  border-color: #004a85;
  transform: translateX(3px);
}
.change-hint { 
  color: #004a85; 
}

.custom-tooltip {
    position: fixed;
    padding: 8px 12px;
    background: #004a85;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 999999;
    max-width: 50vw;  
    white-space: normal; 
    word-wrap: break-word;
}
.c-error, .c-error-login {
  margin-top:-2rem;
}
.custom-tooltip.show {
    opacity: 1 !important;
    transform: translateY(0);
}
.modern-checkbox-group {
    display: flex;
    gap: 1rem;
}
.row.checkbox-group {
    display: flex;
    align-items: center;
}
.modern-checkbox {
    position: relative;
    display: inline-block;
}

.modern-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.modern-checkbox label {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #418CB7;
    color: #418CB7;
    border-radius: 8px;
    cursor: pointer;

    font-size: 1.2rem;
    font-weight: bold;

    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-right:0.5rem;
}

/* Hover */
.modern-checkbox label:hover {
    background-color: var(#418CB7);
    transform: translateY(-2px);
}

/* Aktivierter Zustand */
.modern-checkbox input[type="checkbox"]:checked + label {
    background-color: var(--dark-blue);
    color: white;
    transform: translateY(-2px);
}

/* Haken anzeigen */
.modern-checkbox input[type="checkbox"]:checked + label::after {
    content: "✓";
}

.modern-radio-group {
  display: flex;
  gap: 1rem;
}

.modern-radio {
  position: relative;
  display: inline-block;
}

.modern-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modern-radio span {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--light-blue);
  color: var(--dark-blue);
  font-weight: 500;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  user-select: none;
}
/* Hover-Effekt */
.modern-radio span:hover {
  background-color: var(--light-blue-hover, #418CB7);
  color:#fff;
  transform: translateY(-2px);
}

/* Aktivierter Zustand */
.modern-radio input[type="radio"]:checked + span {
  background-color: #418CB7;
  color: white;
  transform: translateY(-2px);
}

.modern-radio-disabled {
  position: relative;
  display: inline-block;
  opacity: 0.6;
  cursor: not-allowed;
}

.modern-radio-disabled input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modern-radio-disabled span {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--light-blue);
  color: var(--dark-blue);
  font-weight: 500;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  user-select: none;
}

.modern-radio-disabled input[type="radio"]:checked + span {
  background-color: #418CB7;
  color: white;
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0rem;
  background-color: var(--dark-blue);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.close-btn:hover {
  transform: scale(1.1);
}

/* Speichern-Overlay */
#saving-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

#saving-overlay.visible {
  display: flex;
}

.saving-overlay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  font-size: 1.1rem;
  font-weight: 600;
  color: #004a85;
  min-width: 160px;
}

.saving-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #d5dbe3;
  border-top-color: #004a85;
  border-radius: 50%;
  animation: saving-spin 0.8s linear infinite;
}

@keyframes saving-spin {
  to { transform: rotate(360deg); }
}
