/*
Theme Name: Naturheilpraxis Gotzig
Description: Ruhiges, modernes Child-Theme für die Naturheilpraxis Petra Gotzig auf Basis von Twenty Twenty-Five. Ohne Animationen, Schriften lokal eingebunden.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
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: naturheilpraxis-gotzig
*/

/* ---------- Grundlagen ---------- */
html { scroll-behavior: auto; }
*, *::before, *::after { animation: none !important; }

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

/* Bilder in Inhalten weich abrunden */
.wp-block-image img,
.wp-block-gallery .wp-block-image img,
.wp-block-cover { border-radius: 14px; }
.wp-block-cover.alignfull { border-radius: 0; }
.wp-block-image figcaption { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* ---------- Header ---------- */
.nhp-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.nhp-header .wp-block-site-logo img,
.nhp-header .nhp-logo img { height: 78px; width: auto; }
.nhp-header .wp-block-navigation { font-size: 0.98rem; }
.nhp-header .wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 12px;
	padding: 0.4rem 0;
	box-shadow: 0 10px 30px rgba(31, 42, 36, 0.08);
	min-width: 280px !important;
}
.nhp-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.45rem 1.1rem; }
.nhp-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary); }
.nhp-header .current-menu-item > .wp-block-navigation-item__content,
.nhp-header .current-menu-ancestor > .wp-block-navigation-item__content { color: var(--wp--preset--color--primary); font-weight: 600; }

/* ---------- Kacheln ---------- */
.nhp-card { height: 100%; }
.nhp-card .wp-block-image { margin-bottom: 0; }
.nhp-card .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 14px 14px 0 0; }
.nhp-card-link a { text-decoration: none; font-weight: 600; }
.nhp-card-link a:hover { text-decoration: underline; }
.wp-block-columns.nhp-cards > .wp-block-column { display: flex; }
.wp-block-columns.nhp-cards > .wp-block-column > .nhp-card { flex: 1; }

/* ---------- Seiten-Kopf ---------- */
.nhp-page-head .wp-block-post-title { margin-top: 0; }

/* ---------- Kontaktformular (Contact Form 7) ---------- */
.wpcf7 label { display: block; font-weight: 600; font-size: 0.95rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	display: block;
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.75rem 0.9rem;
	font: inherit;
	font-weight: 400;
	color: var(--wp--preset--color--contrast);
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	box-sizing: border-box;
}
.wpcf7 textarea { min-height: 160px; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 1px; border-color: transparent; }
.wpcf7 input[type="submit"] {
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--wp--preset--color--primary);
	border: 0;
	border-radius: 999px;
	padding: 0.8rem 1.6rem;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--primary-dark); }
.wpcf7 form .wpcf7-response-output { border-radius: 10px; margin: 1rem 0 0; padding: 0.8rem 1rem; }
.wpcf7-spinner { vertical-align: middle; }

/* ---------- Footer ---------- */
.nhp-footer a { color: inherit; }
.nhp-footer .wp-block-navigation { gap: 0.4rem 1.4rem; }

/* ---------- Feinschliff ---------- */
.wp-site-blocks > footer,
.wp-site-blocks > main + * { margin-block-start: 0; }
.nhp-card h3 a { text-decoration: none; color: inherit; }
.nhp-card h3 a:hover { color: var(--wp--preset--color--primary); }

/* Lange Wörter in Überschriften (z.B. "Verbraucherstreitbeilegung") am Handy umbrechen */
h1, h2, h3, h4, .wp-block-post-title { hyphens: auto; overflow-wrap: break-word; }

/* Titelbild oben auf Behandlungsseiten: breit, aber nicht zu hoch */
.wp-block-post-content > .wp-block-image.alignwide img { aspect-ratio: 5 / 2; object-fit: cover; width: 100%; }
@media (max-width: 600px) {
	.wp-block-post-content > .wp-block-image.alignwide img { aspect-ratio: 4 / 3; }
}
/* Einzelbilder im Text nicht höher als 520px */
.wp-block-post-content > .wp-block-image:not(.alignwide):not(.alignfull):not(.is-resized) img { max-height: 520px; width: 100%; object-fit: cover; }
