/*!
Theme Name: physiochaase.de
Theme URI: http://localhost/physiochaase.de
Author: reichelt media.design
Author URI: https://reicheltmedia.design
Description: Custom theme for Physiotherapie Carmen Schlegel-Haase. Warm, natural look with orange accents (from the logo), Lato and a floral ornament.
Version: 1.0.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: physiochaase
Tags: custom-logo, custom-menu, featured-images, translation-ready

Based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc. (GPL v2 or later)
*/

/*--------------------------------------------------------------
# Fonts (Lato, self-hosted, SIL Open Font License)
--------------------------------------------------------------*/
@font-face {
	font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap;
	src: url("assets/fonts/lato-300.woff2") format("woff2"), url("assets/fonts/lato-300.woff") format("woff");
}
@font-face {
	font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("assets/fonts/lato-400.woff2") format("woff2"), url("assets/fonts/lato-400.woff") format("woff");
}
@font-face {
	font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap;
	src: url("assets/fonts/lato-400italic.woff2") format("woff2"), url("assets/fonts/lato-400italic.woff") format("woff");
}
@font-face {
	font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
	src: url("assets/fonts/lato-700.woff2") format("woff2"), url("assets/fonts/lato-700.woff") format("woff");
}
@font-face {
	font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap;
	src: url("assets/fonts/lato-900.woff2") format("woff2"), url("assets/fonts/lato-900.woff") format("woff");
}
/* Latin Extended subsets (woff2 only) */
@font-face {
	font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap;
	src: url("assets/fonts/lato-300-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: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("assets/fonts/lato-400-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: "Lato"; font-style: italic; font-weight: 400; font-display: swap;
	src: url("assets/fonts/lato-400italic-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: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
	src: url("assets/fonts/lato-700-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: "Lato"; font-style: normal; font-weight: 900; font-display: swap;
	src: url("assets/fonts/lato-900-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;
}

/*--------------------------------------------------------------
# Tokens
--------------------------------------------------------------*/
:root {
	--c-bg: #f6eee7;
	--c-surface: #ffffff;
	--c-surface-alt: #fff0df;
	--c-ink: #2a221c;
	--c-ink-soft: #6f6157;
	--c-accent: #ce6300;
	--c-accent-dark: #954800;
	--c-accent-light: #ffdab6;
	--c-accent-pale: #fff0df;
	--c-line: #f2d7bd;
	--font: "Lato", "Segoe UI", Helvetica, Arial, sans-serif;
	--w-content: 960px;
	--w-text: 760px;
	--gutter: clamp(16px, 4vw, 40px);
	--shadow: 0 12px 30px rgba(149, 72, 0, 0.14);
}

/*--------------------------------------------------------------
# Reset
--------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
a { color: var(--c-ink); text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--c-accent-dark); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
body {
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--font);
	font-weight: 400;
	font-size: 1.0625rem;
	line-height: 1.65;
}

h1, h2, h3, h4 { font-weight: 300; line-height: 1.2; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
strong, b { font-weight: 700; }
p, ul, ol, table, blockquote { margin-bottom: 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; list-style: revert; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content li::marker { color: var(--c-accent); }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.8em 0 0.6em; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
blockquote { border-left: 4px solid var(--c-accent); padding: 0.4em 0 0.4em 1.2em; font-weight: 300; font-size: 1.15em; }
blockquote p { margin-bottom: 0.4em; }
blockquote cite { display: block; font-size: 0.8rem; font-style: normal; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent-dark); }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.5em 0; }
td, th { padding: 0.35em 0.8em 0.35em 0; text-align: left; vertical-align: top; }

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--c-surface); clip: auto !important; clip-path: none; color: var(--c-ink); display: block; font-size: 0.9rem;
	font-weight: 700; height: auto; left: 8px; line-height: normal; padding: 14px 22px; top: 8px; width: auto; z-index: 100000; box-shadow: var(--shadow);
}

/* Buttons */
.btn, .wp-block-button__link, input[type="submit"], .wpcf7-submit {
	display: inline-block;
	background: var(--c-accent);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	padding: 0.75em 1.6em;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover, .wpcf7-submit:hover { background: var(--c-accent-dark); color: var(--c-surface); }
.btn--ghost { background: transparent; color: var(--c-surface); box-shadow: inset 0 0 0 2px var(--c-accent); }
.btn--ghost:hover { background: var(--c-accent); color: #ffffff; }

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.site {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	background: var(--c-surface);
	box-shadow: 0 0 60px rgba(149, 72, 0, 0.10);
	overflow: clip;
}
.wrap { width: min(100% - 2 * var(--gutter), var(--w-content)); margin-inline: auto; }
.wrap--text { width: min(100% - 2 * var(--gutter), var(--w-text)); margin-inline: auto; }

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header { position: relative; border-top: 6px solid var(--c-accent); background: linear-gradient(180deg, var(--c-surface-alt) 0%, var(--c-surface) 90%); }
.header-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 22px 0 18px;
}
.site-branding a { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--c-ink); }
.custom-logo, .site-logo { max-height: 80px; width: auto; }
.site-logo { height: clamp(56px, 7vw, 80px); }
.site-description { font-size: 0.9rem; color: var(--c-accent-dark); margin: 6px 0 0 4px; font-weight: 400; font-style: italic; }

.header-contact { display: none; font-size: 0.9rem; text-align: right; line-height: 1.4; color: var(--c-ink-soft); }
.header-contact strong { display: block; font-size: 1.15rem; color: var(--c-ink); font-weight: 700; }
.header-contact a { text-decoration: none; }
@media (min-width: 860px) { .header-contact { display: block; } }

/* Navigation */
.main-navigation { position: relative; border-top: 1px solid var(--c-line); }
.main-navigation .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.menu-toggle {
	display: inline-flex; align-items: center; gap: 10px;
	background: none; border: 0; padding: 14px 0; cursor: pointer;
	font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem;
}
.menu-toggle .burger { width: 22px; height: 2px; background: var(--c-ink); position: relative; display: block; }
.menu-toggle .burger::before, .menu-toggle .burger::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--c-ink); transition: transform 0.2s; }
.menu-toggle .burger::before { top: -7px; }
.menu-toggle .burger::after { top: 7px; }
.toggled .menu-toggle .burger { background: transparent; }
.toggled .menu-toggle .burger::before { transform: translateY(7px) rotate(45deg); }
.toggled .menu-toggle .burger::after { transform: translateY(-7px) rotate(-45deg); }

.main-navigation ul { list-style: none; margin: 0; padding: 0; display: none; width: 100%; }
.main-navigation.toggled #primary-menu { display: block; padding-bottom: 10px; }
.main-navigation.toggled .sub-menu { display: block; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: block; padding: 12px 0; text-decoration: none;
	font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--c-ink);
	border-bottom: 1px solid var(--c-line);
}
.main-navigation .sub-menu a { font-weight: 400; text-transform: none; letter-spacing: 0.02em; font-size: 0.95rem; padding-left: 1.2em; }
.main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a, .main-navigation .current_page_parent > a { color: var(--c-accent-dark); }

@media (min-width: 860px) {
	.menu-toggle { display: none; }
	.main-navigation .wrap { justify-content: center; }
	.main-navigation ul { display: flex; gap: clamp(8px, 2vw, 28px); width: auto; }
	.main-navigation a { padding: 18px 4px; border: 0; position: relative; }
	.main-navigation #primary-menu > li > a::after {
		content: ""; position: absolute; left: 4px; right: 4px; bottom: 10px; height: 3px; background: var(--c-accent);
		transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
	}
	.main-navigation #primary-menu > li:hover > a::after,
	.main-navigation #primary-menu > li:focus-within > a::after,
	.main-navigation #primary-menu > li.current-menu-item > a::after,
	.main-navigation #primary-menu > li.current-menu-ancestor > a::after,
	.main-navigation #primary-menu > li.current_page_parent > a::after { transform: scaleX(1); }
	.main-navigation .sub-menu {
		display: block; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
		min-width: 230px; background: var(--c-surface); border-top: 3px solid var(--c-accent); padding: 8px 0; z-index: 50;
		opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
		box-shadow: var(--shadow);
	}
	.main-navigation .sub-menu a { color: var(--c-ink); padding: 10px 22px; white-space: nowrap; }
	.main-navigation .sub-menu a:hover, .main-navigation .sub-menu .current-menu-item > a { color: var(--c-accent-dark); background: var(--c-accent-pale); }
	.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu, .main-navigation li.focus > .sub-menu { opacity: 1; visibility: visible; }
}

