/*
 * Peter Magner by Pencil – Gestaltung
 *
 * Alle Werte sind von www.petermagner.de (Proton-Theme) übernommen und
 * dort im Browser nachgemessen. Breakpoints wie im Original:
 * 1300 / 1250 / 1200 / 992 / 768 / 480 / 414 px.
 */

/* ---------- Schrift ---------- */

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/roboto-latin-ext.woff2") format("woff2");
	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: "Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/roboto-latin.woff2") format("woff2");
	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: "Roboto";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/roboto-latin-ext.woff2") format("woff2");
	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: "Roboto";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/roboto-latin.woff2") format("woff2");
	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;
}

/* ---------- Grundwerte ---------- */

:root {
	--pm-accent: #009ee3;
	--pm-bg: #f7f7f7;
	--pm-frame: #fff;
	--pm-text: #787878;
	--pm-heading: #3b3b3b;
	--pm-nav: #7a7a7a;
	--pm-mobile-nav-bg: #333;
	--pm-line: #dedede;
	--pm-frame-width: 24px;
}

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

html {
	font-size: 18px;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}

body {
	margin: 0;
	padding: 0;
	font-family: "Roboto", sans-serif;
	font-size: 18px;
	line-height: 30px;
	color: var(--pm-text);
	background-color: var(--pm-bg);
	overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 30px;
	color: var(--pm-heading);
}

h1,
h2,
h3 {
	margin: 20px 0 10px;
}

h4,
h5,
h6 {
	margin: 10px 0;
}

h1 {
	font-size: 32px;
	line-height: 44px;
}

p {
	margin: 0 0 1.5rem;
}

ul,
ol {
	margin-top: 0;
	margin-bottom: 10px;
}

b,
strong {
	font-weight: 700;
}

b {
	color: var(--pm-accent);
}

a {
	color: var(--pm-heading);
	text-decoration: none;
	background-color: transparent;
}

a:hover,
a:focus {
	color: var(--pm-heading);
	text-decoration: none;
}

img {
	border: 0;
	vertical-align: middle;
}

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

.pm-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pm-skip-link:focus {
	position: fixed !important;
	top: 30px;
	left: 30px;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 20px;
	background: #fff;
	color: var(--pm-heading);
}

/* ---------- Raster (wie Bootstrap 3) ---------- */

.pm-container {
	margin-right: auto;
	margin-left: auto;
	padding-right: 15px;
	padding-left: 15px;
}

@media (min-width: 768px) {
	.pm-container {
		width: 750px;
	}
}

@media (min-width: 992px) {
	.pm-container {
		width: 970px;
	}
}

@media (min-width: 1200px) {
	.pm-container {
		width: 1170px;
	}
}

/* ---------- Weißer Rahmen und Ladeblende ---------- */

body.pm-framed {
	margin: var(--pm-frame-width);
}

/* Unter der Admin-Leiste (z-index 99999), damit sie für Eingeloggte voll sichtbar bleibt. */
.pm-frame__bar {
	position: fixed;
	z-index: 99998;
	padding: 12px;
	background-color: var(--pm-frame);
}

.pm-frame__bar--top {
	top: 0;
	left: 0;
	width: 100%;
}

