/*
Theme Name: CURA MEA
Theme URI: https://www.cura-mea.de
Author: Janin Villhauer | villhauer. nachhaltige design- und markenkonzepte
Author URI: https://www.villhauer-design.de
Description: Individuelles One-Pager-Theme für CURA MEA – Nicole Bornkessel. Startseite mit Hero-Zitat, Angebot (im Block-Editor pflegbar) und Kontaktformular; Seitenvorlagen für Impressum und Datenschutz. Schriften lokal eingebunden, keine externen Dienste.
Version: 1.3.0
Requires at least: 6.3
Tested up to: 6.8
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: cura-mea
*/

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/roboto-condensed-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/roboto-condensed-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/roboto-slab-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/roboto-slab-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/roboto-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/roboto-latin-400-normal.woff2") format("woff2"); }

/* ---------- Farben & Maße ---------- */
:root {
	--cm-tief: #003a50;       /* Hauptfläche Petrol */
	--cm-tiefer: #002a3a;     /* Fußzeile, Overlay */
	--cm-button: #0b5c80;     /* Buttons */
	--cm-button-hover: #0d6f9a;
	--cm-akzent: #0094d3;     /* aktiver Menüpunkt */
	--cm-feld: #cfe1e8;       /* Formularfelder */
	--cm-hell: #ffffff;
	--cm-text-dunkel: #003a50;
	--cm-link-hell: #9ccbe0;

	--cm-font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	--cm-font-display: "Roboto", Arial, sans-serif;
	--cm-font-zitat: "Roboto Slab", Georgia, serif;

	--cm-breite: 46rem;       /* Textspalte */
	--cm-gutter: 1.25rem;
	--cm-radius: 6px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--cm-font);
	font-size: 1.0625rem;
	line-height: 1.45;
	color: var(--cm-hell);
	background: var(--cm-tief);
	-webkit-font-smoothing: antialiased;
}
body.cm-menu-offen { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.2; font-weight: 400; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); }
strong, b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--cm-akzent); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	position: fixed !important; top: 0.5rem; left: 0.5rem; width: auto; height: auto; clip: auto;
	padding: 0.75rem 1rem; background: var(--cm-hell); color: var(--cm-tief); z-index: 1000; margin: 0;
}

.cm-container { width: 100%; max-width: calc(var(--cm-breite) + 2 * var(--cm-gutter)); margin: 0 auto; padding: 0 var(--cm-gutter); }

/* ---------- Kopfzeile ---------- */
.cm-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.25rem 2rem 1rem 2.25rem;
	transition: background-color .25s ease, box-shadow .25s ease;
}
/* Unterseiten: Kopfzeile als Fläche, bleibt beim Scrollen oben stehen */
.cm-header--flaeche { position: sticky; background: var(--cm-tief); }
/* Sobald gescrollt wird: Fläche hinterlegen und etwas kompakter */
.cm-header.ist-gescrollt {
	background: var(--cm-tief);
	box-shadow: 0 1px 0 rgba(255,255,255,0.08), 0 6px 18px rgba(0,0,0,0.18);
}
.admin-bar .cm-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .cm-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .cm-header.ist-gescrollt { top: 0; } }
@media (prefers-reduced-motion: reduce) { .cm-header { transition: none; } }

.cm-logo { display: block; line-height: 0; }
.cm-logo img { width: clamp(110px, 26vw, 170px); height: auto; }
.cm-logo .custom-logo { width: clamp(110px, 26vw, 170px); height: auto; }

.cm-burger {
	appearance: none; background: none; border: 0; padding: 0.5rem; margin-right: -0.5rem;
	color: var(--cm-hell); cursor: pointer; line-height: 0;
}
.cm-burger svg { width: 34px; height: 34px; }

/* Desktop-Navigation */
.cm-nav-desktop { display: none; }
.cm-nav-desktop ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.cm-nav-desktop a {
	display: block; padding: 0.45rem 0.9rem; border-radius: var(--cm-radius);
	text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.05rem;
}
.cm-nav-desktop a:hover { background: rgba(255,255,255,0.12); }
.cm-nav-desktop .current-menu-item > a { background: var(--cm-akzent); }

@media (min-width: 1024px) {
	.cm-nav-desktop { display: block; }
	.cm-burger { display: none; }
	.cm-header { padding: 1.75rem 3rem; }
}

