:root {
	--h1-font-size: 1.4rem;
	--h2-font-size: 1rem;
	
	--angebote-section-color: #2a2a2a;
	--angebote-section-h2-color: #0b3954;
	
	--offer-title: linear-gradient(140deg, rgb(84 161 51 / 90%), rgb(73 157 58 / 90%), rgb(15 75 24 / 90%));
	--offer-undertitle: #002500e3;
	--offer-search-color: #333;
	--offer-search-background: rgba(33, 150, 243, 0.2);
	
	--color-grade: rgba(255, 255, 255, 0.75);
	--discovery-item-background: rgba(239, 239, 239, 0.15);
	--discovery-item-background-hover: linear-gradient(165deg, #72f3881f, #0a7dbd1a);
	--dezent-invert-border-button: 1px solid rgba(7, 140, 41, 0.15);
	--dezent-invert-border-button-hover: 1px solid rgba(11, 157, 49, 0.35);
}

[data-font-size="large"] {
	--h1-font-size: 1.6rem;
	--h2-font-size: 1.2rem;
}

[data-theme="dark"] {
	--angebote-section-color: #e7e7dc;
	--angebote-section-h2-color: #1479b6;
	
	--offer-title: linear-gradient(140deg, rgb(84 161 51 / 90%), rgb(75 255 43 / 90%), rgb(15 75 24 / 90%));
	--offer-undertitle: #ffffff;
	--offer-search-color: white;
	--offer-search-background: rgba(252, 252, 252, 0.2);
	
	--color-grade: rgba(10, 39, 37, 0.75);
	--discovery-item-background: rgba(51, 47, 47, 0.15);
	--discovery-item-background-hover: linear-gradient(165deg, #72f3881f, #0a49bd1a);
	--dezent-invert-border-button: 1px solid rgba(156, 255, 164, 0.1);
	--dezent-invert-border-button-hover: 1px solid rgba(100, 233, 111, 0.25);
}

/* === DISCOVERY LAYER === */

.discovery-layer {
    padding: 0 0.5rem;
	padding-top: 1.5rem;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1.25rem;
}

.angebot-overlay {
    position: absolute;
    inset: 0;
    /*background: linear-gradient(to top, var(--color-grade), transparent);*/
	z-index: 0;
}

.discovery-title {
	display: inline-flex;
	flex-direction: column;
	text-align: center;
	gap: 0.5rem;
	z-index: 1;
}

@font-face {
    font-family: 'Sansation';
    src: url('../lib/fonts/Sansation/Sansation-Bold.woff2') format('woff2'),
        url('../lib/fonts/Sansation/Sansation-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

.discovery-title h1 {
	font-family: 'Sansation';
	position: relative;
    font-size: calc(var(--font-size-larger) + clamp(2.75rem, 6vw, 4rem));
	text-align: center;
	background: var(--offer-title);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin: 0;
	z-index: 2;
	text-shadow: 1px 1px 6px rgba(0, 255, 0, 0.3);
}

.discovery-title p {
    font-size: calc(var(--font-size-larger) + clamp(0.95rem, 2.5vw, 1.2rem));
	text-align: center;
	color: var(--offer-undertitle);
	margin: 0;
}

.discovery-stream {
    display: grid;
	grid-template-columns: repeat(3, 1fr);
	min-width: clamp(280px, 40vw, 600px);
    gap: clamp(0.25rem, 1.5vw, 1rem);
    padding: 0.25rem 0;
	justify-content: center;
	margin-bottom: 1rem;
}

.discovery-item {
	position: relative;
	font-size: calc(clamp(0.85rem, 2vw, 1rem) + var(--font-size-larger));
    padding: clamp(0.75rem, 1.5vw, 1.25rem);
    border: var(--dezent-invert-border-button);
	border-radius: 8px;
    backdrop-filter: blur(6px);
    transition: border 0.3s ease, background 0.3s ease, transform 0.3s ease;
	cursor: pointer;
	color: var(--color-invert);
	text-decoration: none;
	background: var(--discovery-item-background);
	overflow: hidden;
}

.discovery-item:hover {
    border: var(--dezent-invert-border-button-hover);
}

.discovery-item::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--discovery-item-background-hover);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.discovery-item:hover::before {
	opacity: 1;
}

.discovery-item::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 200%;
	height: 100%;
	transform: translateX(-100%);
	transition: transform 1s ease;
	background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
	opacity: 0;
	pointer-events: none;
}

.discovery-item:hover::after {
	opacity: 1;
	transform: translateX(0);
}

/* == MAIN PART === */

.inner-angebote-layer {
	/*background: linear-gradient(to bottom, var(--color-grade), transparent);*/
	padding: 0 2rem;
}

/* == SUCHE == */

.dezent-wrapper {
	display: flex;
	gap: 1rem;
	align-self: start;
	align-items: center;
}

.search {
	display: inline-flex;
	flex-direction: column;
	gap: 0.25rem;
	text-align: center;
}

.search p {
	margin: 0;
}

.search-container {
    position: relative;
	justify-self: left;
}

.search-container input[type="text"] {
	font-family: 'Inter', 'Arial', sans-serif;
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem; /* rechts Platz für Icon */
    font-size: 1rem;
	color: var(--offer-search-color);
	font-weight: 500;
	width: 100%;
    box-sizing: border-box;
	background: var(--offer-search-background);
	border: none;
	border-radius: 16px;
	resize: vertical; /* erlaubt Höhe verändern */
	transition: all 0.3s ease;
}
  
.search-container input:focus {
	outline: 1px solid;
	border: none;
}
  
.search-container input::placeholder {
	color: var(--offer-search-color);
	opacity: 0.5;
}

.search-container button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 36px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.search-container button svg {
    width: 20px;
    height: 20px;
    fill: #444;
}
  
.search-container button:hover svg {
	animation: smoothCircleBottomSmall 0.8s ease;
}

/* === INNER TITLE === */

.main-title h1 {
	display: inline;
	margin: 0;
}

/* ANGEBOTE NAV */

.angebote-active-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.angebote-active-wrapper h1 {
	text-align: center;
}

.angebote-active-wrapper a {
	color: inherit;
	text-decoration: none;
}

.deactive-angebote-link {
	text-decoration: underline !important;
	color: #1479b6!important;
	transition: all 0.2s ease;
}

.deactive-angebote-link:hover {
	text-decoration: none !important;
	color: lightblue !important;
}

/* direct inner */

.angebot-img-wrapper {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

.overview {
	position: relative;
	flex: 1;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	position: relative;
	will-change: transform, opacity;
	backface-visibility: hidden;
	text-align: center;
	max-width: 35rem;
	z-index: 0;
	box-shadow: 0 -4px 6px -4px rgba(0, 0, 0, 0.3);
	outline: 1px solid var(--angebot-outline-color);
}

.overview img {
	width: 100%;
	height: 100%;
}

.overview::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transition: transform 0.8s ease;
  transform: scale(1);
  z-index: -1;
  will-change: transform;
  background: var(--angebot-bg-img);
}

/* Hover-Effekt: Pseudo-Element vergrößern */
.overview:hover::before {
	transform: scale(1.05);
}

/* Outlines alt

.angebot-outline-purple {
  outline: 1px solid #e649eb;
}

.angebot-outline-darkblue {
  outline: 1px solid #304b7c;
} */

/* Allgemein */

.overview h1 {
	margin-bottom: 5px;
	font-size: var(--h1-font-size);
	color: var(--angebot-h1-color);
}

.overview h2 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: var(--h2-font-size);
	color: var(--angebot-h2-color);
}

/* TEMPLATES */

/* Neon */

.overview .h1-in-neonblue {
  text-shadow: -1px -1px 0 #00ffff, 1px  1px 0 #ff00ff;
}

/* White */

.overview .h2-in-white {
  text-shadow: -0.5px -0.5px 0 white, 0.5px  0.5px 0 white;
}

/* Gold */

.overview .h1-in-gold {
  text-shadow: -1px -1px 0 #ffffe2, 1px  1px 0 #ffffe2;
}

.overview .h2-in-gold {
  text-shadow: -0.5px -0.5px 0 #ffffe2, 0.5px  0.5px 0 #ffffe2;
}

/* ANGEBOTE SECTION */

.a-psy,
.a-mus {
	position: relative;
	overflow: hidden;
	z-index: 0;
	padding: 0.4rem 0.2rem;
	border-radius: 8px;
}

.a-psy::before,
.a-mus::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transition: transform 0.8s ease;
  transform: scale(1);
  z-index: -1;
}