/*--------------------------------------------------------------
# Hero (front page)
--------------------------------------------------------------*/
/* Same shape as the page image band: full page width, bottom edge rises slightly from left to right */
.hero { position: relative; --page-hero-slant: clamp(14px, 3vw, 38px); }
.hero__frame {
	position: relative;
	aspect-ratio: 1200 / 380;
	min-height: 240px;
	/* Explicit width: otherwise min-height is transferred through aspect-ratio into a ~760px width on phones. */
	width: 100%;
	max-height: 460px;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--page-hero-slant)), 0 100%);
	background: var(--c-accent-pale);
	overflow: hidden;
}
.hero__frame::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(74, 36, 0, 0.55) 0%, rgba(74, 36, 0, 0.05) 60%);
	pointer-events: none;
}
.hero__slide {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}
/* visibility keeps links of hidden slides out of clicks and the tab order */
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease, visibility 0s; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--rmd-fzp-pos, 50% 50%); }
.hero__slide--placeholder { background: radial-gradient(120% 90% at 80% 20%, var(--c-accent-light), var(--c-accent) 45%, var(--c-accent-dark) 100%); }
.hero__slide--placeholder:nth-child(2) { background: radial-gradient(120% 90% at 20% 80%, #f2ead9, #d5c8b2 50%, #a89a86 100%); }
.hero__slide--placeholder:nth-child(3) { background: radial-gradient(120% 90% at 60% 40%, #d8e7ee, #9fbfd0 50%, #5d8ba3 100%); }
.hero__caption {
	position: absolute; left: clamp(20px, 6%, 70px); bottom: calc(var(--page-hero-slant) + clamp(12px, 3%, 28px)); right: 20%;
	color: var(--c-surface); font-weight: 300; font-size: clamp(1.1rem, 2.4vw, 1.75rem); line-height: 1.3;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); z-index: 2; margin: 0;
}
.hero__caption small { display: block; font-size: 0.6em; opacity: 0.85; margin-top: 0.3em; font-weight: 400; }
.hero__more {
	display: block; width: fit-content; margin-top: 0.8em; font-size: max(0.5em, 0.75rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
	color: var(--c-surface); text-decoration: none; border-bottom: 2px solid var(--c-accent); padding-bottom: 0.15em; transition: border-color 0.2s;
}
.hero__more:hover, .hero__more:focus-visible { color: var(--c-surface); border-color: var(--c-surface); }
/* Captions fade out quickly, the image crossfades, then the new caption fades in (no overlapping text) */
.hero__slide .hero__caption { opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.45s ease; }
.hero__slide.is-active .hero__caption { opacity: 1; transform: none; transition: opacity 0.7s ease 0.85s, transform 0.7s ease 0.85s; }
@media (prefers-reduced-motion: reduce) {
	.hero__slide, .hero__slide .hero__caption, .hero__slide.is-active .hero__caption { transition: none; transform: none; }
}
.hero__dots { position: absolute; right: clamp(24px, 6%, 70px); bottom: calc(var(--page-hero-slant) + 14px); display: flex; gap: 8px; z-index: 3; }
.hero__dots button { width: 10px; height: 10px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.45); border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); cursor: pointer; }
.hero__dots button.is-active { background: #ffffff; }

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
.site-main { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.home .site-main { padding-bottom: 0; }
.page-header, .entry-header { margin-bottom: 1.6em; }
.entry-title { position: relative; padding-bottom: 0.45em; }
.entry-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 70px; height: 4px; background: var(--c-accent); }
.kicker { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; color: var(--c-accent-dark); margin-bottom: 0.6em; }
.post-thumbnail img { width: 100%; margin-bottom: 2em; clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%); }

/* Page image band: full page width, bottom edge rises slightly from left to right */
.page-hero { --page-hero-slant: clamp(14px, 3vw, 38px); }
.page-hero__media {
	position: relative;
	aspect-ratio: 1200 / 380;
	min-height: 200px;
	max-height: 460px;
	overflow: hidden;
	background: var(--c-accent-pale);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--page-hero-slant)), 0 100%);
}
.page-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: var(--rmd-fzp-pos, 50% 50%); }

