:root {
	--red: #e40038;
	--orange: #ea8800;
	--yellow: #fff333;
	--green: #1d8d1d;
	--lightblue: #00a1cc;
	--darkblue: #001177;
	--purple: #771177;
	--black: #000000;
	--white: #ffffff;
}

html,
body {
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
}

body {
	background-color: var(--black);
	color: var(--white);

	font-family: "Montserrat";

	font-size: 1.2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: bold;
}

a {
	color: var(--white);
	text-decoration: none;
	font-weight: bold;
}

a article {
	font-weight: normal;
}

img {
	max-width: 100%;
	height: auto;
}

/* initialize flex layout */
header {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-bottom: 25px;
}

header,
footer,
#page,
#blog,
#blog-post {
	margin: 0 auto;
}

#page {
	max-width: 960px;
	padding: 20px;
	margin: 0 auto;
}

#page-content {
	min-height: calc(100vh - 840px);
}

#site-name {
	font-family: "Emilys Candy";
	text-align: center;
	line-height: 1;
	font-size: min(3vw, 26px);
}

#site-name h1 {
	margin-top: 0;
	margin-bottom: 1%;
}
/* header */
#card-header {
	margin-bottom: -10px;
}

#card-content {
	background: #000000;
	padding: 20px 40px;
}

/* background */
#card-header,
#background,
#lanterns {
	pointer-events: none;
	user-drag: none;
	user-select: none;
}

#background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url("../img/background.webp") no-repeat center center fixed;
	background-size: cover;
	z-index: -2;
}

/* flowers */
#flowers {
	position: relative;
	width: 100%;
	height: 100%;
}

.flower {
	position: absolute;
	max-height: 20%;
	max-width: 40%;
	width: auto;
	height: auto;
}

.flower-upper-left {
	top: 0;
	left: 0;
}

.flower-upper-right {
	top: 0;
	right: 0;
	max-height: 15%;
}

.flower-middle-left {
	top: 45%;
	left: 0;
	transform: translateY(-50%);
}

.flower-middle-right {
	top: 55%;
	right: 0;
	transform: translateY(-50%);
}

.flower-bottom-left {
	bottom: 5%;
	left: 0;
}

.flower-bottom-right {
	bottom: -20px;
	right: 0;
}

#lanterns {
	overflow: hidden;
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
}

.lantern-container {
	position: absolute;
	width: 170px;
	height: auto;
	top: 0;
	transform-origin: top center; /* Ensure the pivot point is at the top */
	animation: swing 5s linear infinite;
}

.lantern-line {
	position: relative;
	top: 0;
	left: 50%;
	left: calc(50% - 2px);
	height: 150px;
	width: 2px;
	background: linear-gradient(to bottom, white, black);
	z-index: 12;

	margin-bottom: -45px;
}

.lantern-light {
	z-index: 10;
}

.lantern {
	z-index: 11;
}

.lantern-light,
.lantern {
	position: relative;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: auto;
}

.lantern-1 {
	left: 10%;
	animation-duration: 20s;
}

.lantern-1 .lantern-line {
	height: 400px;
}

.lantern-1 .lantern {
	margin-top: -5px;
	margin-left: 1px;
}

.lantern-2 {
	left: 50%;
	animation-duration: 20s;
}

.lantern-2 .lantern-line {
	height: 170px;
}

.lantern-2 .lantern {
	margin-left: -5px;
	margin-top: 5px;
}

.lantern-3 {
	left: 83.33%;
	animation-duration: 15s;
}

.lantern-3 .lantern-line {
	height: 300px;
}

.lantern-3 .lantern {
	margin-left: -5px;
}

@keyframes swing {
	0% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(5deg);
	}
	50% {
		transform: rotate(0deg);
	}
	75% {
		transform: rotate(-5deg);
	}
	100% {
		transform: rotate(0deg);
	}
}

/**
* Navigation
*/
nav ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

nav ul li {
	display: block;
	float: left;
}

nav ul li a {
	padding: 5px 12px;
	position: relative;
}

nav ul li:first-child a {
	padding-left: 0;
}

nav ul li:last-child a {
	padding-right: 0;
}

/* 
 * Main Menu
 */
#main-menu {
	margin: 0 auto;
}

#main-menu a {
	font-size: 1.4rem;
}

#main-menu > ul {
	margin: 0;
}

#social-media-menu img {
	width: 32px;
	height: 32px;
}

footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 100px;
}

#footer-menu {
	margin: 0 auto;
	margin-top: -20px;
}

#footer-menu a {
	font-weight: normal;
	font-size: 0.9rem;
}

/* Steckbriefe */
.profile-container {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 40px;
}

/* Optische Reihenfolge festlegen */
.profile-image {
	max-width: 100%;
	width: 300px;
	height: auto;
	border-radius: 10px;
	order: 2;
	flex-shrink: 0;
}

/* Mini-Tabelle zuerst anzeigen, links neben dem Bild */
.profile-table.mini {
	flex: 1;
	order: 1;
	margin-bottom: -10px;
}

/* Große Tabelle immer darunter in voller Breite */
.profile-table:not(.mini) {
	order: 3;
	width: 100%;
}

/* Tabellen Stil für beide gleichmäßig */
.profile-table {
	border-collapse: collapse;
}

.profile-table th {
	text-align: left;
	width: 200px;
	vertical-align: top;
	padding: 5px 10px 5px 0;
}

.profile-table td {
	padding: 5px 0;
	vertical-align: top;
}

.profile-table td > p:first-child,
.profile-table th > p:first-child {
	margin-top: 0;
}

/* Responsiv für Handy/Tablet */
@media screen and (max-width: 768px) {
	.profile-container {
		flex-direction: column;
	}

	.profile-image,
	.profile-table,
	.profile-table.mini {
		order: initial; /* Zurücksetzen der Reihenfolge für mobile Ansicht */
		width: 100%;
	}

	.profile-table th,
	.profile-table td {
		display: block;
		width: 100%;
		padding: 5px 0;
	}

	.profile-image {
		margin-bottom: 15px;

		max-height: 70vh;
		width: auto;
		height: auto;
	}
}
