/*
Theme Name: Philipp Tresbach
Theme URI: https://www.philipptresbach.de/
Author: Philipp Tresbach
Description: Schlankes Theme für philipptresbach.de – Nachbau der alten Hostinger-Builder-Seite. Inhalte im Block-Editor, Header und Footer aus dem Theme.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: philipptresbach
*/

/* ---------- Grundlagen ---------- */

@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(assets/fonts/raleway-latin.woff2) format('woff2');
}

:root {
	--pt-anthrazit: #333333;
	--pt-schwarz: #1a1a1a;
	--pt-grau: #56585e;
	--pt-max: 1224px;
	--pt-pad: 24px;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: Raleway, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--pt-schwarz);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
}

h1, h2, h3, h4, h5, h6 {
	font-family: Raleway, sans-serif;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	margin: 0;
}

p {
	margin: 0;
}

.pt-main {
	display: block;
}

/* ---------- Header ---------- */

.pt-header {
	position: relative;
	z-index: 20;
	background: var(--pt-anthrazit);
	color: #fff;
}

.pt-header--overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
}

.admin-bar .pt-header--overlay {
	top: 32px;
}

.pt-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	max-width: 1240px;
	margin: 0 auto;
	padding: 24px 16px;
}

.pt-logo {
	display: block;
	line-height: 0;
}

.pt-logo img {
	display: block;
	width: 200px;
	height: auto;
}

.pt-logo__text {
	display: inline-block;
	border: 1px solid #fff;
	padding: 8px 12px;
	font-size: 28px;
	line-height: 1.1;
	color: #fff;
}

.pt-nav__list {
	display: flex;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pt-nav__list a {
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	line-height: 1.5;
	padding-bottom: 2px;
	border-bottom: 1px solid transparent;
}

.pt-nav__list a:hover,
.pt-nav__list .current-menu-item > a {
	border-bottom-color: #fff;
}

.pt-header__end {
	display: flex;
	justify-content: flex-end;
}

.pt-burger {
	display: none;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: none;
	border: 0;
	cursor: pointer;
}

.pt-burger span {
	display: block;
	height: 2px;
	margin: 5px 0;
	background: #fff;
	transition: transform .2s ease, opacity .2s ease;
}

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

.wp-block-button__link,
.wp-element-button {
	display: inline-block;
	background: var(--pt-anthrazit);
	color: #fff;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 16px 40px;
	font-family: Raleway, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	background: rgb(29, 30, 32);
	color: #fff;
}

.pt-btn-hell .wp-block-button__link {
	background: #fff;
	color: var(--pt-anthrazit);
}

.pt-btn-hell .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .48);
	color: #fff;
}

.pt-btn-rahmen .wp-block-button__link {
	border-color: #0d141a;
	border-radius: 28px;
	font-weight: 500;
	padding: 17px 40px;
}

.pt-btn-rahmen .wp-block-button__link:hover {
	background: transparent;
	color: #0d141a;
}

.pt-btn-breit .wp-block-button__link {
	min-width: 409px;
	max-width: 100%;
	text-align: center;
}

/* ---------- Abschnitte allgemein ---------- */

/* Eigene Raster: Abstände von WordPress' Block-Layout neutralisieren. */
.pt-kacheln.pt-kacheln > *,
.pt-shorts.pt-shorts > *,
.pt-schritt.pt-schritt > * {
	margin-block: 0;
}

.pt-btn-schwarz .wp-block-button__link {
	background: #000;
}

.pt-section {
	padding: 96px var(--pt-pad);
	margin: 0;
}

.pt-dark {
	background: var(--pt-anthrazit);
	color: #fff;
}

.pt-dark :where(h1, h2, h3, h4, h5, h6, p) {
	color: #fff;
}

.pt-light {
	background: #fff;
}

.pt-titel {
	font-size: 48px;
}

.pt-titel-xl {
	font-size: 56px;
}

.pt-zentriert {
	text-align: center;
}

.pt-grau,
.pt-light p.pt-grau {
	color: var(--pt-grau);
}

/* Cover-Blöcke (Hero, Dienstleistungen, Kundenstimmen) */

