:root {
	--navbar-height: 60px;
	--title-color: #D4AF37;
	--background-color: #2d4a72;
	--bs-body-font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	--border-radius: 1rem;

	--timeline-primary-color: #2d4a72;
    --timeline-secondary-color: #f8f9fc;
    --timeline-width: 4px;
}

.opacity-90 { opacity: 0.9; }

.w-90 { width: 90%; }

html {
	scroll-behavior: smooth;
}

body { 
	padding-top: var(--navbar-height);
	padding-left: 16px;
	padding-right: 16px;
	background-color: #2d4a72;
	color: whitesmoke; 
}

section[id] {
	scroll-margin-top: var(--navbar-height);
}

.hr {
	border-bottom: 1px solid var(--title-color);
	height: 10px;
	margin-bottom: 10px;
	width: 95%;
}

/****************************/
/*     Navbar Fixed-Top     */
/****************************/

.navbar-brand-centered {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
}

.navbar-toggler {
	position: absolute;
	right: 1rem;
	top: 0.5rem;
	z-index: 3;
}

@media (max-width: 991.98px) {
	.navbar-brand-centered {
		position: static;
		transform: none;
		margin: auto;
		text-align: center;
		padding: 0.5rem 0;
	}
}

/****************************/
/*       Menue Footer       */
/****************************/

.navbar-footer {
	color: white;
	padding: 10px;
	min-height: 200px;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	margin-bottom: 20px;
}

.menu-title, .copyright, .club, .section-title, .site-title, .nav-link {
	color: var(--title-color) !important ;  
}

.menu-title {
	display: grid;
}

.menu-title, .menu-entry {
	text-align: start;
}

.copyright {
	text-align: center;
	padding: 10px;
	font-size: 0.8em;
}

/****************************/
/*     Section Slider       */
/****************************/

.slider-contatiner {
	width: 100%;
	height: 540px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

.slider-contatiner img {
	width: 100%;
	height: 540px;
	object-fit: cover;
	object-position: center;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border-radius: var(--border-radius);
}

.slider-container {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	overflow: hidden;
}

/****************************/
/*      Section Team        */
/****************************/

.team {
	background: #2d4a72;
	color: white;
	padding: 25px;
	margin: 20px auto;
	border-radius: var(--border-radius);
}

.team h1 {
	text-align: center;
}

.team .card-group {
	gap: 12px;
}

.team .card {
	background: white;
	border-radius: var(--border-radius);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	padding: 16px;
	transition: transform 0.3s ease;
	min-width: 300.5px;
	max-width: 300.5px;
}

.team .card-image img { 
	border-radius: 100%; 
	padding: 16px; 
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team .card-title {
	line-height: 1.5;
	min-height: calc(2 * 1.5em);
	max-height: calc(2 * 1.5em);
	overflow: hidden;
	text-align: center;
	font-weight: bold;
	margin-top: 10px;
	margin-bottom: 15px;

	display: flex;
	align-items: center;
	justify-content: center;
}

.team .card-text {
	font-size: 1.2em;
	text-align: justify;
	text-wrap: balance;
	hyphens: auto;
}

/* 4 Karten/Zeile (nur wenn genug Platz) */
@media (min-width: 1400px) {
	.team .card {
		min-width: calc(25% - 12px); /* 12px = gap */
	}
}

/* 3 Karten/Zeile */
@media (max-width: 1399.98px) and (min-width: 1200px) {
	.team .card {
		/* min-width: calc(33.33% - 12px); */
		min-width: calc(50% - 12px);
	}

	.team .card:nth-child(3n) {
		border-top-right-radius: 20px;
		border-bottom-right-radius: 20px;
	}

	.team .card:nth-child(3n+1) {
		border-top-left-radius: 20px;
		border-bottom-left-radius: 20px;
	}
}

/* 2 Karten/Zeile */
@media (max-width: 1199.98px) and (min-width: 768px) {
	.team .card {
		min-width: calc(50% - 12px);
	}

	.team .card:nth-child(2n) {
		border-top-right-radius: 20px;
		border-bottom-right-radius: 20px;
	}

	.team .card:nth-child(2n+1) {
		border-top-left-radius: 20px;
		border-bottom-left-radius: 20px;
	}
}

/* 1 Karte/Zeile */
@media (max-width: 767.98px) {
	.team .card {
		min-width: 100%;
		border-radius: var(--border-radius) !important;
	}

	.menu-entry, .menu-title { 
		text-align: center !important; 
	}
}

/****************************/
/*    Section Sponsoren     */
/****************************/

#sponsoren {
	background: #3b3b3b;
	margin-top: 20px;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	padding-bottom: 10px;
}

.sponsoren-grid-container .card { 
	max-width: 500px; 
	margin: 0.25em 1.0em;
}

.sponsoren {
	background: #3b3b3b;
	padding: 10px;

}

#sponsoren h1 {
	text-align: center;
	color: white;
}
		
