/*
Theme Name: Rona Fliesen Karlsruhe
Theme URI: https://ronafliesen-karlsruhe.de
Author: saasweb
Author URI: https://saasweb.net
Description: Block-Theme fuer Rona Fliesen Karlsruhe. Fliesen, Duschen und Badausstattung in Durmersheim bei Karlsruhe. Responsiv, sticky Header, lokal gehostete Schrift, SEO- und GEO-optimiert.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rona-fliesen
Tags: block-theme, full-site-editing, business, one-column, custom-colors, custom-logo, custom-menu, sticky-post, translation-ready, accessibility-ready
*/

/* ===========================================================================
   0. Farbschema (hell / dunkel)

   Ohne Angabe folgt die Seite dem Betriebssystem. Sobald jemand den
   Umschalter benutzt, setzt ein Skript data-theme="light" oder "dark" auf
   <html>; diese Wahl bleibt gespeichert und sticht die Systemeinstellung.
   Eine dritte Option "System" gibt es bewusst nicht.

   Die beiden dunklen Bloecke muessen inhaltlich gleich bleiben - der eine
   greift ueber die Systemeinstellung, der andere ueber die getroffene Wahl.

   Aufbau der dunklen Flaechen als Ebenen: Seite am tiefsten, darauf die
   abgesetzten Sektionen, darauf Karten. In der hellen Fassung ist es
   umgekehrt - dort sind die dunklen Baender die Ausnahme.
   ======================================================================== */

