@font-face {
	font-family: 'STREET';
	src: url('../Style/STREET.ttf'); /* IE9 Compat Modes */
	src: url('../Style/STREET.ttf?#iefix') format('embedded-opentype'), /* IE6-IE8 */
		 url('../Style/STREET.ttf') format('ttf'), /* Modern Browsers */
		 url('../Style/STREET.ttf')  format('truetype') /* Safari, Android, iOS */
  }

html, body {
	width: 100%;
    height: 100%;
	margin: 0;
	position: fixed;
}

#main_content {
	background-image: url(../Images/kinder_neu.gif);
	background-color: #2e372800;
    background-repeat: repeat;
    background-size: 6rem;
    width: 100%;
    height: 100%;
}

#main_content_Container {
	max-width: 100rem;
    text-align: center;
    font-family: STREET;
    color: #555ba2;
    overflow: auto;
    height: 85%;
    margin: 0 auto;
}

#content {
	margin-left: 2.5rem;
	width: 85%;
}

/* Menue Start */

#menu {
	z-index: 100000;
	background: rgba(197, 191, 191, 0.589);
	width: 12rem;
	margin-left: -10rem;
	height: 100%;
	position: absolute;
	border-top-right-radius: 2.5rem;
    border-bottom-right-radius: 2.5rem;
	font-family: 'comic sans ms', sans-serif;
}

#menu:hover {
	margin-left: 0rem;
}

.menueItemLink,
.menueItem {
	display: block;
	width: 100%;
	height: 2rem;
	border-radius: .75rem;
    background: #6952e9;
	margin-bottom: 0.25rem;
}

.menueItemIcon {
	width: 1.5rem;
    height: 1.5rem;
    float: right;
	margin: 0.25rem;
	fill: black;
}

.menueItemIconRevert {
	fill: white;
	stroke: white;
}

.menueItemContent {
	width: 100%;
	height: 2rem;
}

.menuItemContentText {
	width: 100%;
    height: 100%;
    text-align: center;
    padding: 0.4rem;
	color: white;
	font-size: small;
}

.menueItemLink:hover .menuItemContentText,
.menueItem:hover .menuItemContentText {
	color: white;
}

.subMunu {
	position: relative;
    display: none;
    left: 12rem;
    top: -2rem;
}

.menueItem:hover .subMunu {
	display: block;
}

.menueItemSelected .menuItemContentText {
    color: white;
}

.menueItemSelected .menueItemIcon {
	fill: white;
	stroke: white;
}

.menueItem:hover  .menueItemIcon {
	fill: white;
	stroke: white;
}

.menueItemSelected .menueItemIconRevert {
	fill: black;
	stroke: black;
}

.menueItem:hover  .menueItemIconRevert {
	fill: black;
	stroke: black;
}

#menu:hover .menueItemIcon {
	float: left;
	position: absolute;
}

.menueItemLink:hover,
.menueItem:hover{
	background: #0f2e67;
	cursor: pointer;
}

.menueItemSelected {
	background: #0f2e67;
}

#menuIconKreuz {
	width: 1.5rem;
    height: 1.5rem;
    float: right;
    margin-top: 2rem;
	margin-right: 0.25rem;
}

#menu:hover #menuIconKreuz {
	width: 4rem;
    height: 4rem;
    margin-top: 0.5rem;
	margin-right: 4rem;
}

/* Menue End */

#calendaryMonth {
	margin: 0.5rem;
	font-size: 1.15rem;
}

#banner {
	width: 20rem; 
	margin: 1rem;
}

.CalendaryCustom {
	border-style: none none none ridge;
}

.CalendaryRow {
	display: flex;
}

.CalendaryRowFirst {
	border-style: ridge none none none;
}

.CalendaryCell {
	width: 100%;
	height: 5rem;
	text-align: left;
	border-style: none ridge ridge none;
}

.CalendaryCell:hover {
	background: #93cbf387;
	cursor: pointer;
}

.CalendaryCellWeekEnd{
	color: rgb(209, 66, 66)!important;
}

.CalendaryCellWeekEndOtherMonth {
	color: rgb(247 162 162)!important;
}

.CalendaryCellOtherMonth {
	color: darkgrey;
}

.CalendaryDay {
	margin: 0.2rem;
}

.CalendaryCellHeader {
	width: 100%;
	border-style: ridge ridge none none;
}

.CalendaryCellHeaderFirst {
	width: 100%;
	border-style: ridge ridge none none;
}

@media only screen and (max-width: 800px) {
	#main_content_Container {
		width: 80%;
	}

	#banner {
		width: 15rem;
	}
  }

  @media only screen and (min-width: 1200px) {
	#main_content_Container {
		font-size: 125%;
	}
  }

 table {
	border-collapse: collapse;
  }

td {
	height: 7rem;
	width: 7rem;
  }

th, td {
	border: 1px solid black;
	padding: 5px;
	text-align: center;
  }
  
