/* Globale Box-Sizing-Regel: sorgt dafür, dass Padding und Border in der Breitenberechnung enthalten sind */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Definition der CVJM-Farbe */
:root {
  --cvjm-red: #e40038;
}

/* Allgemeine Link-Stile */
a {
  color: #e40038;
}

a:hover {
  color: #b0002c;
}

/* Grundlayout */
body {
  background-color: #f8f9fa;
  padding-top: 5px;
  padding-bottom: 15%;
}

html, body {
  font-family: 'Poppins', sans-serif;
}


h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: bold; /* oder: 700 */
}



/* Navigation */
.navbar {
  background-color: var(--cvjm-red);
}

.navbar-brand,
.nav-link {
  color: #fff !important;
}

/* Für die Tab-Leiste */
.nav-tabs .nav-link {
  color: #000 !important;
  background-color: transparent;
  border: 1px solid transparent;
}

.nav-tabs .nav-link.active {
  color: var(--cvjm-red) !important;
  background-color: #f8f9fa !important;
  border-color: #dee2e6 #dee2e6 #fff;
}

.nav-tabs .nav-link:hover {
  color: var(--cvjm-red) !important;
  text-decoration: underline;
}

/* Blink-Animation */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@-webkit-keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.blink {
  animation: blink 1s infinite;
  -webkit-animation: blink 1s infinite;
}

/* Dropdown-Button im Header */
#teamDropdown {
  background-color: #FFFFFF;
  color: #e40038;
  font-size: 16px;
  padding: 5px 15px;
  border-radius: 12px;
  width: 220px;
  border: none;
}

/* Dropdown-Menü */
.dropdown-menu[aria-labelledby="teamDropdown"] {
  background-color: #f8f9fa;
  border-radius: 10px;
  width: 220px;
  padding: 5px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Dropdown-Einträge */
.dropdown-item {
  font-size: 16px;
  padding: 10px 20px;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
  background-color: #e40038;
  color: #fff;
  border-radius: 5px;
}

/* Hamburger-Menü (Navbar-Toggler) */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.content-wrapper {
  padding-bottom: 120px; /* Passend zur Höhe des Footers */
}

/* Button-Stile */
.btn-cvjm {
  background-color: #e40038;
  border-color: #e40038;
  color: #fff;
}

.but_rand_rot {
  display: inline-block;
  background-color: #FFFFFF;
  border: 2px solid rgba(228, 0, 56, 0.5); /* Transparenter roter Rand */
  color: black;
  padding: 6px 14px;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 10px;
}


.btn-cvjm:hover {
  background-color: #c3002d;
  border-color: #c3002d;
  color: #fff;
}

.cvjm-button {
  display: inline-block;
  background-color: #EEEEEE;
  border: 1px solid   rgba(216, 216, 216, 0.5); /* transparenter roter Rand */
  color: black;
  padding: 5px 12px; /* etwas mehr Padding für mehr „Button-Feeling“ */
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 10px;
  text-align: center;
  font-family: sans-serif;
  transition: all 0.3s ease;
}


.btn-danger {
  background-color: #e40038;
  border-color: #e40038;
}

.btn-danger:hover {
  background-color: #c3002d;
  border-color: #c3002d;
  color: #fff;
}

/* Hero-Bereich */
.hero {
  padding: 50px 0;
  text-align: center;
}

.hero img {
  max-width: 100%;
  height: auto;
}

.challenge-heading {
  text-align: center;
  border: 2px solid var(--cvjm-red);
  padding: 10px;
  margin-bottom: 30px;
  font-weight: bold;
  color: var(--cvjm-red);
}

a.cvjm-link {
  color: #e40038;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin: 0 auto;
}

.cvjm-link-wrapper {
  text-align: center;
  margin-top: 1rem;
}

.icon-2x {
  width: 2em;
  height: auto;
}

/* Layout für horizontale Karten */
.card-horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.card-horizontal .card-img {
  width: 25%;
  object-fit: cover;
}

.card-horizontal .card-body {
  width: 75%;
  padding-left: 15px;
}

/* Fortschrittsleiste */
.progress-bar-complete {
  background: linear-gradient(to right, #d0fad3, rgb(193, 234, 202));
  color: #000;
  padding: 5px;
  text-align: center;
  font-weight: bold;
  margin-top: 8px;
  border-radius: 10px;
}

/* Header-Styles */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #e40038;
  z-index: 1000;
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* sanfter Schatten nach unten */
}

.main-header.group-header {
  /* Höhe fix oder flexibel */
  height: 110px; /* oder min-height: 110px; */

  /* Vertikal & horizontal in der Mitte */
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-content {
  color: #fff;
  font-size: 20px;
  height: 100%;
  line-height: 40px; /* Gleiche Höhe wie der Header */
  text-align: center;
}

/* Abstand, damit der Content nicht hinter dem fixierten Header liegt */
.header-spacer {
  margin-top: 30px;
  padding-bottom: 10px;
}

.header-content-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  font-size: 20px;
}

.group-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.group-name {
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 1.3rem;
}

.team-dropdown {
  margin-top: 5px;
}



/* --- FOOTER-BEREICH --- */

/* Footer-Hintergrund und Rand */
.footer-bg {
  background: #e40038;

  width: 100%;
  margin: 0;
  padding: 0;
}

/* Footer-Grundlayout */
.footer-bg {
  background: #e40038;
   width: 100%;
  margin: 0;
  padding: 0;
}

/* Flex-Container für 4 gleichgroße Footer-Elemente */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 9vh;
  padding: 0;
}