.a-psy:hover::before,
.a-mus:hover::before {
	transform: scale(2);
}

.a-psy {
	background: url('../sources/assets/source-a/image_large_7a76b470-e6aa-4027-860b-b488860b1f2ffff2.avif') center / cover no-repeat;
}

.a-mus {
	background: url('../sources/assets/source-a/image_large_b99171cf-0732-419e-b0df-25d02e6e35e22222.avif') center / cover no-repeat;
}

/* == ANGEBOT BESCHREIBUNG == */

.main-title {
	text-align: center;
}

.angebote-section {
  margin: 2.5rem auto;
  margin-top: 0;
  padding-top: 0.5rem;
  border-radius: 0.8rem;
  font-family: system-ui, sans-serif;
  color: var(--angebote-section-color);
}

.angebote-section h2 {
  font-size: calc(1.5rem + var(--font-size-large));
  color: var(--angebote-section-h2-color);
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
  border-left: 4px solid #1e90ff;
  padding-left: 0.6rem;
}

.angebote-section p {
  font-size: calc(1rem + var(--font-size-larger));
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.angebote-section ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.angebote-section ul li {
  margin-bottom: 2rem;
}

.angebote-section a {
  color: #0077cc;
  text-decoration: none;
}

.angebote-section a:hover {
  text-decoration: underline;
}

/* Deactive ANGEBOTE */

.angebote-deactive-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 4rem;
}

.angebote-deactive-wrapper h1 {
	text-align: center;
}

.angebote-deactive-wrapper a {
	color: inherit;
	text-decoration: none;
}

/* === SYSTEM INFO STRIP ==== */

.system-strip {
    display: flex;
	flex-wrap: nowrap;
    font-size: clamp(0.5rem, 2vw, 0.85rem);
    opacity: 0.6;
    border-top: 1px dashed rgba(255,255,255,0.1);
	justify-content: center;
	padding: 0 clamp(0rem, 2vw, 1.5rem);
}

.system-strip span {
	padding: 0.5rem clamp(0.5rem, 2.5vw, 2.5rem);
	border-right: 1px solid rgba(127, 127, 127, 0.15);
	border-left: 1px solid rgba(127, 127, 127, 0.15);
}

/* === MEDIA === */

@media (max-width: 767px) {
	:root {
		--h1-font-size: 1.1rem !important;
		--h2-font-size: 0.7rem !important;
	}
	body.large-fonts {
		--h1-font-size: 1.3rem !important;
		--h2-font-size: 0.9rem !important;
	}
}

@media (max-width: 376px) {
	.angebot-img-wrapper {
		flex-direction: column;
	}

}