.admin-bar .pm-frame__bar--top {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.pm-frame__bar--right {
	top: 0;
	right: 0;
	height: 100%;
}

.pm-frame__bar--bottom {
	bottom: 0;
	left: 0;
	width: 100%;
}

.pm-frame__bar--left {
	top: 0;
	left: 0;
	height: 100%;
}

@media screen and (max-width: 1250px) {
	body.pm-framed {
		margin: 0;
	}

	.pm-frame {
		display: none;
	}
}

.pm-loading {
	display: none;
}

.pm-js .pm-loading {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
	width: 100%;
	height: 100%;
	background-color: var(--pm-bg);
	transition: all 0.2s ease-in-out;
}

.pm-js .pm-loading.is-loaded {
	opacity: 0;
	visibility: hidden;
}

.pm-wrapper {
	padding-bottom: 30px;
	background-color: inherit;
}

/* ---------- Kopfbereich ---------- */

.pm-header {
	position: relative;
	z-index: 1005;
	padding-top: 60px;
}

.pm-header__inner {
	display: table;
	width: 100%;
	table-layout: fixed;
}

.pm-header__logo {
	position: relative;
	z-index: 10;
	display: table-cell;
	width: 30%;
	min-width: 100px;
	vertical-align: middle;
}

.pm-header__logo-link {
	display: inline-block;
	max-width: 100%;
	vertical-align: top;
}

.pm-header__logo-img {
	display: block;
	max-width: 100%;
	height: auto;
}

.pm-header__holder {
	display: table-cell;
	text-align: right;
	vertical-align: middle;
}

.pm-nav {
	position: relative;
	float: right;
}

.pm-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pm-nav__list > li {
	position: relative;
	display: inline-block;
	margin-left: 25px;
	padding: 10px 0;
}

.pm-nav__list > li:first-child {
	margin-left: 0;
}

.pm-nav__list > li > a {
	position: relative;
	color: var(--pm-nav);
	font-size: 16px;
	font-weight: 300;
	line-height: 16px;
	text-transform: uppercase;
}

.pm-nav__list > li > a:hover,
.pm-nav__list > li > a:focus {
	color: var(--pm-nav);
}

/* Zwischen Tablet und breitem Desktop ist der Platz knapp: etwas kleiner,
   damit das Menü mit „Kommunikationsdesign“ einzeilig bleibt. */
@media screen and (min-width: 993px) and (max-width: 1199px) {
	.pm-nav__list > li {
		margin-left: 20px;
	}

	.pm-nav__list > li > a {
		font-size: 15px;
	}
}

.pm-burger {
	position: relative;
	z-index: 99;
	display: none;
	float: right;
	margin-left: 25px;
	padding: 10px 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	line-height: 30px;
	color: inherit;
}

.pm-burger__lines {
	position: relative;
	top: -4px;
	display: inline-block;
	width: 22px;
	height: 2px;
	background-color: var(--pm-heading);
	vertical-align: baseline;
}

.pm-burger__lines::before,
.pm-burger__lines::after {
	content: "";
	position: absolute;
	left: 0;
	display: inline-block;
	width: 22px;
	height: 2px;
	background-color: var(--pm-heading);
	transition: transform 0.2s ease;
}

.pm-burger__lines::before {
	top: 6px;
}

.pm-burger__lines::after {
	top: -6px;
}

.pm-burger[aria-expanded="true"] .pm-burger__lines {
	background-color: transparent;
}

.pm-burger[aria-expanded="true"] .pm-burger__lines::before {
	transform: translateY(-6px) rotateZ(45deg);
}

.pm-burger[aria-expanded="true"] .pm-burger__lines::after {
	transform: translateY(6px) rotateZ(-45deg);
}

@media screen and (max-width: 1300px) {
	.pm-header {
		padding-top: 40px;
	}
}

@media screen and (max-width: 992px) {
	.pm-header {
		padding: 30px 0;
	}

	.pm-header__logo {
		width: auto;
		max-width: 70%;
	}

	.pm-burger {
		display: block;
		margin-left: 30px;
		padding: 0;
	}

	.pm-nav {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 2;
		display: none;
		width: 100%;
		padding: 20px 30px;
		overflow: hidden;
		background-color: var(--pm-mobile-nav-bg);
		text-align: left;
	}

	.pm-nav.is-open {
		display: block;
	}

	.pm-nav__list > li {
		display: block;
		margin: 0;
		padding: 5px 0;
		overflow: hidden;
	}

	.pm-nav__list > li > a {
		display: block;
		padding: 0;
	}
}

@media screen and (max-width: 414px) {
	.pm-header {
		padding: 25px 0 20px;
	}
}

/* ---------- Seiten-Einleitung ---------- */

.pm-page-title {
	padding-top: 70px;
}

.pm-page-title__heading {
	margin: 0;
	font-size: 32px;
	font-weight: 400;
	line-height: 44px;
	color: var(--pm-heading);
}

.pm-page-title__highlight {
	display: block;
	color: var(--pm-accent);
	font-weight: 700;
}

@media screen and (max-width: 992px) {
	.pm-page-title {
		padding-top: 35px;
	}
}

@media screen and (max-width: 768px) {
	.pm-page-title__break {
		display: none;
	}
}

@media screen and (max-width: 480px) {
	.pm-page-title {
		padding-top: 25px;
	}
}

/* ---------- Abstände wie im Original ---------- */

.pm-pad-top-md {
	padding-top: 50px;
}

.pm-pad-bottom-sm {
	padding-bottom: 30px;
}

@media screen and (max-width: 1200px) {
	.pm-pad-top-md {
		padding-top: 40px;
	}

	.pm-pad-bottom-sm {
		padding-bottom: 20px;
	}
}

@media screen and (max-width: 992px) {
	.pm-pad-top-md {
		padding-top: 30px;
	}

	.pm-pad-bottom-sm {
		padding-bottom: 15px;
	}
}

@media screen and (max-width: 480px) {
	.pm-pad-top-md {
		padding-top: 20px;
	}

	.pm-pad-bottom-sm {
		padding-bottom: 10px;
	}
}

/* ---------- Fließtext-Seiten (Impressum, Datenschutz …) ---------- */

.pm-content > :last-child {
	margin-bottom: 0;
}

.pm-content a {
	color: var(--pm-heading);
}

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

/* ---------- Fußbereich ---------- */

/* Deutlicher Abstand zum Inhalt darüber. */
.pm-footer {
	margin-top: 70px;
}

@media screen and (max-width: 767px) {
	.pm-footer {
		margin-top: 40px;
	}
}

.pm-footer__widgets {
	padding: 50px 0 40px;
	border-bottom: 1px solid var(--pm-line);
}

.pm-footer__row,
.pm-footer__copyright-row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
}

