/*
Theme Name: Agesto Pflege
Theme URI: https://agesto.de/
Author: pflege.media
Author URI: https://pflege.media/
Description: Block-Theme (Full Site Editing) für Agesto, ambulanter Pflegedienst und Senioren-Tagespflege in Stutensee. Ohne Page Builder, mit fertigen Vorlagen für alle Seiten, lokal eingebundener Schrift (DSGVO) und Einrichtungsassistent unter Design → Agesto Einrichtung.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agesto
Tags: full-site-editing, block-patterns, custom-colors, editor-style
*/

/* =========================================================
   Grundlagen
   Ein Radius für alle Boxen: --ag-r (20px). Kleine Elemente: --ag-r-s (12px).
   ========================================================= */
:root {
	--ag-r: 20px;
	--ag-r-s: 12px;
	--ag-rand: rgba(1, 22, 64, 0.07);
	--ag-schatten: 0 1px 2px rgba(1, 22, 64, 0.04), 0 14px 34px -22px rgba(1, 22, 64, 0.28);
	--ag-schatten-hover: 0 2px 4px rgba(1, 22, 64, 0.05), 0 24px 48px -24px rgba(1, 22, 64, 0.38);
	--ag-feder: cubic-bezier(.34, 1.56, .64, 1);
}
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { height: auto; }
::selection { background: #D9EDA8; color: #011640; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 3px solid var(--wp--preset--color--blau);
	outline-offset: 3px;
	border-radius: 4px;
}
.skip-link.screen-reader-text:focus { background: #fff; color: #011640; padding: 12px 18px; z-index: 100000; }
.wp-block-group, .wp-block-column { min-width: 0; }
.wp-site-blocks { overflow-x: clip; }

/* =========================================================
   Kopfbereich: schwebende Leiste, bleibt beim Scrollen oben
   ========================================================= */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:first-child {
	position: sticky; top: 0; z-index: 1000;
	margin-bottom: -1px;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }

.ag-header { background: transparent !important; pointer-events: none; }
.ag-header > * { pointer-events: auto; }
.ag-header__bar {
	border-radius: var(--ag-r) !important;
	box-shadow: 0 1px 2px rgba(1,22,64,.04), 0 12px 32px -18px rgba(1,22,64,.30) !important;
	border: 1px solid var(--ag-rand);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	background-color: rgba(255,255,255,.94) !important;
	transition: padding .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.ag-header .wp-block-site-logo img { max-height: 54px; width: auto; transition: max-height .3s ease; }
.is-scrolled .ag-header__bar {
	padding-top: .55rem !important; padding-bottom: .55rem !important;
	box-shadow: 0 2px 6px rgba(1,22,64,.06), 0 18px 40px -18px rgba(1,22,64,.38) !important;
	background-color: rgba(255,255,255,.98) !important;
}
.is-scrolled .ag-header .wp-block-site-logo img { max-height: 46px; }

.ag-header .wp-block-navigation .wp-block-navigation-item__content { padding: .4rem .1rem; position: relative; white-space: nowrap; }
.ag-header .wp-block-button__link { white-space: nowrap; }
.ag-header .wp-block-navigation__container { gap: clamp(1rem, 1.6vw, 1.75rem) !important; }
.ag-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
	background: var(--wp--preset--color--gruen); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.ag-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.ag-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }

/* Menü unter 1240px als Overlay (WordPress-Standard wäre 600px) */
@media (max-width: 1239px) {
	.ag-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.ag-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 600px) {
	.ag-header__bar { padding: .6rem .6rem .6rem 1rem !important; }
	.ag-header .ag-btn-phone .ag-btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ag-header .ag-btn-phone .wp-block-button__link { padding: .8rem; }
	.ag-header .ag-btn-phone .wp-block-button__link::before { margin-right: 0; }
	.ag-header .wp-block-site-logo img { max-height: 46px; }
}
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--creme) !important;
	padding: 2rem 1.5rem !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.1rem !important; font-size: 1.375rem; }

