/* ==========================================================================
   SeoGoal Theme – main.css
   Ein Stylesheet für alles. Farben/Schriften kommen aus theme.json.
   ========================================================================== */

:root {
	--sg-ink: var(--wp--preset--color--ink, #3b3663);
	--sg-text: var(--wp--preset--color--text, #5f5c7d);
	--sg-purple: var(--wp--preset--color--purple, #6254e7);
	--sg-purple-2: var(--wp--preset--color--purple-light, #9289f1);
	--sg-orange: var(--wp--preset--color--orange, #ff7426);
	--sg-yellow: var(--wp--preset--color--yellow, #f0ac0e);
	--sg-sky: var(--wp--preset--color--sky, #7fd8f5);
	--sg-tint: var(--wp--preset--color--tint, #f6f6fc);
	--sg-line: #e7e6f2;
	--sg-grad: linear-gradient(90deg, #ff7426 0%, #f0ac0e 100%);
	--sg-grad-violet: linear-gradient(90deg, #9289f1 0%, #6254e7 100%);
	--sg-shadow: 0 12px 40px rgba(59, 54, 99, 0.09);
	--sg-shadow-lg: 0 24px 60px rgba(59, 54, 99, 0.14);
	--sg-radius: 10px;
	--sg-gutter: clamp(1rem, 4vw, 2rem);
	--sg-header-h: 84px;
	--sg-section-y: clamp(3rem, 7vw, 5.5rem);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--sg-header-h) + 1rem); }
body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { text-underline-offset: 0.18em; transition: color .2s ease; }
strong, b { color: var(--sg-ink); font-weight: 600; }
p { margin: 0 0 1.1em; }
:where(h1, h2, h3, h4, h5, h6) { margin: 0 0 0.6em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--sg-purple); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	background: var(--sg-ink); color: #fff; padding: .75rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.sg-btn,
.wp-block-button__link,
.wpcf7-submit,
input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .8em 1.8em;
	border: 0; border-radius: 6px;
	background: var(--sg-grad); background-size: 140% 100%; background-position: 0 0;
	color: #fff !important; font: 600 .875rem/1.2 var(--wp--preset--font-family--body);
	letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
	box-shadow: 0 10px 24px rgba(255, 116, 38, .28);
	cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-position .3s ease;
}
.sg-btn:hover,
.wp-block-button__link:hover,
.wpcf7-submit:hover,
input[type="submit"]:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 14px 30px rgba(255, 116, 38, .35); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--sg-purple) !important; box-shadow: inset 0 0 0 2px currentColor; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 30px rgba(59, 54, 99, .08); }
.admin-bar .site-header { top: 32px; }
.site-header__inner {
	max-width: 1290px; margin: 0 auto; padding: 0 var(--sg-gutter);
	min-height: var(--sg-header-h);
	display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-logo__img { width: 150px; height: auto; display: block; }
.site-logo__text { font: 800 1.5rem/1 var(--wp--preset--font-family--heading); color: var(--sg-ink); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav__list li { position: relative; }
.site-nav__list a {
	display: block; padding: .6rem .8rem;
	color: var(--sg-ink); text-decoration: none; font-size: 1rem;
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a { color: var(--sg-orange); }
.site-nav__list .menu-item-has-children > a { padding-right: 1.6rem; }
.site-nav__list .menu-item-has-children > a::after {
	content: ""; position: absolute; right: .6rem; top: 50%;
	width: 6px; height: 6px; margin-top: -5px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}
.site-nav__list .sub-menu {
	list-style: none; margin: 0; padding: .6rem 0;
	position: absolute; left: 0; top: 100%; min-width: 230px;
	background: #fff; border-radius: 8px; box-shadow: var(--sg-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav__list .sub-menu a { padding: .55rem 1.2rem; font-size: .95rem; }
.sg-btn--header { min-height: 42px; padding: .7em 1.4em; font-size: .75rem; }

.nav-toggle { display: none; }

@media (max-width: 1023px) {
	:root { --sg-header-h: 70px; }
	.site-logo__img { width: 130px; }
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 46px; height: 46px; padding: 0; border: 0; border-radius: 8px;
		background: var(--sg-tint); color: var(--sg-ink); cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
		position: relative; transition: transform .25s ease, background .25s ease;
	}
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -6px; }
	.nav-toggle__bars::after { top: 6px; }
	.nav-open .nav-toggle__bars { background: transparent; }
	.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.site-nav {
		position: fixed; inset: var(--sg-header-h) 0 auto 0;
		max-height: calc(100vh - var(--sg-header-h)); overflow-y: auto;
		flex-direction: column; align-items: stretch; gap: 1rem;
		padding: 1rem var(--sg-gutter) 2rem;
		background: #fff; box-shadow: 0 20px 40px rgba(59, 54, 99, .12);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.admin-bar .site-nav { top: calc(var(--sg-header-h) + 46px); }
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	.site-nav__list { flex-direction: column; }
	.site-nav__list a { padding: .85rem .25rem; border-bottom: 1px solid var(--sg-line); font-size: 1.05rem; }
	.site-nav__list .menu-item-has-children > a::after { display: none; }
	.site-nav__list .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; padding: 0 0 0 1rem; min-width: 0;
	}
	.sg-btn--header { align-self: flex-start; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- Inhalt & Layout ---------- */
.site-main { display: block; }
.entry-content > *:not(.alignfull):not(.alignwide) {
	max-width: var(--wp--style--global--content-size, 1170px);
	margin-left: auto; margin-right: auto;
	padding-left: var(--sg-gutter); padding-right: var(--sg-gutter);
}
.entry-content > .alignwide { max-width: var(--wp--style--global--wide-size, 1290px); margin-inline: auto; }
.entry-header { max-width: 1170px; margin: 0 auto; padding: var(--sg-section-y) var(--sg-gutter) 1rem; text-align: center; }
.entry-header + .entry-content > :first-child:not(.alignfull) { margin-top: 0; }
.entry-meta { color: var(--sg-text); font-size: .9rem; }

/* Sektionen */
.is-style-sg-section,
.is-style-sg-tint,
.is-style-sg-faq {
	position: relative;
	padding: var(--sg-section-y) var(--sg-gutter);
	margin: 0 !important;
}
.is-style-sg-section + .is-style-sg-section { padding-top: 0; }
.is-style-sg-tint {
	background-color: var(--sg-tint);
	background-image: radial-gradient(rgba(98, 84, 231, .11) 1.2px, transparent 1.4px);
	background-size: 22px 22px;
}
.is-style-sg-tint + .is-style-sg-tint { padding-top: 0; }
.is-style-sg-section > *,
.is-style-sg-tint > *,
.is-style-sg-faq > * { position: relative; z-index: 1; }

/* Überschriften in Sektionen */
.entry-content h2.has-text-align-center { max-width: 820px; margin-left: auto; margin-right: auto; position: relative; }
.entry-content h2.has-text-align-center::after {
	/* kleines Deko-Dreieck wie im alten Design */
	content: ""; display: inline-block; width: 22px; height: 19px; margin-left: .35em; vertical-align: .55em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M2 3 24 2 11 20Z' fill='none' stroke='%237fd8f5' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.has-text-align-center + p.has-text-align-center { max-width: 760px; margin-inline: auto; }

.is-style-sg-gradient {
	background: var(--sg-grad);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: var(--sg-orange);
}

.is-style-sg-eyebrow {
	margin-bottom: .4rem !important;
	color: var(--sg-orange); font-weight: 600; font-size: .8rem !important;
	letter-spacing: .14em; text-transform: uppercase;
}
.is-style-sg-lead { font-size: 1.15rem; line-height: 1.7; }

/* Spalten */
.entry-content .wp-block-columns { gap: clamp(1.5rem, 5vw, 4.5rem); margin-bottom: 0; align-items: center; }
.entry-content .wp-block-columns.are-vertically-aligned-top { align-items: flex-start; }
.wp-block-column > :last-child { margin-bottom: 0; }

/* Listen */
.entry-content ul:not(.wp-block-social-links) { padding-left: 0; list-style: none; }
.entry-content ul:not(.wp-block-social-links) > li { position: relative; padding-left: 1.5em; margin-bottom: .45em; }
.entry-content ul:not(.wp-block-social-links) > li::before {
	content: ""; position: absolute; left: .2em; top: .62em;
	width: .5em; height: .5em; border-radius: 50%; background: var(--sg-grad-violet);
}
.entry-content ol { padding-left: 1.3em; }
.entry-content ol > li { margin-bottom: .45em; padding-left: .3em; }
.entry-content ol > li::marker { color: var(--sg-purple); font-weight: 700; }

/* ---------- Hero ---------- */
.is-style-sg-hero {
	position: relative; overflow: hidden;
	padding: clamp(2rem, 5vw, 4rem) var(--sg-gutter) clamp(3rem, 6vw, 5rem);
	margin: 0 !important;
}
.is-style-sg-hero::before,
.is-style-sg-hero::after {
	content: ""; position: absolute; pointer-events: none; z-index: 0;
	background-repeat: no-repeat; background-size: contain;
}
.is-style-sg-hero::before {
	/* Deko: Dreieck, Kreuze, Plus, Kreis, Punkte – nur an den Rändern */
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cpath d='M3 4l34-2-20 29z' fill='none' stroke='%2385d4f2' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3l18 18M21 3 3 21' stroke='%233b3663' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3l18 18M21 3 3 21' stroke='%233b3663' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2v16M2 10h16' stroke='%2373e0b4' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2v16M2 10h16' stroke='%2373e0b4' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='11' fill='none' stroke='%23f278a8' stroke-width='3'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='4' fill='%23f0ac0e'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='4' fill='%23f0ac0e'/%3E%3C/svg%3E");
	background-position: 6% 92%, 1.5% 46%, 96% 74%, 46% 6%, 94% 58%, 97% 26%, 8% 10%, 52% 96%;
	background-size: 34px, 20px, 20px, 18px, 16px, 26px, 9px, 8px;
}
.is-style-sg-hero::after {
	/* weiche Hintergrund-Form */
	width: 62vw; max-width: 900px; aspect-ratio: 1; right: -18vw; top: -12vw;
	background-image: radial-gradient(circle at 50% 50%, rgba(146, 137, 241, .10), rgba(146, 137, 241, 0) 62%);
}
.is-style-sg-hero > * { position: relative; z-index: 1; }
.is-style-sg-hero h1 { font-size: clamp(1.9rem, 1.1rem + 2.2vw, 2.6rem); line-height: 1.16; margin-bottom: .35em; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.is-style-sg-hero .wp-block-column:first-child { flex-basis: 46%; }
.is-style-sg-hero .wp-block-column:last-child { flex-basis: 54%; }
.is-style-sg-hero .wp-block-columns { align-items: center; }
.is-style-sg-hero .wp-block-image { margin: 0; }
.is-style-sg-typed {
	font: 800 clamp(1.35rem, 1rem + 1.2vw, 1.75rem)/1.3 var(--wp--preset--font-family--heading);
	margin-bottom: .8em !important; min-height: 1.3em;
}
.sg-typed__word {
	background: var(--sg-grad); -webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: var(--sg-orange);
}
.sg-typed__word.is-typing::after {
	content: ""; display: inline-block; width: 3px; height: 1em; margin-left: 3px; vertical-align: -.12em;
	background: var(--sg-orange); animation: sg-blink 1s steps(1) infinite;
}
@keyframes sg-blink { 50% { opacity: 0; } }

/* ---------- Bilder ---------- */
.entry-content .wp-block-image { margin-top: 0; }
.entry-content .wp-block-image img { border-radius: 0; }
.is-style-sg-float img { filter: drop-shadow(0 26px 34px rgba(59, 54, 99, .16)); }
.is-style-sg-blob img {
	border-radius: 58% 42% 52% 48% / 48% 56% 44% 52% !important;
	box-shadow: var(--sg-shadow-lg);
	aspect-ratio: 1 / 1; object-fit: cover;
}
.sg-media { position: relative; }
.sg-media::before {
	/* Farbblob hinter freigestellten Personen */
	content: ""; position: absolute; z-index: -1;
	left: 6%; right: 6%; top: 10%; bottom: 0;
	border-radius: 54% 46% 42% 58% / 52% 44% 56% 48%;
	background: linear-gradient(140deg, rgba(127, 216, 245, .55), rgba(146, 137, 241, .35) 60%, rgba(240, 172, 14, .25));
}
.sg-media.wp-block-image { isolation: isolate; text-align: center; }

/* ---------- Karten ---------- */
.is-style-sg-card {
	height: 100%;
	padding: clamp(1.4rem, 3vw, 2rem);
	background: #fff; border-radius: var(--sg-radius);
	box-shadow: var(--sg-shadow);
	transition: transform .25s ease, box-shadow .25s ease;
}
.is-style-sg-card:hover { transform: translateY(-4px); box-shadow: var(--sg-shadow-lg); }
.is-style-sg-card > :last-child { margin-bottom: 0; }
.is-style-sg-card p { color: var(--sg-text); }
.sg-cards { margin-top: 2rem !important; }
.sg-cards + .sg-cards { margin-top: clamp(1.5rem, 5vw, 4.5rem) !important; }
.sg-cards .wp-block-column { display: flex; flex-direction: column; }
.sg-cards .wp-block-column > .is-style-sg-card { flex: 1; }
.is-style-sg-card::before {
	content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; margin-bottom: 1.1rem;
	background: var(--sg-grad);
}
.sg-cards .wp-block-column:nth-child(2) .is-style-sg-card::before { background: var(--sg-grad-violet); }
.sg-cards .wp-block-column:nth-child(3) .is-style-sg-card::before { background: linear-gradient(90deg, #7fd8f5, #6254e7); }

/* ---------- Formular-Box ---------- */
.is-style-sg-formbox {
	padding: clamp(1.5rem, 3vw, 2.4rem);
	background: #fff; border-radius: 14px; box-shadow: var(--sg-shadow-lg);
}
.is-style-sg-formbox h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); }

/* Contact Form 7 */
.wpcf7 form { margin: 0; }
.wpcf7 fieldset.hidden-fields-container { display: none; }
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; }
.wpcf7 p { margin: 0 0 .9rem; }
.wpcf7 label { display: block; font-size: .9rem; color: var(--sg-ink); }
.wpcf7 input:where([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"]),
.wpcf7 textarea,
.wpcf7 select {
	width: 100%; min-height: 50px; padding: .8rem 1rem;
	border: 1px solid var(--sg-line); border-radius: 6px;
	background: #f7f7fb; color: var(--sg-ink);
	font: 400 1rem/1.4 var(--wp--preset--font-family--body);
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus {
	outline: none; border-color: var(--sg-purple-2); background: #fff; box-shadow: 0 0 0 4px rgba(98, 84, 231, .12);
}
.wpcf7 ::placeholder { color: #8f8ca9; opacity: 1; }
.wpcf7 .wpcf7-acceptance, .wpcf7 .wpcf7-list-item { margin: 0; font-size: .85rem; line-height: 1.5; }
.wpcf7 .wpcf7-list-item label { display: flex; gap: .5rem; align-items: flex-start; color: var(--sg-text); }
.wpcf7 input[type="checkbox"] { width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--sg-purple); flex-shrink: 0; }
.wpcf7-not-valid-tip { font-size: .8rem; margin-top: .3rem; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 6px; font-size: .9rem; }
.wpcf7-spinner { margin: 0 0 0 .75rem; }
/* Zweispaltige Felder (Formular „Contact Form 6“: .row / .span6 / .span12) */
.wpcf7 .row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.wpcf7 .row > * { min-width: 0; }
.wpcf7 .row > .span12, .wpcf7 .row > .acceptance { grid-column: 1 / -1; }
.wpcf7 .row > p, .wpcf7 .row br { display: contents; }
@media (max-width: 600px) { .wpcf7 .row { grid-template-columns: 1fr; } }

/* Analyse-Formular im Hero („Revolution contact form“: URL + Button nebeneinander) */
.wpcf7 .revolution_form {
	display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: start;
	padding: .7rem; background: #fff; border-radius: 10px; box-shadow: var(--sg-shadow-lg);
}
.wpcf7 .revolution_form > .acceptance { grid-column: 1 / -1; padding: .2rem .3rem 0; }
.wpcf7 .revolution_form p, .wpcf7 .revolution_form br { display: contents; }
.wpcf7 .revolution_form .wpcf7-submit { min-height: 50px; background: var(--sg-ink); box-shadow: none; }
.wpcf7 .revolution_form .wpcf7-submit:hover { background: var(--sg-purple); }
@media (max-width: 520px) { .wpcf7 .revolution_form { grid-template-columns: 1fr; } }
.wpcf7 .wpcf7-form-control-wrap { display: block; }

/* ---------- Kontakt-Box ---------- */
.sg-contact { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0 0; }
.sg-contact__icon { width: 44px; height: 44px; color: var(--sg-orange); flex-shrink: 0; }
.sg-contact__phone {
	display: block; color: var(--sg-ink) !important; text-decoration: none;
	font: 800 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--wp--preset--font-family--heading);
}
.sg-contact__mail { display: block; margin-top: .2rem; color: var(--sg-ink) !important; font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.sg-contact a:hover { color: var(--sg-orange) !important; }

/* ---------- Akkordeon (details) ---------- */
.wp-block-details {
	border-bottom: 1px solid var(--sg-line);
	padding: 0; margin-top: 0 !important; margin-bottom: 0 !important;
}
.wp-block-details > summary {
	position: relative; list-style: none; cursor: pointer;
	padding: 1.05rem 2.4rem 1.05rem 0;
	color: var(--sg-ink); font: 700 1.05rem/1.4 var(--wp--preset--font-family--heading);
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after {
	content: ""; position: absolute; right: .3rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
	background:
		linear-gradient(var(--sg-purple), var(--sg-purple)) center / 14px 2px no-repeat,
		linear-gradient(var(--sg-purple), var(--sg-purple)) center / 2px 14px no-repeat;
	transition: transform .25s ease;
}
.wp-block-details[open] > summary::after { transform: rotate(45deg); }
.wp-block-details > summary:hover { color: var(--sg-purple); }
.wp-block-details > :not(summary) { margin-top: 0; padding-right: 2rem; }
.wp-block-details[open] > :last-child { padding-bottom: 1rem; }

/* FAQ */
.is-style-sg-faq .wp-block-details {
	border: 0; margin-bottom: .9rem !important; max-width: 900px; margin-left: auto !important; margin-right: auto !important;
	background: #fff; border-radius: var(--sg-radius); box-shadow: var(--sg-shadow);
	padding: 0 1.4rem 0 4.4rem;
	position: relative;
}
.is-style-sg-faq .wp-block-details::before {
	content: "?"; position: absolute; left: 1.2rem; top: .95rem;
	width: 34px; height: 34px; border-radius: 8px;
	display: grid; place-items: center;
	background: var(--sg-grad); color: #fff; font: 800 1.1rem/1 var(--wp--preset--font-family--heading);
}
.is-style-sg-faq .wp-block-details > summary { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.is-style-sg-faq > .wp-block-group, .is-style-sg-faq .sg-faq__list { max-width: 900px; margin-inline: auto; }

/* ---------- Tabellen ---------- */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--sg-line); padding: .7rem .9rem; }
.wp-block-table thead { background: var(--sg-tint); color: var(--sg-ink); }

/* ---------- 404 ---------- */
.sg-404 { text-align: center; padding: var(--sg-section-y) 0; }
.sg-404__code {
	margin: 0; font: 900 clamp(6rem, 20vw, 12rem)/1 var(--wp--preset--font-family--heading);
	background: var(--sg-grad-violet); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Beitragsliste ---------- */
.sg-postlist { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); padding-bottom: var(--sg-section-y); }
.sg-postlist h2 { font-size: 1.3rem; }
.sg-postlist h2 a { color: var(--sg-ink); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--sg-line); font-size: .95rem; }
.entry-content > :last-child:not(.alignfull) { margin-bottom: var(--sg-section-y); }
.sg-404, .sg-postlist { margin-bottom: 0; }
.is-style-sg-faq:last-child, .is-style-sg-tint:last-child { margin-bottom: 0; }
.site-footer__inner { max-width: 1170px; margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--sg-gutter) 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.site-logo--footer .site-logo__img { width: 170px; }
.site-footer .sg-contact { margin-top: 1.2rem; }
.site-footer .sg-contact__phone { font-size: 1.35rem; }
.site-footer__title { margin: 0 0 1rem; color: var(--sg-ink); font: 800 1.15rem/1.3 var(--wp--preset--font-family--heading); }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: .55rem; }
.site-footer a { color: var(--sg-text); text-decoration: none; }
.site-footer a:hover { color: var(--sg-orange); }
.site-footer__local { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--sg-line); font-size: .85rem; line-height: 1.9; }
.site-footer__local p { margin: 0; }
.site-footer__copy { margin: 1.2rem 0 0; font-size: .85rem; color: #8f8ca9; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	.entry-content .wp-block-columns { gap: 2rem; }
	.is-style-sg-hero .wp-block-columns { flex-direction: column-reverse; }
	.is-style-sg-hero::before { display: none; }
	.is-style-sg-hero h1 { font-size: 1.75rem; }
	.is-style-sg-sg-media-right, .wp-block-columns.is-style-sg-media-right { flex-direction: column-reverse; }
	.sg-media img { max-height: 360px; width: auto; }
	.entry-content h2.has-text-align-center::after { display: none; }
	.is-style-sg-faq .wp-block-details { padding-left: 3.6rem; }
	.is-style-sg-faq .wp-block-details::before { left: .9rem; width: 30px; height: 30px; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.wp-block-image img[src$=".svg"] { width: 100%; }
