:root {
	--content-section-color: #2a2a2a;
	--content-section-h1-color: #0b3954;
	--animation-a-color: #1d3557;
	--animation-h1-color: #1d3557;
	
	--future-link-hover-color: black;
}

[data-theme="dark"] {
	--content-section-color: #e7e7dc;
	--content-section-h1-color: #ebf9f9;
	--animation-a-color: #437ac8;
	--animation-h1-color: #ebf9f9;
	
	--future-link-hover-color: white;
}

.content-section {
  padding-left: 2rem;
  padding-right: 2rem;
  margin-top: 0;
  margin-bottom: 5rem;
  border-radius: 1rem;
  font-family: system-ui, sans-serif;
  color: var(--content-section-color);
}

.content-section div {
  padding-top: 4rem;
}
	
.content-section h1 {
  color: var(--content-section-h1-color);
  margin-bottom: 1rem;
  border-bottom: 2px solid #a8dadc;
  border-left: 4px solid #52D5DB;
  padding-left: 0.6rem;
  padding-bottom: 0.3rem;
}

.content-section ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.content-section li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
  position: relative;
  padding-left: 0.5rem;
}

.content-section li::before {
  color: #457b9d;
  font-weight: bold;
}

.content-section p {
  line-height: 1.6;
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* TEST ANIMATION */

.overview-wrapper {
  display: flex;
}

.neben-overview {
  position: relative;
  flex: 1;
  padding-right: 1rem;
  display: inline-block;
}

.img-wrapper {
  padding-top: 1.5rem;
  position: relative;
  width: 310px;
  height: 310px;
  z-index: 2; /* liegt über der Checkbox */
  pointer-events: none; /* Bildbereich lässt Klicks durch */
}

.img-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.hover-img,
.text-behind-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hover-img {
  z-index: 3;
  opacity: 0;
}

.text-behind-img {
  z-index: 2;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  pointer-events: none;
}

/* Hover-Effekt */
.img-wrapper:hover img {
  opacity: 0;
}

.img-wrapper:hover .text-behind-img {
  opacity: 0;
}

/* Unsichtbare, vollflächige Checkbox */
#toggle {
  position: absolute;
  left: -3px; top: 20px;
  border-radius: 8px;
  width: 100%;
  height: 93%;
  opacity: 0;
  z-index: 1; /* unter dem Bild */
}

#toggle:hover ~ .img-wrapper img {
  opacity: 1;
}

#toggle:hover ~ .img-wrapper .text-behind-img {
  opacity: 0;
}

#toggle:not(:hover) ~ .img-wrapper .text-behind-img {
  opacity: 0 !important;
}

/* Checkbox aktiv → Animation z. B. Vibration */
#toggle:checked ~ .img-wrapper .text-behind-img {
  opacity: 0;
  font-weight: 500;
  animation: vibrate 0.5s linear 4;
}

#toggle:not(:checked) ~ .img-wrapper .text-behind-img {
  opacity: 0;
  animation: bounceSchutz 0.8s ease-out;
}

.overview {
  flex: 1;
  padding: 2rem;
  margin-bottom: 0;
  /* background: radial-gradient(rgba(161, 194, 233, 1), rgba(161, 194, 233, 1), rgba(188, 210, 238, 1), rgba(188, 210, 238, 1)); */
}

.animation a {
  display: inline-block;
  text-decoration: underline;
  color: var(--animation-a-color);
  transition: transform 0.3s ease;
}

.animation a:hover {
  color: var(--future-link-hover-color);
  transform: translateX(-2px) translateY(-1px);
}

.center-wrapper {
  justify-self: left;
}

.center-neben-wrapper {
  justify-self: center;
  position: relative;
}

.animate-title {
  position: relative;
  display: flex;
  margin-bottom: 0;
  cursor: default;
  border-radius: 8px;
  animation: fadein 1s ease;
}

.animate-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 8px;
  width: 100%;
  background: linear-gradient(to right, rgba(82, 213, 219, 0.3), rgba(188, 210, 238, 0.3));
}

.title-ani:hover {
  color: #0b72ae;
}

.title-ani:hover ~ .animation-border {
  transform: translateX(-3px);
  border-right: 4px solid #3ED1D9;
}

.title-ani a {
  text-decoration: none;
  color: inherit;
}

.animate-title h1 {
  color: var(--animation-h1-color);
  animation: animatetitle 1.2s ease;
  margin-left: 0.5rem;
  margin-top: 0;
  transform: translateX(0px);
  transition: color 0.3s ease;
  margin-bottom: 0;
  order: 2;
}

.after-center-wrapper {
  justify-self: left;
  margin-right: 1rem;
}

.symbol {
  position: relative;
  animation: fadeinhalf 3s ease;
}

.symbol:hover {
  color: transparent;
}

