/*
Theme Name: Gebhard Praxis
Theme URI: https://www.ergotherapie-martina-gebhard.de/
Template: twentytwentyfive
Author: Sebastian Bielski
Description: Child-Theme von Twenty Twenty-Five für die Praxis für Ergotherapie & Autismus Martina Gebhard. Farben, Schriften (lokal), Kopf- und Fußbereich, Abschnitte als Muster und Inhaltstyp „Team“.
Version: 1.6.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gebhard-child
*/

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

html {
	scroll-behavior: smooth;
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-3);
	outline-offset: 3px;
}

/* Abstand oben/unten für Abschnitte */
.gp-section {
	padding-top: clamp(56px, 8vw, 96px);
	padding-bottom: clamp(56px, 8vw, 96px);
}

/* Kleine Überzeile in Großbuchstaben */
.gp-eyebrow {
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 0.875rem;
	color: var(--wp--preset--color--accent-3);
}

.gp-eyebrow + .wp-block-heading {
	margin-top: 0.5rem;
}

.gp-lead {
	font-size: 1.25rem;
}

.gp-name {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.625rem;
}

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

.gp-header {
	padding-top: 16px;
	padding-bottom: 16px;
}

.gp-brand {
	gap: 14px;
}

.gp-brand .gp-logo {
	margin: 0;
}

.gp-brand .gp-logo img {
	width: 68px;
	height: auto;
	display: block;
}

.gp-brand-text p {
	margin: 0;
	line-height: 1.2;
}

.gp-brand-text a {
	color: inherit;
	text-decoration: none;
}

.gp-brand-name {
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 700;
	font-size: 1.375rem;
}

.gp-brand-sub {
	font-size: 0.875rem;
	font-weight: 600;
}

.gp-nav a {
	text-decoration: none;
}

.gp-nav .wp-block-navigation-item__content {
	padding-top: 10px;
	padding-bottom: 10px;
}

.gp-nav .gp-nav-cta > a.wp-block-navigation-item__content {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--contrast);
	padding: 12px 24px;
	border-radius: 999px;
}

.gp-nav .gp-nav-cta > a.wp-block-navigation-item__content:hover {
	background: #E0882A;
}

.gp-nav .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-radius: 16px;
	padding: 8px 0;
	box-shadow: 0 10px 30px rgba(69, 63, 60, 0.15);
	background: var(--wp--preset--color--base) !important;
}

.gp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 20px;
	font-weight: 600;
}

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

.gp-hero {
	position: relative;
	padding-top: clamp(32px, 5vw, 48px);
	padding-bottom: clamp(110px, 12vw, 150px);
}

.gp-hero-cols {
	align-items: center;
	gap: 48px;
}

/* Eckige Kante unten mit leichtem Taupe-Schatten */
.gp-edge-bottom {
	position: relative;
}

.gp-edge-bottom::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: clamp(40px, 7vw, 100px);
	background: url("assets/img/kante-unten.svg") no-repeat center bottom / 100% 100%;
	pointer-events: none;
	z-index: 1;
}

/* Eckige Kante oben (Übergang aus einem cremefarbenen Abschnitt) */
.gp-edge-top {
	position: relative;
}

.gp-edge-top::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -1px;
	height: clamp(30px, 4vw, 60px);
	background: url("assets/img/kante-oben-creme.svg") no-repeat center top / 100% 100%;
	pointer-events: none;
}

.gp-edge-top.gp-from-white::before {
	background-image: url("assets/img/kante-oben-weiss.svg");
}

/* Porträt im Blob: oranger Ring, heller Innenteil, Kopf ragt oben heraus */
.gp-portrait {
	position: relative;
	width: 100%;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	aspect-ratio: 100 / 130;
}

.gp-portrait::before,
.gp-portrait::after {
	content: "";
	position: absolute;
	aspect-ratio: 1 / 1;
}

.gp-portrait::before {
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--wp--preset--color--accent-1);
	border-radius: 53% 47% 42% 58% / 60% 40% 60% 40%;
}

.gp-portrait::after {
	left: 7%;
	width: 86%;
	bottom: 5.38%;
	background: var(--wp--preset--color--base);
	border-radius: 48% 52% 46% 54% / 57% 43% 57% 43%;
}

