/* =============================================================
   PAPIERMÜHLE — Restaurant
   Aufbau: Tokens · Reset · Typo · Kopf · Hero · Gänge · Abschnitte
           · Reservierung (Papier) · Fuß · Responsive
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
	/* Rauchiges Eichenholz für den Rahmen, warmes Papierweiß für die Texte */
	--pm-bg: #14110e;
	--pm-ink: #ffffff;
	--pm-black: #0f0d0b;
	--pm-cover: #0d0c0b;
	--pm-paper: #f4f1ec;
	--pm-paper-ink: #0e0c0a;
	--pm-chip: #ebe6de;
	--pm-ink-line: rgba(255, 255, 255, 0.1);

	/* Formular auf Büttenpapier */
	--pm-sheet: #fbf8f2;
	--pm-form-ink: #3a3631;
	--pm-fountain: #1f2d5c;
	--pm-graphite: #77726b;
	--pm-red: #a8261c;

	--pm-display: "Fraunces", "Playfair Display", Georgia, serif;
	--pm-bauhaus: "Jost", "Futura", "Century Gothic", sans-serif;
	--pm-text: "Newsreader", Georgia, serif;
	--pm-grotesk: "Geist", "Helvetica Neue", Arial, sans-serif;
	--pm-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
	--pm-hand: "Cedarville Cursive", "Segoe Script", cursive;
	--pm-pencil: "La Belle Aurore", "Segoe Script", cursive;
	--pm-sign: "Mrs Saint Delafield", "Segoe Script", cursive;

	--pm-pad: 2.5vw;
	--pm-gutter: 1.3889vw;
	--pm-radius: 4px;
	--pm-viewport: 100svh;

	--pm-ease: cubic-bezier(0.215, 0.61, 0.355, 1);
	--pm-ease-io: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

html {
	scroll-behavior: auto; /* Lenis übernimmt */
	-webkit-text-size-adjust: 100%;
	scrollbar-width: none;
	background: var(--pm-bg);
}

html::-webkit-scrollbar {
	width: 0;
	height: 0;
}

html.lenis-stopped {
	overflow: hidden;
}

body {
	background: var(--pm-bg);
	color: var(--pm-ink);
	font-family: var(--pm-display);
	font-weight: 200;
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: -0.2px;
	font-variation-settings: "SOFT" 0, "WONK" 0;
	/* clip statt hidden, sonst bricht position:sticky */
	overflow-x: clip;
	overscroll-behavior-y: none;
	-webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
	list-style: none;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	cursor: pointer;
}

fieldset {
	border: 0;
	min-width: 0;
}

em,
i {
	font-style: italic;
	font-weight: inherit;
}

h1,
h2,
h3,
h4 {
	font-weight: 200;
}

::selection {
	color: #fff;
	background-color: var(--pm-bg);
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.pm-skip {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	padding: 10px 16px;
	background: #fff;
	color: #000;
	border-radius: var(--pm-radius);
	transform: translateY(-200%);
	transition: transform 0.25s var(--pm-ease);
}

.pm-skip:focus-visible {
	transform: none;
}

.no-js [data-anim] .pm-line > span {
	transform: none !important;
}

/* Bis die Zeilen zerlegt und versteckt sind, nichts zeigen (sonst blitzt es).
   Die Animation ist nur ein Notanker, falls das Skript gar nicht lädt. */
.is-loading [data-anim],
.is-loading [data-split] {
	visibility: hidden;
	animation: pm-failsafe 0s linear 9s forwards;
}

@keyframes pm-failsafe {
	to {
		visibility: visible;
	}
}

/* ---------- Ladebildschirm: ein Bogen Büttenpapier ---------- */
.pm-loader {
	position: fixed;
	inset: 0;
	z-index: 100001;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
	color: var(--pm-paper-ink);
}

.pm-loader.is-active,
.is-loading .pm-loader {
	visibility: visible;
	pointer-events: auto;
}

.is-loading .pm-loader {
	animation: pm-loader-failsafe 0s linear 9s forwards;
}

@keyframes pm-loader-failsafe {
	to {
		visibility: hidden;
		pointer-events: none;
	}
}

/* Höher als der Bildschirm: die ausgefransten Kanten liegen beim Abdecken
   außerhalb und zeigen sich nur in der Bewegung */
.pm-loader__sheet {
	position: absolute;
	left: 0;
	right: 0;
	top: -7vh;
	bottom: -7vh;
	will-change: transform;
}

/* Schatten, den das Blatt an seinen Kanten auf die Seite wirft */
.pm-loader__sheet::before,
.pm-loader__sheet::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 90px;
	pointer-events: none;
}

.pm-loader__sheet::before {
	bottom: 100%;
	background: linear-gradient(to top, rgba(12, 9, 6, 0.28), rgba(12, 9, 6, 0));
}

.pm-loader__sheet::after {
	top: 100%;
	background: linear-gradient(to bottom, rgba(12, 9, 6, 0.28), rgba(12, 9, 6, 0));
}

.pm-loader__paper {
	position: absolute;
	inset: 0;
	background: var(--pm-sheet);
	clip-path: var(--deckle-y, none);
}

.pm-loader__paper::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../img/papier.webp") center / cover no-repeat;
	mix-blend-mode: multiply;
	opacity: 0.5;
	filter: saturate(0.7);
}

.pm-loader__inner {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 26px;
	text-align: center;
}

.pm-loader__wheel {
	width: 58px;
	height: 58px;
	color: var(--pm-form-ink);
	animation: pm-spin 5s linear infinite;
}

.pm-loader__label {
	padding: 0 var(--pm-pad);
	font-size: calc(22px + 3vw);
	line-height: 1;
	font-weight: 200;
	letter-spacing: -0.025em;
}

.pm-loader__bar {
	position: relative;
	width: 150px;
	height: 1px;
	overflow: hidden;
	background: rgba(14, 12, 10, 0.14);
}

.pm-loader__bar i {
	position: absolute;
	inset: 0;
	background: var(--pm-paper-ink);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

/* ---------- Einzelseiten (Impressum, Datenschutz) ---------- */
.pm-main--page {
	min-height: 100vh;
	background: var(--pm-paper);
	color: var(--pm-paper-ink);
	padding: calc(110px + 6vw) var(--pm-pad) calc(60px + 6vw);
}

.pm-page {
	max-width: 900px;
	margin: 0 auto;
}

.pm-page__title {
	margin-bottom: 2.5rem;
	font-size: calc(26px + 4vw);
	line-height: 1;
	font-weight: 200;
	letter-spacing: -0.03em;
}

.pm-page__content {
	font-family: var(--pm-text);
	font-weight: 300;
	font-size: 18px;
	line-height: 1.55;
}

.pm-page__content > * + * {
	margin-top: 1.1em;
}

.pm-page__content h2 {
	margin-top: 2.2em;
	font-family: var(--pm-display);
	font-size: 28px;
	line-height: 1.15;
	font-weight: 200;
	letter-spacing: -0.01em;
}

.pm-page__content a {
	border-bottom: 1px solid currentColor;
}

.pm-page__note {
	padding: 18px 20px;
	border-radius: var(--pm-radius);
	background: var(--pm-chip);
	font-size: 16px;
}

.pm-page__back {
	display: inline-flex;
	margin-top: 3rem;
}

/* ---------- 3. Typografie ---------- */
.pm-line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.1em;
	margin-bottom: -0.1em;
}

