/*
Theme Name:   GAIA Software
Theme URI:    https://www.gaia-software.de
Author:       GAIA Software UG (haftungsbeschränkt)
Author URI:   https://www.gaia-software.de
Description:  Individuelles Theme der GAIA Software UG in Violett-Weiß. Ohne externe Schriftarten oder Tracking.
Version:      1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License:      Proprietär
Text Domain:  gaia
*/

/* ==========================================================================
   1. Design-Tokens
   ========================================================================== */

:root {
	--v50: #f5f3ff;
	--v100: #ede9fe;
	--v200: #ddd6fe;
	--v300: #c4b5fd;
	--v400: #a78bfa;
	--v500: #8b5cf6;
	--v600: #7c3aed;
	--v700: #6d28d9;
	--v800: #5b21b6;
	--v900: #4c1d95;
	--v950: #2e1065;
	--night: #160935;

	--ink: #1c1233;
	--muted: #5d5873;
	--line: #e7e3f3;
	--white: #fff;

	--radius-sm: 12px;
	--radius: 20px;
	--radius-lg: 28px;
	--shadow: 0 1px 2px rgba(46, 16, 101, .05), 0 8px 24px rgba(46, 16, 101, .07);
	--shadow-lg: 0 24px 60px rgba(46, 16, 101, .16);

	--container: 1160px;
	--gutter: 24px;
	--header-h: 76px;

	--font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
	--font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;

	--gradient-dark:
		radial-gradient(900px 520px at 88% 12%, rgba(167, 139, 250, .32), transparent 60%),
		radial-gradient(760px 520px at -5% 105%, rgba(124, 58, 237, .45), transparent 60%),
		linear-gradient(135deg, #1b0a45 0%, #2e1065 45%, #5b21b6 100%);
}

/* ==========================================================================
   2. Basis
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; }

a {
	color: var(--v700);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .15s ease;
}
a:hover { color: var(--v900); }

h1, h2, h3, h4, h5 {
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.12;
	letter-spacing: -.022em;
	font-weight: 800;
	margin: 0 0 .5em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -.012em; line-height: 1.25; }
h4 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
	outline: 3px solid var(--v400);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection { background: var(--v200); color: var(--v950); }

.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: 16px;
	top: -100px;
	z-index: 1000;
	background: var(--white);
	color: var(--v800);
	padding: 12px 18px;
	border-radius: var(--radius-sm);
	font-weight: 700;
	box-shadow: var(--shadow-lg);
}
.skip-link:focus { top: 12px; }

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}
.wp-block-buttons > .wp-block-button { margin: 0; }

body .wp-block-button__link,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	padding: 15px 28px;
	border-radius: 999px;
	border: 2px solid var(--v600);
	background: var(--v600);
	color: var(--white);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(124, 58, 237, .28);
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
body .wp-block-button__link:hover,
body .wp-block-button__link:focus-visible,
.button:hover,
.button:focus-visible {
	background: var(--v700);
	border-color: var(--v700);
	color: var(--white);
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(109, 40, 217, .34);
}

body .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link,
.button--outline {
	background: transparent;
	color: var(--v700);
	border-color: var(--v300);
	box-shadow: none;
}
body .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.button--outline:hover {
	background: var(--v50);
	border-color: var(--v500);
	color: var(--v800);
	box-shadow: none;
}

.button svg,
.wp-block-button__link svg { width: 1.1em; height: 1.1em; flex: none; }

/* Buttons auf dunklem Hintergrund */
body :is(.gaia-hero, .gaia-section--dark, .gaia-cta__box) .wp-block-buttons .wp-block-button__link,
.button--light {
	background: var(--white);
	border-color: var(--white);
	color: var(--v800);
	box-shadow: 0 12px 30px rgba(10, 2, 30, .25);
}
body :is(.gaia-hero, .gaia-section--dark, .gaia-cta__box) .wp-block-buttons .wp-block-button__link:hover,
.button--light:hover,
.button--light:focus-visible {
	background: var(--v100);
	border-color: var(--v100);
	color: var(--v950);
}
body :is(.gaia-hero, .gaia-section--dark, .gaia-cta__box) .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--white);
	border-color: rgba(255, 255, 255, .45);
	box-shadow: none;
}
body :is(.gaia-hero, .gaia-section--dark, .gaia-cta__box) .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .1);
	border-color: var(--white);
	color: var(--white);
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
	border-bottom-color: var(--line);
	box-shadow: 0 6px 24px rgba(46, 16, 101, .06);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 1.22rem;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1;
	white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 40px; height: 40px; flex: none; color: var(--v600); display: block; }