.pm-footer__col {
	width: 50%;
	padding: 0 15px;
}

.pm-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pm-footer__menu li {
	display: block;
	margin-bottom: 5px;
}

.pm-footer__menu li:last-child {
	margin-bottom: 0;
}

.pm-footer__menu a {
	display: block;
	line-height: 24px;
	color: var(--pm-heading);
}

.pm-footer__menu a:hover,
.pm-footer__menu a:focus {
	color: var(--pm-accent);
}

.pm-footer__copyright {
	padding: 30px 0;
	line-height: 30px;
}

.pm-footer__copyright p {
	margin: 0;
}

.pm-footer__social {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: right;
}

.pm-footer__social li {
	display: inline-block;
	margin-left: 25px;
}

.pm-footer__social li:first-child {
	margin-left: 0;
}

.pm-social-link {
	display: inline-block;
	color: var(--pm-accent);
	line-height: 30px;
}

.pm-social-link:hover,
.pm-social-link:focus {
	color: var(--pm-accent);
}

.pm-social-link svg {
	display: inline-block;
	width: 15.75px;
	height: 18px;
	vertical-align: -3px;
}

.pm-social-link .pencil-button__text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media screen and (max-width: 767px) {
	.pm-footer__widgets {
		padding: 30px 0 20px;
	}

	.pm-footer__col {
		width: 100%;
	}

	.pm-footer__widgets .pm-footer__col {
		margin-bottom: 20px;
	}

	.pm-footer__copyright p {
		text-align: center;
	}

	.pm-footer__social {
		margin-top: 10px;
		text-align: center;
	}
}

/* ---------- Projekt-Raster ---------- */

.pm-grid {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	margin-right: -15px;
	margin-left: -15px;
}

.pm-grid__item {
	width: 100%;
	padding-right: 15px;
	padding-left: 15px;
}

@media (min-width: 768px) {
	.pm-grid__item {
		width: 50%;
	}
}

@media (min-width: 992px) {
	.pm-grid__item {
		width: 33.33333333%;
	}
}

/* Mit JavaScript: Anordnung wie im Original (Isotope/Packery). */
.pm-grid.is-laid-out {
	display: block;
}

.pm-grid.is-laid-out > .pm-grid__item {
	position: absolute;
	top: 0;
	left: 0;
}