.wp-block-cover.pt-cover {
	margin: 0;
	padding: 96px var(--pt-pad);
	min-height: 0;
}

.wp-block-cover.pt-cover .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--pt-max);
	margin: 0 auto;
	color: #fff;
}

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

.wp-block-cover.pt-hero {
	min-height: 100vh;
	padding-top: 260px;
	padding-bottom: 120px;
	align-items: center;
}

.pt-hero h1 {
	font-size: 64px;
	max-width: 1134px;
	margin: 0 auto;
	text-align: center;
}

.pt-hero p {
	margin: 64px auto 0;
	text-align: center;
	font-size: 16px;
}

.pt-hero .wp-block-buttons {
	margin-top: 72px;
	justify-content: center;
}

/* ---------- 2 Warum Videomarketing ---------- */

.pt-warum {
	padding-top: 72px;
	padding-bottom: 72px;
}

.pt-warum .pt-titel {
	max-width: 688px;
	margin: 0 auto;
	text-align: center;
}

.pt-kacheln {
	display: grid;
	grid-template-columns: repeat(2, 328px);
	justify-content: center;
	gap: 19px 12px;
	margin: 45px auto 0;
}

.pt-kacheln figure {
	margin: 0;
}

.pt-kacheln img {
	display: block;
	width: 100%;
}

/* ---------- 3 Dienstleistungen ---------- */

.wp-block-cover.pt-leistungen {
	padding-top: 133px;
	padding-bottom: 120px;
	align-items: flex-start;
}

.pt-leistungen .wp-block-columns {
	gap: 80px;
	margin: 0;
	align-items: flex-start;
}

.pt-leistungen .pt-videospalte {
	max-width: 475px;
}

.pt-videospalte > * + * {
	margin-top: 23px;
}

.pt-leistungen .pt-textspalte {
	max-width: 451px;
	margin-left: auto;
	padding-top: 0;
}

.pt-leistungen .pt-titel {
	margin-bottom: 16px;
}

.pt-textspalte h3 {
	font-size: 20px;
	font-weight: 700;
	margin-top: 32px;
	margin-bottom: 14px;
}

.pt-textspalte .pt-florian {
	margin-top: 200px;
	max-width: 400px;
}

.pt-shorts {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.pt-shorts > .wp-block-embed {
	flex: 0 0 200px;
	min-width: 0;
	max-width: 200px;
	margin: 0;
}

.pt-short .wp-block-embed__wrapper {
	position: relative;
	aspect-ratio: 9 / 16;
}

.pt-short .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.pt-leistungen .wp-block-buttons {
	margin-top: 70px;
	justify-content: center;
	max-width: 475px;
}

.wp-block-embed {
	margin: 0;
}

/* YouTube erst nach Klick (DSGVO) */
.pt-yt .pt-yt__box {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--pt-schwarz);
	cursor: pointer;
}

.pt-yt.pt-short .pt-yt__box {
	aspect-ratio: 9 / 16;
}

.pt-yt .pt-yt__box::before {
	display: none;
}

.pt-yt__bild,
.pt-yt__box iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.pt-yt__bild {
	object-fit: cover;
}

.pt-yt__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	padding: 0;
	border: 0;
	background: none;
	transform: translate(-50%, -50%);
	cursor: pointer;
}

.pt-yt__play svg {
	display: block;
	width: 100%;
	height: 100%;
}

.pt-yt__play-bg {
	fill: #212121;
	fill-opacity: .8;
	transition: fill .2s, fill-opacity .2s;
}

.pt-yt__box:hover .pt-yt__play-bg,
.pt-yt__play:focus-visible .pt-yt__play-bg {
	fill: #f00;
	fill-opacity: 1;
}

.pt-yt__hinweis {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 12px 10px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .8));
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	cursor: default;
}

.pt-yt__hinweis p {
	margin: 0 0 6px;
}

.pt-yt__hinweis a {
	color: #fff;
	text-decoration: underline;
}