:root {
	color-scheme: light;

	--rona-page: #ffffff;          /* Seitenhintergrund */
	--rona-surface: #ffffff;       /* Karten, Kontaktkarte, Filterleiste */
	--rona-surface-2: #f6f4ef;     /* abgesetzte Sektionen */
	--rona-surface-3: #ebe7df;     /* Bildplatzhalter in Karten */
	--rona-border: #e7e2d8;
	--rona-border-soft: #eee9df;
	--rona-border-hair: #eeeeee;
	--rona-text: #1d1d1f;
	--rona-text-muted: #666a70;
	--rona-text-faint: #777777;
	--rona-outline: #d7d7d7;       /* Rahmen umrandeter Schaltflaechen */
	--rona-hero: linear-gradient(135deg, #f7f4ed 0%, #ffffff 58%);
	--rona-shadow-strength: 1;

	/* Verfuegbarkeit. Auf dunklem Grund braucht es hellere Toene: die
	   gesaettigten Originalfarben kommen dort nur auf 3:1 und liegen
	   damit unter der Lesbarkeitsschwelle von 4,5:1. */
	--rona-stock-in: #157a3c;
	--rona-stock-in-dot: #1aa050;
	--rona-stock-low: #9a5b00;
	--rona-stock-low-dot: #e08600;
	--rona-stock-out: #8a2222;
	--rona-stock-out-dot: #c23b3b;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;

		--rona-page: #0f0f11;
		--rona-surface: #1f1f25;
		--rona-surface-2: #16161a;
		--rona-surface-3: #26262d;
		--rona-border: #2d2d35;
		--rona-border-soft: #303039;
		--rona-border-hair: #2a2a31;
		--rona-text: #ececee;
		--rona-text-muted: #a3a7ae;
		--rona-text-faint: #9a9ea5;
		--rona-outline: #3a3a44;
		--rona-hero: linear-gradient(135deg, #1a1a1f 0%, #0f0f11 58%);
		--rona-shadow-strength: 2.2;

		/* Voreinstellungen von WordPress mitziehen: alle Bloecke, die
		   has-paper-background-color, has-muted-color und Verwandte
		   verwenden, wechseln dadurch automatisch mit. */
		--wp--preset--color--paper: #16161a;
		--wp--preset--color--line: #2d2d35;
		--wp--preset--color--ink: #ececee;
		--wp--preset--color--muted: #a3a7ae;
		--wp--preset--color--black: #1a1a20;
		--wp--preset--color--black-deep: #141418;
		--wp--preset--color--orange-dark: #ff8f33;
		--wp--preset--gradient--hero: var(--rona-hero);
		--rona-stock-in: #5fd68c;
		--rona-stock-in-dot: #35c46c;
		--rona-stock-low: #f0b357;
		--rona-stock-low-dot: #e08600;
		--rona-stock-out: #f08c8c;
		--rona-stock-out-dot: #d95f5f;
	}
}

:root[data-theme="dark"] {
	color-scheme: dark;

	--rona-page: #0f0f11;
	--rona-surface: #1f1f25;
	--rona-surface-2: #16161a;
	--rona-surface-3: #26262d;
	--rona-border: #2d2d35;
	--rona-border-soft: #303039;
	--rona-border-hair: #2a2a31;
	--rona-text: #ececee;
	--rona-text-muted: #a3a7ae;
	--rona-text-faint: #9a9ea5;
	--rona-outline: #3a3a44;
	--rona-hero: linear-gradient(135deg, #1a1a1f 0%, #0f0f11 58%);
	--rona-shadow-strength: 2.2;

	--wp--preset--color--paper: #16161a;
	--wp--preset--color--line: #2d2d35;
	--wp--preset--color--ink: #ececee;
	--wp--preset--color--muted: #a3a7ae;
	--wp--preset--color--black: #1a1a20;
	--wp--preset--color--black-deep: #141418;
	--wp--preset--color--orange-dark: #ff8f33;
	--wp--preset--gradient--hero: var(--rona-hero);

	--rona-stock-in: #5fd68c;
	--rona-stock-in-dot: #35c46c;
	--rona-stock-low: #f0b357;
	--rona-stock-low-dot: #e08600;
	--rona-stock-out: #f08c8c;
	--rona-stock-out-dot: #d95f5f;
}

/* Die Schlagschatten des hellen Entwurfs verschwinden auf dunklem Grund.
   Dort uebernimmt eine feine Kante die Trennung. */
:root[data-theme="dark"] .rona-card,
:root[data-theme="dark"] .rona-contact-card,
:root[data-theme="dark"] .rona-benefits {
	border: 1px solid var(--rona-border);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .rona-card,
	:root:not([data-theme="light"]) .rona-contact-card,
	:root:not([data-theme="light"]) .rona-benefits {
		border: 1px solid var(--rona-border);
	}
}

/* ===========================================================================
   1. Grundlagen
   ======================================================================== */

html {
	scroll-behavior: smooth;
	/* Sticky Header beim Sprung zu Ankern nicht ueberdecken */
	scroll-padding-top: calc(var(--wp--custom--header--height) + 16px);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body { overflow-x: hidden; }

img, video { max-width: 100%; height: auto; }

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

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	left: 16px; top: 16px;
	z-index: 999;
	width: auto; height: auto;
	clip-path: none;
	padding: 12px 18px;
	background: var(--wp--preset--color--black);
	color: #fff;
	border-radius: 10px;
	font-weight: 800;
}

/* ===========================================================================
   2. Infoleiste + Sticky Header
   ======================================================================== */

.rona-topbar {
	background: var(--wp--preset--color--black);
	color: #fff;
	font-size: 13px;
	letter-spacing: 0.02em;
}
.rona-topbar a { color: #fff; }
.rona-topbar strong { color: var(--wp--preset--color--orange-light); }

.rona-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--rona-page) 94%, transparent);
	border-bottom: 1px solid var(--rona-border);
	transition: box-shadow 0.25s ease, background 0.25s ease;
}
@supports (backdrop-filter: blur(18px)) {
	.rona-header { backdrop-filter: blur(18px); }
}
/* Sichtbarer Schatten, sobald gescrollt wurde (Klasse setzt das Theme-Skript) */
.rona-header.is-scrolled {
	box-shadow: 0 10px 30px rgba(0, 0, 0, calc(0.08 * var(--rona-shadow-strength)));
	background: color-mix(in srgb, var(--rona-page) 98%, transparent);
}