.pm-grid.is-animated > .pm-grid__item {
	transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Querformat-Kacheln einheitlich 3:2 (Startseite: alle, ohne Masonry).
   Das Format sitzt auf der Kachel, das Bild füllt sie aus – so rechnen
   alle Browser gleich (Safari wertet aspect-ratio am Bild anders aus). */
.pm-tile--landscape {
	aspect-ratio: 3 / 2;
}

.pm-tile--landscape .pm-tile__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pm-grid__item.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.pm-tile,
.pm-project__photo {
	position: relative;
	display: block;
	margin-bottom: 30px;
	overflow: hidden;
	color: inherit;
}

.pm-tile__img,
.pm-project__photo img {
	display: block;
	width: 100%;
	height: auto;
}

.pm-tile__overlay-bg {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: var(--pm-accent);
	opacity: 0;
	transition: 0.2s all;
}

.pm-tile__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px 40px;
	text-align: center;
	opacity: 0;
	transition: 0.2s all;
}

.pm-tile__inner {
	width: 100%;
}

.pm-tile__title {
	margin: 0 0 5px;
	font-size: 18px;
	font-weight: 500;
	line-height: 30px;
	color: #fff;
	opacity: 0;
	transform: translate(0, 15px);
	transition: all 0.15s 75ms cubic-bezier(0.2, 0.45, 0.44, 0.93);
}

.pm-tile:hover .pm-tile__overlay-bg,
.pm-tile:focus-visible .pm-tile__overlay-bg {
	opacity: 0.95;
}

.pm-tile:hover .pm-tile__overlay,
.pm-tile:focus-visible .pm-tile__overlay {
	opacity: 1;
}