/* Subtle Ken Burns zoom on hover (slider and page image). Only for real pointer devices and without reduced motion. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.hero__slide img, .page-hero__img { transform: scale(1) translate(0, 0); transform-origin: var(--rmd-fzp-pos, 60% 45%); transition: transform 1.4s ease-out; }
	.hero__frame:hover .hero__slide img, .page-hero__media:hover .page-hero__img { transform: scale(1.07) translate(-1%, -0.6%); transition: transform 9s cubic-bezier(0.2, 0.6, 0.35, 1); }
}
.site-header:has(.page-hero, .hero) + .site-main { padding-top: clamp(28px, 4vw, 56px); }
.entry-content { font-weight: 300; }
.entry-content strong { font-weight: 700; }
.entry-content > p:first-child { font-size: 1.15em; }
.entry-footer { margin-top: 2em; font-size: 0.85rem; }
.wp-block-image img { clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%); }
/* Zoomed images (RMD Focal Zoom Point) are scaled inside a frame; the slant goes onto the frame so it is not scaled along. */
.wp-block-image .rmd-fzp-wrap { clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%); }
.wp-block-image .rmd-fzp-wrap img { clip-path: none; }

/* Intro section on the front page */
.intro { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 860px) { .intro { grid-template-columns: 1.3fr 1fr; } }
.intro__lead h1 { font-weight: 300; margin-bottom: 0.6em; }
.intro__lead h1 em { font-style: normal; font-weight: 700; color: var(--c-accent-dark); }
.intro__lead .entry-content > p:first-child { font-size: 1.05em; }
.intro__aside { background: var(--c-accent-pale); padding: clamp(20px, 3vw, 32px); padding-bottom: calc(clamp(20px, 3vw, 32px) + 10px); clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); }
.intro__aside h4 { margin-bottom: 0.8em; }
.intro__aside ul { list-style: none; padding: 0; margin: 0; }
.intro__aside li { padding: 0.45em 0 0.45em 1.4em; position: relative; border-bottom: 1px solid rgba(149, 72, 0, 0.12); font-weight: 400; }
.intro__aside li:last-child { border: 0; }
.intro__aside li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 10px; height: 10px; background: var(--c-accent); }
.intro__side { display: grid; gap: 24px; }
.job-teaser {
	position: relative;
	background: var(--c-accent-light);
	border-top: 4px solid var(--c-accent);
	padding: clamp(20px, 3vw, 32px);
	padding-bottom: calc(clamp(20px, 3vw, 32px) + 10px);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 14px));
}
.job-teaser .kicker { color: var(--c-accent-dark); margin-bottom: 0.4em; }
.job-teaser h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5em; }
.job-teaser p { font-weight: 400; margin-bottom: 1.2em; }