.symbol:hover::before {
  content: "🖊";
  position: absolute;
  color: #0b72ae;
}
  

.animation-border {
  border-right: 4px solid #52d5db;
  animation: rotateborder 0.6s ease;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 16px;
  transition: transform 0.4s ease;
  order: 1;
  cursor: grabbing;
}

.animation-border:hover {
  animation: vibrate 1s linear infinite;
}

@keyframes fadein {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes bounceSchutz {
	25% {
		transform: translateY(-1.5px);
	}
	50% {
		transform: translateY(1px);
	}
	75% {
		transform: translateY(-0.5px);
	}
	100% {
		transform: translateY(0px);
	}
}

@keyframes fadeinhalf {
	0% {
		opacity: 0;
	}
	50% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes rotateborder {
	0% {
		transform: translateX(-50px) rotate(180deg);
		opacity: 0;
	}
	10% {
		transform: translateX(-50px) rotate(180deg);
		opacity: 1;
	}
	100% {
		transform: translateX(0px) rotate(0deg);
		opacity: 1;
	}
}

@keyframes animatetitle {
	0% {
		transform: translateX(50px);
		opacity: 0;
	}
	20% {
		transform: translateX(50px);
		opacity: 0;
	}
	100% {
		transform: translateX(0px);
		opacity: 1;
	}
}


@keyframes animateli {
	0% {
		transform: translateY(-10px);
		opacity: 0;
	}
	33% {
		transform: translateY(-10px);
		opacity: 0;
	}
	66% {
		transform: translateY(-10px);
		opacity: 0;
	}
	100% {
		transform: translateY(0px);
		opacity: 1;
	}
}

@keyframes vibrate {
	0% {
		transform: translateY(0px) translateX(0px) rotate(0deg);
	}
	10% {
		transform: translateY(0px) translateX(0px) rotate(2deg);
	}
	20% {
		transform: translateY(0px) translateX(0px) rotate(-3deg);
	}
	30% {
		transform: translateY(0px) translateX(0px) rotate(0deg);
	}
	40% {
		transform: translateY(0px) translateX(0px) rotate(1deg);
	}
	50% {
		transform: translateY(0px) translateX(0px) rotate(3deg);
	}
	60% {
		transform: translateY(0px) translateX(0px) rotate(0deg);
	}
	75% {
		transform: translateY(0px) translateX(1px) rotate(-1deg);
	}
	80% {
		transform: translateY(0px) translateX(0px) rotate(0deg);
	}
	90% {
		transform: translateY(0px) translateX(0px) rotate(-1deg);
	}
	95% {
		transform: translateY(0px) translateX(0px) rotate(1deg);
	}
	100% {
		transform: translateY(0px);
	}
}

@keyframes upslide {
	0% {
		transform: translateY(0px);
		opacity: 1;
	}
	36% {
		transform: translateY(-192px) translateX(36px) scale(0.55) rotate(135deg);
		opacity: 1;
	}
	65% {
		transform: translateY(-192px) translateX(36px) scale(0.55) rotate(-225deg);
		opacity: 1;
	}
	75% {
		transform: translateY(-192px) translateX(36px) scale(0.55) rotate(-225deg);
		opacity: 1;
	}
}

.animation li {
  margin-top: 1rem;
  margin-bottom: 1rem;
  transition: opacity 0.3s ease;
  animation: animateli 2.1s ease;
}

.animation li:nth-child(1) { animation: animateli 1.5s ease; }
.animation li:nth-child(2) { animation: animateli 1.9s ease; }
.animation li:nth-child(3) { animation: animateli 2.3s ease; }
.animation li:nth-child(4) { animation: animateli 2.7s ease; }
.animation li:nth-child(5) { animation: animateli 3.1s ease; }
.animation li:nth-child(6) { animation: animateli 3.5s ease; }
.animation li:nth-child(7) { animation: animateli 3.9s ease; }

.interactive-symbol {
  display: inline;
  opacity: 0;
  position: absolute;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.detail {
  display: inline-block;
  cursor: default;
  transition: transform 0.1s ease, color 1s ease;
}

.detail:hover {
  color: #1d3557;
  transform: translateY(-1px);
}

.detail:hover .interactive-symbol {
  opacity: 1;
  animation: upslide 4s ease;
}

.detail:not(:hover) .interactive-symbol {
  transform: translate(0,0);
}


.content-section a {
	display: inline-block;
	text-decoration: underline;
	color: var(--animation-a-color);
	transition: text-decoration 0.3s ease, color 0.2s ease;
}

.content-section a:hover {
	color: lightblue;
	text-decoration: none;
}

@media (max-width: 767px) {
	main {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	.overview-wrapper {
		flex-direction: column;
	}
	.content-section {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}
	.neben-overview {
		padding-right: 0 !important;
	}
}