.pm-tile:hover .pm-tile__title,
.pm-tile:focus-visible .pm-tile__title {
	opacity: 1;
	transform: translate(0, 0);
	transition: all 0.3s 0.1s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

@media screen and (max-width: 480px) {
	.pm-tile,
	.pm-project__photo {
		margin-bottom: 15px;
	}
}

/* ---------- Bereichsleiste ----------
   Links mit eigener Adresse, gestaltet wie die Filter im Original. */

.pm-filters__list {
	display: inline-block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pm-filters__list li {
	display: inline-block;
	margin-right: 15px;
}

.pm-filters__list li:last-child {
	margin-right: 0;
}

.pm-filters__button {
	display: inline-block;
	margin: 0;
	padding: 0 10px;
	border: 0;
	border-radius: 3px;
	background-color: transparent;
	font: inherit;
	font-size: 18px;
	line-height: 30px;
	color: var(--pm-text);
	text-decoration: none;
	cursor: pointer;
	transition: 0.2s all;
}

.pm-filters__button:hover,
.pm-filters__button:focus-visible {
	background-color: #fff;
	color: var(--pm-accent);
}

.pm-filters__button.is-active {
	background-color: #fff;
}

@media screen and (max-width: 768px) {
	.pm-filters__list li,
	.pm-filters__list li:last-child {
		margin: 5px;
	}
}

/* Ohne JavaScript zeigt der Server den Bereich: Unpassendes ausblenden. */
html:not(.pm-js) .pm-grid__item.is-filtered-out {
	display: none;
}

@media screen and (max-width: 375px) {
	.pm-filters__list li,
	.pm-filters__list li:last-child {
		margin-right: 0;
		margin-bottom: 5px;
	}
}

/* ---------- Projektseite ---------- */

.pm-project__text {
	max-width: 770px;
}

.pm-project__text p {
	margin-bottom: 15px;
}

.pm-project__text > :last-child {
	margin-bottom: 0;
}

.pm-project__text a {
	color: var(--pm-heading);
}

/* Ab zwei Bildern: zwei Spalten ab Tablet. Ein Bild steht in voller
   Breite, aber nie größer als das Original (max-width im Markup). */
@media (min-width: 768px) {
	.pm-project__gallery--cols > .pm-grid__item {
		width: 50%;
	}
}

.pm-project__photo {
	cursor: zoom-in;
}

.pm-project__photo img {
	transition: opacity 0.2s;
}

.pm-project__photo:hover img,
.pm-project__photo:focus-visible img {
	opacity: 0.9;
}

.pm-project-nav {
	display: flex;
	padding-top: 20px;
}

.pm-project-nav__col {
	width: 50%;
}

.pm-project-nav__col--next {
	text-align: right;
}

.pm-project-nav a {
	position: relative;
	color: inherit;
}

.pm-project-nav a:hover,
.pm-project-nav a:focus {
	color: var(--pm-accent);
}

.pm-project-nav__icon {
	position: relative;
	top: 4px;
	display: inline-block;
	width: 10px;
	height: 28px;
	margin: 0 10px;
	/* Liegt wie das Icon-Font-Zeichen im Original 4 px unter der Grundlinie. */
	vertical-align: -4px;
}

.pm-project-nav__col--prev .pm-project-nav__icon {
	margin-left: 0;
}

.pm-project-nav__col--next .pm-project-nav__icon {
	margin-right: 0;
}

@media screen and (max-width: 767px) {
	.pm-project-nav {
		padding-top: 0;
	}
}

/* ---------- Abstand „sm-top“ wie im Original ---------- */

.pm-pad-top-sm {
	padding-top: 30px;
}

@media screen and (max-width: 1200px) {
	.pm-pad-top-sm {
		padding-top: 20px;
	}
}

@media screen and (max-width: 992px) {
	.pm-pad-top-sm {
		padding-top: 15px;
	}
}

@media screen and (max-width: 480px) {
	.pm-pad-top-sm {
		padding-top: 10px;
	}
}

/* ---------- Textblöcke (Referenzen, Über mich) ---------- */

.pm-text-block,
.pm-about__image {
	margin-bottom: 35px;
}

.pm-text-block > :last-child {
	margin-bottom: 0;
}

.pm-text-block strong {
	color: var(--pm-heading);
}

.pm-about__img {
	display: block;
	width: 100%;
	height: auto;
}

@media screen and (max-width: 480px) {
	.pm-text-block,
	.pm-about__image {
		margin-bottom: 15px;
	}
}

/* ---------- Leistungen ---------- */

.pm-services__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	margin-right: -15px;
	margin-left: -15px;
}

.pm-services__col {
	width: 100%;
	padding-right: 15px;
	padding-left: 15px;
}

@media (min-width: 768px) {
	.pm-services__col {
		width: 33.33333333%;
	}
}

.pm-service {
	position: relative;
	margin-bottom: 30px;
}

.pm-service__icon {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	height: 38px;
	color: var(--pm-heading);
}

/* Größe wie das Icon-Font-Zeichen (35 px) im Original. */
.pm-service__icon svg {
	display: block;
	width: auto;
	height: 30px;
	margin-top: 1.5px;
}

.pm-service__content {
	padding-left: 65px;
}

.pm-service__title {
	margin: 0 0 10px;
}

.pm-service__text p {
	color: var(--pm-text);
}

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

.pm-contact {
	padding-top: 70px;
}

.pm-contact__head {
	padding: 10px;
}

.pm-contact__title,
.pm-contact__subtitle {
	margin: 0;
	font-size: 32px;
	line-height: 44px;
}

.pm-contact__title {
	font-weight: 700;
	color: var(--pm-accent);
}

.pm-contact__subtitle {
	margin-top: -4px;
	font-weight: 400;
	color: #000;
}

.pm-form {
	margin-top: 60px;
	padding: 0 10px;
}

.pm-form__group {
	margin-bottom: 15px;
}

.pm-form__field {
	display: block;
	width: 100%;
	min-height: 47px;
	margin: 0;
	padding: 6px 16px;
	border: 0;
	border-radius: 0;
	outline: 0;
	background-color: #fff;
	font-family: inherit;
	font-size: 16px;
	line-height: 22.4px;
	color: #1f2124;
	resize: none;
}

.pm-form__field::placeholder {
	color: var(--pm-text);
	opacity: 1;
}

.pm-form__field:focus-visible {
	box-shadow: inset 0 0 0 1px var(--pm-accent);
}

.pm-form__consent {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.pm-form__consent input {
	flex: none;
	margin: 0;
}

.pm-form__privacy p {
	margin: 0;
}

.pm-form__submit {
	min-height: 60px;
	padding: 15px 30px;
	border: 0;
	border-radius: 4px;
	background-color: #000;
	font-family: inherit;
	font-size: 16px;
	line-height: 16px;
	color: #fff;
	cursor: pointer;
	transition: 0.2s all;
}

.pm-form__submit:hover,
.pm-form__submit:focus-visible {
	background-color: var(--pm-accent);
}

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

.pm-form__notice {
	margin: 0 0 15px;
	padding: 10px 16px;
	background-color: #fff;
	color: var(--pm-heading);
}

.pm-form__notice--sent {
	border-left: 4px solid var(--pm-accent);
}

.pm-form__notice--invalid,
.pm-form__notice--error,
.pm-form__notice--limit {
	border-left: 4px solid #c0392b;
}

/* Im Original (Elementor) gibt es den oberen Abstand nur über 1024 px. */
@media screen and (max-width: 1024px) {
	.pm-contact {
		padding-top: 0;
	}
}

@media screen and (max-width: 767px) {
	.pm-flush-bottom-mobile .pm-wrapper {
		padding-bottom: 0;
	}

	/* Unterer Zeilenabstand der Original-Zeile, wirksam sobald die Spalte nicht mehr schwebt. */
	.pm-references {
		padding-bottom: 15px;
	}
}

@media screen and (max-width: 480px) {
	.pm-references {
		padding-bottom: 10px;
	}
}

/* ---------- Kontakt-Reiter ----------
   Blauer Reiter am rechten Rand. Er schiebt ein Panel mit Telefon, E-Mail
   und Link zum Formular auf; geschlossen ist nur der Reiter sichtbar. */

/* Reiter und Panel oben bündig, das Panel hängt nach unten. Das Skript
   setzt --pm-flyout-top auf die Höhe der ersten Bilderreihe; ohne Skript
   sitzt der Reiter (--pm-flyout-tab-h hoch) mittig am Rand. */
.pm-flyout {
	--pm-flyout-w: min(340px, calc(100vw - 44px));
	--pm-flyout-tab-h: 111px;
	--pm-flyout-top: calc(50vh - var(--pm-flyout-tab-h) / 2);
	position: fixed;
	top: var(--pm-flyout-top);
	right: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	transform: translateX(var(--pm-flyout-w));
	transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pm-flyout.is-open {
	transform: translateX(0);
}

/* Senkrecht, von unten nach oben zu lesen. Durch die Drehung liegen die
   Rundungen links. */
.pm-flyout__tab {
	display: block;
	padding: 18px 11px;
	border-radius: 0 4px 4px 0;
	background-color: var(--pm-accent);
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 20px;
	text-decoration: none;
	text-transform: uppercase;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	transition: background-color 0.2s;
}

.pm-flyout__tab:hover,
.pm-flyout__tab:focus-visible,
.pm-flyout.is-open .pm-flyout__tab {
	background-color: #0088c4;
	color: #fff;
}

.pm-flyout__tab:focus-visible,
.pm-flyout__close:focus-visible,
.pm-flyout__panel a:focus-visible {
	outline: 2px solid var(--pm-heading);
	outline-offset: 2px;
}

.pm-flyout__panel {
	position: relative;
	box-sizing: border-box;
	width: var(--pm-flyout-w);
	/* Bleibt auf niedrigen Bildschirmen ganz sichtbar, sonst scrollbar. */
	max-height: calc(100vh - var(--pm-flyout-top) - 12px);
	overflow-y: auto;
	padding: 30px 30px 32px;
	background-color: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
	visibility: hidden;
	transition: visibility 0s 0.4s;
}

.pm-flyout.is-open .pm-flyout__panel {
	visibility: visible;
	transition: none;
}

.pm-flyout__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--pm-text);
	cursor: pointer;
}

.pm-flyout__close:hover {
	color: var(--pm-accent);
}

.pm-flyout__close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
}

