/* ------------------------------------ */
/* Basic Theme Colors (CSS Variables)  */
/* ------------------------------------ */
:root {
	/* Primary Colors (based on #001589) */
	--color-primary: #001589;         /* New Primary */
	--color-primary-light: #3a47c1;   /* Lighter Blue (for hovers / soft areas) */
	--color-primary-dark: #000c4f;    /* Darker Blue (for headings / strong text) */

	/* Secondary Colors */
	--color-secondary: #1476b8;       /* Nice complement blue (already fits well) */
	--color-accent: #ff5722;           /* Orange Accent (for CTA buttons etc.) */

	/* Background and Text */
	--color-bg: #f7f9fc;               /* Light background */
	--color-text-dark: #2c3e50;        /* Dark text */
	--color-text-light: #ffffff;       /* Light text (for dark backgrounds) */
	
	--bs-primary: #001589;
}

:root {
  --bs-primary: #001589;
}


.badge-primary-custom {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.badge-secondary-custom {
    background-color: var(--color-primary-light);
    color: var(--color-text-light);
}

/* ------------------------------------ */
/* General Site Settings               */
/* ------------------------------------ */
body {
	background-color: var(--color-bg);
	color: var(--color-text-dark);
}

/* ------------------------------------ */
/* Navbar                              */
/* ------------------------------------ */
.navbar-scroll .nav-link,
.navbar-scrolled .nav-link,
.navbar-scroll .fa-bars,
.navbar-scrolled .fa-bars,
.navbar-scroll .navbar-brand,
.navbar-scrolled .navbar-brand {
	color: var(--color-primary-dark);
}

.navbar-scroll .nav-link:hover,
.navbar-scrolled .nav-link:hover {
	color: var(--color-primary);
}

.navbar-scroll,
.navbar-scrolled {
	background-color: #fff;
	border-top: 6px solid var(--color-primary)!important;/* Thick blue border */
	  box-shadow: 0 4px 8px rgba(0, 21, 137, 0.2); /* blue-ish soft shadow */
  border-bottom: none !important;
}

.navbar.navbar-scroll.navbar-scrolled {
	padding-top: 5px;
	padding-bottom: 5px;
}

.navbar-toggler .bi-list {
	font-size: 2rem;
	color: #a9a9a9; /* Light grey */
}

/* ------------------------------------ */
/* Hero Section / Masthead             */
/* ------------------------------------ */
.masthead::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
	z-index: 0;
}

.masthead .text-center {
	position: relative;
	z-index: 1;
}

.hero-section {
	height: 60vh;
	min-height: 400px;
}

.hero-section .overlay {
	background-color: rgba(0, 0, 0, 0.6);
}

/* ------------------------------------ */
/* Cards & Tiles                       */
/* ------------------------------------ */
.card-title {
	border-bottom: None;
}

.card-title-with-line {
	border-bottom: 1px solid #dee2e6
}

.department-tile {
	background-color: #fff;
	border: 1px solid var(--color-primary-light);
	border-radius: 0.5rem;
	transition: all 0.3s ease;
}

.department-tile:hover {
	background-color: var(--color-primary-light);
	color: var(--color-text-light);
	transform: translateY(-4px);
}

/* ------------------------------------ */
/* News & Events Hover Effects         */
/* ------------------------------------ */
.news-item,
.event-item {
	transition: all 0.2s ease;
}

.news-item:hover,
.event-item:hover {
	transform: scale(1.005);
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
	background-color: #f8f9fa;
}

/* ------------------------------------ */
/* Read More Links                     */
/* ------------------------------------ */
.read-more-link i {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.read-more-link:hover i {
	opacity: 1;
}

.news-item:hover .read-more-link i,
.event-item:hover .read-more-link i {
	opacity: 1;
}

/* ------------------------------------ */
/* Profile Images (Leadership etc.)    */
/* ------------------------------------ */
.profile-img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
	margin: 1rem auto;
}

/* ------------------------------------ */
/* Meta Info (small text)              */
/* ------------------------------------ */
.meta-info {
	font-size: 0.85rem;
	color: #6c757d; /* Bootstrap secondary gray */
}

/* ------------------------------------ */
/* Buttons                             */
/* ------------------------------------ */
.btn-primary {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-text-light);
}

.btn-primary:hover {
	background-color: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
}

/* ------------------------------------ */
/* Section Headings                    */
/* ------------------------------------ */
h2, h3, h4 {
	color: var(--color-primary-dark);
}


html {
	scrollbar-gutter: stable;
}

.small-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary-dark);
  transition: color 0.2s ease;
}

.small-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}


.btn-outline-primary {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.event-detail-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.event-detail-link i {
  transition: transform 0.2s ease;
}

.event-detail-link:hover {
  text-decoration: underline;
  color: var(--color-primary-dark);
}

.event-detail-link:hover i {
  transform: translateX(4px);
}


.department-card {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Quadrat */
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 0.75rem; /* Weniger rund */
  transition: all 0.3s ease;
  color: var(--color-text-light);
  overflow: hidden;
  text-align: center;
}

.department-card .card-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.department-card .icon-wrapper img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 0.75rem;
}

.department-card h6 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text-light);
}

.department-card img {
  filter: brightness(0) invert(1); /* macht Logos weiß – gut für blauen Hintergrund */
}

/* Hover Effekt */
.department-card:hover {
  background-color: var(--color-text-light);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: scale(1.02);
}

.department-card:hover h6 {
  color: var(--color-primary-dark);
}

.department-card:hover img {
  filter: none;
}


.hero-section {
  height: 70vh;
  background: url('/static/img/vereinsheim.jpg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: inherit;
  filter: grayscale(100%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 21, 137, 0.5); /* your new club blue */
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.section-with-offset {
  padding-top: 1rem;
  margin-top: 1rem;
  scroll-margin-top: 50px;
}

.section-with-offset-no-hero {
  padding-top: 4rem;
  margin-top: 1rem;
  scroll-margin-top: 50px;
}

.accordion-button:not(.collapsed) {
  background-color: var(--color-primary);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-button {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-button:focus {
  border-color: var(--color-primary-dark);
  box-shadow: none;
  outline: none;
}

/* Base tab style */
.nav-tabs .nav-link {
  border: none;
  color: var(--color-primary) !important;
  font-weight: 500;
}

/* Active tab */
.nav-tabs .nav-link.active {
  background-color: var(--color-primary);
  color: #fff !important;         /* <-- White text */
  border-radius: 0.25rem 0.25rem 0 0;
}

/* Hover effect for inactive tabs */
.nav-tabs .nav-link:hover {
  color: var(--color-primary-dark);
}

.contact-collapse.collapse:not(.show) {
  display: block;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.contact-collapse.collapse.show {
  height: auto;
  transition: height 0.3s ease;
}


/* Hover-Zustand */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: #f0f0f0;
  color: black;
}

/* Aktiver Zustand (z. B. beim Klick) */
.dropdown-menu .dropdown-item:active {
  background-color: var(--color-primary);
  color: white;
}

/* Allgemeine Link-Farbe */
a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Link beim Hover */
a:hover,
a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Keep images inside CKEditor content responsive and contained */
.ck-content img, .event-description img {
  max-width: 100%;
  max-height: 600px; /* or 70vh etc. */
  object-fit: contain;
  height: auto;
  display: block;
  margin: 1rem auto;
}