.pt-yt__hinweis label {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.pt-yt__hinweis input {
	margin: 0;
}

.pt-short .pt-yt__hinweis {
	font-size: 11px;
}

/* ---------- 4 So läuft es ab ---------- */

.pt-ablauf {
	padding-top: 72px;
	padding-bottom: 40px;
}

.pt-ablauf .pt-titel-xl {
	text-align: center;
}

.pt-ablauf .pt-unterzeile {
	margin-top: 16px;
	text-align: center;
	color: var(--pt-grau);
	font-size: 18px;
	line-height: 1.3;
}

.pt-unterzeile strong {
	display: inline-block;
	font-size: 48px;
	font-weight: 700;
	margin: 0 40px;
	vertical-align: middle;
	line-height: 1;
}

.pt-schritt {
	display: flex;
	gap: 50px;
	max-width: 980px;
	margin: 72px auto 0;
	padding-left: 0;
}

.pt-schritt + .pt-schritt {
	margin-top: 40px;
}

.pt-schritt .pt-nummer {
	flex: 0 0 52px;
	font-size: 64px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.pt-schritt h3 {
	font-size: 48px;
	margin-bottom: 8px;
}

.pt-schritt p:not(.pt-nummer) {
	font-size: 18px;
	line-height: 1.5;
}

.pt-ablauf-cta {
	padding: 24px var(--pt-pad) 24px;
}

.pt-ablauf-cta .wp-block-buttons {
	justify-content: center;
}

/* ---------- 5 Kundenstimmen ---------- */

.wp-block-cover.pt-stimmen {
	min-height: 459px;
	padding-top: 110px;
	padding-bottom: 110px;
}

.pt-stimmen .wp-block-columns {
	margin: 0;
	gap: 115px;
}

.pt-stimmen .wp-block-column {
	text-align: center;
}

.pt-sterne {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 2px;
}

.pt-stimmen .pt-zitat {
	margin-top: 16px;
	font-size: 18px;
}

.pt-stimmen figure {
	margin: 50px auto 8px;
}

.pt-stimmen figure img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 50%;
}

/* ---------- 6 Weitere Stimmen ---------- */

.pt-weitere {
	padding: 122px 0 48px;
}

.pt-weitere > .wp-block-group__inner-container,
.pt-weitere.is-layout-constrained > * {
	max-width: var(--pt-max);
}

.pt-weitere .pt-titel {
	text-align: center;
	padding: 0 var(--pt-pad);
}

.pt-weitere .wp-block-columns {
	margin-top: 50px;
	gap: 12px;
}

.pt-weitere .wp-block-column > p {
	font-size: 18px;
	padding: 0 92px;
	min-height: 81px;
}

/* ---------- 7 Über mich & Mission ---------- */

.pt-ueber {
	padding-top: 136px;
	padding-bottom: 120px;
}

.pt-ueber .wp-block-columns {
	margin: 0;
	gap: 172px;
	align-items: flex-start;
}

.pt-ueber .pt-titel {
	margin-bottom: 40px;
}

.pt-ueber .pt-ueber-text {
	max-width: 400px;
}

.pt-ueber .pt-ueber-text p {
	color: var(--pt-grau);
}

.pt-ueber .pt-ueber-text .wp-block-buttons {
	margin-top: 40px;
	justify-content: center;
}

.pt-ueber-bild img {
	display: block;
	width: 100%;
	border-radius: 16px;
}

.pt-ueber figure {
	margin: 0;
}

.pt-mission {
	margin-top: 160px !important;
	gap: 75px !important;
}

.pt-mission .pt-gif {
	margin-left: 64px;
}

.pt-mission .pt-gif img {
	display: block;
	width: 273px;
	height: 494px;
	object-fit: cover;
}

.pt-mission .pt-titel {
	margin-bottom: 58px;
}

.pt-mission p {
	max-width: 617px;
	color: var(--pt-grau);
}

/* ---------- 8 Abschluss ---------- */

.pt-abschluss {
	padding-top: 230px;
	padding-bottom: 240px;
}

.pt-abschluss .pt-titel {
	max-width: 788px;
	margin: 0 auto;
	color: var(--pt-schwarz);
}

.pt-abschluss .wp-block-buttons {
	margin-top: 140px;
	justify-content: center;
}

/* ---------- Galerie ---------- */

.pt-galerie {
	padding-top: 92px;
	padding-bottom: 120px;
}

.wp-block-gallery.pt-masonry {
	display: block !important;
	column-count: 4;
	column-gap: 16px;
	max-width: var(--pt-max);
	margin: 0 auto;
}

.wp-block-gallery.pt-masonry > figure.wp-block-image {
	display: block;
	width: 100% !important;
	margin: 0 0 16px !important;
	break-inside: avoid;
}

.wp-block-gallery.pt-masonry > figure.wp-block-image img {
	width: 100%;
	height: auto !important;
	object-fit: initial !important;
}

.pt-galerie .wp-block-buttons {
	justify-content: center;
	margin-top: 96px;
}

.pt-galerie .wp-block-buttons + .wp-block-buttons {
	margin-top: 64px;
}

/* ---------- Erstgespräch ---------- */

.pt-erstgespraech {
	padding-top: 104px;
	padding-bottom: 96px;
}

.pt-erstgespraech .pt-titel {
	text-align: center;
}

.pt-erstgespraech .pt-unterzeile {
	margin-top: 8px;
	text-align: center;
	font-size: 18px;
}

.pt-erstgespraech .calendly-inline-widget {
	max-width: 1134px;
	margin: 50px auto 0;
}

.pt-calendly {
	max-width: 640px;
	margin: 50px auto 0;
	padding: 48px 32px;
	background: #f4f4f4;
	text-align: center;
	color: var(--pt-grau);
}

.pt-calendly__titel {
	margin-bottom: 12px;
	font-size: 22px;
	font-weight: 600;
	color: var(--pt-schwarz);
}

.pt-calendly a {
	color: inherit;
	text-decoration: underline;
}

.pt-calendly__laden {
	margin-top: 28px;
	padding: 14px 40px;
	border: 0;
	border-radius: 999px;
	background: var(--pt-anthrazit);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.pt-calendly__laden:hover {
	background: var(--pt-schwarz);
}

.pt-calendly__alternativ {
	margin-top: 16px;
	font-size: 14px;
}

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */

.pt-prose {
	max-width: 860px;
	margin: 0 auto;
	padding: 96px var(--pt-pad);
	color: var(--pt-schwarz);
}

.pt-prose h1,
.pt-prose h2,
.pt-prose h3 {
	margin: 1.4em 0 .5em;
}

.pt-prose h1:first-child,
.pt-prose h2:first-child,
.pt-prose h3:first-child {
	margin-top: 0;
}

.pt-prose h1 { font-size: 48px; }
.pt-prose h2 { font-size: 32px; }
.pt-prose h3 { font-size: 26px; }
.pt-prose h4,
.pt-prose h5,
.pt-prose h6 { font-size: 18px; margin: 1.2em 0 .4em; }

.pt-prose p,
.pt-prose ul,
.pt-prose ol {
	margin: 0 0 1em;
}

.pt-prose a {
	word-break: break-word;
}

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

.pt-footer {
	background: var(--pt-schwarz);
	color: #fff;
}

.pt-footer__inner {
	display: flex;
	justify-content: space-between;
	gap: 48px;
	max-width: var(--pt-max);
	margin: 0 auto;
	padding: 70px var(--pt-pad) 34px;
}

.pt-footer__name {
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
}

.pt-footer__claim {
	margin-top: 22px;
	font-size: 14px;
	line-height: 1.3;
}

.pt-footer__social {
	display: flex;
	gap: 32px;
	margin-top: 48px;
}

.pt-footer__social a {
	color: #fff;
	line-height: 0;
}

.pt-footer__copy {
	margin-top: 78px;
	font-size: 14px;
	line-height: 1.3;
}

.pt-footer__legal {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	width: 375px;
}

.pt-footer__legal li + li {
	margin-top: 14px;
}

.pt-footer__legal a {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	text-decoration: underline;
}

/* ---------- Tablet & Handy ---------- */

@media (max-width: 1100px) {

	.pt-ueber .wp-block-columns {
		gap: 64px;
	}

	.pt-weitere .wp-block-column > p {
		padding: 0 var(--pt-pad);
	}
}

@media (max-width: 920px) {
	.pt-header__inner {
		grid-template-columns: auto 1fr;
		padding: 24px 16px;
	}

	.pt-logo {
		grid-row: 1;
		grid-column: 1;
	}

	.pt-logo img {
		width: 55px;
	}

	.pt-header__end {
		grid-row: 1;
		grid-column: 2;
	}

	.pt-burger {
		display: block;
	}

	.pt-nav {
		display: none;
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.pt-nav-open .pt-nav {
		display: block;
	}

	.pt-nav__list {
		flex-direction: column;
		align-items: flex-end;
		gap: 20px;
		padding: 24px 8px 8px;
	}

	.pt-nav-open .pt-header--overlay {
		background: rgba(26, 26, 26, .92);
	}

	.pt-nav-open .pt-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.pt-nav-open .pt-burger span:nth-child(2) { opacity: 0; }
	.pt-nav-open .pt-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 781px) {
	:root {
		--pt-pad: 16px;
	}

	.admin-bar .pt-header--overlay {
		top: 46px;
	}

	.pt-section,
	.wp-block-cover.pt-cover {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.wp-block-cover.pt-hero {
		min-height: 100svh;
		padding-top: 140px;
	}

	.pt-hero h1 {
		font-size: 40px;
	}

	.pt-hero p,
	.pt-hero .wp-block-buttons {
		margin-top: 32px;
	}

	.pt-titel,
	.pt-ueber .pt-titel,
	.pt-mission .pt-titel {
		font-size: 32px;
		margin-bottom: 24px;
	}

	.pt-titel-xl {
		font-size: 36px;
	}

	.pt-kacheln {
		grid-template-columns: minmax(0, 328px);
		gap: 16px;
	}

	.pt-leistungen .wp-block-columns,
	.pt-ueber .wp-block-columns,
	.pt-stimmen .wp-block-columns {
		gap: 48px;
	}

	.pt-leistungen .pt-videospalte,
	.pt-leistungen .pt-textspalte {
		max-width: none;
	}

	.pt-leistungen .pt-textspalte {
		order: -1;
	}

	.pt-textspalte .pt-florian {
		margin-top: 32px;
	}

	.pt-shorts > .wp-block-embed {
		flex: 1 1 0;
		max-width: none;
	}

	.pt-btn-breit .wp-block-button__link {
		min-width: 0;
	}

	.pt-leistungen .wp-block-buttons {
		max-width: none;
		margin-top: 32px;
	}

	.pt-unterzeile strong {
		margin: 0 12px;
	}

	.pt-schritt {
		gap: 16px;
		margin-top: 40px;
	}

	.pt-schritt .pt-nummer {
		flex-basis: 36px;
		font-size: 36px;
	}

	.pt-schritt h3 {
		font-size: 24px;
	}

	.pt-schritt p:not(.pt-nummer) {
		font-size: 14px;
		line-height: 1.3;
	}

	.pt-weitere {
		padding-top: 56px;
	}

	.pt-weitere .wp-block-columns {
		gap: 32px;
	}

	.pt-weitere .wp-block-column > p {
		min-height: 0;
		margin-bottom: 12px;
	}

	.pt-ueber .pt-ueber-text {
		max-width: none;
	}

	.pt-mission {
		margin-top: 64px !important;
	}

	.pt-mission .pt-gif {
		margin-left: 0;
	}

	.pt-mission .pt-gif img {
		width: 100%;
		max-width: 273px;
		height: auto;
		margin: 0 auto;
	}

	.pt-abschluss {
		padding-top: 80px;
		padding-bottom: 80px;
	}

	.pt-abschluss .wp-block-buttons {
		margin-top: 48px;
	}

	.wp-block-gallery.pt-masonry {
		column-count: 2;
		column-gap: 8px;
	}

	.wp-block-gallery.pt-masonry > figure.wp-block-image {
		margin-bottom: 8px !important;
	}

	.pt-footer__inner {
		flex-direction: column;
		gap: 32px;
	}

	.pt-footer__copy {
		margin-top: 32px;
	}

	.pt-footer__legal {
		width: auto;
		margin: 0;
	}
}
