.modern-button-small {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: var(--dark-blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.modern-button-small:hover {
  background-color: var(--dark-blue-hover, #1a2f4f);
  transform: translateY(-1px);
}

.modern-button-small:active {
  transform: translateY(0);
}


/* Wrapper enthält Formular + Sidebar nebeneinander */
#form-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    padding-bottom: 5rem;
}

/* Formular nimmt den verfügbaren Platz ein */
#baseform {
    flex: 1;
    transition: margin-right 0.3s ease;
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
}

/* Sidebar */
#sidebar {
    position: fixed;        /* Sidebar bleibt stehen */
    top: 0;
    right: 0;
    height: 100vh;          /* volle Höhe */
    width: 450px;
	z-index:10000;
    background: #f5f5f5;
    border-left: 1px solid #ccc;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);

    /* Startzustand: komplett unsichtbar */
    max-width: 0;
    opacity: 0;
    overflow: hidden;

    transition: max-width 0.3s ease, opacity 0.2s ease;
}

/* Offen */
#form-wrapper.sidebar-open #sidebar {
    max-width: 450px;
    opacity: 1;
}

#form-wrapper.sidebar-open #baseform {
    margin-right: 20px; /* optionaler Abstand */
}

.highlight {
    animation: highlightFlash 1.5s ease-out;
}

@keyframes highlightFlash {
    0%   { background-color: yellow; }
    100% { background-color: transparent; }
}