.other-month {
	color: gray;
  }

.event {
	background-color: yellow;
    border: 1px solid black;
    padding: 2px;
    margin-bottom: 2px;
    height: 1rem;
    width: 6.5rem;
    text-wrap: nowrap;
    font-size: small;
  }


/* ---------- Tab definition -------------- */

.tab {
	overflow: hidden;
	border: 1px solid #ccc;
	background-color: #f1f1f1;
	margin: 0.1rem;
	border-radius: 0.5rem;
}

.tab button {
	background-color: inherit;
	float: left;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 14px 16px;
	transition: 0.3s;
}

.tab button:hover {
	background-color: #ddd;
}

.tab button.active {
	background-color: #ccc;
}

.tabcontent {
	display: none;
	width: 100%;
	height: 100%;
  }

.show {
	display: block;
}

.hidden {
	display: none;
}

.tabs {
	display: flex;
	flex-wrap: wrap;
  }
  
  .tablinks {
	background-color: #f1f1f1;
	color: #333;
	border: none;
	padding: 10px;
	font-size: 1.2rem;
	cursor: pointer;
  }
  
  .tablinks.active {
	background-color: #ddd;
	color: #555;
  }

/* -------------- Galerie -----------------*/

.gallery {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 2rem;
  }
  
  .slides {
	width: 85%;
	display: none;
  }
  
  .slides.active {
	display: block;
  }
  
  .prev, .next {
	position: absolute;
	top: 50%;
	width: auto;
	padding: 16px;
	margin-top: -22px;
	font-size: 1.5rem;
	font-weight: bold;
	cursor: pointer;
  }
  
  .prev {
	left: 0;
  }
  
  .next {
	right: 0;
  }

/* Slideshow container */
.slideshow-container {
	max-width: 1000px;
	position: relative;
	margin: auto;
  }
  
  /* Hide the images by default */
  .mySlides {
	display: none;
  }
  
  /* Next & previous buttons */
  .prev, .next {
	cursor: pointer;
	position: absolute;
	top: 50%;
	width: auto;
	margin-top: -22px;
	padding: 16px;
	color: white;
	font-weight: bold;
	font-size: 18px;
	transition: 0.6s ease;
	border-radius: 0 3px 3px 0;
	user-select: none;
  }
  
  /* Position the "next button" to the right */
  .next {
	right: 0;
	border-radius: 3px 0 0 3px;
  }
  
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover, .next:hover {
	background-color: rgba(0,0,0,0.8);
  }
  
  /* Caption text */
  .text {
	color: #f2f2f2;
	font-size: 15px;
	padding: 8px 12px;
	position: absolute;
	bottom: 8px;
	width: 100%;
	text-align: center;
  }
  
  /* Number text (1/3 etc) */
  .numbertext {
	color: #f2f2f2;
	font-size: 12px;
	padding: 8px 12px;
	position: absolute;
	top: 0;
  }
  
  /* The dots/bullets/indicators */
  .dot {
	cursor: pointer;
	height: 15px;
	width: 15px;
	margin: 0 2px;
	background-color: #bbb;
	border-radius: 50%;
	display: inline-block;
	transition: background-color 0.6s ease;
  }
  
  .active, .dot:hover {
	background-color: #717171;
  }
  
  /* Fading animation */
  .fade {
	animation-name: fade;
	animation-duration: 1.5s;
  }
  
  @keyframes fade {
	from {opacity: .4}
	to {opacity: 1}
  }

  /* --------------------- End Galerie ----------------- */

  /* --------------------- Kalender START -------------------- */

  .calendar {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	grid-gap: 5px;
	font-family: Arial, sans-serif;
	background: #f9f9f9;
	border-radius: 8px;
	padding: 10px;
	position: relative;
  }
  
  .calendar-header {
	display: contents;
	text-align: center;
	font-weight: bold;
	color: #555;
  }
  
  .calendar-body {
	display: contents;
  }
  
  .calendar-body div {
	padding: 15px;
	text-align: center;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	cursor: pointer;
  }
  
  .calendar-body div.other-month {
	color: #bbb;
  }
  
  .popup {
	display: none;
	position: absolute;
	background: #333;
	color: #fff;
	padding: 10px;
	border-radius: 5px;
	font-size: 0.9em;
	z-index: 10;
	width: 150px;
  }
  
  .popup::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: #333 transparent transparent transparent;
  }

  .dayCell {
	width: 7rem;
	height: 7rem;
  }

  /* --------------------- Kalender ENDE -------------------- */