.gp-portrait > .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0 !important;
	z-index: 1;
	-webkit-mask: url("assets/img/portrait-maske.svg") no-repeat 0 0 / 100% 100%;
	mask: url("assets/img/portrait-maske.svg") no-repeat 0 0 / 100% 100%;
}

.gp-portrait > .wp-block-image img {
	position: absolute;
	bottom: 5.38%;
	left: 50%;
	transform: translateX(-50%);
	height: 94.6%;
	width: auto;
	max-width: none;
}

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

.gp-intro-cols {
	gap: 48px;
}

.gp-pills {
	gap: 12px;
}

.gp-pills > p {
	margin: 0;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-5);
	font-weight: 700;
	font-size: 0.9375rem;
}

/* ---------- Karten (Behandlungen) ---------- */

.gp-cards {
	gap: 24px;
}

.gp-card {
	background: var(--wp--preset--color--base);
	border-radius: 32px 32px 32px 8px;
	padding: 32px;
	gap: 18px;
	height: 100%;
	box-sizing: border-box;
}

.gp-card .gp-icon {
	margin: 0;
}

.gp-card .gp-icon img {
	width: 76px;
	height: 76px;
	display: block;
}

.gp-card h3 {
	margin: 0;
}

.gp-card h3 a {
	color: inherit;
	text-decoration: none;
}

.gp-more {
	margin-top: auto !important;
	font-weight: 700;
}

.gp-more a {
	text-decoration: none;
}

/* ---------- Dunkle Bänder (Zitat, Blog) ---------- */

.gp-dark {
	color: var(--wp--preset--color--accent-5);
}

.gp-dark :where(h1, h2, h3, h4) {
	color: var(--wp--preset--color--accent-5);
}

.gp-dark a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--accent-5);
}

.gp-dark .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--accent-5);
	border-color: var(--wp--preset--color--accent-5);
}

.gp-quote {
	text-align: center;
	padding-top: clamp(80px, 9vw, 120px);
}

.gp-quote-text {
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 500;
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.15;
	margin: 0;
}

.gp-quote-text::before {
	content: "\201C";
	display: block;
	font-size: 5.5rem;
	line-height: 0.6;
	color: var(--wp--preset--color--accent-1);
	margin-bottom: 0.25em;
}

.gp-quote-author {
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 0.875rem;
	color: var(--wp--preset--color--accent-1) !important;
}

.gp-band-cols {
	align-items: center;
	gap: 32px 48px;
}

/* ---------- Autismus ---------- */

.gp-soft-card {
	background: var(--wp--preset--color--accent-5);
	border-radius: 40px 40px 40px 8px;
	padding: 40px;
	height: 100%;
	box-sizing: border-box;
}

.gp-soft-card.gp-outline {
	background: var(--wp--preset--color--base);
	border: 2px solid var(--wp--preset--color--accent-1);
	border-radius: 40px 40px 8px 40px;
}

.gp-soft-card h3 {
	margin-top: 0;
}

/* ---------- Team ---------- */

.gp-team .wp-block-post-template {
	gap: 28px;
}

.gp-team .wp-block-post-featured-image {
	margin: 0;
	border-radius: 36px 36px 36px 8px;
	overflow: hidden;
	background: var(--wp--preset--color--accent-5);
}

.gp-team .wp-block-post-template > li:nth-child(3n+1) .wp-block-post-featured-image {
	background: var(--wp--preset--color--accent-1);
}

.gp-team .wp-block-post-template > li:nth-child(3n+2) .wp-block-post-featured-image {
	background: var(--wp--preset--color--accent-2);
}

.gp-team .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	display: block;
}

.gp-team-name {
	font-size: 1.375rem !important;
	margin: 14px 0 0;
}

.gp-team-rolle {
	color: var(--wp--preset--color--accent-4);
	font-size: 1rem;
	margin-top: 2px;
}

.gp-team-rolle p {
	margin: 0;
}

/* ---------- Blog-Übersicht ---------- */

.gp-posts .wp-block-post-template {
	gap: 28px;
}

.gp-post-card {
	background: var(--wp--preset--color--base);
	border-radius: 32px 32px 32px 8px;
	padding: 0 0 28px;
	overflow: hidden;
	height: 100%;
	box-sizing: border-box;
}

.gp-post-card > :not(.wp-block-post-featured-image) {
	margin-left: 28px;
	margin-right: 28px;
}

.gp-post-card .wp-block-post-featured-image {
	margin: 0 0 8px;
}

