/*
Theme Name: Personalisiertes Theme
Theme URI: https://www.tornau.name
Author: OpenAI
Description: A responsive editorial theme with an oversized image-led title area and compact mobile navigation.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: personal
*/

:root {
	--ink: #202a25;
	--paper: #f5f3ec;
	--blue: #eaf1fb;
	--green-deep: #344e3e;
	--coral: #d66f53;
	--line: rgba(32, 42, 37, 0.18);
	--page-gutter: max(4vw, calc((100vw - 1440px) / 2));
	--serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
	--sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
}

a {
	color: inherit;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -5rem;
	z-index: 20;
	padding: 0.75rem 1rem;
	background: var(--ink);
	color: white;
}

.skip-link:focus {
	top: 1rem;
}

.site-header {
	position: relative;
	z-index: 2;
}

.titlebar {
	position: relative;
	min-height: 500px;
	padding: 44px var(--page-gutter);
	background: var(--blue) url("assets/img/topbackground.png") center top / cover no-repeat;
}

.titlebar::after {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 56px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 43 C260 43 390 38 590 29 S970 13 1160 10 S1340 7 1440 3 L1440 56 L0 56 Z' fill='%23f5f3ec'/%3E%3Cpath d='M0 43 C260 43 390 38 590 29 S970 13 1160 10 S1340 7 1440 3' fill='none' stroke='%231c3f5c' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	content: "";
	pointer-events: none;
}

.titlebar-copy {
	position: relative;
	z-index: 2;
	width: min(59%, 670px);
	padding-top: 45px;
}

.site-brand {
	display: inline-block;
	margin-bottom: 70px;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
}

.site-title {
	margin: 0;
	font-family: var(--serif);
	font-size: 60px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 0.99;
}

.site-title a {
	text-decoration: none;
}

.site-description {
	max-width: 390px;
	margin: 24px 0 0;
	color: #43534a;
	font-size: 17px;
}

.linkedin-button {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 12px 8px 8px;
	background: rgba(255, 255, 255, 0.96);
	color: #0a66c2;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 2px 12px rgba(20, 38, 52, 0.18);
	transform: rotate(calc(-1.5deg - var(--scroll-rotation, 0deg)));
}

.linkedin-button:hover,
.linkedin-button:focus-visible {
	background: #fff;
	color: #084f94;
}

.linkedin-icon {
	display: grid;
	width: 26px;
	height: 26px;
	place-items: center;
	border-radius: 2px;
	background: #0a66c2;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
}

.titlebar-image {
	position: absolute;
	right: var(--page-gutter);
	bottom: -130px;
	z-index: 1;
	width: min(42%, 520px);
	height: 570px;
	margin: 0;
	border-radius: 8px;
	background: var(--paper);
	box-shadow: 18px 18px 0 rgba(52, 78, 62, 0.14);
	transform: rotate(calc(1.5deg + var(--scroll-rotation, 0deg)));
}

.titlebar-image::before {
	position: absolute;
	top: -48px;
	left: 22px;
	z-index: 2;
	width: 56px;
	height: 160px;
	border: 3px silver solid;
	border-radius: 28px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.65);
	content: "";
	transform: rotate(calc(-12deg - var(--scroll-rotation, 0deg))) scale(0.75);
}

.titlebar-image::after {
	position: absolute;
	top: -24px;
	left: 34px;
	z-index: 2;
	width: 28px;
	height: 110px;
	border: 3px silver solid;
	border-top: 0;
	border-radius: 0 0 20px 20px;
	content: "";
	transform: rotate(calc(-12deg - var(--scroll-rotation, 0deg))) scale(0.75);
}

.titlebar-image img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
}

.primary-navigation {
	position: relative;
	z-index: 0;
	width: calc(100% - var(--page-gutter) - var(--page-gutter) - min(42%, 520px) - 24px);
	min-height: 58px;
	margin: 0 auto 0 var(--page-gutter);
	padding: 0 24px 0 0;
	background: var(--paper);
}

.navigation-inner {
	display: flex;
	min-height: 56px;
	align-items: center;
	justify-content: flex-start;
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
	display: block;
	width: 19px;
	height: 2px;
	background: currentColor;
}

.menu-toggle-lines {
	position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
	position: absolute;
	left: 0;
	content: "";
}

.menu-toggle-lines::before {
	top: -6px;
}

.menu-toggle-lines::after {
	top: 6px;
}