/* Vollbild-Menü (mobil) */
.cm-menu {
	position: fixed; inset: 0; z-index: 100;
	background: var(--cm-tief);
	display: flex; flex-direction: column; align-items: center;
	padding: 5.5rem 1.5rem 2rem;
	opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
	overflow-y: auto;
}
.cm-menu.ist-offen { opacity: 1; visibility: visible; }
.admin-bar .cm-menu { top: 46px; }
@media (min-width: 783px) { .admin-bar .cm-menu { top: 32px; } }
.cm-menu__schliessen {
	position: absolute; top: 1.4rem; right: 1.5rem;
	appearance: none; background: none; border: 0; color: var(--cm-hell); cursor: pointer; padding: 0.4rem; line-height: 0;
}
.cm-menu__schliessen svg { width: 34px; height: 34px; }
.cm-menu ul { list-style: none; margin: 0; padding: 0; width: min(100%, 22rem); text-align: center; }
.cm-menu li { margin: 0 0 0.6rem; }
.cm-menu a {
	display: block; padding: 0.6rem 1rem; border-radius: var(--cm-radius);
	text-decoration: none; text-transform: uppercase; font-size: 1.35rem; letter-spacing: 0.02em;
}
.cm-menu a:hover { background: rgba(255,255,255,0.1); }
.cm-menu .current-menu-item > a { background: var(--cm-akzent); }

