@font-face {
	font-family: "Habibi";
	src: url("../fonts/habibi-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Habibi";
	src: url("../fonts/habibi-latin-ext.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
		U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}

@font-face {
	font-family: "Geist";
	src: url("../fonts/geist-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Geist";
	src: url("../fonts/geist-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
		U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}

:root {
	--white: #fbf5ef;
	--black: #1a0a06;
	--accent: #e55639;
	/* Abgedunkelter Akzent für Text und Textflächen: erreicht 4.5:1 auf
	   hellem Grund. Der helle Akzent kommt nur auf 3.39:1 und bleibt
	   daher rein grafischen Elementen vorbehalten. */
	--accent-text: #c2361a;

	--black-80: rgba(26, 10, 6, 0.8);
	--black-60: rgba(26, 10, 6, 0.6);
	--black-10: rgba(26, 10, 6, 0.1);
	--black-5: rgba(26, 10, 6, 0.05);
	/* Gedämpfter Text auf getönten Flächen: 60 % kommt dort nur auf
	   4.48:1, dieser Wert erreicht 5.34:1 und bleibt optisch gleich. */
	--black-muted: rgba(26, 10, 6, 0.65);

	--font-display: "Habibi", "Iowan Old Style", "Palatino Linotype", Palatino,
		Georgia, "Times New Roman", serif;
	--font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;

	--sidebar-width: 360px;
	--content-width: 640px;
	--gutter: 24px;

	--section-padding: 64px;
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-full: 999px;

	--transition: 160ms ease;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 24px;
}

body {
	margin: 0;
	background-color: var(--white);
	color: var(--black);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: -0.02em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol,
dl {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

::selection {
	background-color: var(--accent-text);
	color: var(--white);
}

/* ---------------------------------------------------------------- Typografie */

.h1,
h1 {
	font-family: var(--font-display);
	font-size: 40px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.h2,
h2 {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.h3,
h3 {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.28;
	letter-spacing: 0;
}

.display {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.28;
	letter-spacing: -0.02em;
}

.body-l {
	font-size: 18px;
	line-height: 1.4;
}

.body-m {
	font-size: 16px;
	line-height: 1.4;
}

.body-s {
	font-size: 14px;
	line-height: 1.4;
}

.body-xs {
	font-size: 12px;
	line-height: 1.4;
}

.medium-s {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.muted {
	color: var(--black-60);
}

/* ---------------------------------------------------------------- Grundgerüst */

.skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 10px 16px;
	background-color: var(--black);
	color: var(--white);
	font-size: 14px;
	font-weight: 500;
	border-radius: var(--radius-md);
	transform: translateY(-200%);
	transition: transform var(--transition);
}

.skip-link:focus-visible {
	transform: translateY(0);
}

.layout {
	display: grid;
	grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
	grid-template-areas:
		"profile topbar"
		"profile main";
	align-items: start;
	max-width: 1440px;
	margin-inline: auto;
}

/* Menüleiste sitzt in der Inhaltsspalte, nicht über der Profilspalte */
.topbar-wrap {
	grid-area: topbar;
	display: flex;
	justify-content: center;
	padding-inline: var(--gutter);
}

.main {
	grid-area: main;
	display: flex;
	justify-content: center;
	padding-inline: var(--gutter);
}

.main__inner {
	width: 100%;
	max-width: var(--content-width);
}

/* ---------------------------------------------------------------- Profilkarte */

.profile {
	grid-area: profile;
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	gap: var(--gutter);
	height: 100vh;
	max-height: 100vh;
	padding: var(--gutter);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.profile__card {
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding-bottom: var(--gutter);
	border-bottom: 1px solid var(--black-10);
}

.profile__photo {
	width: 192px;
	height: 192px;
	object-fit: cover;
}

.profile__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.profile__identity {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.profile__role {
	color: var(--black-60);
}

.profile__signature {
	width: 96px;
	height: auto;
	opacity: 0.8;
}

.profile__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--black-60);
}

.profile__meta li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.profile__meta .icon {
	flex: none;
	color: var(--black-60);
}

.profile__footer {
	display: flex;
	flex-direction: column;
	gap: var(--gutter);
	margin-top: auto;
}

.profile__actions {
	display: flex;
	gap: 8px;
}

.profile__actions .btn {
	flex: 1;
}

.profile__actions .btn--icon {
	flex: none;
}

/* ---------------------------------------------------------------- Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 16px;
	min-height: 36px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	border-radius: var(--radius-md);
	transition: background-color var(--transition), color var(--transition),
		border-color var(--transition);
}

.btn--primary {
	background-color: var(--black);
	color: var(--white);
}

.btn--primary:hover {
	background-color: var(--accent-text);
}

.btn--secondary {
	background-color: var(--black-5);
	color: var(--black);
}

.btn--secondary:hover {
	background-color: var(--black-10);
}

.btn--icon {
	width: 40px;
	padding-inline: 0;
}

.btn--block {
	display: flex;
	width: 100%;
}

.btn--large {
	justify-content: space-between;
	width: 100%;
	padding: 16px;
	min-height: 64px;
	font-size: 16px;
}

.btn--large .btn__label {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Gestapelte Logos im "View Experience"-Button */
.avatar-stack {
	display: flex;
	flex: none;
}

.avatar-stack img {
	width: 24px;
	height: 24px;
	border-radius: var(--radius-full);
	border: 2px solid var(--white);
	object-fit: cover;
}

.avatar-stack img + img {
	margin-left: -8px;
}

/* ---------------------------------------------------------------- Social */

.social {
	display: flex;
	gap: 4px;
}

.social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--black-60);
	border-radius: var(--radius-md);
	transition: color var(--transition), background-color var(--transition);
}

.social a:hover {
	color: var(--accent-text);
	background-color: var(--black-5);
}

/* ---------------------------------------------------------------- Navigation */

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	max-width: var(--content-width);
	min-height: 68px;
}

.topbar__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.topbar__logo img {
	width: 32px;
	height: 32px;
}

.topbar__nav {
	display: flex;
	gap: 24px;
	margin-right: auto;
	margin-left: 24px;
}

.topbar__nav a {
	font-size: 16px;
	color: var(--black-80);
	transition: color var(--transition);
}

.topbar__nav a:hover,
.topbar__nav a[aria-current="true"] {
	color: var(--accent-text);
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-md);
	background-color: var(--black-5);
}

/* Kontaktpunkt im aufgeklappten Menü — auf großen Schirmen ersetzt ihn der Button */
.topbar__nav .nav-contact {
	display: none;
}

/* ---------------------------------------------------------------- Hero */

.hero {
	display: flex;
	flex-direction: column;
	gap: 40px;
	/* im Entwurf beginnt der Inhalt 160px unter der Oberkante,
	   davon entfallen 68px auf die Menüleiste */
	padding-top: 92px;
	padding-bottom: 104px;
}

.hero__illustration {
	width: 100%;
	max-width: 160px;
	margin-inline: auto;
}

.hero__title {
	text-align: center;
}

.hero__subtitle {
	max-width: 520px;
	margin-inline: auto;
	color: var(--black-60);
	text-align: center;
}

/* ---------------------------------------------------------------- Sektionen */

.section {
	padding-block: var(--section-padding);
	border-top: 1px solid var(--black-10);
}

.section__header {
	margin-bottom: 40px;
}

.section--tight .section__header {
	margin-bottom: 24px;
}

.section--about .section__header {
	margin-bottom: 16px;
}

.prose {
	color: var(--black-80);
}

.prose + .prose {
	margin-top: 16px;
}

/* ---------------------------------------------------------------- Tags */

.tag-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag {
	padding: 6px 12px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--black-80);
	background-color: var(--black-5);
	border-radius: var(--radius-md);
}

.subhead {
	margin-bottom: 12px;
	font-weight: 500;
}

/* ---------------------------------------------------------------- Einträge */

.entries {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.entry {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 16px;
}

.entry--flush {
	grid-template-columns: minmax(0, 1fr);
}

.entry__logo {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-md);
	object-fit: cover;
}

.entry__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	grid-column: 2;
}

.entry--flush .entry__body {
	grid-column: 1;
	margin-left: 64px;
}

.entry__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.entry__title {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.entry__meta,
.entry__period {
	color: var(--black-60);
	font-size: 14px;
	line-height: 1.4;
}

.entry__period {
	flex: none;
	padding-top: 4px;
	white-space: nowrap;
}

/* Ist die Zeitangabe ein Link (Empfehlungen), braucht sie eine
   Mindestzielgröße von 24px — das Icon allein misst nur 20px. */
a.entry__period {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding-top: 0;
	margin: -4px;
	color: var(--black-60);
	border-radius: var(--radius-md);
	transition: color var(--transition), background-color var(--transition);
}

a.entry__period:hover {
	color: var(--accent-text);
	background-color: var(--black-5);
}

.entry__text {
	color: var(--black-80);
}

.entry__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--black-80);
}

.entry__list li {
	position: relative;
	padding-left: 18px;
	font-size: 14px;
	line-height: 1.4;
}

.entry__list li::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 2px;
	width: 4px;
	height: 4px;
	background-color: var(--black-60);
}