.rona-header .wp-block-navigation {
	font-size: 14px;
	font-weight: 750;
}
.rona-header .wp-block-navigation .wp-block-navigation-item__content {
	position: relative;
	text-decoration: none;
}
.rona-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: -8px;
	height: 2px;
	background: var(--wp--preset--color--orange);
	transition: right 0.2s ease;
}
.rona-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.rona-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after {
	right: 0;
}

/* Buttons im Header kompakter */
.rona-header .wp-block-button__link { padding: 12px 18px; }

/* ===========================================================================
   3. Buttons - Varianten
   ======================================================================== */

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	text-decoration: none;
}
.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Umrandeter Button (Block-Stil "Umrandet") */
.wp-block-button.is-style-rona-outline .wp-block-button__link {
	background: var(--rona-surface);
	color: var(--rona-text);
	border-color: var(--rona-outline);
}
.wp-block-button.is-style-rona-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--orange);
	background: var(--rona-surface);
	color: var(--rona-text);
}
/* Auf dunklem Grund */
.has-black-background-color .wp-block-button.is-style-rona-outline .wp-block-button__link,
.rona-dark .wp-block-button.is-style-rona-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
}

/* Breiter Button in Karten */
.wp-block-button.is-style-rona-block .wp-block-button__link {
	width: 100%;
	border-radius: var(--wp--custom--radius--small);
	padding: 13px 18px;
}

/* ===========================================================================
   4. Wiederkehrende Textbausteine
   ======================================================================== */

/* Kleiner Vorlauftext ueber Ueberschriften */
.rona-kicker {
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--orange-dark);
	margin-bottom: 12px;
}

/* Vorlauftext mit Strich (Hero) */
.rona-eyebrow {
	/* Block statt inline-flex: ein inline-flex-Element sitzt auf der
	   Textgrundlinie, die Zeilenhoehe schoebe es um ein paar Pixel nach
	   unten. Oben im Hero soll es buendig mit dem Bild daneben stehen.
	   width: fit-content erhaelt die Breite nach Inhalt. */
	display: flex;
	width: fit-content;
	max-width: 100%;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--orange-dark);
	font-weight: 900;
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.rona-eyebrow::before {
	content: "";
	width: 34px;
	height: 3px;
	background: var(--wp--preset--color--orange);
	flex: none;
}

/* Serif-Kursiv-Akzent in Ueberschriften */
.rona-accent {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 500;
	font-style: italic;
	color: var(--wp--preset--color--orange-dark);
	letter-spacing: -0.03em;
}

/* Aufzaehlung mit orangem Punkt */
.rona-dots { list-style: none; padding: 0; margin: 0; }
.rona-dots li,
.rona-dotted {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 800;
	color: var(--rona-text-muted);
}
.rona-dots li::before,
.rona-dotted::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--orange);
	flex: none;
}

/* Chef-Zitat im Hero: Bild mit Zitat darueber.
   Die Verlaufsabdeckung und das Verhalten beim Ueberfahren kommen von
   .rona-cover-card, hier steht nur, was fuer diese eine Stelle gilt.
   Zwei Klassen, damit Breite und Format die Vorgaben von
   .rona-cover-card sicher stechen - auch im schmalen Fenster. Die
   Eckenrundung kommt von dort und bleibt wie bei den Kategoriekacheln. */
.rona-cover-card.rona-chef {
	width: 83%;
	aspect-ratio: 1;
	min-height: 0;
}

/* Der Cover-Block stellt seinen Inhalt selbst mittig. Hier soll er
   waagerecht mittig stehen, senkrecht aber fast am unteren Rand. */