.pm-line > span {
	display: block;
	will-change: transform;
}

/* ---------- 4. Kopf und schwebender CTA ---------- */
.pm-header {
	position: fixed;
	z-index: 999;
	top: 4px;
	left: var(--pm-pad);
	width: calc(100% - var(--pm-pad) * 2);
	display: flex;
	align-items: center;
	pointer-events: none;
	color: #fff;
	transition: color 0.45s var(--pm-ease);
}

.pm-header.is-light {
	color: #000;
}

.pm-header a {
	pointer-events: auto;
}

.pm-header__logo {
	display: block;
	padding: 12px 10px 5px;
	margin-left: -10px;
}

.pm-logo {
	display: inline-flex;
	flex-direction: column;
	line-height: 0.92;
	font-family: var(--pm-display);
	font-weight: 300;
	font-size: 20px;
}

.pm-logo__word {
	letter-spacing: 0.035em;
}

.pm-logo__sub {
	padding-left: 1.55em;
	font-style: italic;
	font-weight: 300;
	letter-spacing: -0.01em;
}

.pm-cta {
	position: fixed;
	z-index: 9999;
	top: 20px;
	font-family: var(--pm-text);
	font-weight: 300;
	font-size: 18px;
	color: #fff;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-radius: var(--pm-radius);
	transition: background-color 0.5s var(--pm-ease);
}

.pm-cta:hover {
	background: rgba(0, 0, 0, 0.55);
}

.pm-cta {
	transition: background-color 0.5s var(--pm-ease), opacity 0.5s var(--pm-ease), transform 0.5s var(--pm-ease);
}

/* Auf hellen Abschnitten (und Unterseiten) dunkel statt grau-transparent */
.tone-light .pm-cta,
.pm-page-body .pm-cta {
	background: rgba(20, 17, 14, 0.86);
}

.tone-light .pm-cta:hover,
.pm-page-body .pm-cta:hover {
	background: rgba(20, 17, 14, 1);
}

body.is-at-form .pm-cta {
	opacity: 0;
	transform: translateY(-8px);
	pointer-events: none;
}

.pm-cta--label {
	right: calc(var(--pm-pad) + 68px);
	padding: 20px 30px;
	line-height: 24px;
}

.pm-cta--icon {
	right: var(--pm-pad);
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 100%;
}

.pm-cta--icon svg {
	width: 21px;
	height: 20px;
	transition: transform 0.5s var(--pm-ease);
}

.pm-cta--icon:hover svg {
	transform: translateX(3px);
}

/* ---------- 5. Hero ---------- */
.pm-hero {
	position: sticky;
	top: 0;
	width: 100%;
	height: var(--pm-viewport);
	overflow: hidden;
	background: #000;
	color: #fff;
}

.pm-hero__bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.pm-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 30%),
		linear-gradient(to top, rgba(8, 7, 6, 0.55), rgba(8, 7, 6, 0) 42%),
		rgba(0, 0, 0, var(--pm-hero-dim, 0.5));
}

.pm-hero__bg video,
.pm-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale3d(1.1, 1.1, 1.1);
}

/* Unten ein ruhiges Raster: Haarlinie, links Zeile und Text, rechts die Siegel */
.pm-hero__inner {
	position: absolute;
	z-index: 2;
	left: var(--pm-pad);
	right: var(--pm-pad);
	bottom: 44px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	padding-top: 26px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* Bauhaus: fett, geometrisch, Versalien – aber leise in der Größe */
.pm-hero__title {
	font-family: var(--pm-bauhaus);
	font-size: calc(16px + 2.3vw);
	line-height: 0.98;
	font-weight: 800;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	font-variation-settings: normal;
}

/* Oben Luft für die Umlaut-Punkte der Versalien (KÜCHE), sonst schneidet die Maske sie ab */
.pm-hero__title .pm-line {
	padding-top: 0.16em;
	margin-top: -0.16em;
	padding-bottom: 0.06em;
	margin-bottom: -0.06em;
}

.pm-hero__meta {
	margin-top: 16px;
	max-width: 440px;
	text-wrap: pretty;
	font-family: var(--pm-text);
	font-weight: 300;
	font-size: 15px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.62);
}

/* Auszeichnungen als Siegel: weiß, dünn, halb durchsichtig */
.pm-hero__seals {
	display: flex;
	flex-shrink: 0;
	gap: 14px;
}

.pm-hero__seals .pm-seal {
	width: calc(54px + 1.6vw);
	height: auto;
	color: #fff;
	opacity: 0.72;
	transition: opacity 0.5s var(--pm-ease);
}

.pm-hero__seals li:hover .pm-seal {
	opacity: 1;
}

/* Bevor der Ladebogen abhebt, warten Text und Siegel unsichtbar */
.is-loading [data-hero-fade] {
	visibility: hidden;
	animation: pm-failsafe 0s linear 9s forwards;
}

.pm-seal {
	display: block;
	overflow: visible;
}

.pm-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.pm-hero__cover {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: var(--pm-cover);
	opacity: 0;
	pointer-events: none;
}

.pm-flow {
	position: relative;
	z-index: 1;
}

/* ---------- 6. Das Menü: Gänge in Vollbild ---------- */
.pm-cases {
	position: relative;
	/* ein Pixel Überlappung: sonst blitzt bei krummen Höhen der dunkle Hero durch die Fuge */
	margin-top: -1px;
	background: var(--pm-paper);
}

.pm-cases__intro {
	padding: 0 var(--pm-pad) 20px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	color: var(--pm-paper-ink);
}

.pm-cases__label {
	font-size: 24px;
	font-weight: 200;
}

.pm-cases__all {
	font-family: var(--pm-text);
	font-weight: 300;
	font-size: 16px;
	opacity: 0.5;
}

/* Die Spur gibt nur Scrollweg: anderthalb Bildschirme pro Gang */
.pm-cases-track {
	position: relative;
	height: calc(var(--pm-cases, 1) * 1.5 * var(--pm-viewport));
}

.pm-cases-viewport {
	position: sticky;
	top: 0;
	height: var(--pm-viewport);
	overflow: hidden;
	isolation: isolate;
}