.gp-post-card .wp-block-post-title {
	font-size: 1.5rem;
}

.gp-post-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

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

.gp-footer-cols {
	gap: 40px 64px;
}

.gp-footer-links p {
	margin: 0 0 8px;
	font-weight: 700;
}

.gp-footer-bottom {
	border-top: 1px solid var(--wp--preset--color--contrast);
	padding-top: 24px;
	margin-top: 48px;
	font-size: 0.9375rem;
	gap: 12px 28px;
}

.gp-footer-bottom p {
	margin: 0;
}

/* ---------- Mobil ---------- */

@media (max-width: 781px) {
	.gp-hero-cols {
		gap: 32px;
	}

	.gp-portrait {
		max-width: 420px;
	}

	.gp-soft-card,
	.gp-card {
		padding: 28px;
	}
}

/* ---------- Abschnitte ohne Lücken aneinander ---------- */

.wp-site-blocks > .gp-main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

.gp-main > .wp-block-post-content {
	margin-block-start: 0;
}

.gp-main .wp-block-post-content > .alignfull {
	margin-block-start: 0;
	margin-block-end: 0;
}

.wp-site-blocks > header .gp-header,
.wp-site-blocks > footer .gp-footer {
	margin-block: 0;
}

/* Platzhalter, solange ein Teammitglied noch kein Foto hat */
.gp-team .wp-block-post-template > li:not(:has(.wp-block-post-featured-image))::before {
	content: "";
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: 36px 36px 36px 8px;
	background: var(--wp--preset--color--accent-5) url("assets/img/logo.svg") no-repeat center / 38%;
}

.gp-team .wp-block-post-template > li:nth-child(3n+1):not(:has(.wp-block-post-featured-image))::before {
	background-color: var(--wp--preset--color--accent-2);
}

/* Navigation: zwischen Tablet und Desktop etwas enger */
@media (max-width: 1100px) {
	.gp-brand-sub {
		display: none;
	}

	.gp-nav .wp-block-navigation__container {
		column-gap: 18px;
	}
}

/* ---------- Unterseiten ---------- */

.gp-pagehead {
	position: relative;
	padding-top: clamp(40px, 6vw, 72px);
	padding-bottom: clamp(90px, 10vw, 130px);
}

.gp-pagehead h1 {
	margin-top: 0.4rem;
}

.gp-section h2.wp-block-heading:not(:first-child) {
	margin-top: 2.5rem;
}

.gp-section h3.wp-block-heading {
	margin-top: 2rem;
}

.gp-section .gp-icon img {
	width: 72px;
	height: 72px;
	display: block;
}

.gp-section .gp-icon + h2.wp-block-heading {
	margin-top: 0.75rem;
}

.gp-section .wp-block-list li {
	margin-bottom: 0.35rem;
}

.gp-rounded img,
.gp-video video,
.gp-section .wp-block-embed iframe {
	border-radius: 28px 28px 28px 8px;
	overflow: hidden;
}

.gp-rounded {
	margin-bottom: 1.5rem;
}

.gp-video {
	margin-top: clamp(40px, 6vw, 72px) !important;
}

.gp-video video {
	width: 100%;
	display: block;
	background: var(--wp--preset--color--contrast);
}

/* Teamseite mit Kurzbiografie */
.gp-team-bio {
	font-size: 0.95rem;
	margin-top: 8px;
}

.gp-team-bio p {
	margin: 0 0 6px;
}

.gp-video {
	max-width: 960px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.gp-map img {
	max-width: 760px;
	width: 100%;
	height: auto;
}

.gp-team-bio ul {
	padding-left: 1.1em;
	margin: 4px 0 0;
}

/* ---------- Behandlungen: Übersicht und Unterseiten ---------- */

.gp-card-soft {
	background: var(--wp--preset--color--accent-5);
}

.gp-card p:not(.gp-more) {
	margin: 0;
	font-size: 1rem;
}

.gp-detail-cols {
	gap: 56px;
	align-items: flex-start;
}

.gp-detail-foto img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.gp-fotos {
	gap: 20px;
	margin-top: 40px;
}

.gp-fotos .wp-block-image {
	margin: 0;
}

.gp-fotos img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Untermenüs breit genug, damit die Einträge einzeilig bleiben */
.gp-nav .wp-block-navigation__submenu-container {
	min-width: 270px !important;
}

.gp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	white-space: nowrap;
}

