/*
Theme Name: Rainer Müller – Coaching (Astra Child)
Theme URI: https://rainermueller-berlin.de
Description: Child-Theme auf Basis von Astra für die Coaching-Website Rainer Müller. Design-System (Outfit/Inter, Salbei-Grün/Creme) liegt in theme.json.
Author: weventure
Template: astra
Version: 1.1.0
Text Domain: rainer-mueller-child
*/

/* ===========================================================================
   Nur Feinschliff, den theme.json nicht abdeckt.
   Tokens (Farben, Fonts, Größen, Abstände) -> siehe theme.json / Global Styles.
   Dieses Stylesheet ist die EINZIGE CSS-Quelle des Child-Themes –
   das frühere „Zusätzliches CSS" im Customizer ist hier eingearbeitet
   und kann dort gelöscht werden.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1) ASTRA-CHROME (Header/Nav/Footer-Gerüst) auf die lokalen Fonts mappen.
   Wichtig für DSGVO: Astra-Typografie im Customizer auf „Default" lassen,
   dann lädt Astra KEINE Google Fonts – die Schriften kommen von hier.
   --------------------------------------------------------------------------- */
body,
.ast-builder-menu .main-navigation,
.main-header-menu .menu-item > .menu-link,
button,
input,
select,
textarea {
	font-family: var(--wp--preset--font-family--inter);
}

.site-title,
.site-title a {
	font-family: var(--wp--preset--font-family--outfit);
	font-weight: 400;
	color: var(--wp--preset--color--ink);
	letter-spacing: -0.45px;
}

.site-description {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.main-header-menu .menu-item > .menu-link {
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: -0.15px;
	color: var(--wp--preset--color--muted);
}

.main-header-menu .menu-item > .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link {
	color: var(--wp--preset--color--primary);
}

.main-header-menu .current-menu-item > .menu-link {
	font-weight: 500;
}

/* ---------------------------------------------------------------------------
   2) STICKY HEADER (vormals „Zusätzliches CSS" im Customizer)
   --------------------------------------------------------------------------- */
body {
	overflow-x: clip; /* macht sticky + alignfull-Ausbruch sauber möglich */
}

#masthead {
	position: sticky;
	top: 0;
	z-index: 999;
}

.ast-main-header-wrap .main-header-bar,
.ast-primary-header-bar {
	background: rgba(247, 243, 235, 0.85);
	-webkit-backdrop-filter: saturate(140%) blur(8px);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid rgba(209, 210, 197, 0.6);
}

/* Header kompakt halten */
.main-header-bar .ast-builder-grid-row,
.main-header-bar .site-primary-header-wrap {
	min-height: 64px;
}

/* im eingeloggten Zustand nicht unter die Adminleiste rutschen */
body.admin-bar #masthead {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar #masthead {
		top: 46px;
	}
}

/* ---------------------------------------------------------------------------
   3) HEADING-GRÖSSEN-SHIM
   WordPress wandelt die Font-Size-Slugs h1/h2/h3 intern in h-1/h-2/h-3 um.
   Älter eingefügte Blöcke tragen evtl. noch die Klasse OHNE Bindestrich.
   --------------------------------------------------------------------------- */
.has-h1-font-size { font-size: var(--wp--preset--font-size--h-1) !important; }
.has-h2-font-size { font-size: var(--wp--preset--font-size--h-2) !important; }
.has-h3-font-size { font-size: var(--wp--preset--font-size--h-3) !important; }

/* ---------------------------------------------------------------------------
   4) BLOCK-STYLES (werden in functions.php registriert und sind damit
   im Editor unter „Stile" auswählbar)
   --------------------------------------------------------------------------- */

/* Eyebrow-Label: gesperrt + uppercase + grün (12px) */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--eyebrow);
	line-height: 1.33;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	margin-bottom: var(--wp--preset--spacing--40);
}

/* Lead/Subhead: Inter Light 20/34 */
.is-style-lead {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 300;
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.7;
	letter-spacing: -0.45px;
	color: var(--wp--preset--color--muted);
}

/* Akzent-Zitat: Inter Italic grün */
.is-style-accent {
	font-style: italic;
	color: var(--wp--preset--color--primary);
}

/* Karten: Creme + warmer Rahmen, Radius 20 (kein Schatten im Ruhezustand) */
.is-style-card {
	background: var(--wp--preset--color--card-cream);
	border: 1px solid rgba(209, 210, 197, 0.6);
	border-radius: 20px;
	padding: 24px;
}

/* Liste ohne Aufzählungszeichen (Footer, Über mich, Anfahrt) */
.is-style-rmc-plain {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

/* Buttons: theme.json-Werte gegen Astras dynamisches Customizer-CSS absichern.
   (Astra rendert .wp-block-button .wp-block-button__link mit höherer Spezifität –
   diese Regel stellt die Design-Werte wieder her, ohne Preset-Farben zu überschreiben.) */
.wp-block-button .wp-block-button__link:not(.has-background) {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--cream);
	border-radius: 999px;
	padding: 12px 24px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: -0.15px;
	border: none;
}