/* Service teasers */
.teasers { margin-top: clamp(48px, 7vw, 96px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 1.6em; }
.section-head h2 { position: relative; padding-left: 22px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 10px; height: 0.8em; background: var(--c-accent); }
.section-head a { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; }
.teaser-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.teaser {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: var(--c-surface-alt); padding: 24px 20px 32px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 14px));
	transition: transform 0.25s, background 0.25s;
}
.teaser:hover { transform: translateY(-4px); background: var(--c-accent-pale); }
.teaser__num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; color: var(--c-accent-dark); margin-bottom: 0.8em; }
.teaser h3 { margin-bottom: 0.5em; font-size: 1.2rem; hyphens: auto; overflow-wrap: break-word; }
.teaser h3 a { text-decoration: none; }
.teaser h3 a::after { content: ""; position: absolute; inset: 0; }
.teaser p { font-weight: 300; font-size: 0.95rem; flex: 1; margin-bottom: 1.4em; }
.teaser__more { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-accent-dark); }

/* Sub-page navigation for parent pages */
.subpages { margin-top: 3em; }
.subpages ul { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; margin: 0; list-style: none; }
.subpages a { display: block; background: var(--c-surface-alt); padding: 18px 20px; text-decoration: none; font-weight: 400; border-left: 5px solid var(--c-accent); }
.subpages a:hover { background: var(--c-accent-pale); }

/* Contact strip on the front page */
.cta {
	margin-top: clamp(48px, 7vw, 96px);
	background: var(--c-surface-alt); color: var(--c-ink);
	padding: calc(clamp(36px, 5vw, 64px) + 10px) 0 clamp(40px, 5vw, 64px);
	clip-path: polygon(0 0, 100% 24px, 100% 100%, 0 100%);
}
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-weight: 300; }
.cta p { margin: 0.4em 0 0; font-weight: 300; }
.cta a.btn { flex-shrink: 0; }

/* Posts list (news) */
.post-list article { padding: 1.8em 0; border-bottom: 1px solid var(--c-line); }
.post-list .entry-title { font-size: 1.5rem; padding: 0; }
.post-list .entry-title::after { display: none; }
.post-list .entry-title a { text-decoration: none; }
.entry-meta { font-size: 0.85rem; color: var(--c-ink-soft); margin-bottom: 0.6em; }
.entry-meta a { text-decoration: none; }
.updated:not(.published) { display: none; }
.posts-navigation, .post-navigation { margin-top: 2.5em; font-weight: 400; }
.nav-links { display: flex; justify-content: space-between; gap: 20px; }
.nav-links a { text-decoration: none; }