/* Zertifikate: klickbare Zeile mit Pfeil */
.entry--link {
	align-items: center;
	padding: 4px;
	margin: -4px;
	border-radius: var(--radius-md);
	grid-template-columns: 48px minmax(0, 1fr) 24px;
	transition: background-color var(--transition);
}

.entry--link:hover {
	background-color: var(--black-5);
}

.entry--link .entry__body {
	gap: 2px;
}

.entry--link .entry__arrow {
	grid-column: 3;
	color: var(--black-60);
	transition: color var(--transition), transform var(--transition);
}

.entry--link:hover .entry__arrow {
	color: var(--accent-text);
	transform: translate(2px, -2px);
}

.entry--plain {
	grid-template-columns: minmax(0, 1fr);
}

.entry--plain .entry__body {
	grid-column: 1;
	margin-left: 0;
}

.subhead--spaced {
	margin-top: 24px;
}

.subhead--gap {
	margin-top: 32px;
}

/* ---------------------------------------------------------------- Sprachen */

.languages {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.language {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
}

.language__flag {
	width: 48px;
	height: 34px;
	border-radius: var(--radius-sm);
	object-fit: cover;
}

.language__name {
	display: block;
}

/* ---------------------------------------------------------------- Tech-Logos */

.tech {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin-top: 16px;
}

.tech li {
	display: flex;
}

.tech svg {
	width: 32px;
	height: 32px;
}

/* ---------------------------------------------------------------- Kontakt */

.contact {
	display: flex;
	flex-direction: column;
	gap: 104px;
	padding-block: 104px;
	border-top: 1px solid var(--black-10);
	text-align: center;
}

.contact__intro {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.contact__heading {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.contact__lead {
	max-width: 420px;
	margin-inline: auto;
	color: var(--black-60);
}

.contact__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.contact-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	text-align: left;
	background-color: var(--black-5);
	border-radius: var(--radius-md);
	transition: background-color var(--transition);
}

.contact-card:hover {
	background-color: var(--black-10);
}

.contact-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	color: var(--white);
	background-color: var(--accent);
	border-radius: var(--radius-md);
}

.contact-card__label {
	display: block;
}

.contact-card__value {
	display: block;
	color: var(--black-60);
	font-size: 14px;
	line-height: 1.4;
}

.contact__network {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.contact__illustration {
	width: 100%;
	max-width: 320px;
	margin-inline: auto;
}

/* ---------------------------------------------------------------- Footer */

.footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 16px;
	border-top: 1px solid var(--black-10);
	color: var(--black-60);
	font-size: 14px;
}

.footer a {
	transition: color var(--transition);
}

.footer a:hover {
	color: var(--accent-text);
}

/* ---------------------------------------------------------------- Unterseiten */

.page {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 40px;
	min-height: calc(100vh - 92px);
	padding-block: 104px;
	text-align: center;
}

.page__illustration {
	width: 100%;
	max-width: 160px;
	margin-inline: auto;
}

.page__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.page__lead {
	max-width: 440px;
	margin-inline: auto;
	color: var(--black-60);
}

.page__action {
	display: flex;
	justify-content: center;
}

.page__action .btn {
	flex: none;
	padding-inline: 20px;
}

.licenses {
	padding-block: 104px 64px;
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.licenses__intro {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
}

.licenses__lead {
	max-width: 480px;
	margin-inline: auto;
	color: var(--black-60);
}

.licenses__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background-color: var(--black-10);
	border: 1px solid var(--black-10);
}

.license {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
	background-color: var(--white);
}

.license__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--white);
	background-color: var(--accent);
	border-radius: var(--radius-md);
}

