/*
Theme Name: Kfz Michels
Theme URI: https://www.kfz-michels.de/
Template: twentytwentyfive
Author: Guse IT Solutions GmbH
Author URI: https://www.guse-it.com
Description: Child-Theme von Twenty Twenty-Five fuer den Kfz-Meisterbetrieb Michels. One-Pager, vollstaendig ueber den Block-Editor und den Site-Editor pflegbar. Keine externen Bibliotheken, keine Webfonts, keine Plugin-Abhaengigkeiten.
Version: 1.0.2
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kfz-michels
*/

/* ---------------------------------------------------------------
   Layout- und Detail-CSS, das theme.json nicht abdecken kann.
   Farben, Schriftgroessen und Abstaende kommen aus theme.json
   und sind dort (und im Editor unter Stile) zentral pflegbar.
--------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
}

:where(.wp-site-blocks) [id] {
	scroll-margin-top: 90px;
}

/* Kopfzeile: haftend, mit dezentem Trennstrich */
.site-header {
	z-index: 20;
	border-bottom: 1px solid var(--wp--preset--color--mk-border);
	background-color: var(--wp--preset--color--mk-bg);
}
.admin-bar .site-header {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.site-header .wp-block-site-logo img {
	display: block;
}

.site-header .wp-block-navigation a {
	text-decoration: none;
	font-weight: 600;
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
}
.site-header .wp-block-navigation a:hover {
	border-bottom-color: var(--wp--preset--color--mk-accent);
}

.call-btn .wp-block-button__link {
	white-space: nowrap;
}

/* Fusszeile */
.site-footer {
	border-top: 1px solid var(--wp--preset--color--mk-border);
}
.site-footer .wp-block-navigation a {
	text-decoration: none;
}
.site-footer .wp-block-navigation a:hover {
	text-decoration: underline;
}
.footer-copy {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--mk-text-muted);
}

/* Vertrauensleiste unter dem Hero */
.trust-strip {
	border-top: 1px solid var(--wp--preset--color--mk-border);
	border-bottom: 1px solid var(--wp--preset--color--mk-border);
}
.trust-item {
	border-left: 1px solid var(--wp--preset--color--mk-border);
	padding-inline-start: 1.25rem;
}
.trust-item:first-child {
	border-left: none;
	padding-inline-start: 0;
}
@media (max-width: 700px) {
	.trust-item {
		border-left: none;
		padding-inline-start: 0;
	}
}

/* Leistungen: Kachelraster mit Haarlinien statt Kartenschatten */
.service-grid {
	border: 1px solid var(--wp--preset--color--mk-border);
	background-color: var(--wp--preset--color--mk-border);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
}
@media (max-width: 860px) {
	.service-grid {
		grid-template-columns: 1fr !important;
	}
}
.service-grid > .service-card {
	background-color: var(--wp--preset--color--mk-surface);
	margin: 0;
}
.service-card .service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background-color: var(--wp--preset--color--mk-accent-tint);
	color: var(--wp--preset--color--mk-secondary);
}
.service-card .service-icon svg {
	width: 20px;
	height: 20px;
}

/* Team-Kacheln */
.team-card {
	background-color: var(--wp--preset--color--mk-surface);
	border: 1px solid var(--wp--preset--color--mk-border);
	box-shadow: 0 1px 2px rgba(28, 27, 25, 0.06), 0 8px 24px -12px rgba(28, 27, 25, 0.18);
	width: calc(25% - 0.9375rem);
	min-height: 20em;
	flex-grow: 0;
	flex-shrink: 0;
}
@media (max-width: 900px) {
	.team-card {
		width: calc(50% - 0.625rem);
	}
}
@media (max-width: 560px) {
	.team-card {
		width: 100%;
	}
}
.team-card h3 {
	min-height: 2.3em;
}
.team-card .role {
	min-height: 3.2em;
}
.team-card .years {
	min-height: 1.6em;
}
.team-card .team-photo {
	width: 96px;
	height: 96px;
	margin: 0;
	flex-shrink: 0;
	border-radius: 50%;
	overflow: hidden;
	background-color: var(--wp--preset--color--mk-bg);
	background-image: repeating-linear-gradient(135deg, var(--wp--preset--color--mk-border) 0 1px, transparent 1px 8px);
}
.team-card .team-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.team-card .role {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--mk-accent);
}
.team-card .years {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--mk-text-muted);
}

/* Kontakt-Plakette */
.contact-plate {
	position: relative;
	background-color: var(--wp--preset--color--mk-surface);
	border: 1px solid var(--wp--preset--color--mk-border);
}
.contact-plate::before,
.contact-plate::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--mk-rivet);
}
.contact-plate::before {
	top: 14px;
	right: 14px;
}
.contact-plate::after {
	bottom: 14px;
	right: 14px;
}
.hours-row {
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--wp--preset--color--mk-border);
	line-height: 1.5;
}
.hours-row:last-child {
	border-bottom: 0;
}
/* Anfahrtskarte (Block kfz-michels/anfahrtskarte) */
.osm-embed {
	border: 1px solid var(--wp--preset--color--mk-border);
	background-color: var(--wp--preset--color--mk-surface);
	overflow: hidden;
}
.osm-embed--empty {
	border-style: dashed;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--mk-text-muted);
	background-color: var(--wp--preset--color--mk-bg);
}
.osm-embed__placeholder-text {
	text-align: center;
	font-size: 0.78rem;
	padding-inline: 1rem;
	margin: 0;
}
.osm-embed__frame {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 0;
}
.osm-embed__link {
	display: block;
	margin: 0;
	padding: 0.5rem 0.75rem;
	font-size: 0.78rem;
	text-align: right;
	border-top: 1px solid var(--wp--preset--color--mk-border);
}
.osm-embed--editor .osm-embed__placeholder-text {
	padding-block: 1rem;
}

/* ---------------------------------------------------------------
   Dark Mode: folgt automatisch der Geraete-/Browser-Einstellung.
   "mk-accent-text" bleibt bewusst unveraendert, damit Text auf dem
   Akzent-Button (z. B. "Anrufen") in beiden Modi lesbar bleibt.
--------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
	:root {
		--wp--preset--color--mk-bg: #16181a;
		--wp--preset--color--mk-surface: #1f2224;
		--wp--preset--color--mk-text: #ece9e2;
		--wp--preset--color--mk-text-muted: #a7adaa;
		--wp--preset--color--mk-accent: #f0b84d;
		--wp--preset--color--mk-accent-tint: rgba(240, 184, 77, 0.16);
		--wp--preset--color--mk-secondary: #7fa3b2;
		--wp--preset--color--mk-border: #33383a;
		--wp--preset--color--mk-rivet: #40464a;
	}
}