.sponsor-slider-container {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.sponsor-track {
	display: flex;
	gap: 100px;
}

.sponsoren, .sponsor-slider-container, .sponsor-track {
	border-radius: 50px;
}

.sponsor-item {
	flex: 0 0 150px;
	height: 144px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	filter: grayscale(85%);
	background-color: aliceblue;
	border-radius: 100%;
}

.sponsor-item:hover {
	filter: grayscale(0%);
	transition: filter 0.3s ease;
}

.sponsor-item img {
	max-width: 100%;
	max-height: 100%;
	border-radius: var(--border-radius);
	object-fit: contain;
}


@media (max-width: 768px) {
	.sponsoren-grid-container .card {
    	max-width: 360px;
		margin: .25em auto;
	}

	.sponsoren-grid-container .card img {
    	max-width: 180px;
	}
	.sponsor-item {
		flex: 0 0 125px;
		height: 120px;
	}
}

/* Duplikate für nahtlosen Loop */
.clone {
	animation: none !important;
}

/****************************/
/*    Section Membership    */
/****************************/
.membership-body {
	background-image: url('../images/TW-20250306-1240.jpg') ;
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-size: cover;
}

/****************************/
/*     Section Impressum    */
/****************************/
.legal-body{
	background: #F9FAFA url('../images/legal-background.jpg') right top no-repeat fixed;
	background-size: cover;
}

.impressum, .satzung {
	color: #313437;
	background-color: rgba(249, 250, 250, 0.85);
	margin-top: 40px;
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-radius: var(--border-radius);
}

.impressum article p {
	margin-left: 8px;
}

.impressum article p a {
	color: #7d8285;
	text-decoration: none;
}

.impressum article address p {
	color: black;
}

.impressum p, .satzung p {
	margin-bottom: 0.5rem;
	color: #7d8285;
}

.impressum h1, .satzung h1 {
	font-weight: bold;
	margin-bottom: 40px;
	padding-top: 40px;
	color: inherit;
}

.satzung h4 {
	text-align: center;
	font-weight: 600;
	font-style: italic;
	margin-bottom: 40px;
	padding-top: 40px;
}

.impressum h1 svg, .satzung h1 svg{
	width: 58px;
	height: 58px;
	color: #465765;
}

@media (max-width:767px) {
	.impressum h1, .satzung h1 {
		margin-bottom: 25px;
		padding-top: 25px;
		font-size: 24px;
	}
}

.impressum article, .satzung article {
	border-radius: var(--border-radius);
	-webkit-box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.42);
	box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.42);

	border: 1px solid rgba(163, 171, 178, 0.8);
	padding: 10px;
}

/****************************/
/*     Section Satzung      */
/****************************/

.para {
	list-style-type: none;
	padding-left: 10px; 
	margin-bottom: 15px;;
}

.para span {
	font-weight: bold;
	padding-bottom: 5px;;
}

.bgi-fix-cover {
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-size: cover;
}

.bgi-konfetti {
	background-image: linear-gradient(180deg,rgba(0,0,0,0.75) 0%,rgba(0,0,0,0.75) 100%),url(../images/background_5_1600x1080.jpg) !important;
}

.bgi-konfetti-0 {
	background-image: url(../images/background_5_1600x1080.jpg) !important;
}

.bgi-door-ballon {
	background-image: linear-gradient(180deg,rgba(0,0,0,0.75) 0%,rgba(0,0,0,0.75) 100%),url(../images/background_2_1600x1080.jpg) !important;
}

.bgi-door-ballon-0 {
	background-image: url(../images/background_2_1600x1080.jpg) !important;
}

/****************************/
/*   Section Simple Block   */
/****************************/

.simple-block, #counter {
	border-radius: var(--border-radius);
	padding-top: 5vw;
	padding-bottom: 5vw;
}

.simple-block div, .simple-block-1 {
	display: grid;
	gap: 4px;
	color: black;
	background-color: white;
	justify-content: center;
	align-items: center;
	border-radius: var(--border-radius);
	padding: 20px;
	width: 90%;
	margin: auto;
}

.simple-block-1, .simple-block-1 div {
	min-width: 90%;
}

.simple-block-title {
	font-family: 'Playfair Display',Georgia,"Times New Roman",serif;
	font-size: clamp(36px, calc(20px + 2vw), 64px);
	font-weight: 500;
	padding-bottom: 10px;
	color: #0e0c19 !important;
	line-height: 1.15em;
}

.simple-block-button .btn {
	background-color: var(--background-color);
	color: white;
}

.simple-block-image, .simple-block-image img {
	border-radius: var(--border-radius);
}

.simple-block-sub-info {
	font-family: 'Source Sans Pro',Helvetica,Arial,Lucida,sans-serif;
	line-height: 1.75em;
	word-wrap: break-word;
	text-align: center;
}

/****************************/
/*       Contacts-Form      */
/****************************/

.contact-form-body { background-image: url(images/pexels-pixabay-50594.jpg);}

@media (max-width: 768px) {
	.contact-form-title { font-size: calc(1.475rem + 2.7vw); }
	.contact-form-container { width: 100%; padding-left: 5px !important; padding-right: 5px !important; margin: 0 !important;}
}
/****************************/
/*          Events          */
/****************************/