/* --------------------- WYSIWYG ENDE -------------------- */

	/* Zentrierung der Buttons */
	.menu-container {
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 20px 0;
		gap: 10px; /* Abstand zwischen den Buttons */
	}

	/* Standard-Styling der Buttons */
	.menu-button {
		padding: 10px 20px;
		font-size: 16px;
		color: #333;
		background-color: #f0f0f0;
		border: 1px solid #ccc;
		border-radius: 5px;
		cursor: pointer;
		transition: all 0.3s ease; /* Animation bei Hover und Aktivierung */
	}

	/* Hover-Effekt */
	.menu-button:hover {
		background-color: #ddd;
		color: #000;
	}

	/* Aktiver Button */
	.menu-button.active {
		background-color: #007bff; /* Blaue Farbe */
		color: #fff; /* Weiße Schrift */
		border: 1px solid #0056b3; /* Dunkler Rand */
	}

/* --------------------- WYSIWYG ENDE -------------------- */

/* Galerie-Editor */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.gallery-editor {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-tabs {
    display: flex;
    margin-bottom: 20px;
}

.tablinks-galerieEdit {
	margin: 1rem;
    padding: 2px 3px;
    border: none;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 4px;
    transition: background 0.3s;
}

.tablinks-galerieEdit.active {
    background: #0056b3;
}

.tablinks-galerieEdit:hover {
    background: #0056b3;
}

.gallery-content {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.add-theme-button {
	margin: 1rem;
    padding: 10px 20px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-theme-button:hover {
    background: #218838;
}

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-width: 100%;
}

.close {
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.galleryEdit-image {
    max-height: 5rem;       /* Maximale Höhe auf 5rem beschränken */
    width: auto;            /* Automatische Breite, um das Seitenverhältnis zu erhalten */
    object-fit: cover;      /* Zuschneiden, falls das Bild größer ist */
    border: 1px solid #ccc; /* Optional: Rahmen */
    border-radius: 5px;     /* Optional: Abgerundete Ecken */
	cursor: pointer;
	transition: transform 0.3s;
}

/* --------------------- NEUE Galerie START ----------------- */

.tabs {
	display: flex;
	justify-content: center;
	margin-top: 20px;
	font-family: 'comic sans ms', sans-serif; 
	font-size: 14pt;
}
.tabs a {
	padding: 5px;
	text-decoration: none;
	text-align: center;
	border-right: 1px solid #242222;
}
.tabs a:last-child {
	border-right: none;
}
.tabs a:hover {
	background-color: #484d8d;
}
.tabs a.active {
	background-color: #96b4d6;
	color: #333;
}
.gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	padding: 20px;
}
.gallery img {
	width: 50rem;
	object-fit: cover;
	cursor: pointer;
	border: 2px solid #4e4c4c;
	border-radius: 5px;
	transition: transform 0.3s;
}
.gallery img:hover {
	transform: scale(1.05);
}
#lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	display: none;
	justify-content: center;
	align-items: center;
}
#lightbox img {
	max-width: 90%;
	max-height: 90%;
	border: 3px solid white;
	border-radius: 5px;
}
#lightbox:target {
	display: flex;
}
#close {
	position: fixed;
	top: 10px;
	right: 20px;
	color: white;
	font-size: 30px;
	text-decoration: none;
} 

#galleryCarousel {
    max-width: 800px;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-item img {
    object-fit: contain;
    max-height: 40rem;  /* Bildhöhe anpassen */
}
  /* --------------------- NEUE Galerie ENDE ----------------- */

  body {
    font-family: Arial, sans-serif;
    text-align: center;
}

.calendar-container {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #0056b3;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day-header {
    font-weight: bold;
    padding: 10px;
    background: #f0f0f0;
}

.day {
    border: 1px solid #ccc;
    padding: 5px;
    height: 6rem;
	width: 6rem;
    position: relative;
    text-align: left;
}

.event {
    background-color: #28a745;
    color: white;
    padding: 5px;
    font-size: 12px;
    border-radius: 3px;
	height: auto;
	max-width: 5.5rem;
}

.empty {
    background: #f8f8f8;
}

.downloads-container {
	font-family: Arial, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #f4f4f4;
	margin: 1rem;
}
.list-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 80%;
	margin-bottom: 20px;
}
.download-h3 {
	text-align: center;
	margin-bottom: 10px;
}
.download-list, .link-list {
	display: contents;
	list-style: none;
	padding: 0;
	width: 100%;
	gap: 15px;
}
.download-item, .link-item {
	width: 25%;
	min-width: 150px;
	text-align: center;
	background: white;
	padding: 10px;
	border: 2px solid #333;
	border-radius: 5px;
	cursor: grab;
	transition: background 0.2s;
}
.download-item:hover, .link-item:hover {
	background: #e0e0e0;
}
.save-button {
	margin-top: 10px;
	padding: 8px 12px;
	border: none;
	background: #333;
	color: white;
	cursor: pointer;
	border-radius: 5px;
	transition: background 0.3s;
}
.save-button:hover {
	background: #555;
}

.responsive-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1rem;
  }
  
  .responsive-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
  }
  
  .responsive-column {
	flex: 1 1 100%;
	box-sizing: border-box;
  }
  
  .responsive-container img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
  }

  @media (min-width: 768px) {
	.responsive-column {
	  flex: 1 1 33%;
	}
  }