.license__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.license__text {
	color: var(--black-60);
	font-size: 14px;
	line-height: 1.4;
}

.license__text a {
	color: var(--black-80);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.license__text a:hover {
	color: var(--accent-text);
}

/* ---------------------------------------------------------------- Zurück nach oben */

.to-top {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* ---------------------------------------------------------------- Hilfsklassen */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.icon--sm {
	width: 16px;
	height: 16px;
}

.icon--lg {
	width: 24px;
	height: 24px;
}

/* ---------------------------------------------------------------- Tablet */

@media (max-width: 1080px) {
	/* einspaltig: Menüleiste, Profilkarte, Inhalt — wie im Entwurf */
	.layout {
		display: block;
		max-width: 768px;
	}

	.topbar {
		max-width: 720px;
	}

	.profile {
		position: static;
		height: auto;
		max-height: none;
		overflow: visible;
		padding: var(--gutter) var(--gutter) 0;
	}

	.profile__card {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.profile__footer {
		margin-top: 0;
		padding-bottom: var(--gutter);
		border-bottom: 1px solid var(--black-10);
	}

	.main__inner {
		max-width: 720px;
		margin-inline: auto;
	}

	.hero {
		padding-top: 64px;
	}

	.page {
		min-height: 0;
	}
}

/* ---------------------------------------------------------------- Mobil */

@media (max-width: 640px) {
	:root {
		--gutter: 24px;
		--section-padding: 48px;
	}

	html {
		scroll-padding-top: 84px;
	}

	.h1,
	h1 {
		font-size: 32px;
	}

	.h2,
	h2 {
		font-size: 28px;
	}

	/* Menüleiste bleibt beim Scrollen stehen */
	body {
		padding-top: 68px;
	}

	/* Entwurf: Profilkarte 800 hoch, oben 92 unter der Leiste */
	.profile {
		min-height: 800px;
		padding-top: 24px;
	}

	/* Ort, Profile und Schaltfläche sitzen am unteren Rand der Karte */
	.profile__footer {
		margin-top: auto;
	}

	.topbar-wrap {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 30;
		background-color: var(--white);
	}

	.topbar {
		max-width: none;
	}

	.topbar__nav {
		display: none;
	}

	.nav-toggle {
		display: flex;
		margin-left: auto;
	}

	/* im Entwurf trägt die schmale Leiste nur Logo und Menüschalter */
	.topbar > .btn--primary {
		display: none;
	}

	.topbar__nav .nav-contact {
		display: inline-flex;
	}

	.topbar__nav.is-open {
		position: absolute;
		top: 60px;
		left: 0;
		right: 0;
		z-index: 30;
		display: flex;
		flex-direction: column;
		gap: 4px;
		padding: 8px;
		background-color: var(--white);
		border: 1px solid var(--black-10);
		border-radius: var(--radius-lg);
		box-shadow: 0 12px 32px rgba(26, 10, 6, 0.08);
	}

	.topbar__nav.is-open a {
		padding: 10px 12px;
		border-radius: var(--radius-md);
	}

	.topbar__nav.is-open a:hover {
		background-color: var(--black-5);
	}

	.hero {
		padding-block: 88px;
		gap: 40px;
	}

	.contact {
		gap: 64px;
		padding-block: 64px;
	}

	.contact__cards,
	.licenses__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.entry {
		grid-template-columns: 40px minmax(0, 1fr);
		gap: 12px;
	}

	.entry__logo {
		width: 40px;
		height: 40px;
	}

	.entry--flush .entry__body {
		margin-left: 52px;
	}

	.entry--plain .entry__body {
		margin-left: 0;
	}

	.entry__head {
		flex-direction: column;
		gap: 4px;
	}

	.entry__period {
		padding-top: 0;
	}

	.entry--link {
		grid-template-columns: 40px minmax(0, 1fr) 20px;
	}

	.license {
		padding: 24px;
	}

	.hero__illustration {
		max-width: 140px;
	}
}

/* ---------------------------------------------------------------- Bewegung */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------------------------------------------------------------- Druck */

@media print {
	.topbar,
	.nav-toggle,
	.profile__actions,
	.social,
	.footer a,
	.hero__illustration,
	.contact__illustration {
		display: none;
	}

	body {
		background: #fff;
		color: #000;
	}

	.layout {
		display: block;
	}

	.section {
		break-inside: avoid;
	}
}

/* ================================================================
   Bausteine für die Personenseite
   Farben, Schriften und Abstände stammen unverändert aus dem Entwurf.
   ================================================================ */

/* Fließtext-Links tragen eine Unterstreichung, damit sie sich nicht
   allein über die Farbe zu erkennen geben. */
.link,
.prose a,
.company__text a,
.leisure__text a {
	color: var(--accent-text);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.link:hover,
.prose a:hover,
.company__text a:hover,
.leisure__text a:hover {
	text-decoration-thickness: 2px;
}

/* ---------------------------------------------------------------- Hero */

.hero__kicker {
	color: var(--black-60);
	text-align: center;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* ---------------------------------------------------------------- Firmen */

.companies {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.company {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	background-color: var(--black-5);
	border-radius: var(--radius-md);
}

.company__name {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.company__place {
	color: var(--black-muted);
	font-size: 14px;
	line-height: 1.4;
}

.company__text {
	color: var(--black-80);
	font-size: 15px;
	line-height: 1.5;
}

.company__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: auto;
	padding-top: 4px;
}

/* ---------------------------------------------------------------- Klartext */

.posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 32px;
}

.post {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	background-color: var(--black-5);
	border-radius: var(--radius-md);
	transition: background-color var(--transition);
}

.post:hover {
	background-color: var(--black-10);
}

.post__date {
	color: var(--black-muted);
	font-size: 12px;
	line-height: 1.4;
}

.post__title {
	font-size: 16px;
	line-height: 1.4;
}

.post__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 8px;
	color: var(--accent-text);
	font-size: 14px;
	font-weight: 500;
}

.klartext__action {
	margin-top: 32px;
}

/* ---------------------------------------------------------------- Ausgleich */

.leisure {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 240px;
	gap: 24px;
	align-items: stretch;
}

.leisure__text {
	color: var(--black-80);
}

.leisure__figure {
	margin: 0;
	height: 100%;
}

.leisure__image {
	width: 100%;
	height: 100%;
	/* trägt die Zeilenhöhe, solange der Text kürzer ist */
	min-height: 380px;
	object-fit: cover;
	border-radius: var(--radius-md);
	background-color: var(--black-5);
}

.leisure__link {
	margin-top: 16px;
}

/* Platz für ein noch fehlendes Bild — hält das Layout stabil */
.image-pending {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	color: var(--black-muted);
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
	background-color: var(--black-5);
	border: 1px dashed var(--black-10);
	border-radius: var(--radius-md);
}

.image-pending--portrait {
	aspect-ratio: 1 / 1;
}

.image-pending--tall {
	aspect-ratio: 4 / 5;
}

/* ---------------------------------------------------------------- Kontakt */

.contact-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
}

.contact-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
}

.contact-list__label {
	color: var(--black-60);
	font-size: 14px;
	line-height: 1.4;
}

/* ---------------------------------------------------------------- Footer */

.footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.footer__links a {
	min-height: 24px;
	display: inline-flex;
	align-items: center;
}

/* ---------------------------------------------------------------- Textseiten */

.textpage {
	padding-block: 92px 64px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.textpage__intro {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.textpage__lead {
	color: var(--black-60);
}

.textpage h2 {
	margin-top: 16px;
	margin-bottom: 8px;
}

.textpage p,
.textpage li {
	color: var(--black-80);
}

.textpage ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-left: 20px;
	list-style: disc;
}

.textpage__section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Deutlich sichtbarer Hinweis auf noch fehlende Pflichtangaben */
.notice {
	padding: 16px 20px;
	background-color: var(--black-5);
	border-left: 4px solid var(--accent-text);
	border-radius: var(--radius-sm);
}

.notice p {
	color: var(--black-80);
}

.notice strong {
	font-weight: 600;
}

/* ---------------------------------------------------------------- Tablet */

@media (max-width: 1080px) {
	.leisure {
		grid-template-columns: minmax(0, 1fr) 200px;
	}
}

/* ---------------------------------------------------------------- Mobil */

@media (max-width: 640px) {
	.companies,
	.posts,
	.leisure {
		grid-template-columns: minmax(0, 1fr);
	}

	.posts {
		gap: 8px;
	}

	/* einspaltig: erst Überschrift und Text, dann das Bild */
	.leisure__figure {
		max-width: 260px;
	}

	.leisure__image {
		min-height: 0;
		aspect-ratio: 4 / 5;
	}

	/* natürliche Breite behalten, sonst wird ein einzeln umgebrochener
	   Verweis über die ganze Zeile gezogen */
	.hero__actions .btn {
		flex: 0 1 auto;
	}

	.textpage {
		padding-block: 48px 48px;
	}
}

.hero__heading {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Firmen-Verweise: als Verknüpfung erkennbar, nicht allein über die Farbe,
   und mit ausreichend großer Trefferfläche. */
.company__links a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	color: var(--accent-text);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	font-size: 15px;
}

.company__links a:hover {
	text-decoration-thickness: 2px;
}

/* Mindestzielgröße 24px für alle eigenständigen Verweise.
   Verweise mitten im Fließtext sind davon ausgenommen (WCAG 2.2, 2.5.8). */
.topbar__nav a,
.contact-list a,
.leisure__link a,
.textpage__section > p > a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
}

/* Ausgeschriebene Adressen: ohne JavaScript reiner Text, mit JavaScript
   ersetzt das Skript sie durch einen anklickbaren Verweis. */
.mail {
	color: var(--black-80);
}