/* ---------- Hero Startseite ---------- */
.cm-hero {
	position: relative; isolation: isolate;
	min-height: min(92svh, 860px);
	display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
	text-align: center; padding: 8rem var(--cm-gutter) 0;
	background-color: var(--cm-tiefer);
	background-size: cover; background-position: center;
}
.cm-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(0,32,46,.35) 0%, rgba(0,32,46,.55) 55%, rgba(0,42,58,.85) 100%);
}
.cm-hero__zitat { margin: auto 0; max-width: 40rem; padding: 2rem 0; }
.cm-hero__zitat blockquote { margin: 0; }
.cm-hero__zitat p {
	font-family: var(--cm-font-zitat); font-weight: 300;
	font-size: clamp(1.35rem, 1.05rem + 1.5vw, 2.2rem); line-height: 1.35; margin: 0;
}
.cm-hero__zitat figcaption { margin-top: 1.6rem; font-size: 1rem; letter-spacing: 0.01em; }
.cm-hero__cta { transform: translateY(0); margin-bottom: 0; padding-bottom: 0; }
.cm-hero__cta .cm-button { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* ---------- Buttons ---------- */
.cm-button, .wp-block-button__link {
	display: inline-block; appearance: none; border: 0; cursor: pointer;
	background: var(--cm-button); color: var(--cm-hell);
	font-family: var(--cm-font); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.14em;
	padding: 0.85rem 1.4rem; border-radius: var(--cm-radius); text-decoration: none;
	transition: background-color .2s ease;
}
.cm-button:hover, .wp-block-button__link:hover { background: var(--cm-button-hover); color: var(--cm-hell); }

/* ---------- Abschnitt Angebot (Inhalt der Startseite) ---------- */
.cm-angebot { background: var(--cm-tief); padding: 3.5rem 0 4rem; text-align: center; }
.cm-inhalt > * { margin-left: auto; margin-right: auto; }
.cm-inhalt h2 { margin-bottom: 1rem; }
.cm-inhalt h2 strong, .cm-inhalt h3 strong { font-weight: 700; }
.cm-inhalt h3 { margin-top: 3rem; margin-bottom: 0.9rem; }
.cm-inhalt h3 + p { margin-top: 0; }
.cm-inhalt h2 + p { margin-top: 0; }
.cm-inhalt .wp-block-spacer { margin: 0; }
.cm-inhalt ul, .cm-inhalt ol { text-align: left; display: inline-block; }

/* ---------- Abschnitt Kontakt ---------- */
.cm-kontakt { background: var(--cm-hell); color: var(--cm-text-dunkel); padding: 3.5rem 0 3rem; text-align: center; }
.cm-kontakt h2 { font-weight: 400; margin-bottom: 1.4rem; }
.cm-kontakt h2 strong { display: block; }
.cm-kontakt__aufruf { font-weight: 700; margin-bottom: 2rem; }

.cm-form { text-align: left; max-width: 34rem; margin: 0 auto; }
.cm-form label { display: block; font-size: 0.85rem; margin: 0 0 0.35rem; }
.cm-form .cm-feld { margin-bottom: 1.25rem; }
.cm-form input[type="text"], .cm-form input[type="email"], .cm-form input[type="tel"], .cm-form textarea {
	width: 100%; border: 0; border-radius: var(--cm-radius);
	background: var(--cm-feld); color: var(--cm-text-dunkel);
	font: inherit; padding: 0.75rem 0.9rem;
}
.cm-form textarea { min-height: 11rem; resize: vertical; }
.cm-form input:focus, .cm-form textarea:focus { outline: 2px solid var(--cm-button); outline-offset: 0; }
.cm-form .cm-einwilligung { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.8rem; line-height: 1.35; margin: 1.5rem 0 0.75rem; }
.cm-form .cm-einwilligung input { width: 1.15rem; height: 1.15rem; margin: 0.1rem 0 0; flex: 0 0 auto; accent-color: var(--cm-button); }
.cm-form .cm-einwilligung label { font-size: inherit; margin: 0; }
.cm-form .cm-pflicht-hinweis { font-size: 0.75rem; margin-bottom: 1.25rem; }
.cm-form .cm-button { width: 100%; }
.cm-form .cm-honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cm-meldung { max-width: 34rem; margin: 0 auto 1.5rem; padding: 0.9rem 1rem; border-radius: var(--cm-radius); text-align: left; }
.cm-meldung--ok { background: #e3f1e8; color: #1d5233; }
.cm-meldung--fehler { background: #f7e3e3; color: #7a1f1f; }

.cm-visitenkarte { margin-top: 3.5rem; }
.cm-visitenkarte h3 { font-size: 1.3rem; margin-bottom: 0.9rem; }
.cm-visitenkarte__rolle { margin-bottom: 1.6rem; }
.cm-visitenkarte__kontakt p { margin: 0 0 0.6rem; }
.cm-social { display: flex; justify-content: center; gap: 1.4rem; margin-top: 1.6rem; list-style: none; padding: 0; }
.cm-social a { display: block; line-height: 0; color: var(--cm-text-dunkel); }
.cm-social svg { width: 26px; height: 26px; }

/* ---------- Unterseiten ---------- */
.cm-seitenkopf {
	position: relative; isolation: isolate;
	min-height: min(78svh, 700px);
	display: flex; align-items: center; justify-content: center; text-align: center;
	padding: 4rem var(--cm-gutter);
	background-color: var(--cm-tiefer); background-size: cover; background-position: center;
}
.cm-seitenkopf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,32,46,.25); }
.cm-seitenkopf--ohne-bild { min-height: 0; padding: 9rem var(--cm-gutter) 2rem; background: var(--cm-tief); }
.cm-seitenkopf--ohne-bild::before { display: none; }
.cm-seitenkopf h1 { font-family: var(--cm-font-display); font-weight: 400; font-size: clamp(2rem, 1.5rem + 2.6vw, 3.4rem); margin: 0; }

.cm-seite { padding: 4rem 0 5rem; }
.cm-seite .cm-inhalt { text-align: left; }
.cm-seite .cm-inhalt h2 { font-size: 1.4rem; font-weight: 700; margin-top: 2.5rem; }
.cm-seite .cm-inhalt h3 { font-size: 1.1rem; font-weight: 700; text-transform: none; margin-top: 1.8rem; margin-bottom: 0.4rem; }
.cm-seite .cm-inhalt ul { display: block; }
.cm-seite .cm-inhalt a { color: var(--cm-link-hell); }

/* Seitenvorlage „Hell" (z. B. Datenschutz) */
.cm-seite--hell { background: var(--cm-hell); color: #1c2a30; }
.cm-seite--hell .cm-inhalt a { color: var(--cm-button); }
.cm-seite--hell .cm-inhalt h2, .cm-seite--hell .cm-inhalt h3 { color: var(--cm-text-dunkel); }

/* ---------- Fußzeile ---------- */
.cm-footer { background: var(--cm-tief); padding: 2.25rem var(--cm-gutter) 2.5rem; text-align: center; font-size: 0.95rem; }
.cm-footer p { margin: 0 0 0.35rem; }
.cm-footer__trenner { padding: 0 0.4rem; }
.cm-footer ul { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; justify-content: center; }
.cm-footer li + li::before { content: "|"; padding: 0 0.4rem; }
.cm-footer a { text-decoration: underline; }

/* ---------- Block-Editor-Grundlagen ---------- */
.alignwide { max-width: 64rem; }
.alignfull { max-width: none; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }
.wp-block-image figcaption { font-size: 0.85rem; }
.cm-menu[hidden] { display: none; }

.cm-visitenkarte__portrait { width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; margin: 0 auto 1.5rem; }
