/*
Theme Name: Engemann
Theme URI: https://www.steuerberatung-weinheim.de/
Description: Block-Theme für die Steuerkanzlei Julia Engemann. Farben, Schriften und Abstände liegen in theme.json und sind unter Design → Editor → Stile anpassbar; Header, Footer, Menüs und Kontaktband sind Template-Teile im Website-Editor. Alle Inhalte liegen in den Seiten.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
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: engemann
*/

/* Nur Layout-Feinheiten, die theme.json nicht abbilden kann. */

/* Header bleibt beim Scrollen sichtbar */
.site-header-wrap {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .site-header-wrap { top: var(--wp-admin--admin-bar--height, 32px); }

.site-topbar p { margin: 0; }
.site-topbar a { text-decoration: none; }
.site-topbar a:hover { text-decoration: underline; }

/* Navigation: dezente Unterstreichung statt Standard-Link */
.site-nav a { text-decoration: none; }
.site-nav .wp-block-navigation-item__content:hover,
.site-nav .current-menu-item > .wp-block-navigation-item__content,
.site-nav .current-menu-ancestor > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}
.site-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--border) !important;
	box-shadow: var(--wp--preset--shadow--soft);
	padding: 0.5rem 0;
	min-width: 290px !important;
}
.site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.55rem 1.1rem; }

/* Kopfbild der Unterseiten */
.page-hero .wp-block-post-title { margin: 0; max-width: 760px; }

/* Leistungs-Kacheln: ganze Kachel klickbar, sanfter Zoom */
.wp-block-cover.is-style-kachel {
	overflow: hidden;
	border-radius: 3px;
	box-shadow: var(--wp--preset--shadow--soft);
}
.wp-block-cover.is-style-kachel .wp-block-cover__image-background { transition: transform .6s ease; }
.wp-block-cover.is-style-kachel:hover .wp-block-cover__image-background { transform: scale(1.05); }
.wp-block-cover.is-style-kachel .wp-block-heading a { text-decoration: none; color: inherit; }
.wp-block-cover.is-style-kachel .wp-block-heading a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.wp-block-cover.is-style-kachel .kachel-mehr { opacity: .85; transition: opacity .3s; }
.wp-block-cover.is-style-kachel:hover .kachel-mehr { opacity: 1; }

/* Bilder in Textabschnitten */
.wp-block-image.is-style-rounded-shadow img,
.wp-block-media-text.is-style-rounded-shadow .wp-block-media-text__media img {
	border-radius: 3px;
	box-shadow: var(--wp--preset--shadow--soft);
}

/* Kontaktband */
.cta-band .datev-badge { margin-top: 1.5rem; }

/* Tabellen (Impressum) */
.wp-block-table.is-style-stripes td:first-child { font-weight: 600; width: 34%; vertical-align: top; }

/* Kontaktformular (Contact Form 7) im Stil des Themes */
.wpcf7 label { display: block; font-weight: 600; font-size: var(--wp--preset--font-size--small); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	margin-top: .35rem;
	padding: .75rem .9rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	background: var(--wp--preset--color--base);
	font: inherit;
	font-weight: 400;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 1px; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-list-item label { font-weight: 400; }
.wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border: 0;
	border-radius: 2px;
	padding: .85rem 1.6rem;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--primary-dark); }

@media (max-width: 781px) {
	.site-topbar .topbar-address { display: none; }
	.site-topbar .wp-block-group { justify-content: center; }
}

/* Startseite: Kopfbereich (Medien & Text, Foto rechts) */
.home-hero { min-height: 620px; }
.home-hero .wp-block-media-text__content {
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--60) var(--wp--preset--spacing--60) max(var(--wp--preset--spacing--40), calc((100vw - 1200px) / 2));
}
.home-hero .wp-block-media-text__content > * { max-width: 520px; }
.home-hero .hero-title { margin-top: .5rem; }
@media (max-width: 600px) {
	.home-hero { min-height: 0; }
	.home-hero.is-stacked-on-mobile .wp-block-media-text__media { min-height: 340px; grid-row: 1; }
	.home-hero.is-stacked-on-mobile .wp-block-media-text__content { grid-row: 2; padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); }
}

/* DATEV-Siegel auf dunklem Grund lesbar */
.datev-badge img { background: #fff; padding: .5rem .75rem; border-radius: 3px; box-sizing: content-box; }
.home-hero .datev-badge { margin-top: 2rem; }

/* Kopfbild der Unterseiten an der Inhaltsbreite ausrichten */
.page-hero .wp-block-cover__inner-container { width: 100% !important; max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }
.page-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; }

/* Kein Abstand zwischen den Template-Teilen (Kontaktband, Footer) */
.wp-site-blocks > * + * { margin-block-start: 0; }