/* Alle liegen übereinander; jeder neue wird von unten aufgedeckt */
.pm-case {
	position: absolute;
	inset: 0;
	display: block;
	clip-path: inset(100% 0 0 0);
	min-height: 30rem;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	background: var(--pm-black);
}

.pm-case:first-child {
	clip-path: inset(0 0 0 0);
}

.pm-case__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: var(--pm-black);
	transition: transform 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.pm-case__media > video,
.pm-case__media > img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	will-change: transform;
}

.pm-case__media > video {
	z-index: 1;
}

.pm-case:hover .pm-case__media {
	transform: scale(1.03);
}

.pm-case__scrim {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(10, 9, 8, 0.45) 0%,
		rgba(10, 9, 8, 0.05) 38%,
		rgba(10, 9, 8, 0.8) 100%
	);
}

.pm-case__inner {
	position: relative;
	z-index: 4;
	height: 100%;
}

.pm-case__row {
	position: absolute;
	left: var(--pm-pad);
	right: var(--pm-pad);
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 2rem;
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45), 0 0 2px rgba(0, 0, 0, 0.25);
}

.pm-case__title {
	font-size: 40px;
	line-height: 0.95;
	font-weight: 200;
	letter-spacing: -0.02em;
}

.pm-case__meta {
	flex-shrink: 0;
	text-align: right;
	font-family: var(--pm-text);
	font-weight: 300;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.72);
}

/* ---------- 7. Overview ---------- */
.pm-overview {
	background: var(--pm-paper);
	color: var(--pm-paper-ink);
	padding: calc(5vw + 20px) var(--pm-pad) calc(4vw + 20px);
	text-align: center;
}

.pm-overview__lead {
	max-width: 1200px;
	margin: 0 auto;
	font-size: calc(24px + 2.5vw);
	line-height: 1.1;
	font-weight: 200;
	letter-spacing: -0.015em;
	text-align: left;
	text-indent: calc(30px + 10vw);
}

/* ---------- 8. Geschichte ---------- */
.pm-why {
	background: var(--pm-paper);
	color: var(--pm-paper-ink);
	padding: calc(20px + 10vw) var(--pm-pad) calc(20px + 5vw);
}

.pm-why__title {
	width: 82%;
	font-size: calc(24px + 3vw);
	line-height: 1.1;
	font-weight: 200;
	letter-spacing: -0.015em;
}

.pm-why__text {
	margin-top: 30px;
	max-width: 90%;
}

.pm-why__text p {
	max-width: 440px;
	margin-left: auto;
	font-family: var(--pm-text);
	font-size: 18px;
	line-height: 1.45;
	font-weight: 300;
}

.pm-why__text > div {
	max-width: 440px;
	margin: 40px 0 0 auto;
}

.pm-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 20px 30px;
	border-radius: var(--pm-radius);
	background: #000;
	color: #fff;
	font-family: var(--pm-display);
	font-size: 20px;
	font-weight: 200;
	transition: opacity 0.5s var(--pm-ease);
}

.pm-btn:hover {
	opacity: 0.75;
}

/* Auszeichnungen: eine leise Reihe unter der Geschichte */
.pm-awards {
	margin-top: calc(50px + 6vw);
	padding-top: 26px;
	border-top: 1px solid rgba(14, 12, 10, 0.12);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
	gap: 2rem;
	align-items: start;
}

.pm-awards__label {
	font-size: 20px;
	font-weight: 200;
}

.pm-awards__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.pm-awards__list li {
	display: flex;
	align-items: center;
	gap: 16px;
}

.pm-awards__list .pm-seal {
	flex-shrink: 0;
	width: 74px;
	height: auto;
	color: var(--pm-paper-ink);
	opacity: 0.78;
}

.pm-awards__list p {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-family: var(--pm-text);
	font-weight: 300;
	font-size: 15px;
	line-height: 1.25;
}

.pm-awards__list em {
	font-style: normal;
	font-size: 13px;
	opacity: 0.55;
}

/* ---------- 9. Trenner und Küche ---------- */
.pm-separator {
	position: relative;
	overflow: hidden;
	background: var(--pm-black);
}

/* Nebelhimmel ist hell: ein Hauch Dunkel oben, damit das Logo lesbar bleibt */
.pm-separator::after {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 160px;
	background: linear-gradient(to bottom, rgba(8, 7, 6, 0.42), rgba(8, 7, 6, 0));
	pointer-events: none;
}

.pm-separator img {
	width: 100%;
	height: 100vh;
	object-fit: cover;
	object-position: 50% 70%;
}

.pm-mood {
	position: relative;
	z-index: 2;
	background: var(--pm-black);
	overflow: hidden;
}

.pm-mood video {
	width: 100%;
	height: auto;
	aspect-ratio: 1912 / 1080;
	object-fit: cover;
}

.pm-mood::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(10, 9, 8, 0.7), rgba(10, 9, 8, 0) 40%);
}

.pm-mood__caption {
	position: absolute;
	z-index: 2;
	left: var(--pm-pad);
	right: var(--pm-pad);
	bottom: calc(20px + 2vw);
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 2rem;
}

.pm-mood__caption span {
	font-size: 40px;
	line-height: 0.95;
	letter-spacing: -0.02em;
}

.pm-mood__caption em {
	max-width: 360px;
	font-family: var(--pm-text);
	font-style: normal;
	font-weight: 300;
	font-size: 15px;
	text-align: right;
	color: rgba(255, 255, 255, 0.72);
}

/* ---------- 10. Der Abend ---------- */
.pm-services {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 2rem;
	background: var(--pm-paper);
	color: var(--pm-paper-ink);
	padding: calc(20px + 5vw) var(--pm-pad);
}

.pm-services__text {
	position: sticky;
	top: 100px;
	flex: 1;
	margin-bottom: auto;
}

.pm-services__text h2 {
	max-width: 960px;
	padding-right: calc(20px + 2vw);
	font-size: 32px;
	line-height: 1.2;
	font-weight: 200;
}

.pm-services__text p {
	margin-top: 40px;
	max-width: 420px;
	font-family: var(--pm-text);
	font-size: 16px;
	line-height: 1.45;
	font-weight: 300;
}

.pm-services__list {
	width: 50%;
}

.pm-services__list h3 {
	margin-bottom: 10px;
	font-size: 20px;
	font-weight: 200;
}

.pm-services__list li {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px;
	margin-bottom: 20px;
	border-radius: var(--pm-radius);
	background: var(--pm-chip);
	font-size: calc(24px + 3vw);
	line-height: 1;
	font-weight: 200;
	letter-spacing: -0.02em;
}

.pm-services__info p {
	margin-top: calc(30px + 3vw);
	max-width: 600px;
	font-family: var(--pm-text);
	font-size: 16px;
	line-height: 1.3;
	font-weight: 300;
	letter-spacing: -0.1px;
}

