/* Box-sizing global */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Grundlayout */
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff; /* Weißer Seitenhintergrund */
    color: #333;
}

/* Haupt-Container */
.container {
    max-width: 1000px;
    margin: 1rem auto;
    display: flex;
    flex-wrap: wrap; /* Spalten umbrechen bei kleinen Displays */
    background-color: #f5f5f5; /* Leichtes Grau */
    border-radius: 12px;         /* Abgerundete Ecken */
    padding: 1rem;
}

/* Inhaltspadding besser in rem statt cm */
.inhalt {
    padding: 0.5rem;
}

/* Bilder oberhalb des Containers */
.header-images {
    display: flex;
    justify-content: space-between; /* Links und rechts */
    align-items: center;             /* Vertikal zentriert */
    width: 100%;
    padding: 0 1rem;
}

.header-images img {
    height: 100px;       /* Gleiche Höhe für beide Bilder */
    object-fit: contain; /* Proportionale Skalierung */
    max-width: 48%;      /* Maximal 48% Breite */
    display: block;
}

/* Linke Hauptspalte */
.main-content {
    flex: 3;
    padding: 2rem;
    min-width: 250px;
}

/* Rechte Seitenleiste */
.sidebar {
    flex: 1;
    background-color: #f4f8fb;
    padding: 1rem;
    border-left: 1px solid #ccc;
    min-width: 200px;
}

/* Überschriften */
h1, h2, h3 {
    color: #1d5b90;
    font-weight: normal;
}

h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
    border-bottom: 2px solid #1d5b90;
    display: inline-block;
    padding-bottom: 0.2rem;
}

/* Logo-Bereich */
.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 1rem auto 0;
    padding: 0 1rem;
}

.logo-left {
    display: flex;
    align-items: center;
}

.logo-left .brand {
    font-weight: bold;
    font-size: 3rem;
    color: #b32400;
    margin-right: 8px;
    line-height: 1;
}

.logo-left img,
.logo-right img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    max-width: 200px;
}

.logo-right {
    max-width: 150px;
    padding-top: 10px; /* Abstand nach oben */
}


/* Responsive Logo */
@media (max-width: 768px) {
    .header-images {
        flex-direction: column;
        align-items: center;
    }
    .logo-left, .logo-right {
        margin-bottom: 1rem;
    }
}

/* Grund-Navbar */
.navbar {
    display: flex;
    width: 100%;
    height: 50px;
    font-weight: 600;
    font-size: 1rem;
    user-select: none;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

/* Linke und rechte Navigationsbereiche je 50% */
.nav-left, .nav-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
    position: relative;
    z-index: 2;
    background-color: #DAE2EA; /* passive Hintergrundfarbe */
    transition: background-color 0.3s ease;
}

/* Aktive Seite: gesamte Hälfte farbig */
.nav-left.active,
.nav-right.active {
    background-color: #7999B9; /* aktive Hintergrundfarbe */
}

/* Die Links füllen den Bereich, sind transparent, damit der Eltern-Hintergrund sichtbar bleibt */
.nav-left li a,
.nav-right li a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    padding: 0;
    background-color: transparent;
    transition: color 0.3s ease;
}

/* Textfarbe weiß bei aktivem Link */
.nav-left.active li a,
.nav-right.active li a {
    color: white;
    font-weight: 700;
}

/* Hover Effekt (optional) */
.nav-left li a:hover,
.nav-right li a:hover {
    color: #111;
    background-color: rgba(0,0,0,0.1);
}

/* Mittige Trennlinie */
.navbar::before {
    content: "";
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateX(-50%);
    z-index: 1;
}

/* Responsive für kleine Bildschirme */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        height: auto;
    }
    .nav-left, .nav-right {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0;
        background-color: transparent !important;
    }
    .navbar::before {
        display: none;
    }
}

.button-primary {
    background-color: #b91c1c; /* Rot (red-700) */
    color: white;
    border: none;
    padding: 0.7rem 1.4rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.button-primary:hover {
    background-color: #991b1b; /* dunkleres Rot beim Hover */
}

.button-primary:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Logos oberhalb, zentriert, mit Abstand */
.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 1rem auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.logo-left {
    display: flex;
    align-items: center;
}

.logo-left span {
    margin-right: 8px;
    font-weight: bold;
    font-size: 3rem;
    color: #b32400;
}

.logo-left img,
.logo-right img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    max-width: 200px;
}

.logo-right {
    max-width: 150px;
    margin-top: 10px; /* Abstand nach oben für BÄK-Logo */
}

/* Button zentrieren */
.button-wrapper {
    text-align: center;
    margin: 2rem 0;
}

/* Button-Style */
.button-primary {
    background-color: #b91c1c;
    color: white;
    border: none;
    padding: 0.7rem 1.4rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Für Links als Button */
    transition: background-color 0.3s ease;
}

.button-primary:hover {
    background-color: #991b1b;
}

.form-item {
  display: flex;
  align-items: flex-start;
  gap: 12px; /* Abstand zwischen Checkbox und Text */
  padding-top: 16px;
}

.form-control input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 4px; /* vertikale Ausrichtung */
  cursor: pointer;
}

.form-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.2;
}

.form-label {
  font-weight: 600;
  cursor: pointer;
}

.form-description {
  font-size: 0.9rem;
  color: #666666;
  margin: 0;
}

.form-message {
  font-size: 0.85rem;
  margin: 0;
}

/* Optional: Button Styling */
button {
  margin-top: 1.5rem;
  background-color: #b91c1c;
  color: white;
  border: none;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}
button:disabled {
  background-color: #999999;
  cursor: not-allowed;
}
/* Hintergrund für das Modal */
.modal {
  display: none; /* standardmäßig ausgeblendet */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4); /* halbtransparentes Overlay */
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
}


.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}

.close:hover {
  color: #000;
}
.footer-divider {
  width: 100%;
  height: 3px;
  background-color: #7999B9; /* Blau - passe die Farbe bei Bedarf an */
  margin-top: 10px;
}
.footer-divider {
  height: 4px;
  background: #999;
  width: 100%;
}

.footer-top {
  background: #DAE2EA;
  color: #0a0a0a;
  text-align: center;
  padding: 20px 0;
}

.footer-top a {
  color: #070707;
  text-decoration: underline;
}

.footer-bottom {
  background: #999;
  color: #080808;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

.footer-bottom a:hover {
  text-decoration: underline;
}





