html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Roboto", sans-serif;
  color: #333333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #ffffff !important;
}

img {
  margin-bottom: 50px;
}

/* Logo und Programm-Header */
.program-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.program-logo {
  width: 64px;
  height: 64px;
  margin-right: 1rem;
  object-fit: contain;
  margin-bottom: 0 !important;
}

.program-title {
  margin-left: 20px;
  padding-top: 20px;
  color: cornflowerblue;
  font-size: 2rem;
  font-weight: 500;
}

/* Navbar Container */
.navbar {
  background-color: #efefef !important;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 5px 4px rgba(0, 0, 0, 0.2) !important;
  min-height: 56px !important;
  height: 56px !important;
  padding: 0 1rem !important; /* Fügt etwas Padding hinzu */
}

/* Navbar Brand (Logo) */
.navbar-brand {
  color: #999 !important;
  font-weight: 500;
  margin-right: 0 !important; /* Entfernt den rechten Margin */
}

.nav-link {
  color: #000 !important;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: #6495ed !important;
}

.navbar-nav .nav-item .nav-link {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.navbar-nav .nav-item .nav-link {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.navbar-nav .nav-item .nav-link.active {
  color: #ffffff !important;
  background-color: #6495ed !important;
  font-weight: 500;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}





.dropdown-menu {
  background-color: #efefef;
}

.dropdown-item {
  color: #000;
}

.dropdown-item:hover {
  background-color: #6495ed;
  color: #fff;
}

.dropdown-item.active {
  background-color: #6495ed;
}

.content {
  flex: 1 0 auto;
  padding: 0.4rem 0;
  width: 100%;
  background-color: #ffffff !important;
}

.content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.content img:hover {
  opacity: 0.9;
}

.content .container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.content .container img:hover {
  opacity: 0.9;
}



.card {
  margin-bottom: 1rem;
  background-size: cover;
  overflow: hidden;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  background-color: #f9fcff;
}

.card-body {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333333;
}

.card-text {
  margin-bottom: 1rem;
  line-height: 1.5;
  color: #666666;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.footer {
  flex-shrink: 0;
  background-color: #efefef !important;
  border-top: 1px solid #ddd;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2) !important;
  width: 100%;
  min-height: 100px;
  height: 100px;
  padding-top: 20px;
  margin-top: auto; /* Hier: sorgt für Sticky Footer */
  position: static; /* oder einfach ganz weglassen */
}

.program-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.program-logo {
  width: 64px;
  height: 64px;
  margin-right: 1rem;
  object-fit: contain;
}

/* Download Boxes Styles */
.download-boxes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-boxes .card {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .col-lg-8 {
    margin-bottom: 2rem;
  }

  .col-lg-4 {
    margin-top: 2rem;
  }

  .card {
    min-height: 180px;
  }
}

/* Hamburger Button Container */
.navbar-toggler {
  border-color: #333333;
  padding: 0.3rem;
  margin-left: auto !important; /* Schiebt den Button nach rechts */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51, 51, 51, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

* {
  box-sizing: border-box;
}

.navbar-collapse {
  background-color: #efefef !important;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.navbar {
  position: relative !important;
  z-index: 1000 !important;
}

.content {
  position: relative !important;
  z-index: 1 !important;
}

.navbar-nav .nav-item {
  height: auto !important;
}

.navbar-nav .nav-item .nav-link {
  height: auto !important;
  padding: 0.5rem 1rem !important;
  min-height: 60px !important;
}

.navbar-nav .nav-item .nav-link.active {
  height: auto !important;
  background-color: #6495ed !important;
  color: #ffffff !important;
  min-height: 60px !important;
}

.dropdown-menu {
  background-color: #efefef !important;
  border: none !important;
  padding-left: 0 !important;
}

.dropdown-item {
  padding: 0.9rem 2rem !important;
}

.dropdown-item:hover,
.dropdown-item.active {
  background-color: #6495ed !important;
  color: #ffffff !important;
}

/* Desktop Navigation Styles */
@media (min-width: 992px) {
  .navbar-collapse {
    position: static !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin-top: 0 !important;
    box-shadow: none !important;
  }
}

/* Nach oben Button Styles */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #6495ed;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top:hover {
  background-color: #4b9be9;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
  display: flex;
}

/* CSS für die Breitenanpassung der Combobox */
.select-box {
  width: 100%; /* Setzt die Breite auf 100% des umgebenden Containers */
  max-width: 300px; /* Optional: Setzt eine maximale Breite */
}

/* Animation für das Ausblenden von Nachrichten */
.fade-out {
  animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
  }
}

.list-group-item.active a {
  color: white;
}

.column {
  float: left;
  width: 100%;
  margin-bottom: 16px;
  margin-top: 10px;
  padding: 0 0;
}

/* Display the columns below each other instead of side by side on small screens */
@media screen and (max-width: 650px) {
  .column {
    width: 100%;
    display: block;
  }
}



/* Some left and right padding inside the container */
.container {
  padding: 0 16px;
}

/* Clear floats */
.container::after,
.row::after {
  content: "";
  clear: both;
  display: table;
}

/* Mobile Navigation */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #efefef !important;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  }
}



@keyframes schaukeln {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

.wackel-card:hover {
  animation: schaukeln 0.5s infinite ease-in-out;
}


.latest-post {
    transition: all 0.3s ease;
}

.latest-post:hover {
    transform: translateX(5px);
}

.latest-post a {
    color: #333;
    display: block;
}

.latest-post a:hover {
    color: #007bff;
}

.latest-post h6 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.latest-post small {
    font-size: 0.875rem;
}

.card-body {
    padding: 1rem;
}

.card-header {
    padding: 0.75rem;
}

/* Neue Styles für die Trennlinie */
.divider {
    height: 1px;
    background-color: #dee2e6;
    margin-top:0;
    margin-bottom: 1rem;
    opacity: 0.8;
}


/* Styles für Admin Menüeintrag in der Navigation */
.nav-item.dropdown .admin-menu {
    background-color: #dc3545 !important;
    color: white !important;
}

/* Hover-Effekt für die Dropdown-Items */
.nav-item.dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}


.card {
    border-left: 5px solid #007bff;
  }
  .card-title {
    color: #007bff;
    font-weight: 600;
  }

  .card:active {
  background-color: #e9f2ff;
}


.card {
  transition: transform 0.1s ease-in-out, box-shadow 0.2s;
}

.card:active {
  transform: scale(0.98);
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}


/* Formular Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    font-family: sans-serif;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .form-col {
    flex: 1;
    min-width: 150px;
  }

  label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
  }

  input[type="text"],
  input[type="date"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
  }

  @media (max-width: 600px) {
    .form-row {
      flex-direction: column;
    }
  }



  .form-control,
.form-select {
  height: 38px;         /* gleiche Höhe */
  line-height: 1.5;     /* für bessere Vertikale Ausrichtung */
  padding: 0.375rem 0.75rem;
}