/* Navigation: aktiv = Logo-Grün, Hover = Apricot (nicht beim Kontakt-Button) */
.gp-nav .wp-block-navigation-item:not(.gp-nav-cta).current-menu-item > .wp-block-navigation-item__content,
.gp-nav .wp-block-navigation-item:not(.gp-nav-cta).current-menu-ancestor > .wp-block-navigation-item__content,
.gp-nav .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-submenu__toggle {
	color: #00A747;
}

.gp-nav .wp-block-navigation-item:not(.gp-nav-cta) > .wp-block-navigation-item__content:hover,
.gp-nav .wp-block-navigation-item:not(.gp-nav-cta) > .wp-block-navigation-item__content:focus-visible,
.gp-nav .wp-block-navigation-submenu:hover > .wp-block-navigation-submenu__toggle {
	color: #ED9B40;
}

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

html {
	scroll-padding-top: 120px;
}

.wp-site-blocks > header {
	position: sticky;
	top: 0;
	z-index: 50;
	transition: box-shadow 0.2s ease;
}

.admin-bar .wp-site-blocks > header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header {
		top: 0;
	}
}

.wp-site-blocks > header.gp-scrolled {
	box-shadow: 0 6px 24px rgba(69, 63, 60, 0.12);
}

.gp-header,
.gp-brand .gp-logo img {
	transition: padding 0.2s ease, width 0.2s ease;
}

.gp-scrolled .gp-header {
	padding-top: 8px;
	padding-bottom: 8px;
}

.gp-scrolled .gp-brand .gp-logo img {
	width: 52px;
}

/* ---------- Blog ---------- */

.gp-section-tight {
	padding-top: clamp(32px, 5vw, 56px);
	padding-bottom: clamp(16px, 3vw, 32px);
}

.gp-section-list {
	padding-top: clamp(16px, 3vw, 32px);
}

.gp-filter .wp-block-button__link {
	padding: 10px 20px !important;
	font-size: 0.9375rem;
}

.gp-posts .wp-block-post-template {
	gap: 28px;
}

.gp-post-card {
	background: var(--wp--preset--color--accent-5);
	border-radius: 28px 28px 28px 8px;
	overflow: hidden;
	height: 100%;
	padding-bottom: 24px;
	box-sizing: border-box;
}

.gp-post-card > * {
	margin-left: 24px !important;
	margin-right: 24px !important;
}

.gp-post-card > .wp-block-post-featured-image {
	margin: 0 0 16px !important;
}

.gp-post-card .wp-block-post-featured-image img {
	object-fit: cover;
}

.gp-post-card .wp-block-post-title {
	font-size: 1.25rem;
	line-height: 1.25;
	margin-top: 6px;
}

.gp-post-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.gp-post-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-3);
}

.gp-post-cat,
.gp-post-cat a {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-3);
	text-decoration: none;
}

.gp-post-date {
	font-size: 0.9rem;
	color: var(--wp--preset--color--accent-4);
}

.gp-pagehead .gp-post-date {
	color: var(--wp--preset--color--contrast);
}

.gp-posts .wp-block-query-pagination {
	margin-top: 48px;
	font-weight: 700;
}

.gp-post-nav {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--accent-5);
	gap: 16px;
	font-weight: 600;
}

.gp-section .wp-block-gallery img {
	border-radius: 16px;
}

/* ---------- Kontaktformular (Fluent Forms) ---------- */

.fluentform {
	max-width: 760px;
}

.fluentform .ff-el-input--label label {
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

.fluentform .ff-el-form-control {
	border: 2px solid var(--wp--preset--color--accent-5) !important;
	border-radius: 16px !important;
	padding: 14px 16px !important;
	font: inherit !important;
	color: var(--wp--preset--color--contrast) !important;
	background: #fff !important;
}

.fluentform .ff-el-form-control:focus {
	border-color: var(--wp--preset--color--accent-1) !important;
	box-shadow: none !important;
}

.fluentform .ff-btn-submit {
	background: var(--wp--preset--color--accent-1) !important;
	color: var(--wp--preset--color--contrast) !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 16px 30px !important;
	font-weight: 700 !important;
}

.fluentform .ff-btn-submit:hover {
	background: #E0882A !important;
}

.fluentform .ff_t_c,
.fluentform .ff-el-tc label {
	font-size: 0.9rem;
}