.menu-list,
.menu-list ul {
	display: flex;
	align-items: center;
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-list a {
	display: block;
	padding: 17px 0;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.menu-list a::before {
	display: inline-block;
	width: 0;
	height: 0;
	margin-right: 9px;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 6px solid #111;
	content: "";
	vertical-align: 1px;
}

.menu-list a:hover,
.menu-list a:focus-visible {
	color: var(--coral);
}

.content-area {
	position: relative;
	z-index: 1;
	min-height: 380px;
	padding: 112px var(--page-gutter) 100px;
}

.content-inner {
	max-width: 1440px;
	margin: 0 auto;
}

.content-label {
	margin: 0 0 24px;
	color: var(--green-deep);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.post-list {
	width: min(72%, 900px);
}

.post-entry {
	padding: 0 0 30px;
	border-bottom: 1px solid var(--line);
}

.post-entry + .post-entry {
	padding-top: 26px;
}

.post-title {
	margin: 0 0 10px;
	font-family: var(--serif);
	font-size: 34px;
	font-weight: 400;
	line-height: 1.15;
}

.post-title a {
	text-decoration-color: transparent;
	text-underline-offset: 4px;
}

.post-title a:hover,
.post-title a:focus-visible {
	text-decoration-color: currentColor;
}

.post-meta {
	margin: 0 0 12px;
	color: #58665d;
	font-size: 12px;
}

.post-excerpt > :last-child {
	margin-bottom: 0;
}

.read-more {
	display: inline-block;
	margin-top: 14px;
	color: var(--green-deep);
	font-size: 13px;
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.pagination {
	margin-top: 30px;
}

.site-footer {
	padding: 24px var(--page-gutter);
	border-top: 2px solid #1c3f5c;
	border-bottom: 2px solid #1c3f5c;
	color: #58665d;
	font-size: 12px;
}

.site-footer p {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1440px;
	margin: 0 auto;
}

.ai-template-marker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--green-deep);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.ai-template-icon {
	display: inline-grid;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, #ed5967 0%, #f4a340 25%, #f5df58 45%, #53bf78 62%, #4d9ee8 80%, #a76be0 100%);
	font-size: 14px;
	line-height: 1;
}

@media (max-width: 979px) {
	.titlebar {
		min-height: 320px;
		padding: 28px 6vw;
	}

	:root {
		--page-gutter: 6vw;
	}

	.titlebar-copy {
		width: 58%;
		padding-top: 18px;
	}

	.site-brand {
		max-width: 100%;
		margin-bottom: 24px;
		font-size: 25px;
		line-height: 1.25;
		white-space: normal;
	}

	.site-title {
		font-size: clamp(26px, 4vw, 40px);
	}

	.site-description {
		max-width: 100%;
		font-size: 15px;
	}

	.titlebar-image {
		top: 46px;
		right: 6vw;
		bottom: auto;
		width: 34%;
		height: 210px;
	}

	.titlebar-image::before,
	.titlebar-image::after {
		display: none;
	}

	.linkedin-button {
		top: 10px;
		right: 10px;
	}

	.primary-navigation {
		width: calc(100% - 6vw - 6vw - 34% - 12px);
		padding-right: 12px;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.menu-list {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		align-items: stretch;
		gap: 0;
		padding: 8px 12px 18px;
		border-bottom: 1px solid var(--line);
		background: var(--paper);
	}

	.menu-list.is-open {
		display: block;
	}

	.menu-list a {
		padding: 12px 0;
	}

	.menu-list ul {
		display: block;
		padding-left: 18px;
	}

	.content-area {
		padding: 10px 6vw 70px;
	}

	.post-list {
		width: min(100%, 720px);
	}

	.site-footer {
		padding-right: 6vw;
		padding-left: 6vw;
	}
}

@media (max-width: 430px) {
	.titlebar {
		min-height: 320px;
	}

	.titlebar-copy {
		width: 56%;
	}

	.site-brand {
		margin-bottom: 20px;
	}

	.site-title {
		font-size: 26px;
	}

	.site-description {
		max-width: 100%;
		font-size: 14px;
	}

	.titlebar-image {
		top: 46px;
		right: 6vw;
		bottom: auto;
		width: 38%;
		height: 190px;
	}

	.primary-navigation {
		width: calc(100% - 6vw - 6vw - 38% - 12px);
	}

	.linkedin-button-label {
		display: none;
	}

	.post-title {
		font-size: 29px;
	}
}

@media (max-width: 360px) {
	.site-title {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}