.brand__name span { color: var(--v600); font-weight: 600; }

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}
.site-nav a {
	display: block;
	padding: 10px 16px;
	border-radius: 999px;
	color: var(--ink);
	font-weight: 600;
	font-size: .98rem;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.site-nav a:hover { color: var(--v700); background: var(--v50); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--v700); background: var(--v50); }

.site-nav .menu-cta > a {
	margin-left: 10px;
	padding-inline: 22px;
	background: var(--v600);
	color: var(--white);
	box-shadow: 0 6px 18px rgba(124, 58, 237, .3);
}
.site-nav .menu-cta > a:hover,
.site-nav .menu-cta.current-menu-item > a {
	background: var(--v700);
	color: var(--white);
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--white);
	color: var(--ink);
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle__bars { position: relative; }
.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-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		height: calc(100vh - var(--header-h));
		height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		background: var(--white);
		border-top: 1px solid var(--line);
		padding: 20px var(--gutter) 32px;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
	.site-nav a { padding: 14px 18px; font-size: 1.1rem; border-radius: 14px; }
	.site-nav .menu-cta > a { margin: 12px 0 0; text-align: center; }
}

/* ==========================================================================
   5. Allgemeine Bausteine
   ========================================================================== */

.gaia-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	color: var(--v600);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1.4;
	text-transform: uppercase;
}
.gaia-eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	flex: none;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 4px rgba(124, 58, 237, .16);
}

.gaia-lead {
	font-size: clamp(1.1rem, 1.5vw, 1.25rem);
	line-height: 1.6;
	color: var(--muted);
}

.gaia-icon {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	flex: none;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--v100), var(--white));
	border: 1px solid var(--v200);
	color: var(--v600);
}
.gaia-icon svg { width: 26px; height: 26px; display: block; }

.gaia-more { margin-top: 40px; text-align: center; font-weight: 700; }
.gaia-more a { text-decoration: none; }
.gaia-more a:hover { text-decoration: underline; }

.gaia-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
}
.gaia-tags li {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--v50);
	border: 1px solid var(--v200);
	color: var(--v800);
	font-size: .85rem;
	font-weight: 600;
}

/* Checkliste */
.gaia-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}
.gaia-checklist li {
	position: relative;
	padding-left: 38px;
	font-weight: 500;
	line-height: 1.5;
}
.gaia-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--v100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ==========================================================================
   6. Hero (Startseite)
   ========================================================================== */

