/*
Theme Name:        Peter Peters Landing
Theme URI:         https://peters-sylt.de
Description:       Schlankes Landingpage-Theme im Design von peters-sylt.de – mit Seiten-Template „Landingpage (Ort)“ (SEO-Text, Immobilien-Grid, Band, FAQ-Accordion). Für das Grid wird das Plugin „be-on! onOffice Immobilien“ benötigt.
Author:            be-on! GmbH
Author URI:        https://www.be-on.de
Version:           1.0.0
Requires at least: 5.8
Requires PHP:      7.4
License:           GPL-2.0-or-later
Text Domain:       peters-landing
*/

:root {
	--pp-taupe: #867c6d;
	--pp-taupe-dark: #655e52;
	--pp-sand: #c7beaf;
	--pp-sand-light: #efebe5;
	--pp-black: #000;
	--pp-white: #fff;
	--pp-gutter: 75px;
	--pp-max: 1440px;
}

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

html { scroll-behavior: smooth; }
html.pp-nav-open { overflow: hidden; }

body {
	margin: 0;
	background: var(--pp-white);
	color: var(--pp-black);
	font-family: "General Sans", system-ui, sans-serif;
	font-size: 16px;
	line-height: 24px;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.pp-skip:focus {
	z-index: 100;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	background: var(--pp-white);
}

.pp-wrap {
	width: 100%;
	max-width: var(--pp-max);
	margin: 0 auto;
	padding: 0 var(--pp-gutter);
}

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

.pp-eyebrow {
	margin: 0 0 20px;
	color: var(--pp-taupe);
	font-size: 14px;
	line-height: 19.6px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.pp-eyebrow--light { color: var(--pp-sand); }

.pp-h1 {
	margin: 0;
	color: var(--pp-sand);
	font-size: 50px;
	line-height: 65px;
	font-weight: 500;
}

.pp-h2 {
	margin: 0 0 30px;
	font-size: 50px;
	line-height: 65px;
	font-weight: 500;
}

.pp-lead {
	margin: 0 0 24px;
	font-size: 20px;
	line-height: 30px;
}

/* Inhalte aus dem Editor */
.pp-content > :first-child { margin-top: 0; }
.pp-content p,
.pp-content ul,
.pp-content ol { margin: 0 0 20px; font-size: 18px; line-height: 28px; }
.pp-content ul,
.pp-content ol { padding-left: 1.2em; }
.pp-content h2 { margin: 36px 0 12px; font-size: 23px; line-height: 32px; font-weight: 500; }
.pp-content h3 { margin: 28px 0 10px; font-size: 20px; line-height: 28px; font-weight: 500; }
.pp-content a { color: var(--pp-taupe-dark); text-underline-offset: 3px; }
.pp-content a:hover { color: var(--pp-taupe); }
.pp-content--page { max-width: 820px; margin-top: 50px; }

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

.pp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 30px;
	border: 1px solid var(--pp-sand);
	border-radius: 30px;
	background: transparent;
	color: var(--pp-black);
	font: 500 15px/15px "General Sans", system-ui, sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.pp-btn:hover { background: var(--pp-sand); }
.pp-btn--filled { background: var(--pp-sand); border-color: var(--pp-sand); }
.pp-btn--filled:hover { background: var(--pp-taupe); border-color: var(--pp-taupe); color: var(--pp-white); }
.pp-btn--light { color: var(--pp-white); border-color: rgba(255, 255, 255, .5); }
.pp-btn--light:hover { background: var(--pp-white); border-color: var(--pp-white); color: var(--pp-black); }
.pp-btn svg { width: 14px; height: 14px; }

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

.pp-header { border-bottom: 1px solid var(--pp-sand); }

.pp-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: 120px;
}

.pp-header__contact { justify-self: start; font-size: 18px; line-height: 18px; font-weight: 500; text-decoration: none; }
.pp-header__logo { display: block; text-decoration: none; }
.pp-header__logo img { width: auto; max-width: 181px; max-height: 70px; }

.pp-header__menu {
	justify-self: end;
	display: grid;
	gap: 9px;
	width: 44px;
	padding: 10px 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.pp-header__menu > span:not(.screen-reader-text) { display: block; height: 1px; background: var(--pp-black); }

/* Wortmarke, solange kein Logo hochgeladen ist */
.pp-wordmark { display: inline-flex; flex-direction: column; align-items: center; color: var(--pp-taupe); line-height: 1; }
.pp-wordmark__name { font-size: 22px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; }
.pp-wordmark__sub { margin-top: 6px; font-size: 9px; font-weight: 500; letter-spacing: 5px; text-transform: uppercase; }
.pp-wordmark--light { align-items: flex-start; color: var(--pp-white); }
.pp-wordmark--light .pp-wordmark__name { font-size: 34px; letter-spacing: 6px; }
.pp-wordmark--light .pp-wordmark__sub { margin-top: 10px; font-size: 12px; letter-spacing: 8px; }

/* Overlay-Menü */
.pp-nav {
	position: fixed;
	inset: 0;
	z-index: 50;
	overflow-y: auto;
	background: rgba(101, 94, 82, .97);
	color: var(--pp-white);
}
.pp-nav[hidden] { display: none; }
.pp-nav__inner { padding-top: 40px; padding-bottom: 60px; }
.pp-nav__top { display: flex; align-items: center; justify-content: space-between; height: 80px; margin-bottom: 40px; }
.pp-nav__top .pp-eyebrow { margin: 0; }
.pp-nav__close {
	padding: 13px 30px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 30px;
	background: none;
	color: var(--pp-white);
	font: 500 15px/15px "General Sans", system-ui, sans-serif;
	cursor: pointer;
}
.pp-nav__close:hover { background: var(--pp-white); color: var(--pp-black); }
.pp-nav__list { margin: 0; padding: 0; list-style: none; }
.pp-nav__list li { margin: 0 0 18px; }
.pp-nav__list a { font-size: 36px; line-height: 44px; text-decoration: none; }
.pp-nav__list a:hover { color: var(--pp-sand); }

/* ---------- Standardseiten ---------- */

.pp-page { padding: 90px 0 110px; }

/* ---------- Landingpage: Intro / SEO-Text ---------- */

.pp-intro { padding: 90px 0 60px; }

.pp-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 80px;
	margin-top: 50px;
}
.pp-intro__grid--single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }

/* ---------- Landingpage: Grid ---------- */

.pp-listing { padding: 30px 0 100px; }
.pp-listing--references { padding-top: 0; }

.pp-listing__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 50px;
	border-bottom: 1px solid var(--pp-sand);
}

.pp-listing__tab {
	margin: 0 0 -1px;
	padding: 0 0 10px;
	border-bottom: 1px solid var(--pp-taupe-dark);
	color: var(--pp-taupe-dark);
	font-size: 14px;
	line-height: 19.6px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.pp-listing__count { padding-bottom: 10px; color: var(--pp-taupe); font-size: 14px; }

.pp-notice { padding: 20px; border: 1px dashed var(--pp-sand); color: var(--pp-taupe-dark); }

/* ---------- Landingpage: Band ---------- */

.pp-band { background: rgba(134, 124, 109, .92); color: var(--pp-white); }

.pp-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 80px;
	align-items: end;
	padding-top: 110px;
	padding-bottom: 110px;
}

.pp-band h2 { margin: 0; font-size: 80px; line-height: 96px; font-weight: 500; }
.pp-band p { margin: 0 0 30px; font-size: 20px; line-height: 30px; }

/* ---------- Landingpage: FAQ ---------- */

.pp-faq { padding: 110px 0 120px; }
.pp-faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
.pp-faq__list { border-top: 1px solid var(--pp-sand); }
.pp-faq details { border-bottom: 1px solid var(--pp-sand); }

.pp-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 26px 0;
	font-size: 20px;
	line-height: 28px;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary:focus-visible { outline: 2px solid var(--pp-taupe); outline-offset: 4px; }

.pp-faq__icon {
	position: relative;
	flex: 0 0 34px;
	height: 34px;
	border: 1px solid var(--pp-sand);
	border-radius: 50%;
	transition: background .25s ease;
}
.pp-faq__icon::before,
.pp-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 1px;
	background: var(--pp-black);
	transform: translate(-50%, -50%);
	transition: transform .25s ease;
}
.pp-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.pp-faq details[open] .pp-faq__icon { background: var(--pp-sand); }
.pp-faq details[open] .pp-faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.pp-faq__answer { padding: 0 60px 28px 0; }
.pp-faq__answer p { margin: 0 0 14px; font-size: 18px; line-height: 28px; }

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

.pp-footer { background: var(--pp-taupe-dark); color: var(--pp-white); }
.pp-footer a { text-decoration: none; }
.pp-footer a:hover { color: var(--pp-sand); }

.pp-footer__top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 60px;
	padding: 100px 0 80px;
}

.pp-footer__logo { display: inline-block; }
.pp-footer__logo img { width: 312px; max-width: 100%; }

.pp-footer__heading {
	margin: 0 0 20px;
	color: var(--pp-sand);
	font-size: 14px;
	line-height: 19.6px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.pp-footer__list,
.pp-footer__legal { margin: 0; padding: 0; list-style: none; }
.pp-footer__list li { margin-bottom: 6px; }
.pp-footer address { font-style: normal; line-height: 28px; }

.pp-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 30px;
	padding: 30px 0 40px;
	border-top: 1px solid rgba(199, 190, 175, .4);
	font-size: 14px;
}
.pp-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	:root { --pp-gutter: 40px; }
	.pp-intro__grid,
	.pp-faq__grid,
	.pp-band__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.pp-band h2 { font-size: 60px; line-height: 72px; }
	.pp-footer__top { grid-template-columns: 1fr 1fr; }
	.pp-footer__logo { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
	:root { --pp-gutter: 16px; }
	.pp-header__inner { height: 84px; }
	.pp-header__logo img { max-width: 130px; max-height: 50px; }
	.pp-header__contact { font-size: 15px; }
	.pp-wordmark__name { font-size: 16px; letter-spacing: 3px; }
	.pp-h1,
	.pp-h2 { font-size: 34px; line-height: 44px; }
	.pp-intro,
	.pp-page { padding: 56px 0 30px; }
	.pp-page { padding-bottom: 70px; }
	.pp-listing__head { flex-direction: column; align-items: flex-start; gap: 0; }
	.pp-band__inner { padding-top: 70px; padding-bottom: 70px; }
	.pp-band h2 { font-size: 44px; line-height: 54px; }
	.pp-faq { padding: 70px 0 80px; }
	.pp-faq summary { font-size: 17px; line-height: 24px; }
	.pp-faq__answer { padding-right: 0; }
	.pp-nav__list a { font-size: 28px; line-height: 36px; }
	.pp-footer__top { grid-template-columns: 1fr; padding: 60px 0 40px; }
}