.pm-services__info strong {
	opacity: 0.5;
	font-weight: 500;
}

/* ---------- 11. Die Köche ---------- */
.pm-founders {
	position: relative;
	z-index: 2;
	background: var(--pm-black);
	padding: calc(20px + 5vw) var(--pm-pad);
}

.pm-founders__title {
	padding-bottom: calc(20px + 5vw);
	text-align: center;
	font-size: calc(20px + 8vw);
	line-height: 1;
	font-weight: 200;
	letter-spacing: -0.03em;
}

.pm-founders__wrapper {
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 20px;
}

.pm-founder {
	margin-bottom: 40px;
}

.pm-founder__image {
	overflow: hidden;
	border-radius: var(--pm-radius);
	aspect-ratio: 3 / 4;
}

.pm-founder__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pm-founder__info h3 {
	margin-top: 10px;
	font-size: 32px;
	font-weight: 200;
	letter-spacing: -0.01em;
}

.pm-founder__role {
	margin-top: 2px;
	font-family: var(--pm-text);
	font-style: italic;
	font-weight: 300;
	font-size: 17px;
	opacity: 0.8;
}

.pm-founder__award {
	margin: -6px 0 20px;
	font-family: var(--pm-bauhaus);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.55;
}

.pm-founder__info p:not(.pm-founder__role):not(.pm-founder__award) {
	margin: 20px 0;
	font-family: var(--pm-text);
	font-weight: 300;
	line-height: 1.45;
	opacity: 0.5;
}

.pm-founder__links a {
	margin-right: 14px;
	font-family: var(--pm-text);
	font-weight: 300;
}

.pm-founder__links a span {
	display: inline-block;
	transition: transform 0.5s var(--pm-ease);
}

.pm-founder__links a:hover span {
	transform: translateX(4px);
}

/* ---------- 12. Reservierung: das Blatt Papier ---------- */
.pm-res {
	position: relative;
	z-index: 2;
	background: var(--pm-paper);
	color: var(--pm-paper-ink);
	padding: calc(40px + 6vw) var(--pm-pad) calc(60px + 8vw);
}

.pm-res__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--pm-gutter);
}

/* Überschrift über die volle Breite, darunter links der Text, rechts das Blatt –
   das Blatt verdeckt die Überschrift nicht mehr */
.pm-res__title {
	grid-column: 1 / -1;
	max-width: 15ch;
	font-size: calc(26px + 6.2vw);
	line-height: 0.98;
	font-weight: 200;
	letter-spacing: -0.035em;
}

.pm-res__text {
	grid-column: 1 / span 3;
	grid-row: 2;
	align-self: start;
	margin-top: calc(var(--clip-gap, 7vw) + 4vw);
	font-family: var(--pm-text);
	font-weight: 300;
	font-size: calc(15px + 0.35vw);
	line-height: 1.3;
}

/* Das Blatt rutscht über die Überschrift, wie bei Storey */
.pm-paper {
	--clip-w: 5.5vw;
	position: relative;
	z-index: 2;
	grid-column: 4 / span 9;
	grid-row: 2;
	/* Platz für die Büroklammer, die oben übersteht */
	margin-top: calc(var(--clip-w) * 0.9 + 2.2vw);
	color: var(--pm-form-ink);
	isolation: isolate;
	will-change: transform;
}

.pm-paper__shadow {
	position: absolute;
	inset: 0;
	z-index: 1;
	filter: drop-shadow(0 2px 2px rgba(45, 30, 15, 0.1)) drop-shadow(0 28px 38px rgba(45, 30, 15, 0.16));
	pointer-events: none;
}

.pm-paper__sheet,
.pm-paper__grain {
	position: absolute;
	inset: 0;
	clip-path: var(--deckle, none);
	pointer-events: none;
}

.pm-paper__sheet {
	background: var(--pm-sheet);
}

/* Die Textur liegt ÜBER allem, so bekommt auch die Schrift die Fasern ab */
.pm-paper__grain {
	z-index: 3;
	background: url("../img/papier.webp") center / cover no-repeat;
	mix-blend-mode: multiply;
	opacity: 0.46;
	filter: saturate(0.7);
}

/* Blindprägung: Papierfarbe, nur Licht und Schatten zeichnen das Relief */
.pm-paper__emboss {
	position: absolute;
	z-index: 2;
	right: 5.5vw;
	bottom: 6.2vw;
	width: clamp(84px, 8.5vw, 140px);
	height: auto;
	color: rgba(120, 100, 75, 0.07);
	transform: rotate(-9deg);
	filter: drop-shadow(-0.7px -0.7px 0 rgba(255, 255, 255, 1)) drop-shadow(0.9px 1px 0.5px rgba(70, 50, 30, 0.42));
	pointer-events: none;
}

/* Büroklammer in zwei Lagen: ein Draht unter dem Blatt, einer darauf */
.pm-clip {
	position: absolute;
	top: calc(var(--clip-w) * -0.9);
	left: 7vw;
	width: var(--clip-w);
	height: auto;
	overflow: visible;
	pointer-events: none;
	transform: rotate(-3deg);
	transform-origin: 50% 30%;
}

.pm-clip--back {
	z-index: 0;
}

.pm-clip--front {
	z-index: 4;
	filter: drop-shadow(1.5px 3px 1.6px rgba(40, 28, 16, 0.32));
}

.pm-clip__shade {
	stroke: #6e7379;
	stroke-width: 2.9;
}

.pm-clip__metal {
	stroke: #c4c8cd;
	stroke-width: 2.1;
}

.pm-clip__shine {
	stroke: #f7f8fa;
	stroke-width: 0.6;
	opacity: 0.9;
}

/* ---- Das Formular selbst ---- */
.pm-form {
	position: relative;
	z-index: 2;
	padding: 5vw 0 2.5vw;
	font-family: var(--pm-grotesk);
	font-weight: 400;
	font-size: clamp(14px, 1.1vw, 19px);
	line-height: 1.3;
	letter-spacing: 0;
	font-variation-settings: normal;
}

.pm-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pm-mono {
	font-family: var(--pm-mono);
	font-weight: 300;
}

.pm-form__row {
	position: relative;
	display: grid;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	column-gap: var(--pm-gutter);
	margin-bottom: 4.6vw;
}

.pm-form__num {
	grid-column: 2;
	padding-top: 0.15em;
}

.pm-form__field {
	position: relative;
	grid-column: 3 / span 6;
	display: flex;
	flex-direction: column;
	gap: 0.5vw;
}

.pm-form__field > label,
.pm-form__field > legend {
	padding: 0;
}

.pm-form__field legend {
	margin-bottom: 1vw;
}

.pm-form__field label small {
	font-size: 0.85em;
	opacity: 0.55;
}