/* alle direkten Kinder gleich groß */
.footer-inner > * {
  flex: 1 1 25%;
  max-width: 25%;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* Speziell: auch die Dropdown-Spalte */
.dropdown-wrapper {
  width: 100%;
  height: 100%;
}

/* Footer-Links */
.app-menu-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  color: #fff;
  text-decoration: none;
  padding: 0;
  margin: 0;
}

/* Aktiver Menüpunkt */
.app-menu-item.active {
  background-color: #c3002d;
}

/* Icons */
.menu-icon {
  width: 1.6em;
  height: auto;
}

/* Beschriftung unter dem Icon */
.menu-label {
  font-size: 0.8rem;
  margin-top: 4px;
  color: #fff;
}


/* Dropdown-Menü */
.dropdown-menu-right {
  right: 0;
  left: auto;
}

.app-menu.text-center {
  background-color: #e40038;
  color: #fff;
  height: 15vh;
  display: flex;
  align-items: center;
  justify-content: center;
}


.footer-inner > .dropdown {
  width: 25%;
  margin: 0;
  padding: 0;
}


/* Falls ein Dropdown-Element genutzt wird, ebenfalls 25% Breite erzwingen */
.dropdown {
  width: 25%;
}

/* Footer-Links: Das anklickbare Element füllt seinen Container komplett aus */
.app-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  color: #fff;
  text-decoration: none;
  margin: 0;
  padding: 0;
}

/* Aktiver Zustand: Hintergrund über die gesamte Spaltenhöhe */
.app-menu-item.active {
  background-color: #c3002d;
}

/* Footer-Links (allgemein) */
.app-menu-item:hover,
.app-menu-item:focus,
.app-menu-item:active {
  text-decoration: none;
  color: #fff;
}

.app-menu-item:hover .menu-label {
  text-decoration: underline;
  text-decoration-color: #fff;
}


/* Dropdown-Menü im Footer */
.dropdown-menu-right {
  right: 0;
  left: auto;
}

/* Footer für einfache Links */
.app-menu.text-center {
  background-color: #e40038;
  color: #fff;
  height: 15vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Weitere Links */
a.text-dark {
  color: #000 !important;
}

/* Header-Leiste */

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  flex-direction: column;
  text-align: center;
}

.header-leiste {
  background-color: var(--cvjm-red);
  padding: 1rem 1rem;
  position: relative;
}

.header-leiste .navbar-text {
  font-size: 1.2rem;
  font-style: italic;
  color: white;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
}

.team-label-row {
  font-size: 0.9rem; /* passt du beliebig an */
}
