/*
Theme Name: Gentle Greens
Description: Block-Theme für Gentle Greens – Microgreens aus Berlin. Passend zum Plugin „Microgreens Abo“.
Version: 1.5.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Author: Gentle Greens
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gentle-greens
*/

/* ---------- Grundlagen ---------- */
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--wp--preset--color--lime); outline-offset: 2px; }

/* ---------- Kopf ---------- */
.gg-header { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--mist); }
.gg-header a { color: var(--wp--preset--color--mist); text-decoration: none; }
.gg-header .wp-block-site-title a { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.01em; }
.gg-header .wp-block-navigation a { padding: 10px 6px; font-weight: 500; }
.gg-header .wp-block-navigation .wp-block-navigation-item:last-child a,
.gg-header .gg-nav-cta a { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--ink); border-radius: 999px; padding: 10px 18px; font-weight: 600; }
.gg-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--mist); }
.gg-logo-mark { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Abschnitte ---------- */
.gg-section { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.gg-dark { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--mist); }
.gg-dark p { color: var(--wp--preset--color--sage-light); }
.gg-soft { background: var(--wp--preset--color--sage-soft); }
.gg-eyebrow { color: var(--wp--preset--color--lime); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.875rem !important; margin-bottom: 0 !important; }
.gg-soft .gg-eyebrow, .gg-card .gg-eyebrow { color: var(--wp--preset--color--leaf); }
.gg-lead { font-size: 1.2rem !important; line-height: 1.55; max-width: 36rem; }

/* Hero */
.gg-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; color: var(--wp--preset--color--mist); margin-top: 0.5rem; }
.gg-hero .wp-block-columns { align-items: center; gap: 48px; }
.gg-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gg-tile { border-radius: 20px; height: 200px; display: flex; align-items: flex-end; padding: 20px; box-sizing: border-box; font-size: 0.875rem; overflow: hidden; }
.gg-tile img { width: 100%; height: 100%; object-fit: cover; }
.gg-tile.has-image { padding: 0; }
.gg-tile-1 { background: #2C5039; color: #D9E4D6; }
.gg-tile-2 { background: #C8E86B; color: #17261C; }
.gg-tile-3 { background: #8C3B5E; color: #F6E9EF; }
.gg-tile-4 { background: #3F7A52; color: #FFFFFF; }

/* Karten */
.gg-card { background: #fff; border-radius: 20px; padding: 28px; height: 100%; box-sizing: border-box; }
.gg-cards { gap: 24px !important; }
.gg-cards > .wp-block-column { display: flex; flex-direction: column; }
.gg-step-number { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 2.5rem !important; color: var(--wp--preset--color--leaf); margin: 0 !important; line-height: 1; }
.gg-card h3 { margin: 0.75rem 0 0.5rem; font-size: 1.375rem; }
.gg-card p { color: #3E4F43; line-height: 1.55; margin: 0; }
.gg-dark .gg-card p { color: #3E4F43; }

/* Sorten */
.gg-sorten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.gg-sorte { background: #fff; border-radius: 20px; overflow: hidden; }
.gg-sorte-bild { height: 140px; display: flex; align-items: flex-end; padding: 16px; box-sizing: border-box; font-size: 0.8125rem; }
.gg-sorte-text { padding: 22px; }
.gg-sorte-text h3 { margin: 0 0 6px; font-size: 1.375rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gg-sorte-text p { margin: 0; color: #3E4F43; line-height: 1.5; }
.gg-badge { font-family: var(--wp--preset--font-family--body); font-size: 0.8125rem; font-weight: 600; background: #FBEFD3; color: #6B4A00; padding: 4px 10px; border-radius: 999px; }
.gg-badge-lime { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--ink); }

/* Preise */
.gg-price { font-family: var(--wp--preset--font-family--display); font-size: clamp(2rem, 3.6vw, 3rem) !important; font-weight: 800; line-height: 1.05 !important; margin: 0.5rem 0 0 !important; white-space: nowrap; }
.gg-price-unit { font-weight: 600; margin-top: 2px !important; }
.gg-price-card { display: flex; flex-direction: column; gap: 10px; }
.gg-price-card .wp-block-buttons { margin-top: auto; padding-top: 12px; }
.gg-price-card.is-featured { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--mist); }
.gg-price-card.is-featured p { color: var(--wp--preset--color--sage-light); }
.gg-price-card.is-featured .gg-price { color: var(--wp--preset--color--mist); }

/* Buttons */
.wp-block-button .wp-block-button__link { border-radius: 999px; font-weight: 600; padding: 14px 26px; }
.gg-btn-outline .wp-block-button__link { background: transparent !important; color: var(--wp--preset--color--forest) !important; border: 1.5px solid var(--wp--preset--color--forest); }
.gg-btn-outline-light .wp-block-button__link { background: transparent !important; color: var(--wp--preset--color--mist) !important; border: 1.5px solid #6E8F78; }
.gg-btn-lime .wp-block-button__link { background: var(--wp--preset--color--lime) !important; color: var(--wp--preset--color--ink) !important; }
.gg-btn-full, .gg-btn-full .wp-block-button__link { width: 100%; text-align: center; }

/* Gastro-Box */
.gg-box { background: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 48px); }
.gg-box .wp-block-columns { align-items: center; }

/* Seiten */
.gg-page-title { padding-top: clamp(40px, 6vw, 72px); }
.gg-page-content { padding-bottom: clamp(56px, 8vw, 96px); }
.gg-placeholder { background: #FBEFD3; color: #6B4A00; padding: 14px 16px; border-radius: 12px; }

/* Fuß */
.gg-footer { background: #142619; color: #B9C8BC; font-size: 0.9375rem; }
.gg-footer a { color: #B9C8BC; }
.gg-footer a:hover { color: #fff; }
.gg-footer .wp-block-site-title a { color: var(--wp--preset--color--mist); text-decoration: none; font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.125rem; }

/* Plugin-Formular passend zum Theme (nur der Haupt-Button, nicht die hellen Zweit-Buttons) */
.mg-abo-button:not(.mg-abo-button--secondary) { background: var(--wp--preset--color--forest); color: #fff; }

@media (max-width: 781px) {
	.gg-tile { height: 150px; }
	.gg-header .wp-block-navigation .wp-block-navigation-item:last-child a { display: inline-block; }
}

/* Blatt-Symbol vor dem Seitentitel */
.gg-header .wp-block-site-title a::before {
	content: "";
	display: inline-block;
	width: 30px;
	height: 30px;
	margin-right: 10px;
	vertical-align: -7px;
	background-color: var(--wp--preset--color--lime);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21V11'/%3E%3Cpath d='M12 11C12 7 9 4 4 4c0 4 3 7 8 7Z'/%3E%3Cpath d='M12 13c0-4 3-7 8-7 0 4-3 7-8 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21V11'/%3E%3Cpath d='M12 11C12 7 9 4 4 4c0 4 3 7 8 7Z'/%3E%3Cpath d='M12 13c0-4 3-7 8-7 0 4-3 7-8 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Sortenliste aus dem Plugin ([microgreens_sorten]) */
.gg-sorte-bild-1 { background: #C8E86B; color: #17261C; }
.gg-sorte-bild-2 { background: #2C5039; color: #D9E4D6; }
.gg-sorte-bild-3 { background: #B8426B; color: #FFFFFF; }
.gg-sorte-bild-4 { background: #3F7A52; color: #FFFFFF; }
.gg-sorte-bild-5 { background: #5B2A4A; color: #F6E9EF; }
.gg-sorte-bild-6 { background: #F2D46B; color: #17261C; }
.gg-sorte-preis { margin-left: auto; font-family: var(--wp--preset--font-family--display); font-weight: 800; color: var(--wp--preset--color--forest); }
.gg-sorte-text h3 .gg-badge { margin-left: auto; }
.gg-sorte-text .gg-sorte-einheit { font-size: 0.8125rem; color: #5a6a5e; margin-top: 6px; }
.gg-cards.wp-block-columns { flex-wrap: wrap !important; }
.gg-cards > .wp-block-column { flex: 1 1 230px !important; }
.gg-beispiel { color: #3E4F43; font-size: 0.9375rem; margin-top: 8px !important; }

/* Besser lesbare Überzeile in hellen Kästen (z. B. „Für Restaurants & Cafés“) */
.gg-box .gg-eyebrow, .gg-soft .gg-eyebrow, .gg-card .gg-eyebrow {
	color: var(--wp--preset--color--forest);
	font-size: 1.125rem !important;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
}

/* ---------- 1.5: Warenkorb im Kopf, Gastro hervorgehoben, Hinweis „Ohne Erde“ ---------- */
.gg-header-rechts { gap: 18px; }
.gg-header .mg-cart-link { color: var(--wp--preset--color--mist); }
.gg-header .mg-cart-link:hover .mg-cart-label { text-decoration: underline; text-underline-offset: 3px; }

.gg-sorte-bild-link .gg-sorte-bild-1, .gg-sorte-bild-link .gg-sorte-bild-2, .gg-sorte-bild-link .gg-sorte-bild-3,
.gg-sorte-bild-link .gg-sorte-bild-4, .gg-sorte-bild-link .gg-sorte-bild-5, .gg-sorte-bild-link .gg-sorte-bild-6 { padding: 0; }

.gg-hinweis { margin-top: 28px !important; background: var(--wp--preset--color--sage-soft); border-radius: 20px; padding: 22px 26px; gap: 18px; }
.gg-hinweis-icon { font-size: 2rem; line-height: 1; margin: 0; }
.gg-hinweis h3 { margin: 0 0 4px; font-size: 1.25rem; }
.gg-hinweis p { margin: 0; line-height: 1.55; color: #3E4F43; }

.gg-box-gastro { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--mist); }
.gg-box-gastro h2 { color: var(--wp--preset--color--mist); }
.gg-box-gastro p, .gg-box-gastro li { color: var(--wp--preset--color--sage-light); }
.gg-box-gastro a:not(.wp-block-button__link) { color: var(--wp--preset--color--lime); }
.gg-box-gastro .wp-block-button__link { background: var(--wp--preset--color--lime) !important; color: var(--wp--preset--color--ink) !important; }
.gg-gastro-badge { margin: 0 0 12px !important; }
.gg-gastro-badge .gg-badge { font-size: 1rem; padding: 6px 14px; }
.gg-checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.gg-checks li { padding-left: 30px; position: relative; font-weight: 500; }
.gg-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 999px; background: var(--wp--preset--color--lime); color: var(--wp--preset--color--ink); font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