/* Kopfzeile: Nummer · Titel · Briefkopf */
.pm-form__row--head {
	align-items: start;
	margin-bottom: 6vw;
}

.pm-form__heading {
	grid-column: 3 / span 3;
	font-size: clamp(22px, 2.2vw, 38px);
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.pm-form__brand {
	grid-column: 7 / span 3;
	display: flex;
	align-items: center;
	gap: 0.9vw;
	font-family: var(--pm-display);
	font-weight: 300;
	font-size: clamp(22px, 2.2vw, 38px);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	letter-spacing: -0.02em;
	line-height: 1;
}

.pm-wheel {
	width: 2.6vw;
	min-width: 26px;
	height: auto;
	transform-origin: 50% 50%;
	animation: pm-spin 24s linear infinite;
}

@keyframes pm-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Linierte Felder, beschrieben mit Füller */
.pm-form input[type="text"],
.pm-form input[type="email"],
.pm-form input[type="tel"],
.pm-cal__line {
	width: 100%;
	min-height: 1.6em;
	padding: 0 0 0.05em;
	border: 0;
	border-bottom: 1px solid var(--pm-form-ink);
	border-radius: 0;
	background: transparent;
	color: var(--pm-fountain);
	font-family: var(--pm-hand);
	font-size: clamp(21px, 1.75vw, 31px);
	line-height: 1.5;
	letter-spacing: 0.01em;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.3s var(--pm-ease), box-shadow 0.3s var(--pm-ease);
}

.pm-form input:focus-visible {
	box-shadow: 0 1px 0 0 var(--pm-fountain);
	border-bottom-color: var(--pm-fountain);
}

/* ---- Kalender auf dem Blatt ---- */
.pm-cal__line {
	display: flex;
	align-items: flex-end;
	min-height: 1.6em;
}

.pm-cal__value:empty::before {
	content: "bitte unten wählen";
	font-family: var(--pm-pencil);
	font-size: 0.7em;
	color: rgba(58, 54, 49, 0.35);
}

.pm-cal__sheet {
	width: 100%;
	max-width: 470px;
	margin-top: 1.4vw;
}

.pm-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(58, 54, 49, 0.35);
}

.pm-cal__month {
	font-size: clamp(13px, 0.95vw, 16px);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.pm-cal__nav {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	margin: -6px;
	font-family: var(--pm-grotesk);
	font-size: 22px;
	line-height: 1;
	border-radius: 50%;
	transition: background-color 0.3s var(--pm-ease), opacity 0.3s var(--pm-ease);
}

.pm-cal__nav:hover:not(:disabled) {
	background: rgba(58, 54, 49, 0.08);
}

.pm-cal__nav:disabled {
	opacity: 0.18;
	cursor: default;
}

.pm-cal__week,
.pm-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	text-align: center;
}

.pm-cal__week {
	padding: 10px 0 4px;
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.55;
}

.pm-cal__grid {
	row-gap: 2px;
}

.pm-day {
	position: relative;
	height: max(2.7vw, 40px);
	display: grid;
	place-items: center;
	font-family: var(--pm-mono);
	font-weight: 300;
	font-size: clamp(14px, 1vw, 17px);
	color: var(--pm-form-ink);
	border-radius: 50%;
	transition: color 0.3s var(--pm-ease), background-color 0.3s var(--pm-ease);
}

.pm-day:not(:disabled):hover {
	background: radial-gradient(circle, rgba(58, 54, 49, 0.08) 0 52%, transparent 54%);
}

.pm-day:focus-visible {
	outline: 1.5px solid var(--pm-fountain);
	outline-offset: -3px;
}

.pm-day:disabled {
	cursor: default;
}

.pm-day.is-past {
	opacity: 0.16;
}

.pm-day.is-closed {
	opacity: 0.26;
}

.pm-day.is-full {
	color: rgba(58, 54, 49, 0.48);
}

/* wenige Plätze: ein Bleistiftpunkt unter der Zahl */
.pm-day.is-few::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 13%;
	width: 3px;
	height: 3px;
	margin-left: -1.5px;
	border-radius: 50%;
	background: var(--pm-graphite);
}

.pm-day svg {
	position: absolute;
	left: 50%;
	top: 50%;
	max-width: none;
	overflow: visible;
	pointer-events: none;
	fill: none;
	stroke-linecap: round;
}

/* ausgebucht: mit Bleistift gestrichen */
.pm-day__strike {
	width: 70%;
	height: 60%;
	transform: translate(-50%, -50%) rotate(var(--tilt, -8deg));
	stroke: var(--pm-graphite);
	stroke-width: 1.3;
	opacity: 0.85;
}

/* gewählt: mit dem Füller umkringelt */
.pm-day__ring {
	width: 118%;
	height: 92%;
	transform: translate(-50%, -50%) rotate(var(--tilt, -8deg));
	stroke: var(--pm-fountain);
	stroke-width: 1.6;
	stroke-dasharray: 170;
	stroke-dashoffset: 170;
	transition: stroke-dashoffset 0.6s cubic-bezier(0.55, 0.05, 0.3, 1);
}

.pm-day.is-selected {
	color: var(--pm-fountain);
	font-weight: 400;
}

.pm-day.is-selected .pm-day__ring {
	stroke-dashoffset: 0;
}

.pm-cal__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(58, 54, 49, 0.18);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.6;
}

.pm-cal__key {
	position: relative;
}

.pm-cal__key--few {
	padding-left: 10px;
}

.pm-cal__key--few::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 4px;
	height: 4px;
	margin-top: -2px;
	border-radius: 50%;
	background: currentColor;
}

.pm-cal__key--full {
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.pm-cal__grid.is-turning {
	opacity: 0;
	transform: translateX(var(--turn, 10px));
}

.pm-cal__grid {
	transition: opacity 0.28s var(--pm-ease), transform 0.28s var(--pm-ease);
}

/* Uhrzeiten, die an diesem Abend schon vergeben sind */
.pm-check.is-taken {
	cursor: default;
	opacity: 0.5;
}

.pm-check.is-taken > span:last-child {
	position: relative;
}

.pm-check.is-taken > span:last-child::after {
	content: "";
	position: absolute;
	left: -12%;
	right: -12%;
	top: 50%;
	height: 1.4px;
	background: var(--pm-graphite);
	transform: rotate(-9deg);
	border-radius: 2px;
}

/* Kästchen: leer grau, angekreuzt mit einem Federstrich */
.pm-form__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1vw var(--pm-gutter);
}

/* Uhrzeit und Personen teilen sich dieselben schmalen Spalten; rechts
   daneben bleibt Platz für die Bleistiftnotiz */
.pm-form__options--5,
.pm-form__options--6 {
	grid-template-columns: repeat(6, auto);
	justify-content: start;
	column-gap: max(2.4vw, 22px);
}

.pm-form__options--5 {
	grid-template-columns: repeat(5, auto);
}