.rona-cover-card.rona-chef > .wp-block-cover__inner-container {
	align-self: flex-end;
	width: 100%;
}
.rona-chef-zitat {
	width: fit-content;
	max-width: 100%;
	align-self: center;
}

/* Daumen hoch im Kreis, links neben dem Satz. Der Kreis traegt die
   Markenfarbe als Hintergrund und folgt ihr, wenn sie sich aendert;
   nur das Zeichen selbst ist fest weiss. */
.rona-chef-zitat::before {
	content: "";
	flex: none;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--orange);
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23ffffff%22%3E%3Crect%20x%3D%222.6%22%20y%3D%2210.4%22%20width%3D%223.9%22%20height%3D%2210.2%22%20rx%3D%220.9%22%2F%3E%3Cpath%20d%3D%22M8.2%2020.6V11.3c0-.36.08-.71.24-1.03l3.3-6.72c.28-.57%201-.78%201.54-.45.62.38%201%201.06%201%201.79v3.93h4.42c1.3%200%202.26%201.2%201.98%202.47l-1.5%206.8c-.2.95-1.05%201.63-2.02%201.63H8.2z%22%2F%3E%3C%2Fsvg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 30px 30px;
}
.rona-chef-spruch {
	margin: 0;
	font-size: 22px;
	line-height: 1.35;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.rona-chef-name {
	margin: 0;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.03em;
}

/* Kleingedrucktes in Karten */
.rona-micro {
	color: var(--rona-text-faint);
	font-size: 12px;
}

/* ===========================================================================
   5. Karten mit Bildhintergrund (Kategorien)
   ======================================================================== */

.rona-cover-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--large);
	min-height: 365px;
	display: flex;
}
.rona-cover-card > .wp-block-cover__image-background,
.rona-cover-card img {
	transition: transform 0.5s ease;
}
.rona-cover-card:hover > .wp-block-cover__image-background,
.rona-cover-card:hover img {
	transform: scale(1.04);
}
.rona-cover-card a { text-decoration: none; }

/* Dunkle Verlaufsabdeckung von unten.
   Der Verlauf traegt seine Transparenz selbst, deshalb muss die
   Deckkraft der Abdeckung auf 1 - sonst verwaessert WordPress ihn
   ueber die Klasse has-background-dim-40 auf 40 Prozent und die
   weisse Schrift wird auf hellen Bildern unlesbar. */
.rona-cover-card .wp-block-cover__background,
.rona-gradient-bottom::after {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.05) 68%) !important;
	opacity: 1 !important;
}

/* ===========================================================================
   6. Produkt- / Angebotskarten
   ======================================================================== */

.rona-card {
	background: var(--rona-surface);
	border: 1px solid var(--rona-border-soft);
	border-radius: var(--wp--custom--radius--medium);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.rona-card:hover {
	box-shadow: var(--wp--preset--shadow--card);
	transform: translateY(-2px);
}
.rona-card > figure,
.rona-card .rona-card__media {
	margin: 0;
	position: relative;
	background: var(--rona-surface-3);
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.rona-card > figure img,
.rona-card .rona-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rona-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
}
.rona-card__body > :last-child { margin-top: auto; }

/* Preisangabe */
.rona-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}
.rona-price strong {
	font-size: 28px;
	letter-spacing: -0.03em;
	line-height: 1;
}
.rona-price del {
	color: var(--rona-text-faint);
	font-size: 13px;
}
.rona-price .rona-price__unit {
	font-size: 13px;
	color: var(--wp--preset--color--muted);
	font-weight: 700;
}

/* Abzeichen oben links auf dem Bild */
.rona-badge {
	position: absolute;
	left: 14px; top: 14px;
	z-index: 2;
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--black);
	border-radius: var(--wp--custom--radius--pill);
	padding: 8px 11px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.rona-badge--sold {
	background: #d8d2c6;
	color: #4a4a4a;
}

