/* Schultüten-Werkstatt – Theme-CSS. Farben, Schriften und Element-Stile kommen aus theme.json. */

:root {
	--sw-akzent: var(--wp--preset--color--akzent, #a02e95);
	--sw-akzent-dunkel: var(--wp--preset--color--akzent-dunkel, #7e2275);
	--sw-akzent-hell: var(--wp--preset--color--akzent-hell, #f3e2ef);
	--sw-nacht: var(--wp--preset--color--nachtblau, #1a1b55);
	--sw-hell: var(--wp--preset--color--hell, #eaf1f8);
	--sw-grau: #66666c; /* 5,7:1 auf Weiß */
	--sw-linie: #d8d9e2;
	--sw-content: 760px;
	--sw-wide: 1180px;
	--sw-gutter: clamp(1rem, 4vw, 2rem);
	--sw-radius: 14px;
	--sw-shadow: 0 10px 28px rgba(26, 27, 85, 0.12);
	--sw-header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--sw-header-h) + 3rem); }
body { margin: 0; }
img, svg, video { max-width: 100%; height: auto; }
a { text-underline-offset: 0.15em; }
:focus-visible { outline: 2px solid var(--sw-akzent); outline-offset: 3px; }
input, select, textarea, button { font: inherit; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 100;
	background: #fff; color: var(--sw-nacht); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* Akzentwörter: kursiv gesetzte Wörter in Überschriften erscheinen in Playfair Display. */
h1 em, h2 em, h3 em, .sw-accent, .werkstatt-box__title em {
	font-family: var(--wp--preset--font-family--playfair);
	font-style: italic; font-weight: 700; color: var(--sw-akzent);
}

/* Buttons außerhalb von Blöcken */
.btn {
	display: inline-block; padding: 0.95rem 1.8rem; border-radius: 999px;
	background: var(--sw-akzent); color: #fff; border: 2px solid var(--sw-akzent);
	font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
	line-height: 1.2; text-decoration: none; text-align: center;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--sw-akzent-dunkel); border-color: var(--sw-akzent-dunkel); color: #fff; }
.btn--light { background: #fff; color: var(--sw-akzent); border-color: #fff; }
.btn--light:hover { background: var(--sw-akzent-hell); border-color: var(--sw-akzent-hell); color: var(--sw-akzent-dunkel); }
.btn--ghost { background: transparent; color: var(--sw-akzent); }
.btn--ghost:hover { background: var(--sw-akzent); color: #fff; }

/* ---------- Kopf ---------- */

.topbar { background: #111; color: #d8d8de; font-size: 0.8125rem; }
.topbar__inner {
	max-width: var(--sw-wide); margin: 0 auto; padding: 0.35rem var(--sw-gutter);
	display: flex; gap: 1.5rem; justify-content: flex-end;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; }
.site-header__bar {
	position: relative; display: flex; align-items: center; gap: 1.5rem;
	min-height: var(--sw-header-h); background: var(--sw-akzent);
	padding: 0.5rem max(var(--sw-gutter), calc((100% - var(--sw-wide)) / 2));
}
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.site-logo__img { display: block; width: auto; height: 52px; }
.site-logo__text { color: #fff; font-weight: 600; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem 1.25rem; }
.site-nav .menu > li { position: relative; }
.site-nav .menu > li > a { white-space: nowrap; }
.site-nav a {
	display: block; padding: 0.75rem 0; color: #fff; text-decoration: none;
	font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.site-nav .menu > li > a:hover,
.site-nav .menu > .current-menu-item > a,
.site-nav .menu > .current-menu-ancestor > a { box-shadow: inset 0 -2px 0 #fff; }
.site-nav .sub-menu {
	display: none; position: absolute; left: -1rem; top: 100%; min-width: 17rem;
	list-style: none; margin: 0; padding: 0.5rem 0;
	background: #fff; border-radius: var(--sw-radius); box-shadow: var(--sw-shadow);
}
.site-nav .sub-menu a {
	padding: 0.45rem 1rem; color: var(--sw-nacht);
	font-size: 0.95rem; font-weight: 400; letter-spacing: 0; text-transform: none;
}
.site-nav .sub-menu a:hover { color: var(--sw-akzent); background: var(--sw-akzent-hell); }
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { display: block; }
.site-nav a.site-nav__cta {
	display: inline-block; padding: 0.8rem 1.4rem; white-space: nowrap;
	color: var(--sw-akzent); letter-spacing: 0.06em;
}
.site-nav a.site-nav__cta:hover { color: var(--sw-akzent-dunkel); box-shadow: none; }
.nav-toggle, .submenu-toggle { display: none; }

@media (max-width: 1100px) {
	.topbar { display: none; }
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 0.6rem; margin-left: auto;
		padding: 0.55rem 1rem; border: 2px solid #fff; border-radius: 999px;
		background: transparent; color: #fff; cursor: pointer;
		font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1;
	}
	.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
		display: block; position: relative; width: 18px; height: 2px; background: currentColor; transition: transform 0.2s;
	}
	.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__icon::before { top: -6px; }
	.nav-toggle__icon::after { top: 6px; }
	.nav-open .nav-toggle__icon { background: transparent; }
	.nav-open .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		max-height: calc(100vh - var(--sw-header-h)); overflow-y: auto;
		padding: 0.5rem var(--sw-gutter) 1.5rem; background: var(--sw-akzent);
	}
	.nav-open .site-nav { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu > li {
		display: flex; flex-wrap: wrap; align-items: center;
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	}
	.site-nav .menu > li > a { flex: 1; }
	.site-nav .sub-menu {
		position: static; width: 100%; margin-bottom: 0.5rem;
		background: rgba(255, 255, 255, 0.1); border-radius: 8px; box-shadow: none;
	}
	.site-nav li:not(.is-open) > .sub-menu { display: none; }
	.site-nav li.is-open > .sub-menu { display: block; }
	.site-nav .sub-menu a { color: #fff; }
	.site-nav .sub-menu a:hover { background: transparent; color: #fff; text-decoration: underline; }
	.submenu-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer;
	}
	.submenu-toggle::before {
		content: ""; width: 9px; height: 9px; transform: rotate(45deg); transition: transform 0.2s;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	}
	.submenu-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); }
	.site-nav a.site-nav__cta { margin-top: 1rem; text-align: center; }
	.site-logo__img { height: 44px; }
}

/* ---------- Inhalt ---------- */

.site-main { padding-bottom: clamp(3rem, 7vw, 5rem); }

.entry-header {
	max-width: var(--sw-wide); margin: 0 auto; text-align: center;
	padding: clamp(2rem, 6vw, 4rem) var(--sw-gutter) clamp(1.5rem, 4vw, 2.5rem);
}
.entry-title { margin: 0; color: var(--sw-akzent); }
.entry-meta, .breadcrumbs { color: var(--sw-grau); font-size: 0.8125rem; }
.entry-meta { margin: 0.75rem 0 0; }
.breadcrumbs { margin-bottom: 1rem; }
.breadcrumbs a { color: inherit; }
.archive-description { max-width: var(--sw-content); margin: 1rem auto 0; }

.entry-content { padding-inline: var(--sw-gutter); }
.entry-content > * { max-width: var(--sw-content); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--sw-wide); }
.entry-content > .alignfull {
	max-width: none; margin-left: calc(-1 * var(--sw-gutter)); margin-right: calc(-1 * var(--sw-gutter));
}
.entry-content > :where(* + *) { margin-top: 1.25rem; }
.entry-content > :where(h2, h3) { margin-top: 2.5rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content .wp-block-image img { border-radius: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 0.6rem; border-bottom: 1px solid var(--sw-linie); text-align: left; vertical-align: top; }
.entry-content th { color: var(--sw-nacht); }

.wp-block-details { border: 1px solid var(--sw-linie); border-radius: 10px; padding: 0.9rem 1.1rem; }
.wp-block-details summary { color: var(--sw-nacht); font-weight: 600; cursor: pointer; }
.wp-block-details[open] summary { margin-bottom: 0.5rem; }

.sw-box { padding: clamp(2.5rem, 6vw, 4rem) var(--sw-gutter); }
.sw-box--dark { background: var(--sw-nacht); color: #fff; }
.sw-box--dark :where(h2, h3, h4) { color: #fff; }
.sw-box--dark a:not(.wp-block-button__link) { color: #fff; }
.sw-eyebrow { margin-bottom: 0.25rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* Farb- und Größenklassen aus älteren Inhalten (Colibri- und WordPress-Standardpalette) */
.has-white-color, .has-colibri-color-5-color { color: #fff !important; }
.has-black-color { color: #000 !important; }
.has-colibri-color-1-color { color: var(--sw-akzent) !important; }
.has-colibri-color-2-color { color: #245d8b !important; }
.has-colibri-color-6-color { color: var(--sw-nacht) !important; }
.has-colibri-color-1-background-color { background-color: var(--sw-akzent) !important; }
.has-colibri-color-2-background-color { background-color: #245d8b !important; }
.has-colibri-color-6-background-color { background-color: var(--sw-nacht) !important; }
.has-small-font-size { font-size: 0.875rem !important; }
.has-large-font-size { font-size: 1.375rem !important; }

.sw-ad { text-align: center; }
.sw-ad img { display: inline-block; }

/* ---------- Abschnitte (Startseite und Hubs) ---------- */

.site-main--front { padding-bottom: 0; }
.site-main--front .entry-content > .alignfull { margin-top: 0; margin-bottom: 0; }
.sw-section { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.sw-section > * + * { margin-top: 1.25rem; }
.sw-section .wp-block-columns { margin-top: 2rem; }
.sw-section--hell { background: var(--sw-hell); }
.sw-section--akzent-hell { background: var(--sw-akzent-hell); }
.sw-section--akzent { background: var(--sw-akzent); color: #fff; }
.sw-section--akzent :where(h2, h3), .sw-section--akzent h2 em { color: #fff; }
.sw-section--akzent .wp-block-button__link { background: #fff; color: var(--sw-akzent); }
.sw-section--akzent .wp-block-button__link:hover { background: var(--sw-akzent-hell); color: var(--sw-akzent-dunkel); }
.sw-section .sw-eyebrow { color: var(--sw-akzent); font-weight: 600; }

/* Hero: Nachthimmel wie bisher, ohne Hintergrundbild */
.sw-hero {
	color: #fff;
	background:
		radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
		radial-gradient(1px 1px at 28% 68%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 46% 12%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
		radial-gradient(1px 1px at 58% 88%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 72% 30%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
		radial-gradient(1px 1px at 88% 64%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
		radial-gradient(1px 1px at 94% 12%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
		radial-gradient(900px 520px at 85% 10%, rgba(160, 46, 149, 0.55), transparent 65%),
		radial-gradient(760px 520px at 0% 100%, rgba(36, 93, 139, 0.5), transparent 65%),
		var(--sw-nacht);
}
.sw-hero :where(h1, h2, h3) { color: #fff; }
.sw-hero h1 em, .sw-hero h2 em { color: #f2b8ea; }
.sw-section.sw-hero .sw-eyebrow { color: #f2b8ea; }
.sw-hero__note { font-size: 0.875rem; opacity: 0.85; }
.sw-hero .wp-block-image img { border-radius: 0; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35)); }
.sw-hero .wp-block-button:not(.is-style-outline) > .wp-block-button__link { border: 2px solid #fff; }
.sw-hero .is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border: 2px solid #fff; }
.sw-hero .is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--sw-nacht); }
.sw-hero--klein { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }

/* Umriss-Buttons außerhalb des Hero */
.is-style-outline > .wp-block-button__link { background: transparent; color: var(--sw-akzent); border: 2px solid currentColor; }
.is-style-outline > .wp-block-button__link:hover { background: var(--sw-akzent); color: #fff; border-color: var(--sw-akzent); }

/* Karten */
.sw-card {
	padding: 1.75rem 1.5rem; text-align: center;
	background: #fff; border-radius: var(--sw-radius); box-shadow: var(--sw-shadow);
}
.sw-card h3 { margin-top: 0.75rem; font-size: 1.25rem; font-weight: 600; }
.sw-card .wp-block-image { margin: 0 auto; }
.sw-card .wp-block-image img { width: 150px; height: auto; border-radius: 50%; }
.sw-card__link a { font-weight: 600; text-decoration: none; }
.sw-card__link a::after { content: " \2192"; }
.sw-rounded img { border-radius: var(--sw-radius); }

/* Häkchen-Liste */
.sw-checklist { list-style: none; padding: 0; }
.sw-checklist li { position: relative; margin: 0.8rem 0; padding-left: 2rem; }
.sw-checklist li::before {
	content: ""; position: absolute; left: 0; top: 0.3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
	background: var(--sw-akzent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Schritte */
.sw-steps { display: grid; gap: 0.75rem; max-width: var(--sw-content); margin-inline: auto; padding: 0; list-style: none; counter-reset: sw-step; }
.sw-steps li {
	position: relative; padding: 1rem 1.25rem 1rem 4rem; counter-increment: sw-step;
	background: #fff; border-radius: var(--sw-radius);
}
.sw-steps li::before {
	content: counter(sw-step); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
	display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
	background: var(--sw-akzent); color: #fff; font-weight: 700;
}

/* Galerie, Kundenstimme, Fragen */
.sw-gallery img { border-radius: 10px; }
.wp-block-quote.sw-testimonial { max-width: var(--sw-content); margin-inline: auto; padding: 0; border: 0; text-align: center; font-style: normal; }
.sw-testimonial p {
	color: var(--sw-nacht); font-family: var(--wp--preset--font-family--playfair); font-style: italic;
	font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.5;
}
.sw-testimonial cite { display: block; margin-top: 1rem; color: var(--sw-grau); font-size: 0.9rem; font-style: normal; }
.sw-faq .wp-block-details { max-width: var(--sw-content); margin-inline: auto; background: #fff; }
.sw-faq .wp-block-details + .wp-block-details { margin-top: 0.75rem; }


/* Hinweise, Kurzantwort, Tabellen */
.sw-hinweis { font-size: 0.875rem; color: var(--sw-grau); }
.sw-section > p.has-text-align-center, .sw-section > .sw-kurz, .sw-section > .sw-steps,
.sw-section > .sw-hinweis { max-width: var(--sw-content); margin-left: auto; margin-right: auto; }
.sw-kurz { padding: 1rem 1.25rem; background: var(--sw-akzent-hell); border-left: 4px solid var(--sw-akzent); border-radius: 8px; }
.sw-section--akzent-hell .sw-kurz { background: #fff; }
.sw-section > .wp-block-table.sw-table:has(thead th:nth-child(2):last-child) { max-width: var(--sw-content); }
.wp-block-table.sw-table table {
	width: 100%; border-collapse: collapse; background: #fff;
	border-radius: var(--sw-radius); overflow: hidden; box-shadow: var(--sw-shadow);
}
.wp-block-table.sw-table thead { border-bottom: 0; }
.wp-block-table.sw-table th, .wp-block-table.sw-table td {
	padding: 0.75rem 1rem; border: 0; border-bottom: 1px solid #ece4ea; text-align: left; vertical-align: top;
}
.wp-block-table.sw-table thead th { background: var(--sw-akzent); color: #fff; font-weight: 600; }
.wp-block-table.sw-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table.sw-table td:first-child { font-weight: 600; color: var(--sw-nacht); }
@media (max-width: 600px) {
	/* Auf dem Handy wird jede Zeile zur kleinen Karte. */
	.wp-block-table.sw-table table, .wp-block-table.sw-table tbody,
	.wp-block-table.sw-table tr, .wp-block-table.sw-table td { display: block; width: 100%; }
	.wp-block-table.sw-table thead { display: none; }
	.wp-block-table.sw-table tr { padding: 0.9rem 1rem; border-bottom: 1px solid #ece4ea; }
	.wp-block-table.sw-table tbody tr:last-child { border-bottom: 0; }
	.wp-block-table.sw-table td { padding: 0; border: 0; }
	.wp-block-table.sw-table td:first-child { color: var(--sw-akzent); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
	.wp-block-table.sw-table td:nth-child(2) { margin: 0.15rem 0 0.35rem; font-weight: 600; color: var(--sw-nacht); }
}

/* Karten: Listen ohne Punkte, Titel als Link über die ganze Karte */
.sw-card ul { list-style: none; padding: 0; }
.sw-card ul li + li { margin-top: 0.2rem; }
.sw-card { position: relative; }
.sw-card h3 a { color: inherit; text-decoration: none; }
.sw-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sw-card:has(h3 a):hover { box-shadow: 0 14px 36px rgba(26, 27, 85, 0.14); }
.sw-card:has(h3 a):focus-within { outline: 2px solid var(--sw-akzent); outline-offset: 3px; }
.sw-card__more { font-weight: 600; color: var(--sw-akzent); }
.sw-card__more::after { content: " \2192"; }

/* Beitragsliste (Query Loop) */
.sw-beitragsliste .wp-block-post-template { gap: 0.75rem; }
.sw-beitragsliste .wp-block-post { padding: 0.9rem 1.1rem; background: #fff; border-radius: 10px; box-shadow: var(--sw-shadow); }
.sw-beitragsliste .wp-block-post-title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.sw-beitragsliste .wp-block-post-title a { color: var(--sw-nacht); text-decoration: none; }
.sw-beitragsliste .wp-block-post-title a:hover { color: var(--sw-akzent); }

@media (max-width: 781px) {
	.sw-hero .wp-block-column:last-child { max-width: 420px; margin-inline: auto; }
}

/* Werkstatt-Box unter Beiträgen */
.werkstatt-box {
	width: calc(100% - 2 * var(--sw-gutter)); max-width: var(--sw-content);
	margin: 3rem auto 0; padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--sw-akzent-hell); border-radius: var(--sw-radius); text-align: center;
}
.werkstatt-box__eyebrow {
	margin: 0; color: var(--sw-akzent);
	font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.werkstatt-box__title {
	margin: 0.5rem 0 1.25rem; color: var(--sw-nacht);
	font-size: var(--wp--preset--font-size--gross); font-weight: 300; line-height: 1.3;
}
.werkstatt-box__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 0; }

/* Übersichten */
.card-grid {
	display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	max-width: var(--sw-wide); margin: 0 auto; padding: 0 var(--sw-gutter);
}
.card { overflow: hidden; background: #fff; border-radius: var(--sw-radius); box-shadow: var(--sw-shadow); }
.card__link { display: block; height: 100%; color: inherit; text-decoration: none; }
.card__image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__title { margin: 1rem 1.25rem 0.5rem; color: var(--sw-nacht); font-size: 1.2rem; font-weight: 600; }
.card__excerpt { margin: 0 1.25rem 1.25rem; font-size: 0.95rem; }
.card__link:hover .card__title { color: var(--sw-akzent); }
.pagination { max-width: var(--sw-wide); margin: 2rem auto 0; padding: 0 var(--sw-gutter); text-align: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.pagination .page-numbers { padding: 0.4rem 0.8rem; border-radius: 999px; text-decoration: none; }
.pagination .current { background: var(--sw-akzent); color: #fff; }

/* Suche und 404 */
.search-form { display: flex; gap: 0.5rem; max-width: 30rem; margin: 1.5rem auto; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--sw-linie); border-radius: 999px; }
.search-submit {
	padding: 0.8rem 1.4rem; border: 0; border-radius: 999px; background: var(--sw-akzent); color: #fff;
	font-weight: 600; cursor: pointer;
}
.link-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }

/* ---------- Fuß ---------- */

.site-footer { background: var(--sw-nacht); color: #cfd0e6; font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.site-footer__inner {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
	max-width: var(--sw-wide); margin: 0 auto; padding: 3rem var(--sw-gutter) 2rem;
}
.site-footer__brand { max-width: 26rem; }
.site-footer__brand p { margin: 1rem 0 0; }
.site-logo__img--footer { height: 44px; }
.site-footer__nav .menu { display: grid; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer__legal {
	padding: 1rem var(--sw-gutter) 1.5rem; text-align: center; font-size: 0.8125rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer__legal p { margin: 0.25rem 0; }
.link-button {
	padding: 0; border: 0; background: none; color: #fff; cursor: pointer;
	font: inherit; text-decoration: underline; text-underline-offset: 0.15em;
}

/* =========================================================================
   0.3.0 – Feedback 26.10.2026: deutliche Abschnitte, Kontrast, Karteikarten,
   überstehendes Bild, Einfahr-Effekte, Rahmen, Kacheln
   ========================================================================= */

/* Karten und Listen-Kästen mit sichtbarer Kante – Abstufungen allein sieht man auf vielen Bildschirmen nicht. */
.sw-card, .card, .sw-beitragsliste .wp-block-post, .sw-steps li, .sw-faq .wp-block-details { border: 1px solid var(--sw-linie); }
.wp-block-details { border-color: var(--sw-linie); }

/* Farbige Abschnitte beginnen mit einer weichen Welle. */
.entry-content > .sw-section--hell, .entry-content > .sw-section--akzent-hell, .entry-content > .sw-section--akzent { position: relative; }
.entry-content > .sw-section--hell:not(:first-child)::before,
.entry-content > .sw-section--akzent-hell:not(:first-child)::before,
.entry-content > .sw-section--akzent:not(:first-child)::before {
	content: ""; position: absolute; left: 0; right: 0; top: -39px; height: 40px; background: inherit; pointer-events: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24C240 4 480 2 720 18s480 18 720-2v24z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24C240 4 480 2 720 18s480 18 720-2v24z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

/* Streifen über die ganze Breite, Inhalt bleibt in der Textspalte (z. B. „Lieber selbst basteln?“). */
.sw-streifen { padding-top: clamp(2.25rem, 5vw, 3.5rem); padding-bottom: clamp(2.25rem, 5vw, 3.5rem); background: var(--sw-akzent-hell); }
.sw-streifen--hell { background: var(--sw-hell); }
.sw-streifen > * { max-width: var(--sw-content); margin-left: auto; margin-right: auto; }
.sw-streifen > * + * { margin-top: 1rem; }
.sw-streifen :where(h2, h3) { margin-top: 0; }

/* Drei Wege als Karteikarten: liniertes Papier, Klebestreifen, leicht schräg. */
.sw-karteikarten { gap: clamp(1.5rem, 3vw, 2.25rem) !important; }
.sw-karteikarten > .sw-card {
	padding: 2.6rem 1.5rem 1.75rem; border-color: #d9d2c4; border-radius: 6px;
	background:
		linear-gradient(var(--sw-akzent), var(--sw-akzent)) top / 100% 6px no-repeat,
		repeating-linear-gradient(to bottom, transparent 0 31px, rgba(36, 93, 139, 0.13) 31px 32px) 0 52px / 100% calc(100% - 52px) no-repeat,
		#fffdf8;
	box-shadow: 0 2px 0 #ece6d9, 0 14px 30px rgba(26, 27, 85, 0.13);
	rotate: -1.2deg; transition: rotate 0.25s ease, translate 0.25s ease, box-shadow 0.25s ease;
}
.sw-karteikarten > .sw-card:nth-child(2) { rotate: 0.9deg; }
.sw-karteikarten > .sw-card:nth-child(3) { rotate: -0.6deg; }
.sw-karteikarten > .sw-card::before {
	content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; translate: -50% 0; rotate: -3deg;
	background: rgba(243, 226, 239, 0.85); border: 1px solid rgba(160, 46, 149, 0.18); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.sw-karteikarten > .sw-card:hover, .sw-karteikarten > .sw-card:focus-within { rotate: 0deg; translate: 0 -4px; box-shadow: 0 2px 0 #ece6d9, 0 20px 40px rgba(26, 27, 85, 0.18); }
@media (max-width: 781px) { .sw-karteikarten > .sw-card, .sw-karteikarten > .sw-card:nth-child(n) { rotate: 0deg; } }

/* Bild schaut oben aus dem Abschnitt heraus, die Wolken unten gehen ins Weiß des nächsten Abschnitts über. */
.sw-section--wolke { padding-bottom: 0 !important; }
.sw-section--wolke:not([class*="sw-section--hell"]):not([class*="sw-section--akzent"]) { background: var(--sw-akzent-hell); }
.sw-section--wolke > .wp-block-columns { align-items: stretch !important; margin-top: 0; margin-bottom: 0; }
.sw-section--wolke .sw-wolke-bild { position: relative; z-index: 1; align-self: stretch !important; }
.sw-section--wolke .sw-wolke-bild .wp-block-image { margin: 0; }
.sw-section--wolke .sw-wolke-bild img { display: block; width: 100%; border-radius: var(--sw-radius) var(--sw-radius) 0 0; box-shadow: 0 -12px 26px -6px rgba(26, 27, 85, 0.2); clip-path: inset(-50px -50px 0 -50px); }
.sw-section--wolke .sw-wolke-text { align-self: center !important; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 782px) {
	/* Das Bild reicht vom Abschnittsende bis über die obere Kante hinaus. */
	.sw-section--wolke .sw-wolke-bild { min-height: 420px; }
	.sw-section--wolke .sw-wolke-bild .wp-block-image {
		position: absolute; left: 0; right: 0; bottom: 0;
		top: calc(-1 * clamp(3rem, 7vw, 5.5rem) - clamp(2.5rem, 5vw, 4rem));
	}
	.sw-section--wolke .sw-wolke-bild img { height: 100%; object-fit: cover; object-position: center bottom; }
}
@media (max-width: 781px) {
	.sw-section--wolke .sw-wolke-bild { order: 2; }
	.sw-section--wolke .sw-wolke-text { padding-bottom: 0.5rem; }
	.sw-section--wolke .sw-wolke-bild .wp-block-image { margin-top: 1rem; }
}

/* FAQ-Baustein (Plugin SW Bausteine) in der Textbreite, wie die alten Aufklapper */
.sw-faq .swb-faq, .entry-content > .swb-faq:not(.alignwide) { max-width: var(--sw-content) !important; margin-left: auto !important; margin-right: auto !important; }

/* Gerahmter Kasten (Preis, Vorteile) */
.sw-rahmen {
	padding: clamp(1.25rem, 3vw, 2rem); background: #fff;
	border: 1px solid var(--sw-linie); border-radius: var(--sw-radius); box-shadow: var(--sw-shadow);
}
.sw-rahmen > :first-child { margin-top: 0; }
.sw-rahmen > :last-child { margin-bottom: 0; }
.sw-rahmen--akzent { border-top: 5px solid var(--sw-akzent); }
.sw-rahmen--hell { background: var(--sw-hell); box-shadow: none; }

/* Preisseite: gerahmte Preistabelle, Satz darunter, weitere Leistungen als kleine Kästen */
.sw-section > .sw-preisbox { max-width: var(--sw-content); padding: clamp(0.75rem, 2vw, 1.25rem); }
.sw-preisbox .wp-block-table { margin: 0; }
.sw-preisbox .wp-block-table.sw-table table { border: 0; box-shadow: none; }
.sw-preisbox .wp-block-table.sw-table td:last-child { text-align: right; font-weight: 600; color: var(--sw-akzent-dunkel); }
.sw-preisbox .wp-block-table.sw-table th:last-child { text-align: right; }
.sw-preis-satz { margin-top: 1.25rem; color: var(--sw-nacht); font-weight: 600; }
.sw-section .wp-block-column.sw-rahmen { align-self: stretch; }
.sw-section .wp-block-column.sw-rahmen > :where(h2, h3):first-child { margin-top: 0; }
.wp-block-column.sw-rahmen > h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.wp-block-columns.sw-leistungen { gap: 1rem !important; align-items: stretch; }
.sw-leistungen > .sw-card { padding: 1.25rem 1.25rem 1.4rem; background: #fff; border-top: 5px solid var(--sw-akzent); font-size: 0.95rem; }
.sw-leistungen > .sw-card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.sw-leistungen > .sw-card ul { margin: 0.75rem 0; padding: 0.6rem 0.8rem; background: var(--sw-hell); border-radius: 8px; }
.sw-leistungen > .sw-card > p:not(.sw-card__link):last-child, .sw-leistungen > .sw-card > p:not(.sw-card__link):nth-last-child(2):has(+ .sw-card__link) { font-weight: 600; color: var(--sw-nacht); }
@media (min-width: 782px) and (max-width: 1100px) { .wp-block-columns.sw-leistungen { flex-wrap: wrap !important; } .sw-leistungen > .wp-block-column { flex-basis: calc(50% - 0.5rem) !important; } }
@media (max-width: 600px) { .sw-preisbox .wp-block-table.sw-table td:last-child { text-align: left; } }

/* Hervorgehobener Aufruf (z. B. „Noch unsicher?“) */
.sw-aufruf {
	padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center;
	background: var(--sw-akzent-hell); border: 1px solid rgba(160, 46, 149, 0.25); border-radius: var(--sw-radius);
}
.sw-aufruf > :first-child { margin-top: 0; }
.sw-aufruf :where(h2, h3) { color: var(--sw-akzent-dunkel); }
.sw-aufruf .wp-block-buttons { justify-content: center; }

/* Liste als kleine Kacheln (Links zu Anleitungen, weitere Leistungen) */
ul.sw-kacheln { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); padding: 0; list-style: none; }
ul.sw-kacheln > li {
	display: flex; align-items: center; margin: 0; padding: 0.85rem 1rem;
	background: var(--sw-hell); border: 1px solid var(--sw-linie); border-radius: 10px; line-height: 1.4;
}
ul.sw-kacheln > li:has(> a:only-child) { padding: 0; }
ul.sw-kacheln > li > a:only-child { display: block; width: 100%; padding: 0.85rem 2rem 0.85rem 1rem; position: relative; color: var(--sw-nacht); font-weight: 600; text-decoration: none; }
ul.sw-kacheln > li > a:only-child::after { content: "\2192"; position: absolute; right: 0.9rem; top: 50%; translate: 0 -50%; color: var(--sw-akzent); }
ul.sw-kacheln > li:has(> a:only-child):hover { background: var(--sw-akzent-hell); border-color: rgba(160, 46, 149, 0.35); }

/* Mehrere Knöpfe nebeneinander gleich hoch */
.sw-knoepfe-gleich .wp-block-buttons, .wp-block-buttons.sw-knoepfe-gleich { align-items: stretch; }
.sw-knoepfe-gleich .wp-block-button { display: flex; }
.sw-knoepfe-gleich .wp-block-button__link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 3.6em; }
.wp-block-columns.sw-knoepfe-gleich > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns.sw-knoepfe-gleich > .wp-block-column > .wp-block-buttons:last-child { margin-top: auto; }

/* Tabellen mit Klasse sw-table: Zebra und klarer Rahmen */
.wp-block-table.sw-table table { border: 1px solid var(--sw-linie); }
.wp-block-table.sw-table tbody tr:nth-child(even) td { background: #f7f8fb; }
.wp-block-table.sw-table--nacht thead th { background: var(--sw-nacht); }

/* Zeitplan-Tabelle als Zeitleiste (Tabelle bleibt im Editor eine normale Tabelle) */
.sw-section > .wp-block-table.sw-zeitplan { max-width: var(--sw-content); }
.wp-block-table.sw-table.sw-zeitplan table, .sw-zeitplan tbody, .sw-zeitplan tr, .sw-zeitplan td { display: block; width: auto; }
.wp-block-table.sw-table.sw-zeitplan table { border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.wp-block-table.sw-table.sw-zeitplan thead { display: none; }
.sw-zeitplan tbody { position: relative; padding-left: 2.25rem; }
.sw-zeitplan tbody::before { content: ""; position: absolute; left: 0.65rem; top: 0.75rem; bottom: 0.75rem; width: 3px; border-radius: 3px; background: linear-gradient(var(--sw-akzent), var(--sw-nacht)); }
.wp-block-table.sw-table.sw-zeitplan tr { position: relative; margin: 0 0 1rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--sw-linie); border-radius: var(--sw-radius); box-shadow: 0 4px 14px rgba(26, 27, 85, 0.07); }
.sw-zeitplan tr::before { content: ""; position: absolute; left: calc(-2.25rem + 0.15rem); top: 1.15rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--sw-akzent); }
.wp-block-table.sw-table.sw-zeitplan tbody tr td { padding: 0; border: 0; background: none; text-transform: none; letter-spacing: 0; }
.wp-block-table.sw-table.sw-zeitplan tbody tr td:first-child { display: inline-block; margin: 0 0 0.4rem; padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--sw-akzent-hell); color: var(--sw-akzent-dunkel); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.wp-block-table.sw-table.sw-zeitplan tbody tr td:nth-child(2) { margin: 0 0 0.25rem; color: var(--sw-nacht); font-size: 1.1rem; font-weight: 700; }
.sw-zeitplan td:nth-child(3) a { white-space: nowrap; }

/* Fazit-Tabelle mit Plus/Minus, auf dem Handy mit Beschriftung */
.wp-block-table.sw-fazit td:nth-child(3)::before { content: "+ "; color: #2e7d4f; font-weight: 700; }
.wp-block-table.sw-fazit td:nth-child(4)::before { content: "– "; color: var(--sw-akzent); font-weight: 700; }
.wp-block-table.sw-fazit td:first-child strong { color: var(--sw-akzent-dunkel); }
@media (max-width: 600px) {
	.wp-block-table.sw-table.sw-fazit td:first-child { font-size: 1rem; letter-spacing: 0; text-transform: none; }
	.wp-block-table.sw-table.sw-fazit td:nth-child(n+2) { margin: 0.2rem 0 0; font-weight: 400; }
	.wp-block-table.sw-fazit td:nth-child(2)::before { content: "Ideal für: "; font-weight: 700; color: var(--sw-nacht); }
	.wp-block-table.sw-fazit td:nth-child(3)::before { content: "+ Vorteil: "; }
	.wp-block-table.sw-fazit td:nth-child(4)::before { content: "– Nachteil: "; }
}

/* Viele Karten als kompaktes Raster kleiner Kästen */
.wp-block-columns.sw-kartenraster { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem !important; }
.sw-kartenraster > .wp-block-column { margin: 0 !important; }
.sw-kartenraster > .sw-card { display: flex; flex-direction: column; padding: 1rem 1.15rem; font-size: 0.9rem; line-height: 1.5; border-top: 4px solid var(--sw-akzent); }
.sw-kartenraster > .sw-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; line-height: 1.3; }
.sw-kartenraster > .sw-card p { margin: 0; }
.sw-kartenraster > .sw-card p + p { margin-top: 0.4rem; }
.sw-kartenraster > .sw-card > p:last-child:has(.sw-card__more) { margin-top: auto; padding-top: 0.5rem; }
.sw-kartenraster > .sw-card:hover { border-color: rgba(160, 46, 149, 0.45); box-shadow: var(--sw-shadow); }

/* Knopf-Raster: alle Knöpfe gleich breit und gleich hoch */
.wp-block-buttons.sw-knopfraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.75rem; }
.sw-knopfraster > .wp-block-button { display: flex; width: auto; margin: 0; }
.sw-knopfraster > .wp-block-button > .wp-block-button__link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 3.4em; text-align: center; }

/* Neueste Beiträge als Tipp-Karten statt Textwüste */
ul.wp-block-latest-posts.sw-tippkarten { gap: 1rem; padding: 0; }
.sw-tippkarten.is-grid li { display: flex; flex-direction: column; margin: 0 !important; padding: 1.1rem 1.25rem 1.25rem; background: #fff; border: 1px solid var(--sw-linie); border-top: 4px solid var(--sw-akzent); border-radius: var(--sw-radius); box-shadow: 0 4px 14px rgba(26, 27, 85, 0.06); }
@media (min-width: 600px) { .sw-tippkarten.is-grid.columns-3 li { width: auto; } .sw-tippkarten.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.sw-tippkarten .wp-block-latest-posts__post-title { color: var(--sw-nacht); font-weight: 700; font-size: 1.05rem; line-height: 1.35; text-decoration: none; }
.sw-tippkarten .wp-block-latest-posts__post-title:hover { color: var(--sw-akzent); }
.sw-tippkarten .wp-block-latest-posts__post-excerpt { margin: 0.5rem 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--sw-grau); }
.sw-tippkarten .wp-block-latest-posts__post-excerpt a { display: inline-block; margin-top: 0.35rem; font-weight: 600; }

/* Ratgeber-Abschnitte (Bild + Text) mit Luft und Trennlinie, abwechselnd gespiegelt */
.entry-content > .wp-block-columns.sw-abschnitt { margin-top: 0; margin-bottom: 0; padding: clamp(2rem, 5vw, 3.25rem) 0; border-top: 1px solid var(--sw-linie); gap: clamp(1.5rem, 4vw, 3rem); }
.entry-content > .wp-block-columns.sw-abschnitt + :not(.sw-abschnitt) { margin-top: clamp(2rem, 5vw, 3rem); }
.sw-abschnitt :where(h2, h3):first-child { margin-top: 0; }
.sw-abschnitt .wp-block-image img { border-radius: var(--sw-radius); }
@media (min-width: 782px) { .wp-block-columns.sw-abschnitt--rechts { flex-direction: row-reverse; } }
.entry-content > .sw-aufruf { max-width: var(--sw-content); margin: clamp(2rem, 5vw, 3rem) auto; }

/* Einleitung etwas größer; Aufruf mit Bild daneben linksbündig */
.sw-lead { color: var(--sw-nacht); font-size: 1.15rem; line-height: 1.6; }
.sw-aufruf--links { text-align: left; }
.sw-aufruf--links .wp-block-buttons { justify-content: flex-start; }
.sw-aufruf .wp-block-columns { margin: 0; }
.sw-kartenraster.sw-knoepfe-gleich .wp-block-buttons.is-vertical { gap: 0.5rem; }
.sw-kartenraster .wp-block-button__link { font-size: 0.85rem; }

/* Mehr Luft zwischen Abschnitten in normalen Seiten */
.entry-content > :where(h2) { margin-top: 3rem; }
.entry-content > .wp-block-columns { margin-top: 2rem; margin-bottom: 2rem; }

/* Einfahr-Effekte beim Scrollen (nur Elemente unterhalb des ersten Bildschirms, siehe main.js) */
.sw-js .sw-reveal { opacity: 0; translate: 0 28px; transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sw-js .sw-reveal.is-visible { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.sw-js .sw-reveal { opacity: 1 !important; translate: none !important; }
}
