:root {
	--develop-title-color: linear-gradient(90deg, #5b25c5, #9033f5);
	--change-logs-color: #710ecb;
	--functions-color: #39157f;
	--column-h2-color: #4438ab;
	--column-background: #eaedf3;
	--link-color: #0058ff;
	
	--function-section-active-color: #2aafff;
	
	--definition-color1: #0b788d;
}

[data-theme="dark"] {
	--develop-title-color: linear-gradient(80deg, #8647ff, #7bd4f1);
	--change-logs-color: #a77bff;
	--functions-color: #a77bff;
	--column-h2-color: #7868ff;
	--column-background: #1a1d25;
	--link-color: #6b9bf7;
	
	--function-section-active-color: #bbacff;
	
	--definition-color1: #28c9c2;
}

/* === SITE TITLE === */

.entwicklung-title h1 {
	text-align: center;
	margin-top: 0;
	font-size: calc(var(--font-size-large) + 2.5rem);
}

.entwicklung-title h1 span {
	background: var(--develop-title-color);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* == LOGS MAIN == */

.main-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    font-family: "Segoe UI", sans-serif;
  }

.column-wrapper {
	flex: 1 1 45%;
	display: flex;
}

/* == UNIVERSAL COLUMN == */

.column {
	background: var(--column-background);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,255,255,0.1);
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* = COLUMN DYNAMIC SPACER TEST = */

.column .spacer-wrapper {
	flex: 1;
	display: flex;
	position: relative;
	margin-top: 1rem;
	overflow: hidden;
}

@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;
}


.column .spacer-wrapper .spacer-content {
	position: absolute;
	top: 1.1rem;
	width: 100%;
	display: none;
	background: linear-gradient(90deg, #ff021a, #ffe6e6, #0703ff);
	-webkit-background-clip: text; 
	background-clip: text; 
	-webkit-text-fill-color: transparent;
	font-family: 'Sansation', arial;
	font-size: calc(var(--font-size-larger) + 1.3rem);
	text-shadow: 0 0 15px rgba(147, 240, 255,0.9);
	text-align: center;
}

.column .spacer-wrapper .visible {
	display: flex;
	flex-direction: column;
}

.column .spacer {
	flex: 1;
	border-radius: 12px;
	outline: 1px solid #2e3035;
	overflow: hidden;
	background-position: center;
	background-size: cover;
	z-index: 0;
	display: none;
	-webkit-mask-image:
    linear-gradient(to right, transparent 0px, black 50px, black calc(100% - 50px), transparent 100%),
    linear-gradient(to bottom, transparent 0px, black 50px, black calc(100% - 50px), transparent 100%);

	mask-image:
    linear-gradient(to right, transparent 0px, black 50px, black calc(100% - 50px), transparent 100%),
    linear-gradient(to bottom, transparent 0px, black 50px, black calc(100% - 50px), transparent 100%);

	mask-composite: intersect;
	-webkit-mask-composite: source-in;
}

.column .spacer::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	background-image: repeating-linear-gradient(
    45deg,
    rgba(179, 137, 137,0.05),
    rgba(63, 36, 107,0.05) 10px,
    transparent 10px,
    transparent 20px
  );
	z-index: 1;
}

/* = NORMAL COLUMN CONTINUE = */

.column h1 {
    font-size: calc(var(--font-size-larger) + 1.8rem);
    margin-bottom: 1rem;
}
  
.column h2 {
	font-size: calc(var(--font-size-larger) + 1.3rem);
	margin-top: 1.5rem;
	color: var(--column-h2-color);
}

.column-p {
    font-size: calc(var(--font-size-larger) + 1rem);
    line-height: 1.6;
}

.column a {
    color: var(--link-color);
    text-decoration: none;
}

.column a:hover {
    text-decoration: underline;
}

.column .new {
	color: var(--definition-color1);
}

/* HIGHLIGHT */

.highlight {
	background: rgb(60 51 130 / 33%);
    outline: 1px solid #593189;
}

/* PAGINATOR */

#pagination {
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
}