.pm-check {
	position: relative;
	display: flex;
	align-items: center;
	gap: 2.5vw;
	cursor: pointer;
	user-select: none;
}

.pm-form__options--5 .pm-check,
.pm-form__options--6 .pm-check {
	gap: 0.9vw;
}

.pm-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.pm-check__box {
	position: relative;
	flex-shrink: 0;
	width: 1vw;
	height: 1vw;
	min-width: 13px;
	min-height: 13px;
	background: rgba(58, 54, 49, 0.45);
	transition: background-color 0.3s var(--pm-ease);
}

.pm-check:hover .pm-check__box {
	background: rgba(58, 54, 49, 0.62);
}

.pm-check input:focus-visible + .pm-check__box {
	outline: 2px solid var(--pm-fountain);
	outline-offset: 3px;
}

/* Das Kreuz zeichnet JS als SVG-Pfad hinein: kräftig, mit Füller, über den Rand hinaus */
.pm-check__box svg {
	position: absolute;
	left: -75%;
	top: -85%;
	width: 250%;
	max-width: none; /* sonst staucht die globale svg-Regel das Kreuz auf Kästchengröße */
	height: 250%;
	overflow: visible;
	pointer-events: none;
}

.pm-check__box path {
	fill: none;
	stroke: var(--pm-fountain);
	stroke-width: 3.4;
	stroke-linecap: round;
	stroke-dasharray: 30;
	stroke-dashoffset: 30;
	transition: stroke-dashoffset 0.32s cubic-bezier(0.5, 0, 0.2, 1);
}

.pm-check__box path + path {
	transition-delay: 0.16s;
}

.pm-check input:checked + .pm-check__box {
	background: rgba(58, 54, 49, 0.22);
	animation: pm-tick 0.35s var(--pm-ease);
}

.pm-check input:checked + .pm-check__box path {
	stroke-dashoffset: 0;
}

/* auch die Beschriftung bekommt Tinte ab */
.pm-check > span:last-child {
	transition: color 0.3s var(--pm-ease);
}

.pm-check input:checked ~ span:last-child {
	color: var(--pm-fountain);
	font-weight: 500;
}

@keyframes pm-tick {
	40% {
		transform: scale(0.82);
	}
}

/* Textfeld mit drei vorgedruckten Linien */
.pm-form__lines {
	position: relative;
	width: 100%;
	height: calc(3 * 2.5vw);
	min-height: 108px;
}

.pm-form__lines textarea {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	resize: none;
	outline: none;
	overflow: hidden;
	color: var(--pm-fountain);
	font-family: var(--pm-hand);
	font-size: clamp(19px, 1.55vw, 28px);
	line-height: max(2.5vw, 36px);
}

.pm-form__rules {
	position: absolute;
	inset: 0 0 auto;
	pointer-events: none;
}

.pm-form__rules i {
	display: block;
	height: max(2.5vw, 36px);
	border-bottom: 1px solid var(--pm-form-ink);
}

.pm-form__lines:focus-within .pm-form__rules i {
	border-bottom-color: rgba(31, 45, 92, 0.75);
}

/* Absenden */
.pm-form__row--submit {
	margin-bottom: 2.4vw;
	min-height: 3.2vw;
	transition: min-height 0.6s var(--pm-ease);
}

/* Nach dem Absenden tauschen die beiden Blöcke die Rollen: der Dank fließt
   im Layout und schiebt die Fußzeile, der Knopf verschwindet aus dem Fluss */
.pm-form.is-sent .pm-form__done {
	position: relative;
	top: 0;
}

.pm-form.is-sent .pm-form__submit {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

.pm-form__submit {
	grid-column: 3 / span 6;
	display: flex;
	align-items: center;
	gap: 2vw;
	transition: opacity 0.5s var(--pm-ease), transform 0.5s var(--pm-ease);
}

.pm-send {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 2.3vw;
	padding: max(0.7vw, 10px) max(0.9vw, 13px);
	background: var(--pm-form-ink);
	color: var(--pm-sheet);
	font-family: var(--pm-grotesk);
	font-weight: 400;
	transition: background-color 0.4s var(--pm-ease);
}

.pm-send:hover {
	background: #1d1b18;
}

.pm-send__icon {
	position: relative;
	width: max(1.15vw, 16px);
	height: max(1.15vw, 16px);
	transition: transform 1.2s var(--pm-ease);
}

.pm-send__icon i {
	position: absolute;
	left: 50%;
	top: 0;
	width: max(0.17vw, 2.4px);
	height: 50%;
	margin-left: calc(max(0.17vw, 2.4px) / -2);
	transform-origin: 50% 100%;
	transform: rotate(calc(var(--i) * 45deg));
}

.pm-send__icon i::before {
	content: "";
	display: block;
	width: 100%;
	height: 38%;
	background: currentColor;
}

.pm-send__icon i:nth-child(1) { --i: 0; }
.pm-send__icon i:nth-child(2) { --i: 1; }
.pm-send__icon i:nth-child(3) { --i: 2; }
.pm-send__icon i:nth-child(4) { --i: 3; }
.pm-send__icon i:nth-child(5) { --i: 4; }
.pm-send__icon i:nth-child(6) { --i: 5; }
.pm-send__icon i:nth-child(7) { --i: 6; }
.pm-send__icon i:nth-child(8) { --i: 7; }

.pm-send:hover .pm-send__icon {
	transform: rotate(135deg);
}

.pm-form.is-sending .pm-send__icon {
	animation: pm-spin 1.1s linear infinite;
}

.pm-form__status {
	font-family: var(--pm-pencil);
	font-size: clamp(16px, 1.25vw, 22px);
	color: var(--pm-red);
}

/* Nach dem Absenden: Stempel und ein Gruß */
/* Liegt absolut im Rasterbereich der Spalten 3–8, nimmt also keinen Platz weg */
.pm-form__done {
	grid-column: 3 / span 6;
	grid-row: 1;
	position: absolute;
	top: -0.6vw;
	left: 0;
	width: 100%;
	display: flex;
	align-items: center;
	gap: 2.5vw;
	visibility: hidden;
	pointer-events: none;
}

.pm-stamp {
	flex-shrink: 0;
	width: clamp(170px, 15vw, 270px);
	height: auto;
	color: var(--pm-red);
	mix-blend-mode: multiply;
	opacity: 0;
	transform: rotate(-7deg) scale(1.7);
}

.pm-stamp__big {
	font-family: var(--pm-mono);
	font-weight: 400;
	font-size: 31px;
	letter-spacing: 3px;
}

.pm-stamp__small {
	font-family: var(--pm-mono);
	font-weight: 400;
	font-size: 11.5px;
	letter-spacing: 2.5px;
}

.pm-form__thanks {
	color: var(--pm-fountain);
	font-family: var(--pm-hand);
	font-size: clamp(19px, 1.5vw, 27px);
	line-height: 1.35;
}

.pm-form.is-sent .pm-form__submit {
	opacity: 0;
	transform: translateY(-10px);
	pointer-events: none;
}

.pm-form.is-sent .pm-form__done {
	visibility: visible;
	pointer-events: auto;
}

.pm-form.is-sent .pm-stamp {
	animation: pm-stamp 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) 0.15s forwards;
}