/* Telefon-Icon für Buttons */
.ag-btn-phone .wp-block-button__link::before,
.ag-phone-big::before {
	content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-right: .5em; vertical-align: -0.18em;
	background: currentColor;
	-webkit-mask: url(assets/icons/phone.svg) center / contain no-repeat;
	mask: url(assets/icons/phone.svg) center / contain no-repeat;
}
.ag-phone-big a { text-decoration: none; color: inherit; }

/* =========================================================
   Buttons
   ========================================================= */
.wp-block-button__link { transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(1,22,64,.45); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor; background: transparent; color: var(--wp--preset--color--blau-dunkel);
	padding: calc(.85rem - 2px) calc(1.6rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--blau-dunkel); color: #fff; border-color: var(--wp--preset--color--blau-dunkel); }
.has-navy-background-color .wp-block-button.is-style-outline > .wp-block-button__link,
.has-blau-dunkel-background-color .wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }

/* Chips (Schnellauswahl) */
.is-style-chips .wp-block-button__link {
	background: #fff; color: var(--wp--preset--color--navy); border: 1.5px solid #E4DCD5;
	font-size: var(--wp--preset--font-size--small); padding: .55rem 1rem; font-weight: 600;
}
.is-style-chips .wp-block-button__link:hover { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: #fff; }

/* Textlink mit Pfeil */
.is-style-pfeil a, a.ag-pfeil { font-weight: 600; text-decoration: none; color: var(--wp--preset--color--blau-dunkel); }
.is-style-pfeil a::after, a.ag-pfeil::after { content: " →"; display: inline-block; transition: transform .2s ease; margin-left: .15em; }
.is-style-pfeil a:hover::after, a.ag-pfeil:hover::after { transform: translateX(4px); }

/* =========================================================
   Dachzeile
   ========================================================= */
.is-style-eyebrow {
	text-transform: uppercase; letter-spacing: .14em; font-weight: 700;
	font-size: .8125rem; color: var(--wp--preset--color--blau-dunkel);
	display: flex; align-items: center; gap: .65rem;
}
.is-style-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--wp--preset--color--gruen); flex: none; }
.has-text-align-center.is-style-eyebrow { justify-content: center; }
.has-navy-background-color .is-style-eyebrow, .has-navy-hell-background-color .is-style-eyebrow { color: #BFE3F5; }
.wp-block-cover .is-style-eyebrow { color: #BFE3F5; }

/* =========================================================
   Karten
   ========================================================= */
.is-style-karte {
	background: #fff; border-radius: var(--ag-r);
	border: 1px solid var(--ag-rand);
	box-shadow: var(--ag-schatten);
	transition: transform .3s ease, box-shadow .3s ease;
}
.ag-grid > .is-style-karte:hover, .is-style-karte.ag-hover:hover { transform: translateY(-3px); box-shadow: var(--ag-schatten-hover); }
.ag-grid { align-items: stretch; }
.ag-grid > .wp-block-group { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
.ag-grid > .wp-block-group.is-layout-constrained > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none; }
.ag-grid > .wp-block-group.is-layout-flex { flex-direction: row; }
.ag-grid > .wp-block-group > .is-style-pfeil:last-child, .ag-grid > .wp-block-group > .wp-block-buttons:last-child { margin-top: auto; padding-top: .75rem; }
.is-style-karte.is-layout-flex > .wp-block-group { min-width: 0; flex: 1 1 auto; padding-left: 0 !important; padding-right: 0 !important; }

/* Raster: verlässlich responsiv */
@media (max-width: 1023px) { .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 680px) { .ag-grid { grid-template-columns: minmax(0, 1fr) !important; } }

/* Karte mit Foto oben (Werte) */
.ag-fotokarte { overflow: hidden; }
.ag-fotokarte > .wp-block-image:first-child { margin: 0 !important; }
.ag-fotokarte > .wp-block-image:first-child img { border-radius: 0 !important; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.ag-fotokarte:hover > .wp-block-image:first-child img { transform: scale(1.04); }
.ag-fotokarte > .wp-block-image:first-child { overflow: hidden; }

/* =========================================================
   Icons: organische Form in den drei Logofarben
   ========================================================= */
.ag-icon { margin: 0 !important; flex-shrink: 0; }
.ag-icon img {
	width: 60px !important; height: 60px; padding: 15px; box-sizing: border-box;
	background: #E1F2FB;
	border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%;
	transition: border-radius .6s ease, transform .4s var(--ag-feder);
}
.ag-grid > *:nth-child(3n+2) .ag-icon img { background: #EBF4D2; border-radius: 44% 56% 46% 54% / 55% 45% 55% 45%; }
.ag-grid > *:nth-child(3n+3) .ag-icon img { background: #F6F3C6; border-radius: 52% 48% 60% 40% / 42% 58% 42% 58%; }
.ag-grid > *:hover .ag-icon img { border-radius: 50%; transform: rotate(-6deg) scale(1.05); }

/* =========================================================
   Bilder
   ========================================================= */
.wp-block-image.is-style-rounded img { aspect-ratio: 1; object-fit: cover; }
.is-style-weich img, .wp-block-image.is-style-weich img { border-radius: var(--ag-r); }
.ag-blob img { border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; aspect-ratio: 1; object-fit: cover; }

/* Animierte Badges (Schnuppertag, Diakonie-Tarif) */
.ag-badge-wrap { position: relative; }
.ag-badge {
	position: absolute !important; top: 4%; right: 2%; width: 150px; height: 150px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem !important; margin: 0 !important;
	transform: rotate(-8deg); box-shadow: 0 16px 32px -14px rgba(1,22,64,.45); line-height: 1.2; z-index: 2;
	transition: transform .45s var(--ag-feder), box-shadow .3s ease;
	animation: ag-schweben 4.5s ease-in-out infinite;
}
.ag-badge a { color: inherit; text-decoration: none; display: block; }
.ag-badge a::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.ag-badge:hover { animation-play-state: paused; transform: rotate(0deg) scale(1.1); box-shadow: 0 22px 40px -14px rgba(1,22,64,.5); }
.ag-badge::before {
	content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px dashed currentColor; opacity: 0;
	transition: opacity .3s ease; animation: ag-drehen 12s linear infinite;
}
.ag-badge:hover::before { opacity: .45; }
.ag-badge--unten { top: auto; right: auto; bottom: 2%; left: -2%; }
@keyframes ag-schweben { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-6px); } }
@keyframes ag-drehen { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .ag-badge { width: 116px; height: 116px; font-size: .875rem !important; } .ag-badge--unten { left: 0; } }

/* =========================================================
   Hero
   ========================================================= */
.ag-hero { overflow: hidden; border-radius: var(--ag-r) !important; }
.ag-hero h1 { text-wrap: balance; }
.ag-hero .wp-block-cover__inner-container > * { max-width: 640px; }
.ag-hero .is-style-karte { box-shadow: 0 24px 50px -24px rgba(0,0,0,.45); }
.ag-overlap { position: relative; z-index: 2; margin-top: -84px !important; }
@media (max-width: 781px) { .ag-overlap { margin-top: -40px !important; } }

/* =========================================================
   Schritte
   ========================================================= */
.ag-step__nr {
	padding: 0 !important; box-sizing: border-box;
	display: inline-flex !important; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
	font-weight: 800; margin-bottom: .5rem !important;
}
.ag-step__pfeil { margin-top: -1.5rem !important; margin-bottom: -1.5rem !important; pointer-events: none; }
.ag-step__pfeil img { width: 110px; }
@media (max-width: 781px) {
	.ag-step__pfeil { display: none; }
	.wp-block-columns.is-reversed-mobile { flex-direction: column-reverse; }
}

/* =========================================================
   Häkchen-Liste
   ========================================================= */
ul.is-style-haken { list-style: none; padding-left: 0; }
ul.is-style-haken li { position: relative; padding-left: 2rem; margin-bottom: .55rem; }
ul.is-style-haken li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
	background: var(--wp--preset--color--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23011640' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* =========================================================
   Häufige Fragen
   ========================================================= */
.wp-block-details {
	border: 1px solid var(--ag-rand); border-radius: var(--ag-r) !important;
	box-shadow: 0 1px 2px rgba(1,22,64,.03); margin-block-start: .75rem !important;
	transition: box-shadow .25s ease;
}
.wp-block-details[open] { box-shadow: var(--ag-schatten); }
.wp-block-details summary {
	cursor: pointer; list-style: none; font-weight: 700; color: var(--wp--preset--color--navy);
	display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; font-size: var(--wp--preset--font-size--large);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; line-height: 1;
	background: #EBF4D2; color: var(--wp--preset--color--navy); font-weight: 700; transition: transform .25s ease, background-color .25s ease;
}
.wp-block-details[open] summary::after { content: "−"; background: var(--wp--preset--color--navy); color: #fff; }
.wp-block-details[open] summary { margin-bottom: .75rem; }

/* =========================================================
   Pflegegrad-Reiter
   ========================================================= */
.ag-tabs__nav { display: flex; flex-wrap: wrap; gap: .4rem; padding: .45rem; background: #fff; border: 1px solid var(--ag-rand); border-radius: var(--ag-r); box-shadow: var(--ag-schatten); margin-bottom: 1.75rem; width: fit-content; max-width: 100%; }
.ag-tabs__nav button {
	font: inherit; font-weight: 700; border: 0; cursor: pointer; padding: .7rem 1.3rem; border-radius: var(--ag-r-s);
	background: transparent; color: var(--wp--preset--color--blau-dunkel); transition: background-color .2s ease, color .2s ease;
}
.ag-tabs__nav button:hover { background: var(--wp--preset--color--creme); }
.ag-tabs__nav button[aria-selected="true"] { background: var(--wp--preset--color--navy); color: #fff; }
.ag-tabs.is-ready .ag-tab[hidden] { display: none !important; }
.ag-tabs.is-ready .ag-tab > .ag-tab__titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ag-tabs:not(.is-ready) .ag-tab + .ag-tab { margin-top: 2.5rem; }
@media (max-width: 600px) { .ag-tabs__nav button { padding: .55rem .9rem; flex: 1 1 40%; } }
.ag-leistungstabelle p { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #EFE7E1; padding: .55rem 0; margin: 0 !important; }
.ag-leistungstabelle p strong { color: var(--wp--preset--color--blau-dunkel); white-space: nowrap; }

/* =========================================================
   Erfahrungen (Bewertungen)
   ========================================================= */
.ag-zitat-gross { position: relative; }
.ag-zitat-gross::before {
	content: ""; position: absolute; top: 2rem; right: 2rem; width: 64px; height: 52px; opacity: .9;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 52'%3E%3Cpath fill='%2395C11F' d='M0 52V30.4C0 12.6 9.1 2.4 27.4 0l2.4 7.4C19.6 9.7 14.4 15 14.4 23.6H27V52H0Zm34 0V30.4C34 12.6 43.1 2.4 61.4 0l2.4 7.4C53.6 9.7 48.4 15 48.4 23.6H61V52H34Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ag-zitat-gross blockquote, .ag-zitat-gross .ag-zitat-text { font-size: clamp(1.125rem, 1.7vw, 1.3rem); line-height: 1.6; font-weight: 500; color: var(--wp--preset--color--navy); }
.ag-sterne { color: #E0A800; letter-spacing: .18em; font-size: 1.05rem; margin: 0 !important; }
.ag-person { gap: .85rem !important; }
.ag-avatar {
	width: 46px; height: 46px; border-radius: 50%; display: grid !important; place-items: center; flex: none;
	font-weight: 800; font-size: .95rem !important; margin: 0 !important; padding: 0 !important;
}
.ag-stimme-klein { position: relative; }
.ag-stimme-klein::before { content: ""; position: absolute; top: -1px; left: 2.25rem; width: 48px; height: 4px; border-radius: 0 0 4px 4px; background: var(--wp--preset--color--gruen); }
.ag-grid > .ag-stimme-klein:nth-child(3n+2)::before { background: var(--wp--preset--color--blau); }
.ag-grid > .ag-stimme-klein:nth-child(3n+3)::before { background: var(--wp--preset--color--gelb); }
.ag-teamfoto { position: relative; }
.ag-teamfoto .ag-foto-label {
	position: absolute !important; left: 1rem; bottom: 1rem; margin: 0 !important;
	background: rgba(255,255,255,.95); border-radius: var(--ag-r-s); padding: .6rem .9rem !important; box-shadow: var(--ag-schatten);
}

/* =========================================================
   Schnuppergutschein
   ========================================================= */
.ag-gutschein {
	position: relative; overflow: visible;
	background: #fff; border-radius: var(--ag-r);
	box-shadow: 0 30px 60px -30px rgba(1,22,64,.45);
	transition: transform .5s var(--ag-feder);
}
.ag-gutschein:hover { transform: rotate(-.6deg) translateY(-4px); }
.ag-gutschein::after {
	content: ""; position: absolute; inset: 12px; border: 2px dashed rgba(1,22,64,.14); border-radius: calc(var(--ag-r) - 8px); pointer-events: none;
}
.ag-gutschein__abriss { position: relative; border-left: 2px dashed rgba(1,22,64,.18); background: #FBF8DA; border-radius: 0 var(--ag-r) var(--ag-r) 0; align-self: stretch !important; display: flex; flex-direction: column; justify-content: center; }
.ag-gutschein .ag-geschenk img { width: 88px !important; height: 88px; padding: 22px; background: #fff !important; box-shadow: 0 10px 24px -12px rgba(1,22,64,.35); }
.ag-gutschein__abriss::before, .ag-gutschein__abriss::after {
	content: ""; position: absolute; left: -15px; width: 28px; height: 28px; border-radius: 50%;
	background: var(--ag-gutschein-bg, #EBF4D2);
}
.ag-gutschein__abriss::before { top: -15px; }
.ag-gutschein__abriss::after { bottom: -15px; }
@media (max-width: 781px) {
	.ag-gutschein__abriss { border-left: 0; border-top: 2px dashed rgba(1,22,64,.18); border-radius: 0 0 var(--ag-r) var(--ag-r); }
	.ag-gutschein__abriss::before, .ag-gutschein__abriss::after { display: none; }
}
.ag-gutschein__wert { font-size: clamp(2.5rem, 6vw, 4rem) !important; font-weight: 800; line-height: 1 !important; letter-spacing: -0.02em; }
.ag-geschenk { animation: ag-wackeln 3.2s ease-in-out infinite; transform-origin: 50% 80%; display: inline-block; }
.ag-gutschein:hover .ag-geschenk { animation-duration: .9s; }
@keyframes ag-wackeln { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-9deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }

/* =========================================================
   Zeitstrahl (Tagesablauf)
   ========================================================= */
.ag-zeitstrahl > .wp-block-group { position: relative; padding-left: 2.25rem !important; border-left: 2px solid #D9ECC0; margin: 0 0 0 .6rem !important; padding-bottom: 1.5rem !important; }
.ag-zeitstrahl > .wp-block-group::before {
	content: ""; position: absolute; left: -10px; top: .15rem; width: 18px; height: 18px; border-radius: 50%;
	background: #fff; border: 4px solid var(--wp--preset--color--gruen);
}
.ag-zeitstrahl > .wp-block-group:last-child { border-left-color: transparent; padding-bottom: 0 !important; }
.ag-zeitstrahl h3 { font-size: var(--wp--preset--font-size--large); }
.ag-zeitstrahl .ag-uhrzeit { font-weight: 700; font-size: .875rem; color: var(--wp--preset--color--blau-dunkel); margin: 0 !important; }

/* =========================================================
   Stellen
   ========================================================= */
.ag-stelle { border-left: 4px solid var(--wp--preset--color--gruen) !important; }

/* =========================================================
   Kontaktformular
   ========================================================= */
.ag-form { display: grid; gap: 1rem; }
.ag-form .ag-form__row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .ag-form .ag-form__row { grid-template-columns: 1fr; } }
.ag-form label { display: block; font-weight: 600; color: var(--wp--preset--color--navy); margin-bottom: .35rem; font-size: var(--wp--preset--font-size--small); }
.ag-form input[type=text], .ag-form input[type=email], .ag-form input[type=tel], .ag-form select, .ag-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; color: var(--wp--preset--color--navy); background: var(--wp--preset--color--creme);
	border: 1.5px solid #E2D8D1; border-radius: var(--ag-r-s); padding: .8rem 1rem;
}
.ag-form textarea { min-height: 150px; resize: vertical; }
.ag-form input:focus, .ag-form select:focus, .ag-form textarea:focus { border-color: var(--wp--preset--color--blau-dunkel); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(0,159,227,.25); }
.ag-form .ag-form__check { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--wp--preset--font-size--small); }
.ag-form .ag-form__check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--wp--preset--color--blau-dunkel); }
.ag-form .ag-form__check label { font-weight: 400; margin: 0; color: var(--wp--preset--color--fliesstext); }
.ag-form .ag-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ag-form button {
	font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 999px; padding: .95rem 1.8rem; justify-self: start;
	background: var(--wp--preset--color--blau-dunkel); color: #fff; transition: background-color .2s ease, transform .2s ease;
}
.ag-form button:hover { background: var(--wp--preset--color--navy); transform: translateY(-2px); }
.ag-notice { padding: 1rem 1.25rem; border-radius: var(--ag-r-s); font-weight: 600; }
.ag-notice--ok { background: #EEF6DA; color: #2E4A00; }
.ag-notice--fehler { background: #FDE8E6; color: #8A1C10; }

/* =========================================================
   Fußbereich
   ========================================================= */
.ag-footer a { text-decoration: none; color: inherit; }
.ag-footer a:hover { text-decoration: underline; color: #D9EDA8; }
.ag-footer .wp-block-list { list-style: none; padding-left: 0; }
.ag-footer .wp-block-list li { margin-bottom: .45rem; }

/* =========================================================
   Blog, Landingpages, Sonstiges
   ========================================================= */
.wp-block-post-template.is-flex-container > li { display: flex; }
.wp-block-post-featured-image img { border-radius: var(--ag-r); }
.ag-landing > * { margin-block-start: 0; margin-block-end: 0; }
.ag-landing > .ag-hero:first-child { margin-top: .25rem; }
.ag-trennlinie { height: 3px; border: 0; border-radius: 3px; background: var(--wp--preset--color--gruen) !important; width: 64px; margin-left: 0; opacity: 1; }
.ag-zitat-person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }

/* =========================================================
   Vergleichstabelle und Rechenbeispiel (SEO-Seiten)
   ========================================================= */
.ag-tabelle-wrap { overflow-x: auto; }
.wp-block-table.ag-tabelle { margin: 0; }
.wp-block-table.ag-tabelle table {
	border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px;
	background: #fff; border: 1px solid var(--ag-rand); border-radius: var(--ag-r); overflow: hidden; box-shadow: var(--ag-schatten);
}
.wp-block-table.ag-tabelle th, .wp-block-table.ag-tabelle td { border: 0; border-bottom: 1px solid #EFE7E1; padding: 1rem 1.25rem; text-align: left; vertical-align: top; }
.wp-block-table.ag-tabelle thead th { background: var(--wp--preset--color--navy); color: #fff; font-weight: 700; border-bottom: 0; }
.wp-block-table.ag-tabelle thead th:last-child { background: var(--wp--preset--color--blau-dunkel); }
.wp-block-table.ag-tabelle tbody td:last-child { background: #F6FAEC; color: var(--wp--preset--color--navy); }
.wp-block-table.ag-tabelle tbody tr:last-child td { border-bottom: 0; }
.wp-block-table.ag-tabelle td:first-child, .wp-block-table.ag-tabelle th:first-child { width: 18%; }
.ag-rechnung .ag-leistungstabelle p:last-child { border-bottom: 0; padding-top: .9rem; font-weight: 700; color: var(--wp--preset--color--navy); font-size: 1.1em; }
.ag-rechnung .ag-leistungstabelle p:last-child strong { color: var(--wp--preset--color--navy); }