.wp-block-button .wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--heading);
	color: var(--wp--preset--color--cream);
}

.wp-block-button .wp-block-button__link.has-background {
	border-radius: 999px;
}

/* Sekundär-Button (Creme transparent mit Rahmen) – nutzt den Core-Style „Outline" */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: rgba(247, 243, 235, 0.6);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line);
	padding-top: 11px;
	padding-bottom: 11px;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--sage-light);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--heading);
}

/* ---------------------------------------------------------------------------
   5) TYPO-DETAILS
   --------------------------------------------------------------------------- */

/* Es sind nur die Gewichte 300/400/500 eingebunden – fette Hervorhebungen
   rendern als Medium statt als synthetisches Fett. */
.entry-content b,
.entry-content strong {
	font-weight: 500;
}

/* Inline-Farbhervorhebungen (mark): gelben Browser-Default-Hintergrund neutralisieren */
mark.has-inline-color {
	background-color: transparent;
}

/* ---------------------------------------------------------------------------
   6) HERO-FOTO: gedrehter Salbei-Kasten hinter dem Bild + dezenter Schatten
   --------------------------------------------------------------------------- */
.hero-photo {
	position: relative;
	width: fit-content;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.hero-photo::before {
	content: "";
	position: absolute;
	inset: -12px;
	background: var(--wp--preset--color--sage-light);
	border-radius: 32px;
	transform: rotate(3deg);
	z-index: 0;
}

.hero-photo img {
	position: relative;
	z-index: 1;
}

/* Nur der Start-Hero hat laut Figma einen dezenten Schatten (Unterseiten nicht) */
.hero-photo-shadow img {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------------------------------------
   7) VERLINKTE KARTEN: ganze Karte klickbar (Link liegt auf der Überschrift)
   --------------------------------------------------------------------------- */
.rmc-card-link {
	position: relative;
}

.rmc-card-link a {
	color: inherit;
	text-decoration: none;
}

.rmc-card-link a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/* ---------------------------------------------------------------------------
   7a) KONTAKT-SECTION: Telefon/Mail-Links erben die Textfarbe
   --------------------------------------------------------------------------- */
.rmc-contact a:not(.wp-block-button__link) {
	color: inherit;
	text-decoration: none;
}

.rmc-contact a:not(.wp-block-button__link):hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   7b) FOOTER: Links erben die Textfarbe, Grün erst beim Hover
   --------------------------------------------------------------------------- */
.rmc-footer a {
	color: inherit;
	text-decoration: none;
}

.rmc-footer a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   8) KONTAKTFORMULAR-KARTE: styles für gängige Form-Plugins
   (Fluent Forms, WPForms, Contact Form 7) im Look des Figma-Designs.
   --------------------------------------------------------------------------- */
.rmc-form-card label {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--ink);
	margin-bottom: 8px;
}

.rmc-form-card input[type="text"],
.rmc-form-card input[type="email"],
.rmc-form-card input[type="tel"],
.rmc-form-card input[type="number"],
.rmc-form-card textarea {
	width: 100%;
	background: var(--wp--preset--color--cream);
	border: 1px solid #dedfd4;
	border-radius: 16px;
	padding: 12px 16px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
	min-height: 46px;
	box-shadow: none;
}

.rmc-form-card textarea {
	min-height: 16px;
}

.rmc-form-card input:focus,
.rmc-form-card textarea:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 0;
	border-color: var(--wp--preset--color--primary);
}

.rmc-form-card input[type="submit"],
.rmc-form-card button[type="submit"],
.rmc-form-card .ff-btn-submit,
.rmc-form-card .wpforms-submit,
.rmc-form-card .wpcf7-submit {
	width: 100%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--cream);
	border: none;
	border-radius: 999px;
	min-height: 48px;
	padding: 12px 24px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: -0.15px;
	cursor: pointer;
}

.rmc-form-card input[type="submit"]:hover,
.rmc-form-card button[type="submit"]:hover,
.rmc-form-card .ff-btn-submit:hover,
.rmc-form-card .wpforms-submit:hover,
.rmc-form-card .wpcf7-submit:hover {
	background: var(--wp--preset--color--heading);
}

.rmc-form-card input[type="checkbox"] {
	width: 14px;
	height: 14px;
	accent-color: var(--wp--preset--color--primary);
}

.rmc-form-card .ff-el-form-check-label,
.rmc-form-card .wpforms-field-checkbox label,
.rmc-form-card .wpcf7-list-item-label {
	font-weight: 400;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