@keyframes pm-stamp {
	0% {
		opacity: 0;
		transform: rotate(-7deg) scale(1.7);
	}
	55% {
		opacity: 0.92;
	}
	100% {
		opacity: 0.88;
		transform: rotate(-7deg) scale(1);
	}
}

/* Fußzeile des Formulars */
.pm-form__row--foot {
	margin-bottom: 1vw;
	padding-top: 2vw;
	border-top: 1px solid var(--pm-form-ink);
}

.pm-form__row--foot span {
	text-align: center;
}

.pm-form__row--foot span:nth-child(1) {
	grid-column: 1 / span 2;
}

.pm-form__row--foot span:nth-child(2) {
	grid-column: 4 / span 3;
}

.pm-form__row--foot span:nth-child(3) {
	grid-column: 7 / span 3;
}

/* ---- Handschrift auf dem Blatt ---- */
.pm-hand {
	font-family: var(--pm-pencil);
	font-weight: 400;
	letter-spacing: 0;
}

.pm-hand--pencil {
	color: var(--pm-graphite);
}

.pm-hand--ink {
	font-family: var(--pm-hand);
	color: var(--pm-fountain);
}

.pm-sign {
	display: block;
	margin-top: 0.15em;
	font-family: var(--pm-sign);
	font-size: 1.55em;
	line-height: 1;
}

/* Wird beim Hineinscrollen von links nach rechts „geschrieben“ */
[data-write] {
	clip-path: inset(-20% 100% -20% 0);
	transition: clip-path 1.8s cubic-bezier(0.45, 0.05, 0.4, 1);
}

[data-write].is-written {
	clip-path: inset(-20% -5% -20% 0);
}

.no-js [data-write] {
	clip-path: none;
}

.pm-form__greeting {
	position: absolute;
	right: 4.2vw;
	top: calc(100% + 0.6vw);
	font-size: clamp(17px, 1.35vw, 24px);
	line-height: 1.15;
	text-align: right;
	transform: rotate(-4deg);
}

.pm-form__note {
	margin-top: 0.45vw;
	font-size: clamp(15px, 1.15vw, 20px);
	line-height: 1.2;
	transition: color 0.4s var(--pm-ease), clip-path 1.8s cubic-bezier(0.45, 0.05, 0.4, 1);
}

/* Der Pfeil liegt innerhalb der Notiz, sonst schneidet die Schreib-Maske ihn ab */
.pm-form__aside {
	position: absolute;
	right: -2vw;
	top: 0.4vw;
	width: 36%;
	padding-left: max(4.4vw, 50px);
	font-size: clamp(16px, 1.25vw, 22px);
	line-height: 1.12;
	transform: rotate(-4deg);
	transform-origin: 0 0;
}

.pm-arrow {
	position: absolute;
	left: 0;
	top: 0.9vw;
	width: max(3.8vw, 44px);
	max-width: none;
	height: auto;
	overflow: visible;
	transform: scaleX(-1) rotate(-12deg);
}