.gaia-hero {
	position: relative;
	overflow: hidden;
	color: var(--white);
	background: var(--gradient-dark);
	padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(72px, 9vw, 128px);
}
.gaia-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	pointer-events: none;
}
.gaia-hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--container);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}
.gaia-hero__inner > * { margin: 0; }
.gaia-hero h1 { color: var(--white); margin-bottom: .45em; }
.gaia-hero h1 em {
	font-style: normal;
	background: linear-gradient(90deg, var(--v300), #f3efff 85%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.gaia-hero .gaia-lead { color: rgba(255, 255, 255, .82); max-width: 34em; }
.gaia-hero .gaia-eyebrow {
	color: var(--v100);
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .18);
	padding: 8px 16px 8px 14px;
	border-radius: 999px;
	letter-spacing: .1em;
}
.gaia-hero .gaia-eyebrow::before { background: #a7f3d0; box-shadow: 0 0 0 4px rgba(167, 243, 208, .18); }

.gaia-hero__visual svg { display: block; width: 100%; height: auto; max-width: 520px; margin-inline: auto; overflow: visible; }

@media (max-width: 960px) {
	.gaia-hero__inner { grid-template-columns: 1fr; }
	.gaia-hero__visual { max-width: 380px; margin: 0 auto !important; width: 100%; }
}

/* Animationen der Illustration */
.gaia-spin { transform-origin: 260px 260px; animation: gaia-spin 90s linear infinite; }
.gaia-spin--reverse { animation-duration: 140s; animation-direction: reverse; }
.gaia-float { animation: gaia-float 7s ease-in-out infinite; }
.gaia-float--delay { animation-delay: -3.5s; }
@keyframes gaia-spin { to { transform: rotate(360deg); } }
@keyframes gaia-float { 50% { transform: translateY(-10px); } }

/* ==========================================================================
   7. Seitenkopf (Unterseiten)
   ========================================================================== */

.page-hero {
	position: relative;
	overflow: hidden;
	color: var(--white);
	background: var(--gradient-dark);
	padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
}
.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
	mask-image: linear-gradient(90deg, #000, transparent 70%);
	pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero .gaia-eyebrow { color: var(--v200); }
.page-hero .gaia-eyebrow::before { box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.page-hero__title { color: var(--white); margin: 0 0 .3em; max-width: 15em; }
.page-hero__lead {
	margin: 0;
	max-width: 38em;
	color: rgba(255, 255, 255, .82);
	font-size: clamp(1.1rem, 1.5vw, 1.25rem);
}
.page-hero__decor {
	position: absolute;
	right: -60px;
	top: 50%;
	width: 460px;
	height: auto;
	transform: translateY(-50%);
	opacity: .75;
	pointer-events: none;
}
@media (max-width: 900px) { .page-hero__decor { right: -220px; opacity: .35; } }

/* ==========================================================================
   8. Inhaltsbereiche
   ========================================================================== */

.entry-content--sections > * { margin: 0; }

.gaia-section {
	position: relative;
	padding: clamp(72px, 9vw, 120px) var(--gutter);
}
.gaia-section > * {
	max-width: var(--container);
	margin-inline: auto;
}
.gaia-section--tint { background: var(--v50); }
.gaia-section--dark {
	color: var(--white);
	background: var(--gradient-dark);
	overflow: hidden;
}
.gaia-section--dark :is(h2, h3, h4) { color: var(--white); }
.gaia-section--dark p { color: rgba(255, 255, 255, .8); }
.gaia-section--dark .gaia-eyebrow { color: var(--v300); }
.gaia-section--dark .gaia-eyebrow::before { box-shadow: 0 0 0 4px rgba(196, 181, 253, .18); }

.gaia-section > .gaia-section-head {
	max-width: 760px;
	margin: 0 auto clamp(40px, 5vw, 64px);
	text-align: center;
}
.gaia-section-head > :last-child { margin-bottom: 0; }
.gaia-section-head > p:not(.gaia-eyebrow) { color: var(--muted); font-size: 1.125rem; }
.gaia-section--dark .gaia-section-head > p:not(.gaia-eyebrow) { color: rgba(255, 255, 255, .78); }
.gaia-section-head--left,
.gaia-split .gaia-section-head { text-align: left; margin: 0; }

/* Raster */
.gaia-grid { display: grid; gap: 24px; }
.gaia-grid > * { margin: 0; }
.gaia-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gaia-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gaia-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .gaia-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 880px) { .gaia-grid--2, .gaia-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .gaia-grid--4 { grid-template-columns: 1fr; } }

/* Zweispaltig */
.gaia-split {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(40px, 6vw, 88px);
	align-items: center;
}
.gaia-split > * { margin: 0; }
.gaia-split--top { align-items: start; }
.gaia-split--reverse > :first-child { order: 2; }
@media (max-width: 920px) {
	.gaia-split { grid-template-columns: 1fr; }
	.gaia-split--reverse > :first-child { order: 0; }
}

/* Karten */
.gaia-card {
	position: relative;
	padding: 32px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gaia-card:hover {
	transform: translateY(-4px);
	border-color: var(--v200);
	box-shadow: var(--shadow-lg);
}
.gaia-card > .gaia-icon { margin-bottom: 22px; }
.gaia-card h3 { margin-bottom: .55em; }
.gaia-card p { color: var(--muted); }

.gaia-section--dark .gaia-card {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .14);
	box-shadow: none;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.gaia-section--dark .gaia-card:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
.gaia-section--dark .gaia-card p { color: rgba(255, 255, 255, .75); }
.gaia-section--dark .gaia-icon {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .2);
	color: var(--v200);
}

/* Ablauf-Schritte */
.gaia-step {
	position: relative;
	padding: 32px 28px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.gaia-step .gaia-step__num {
	margin: 0 0 18px;
	font-family: var(--font-display);
	font-size: 2.6rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.03em;
	background: linear-gradient(135deg, var(--v400), var(--v800));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.gaia-step h3 { margin-bottom: .5em; }
.gaia-step p { color: var(--muted); }

/* Vorteile mit Icon */
.gaia-features { display: grid; gap: 28px; }
.gaia-features > * { margin: 0; }
.gaia-feature {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}
.gaia-feature > * { margin: 0; }
.gaia-feature h3 { margin-bottom: .35em; font-size: 1.15rem; }
.gaia-feature p { color: var(--muted); }

/* Panel (Leistungen) */
.gaia-panel {
	padding: clamp(28px, 4vw, 44px);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}
.gaia-panel .gaia-panel__label {
	margin-bottom: 22px;
	color: var(--v700);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.gaia-service > .gaia-icon { display: grid; margin-bottom: 24px; }
.gaia-service h2 { margin-bottom: .4em; }
.gaia-service > p:not(.gaia-eyebrow) { color: var(--muted); }

/* Hochschul-Liste */
.gaia-place-list {
	display: grid;
	gap: 14px;
	padding: clamp(20px, 3vw, 32px);
	background: var(--v50);
	border: 1px solid var(--v100);
	border-radius: var(--radius-lg);
}
.gaia-place {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 16px;
}
.gaia-place .gaia-icon { width: 48px; height: 48px; border-radius: 14px; }
.gaia-place .gaia-icon svg { width: 22px; height: 22px; }
.gaia-place strong { display: block; font-size: 1.05rem; }
.gaia-place small { color: var(--muted); font-size: .9rem; }

/* FAQ */
.gaia-section > .gaia-faq { max-width: 820px; }
.gaia-faq .wp-block-details {
	margin: 0 0 12px;
	padding: 0;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 16px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.gaia-faq .wp-block-details[open] { border-color: var(--v200); box-shadow: var(--shadow); }
.gaia-faq .wp-block-details summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 22px 72px 22px 26px;
	font-weight: 700;
	font-size: 1.06rem;
	line-height: 1.45;
}
.gaia-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.gaia-faq .wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	border-radius: 50%;
	background: var(--v100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: transform .2s ease;
}
.gaia-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.gaia-faq .wp-block-details > :not(summary) { margin: 0; padding: 0 26px 22px; color: var(--muted); }

/* ==========================================================================
   9. Screenshots (Bild-Block mit Klasse „gaia-shot“)
   ========================================================================== */

@media (min-width: 921px) {
	.gaia-split--media { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}

.wp-block-image.gaia-shot { margin: 0; }
.wp-block-image.gaia-shot img,
.wp-block-image.gaia-shot a {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}
.wp-block-image.gaia-shot img {
	border: 1px solid var(--line);
	box-shadow: 0 24px 60px rgba(30, 11, 75, .16);
}
.gaia-section--dark .wp-block-image.gaia-shot img {
	border-color: rgba(255, 255, 255, .2);
	box-shadow: 0 30px 80px rgba(5, 0, 25, .5);
}
.wp-block-image.gaia-shot figcaption {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: .95rem;
	text-align: center;
}
.gaia-section--dark .wp-block-image.gaia-shot figcaption { color: rgba(255, 255, 255, .78); }

/* ==========================================================================
   10. Kontakt
   ========================================================================== */

.gaia-contact-list { display: grid; gap: 14px; margin: 32px 0 40px; }
.gaia-contact-item {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 20px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 18px;
	color: var(--ink);
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.gaia-contact-item:hover { color: var(--ink); border-color: var(--v300); box-shadow: var(--shadow); transform: translateY(-2px); }
.gaia-contact-item small {
	display: block;
	margin-bottom: 2px;
	color: var(--muted);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.gaia-contact-item strong { font-size: 1.08rem; }
a.gaia-contact-item strong { color: var(--v700); }
.gaia-contact-info h3 { margin-bottom: 18px; }

.gaia-form-card {
	padding: clamp(26px, 4vw, 44px);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}
.gaia-contact-form h3 { margin-bottom: 6px; font-size: 1.5rem; }
.gaia-contact-form .gaia-form__intro { margin-bottom: 26px; color: var(--muted); }

.gaia-form { display: grid; gap: 20px; }
.gaia-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .gaia-form__row { grid-template-columns: 1fr; } }

.gaia-field label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .93rem; }
.gaia-field .req { color: var(--v600); }
.gaia-field .opt { color: var(--muted); font-weight: 400; }
.gaia-field :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	display: block;
	width: 100%;
	padding: 13px 16px;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: var(--white);
	border: 1.5px solid #d9d3ec;
	border-radius: var(--radius-sm);
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.gaia-field textarea { min-height: 170px; resize: vertical; }
.gaia-form .gaia-field select {
	padding-right: 46px;
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
}
.gaia-field :is(input, select, textarea):hover { border-color: var(--v300); }
.gaia-field :is(input, select, textarea):focus {
	outline: none;
	border-color: var(--v500);
	box-shadow: 0 0 0 4px rgba(139, 92, 246, .18);
}
.gaia-field ::placeholder { color: #9a95ad; }
.gaia-field [aria-invalid="true"] { border-color: #c0263a; }
.gaia-field__error { margin: 7px 0 0; color: #b42318; font-size: .88rem; font-weight: 600; }

.gaia-check {
	display: flex !important;
	gap: 12px;
	align-items: flex-start;
	color: var(--muted);
	font-weight: 400 !important;
	font-size: .92rem !important;
	line-height: 1.5;
	cursor: pointer;
}
.gaia-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--v600); cursor: pointer; }

.gaia-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.gaia-form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.gaia-form__hint { margin: 0; color: var(--muted); font-size: .88rem; }

.gaia-notice { padding: 16px 18px; border-radius: 14px; font-weight: 500; }
.gaia-notice--error { background: #fef3f2; border: 1px solid #fecdca; color: #912018; }
.gaia-notice a { color: inherit; font-weight: 700; }

.gaia-success { padding: 16px 0; text-align: center; }
.gaia-success:focus { outline: none; }
.gaia-success__icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 22px;
	border-radius: 50%;
	background: var(--v100);
	color: var(--v600);
}
.gaia-success__icon svg { width: 34px; height: 34px; }
.gaia-success p { color: var(--muted); max-width: 30em; margin-inline: auto; }
.gaia-success .button { margin-top: 18px; }

/* ==========================================================================
   11. Rechtstexte & Standardinhalte
   ========================================================================== */

.gaia-prose-wrap { padding: clamp(56px, 7vw, 96px) 0; }
.gaia-prose {
	max-width: calc(780px + 2 * var(--gutter));
	margin: 0 auto;
	padding-inline: var(--gutter);
}
.gaia-prose > * + * { margin-top: 0; }
.gaia-prose h2 { margin: 2.1em 0 .6em; font-size: 1.45rem; letter-spacing: -.015em; }
.gaia-prose h3 { margin: 1.7em 0 .5em; font-size: 1.12rem; }
.gaia-prose > :first-child { margin-top: 0; }
.gaia-prose ul, .gaia-prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.gaia-prose li + li { margin-top: .35em; }
.gaia-prose .gaia-legal-meta { margin-top: 3em; color: var(--muted); font-size: .92rem; }

.gaia-post + .gaia-post { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.gaia-post h2 { font-size: 1.6rem; margin-top: 0; }
.gaia-post h2 a { color: var(--ink); text-decoration: none; }
.gaia-post h2 a:hover { color: var(--v700); }

.gaia-404 { text-align: center; }
.gaia-404 .wp-block-buttons,
.gaia-404 .gaia-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ==========================================================================
   12. Kontakt-Aufruf (vor dem Footer)
   ========================================================================== */

.gaia-cta { padding: clamp(64px, 8vw, 104px) 0; background: var(--white); }
.gaia-cta__box {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	padding: clamp(36px, 6vw, 72px);
	border-radius: var(--radius-lg);
	color: var(--white);
	background:
		radial-gradient(520px 320px at 100% 0%, rgba(196, 181, 253, .4), transparent 60%),
		radial-gradient(420px 300px at 0% 100%, rgba(46, 16, 101, .55), transparent 60%),
		linear-gradient(135deg, #4c1d95, #7c3aed);
	box-shadow: 0 30px 70px rgba(76, 29, 149, .3);
}
.gaia-cta__box::after {
	content: "";
	position: absolute;
	right: -90px;
	bottom: -150px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .18);
	box-shadow: 0 0 0 50px rgba(255, 255, 255, .04), 0 0 0 100px rgba(255, 255, 255, .03);
	pointer-events: none;
}
.gaia-cta__box > * { position: relative; z-index: 1; }
.gaia-cta .gaia-eyebrow { color: var(--v200); }
.gaia-cta .gaia-eyebrow::before { box-shadow: 0 0 0 4px rgba(255, 255, 255, .14); }
.gaia-cta h2 { color: var(--white); margin-bottom: .35em; }
.gaia-cta p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.gaia-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; justify-self: end; }
.gaia-cta__mail {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
}
.gaia-cta__mail:hover { color: var(--white); text-decoration: underline; }
.gaia-cta__mail svg { width: 20px; height: 20px; opacity: .85; }
@media (max-width: 880px) {
	.gaia-cta__box { grid-template-columns: 1fr; }
	.gaia-cta__actions { justify-self: start; }
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.site-footer {
	padding: 72px 0 32px;
	background: var(--night);
	color: rgba(255, 255, 255, .7);
	font-size: .98rem;
}
.site-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 48px;
}
.site-footer .brand { color: var(--white); margin-bottom: 20px; }
.site-footer .brand:hover { text-decoration: none; }
.site-footer .brand__mark { color: var(--v300); }
.site-footer .brand__name span { color: var(--v300); }
.site-footer__about { max-width: 26em; }
.site-footer h2 {
	margin-bottom: 18px;
	color: var(--white);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__mail { display: inline-block; margin-top: 12px; font-weight: 600; }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .9rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 880px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brandcol { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   14. Einblend-Animation & reduzierte Bewegung
   ========================================================================== */

.gaia-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.gaia-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

@media print {
	.gaia-reveal { opacity: 1 !important; transform: none !important; }
	.site-header, .gaia-cta, .site-footer, .page-hero__decor { display: none; }
	.page-hero { background: none; color: #000; padding: 0 0 24px; }
	.page-hero__title { color: #000; }
}