/* Verfuegbarkeit */
.rona-stock {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 800;
}
.rona-stock::before {
	content: "";
	width: 9px; height: 9px;
	border-radius: 50%;
	flex: none;
}
.rona-stock--in { color: var(--rona-stock-in); }
.rona-stock--in::before { background: var(--rona-stock-in-dot); }
.rona-stock--low { color: var(--rona-stock-low); }
.rona-stock--low::before { background: var(--rona-stock-low-dot); }
.rona-stock--out { color: var(--rona-stock-out); }
.rona-stock--out::before { background: var(--rona-stock-out-dot); }

/* Technische Daten als Definitionsliste */
.rona-specs {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
	margin: 0;
	font-size: 14px;
}
.rona-specs dt { color: var(--rona-text-muted); }
.rona-specs dd { margin: 0; font-weight: 700; }

/* ===========================================================================
   7. Vorteilsleiste (dunkler Balken, ueberlappt den Hero)
   ======================================================================== */

.rona-benefits {
	background: var(--wp--preset--color--black);
	color: #fff;
	border-radius: var(--wp--custom--radius--large);
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--soft);
}
.rona-benefits > .wp-block-column,
.rona-benefits > div {
	padding: 27px 28px;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.rona-benefits > :last-child { border-right: 0; }
.rona-benefits strong { display: block; font-size: 16px; margin-bottom: 5px; }
.rona-benefits p { color: #bdbdbd; font-size: 13px; margin: 0; }
.rona-benefits-wrap { margin-top: -24px; position: relative; z-index: 2; }

/* ===========================================================================
   8. Dunkle Sektion (Handwerker & Gewerbe)
   ======================================================================== */

.rona-dark { background: var(--wp--preset--color--black); color: #fff; }
.rona-dark :where(h1, h2, h3, h4, h5, h6) { color: #fff; }
.rona-dark p { color: #c7c7c7; }
.rona-dark .rona-kicker { color: var(--wp--preset--color--orange-light); }

/* Die Punkte der Aufzaehlung wuerden neben den Kacheln stehen. */
.rona-tile-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rona-tile-list > * {
	padding: 18px;
	border-radius: var(--wp--custom--radius--medium);
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	font-weight: 800;
	margin: 0;
}

/* ===========================================================================
   9. Kontaktkarte, Oeffnungszeiten
   ======================================================================== */

.rona-contact-card {
	background: var(--rona-surface);
	border-radius: var(--wp--custom--radius--xlarge);
	padding: 38px;
	box-shadow: var(--wp--preset--shadow--soft);
}
.rona-contact-row {
	padding: 17px 0;
	border-top: 1px solid var(--rona-border-hair);
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin: 0;
}
.rona-contact-row > span:first-child,
.rona-contact-row dt { color: var(--rona-text-faint); }
.rona-contact-row strong,
.rona-contact-row dd { margin: 0; text-align: right; font-weight: 700; }

/* Kontaktseite: beide Spalten gleich hoch.
   Die Spalten selbst sind es schon - sie sind Flex-Elemente und
   strecken sich. Nur ihr Inhalt tat es nicht. Die Adresskarte behaelt
   ihre Hoehe, das Bild darunter nimmt, was uebrig bleibt. */
@media (min-width: 782px) {
	.rona-kontakt-spalten > .wp-block-column:first-child {
		display: flex;
		flex-direction: column;
	}
	.rona-kontakt-bild {
		flex: 1;
		/* Bleibt rechts wenig Text, soll das Bild nicht zum Streifen
		   zusammenfallen. */
		min-height: 200px;
	}
	.rona-kontakt-bild img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

/* ===========================================================================
   10. Galerie
   ======================================================================== */

.rona-gallery.wp-block-gallery {
	gap: 16px;
}
.rona-gallery .wp-block-image,
.rona-gallery figure {
	border-radius: var(--wp--custom--radius--medium);
	overflow: hidden;
	background: var(--rona-surface-3);
}
.rona-gallery img { transition: transform 0.4s ease; }
.rona-gallery figure:hover img { transform: scale(1.035); }

/* ===========================================================================
   11. Fussbereich
   ======================================================================== */

/* Der Fussbereich schliesst direkt an das an, was ueber ihm steht.
   Sonst setzt WordPress zwischen die Template-Teile den allgemeinen
   Blockabstand aus theme.json - zwischen dem orangenen Aufruf und dem
   dunklen Fussbereich waere das ein weisser Streifen von 24 Pixeln. */
.wp-site-blocks > .wp-block-template-part:has(> .rona-footer) {
	margin-block-start: 0;
}

.rona-footer { background: var(--wp--preset--color--black-deep); color: #fff; }
.rona-footer p,
.rona-footer a,
.rona-footer li { color: #aaa; font-size: 14px; line-height: 1.7; }
.rona-footer a:hover { color: #fff; }
.rona-footer :where(h2, h3, h4) {
	color: #fff;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin: 0 0 14px;
	font-weight: 800;
}
/* Der Fussbereich ist in beiden Modi dunkel und bekommt daher fest die
   helle Logofassung - der weisse Kasten von frueher entfaellt. */
.rona-footer .rona-logo { margin-bottom: 18px; }
.rona-footer-legal {
	border-top: 1px solid #222;
	padding-top: 18px;
	color: #777;
	font-size: 12px;
}
.rona-footer .wp-block-navigation { font-size: 14px; }

/* ===========================================================================
   12. Mobile Aktionsleiste (Anrufen / WhatsApp / Route)
   ======================================================================== */

.rona-mobilebar { display: none; }

@media (max-width: 781px) {
	.rona-mobilebar {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		position: fixed;
		z-index: 80;
		left: 10px; right: 10px;
		bottom: 10px;
		background: var(--wp--preset--color--black);
		border-radius: var(--wp--custom--radius--medium);
		padding: 7px;
		box-shadow: 0 15px 45px rgba(0, 0, 0, 0.28);
	}
	.rona-mobilebar a {
		color: #fff;
		text-align: center;
		padding: 12px 4px;
		font-size: 12px;
		font-weight: 900;
		border-right: 1px solid #2c2c2c;
		text-decoration: none;
	}
	.rona-mobilebar a:last-child { border-right: 0; color: var(--wp--preset--color--orange-light); }
	body { padding-bottom: 76px; }
}

/* ===========================================================================
   13. Responsive Anpassungen
   ======================================================================== */

@media (max-width: 1024px) {
	.rona-header .rona-logo { height: 66px; }
}

@media (max-width: 781px) {
	html { scroll-padding-top: calc(var(--wp--custom--header--height-mobile) + 12px); }

	.rona-topbar { font-size: 12px; }
	.rona-topbar .rona-topbar__hide-mobile { display: none; }
	.rona-topbar p { font-size: 12px !important; }

	/* Anrufen und WhatsApp stehen unten in der festen Leiste - im Kopf
	   würden sie den klebenden Bereich unnötig hoch machen. */
	.rona-header .wp-block-buttons { display: none; }
	.rona-header .rona-logo { height: 56px; }
	.rona-header .wp-block-group { min-height: 0 !important; }

	.rona-benefits > .wp-block-column,
	.rona-benefits > div {
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}
	.rona-benefits > :last-child { border-bottom: 0; }
	.rona-benefits-wrap { margin-top: -12px; }

	.rona-tile-list { grid-template-columns: 1fr; }

	.rona-contact-card { padding: 25px; }

	.rona-cover-card { min-height: 320px; }

	/* Im Quadrat bleibt neben dem Kreis zu wenig Platz: bei 22 Pixeln
	   lief das Zitat unten aus dem Bild heraus. */
	.rona-chef-spruch { font-size: 18px; }
	.rona-chef-zitat::before {
		width: 48px;
		height: 48px;
		background-size: 24px 24px;
	}

	.rona-specs { grid-template-columns: 1fr; gap: 2px 0; }
	.rona-specs dd { margin-bottom: 8px; }

	.rona-contact-row { display: block; }
	.rona-contact-row strong,
	.rona-contact-row dd { text-align: left; display: block; margin-top: 4px; }
}

/* Spalten auf Mobilgeraeten wirklich stapeln, auch wenn "nicht stapeln" gesetzt ist */
@media (max-width: 599px) {
	.rona-stack-mobile.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap !important;
	}
}

/* ===========================================================================
   14. Anfragen: Knoepfe, Formular, Overlay

   Auf dem Telefon ist WhatsApp der kuerzeste Weg, am Schreibtisch nicht.
   Beide Knoepfe stehen deshalb in der Seite; welcher zu sehen ist,
   entscheidet sich hier an der Fensterbreite und nicht in JavaScript. So
   steht schon in der ausgelieferten Seite fest, was erscheint, und ein
   Zwischenspeicher darf sie unveraendert an alle weitergeben.
   ======================================================================== */

.rona-anfrage .wp-block-button { width: 100%; }

/* Vorgabe ist das Formular - die Breite des Fensters schaltet um. */
.rona-anfrage__whatsapp { display: none; }

@media (max-width: 781px) {
	.rona-anfrage__whatsapp { display: block; }
	.rona-anfrage__formular { display: none; }
}

/* --- Das Formular selbst ----------------------------------------------- */

.rona-form__paar {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.rona-feld { margin: 0 0 14px; }

.rona-feld label {
	display: block;
	font-size: 13px;
	font-weight: 800;
	margin-bottom: 5px;
	color: var(--rona-text);
}

.rona-feld__opt {
	font-weight: 600;
	color: var(--rona-text-faint);
}

.rona-feld input[type="text"],
.rona-feld input[type="email"],
.rona-feld input[type="tel"],
.rona-feld textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	font: inherit;
	font-size: 15px;
	color: var(--rona-text);
	background: var(--rona-page);
	border: 1px solid var(--rona-outline);
	border-radius: var(--wp--custom--radius--small);
}

.rona-feld textarea {
	min-height: 120px;
	resize: vertical;
}

.rona-feld input:focus-visible,
.rona-feld textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--orange);
	outline-offset: 1px;
	border-color: transparent;
}

/* Einwilligung: Kaestchen neben dem Text, nicht darueber. */
.rona-feld--einwilligung {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	line-height: 1.5;
	color: var(--rona-text-muted);
}
.rona-feld--einwilligung label {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
}
.rona-feld--einwilligung .wpcf7-list-item { margin: 0; }
.rona-feld--einwilligung input { margin-top: 2px; }

/* Der Verweis auf die Datenschutzerklaerung traegt die Farbe des
   Kleingedruckten - ohne Unterstreichung waere er nicht als Link zu
   erkennen. */
.rona-feld--einwilligung a {
	color: inherit;
	text-decoration: underline;
}

/* Die Falle fuer Formularroboter. Sie darf nicht display:none sein -
   genau das ueberspringen manche von ihnen. Stattdessen steht sie
   ausserhalb des Sichtfelds. */
.rona-falle {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rona-form__senden { margin: 18px 0 0; }
.rona-form__senden input[type="submit"] {
	width: 100%;
	cursor: pointer;
}

/* Contact Form 7 sperrt den Knopf, solange Pflichtfelder fehlen. Ohne
   diese Regel saehe er dabei aus wie immer, und ein Klick bliebe
   wortlos wirkungslos. */
.rona-form__senden input[type="submit"]:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Meldungen und Hinweise von Contact Form 7 */
.wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 14px;
	border-width: 1px;
	border-radius: var(--wp--custom--radius--small);
	font-size: 14px;
	line-height: 1.5;
}
.wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 13px;
}

/* --- Das Overlay ------------------------------------------------------- */

.rona-dialog {
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--rona-surface);
	color: var(--rona-text);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
	overflow: auto;
}

.rona-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }

.rona-dialog__kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px 0;
}

.rona-dialog__titel {
	margin: 0;
	font-size: 22px;
}

.rona-dialog__schliessen {
	flex: none;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--rona-surface-3);
	color: var(--rona-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.rona-dialog__inhalt { padding: 18px 24px 24px; }

@media (max-width: 599px) {
	.rona-form__paar { grid-template-columns: 1fr; }
}

/* ===========================================================================
   15. Logo und Farbmodus-Umschalter
   ======================================================================== */

.rona-logo-wrap { line-height: 0; }
.rona-logo-link { display: inline-block; }
.rona-logo {
	display: block;
	height: var(--rona-logo-h, 78px);
	width: auto;
	max-width: 100%;
}

/* Umschaltung per CSS statt per Skript: so blitzt beim Laden nie die
   falsche Fassung auf, und ohne JavaScript stimmt es ebenfalls.
   Die Anzeigeart steht bewusst nur hier und nicht in den ortsgebundenen
   Regeln weiter oben - zwei Klassen wuerden diese Ausblendung schlagen. */
.rona-logo--dark { display: none; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .rona-logo--light { display: none; }
	:root:not([data-theme="light"]) .rona-logo--dark { display: block; }
}

:root[data-theme="dark"] .rona-logo--light { display: none; }
:root[data-theme="dark"] .rona-logo--dark { display: block; }

/* Schaltflaeche in der Infoleiste */
.rona-theme-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	border-radius: var(--wp--custom--radius--pill);
	padding: 5px 12px;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.4;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.rona-theme-toggle:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.4);
}
.rona-theme-toggle .rona-icon {
	width: 15px;
	height: 15px;
	flex: none;
}

/* Sichtbar ist immer das Symbol des Modus, in den geschaltet wird. */
.rona-theme-toggle .rona-icon--sun,
.rona-theme-toggle .rona-theme-toggle__text--sun { display: none; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .rona-theme-toggle .rona-icon--moon,
	:root:not([data-theme="light"]) .rona-theme-toggle .rona-theme-toggle__text--moon { display: none; }
	:root:not([data-theme="light"]) .rona-theme-toggle .rona-icon--sun { display: block; }
	:root:not([data-theme="light"]) .rona-theme-toggle .rona-theme-toggle__text--sun { display: inline; }
}

:root[data-theme="dark"] .rona-theme-toggle .rona-icon--moon,
:root[data-theme="dark"] .rona-theme-toggle .rona-theme-toggle__text--moon { display: none; }
:root[data-theme="dark"] .rona-theme-toggle .rona-icon--sun { display: block; }
:root[data-theme="dark"] .rona-theme-toggle .rona-theme-toggle__text--sun { display: inline; }

@media (max-width: 781px) {
	.rona-theme-toggle { padding: 5px 9px; }
	.rona-theme-toggle__text { display: none !important; }
}

/* Bilder auf dunklem Grund leicht zurueckhaltender, damit sie nicht
   aus der Seite herausleuchten. */
:root[data-theme="dark"] .rona-card img,
:root[data-theme="dark"] .rona-gallery img { filter: brightness(0.92); }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .rona-card img,
	:root:not([data-theme="light"]) .rona-gallery img { filter: brightness(0.92); }
}

/* ===========================================================================
   16. Editor-Hilfen
   ======================================================================== */

.editor-styles-wrapper .rona-mobilebar { display: grid; }

/* Druckausgabe */
@media print {
	.rona-header, .rona-topbar, .rona-mobilebar, .rona-footer,
	.wp-block-navigation, .wp-block-button { display: none !important; }
	body { padding: 0; color: #000; }
}