/* Forms (Contact Form 7 & core) */
.wpcf7 label, .entry-content label { display: block; font-weight: 400; margin-bottom: 1em; font-size: 0.95rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], textarea, select {
	width: 100%; padding: 0.7em 0.9em; border: 1px solid var(--c-line); background: var(--c-surface-alt); margin-top: 0.3em;
}
input:focus, textarea:focus { border-color: var(--c-accent); outline: none; box-shadow: 0 0 0 3px var(--c-accent-pale); }
.wpcf7-not-valid-tip { color: #b3261e; font-size: 0.85rem; }
/* Required field marker: <i>*</i> inside a label */
.wpcf7 label i, .wpcf7 legend i { font-style: normal; font-weight: 700; color: var(--c-accent-dark); margin-left: 0.15em; }

/* Alignments & media */
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { clear: both; display: block; margin: 0 auto 1.5em; }
.alignwide, .alignfull { width: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption { font-size: 0.85rem; color: var(--c-ink-soft); margin-top: 0.5em; }
.wp-block-gallery img { clip-path: none; }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
	background: var(--c-accent-light); color: var(--c-ink);
	border-top: 10px solid var(--c-accent);
	padding: clamp(40px, 6vw, 72px) 0 28px;
	font-weight: 300;
}
.site-footer a { color: var(--c-ink); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent-dark); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-grid h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; color: var(--c-accent-dark); margin-bottom: 1em; }
.footer-grid p, .footer-grid table { margin-bottom: 0.8em; }
.footer-grid td { padding: 0.15em 0.8em 0.15em 0; }
.footer-grid td:first-child { color: var(--c-ink-soft); white-space: nowrap; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 0.3em 0; border-bottom: 1px solid rgba(149, 72, 0, 0.15); }
.hours li span:last-child { font-weight: 400; white-space: nowrap; }
/* RMD Opening Hours plugin, styled like .hours */
.footer-grid .rmd-oh { --rmd-oh-border: 1px solid rgba(149, 72, 0, 0.15); --rmd-oh-today-bg: transparent; --rmd-oh-closed-opacity: 1; --rmd-oh-note-opacity: 1; margin-bottom: 0.8em; }
.footer-grid .rmd-oh__table { margin: 0; }
.footer-grid .rmd-oh__table th, .footer-grid .rmd-oh__table td { padding: 0.3em 0; color: inherit; }
.footer-grid .rmd-oh__table th { font-weight: inherit; padding-right: 12px; }
.footer-grid .rmd-oh__table td { text-align: right; white-space: nowrap; }
.footer-grid .rmd-oh__note { color: var(--c-ink-soft); white-space: normal; }
.footer-grid .rmd-oh-notices { margin-bottom: 0.8em; }
.footer-bottom {
	margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(149, 72, 0, 0.2);
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; font-size: 0.85rem;
}
.footer-navigation ul { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0; list-style: none; }
.footer-navigation li { padding: 0 12px; border-right: 1px solid rgba(149, 72, 0, 0.3); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; font-weight: 700; }
.footer-navigation li:first-child { padding-left: 0; }
.footer-navigation li:last-child { border: 0; }
.footer-navigation .current-menu-item a { color: var(--c-accent-dark); }
.site-info { color: var(--c-ink-soft); }

/* Error 404 / search */
.error-404 .page-title { margin-bottom: 1em; }
.search-form { display: flex; gap: 8px; max-width: 480px; }
.search-form input[type="search"] { margin: 0; }

/*--------------------------------------------------------------
# Side ornament: floral pattern from the business card on the page background.
# Keeps its aspect ratio (viewBox 105.5 x 291.5) and scales to 92% of the window
# height, capped so it stays fully visible in the free margin left of the content.
--------------------------------------------------------------*/
.side-ornament {
	--orn-ratio: 0.3619;
	--orn-w: min(calc(92vh * var(--orn-ratio)), calc(((100vw - 1200px) / 2 - 20px) / 1.06));
	--orn-h: calc(var(--orn-w) / var(--orn-ratio));
	display: none;
	position: fixed; left: 0; top: 0; height: 100vh;
	width: calc(var(--orn-w) * 1.1);
	pointer-events: none;
	z-index: 0;
}
.side-ornament::before {
	content: "";
	position: absolute; top: 50%; left: calc(var(--orn-w) * 0.06);
	width: var(--orn-w); height: var(--orn-h);
	transform: translateY(-50%);
	background: var(--c-accent);
	opacity: 0.3;
	-webkit-mask: url("assets/img/muster_bg.svg") center / 100% 100% no-repeat;
	mask: url("assets/img/muster_bg.svg") center / 100% 100% no-repeat;
}
.site { z-index: 1; }
@media (min-width: 1500px) { .side-ornament { display: block; } }