.pm-flyout__title {
	margin: 0 30px 10px 0;
	color: var(--pm-accent);
	font-size: 22px;
	font-weight: 700;
	line-height: 30px;
}

.pm-flyout__text {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 26px;
}

.pm-flyout__list {
	margin: 0 0 24px;
}

.pm-flyout__list dt {
	font-size: 13px;
	line-height: 20px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pm-flyout__list dd {
	margin: 0 0 12px;
}

.pm-flyout__list dd:last-child {
	margin-bottom: 0;
}

.pm-flyout__link {
	color: var(--pm-heading);
	font-size: 18px;
	line-height: 28px;
	text-decoration: none;
}

.pm-flyout__link:hover {
	color: var(--pm-accent);
}

.pm-flyout__button {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 3px;
	background-color: var(--pm-accent);
	color: #fff;
	font-size: 16px;
	line-height: 24px;
	text-decoration: none;
	transition: background-color 0.2s;
}

.pm-flyout__button:hover,
.pm-flyout__button:focus-visible {
	background-color: #0088c4;
	color: #fff;
}

@media screen and (max-width: 767px) {
	.pm-flyout {
		--pm-flyout-tab-h: 92px;
	}

	.pm-flyout__tab {
		padding: 14px 8px;
		font-size: 12px;
	}

	.pm-flyout__panel {
		padding: 24px 22px 26px;
	}
}

/* Sehr niedrige Bildschirme (Handy quer): oben ansetzen. */
@media screen and (max-height: 520px) {
	.pm-flyout {
		--pm-flyout-top: 12px !important;
	}
}

@media print {
	.pm-flyout {
		display: none;
	}
}

/* ---------- Lightbox ---------- */

/* Das Bild liegt wie ein Fotoabzug mit weißem Rand und plastischem
   Schlagschatten auf der abgedunkelten Seite. */

html.pm-lightbox-open {
	overflow: hidden;
}

.pm-lightbox {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 15px;
	background-color: rgba(11, 11, 11, 0.88);
	animation: pm-lb-fade 0.25s ease;
	touch-action: pan-y pinch-zoom;
}

@media (min-width: 1200px) {
	.pm-lightbox {
		padding: 24px 15px;
	}
}

.pm-lightbox[hidden] {
	display: none;
}

@keyframes pm-lb-fade {
	from {
		opacity: 0;
	}
}

.pm-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.pm-lightbox__figure.is-loading {
	opacity: 0;
	transform: scale(0.985);
}

/* Breite, Höhe und weißen Rand (4 % der Abzugsbreite) setzt das Skript. */
.pm-lightbox__frame {
	padding: 16px;
	background-color: #fff;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.3),
		0 4px 8px rgba(0, 0, 0, 0.25),
		0 12px 24px rgba(0, 0, 0, 0.3),
		0 28px 56px rgba(0, 0, 0, 0.45);
}

.pm-lightbox__img {
	display: block;
	max-width: none;
}

.pm-lightbox__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 15px;
	justify-content: center;
	min-height: 20px;
	margin-top: 18px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 14px;
	line-height: 20px;
	text-align: center;
}