.events-body {
	background-image: url("../images/TW-20250305-0816.jpg");
	background-attachment:fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;	
}

.ev-day {
	min-width: 60px;
}

.ev-image {
	max-height: 120px;
	object-fit: cover;
}

.event {
	border: 1px solid #ccc;
	border-radius: var(--border-radius);
	padding: 10px;
	margin-bottom: 10px;
}

.cal-day { min-width: 120px;}

/****************************/
/*       Retro Clock        */
/****************************/

.retroClockBody{ 
	background-color: #fe6ea3;
	padding: 20px;
	border-radius: var(--border-radius);
	margin-top: 10px;
}

.retroClockContainer { 
	background-color: #fe6ea3;
	padding: 15px;

}

.agenda-carnaval-internacional, .retroClockContainer {
	max-width: 640px;
	border-radius: var(--border-radius);
}

.agenda-carnaval-internacional img {
	border-radius: var(--border-radius);
	width: 640px;
}

.tw-shadow {
	box-shadow: 0px 12px 18px -6px rgba(0,0,0,0.3);
}

.fb-icon { color: #3b5998; }

.insta-icon {
	background: linear-gradient(115deg, rgb(249, 206, 52), rgb(238, 42, 123), rgb(98, 40, 215)); 
	background-clip: text; 
	color: transparent;
}

@media (max-width: 768px) {
	.retroClockContainer,  .agenda-carnaval-internacional img{ max-width: 420px; }

	.retroClockContainer h3 { font-size: medium; }

	.retroClockBody {
		padding: 14px 10px 18px;
	}
}

/*******************************/
/* Big Title with Immage Clock */
/*******************************/

.btwi-with-image-modul {
	background-color: white;
	border-radius: var(--border-radius);
}

.btwi-title, .faq-title, .contact-form-title {
	font-family: 'Playfair Display',Georgia,"Times New Roman",serif;
	font-size: clamp(2rem, 3vw + 1.4rem, 5rem);
	font-weight: 500;
	padding-bottom: 10px;
	color: #0e0c19 !important;
	line-height: 1.15em;
}

.btwi-subtitle {
	text-transform: uppercase;
	font-size: 1em;
	font-weight: 400;
	color: #1d3557 !important;
	letter-spacing: 1px;
	line-height: 1.4em;
}

.btwi-description, .faq-description, .simple-block-content {
	position: relative;
	font-size: 1em;
	font-weight: 400;
	color: #3c3a47 !important;
	text-align: left;
	line-height: 1.75em;
	word-wrap: break-word;
}

.btwi-image {
	border-radius: var(--border-radius);
	height: auto;
	width: 100%;
	max-width: 400px;
	min-width: 400px;
}

@media (max-width: 991.98px) {
	.btwi-image {
		max-width: 300px;
		min-width: 300px;
	}
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
	body, .contact-form-container { 
		padding-left: 0px !important;
		padding-right: 0px !important;
	}

	.contact-form-container .container, section div.container-fluid {
		--bs-gutter-x: 0;
	}

	.btwi-subtitle {
		font-size: 0.8em; 
	}

	.btwi-image {
		margin-top: 10px ;
		max-width: 250px;
		min-width: 250px;
	}
}

.container-90 {
	width: 90%;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 1199.98px) { 
	.container-90 { 
		width: 100%;
	}
}

@media (max-width: 768px) {
	.container-90 { 
		width: 100%;
		margin-left: 0 !important;
		margin-right: 0 !important;

		border-bottom: solid 2px gainsboro;
		border-radius: 0px;
	}
}

/****************************/
/*   Timeline (Historie)    */
/****************************/

.timeline-body {
    background-image: url("../images/TW-20250305-1155.JPG");
    background-attachment: fixed;
	background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    color: var(--timeline-primary-color);
}

.timeline::before {
    content: '';
    position: absolute;
    width: var(--timeline-width);
    background-color: var(--timeline-primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.timeline-content div img { cursor: pointer; }
.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--timeline-primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-date {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--timeline-primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-icon {
    position: absolute;
    top: 15px;
    color: white;
    z-index: 2;
    font-size: 12px;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}

#modalImage { max-height: 480px; }

.timeline-inline-image {
  display: inline-flex;
  margin: 15px auto;
  justify-content: center;
  border: solid 1px gainsboro;
  border-radius: var(--border-radius);
  padding: 15px 15px 15px 20px;
  width: 100%;
}

.timeline-inline-image div {
  position: relative;
  display: inline-block;
  width: 75%;
}

.timeline-inline-image div img {
  width: 100%;
  border-radius: var(--border-radius);
  display: block;
}

.timeline-inline-image div span {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 2px 5px;
  font-size: 0.8em;
  border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 18px;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 18px;
    }
    
    .timeline-icon {
        left: 8px !important;
        right: auto !important;
    }
	.timeline-inline-image div {
		width: 100%;
	}
}