.pm-arrow path {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pm-form__err {
	display: none;
	margin-top: 0.3vw;
	font-family: var(--pm-pencil);
	font-size: clamp(15px, 1.15vw, 20px);
	line-height: 1.2;
	color: var(--pm-red);
}

.pm-form__field.is-invalid .pm-form__err {
	display: block;
	animation: pm-scribble 0.7s var(--pm-ease) both;
}

.pm-form__field.is-invalid input {
	border-bottom-color: var(--pm-red);
}

.pm-form__field.is-invalid .pm-check__box {
	background: rgba(168, 38, 28, 0.45);
}

@keyframes pm-scribble {
	from {
		clip-path: inset(-20% 100% -20% 0);
	}
	to {
		clip-path: inset(-20% -5% -20% 0);
	}
}

/* ---------- 13. Fuß ---------- */
.pm-footer {
	position: relative;
	z-index: 2;
	background: var(--pm-black);
	color: #fff;
	padding: 0 1.5vw 20px;
	margin-top: -1px;
}

.pm-footer__talk {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: calc(60px + 5vw) 0;
}

.pm-footer__claim {
	margin-bottom: 30px;
	text-align: center;
	font-size: calc(20px + 3vw);
	line-height: 1.1;
	font-weight: 200;
	letter-spacing: -0.02em;
}

.pm-footer__cta {
	overflow: hidden;
	padding: 30px 60px;
	border-radius: var(--pm-radius);
	background: #fff;
	color: #000;
	font-family: var(--pm-display);
	font-size: 24px;
	font-weight: 200;
}

.pm-footer__cta svg {
	display: inline;
	margin-left: 4px;
	transition: margin 0.3s var(--pm-ease);
}

.pm-footer__cta:hover svg {
	margin-left: 10px;
}

.pm-footer__contact {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 0;
	margin-bottom: 20px;
}

.pm-footer__contact small {
	margin-left: 10px;
	font-family: var(--pm-text);
	font-size: 16px;
	font-weight: 300;
	opacity: 0.3;
}

.pm-footer__contact a,
.pm-footer__contact span {
	margin: 0 10px 0 6px;
	font-family: var(--pm-text);
	font-size: 16px;
	font-weight: 300;
}

.pm-footer__logo {
	border-top: 1px solid var(--pm-ink-line);
	padding-top: 20px;
	overflow: hidden;
	text-align: center;
}

.pm-footer__logo span {
	display: inline-block;
	/* feste optische Größe: so wächst die Breite linear mit der Schriftgröße */
	font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
	font-size: 14.6vw;
	line-height: 0.82;
	font-weight: 200;
	letter-spacing: -0.035em;
	text-align: center;
	white-space: nowrap;
	opacity: 0.1;
	padding-bottom: 0.06em;
}

.pm-footer__credit {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding-top: 20px;
	font-family: var(--pm-text);
	font-size: 12px;
	font-weight: 300;
	opacity: 0.35;
}

.pm-footer__credit a:hover {
	text-decoration: underline;
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 960px) {
	:root {
		--pm-pad: 1.25rem;
		--pm-viewport: 100dvh;
	}

	.pm-cta {
		top: 10px;
	}

	.pm-cta--label {
		padding: 16px 20px;
		font-size: 16px;
		line-height: 23px;
		right: calc(var(--pm-pad) + 58px);
	}

	.pm-cta--icon {
		width: 55px;
		height: 55px;
	}

	.pm-logo {
		font-size: 17px;
	}

	.pm-hero__title {
		font-size: calc(17px + 3.6vw);
	}

	/* Beim Lesen auf dem Handy weicht der Kopf nach oben aus */
	.pm-header,
	.pm-cta {
		transition: transform 0.55s var(--pm-ease), opacity 0.45s var(--pm-ease), color 0.45s var(--pm-ease), background-color 0.5s var(--pm-ease);
	}

	.is-scrolling-down .pm-header,
	.is-scrolling-down .pm-cta {
		transform: translateY(-130%);
		opacity: 0;
		pointer-events: none;
	}

	.pm-cases__label {
		font-size: 20px;
	}

	.pm-cases__all {
		font-size: 14px;
		text-align: right;
	}

	.pm-hero__inner {
		bottom: 28px;
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
		padding-top: 20px;
	}

	.pm-hero__meta {
		max-width: 300px;
		margin-top: 12px;
		font-size: 14px;
	}

	.pm-hero__seals {
		gap: 10px;
	}

	.pm-hero__seals .pm-seal {
		width: 56px;
	}

	.pm-awards {
		grid-template-columns: 1fr;
		gap: 22px;
	}

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

	.pm-awards__list li {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.pm-awards__list .pm-seal {
		width: 64px;
	}

	.pm-paper__emboss {
		right: 7vw;
		bottom: 30vw;
		width: 22vw;
	}

	.pm-case__row,
	.pm-mood__caption {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.6rem;
	}

	.pm-case__title {
		font-size: calc(28px + 4vw);
	}

	.pm-case__meta,
	.pm-mood__caption em {
		text-align: left;
	}

	.pm-mood__caption span {
		font-size: calc(22px + 2vw);
	}

	/* Hochformat auf dem Handy: die Küche füllt den Bildschirm, der Text hat Luft */
	.pm-mood video {
		aspect-ratio: 4 / 5;
		max-height: 82svh;
	}

	.pm-founder__award {
		text-wrap: balance;
	}

	.pm-why__title {
		width: 100%;
	}

	.pm-services {
		flex-direction: column;
		padding: calc(20px + 6vw) calc(20px + 1.5vw);
	}

	.pm-services__text {
		position: static;
	}

	.pm-services__text h2 {
		font-size: 24px;
		margin: calc(20px + 2vw) 0 calc(40px + 5vw);
	}

	.pm-services__list {
		width: 100%;
	}

	.pm-services__list li {
		font-size: calc(24px + 1.5vw);
	}

	.pm-founders__wrapper {
		grid-template-columns: 1fr;
		padding: 0 20px;
	}

	.pm-footer__claim em {
		display: block;
	}

	/* Das Blatt liegt auf dem Handy unter dem Text statt darüber */
	.pm-res {
		padding-top: calc(40px + 10vw);
	}

	.pm-res__grid {
		display: block;
	}

	.pm-res__title {
		font-size: calc(30px + 6vw);
	}

	.pm-res__text {
		width: auto;
		max-width: 420px;
		margin-top: 7vw;
	}

	.pm-paper {
		--clip-w: 13vw;
		margin: calc(26vw + 20px) calc(var(--pm-pad) * -0.4) 0;
	}

	.pm-clip {
		left: 9vw;
	}

	.pm-form {
		padding: 12vw 5vw 8vw;
		font-size: 15px;
	}

	.pm-form__row {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		column-gap: 3vw;
		margin-bottom: 10vw;
	}

	.pm-form__num {
		grid-column: 1;
	}

	.pm-form__field,
	.pm-form__submit,
	.pm-form__done {
		grid-column: 2 / span 5;
	}

	.pm-form__field {
		gap: 1.6vw;
	}

	.pm-form__field legend {
		margin-bottom: 3vw;
	}

	.pm-form__row--head {
		margin-bottom: 13vw;
	}

	.pm-form__heading {
		grid-column: 2 / span 5;
		font-size: 24px;
	}

	.pm-form__brand {
		grid-column: 2 / span 5;
		margin-top: 5vw;
		font-size: 22px;
		gap: 10px;
	}

	.pm-form__greeting {
		position: static;
		grid-column: 2 / span 5;
		margin-top: 4vw;
		text-align: left;
		transform: rotate(-3deg);
		transform-origin: 0 50%;
	}

	.pm-form__options {
		gap: 4vw 3vw;
	}

	.pm-form__options--5,
	.pm-form__options--6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
	}

	.pm-form__options:not(.pm-form__options--5):not(.pm-form__options--6) {
		grid-template-columns: minmax(0, 1fr);
	}

	.pm-cal__sheet {
		max-width: none;
		margin-top: 4vw;
	}

	.pm-day {
		height: 42px;
	}

	.pm-check,
	.pm-form__options--5 .pm-check,
	.pm-form__options--6 .pm-check {
		gap: 3vw;
	}

	.pm-check__box {
		width: 3.5vw;
		height: 3.5vw;
	}

	.pm-form__aside {
		position: static;
		width: auto;
		margin-top: 3vw;
		transform: rotate(-2deg);
	}

	.pm-arrow {
		display: none;
	}

	.pm-form__lines {
		height: calc(3 * 9vw);
		min-height: 0;
	}

	.pm-form__lines textarea {
		line-height: 9vw;
	}

	.pm-form__rules i {
		height: 9vw;
	}

	.pm-form__row--submit {
		margin-bottom: 9vw;
	}

	.pm-form__done {
		flex-direction: column;
		align-items: flex-start;
		gap: 5vw;
	}

	.pm-send {
		gap: 6vw;
	}

	.pm-form__row--foot {
		padding-top: 5vw;
		margin-bottom: 2vw;
		font-size: 11px;
	}

	.pm-form__row--foot span:nth-child(1) {
		grid-column: 1 / span 2;
	}

	.pm-form__row--foot span:nth-child(2) {
		grid-column: 3 / span 2;
	}

	.pm-form__row--foot span:nth-child(3) {
		grid-column: 1 / -1;
		margin-top: 2vw;
	}
}

@media (max-width: 720px) {
	.pm-overview__lead {
		text-indent: 0;
	}

	.pm-footer__claim {
		max-width: 340px;
		font-size: calc(26px + 3vw);
	}

	.pm-footer__cta {
		padding: 20px 30px;
		font-size: 20px;
	}

	.pm-footer__contact {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.pm-footer__credit {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.pm-cta--label {
		display: none;
	}
}

/* ---------- 15. Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.pm-case {
		position: relative;
		clip-path: none;
	}

	.pm-cases-track {
		height: auto;
	}

	.pm-cases-viewport {
		position: relative;
		height: auto;
	}

	.pm-case {
		height: var(--pm-viewport);
	}

	[data-write] {
		clip-path: none;
	}
}
