/* ==========================================================================
   tanjakraemer.de – v2 "Bang"
   Self-hosted fonts (SIL OFL): Inter Tight, Instrument Serif. No third parties.
   ========================================================================== */

@font-face { font-family: "Inter Tight"; src: url(fonts/inter-tight-var.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
	/* "Reef" palette – deliberately no black/white/red combination */
	--ink: #0e2f2f;          /* deep teal: dark grounds + dark text */
	--ink-2: #164240;        /* lighter teal for cards on dark */
	--paper: #f3eee4;        /* warm cream */
	--white: #fbf8f2;        /* lightest cream (instead of pure white) */
	--grey: #8fa8a4;         /* teal-grey for secondary text */
	--grey-2: #d6cfc1;       /* warm light line/grey */
	--line-dark: #24504d;    /* hairlines on teal */
	--accent: #f59e4c;       /* apricot: on teal and as a ground */
	--accent-ink: #c0621c;   /* darker apricot: accents on cream */
	--seaglass: #b8d8cf;     /* soft second accent */
	--sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
	--pad: clamp(1.25rem, 4vw, 4rem);
	--ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

body {
	margin: 0;
	background: var(--ink);
	color: var(--ink);
	font: 400 clamp(1.05rem, 1rem + .25vw, 1.25rem)/1.55 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em, i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--ink); padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }

.label {
	font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
	color: var(--grey); margin-bottom: 1.5rem;
}
.label--center { text-align: center; }

.section-title {
	font: 900 clamp(3.5rem, 14vw, 16rem)/.82 var(--sans);
	letter-spacing: -.065em;
	margin: 0 0 clamp(2rem, 6vw, 5rem) -.06em;
}
.section-title em { color: var(--accent-ink); font-weight: 400; letter-spacing: 0; }
.section-title--light { color: var(--white); }
.section-title--light em { color: var(--accent); }

/* ---------- Bar: transparent on the hero, frosted black once scrolled ---------- */
.bar {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding: 1.1rem var(--pad);
	color: var(--white);
	transition: padding .5s var(--ease);
}
.bar::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgb(14 47 47 / .78);
	-webkit-backdrop-filter: saturate(1.6) blur(20px);
	backdrop-filter: saturate(1.6) blur(20px);
	border-bottom: 1px solid rgb(255 255 255 / .08);
	opacity: 0; transform: translateY(-100%);
	transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.is-scrolled .bar { padding-block: .8rem; }
.is-scrolled .bar::before { opacity: 1; transform: none; }

.bar a { text-decoration: none; }
.bar__brand {
	font: 800 1.15rem/1 var(--sans); letter-spacing: -.035em; white-space: nowrap;
	opacity: 0; transform: translateY(-.4rem);
	transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.bar__brand i { color: var(--accent); font-size: 1.4rem; }
.is-scrolled .bar__brand, .menu-open .bar__brand { opacity: 1; transform: none; }
/* Pages without the dark hero: show backdrop + name right away */
body:has(.legal) .bar::before { opacity: 1; transform: none; }
body:has(.legal) .bar__brand { opacity: 1; transform: none; }

.bar__nav { display: flex; gap: clamp(1rem, 2.2vw, 2rem); align-items: center; font: 500 .92rem/1 var(--sans); }
.bar__nav a { opacity: .8; transition: opacity .2s, color .2s; }
.bar__nav a:hover { opacity: 1; color: var(--accent); }
.bar__cta { border: 1px solid currentColor; border-radius: 999px; padding: .55rem 1rem; opacity: 1 !important; }
.bar__cta:hover { background: var(--accent); border-color: var(--accent); color: var(--ink) !important; }

.bar__toggle { display: none; }

/* Mobile: button + full-screen menu */
@media (max-width: 720px) {
	.bar__brand { opacity: 1; transform: none; }
	.bar__toggle {
		display: inline-flex; position: relative; z-index: 2;
		font: 600 .9rem/1 var(--sans); color: var(--white);
		background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .25);
		border-radius: 999px; padding: .6rem 1.1rem; cursor: pointer;
		-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	}
	.bar__nav {
		position: fixed; inset: 0; z-index: 1;
		flex-direction: column; align-items: flex-start; justify-content: center; gap: .35rem;
		padding: 6rem var(--pad) 3rem;
		background: rgb(14 47 47 / .96);
		-webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
		font: 800 clamp(2.4rem, 12vw, 4rem)/1.05 var(--sans); letter-spacing: -.05em;
		opacity: 0; visibility: hidden;
		transition: opacity .35s var(--ease), visibility 0s .35s;
	}
	.bar__nav a { opacity: 1; }
	.bar__cta { border: 0; padding: 0; color: var(--accent); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
	.menu-open .bar__nav { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
	.menu-open body { overflow: hidden; }
	.bar__brand { position: relative; z-index: 2; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 100svh;
	background: var(--ink); color: var(--white);
	padding: 7rem var(--pad) var(--pad);
	display: grid; grid-template-rows: auto 1fr auto;
}
.hero__kicker { display: flex; gap: 1.5rem; font: 500 .85rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.hero__kicker span + span::before { content: "/"; margin-right: 1.5rem; color: var(--accent); }

.hero__name { align-self: center; position: relative; z-index: 3; margin: 4vh 0; pointer-events: none; }
.hero__first {
	display: block;
	font: 900 24vw/.78 var(--sans); letter-spacing: -.075em;
	margin-left: -.05em;
}
.hero__last {
	display: block; width: fit-content;
	font: 400 italic 27vw/.8 var(--serif); letter-spacing: -.03em;
	color: var(--accent);
	margin: -2vw 0 0 auto;      /* flush right, never past the edge */
	padding-right: .06em;       /* room for the italic overhang of the final "r" */
	white-space: nowrap;
}

.hero__photo {
	position: absolute; z-index: 2; margin: 0;
	right: var(--pad); top: 6.5rem;
	width: clamp(240px, 30vw, 520px);
}
.hero__photo img {
	width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
	border-radius: 32px;
	box-shadow: 0 40px 120px -30px rgb(245 158 76 / .35);
}

.hero__foot {
	position: relative; z-index: 4;
	display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
	font: 500 clamp(1.15rem, 1rem + .9vw, 1.9rem)/1.3 var(--sans); letter-spacing: -.02em;
}
.hero__foot a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.hero__down {
	flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
	background: var(--white); color: var(--ink); text-decoration: none; font-size: 1.4rem;
	transition: transform .4s var(--ease), background .3s;
}
.hero__down:hover { transform: translateY(6px); background: var(--accent); }

@media (max-width: 720px) {
	/* At least the *large* viewport (incl. the area under iOS Safari's translucent
	   toolbar), so the light next section never shows through it on first view.
	   Content stays at the top; any extra height is black space below. */
	.hero {
		padding-top: 5.5rem;
		grid-template-rows: auto auto auto auto; align-content: start;
		min-height: 100vh; min-height: 100lvh;
	}
	.hero__kicker { gap: .9rem; font-size: .72rem; }
	.hero__kicker span + span::before { margin-right: .9rem; }
	.hero__photo { position: relative; right: auto; top: auto; width: 78vw; margin: 1.5rem 0 0 auto; grid-row: 2; }
	.hero__photo img { border-radius: 24px; }
	.hero__name { grid-row: 3; margin: -24vw 0 2.5rem; }
	.hero__first { font-size: 30vw; }
	.hero__last { font-size: 31vw; margin-top: -3vw; }
	.hero__foot { grid-row: 4; flex-direction: column; align-items: flex-start; }
	/* iOS Safari's floating toolbar covers the bottom of the screen: no arrow there,
	   and extra room below the intro text (plus the home-indicator inset). */
	.hero__down { display: none; }
	/* Generous black run-out: covers toolbar + home-indicator zone regardless of how
	   iOS reports viewport units (lvh alone did not reach under the home bar). */
	.hero { padding-bottom: calc(var(--pad) + 8rem + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Statement ---------- */
.statement { background: var(--paper); padding: clamp(6rem, 16vw, 14rem) var(--pad) clamp(5rem, 12vw, 11rem); }
.statement__text {
	font: 800 clamp(2.6rem, 8.2vw, 9.5rem)/.95 var(--sans);
	letter-spacing: -.055em;
	max-width: 15ch;
}
.statement__text .r { display: block; }
.statement__text em { color: var(--accent-ink); font-weight: 400; letter-spacing: -.02em; }

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.statement__text .r {
			animation: reveal linear both;
			animation-timeline: view();
			animation-range: entry 10% cover 45%;
		}
		@keyframes reveal {
			from { opacity: .1; transform: translateY(.25em); filter: blur(6px); }
			to   { opacity: 1;  transform: none;            filter: none; }
		}
	}
}

.bio { max-width: 40rem; margin: clamp(5rem, 12vw, 10rem) 0 0 auto; margin-right: 6vw; color: #2f4b49; }
.bio p + p { margin-top: 1.25em; }
.bio__lead { font: 500 clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem)/1.25 var(--sans); letter-spacing: -.025em; color: var(--ink); }
@media (max-width: 720px) { .bio { margin-right: 0; } }

/* ---------- Numbers ---------- */
.numbers {
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: var(--ink); color: var(--white);
	border-top: 1px solid var(--line-dark);
}
.num { padding: clamp(2.5rem, 6vw, 5rem) var(--pad); border-left: 1px solid var(--line-dark); }
.num:first-child { border-left: 0; }
.num b { display: block; font: 200 clamp(3.5rem, 8.5vw, 9rem)/.9 var(--sans); letter-spacing: -.06em; }
.num sup { font-size: .45em; color: var(--accent); font-weight: 400; vertical-align: top; position: relative; top: .25em; }
.num span { display: block; margin-top: 1rem; color: var(--grey); font-size: .95rem; max-width: 16ch; }
@media (max-width: 860px) {
	.numbers { grid-template-columns: 1fr 1fr; }
	.num:nth-child(3) { border-left: 0; }
	.num:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* ---------- RiffReporter ---------- */
.riff { background: var(--accent); color: var(--ink); padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 7rem); }
.riff__title { margin: 0 0 clamp(2rem, 6vw, 5rem); }
.riff__a {
	display: block;
	font: 400 italic 48vw/.7 var(--serif); letter-spacing: -.04em;
	margin-left: -2vw; white-space: nowrap;
	color: #b47f44;   /* = 28 % teal on apricot #f59e4c, but opaque: no darker spot where the "ff" overlap */
}
.riff__b {
	display: block;
	font: 900 15vw/.8 var(--sans); letter-spacing: -.07em;
	color: var(--ink);
	margin: -14vw 0 0 34vw; white-space: nowrap;
}
.riff__body { max-width: 40rem; margin: 0 var(--pad) 0 auto; padding-left: var(--pad); }
.riff__lead { font: 700 clamp(1.6rem, 1.1rem + 2vw, 3rem)/1.05 var(--sans); letter-spacing: -.04em; margin-bottom: 1.5rem; }
.riff__body p + p { margin-top: 1em; }
.pill {
	display: inline-flex; gap: .5rem; margin-top: 2rem; padding: .9rem 1.5rem; border-radius: 999px;
	background: var(--ink); color: var(--white); text-decoration: none; font-weight: 600;
	transition: transform .3s var(--ease);
}
.pill:hover { transform: scale(1.05); }

.rail {
	list-style: none; margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
	/* vertical padding leaves room for the hover lift/tilt inside the scroll box */
	padding: 1.5rem var(--pad) 1.75rem;
	display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: thin; scrollbar-color: rgb(14 47 47 / .45) transparent;
	scroll-behavior: auto;            /* script writes positions every frame: no easing */
	overscroll-behavior-x: contain;   /* no back-swipe / page bounce at the ends */
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: rgb(14 47 47 / .45); border-radius: 3px; }
.rail::-webkit-scrollbar-track { background: transparent; margin-inline: var(--pad); }
.rail li {
	flex: 0 0 clamp(15rem, 28vw, 24rem); scroll-snap-align: start;
	min-height: clamp(18rem, 30vw, 26rem);
	display: flex; flex-direction: column; justify-content: space-between;
	padding: 2rem; border-radius: 28px;
	background: var(--ink); color: var(--white);
	transition: transform .4s var(--ease);
}
.rail li:hover { transform: translateY(-8px) rotate(-1deg); }

/* ---- Pinned mode (only when site.js has measured the distance: html.has-pin) ----
   .pin is made taller by exactly the sideways distance (--d px); its stage sticks to
   the viewport for that stretch and the rail is translated across. */
.pin__label, .pin__bar { display: none; }

.has-pin .pin { height: calc(100svh + var(--d) * 1px); view-timeline: --pin block; }
.has-pin .pin__stage {
	position: sticky; top: 0; height: 100svh; overflow: hidden;
	display: flex; flex-direction: column; justify-content: center;
}
.has-pin .rail {
	margin: 0; overflow: visible; scroll-snap-type: none;
	width: max-content; will-change: transform;
	transform: translate3d(calc(var(--p, 0) * var(--d) * -1px), 0, 0);
}
.has-pin .pin__label {
	display: block; margin: 0 var(--pad) .5rem;
	font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .6;
}
.has-pin .pin__bar {
	display: block; height: 3px; margin: 1rem var(--pad) 0; background: rgb(14 47 47 / .18); border-radius: 2px; overflow: hidden;
}
.has-pin .pin__bar span {
	display: block; height: 100%; background: var(--ink);
	transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* Where supported (Chrome, Safari 26+), the compositor drives it: no JS per frame. */
@supports (animation-timeline: view()) {
	.has-pin .rail {
		transform: none;
		animation: pin-slide linear both;
		animation-timeline: --pin;
		animation-range: contain 0% contain 100%;
	}
	.has-pin .pin__bar span {
		transform: none;
		animation: pin-bar linear both;
		animation-timeline: --pin;
		animation-range: contain 0% contain 100%;
	}
	@keyframes pin-slide { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(var(--d) * -1px), 0, 0); } }
	@keyframes pin-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.rail b { font: 400 italic clamp(4.5rem, 9vw, 8rem)/.8 var(--serif); color: var(--accent); }
.rail span { font: 600 clamp(1.2rem, 1rem + .6vw, 1.6rem)/1.15 var(--sans); letter-spacing: -.02em; }
.rail .rail--hot { background: var(--white); color: var(--ink); }

/* ---------- Stationen ---------- */
.stations { background: var(--white); padding: clamp(5rem, 12vw, 10rem) var(--pad); }
.st { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ink); }
.st li {
	display: grid; grid-template-columns: minmax(6rem, 22vw) 1fr; align-items: center;
	border-top: 1px solid var(--ink);
	padding: clamp(1rem, 2vw, 1.6rem) 0;
	transition: background .35s var(--ease), color .35s var(--ease), padding .35s var(--ease);
}
.st__y { font: 400 italic clamp(3rem, 8vw, 8.5rem)/.85 var(--serif); color: var(--grey-2); transition: color .35s; }
.st__r { font: 700 clamp(1.25rem, .9rem + 1.6vw, 2.6rem)/1.05 var(--sans); letter-spacing: -.035em; }
.st__r small { display: block; margin-top: .45rem; font: 400 clamp(.9rem, .85rem + .2vw, 1.05rem)/1.4 var(--sans); letter-spacing: 0; color: var(--grey); }
.st li:nth-child(-n+2) .st__y { color: var(--accent-ink); }
@media (hover: hover) {
	.st li:hover { background: var(--ink); color: var(--white); padding-inline: 1.5rem; }
	.st li:hover .st__y { color: var(--accent); }
}

/* ---------- Preise ---------- */
.awards { background: var(--ink); color: var(--white); padding-bottom: clamp(5rem, 10vw, 9rem); }
.awards__inner { padding: clamp(5rem, 10vw, 8rem) var(--pad) 0; }
.awards__hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; }
.big-award { border-radius: 32px; padding: clamp(2rem, 4vw, 3.5rem); background: var(--ink-2); display: flex; flex-direction: column; min-height: clamp(18rem, 32vw, 28rem); }
.big-award:first-child { background: var(--accent); color: var(--ink); }
.big-award span { font: 600 .85rem/1 var(--sans); letter-spacing: .14em; }
.big-award h3 { font: 400 italic clamp(2.8rem, 6vw, 6.5rem)/.9 var(--serif); margin: auto 0 1.25rem; letter-spacing: -.02em; }
.big-award p { max-width: 30ch; opacity: .8; }
@media (max-width: 860px) { .awards__hero { grid-template-columns: 1fr; } }

.award-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); column-gap: 3rem; }
.award-list li { border-top: 1px solid var(--line-dark); padding: 1.4rem 0; font: 600 1.2rem/1.2 var(--sans); letter-spacing: -.02em; }
.award-list span { display: block; font: 400 italic 1.4rem/1 var(--serif); color: var(--accent); margin-bottom: .5rem; }
.award-list small { display: block; margin-top: .35rem; font: 400 .95rem/1.4 var(--sans); color: var(--grey); letter-spacing: 0; }

/* ---------- Medien ---------- */
.media { background: var(--paper); padding: clamp(5rem, 12vw, 10rem) var(--pad); }
.media .section-title { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.media .label { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.wall {
	max-width: 90rem;
	font-size: clamp(1.7rem, 4.6vw, 4.8rem); line-height: 1.08;
}
.wall span { font-weight: 800; letter-spacing: -.05em; transition: color .25s; }
.wall em { color: #93a6a1; transition: color .25s; }
.wall span:hover, .wall em:hover { color: var(--accent-ink); }

/* ---------- Kontakt ---------- */
.contact { background: var(--seaglass); color: var(--ink); padding: clamp(6rem, 14vw, 12rem) var(--pad) clamp(5rem, 10vw, 8rem); }
.contact .label { color: var(--ink); opacity: .6; }
.contact__title { font: 900 clamp(3.5rem, 13vw, 15rem)/.82 var(--sans); letter-spacing: -.07em; margin-left: -.05em; }
.contact__title em { display: block; font-weight: 400; letter-spacing: -.02em; color: var(--accent-ink); margin-left: 12vw; font-size: 1.1em; }
.contact__mail {
	display: inline-block; margin-top: clamp(3rem, 8vw, 7rem);
	font: 400 italic clamp(2.6rem, 9vw, 10rem)/.88 var(--serif); letter-spacing: -.02em;
	text-decoration: none;
	background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 3px no-repeat;
	transition: background-size .5s var(--ease);
	padding-bottom: .1em;
}
.contact__mail:hover { background-size: 100% 3px; }

.profiles { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.profiles a {
	display: inline-flex; gap: .45rem; align-items: center;
	padding: .8rem 1.4rem; border-radius: 999px;
	border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none;
	font: 600 1rem/1 var(--sans);
	transition: background .25s, color .25s;
}
.profiles a:hover { background: var(--ink); color: var(--white); }

/* ---------- Footer ---------- */
.foot {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
	padding: 1.75rem var(--pad); background: var(--ink); color: var(--grey); font-size: .85rem;
}
.foot nav { display: flex; gap: 1.5rem; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal { background: var(--white); padding: clamp(8rem, 14vw, 12rem) var(--pad) clamp(5rem, 10vw, 8rem); min-height: 80vh; }
.legal h1 { font: 900 clamp(3rem, 11vw, 12rem)/.85 var(--sans); letter-spacing: -.065em; margin: 0 0 clamp(3rem, 6vw, 5rem) -.05em; }
.legal h1 em { color: var(--accent-ink); font-weight: 400; letter-spacing: 0; }
.legal__body { max-width: 44rem; margin-left: auto; margin-right: 6vw; color: #2a4644; }
.legal__body h2 { font: 700 1.5rem/1.2 var(--sans); letter-spacing: -.03em; color: var(--ink); margin: 3rem 0 .8rem; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body ul { margin: 0 0 1em; }
.legal__body a { text-decoration-color: var(--accent); text-underline-offset: .18em; }
@media (max-width: 720px) { .legal__body { margin-right: 0; } }