#pagination svg {
	height: 24px;
	width: 24px;
	fill: var(--text-color);
}

#pagination button {
    cursor: pointer;
	background: transparent;
	border: none;
}

#pagination button.invisible {
    opacity: 0;
    pointer-events: none;
}

#pagination button:disabled {
    cursor: default;
}

#pageStatus {
    margin: 0 0.5rem;
	padding-top: 0.1rem;
    font-weight: 600;
}

/* DATE */
  
.date-detail {
	display: flex;
	flex-direction: column;
	margin-top: 0.5rem;
}

.date-detail .date {
	font-weight: 500;
}

.date-detail .before {
}
	
.p-detail {
	display: flex;
	gap: 0.5rem;
	margin-top: 0;
	margin-bottom: 0;
	font-size: 0.9rem;
	line-height: 1.3;
	justify-content: center;
}

/* == CHANGE LOGS == */

.change-logs h1 {
	background: linear-gradient(90deg, var(--change-logs-color), #0077ff);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.change-logs h1 svg {
	width: 24px;
	height: 24px;
	fill: #0077ff;
}

.change-logs strong {
	color: #007deb;
}

.change-logs .change-log-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding-left: 1.5rem;
}

.change-logs ul li ul {
	margin-top: 0.3rem;
	padding-left: 1.5rem;
}

.change-logs ul li ul li {
	margin: 0.15rem 0;
}

.change-logs ul li ul li::marker {
	content: "-  ";
}

/* DEFINITION INFO */

.definition-info {
	display: inline-block;
}

.definition-info a {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	height: 12px;
	width: 12px;
}

.definition-info a:hover {
	color: inherit;
	text-decoration: none;
}

.definition-info svg {
	fill: var(--definition-color1);
	vertical-align: middle;
}

  
/* == FUNKTIONS == */

.functions h1 {
	background: linear-gradient(90deg, var(--functions-color), #7868ff);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.functions h1 svg {
	width: 24px;
	height: 24px;
	fill: var(--functions-color);
}

.function-section {
	border-radius: 8px;
	margin-top: 1rem;
}

.function-section.active {
	padding: 0 0.5rem;
	padding-top: 0.3rem;
}

.function-section .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Wenn UL active → rotiere Pfeil im gleichen Container */
.function-section.active .arrow {
    transform: rotate(180deg);
}

.functions .ul-list {
	display: none;
	transition: all 0.3s ease;
}

.function-section.active .ul-list {
    display: block;
}

.function-section h2 {
	cursor: pointer;
	transition: color 0.2s ease;
	margin: 0;
}

.function-section.active h2 {
	color: var(--function-section-active-color);
	cursor: default;
}

.function-section:not(.active) h2:hover {
	color: var(--function-section-active-color);
}

.function-section ul {
    padding-left: 2rem;
	padding-right: 1.5rem;
}

.function-section ul li {
    padding: 0.4rem 0;
}

/* === CONCEPTS === */

.concepts {
	padding: 2rem;
}

.concepts-section h1 {
	background: linear-gradient(90deg, var(--definition-color1), #2512c5);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.concepts-section h1 svg {
	height: 22px;
	width: 22px;
	fill: var(--definition-color1);
}

.concepts-section h3 {
	color: #21b371;
}

.concepts-section ul {
	list-style: auto;
}

.concepts-section ul li::marker {
	font-size: 1.1rem;
	font-weight: 500;
	color: #27b2c2;
}


@media (max-width: 768px) {
    .column {
      flex: 1 1 100%;
    }
}
  
@media (max-width: 525px) {
    .main-wrapper,
	.concepts	{
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.entwicklung-title h1 {
		margin-bottom: 0;
	}
	.change-logs {
		order: 1;
	}
	.functions {
		order: 2;
	}
}

@media (max-width: 425px) {
    .column {
      padding:1rem;
    }
}