.pm-lightbox__count {
	font-variant-numeric: tabular-nums;
}

.pm-lightbox__project {
	color: #fff;
	text-decoration: none;
}

.pm-lightbox__project:hover,
.pm-lightbox__project:focus-visible {
	color: var(--pm-accent);
}

.pm-lightbox__project[hidden] {
	display: none;
}

.pm-lightbox__close,
.pm-lightbox__prev,
.pm-lightbox__next {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	/* Leicht hinterlegt, falls ein Pfeil über dem Abzug liegt. */
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s, background-color 0.2s;
}

.pm-lightbox__close:hover,
.pm-lightbox__prev:hover,
.pm-lightbox__next:hover,
.pm-lightbox__close:focus-visible,
.pm-lightbox__prev:focus-visible,
.pm-lightbox__next:focus-visible {
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.55);
}

.pm-lightbox__close:focus-visible,
.pm-lightbox__prev:focus-visible,
.pm-lightbox__next:focus-visible {
	outline: 2px solid var(--pm-accent);
	outline-offset: 2px;
}

.pm-lightbox__close[hidden],
.pm-lightbox__prev[hidden],
.pm-lightbox__next[hidden] {
	display: none;
}

.pm-lightbox svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pm-lightbox__close {
	top: 14px;
	right: 14px;
}

.pm-lightbox__prev,
.pm-lightbox__next {
	top: 50%;
	margin-top: -24px;
}

.pm-lightbox__prev svg,
.pm-lightbox__next svg {
	width: 36px;
	height: 36px;
}

.pm-lightbox__prev {
	left: 16px;
}

.pm-lightbox__next {
	right: 16px;
}

@media screen and (max-width: 767px) {
	.pm-lightbox__close {
		top: 8px;
		right: 8px;
	}

	/* Pfeile unten neben der Bildzahl, damit sie das Bild nicht verdecken. */
	.pm-lightbox__prev,
	.pm-lightbox__next {
		top: auto;
		bottom: 8px;
		margin-top: 0;
	}

	.pm-lightbox__prev {
		left: 8px;
	}

	.pm-lightbox__next {
		right: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
