/*
Theme Name: Gartenplaner
Theme URI: https://garten.hadewin.de/
Author: Hadewin
Description: Schlankes Block-Theme im Look des Gartenplaners – Blattgrün, Erdbraun, Sonnengelb, Schrift Familjen Grotesk (lokal eingebunden).
Version: 0.2.0
Requires at least: 6.4
Tested up to: 6.8
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: gartenplaner-theme
*/

/* Ergänzungen, die theme.json nicht abdeckt */
.gp-kopf a { text-decoration: none; }
.gp-kopf .wp-block-navigation a:hover,
.gp-kopf .wp-block-navigation a:focus-visible { text-decoration: underline; text-underline-offset: .25em; }
.gp-kopf .wp-block-navigation .current-menu-item > a { text-decoration: underline; text-decoration-color: var(--wp--preset--color--sonne); text-decoration-thickness: 3px; text-underline-offset: .35em; }
.gp-karte { border: 1px solid var(--wp--preset--color--linie); border-radius: 14px; background: var(--wp--preset--color--karte); }
:where(.wp-site-blocks) :focus-visible { outline: 3px solid var(--wp--preset--color--sonne); outline-offset: 2px; }
.wp-block-button__link { transition: background-color .15s ease; }
@media (prefers-reduced-motion: reduce) { .wp-block-button__link { transition: none; } }
.gp-kopf .wp-block-navigation, .gp-kopf .wp-block-navigation a, .gp-kopf .wp-block-site-title a { color: #fff; }
.wp-block-column.gp-karte h3 { margin-top: 0; }

/* Formulare aus beliebigen Blöcken/Plugins (WordPress-Formularblock, Contact Form 7 …) im Theme-Look.
   :where() hält die Spezifität bei 0, damit Plugins mit eigenen Stilen nicht überschrieben werden. */
:where(.wp-site-blocks) :where(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]):not([type=range]), select, textarea) {
	box-sizing: border-box; width: 100%; max-width: 100%; font: inherit; font-size: 1rem; color: inherit;
	padding: .6rem .7rem; border: 1px solid #b9c4b5; border-radius: 8px; background: #fff; min-height: 2.75rem;
}
:where(.wp-site-blocks) :where(textarea) { min-height: 9rem; resize: vertical; }
:where(.wp-site-blocks) :where(input, select, textarea):focus-visible { outline: 3px solid var(--wp--preset--color--sonne); outline-offset: 1px; border-color: var(--wp--preset--color--gruen); }
:where(.wp-site-blocks) :where(input[type=submit], input[type=button], button:not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close):not([class*="components-"])) {
	font: inherit; font-weight: 600; color: #fff; background: var(--wp--preset--color--gruen);
	border: 0; border-radius: 10px; padding: .7rem 1.2rem; cursor: pointer; min-height: 2.75rem;
}
:where(.wp-site-blocks) :where(input[type=submit], input[type=button], button):hover { background: #24552f; }
:where(.wp-site-blocks) :where(label) { font-weight: 600; }

/* Fotos im einheitlichen „Gartenfoto“-Stil: runde Ecken wie die Karten, leiser Schatten, kleine Bildunterschrift */
.is-style-gp-foto { margin: 0; }
.is-style-gp-foto img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 1px 2px rgba(28,40,31,.08), 0 8px 22px rgba(28,40,31,.10); }
.is-style-gp-foto figcaption { margin: .55rem 0 0; font-size: var(--wp--preset--font-size--klein); color: var(--wp--preset--color--leise); text-align: left; }
.gp-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); }
.gp-kacheln-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gp-kacheln > * { margin: 0 !important; }
@media (max-width: 781px) { .gp-kacheln, .gp-kacheln-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Startseite: Erntefoto und hellgrüner Kopfbereich gehen ineinander über */
.gp-startbild { margin-bottom: 0; }
.gp-startbild + .gp-start-inhalt { margin-top: 0 !important; }
.gp-startbild + .gp-start-inhalt > .has-gruen-hell-background-color:first-child { margin-top: 0; padding-top: var(--wp--preset--spacing--50) !important; }
.gp-startbild .is-style-gp-foto img { aspect-ratio: 1240 / 563; object-fit: cover; }
@media (max-width: 600px) { .gp-startbild .is-style-gp-foto img { aspect-ratio: 16 / 10; } }
/* Über mich: rundes Porträt neben der Überschrift */
.gp-ich { gap: clamp(1rem, 3vw, 2rem); }
.gp-ich .gp-rund { width: clamp(110px, 22vw, 180px); flex: none; }
.gp-ich .gp-rund img { border-radius: 50%; border: 4px solid #fff; }
.gp-ich .wp-block-post-title { margin: 0; }
