/*
 * Die Sichtweisen – Bücher
 * Alle Regeln gelten nur innerhalb von .swb und lassen das übrige Design unberührt.
 * Farben und Schriften lassen sich über die Variablen im ersten Block anpassen.
 */

.swb {
	--swb-blau: #1b2a4a;
	--swb-blau-text: #2b3a5c;
	--swb-creme: #f5f1e8;
	--swb-papier: #fbf9f4;
	--swb-linie: #ddd6c6;
	--swb-gruen: #4f6b5b;
	--swb-gruen-dunkel: #3c5446;
	--swb-gruen-hell: #e4eae2;
	--swb-gold: #a6852b;
	--swb-schrift-titel: "EB Garamond", Georgia, "Times New Roman", serif;
	--swb-schrift-text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

	color: var(--swb-blau);
	font-family: var(--swb-schrift-text);
	font-size: 18px;
	line-height: 1.6;
	text-align: left;
}

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

.swb.swb-vorlage {
	max-width: 1160px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 56px) clamp(20px, 5vw, 48px) clamp(48px, 7vw, 96px);
	width: 100%;
}

.swb h1, .swb h2, .swb h3, .swb h4 {
	font-family: var(--swb-schrift-titel);
	font-weight: 500;
	color: var(--swb-blau);
	line-height: 1.15;
	margin: 0;
	letter-spacing: 0;
	text-transform: none;
}
.swb p { margin: 0; font-size: inherit; line-height: inherit; }
.swb a { color: var(--swb-blau); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.swb a:hover { color: var(--swb-gruen-dunkel); }
.swb a:focus-visible, .swb .swb-knopf:focus-visible { outline: 3px solid var(--swb-gold); outline-offset: 3px; background: none; }
.swb img { max-width: 100%; height: auto; display: block; }
.swb ul, .swb ol, .swb dl, .swb dd { margin: 0; padding: 0; }
.swb p, .swb ul, .swb ol, .swb li, .swb dl, .swb dt, .swb dd, .swb nav, .swb span { font-family: inherit; }
.swb li { font-size: inherit; line-height: inherit; }

.swb .swb-nur-vorlesen {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Titel und Einleitungen */
.swb .swb-titel { font-size: clamp(34px, 4.6vw, 56px); }
.swb .swb-titel-klein { font-size: clamp(30px, 3.6vw, 44px); }
.swb .swb-dachzeile, .swb .swb-marke {
	font-family: var(--swb-schrift-text);
	font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.swb .swb-dachzeile { color: var(--swb-gruen); margin-bottom: 8px; }
.swb .swb-intro { max-width: 40em; margin-top: 12px; color: var(--swb-blau-text); }
.swb .swb-uebersicht-kopf { margin-bottom: clamp(24px, 4vw, 44px); }
.swb .swb-uebersicht-kopf::after {
	content: ""; display: block; width: 120px; height: 8px; margin-top: 20px;
	background: no-repeat left center / 120px 8px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16'%3E%3Cpath d='M0 8C20 0 40 0 60 8s40 8 60 0 40-8 60 0 40 8 60 0' fill='none' stroke='%23a6852b' stroke-width='2'/%3E%3C/svg%3E");
}

/* Marken */
.swb .swb-marke { display: inline-block; padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; line-height: 1.5; }
.swb .swb-marke-neu { background: var(--swb-blau); color: var(--swb-creme); }
.swb .swb-marke-geplant { border: 1.5px solid var(--swb-gruen-dunkel); color: var(--swb-gruen-dunkel); padding: 2px 12px; }
.swb .swb-marke-archiv { background: var(--swb-linie); color: var(--swb-blau); }

/* Knöpfe */
.swb .swb-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.swb .swb-knopf {
	display: inline-flex; align-items: center; justify-content: center; text-align: center;
	min-height: 52px; padding: 10px 26px;
	border: 1.5px solid var(--swb-blau); border-radius: 4px;
	background: transparent; color: var(--swb-blau);
	font-family: var(--swb-schrift-text); font-size: 17px; font-weight: 600; line-height: 1.25;
	text-decoration: none;
}
.swb .swb-knopf:hover { background: var(--swb-gruen-hell); color: var(--swb-blau); }
.swb .swb-knopf-haupt { background: var(--swb-blau); color: var(--swb-creme); }
.swb .swb-knopf-haupt:hover { background: #0f1a33; color: var(--swb-creme); }
.swb .swb-knopf-hell { background: var(--swb-creme); border-color: var(--swb-creme); color: var(--swb-blau); }
.swb .swb-knopf-hell:hover { background: #fff; color: var(--swb-blau); }
.swb .swb-knopf-umriss-hell { border-color: var(--swb-creme); color: var(--swb-creme); }
.swb .swb-knopf-umriss-hell:hover { background: rgba(245, 241, 232, 0.12); color: var(--swb-creme); }

/* Cover */
.swb .swb-cover { background: var(--swb-papier); border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px var(--swb-linie); }
/* Das Cover behält sein eigenes Seitenverhältnis. !important, weil manche Themes Bildgrößen direkt am Bild setzen. */
.swb .swb-cover-bild { width: 100% !important; height: auto !important; max-width: none !important; }
.swb .swb-cover-ohne {
	aspect-ratio: 722 / 1024;
	display: flex; flex-direction: column; justify-content: space-between;
	padding: 12%; background: var(--swb-blau); color: var(--swb-creme); box-shadow: none;
}
.swb .swb-cover-titel { font-family: var(--swb-schrift-titel); font-size: clamp(16px, 2.2vw, 24px); line-height: 1.2; overflow-wrap: anywhere; }
.swb .swb-cover-autor { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Buchkarten */
.swb .swb-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: clamp(24px, 3.5vw, 44px) clamp(24px, 3vw, 40px); }
.swb .swb-karte { display: flex; gap: clamp(16px, 2.4vw, 28px); align-items: flex-start; min-width: 0; }
.swb .swb-karte-cover { flex: 0 0 clamp(104px, 26%, 168px); display: block; text-decoration: none; }
.swb .swb-karte-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.swb .swb-karte .swb-marke { margin-bottom: 2px; }
.swb .swb-karte-titel { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.2; overflow-wrap: anywhere; }
.swb .swb-karte-titel a { text-decoration: none; }
.swb .swb-karte-titel a:hover { text-decoration: underline; }
.swb .swb-karte-untertitel { font-size: 16px; font-weight: 600; color: var(--swb-gruen); line-height: 1.4; }
.swb .swb-karte-kurz { font-size: 17px; color: var(--swb-blau-text); }
.swb .swb-karte-hinweis { font-size: 15px; color: var(--swb-gruen-dunkel); }
.swb .swb-karte-mehr a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; }

.swb .swb-karte-gross { margin-bottom: clamp(28px, 4vw, 48px); padding: clamp(20px, 3vw, 36px); background: var(--swb-papier); border: 1px solid var(--swb-linie); border-radius: 4px; align-items: center; }
.swb .swb-karte-gross .swb-karte-cover { flex-basis: clamp(120px, 28%, 260px); }
.swb .swb-karte-gross .swb-karte-titel { font-size: clamp(26px, 3.4vw, 40px); }
.swb .swb-karte-gross .swb-karte-kurz { font-size: 18px; max-width: 34em; }
.swb .swb-alle { margin-top: clamp(24px, 4vw, 40px); }

/* Kategorie-Filter */
.swb .swb-filter { margin-bottom: clamp(24px, 4vw, 40px); }
.swb .swb-filter ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.swb .swb-filter a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--swb-blau); border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; }
.swb .swb-filter a[aria-current="page"] { background: var(--swb-blau); color: var(--swb-creme); }

/* Buchseite */
.swb .swb-pfad { font-size: 15px; color: var(--swb-blau-text); margin-bottom: clamp(16px, 3vw, 28px); }
.swb .swb-hinweis { padding: 16px 20px; margin-bottom: 24px; background: var(--swb-papier); border: 1px solid var(--swb-linie); border-left: 4px solid var(--swb-gold); border-radius: 4px; font-size: 17px; }

.swb .swb-kopf { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); align-items: center; }
.swb .swb-kopf-cover { flex: 0 1 320px; width: min(100%, 320px); margin: 0 auto; }
.swb .swb-kopf-text { flex: 1 1 380px; min-width: 0; }
.swb .swb-untertitel { margin-top: 10px; font-family: var(--swb-schrift-titel); font-size: clamp(21px, 2.4vw, 28px); line-height: 1.3; color: var(--swb-gruen-dunkel); }
.swb .swb-autor { margin-top: 10px; font-size: 16px; font-weight: 600; letter-spacing: 0.04em; }
.swb .swb-kurz { margin-top: 18px; font-size: clamp(18px, 1.9vw, 21px); color: var(--swb-blau-text); max-width: 34em; }
.swb .swb-termin { margin-top: 16px; font-weight: 600; color: var(--swb-gruen-dunkel); }
.swb-buchhandel { margin-top: 16px; font-weight: 600; color: var(--swb-gruen-dunkel); }
.swb-band .swb-buchhandel { margin-top: 0; }
.swb .swb-preis { margin-top: 12px; font-size: 16px; color: var(--swb-blau-text); }

.swb .swb-koerper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: clamp(28px, 5vw, 72px); margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--swb-linie); align-items: start; }
.swb .swb-koerper-einspaltig { grid-template-columns: minmax(0, 46em); }
.swb .swb-haupt { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); min-width: 0; }
.swb .swb-abschnitt h2, .swb .swb-band h2, .swb .swb-kontakt h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.swb .swb-text { max-width: 40em; color: var(--swb-blau-text); }
.swb .swb-text > * + * { margin-top: 1em; }
.swb .swb-abschnitt > p { max-width: 40em; color: var(--swb-blau-text); }
.swb .swb-liste, .swb .swb-inhalt { max-width: 40em; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--swb-blau-text); }
.swb .swb-liste li { position: relative; padding-left: 26px; margin: 0; }
.swb .swb-liste li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 2px; background: var(--swb-gold); }
.swb .swb-inhalt { counter-reset: swb-inhalt; }
.swb .swb-inhalt li { counter-increment: swb-inhalt; display: flex; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--swb-linie); margin: 0; }
.swb .swb-inhalt li::before { content: counter(swb-inhalt, decimal-leading-zero); font-family: var(--swb-schrift-titel); color: var(--swb-gruen); min-width: 1.6em; }

.swb .swb-seite { display: flex; flex-direction: column; gap: 24px; }
.swb .swb-angaben { padding: 20px 22px; background: var(--swb-papier); border: 1px solid var(--swb-linie); border-radius: 4px; }
.swb .swb-angaben h2 { font-family: var(--swb-schrift-text); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--swb-gruen-dunkel); margin-bottom: 12px; }
.swb .swb-angaben dl { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.swb .swb-angaben dt { font-weight: 600; }
.swb .swb-angaben dd { color: var(--swb-blau-text); overflow-wrap: anywhere; }
.swb .swb-begriffe { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.swb .swb-begriffe a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--swb-gruen); border-radius: 999px; font-size: 15px; text-decoration: none; }

.swb .swb-band { margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 4vw, 44px); background: var(--swb-gruen-hell); border-radius: 4px; }
.swb .swb-band p { max-width: 38em; }
.swb .swb-passend { margin-top: clamp(40px, 6vw, 72px); }
.swb .swb-passend h2 { margin-bottom: 24px; }
.swb .swb-verweise { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.swb .swb-geplant { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--swb-linie); }
.swb .swb-geplant h2 { margin-bottom: 24px; }
.swb .swb-leer { color: var(--swb-blau-text); }

.swb .swb-kontakt { margin-top: clamp(40px, 6vw, 72px); padding: clamp(28px, 5vw, 56px); background: var(--swb-blau); color: var(--swb-creme); border-radius: 4px; }
.swb .swb-kontakt h2 { color: var(--swb-creme); }
.swb .swb-kontakt p { color: #e3decf; max-width: 36em; }

/* Bausteine in normalen Seiten nutzen die Breite der Seite */
.swb.swb-baustein { max-width: none; width: 100%; }

@media (max-width: 860px) {
	.swb .swb-koerper { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.swb { font-size: 17px; }
	.swb .swb-knoepfe { flex-direction: column; align-items: stretch; }
	.swb .swb-kopf-cover { width: min(64%, 240px); margin: 0; flex: 0 0 auto; }
	.swb .swb-karte-gross { flex-direction: column; align-items: flex-start; }
	.swb .swb-karte-gross .swb-karte-cover { flex-basis: auto; width: min(56%, 200px); }
}
@media print {
	.swb .swb-knoepfe, .swb .swb-kontakt, .swb .swb-filter { display: none; }
}

/* ------------------------------------------------------------------------
 * Workshops, Seminare, Kurse und Materialien
 * --------------------------------------------------------------------- */
.swb .swb-marke-voll { background: #5a4a1a; color: var(--swb-creme); }
.swb .swa-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 3vw, 32px); }
.swb .swa-karte { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--swb-linie); border-top: 3px solid var(--swb-blau); border-radius: 4px; overflow: hidden; }
.swb .swa-karte-geplant { background: transparent; border: 1.5px dashed var(--swb-gruen); }
.swb .swa-karte-abgeschlossen { background: transparent; border-top-color: var(--swb-linie); }
.swb .swa-karte-abgeschlossen .swb-karte-titel a, .swb .swa-karte-abgeschlossen .swb-karte-kurz { color: var(--swb-blau-text); }
.swb .swa-karte-bild { display: block; }
.swb .swa-bild { width: 100% !important; height: auto !important; max-width: none !important; aspect-ratio: 16 / 10; object-fit: cover; }
.swb .swa-karte-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 24px 16px; flex: 1 1 auto; }
.swb .swa-karte-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; width: 100%; }
.swb .swa-karte-kopf .swb-dachzeile, .swb .swa-karte-kopf .swb-marke { margin: 0; }
.swb .swa-karte .swb-karte-titel { font-size: 26px; }
.swb .swa-karte .swb-karte-kurz { flex: 1 1 auto; }
.swb .swa-karte-fakten { font-size: 16px; font-weight: 600; color: var(--swb-gruen-dunkel); }
.swb .swa-gruppe + .swa-gruppe { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--swb-linie); }
.swb .swa-gruppe > h2, .swb .swa-gruppe > h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 20px; }
.swb .swa-gruppe-text { margin: -10px 0 20px; color: var(--swb-blau-text); }
.swb .swa-zum-thema > h2 { margin-bottom: 24px; }
.swb .swa-zum-buch .swa-raster, .swb .swa-startseite .swa-raster { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.swb .swa-kopf { align-items: flex-start; }
.swb .swa-kopf .swb-kopf-text { flex: 1 1 420px; }
.swb .swa-kopf .swa-karte-kopf { justify-content: flex-start; gap: 8px 16px; margin-bottom: 12px; }
.swb .swa-kopf-bild { flex: 1 1 320px; min-width: 0; max-width: 520px; border-radius: 4px; overflow: hidden; }
.swb .swa-status-text { margin-top: 12px; font-weight: 600; }
.swb .swa-termine, .swb .swa-downloads { list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 40em; }
.swb .swa-termine li { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 0 0 10px; margin: 0; border-bottom: 1px solid var(--swb-linie); }
.swb .swa-termin-datum { font-weight: 600; }
.swb .swa-termin-hinweis { color: var(--swb-blau-text); }
.swb .swa-termin-status { font-size: 15px; color: var(--swb-blau-text); }
.swb .swa-vorbei .swa-termin-datum { font-weight: 400; text-decoration: line-through; color: var(--swb-blau-text); }
.swb .swa-downloads { align-items: flex-start; }
.swb .swa-downloads li { margin: 0; }
@media (max-width: 560px) {
	.swb .swa-downloads { align-items: stretch; }
}

/* ------------------------------------------------------------------------
 * Landingpages (Seitenvorlage „Die Sichtweisen: Landingpage“)
 * Der Inhalt kommt aus dem WordPress-Editor. Hier steht nur die Gestaltung.
 * --------------------------------------------------------------------- */
.swb .swl-landing > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.swb .swl-abschnitt { padding: clamp(32px, 5vw, 64px) 0; margin: 0; border-top: 1px solid var(--swb-linie); max-width: none; }
/* Klassische Themes legen in jede Gruppe noch einen inneren Behälter. Beide Fälle sind abgedeckt. */
.swb .swl-abschnitt > *, .swb .swl-abschnitt > .wp-block-group__inner-container > * { max-width: 46em !important; margin-left: 0 !important; margin-right: 0 !important; }
.swb .swl-abschnitt > * + *, .swb .swl-abschnitt > .wp-block-group__inner-container > * + * { margin-top: 18px; }
.swb .swl-abschnitt > .wp-block-group__inner-container,
.swb .swl-abschnitt > .wp-block-columns, .swb .swl-abschnitt > .swb-baustein, .swb .swl-abschnitt > .swp-anfrage,
.swb .swl-abschnitt > .wp-block-group__inner-container > .wp-block-columns, .swb .swl-abschnitt > .wp-block-group__inner-container > .swb-baustein, .swb .swl-abschnitt > .wp-block-group__inner-container > .swp-anfrage { max-width: none !important; }
.swb .swl-abschnitt > .wp-block-group__inner-container { margin: 0; padding: 0; }
.swb .swl-kopf { border-top: 0; padding-top: 0; }
.swb .swl-kopf h1 { font-size: clamp(34px, 4.8vw, 58px); max-width: 18em !important; }
.swb .swl-kopf::after { content: ""; display: block; width: 120px; height: 8px; margin-top: 28px; background: no-repeat left center / 120px 8px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16'%3E%3Cpath d='M0 8C20 0 40 0 60 8s40 8 60 0 40-8 60 0 40 8 60 0' fill='none' stroke='%23a6852b' stroke-width='2'/%3E%3C/svg%3E"); }
.swb .swl-dachzeile { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--swb-gruen); }
.swb .swl-lead { font-size: clamp(19px, 2vw, 22px); color: var(--swb-blau-text); max-width: 36em !important; }
.swb .swl-abschnitt h2 { font-size: clamp(28px, 3.4vw, 42px); max-width: 22em !important; }
.swb .swl-abschnitt h3 { font-size: 24px; margin-bottom: 10px; }
.swb .swl-abschnitt p { color: var(--swb-blau-text); }
.swb .swl-hell, .swb .swl-gruen { padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); border-top: 0; border-radius: 4px; }
.swb .swl-hell { background: var(--swb-papier); box-shadow: 0 0 0 1px var(--swb-linie); }
.swb .swl-gruen { background: var(--swb-gruen-hell); }
.swb .swl-hell + .swl-abschnitt, .swb .swl-gruen + .swl-abschnitt { border-top: 0; }
.swb .swl-abschnitt .wp-block-list { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 10px; color: var(--swb-blau-text); }
.swb .swl-abschnitt .wp-block-list li { position: relative; padding-left: 26px; margin: 0; }
.swb .swl-abschnitt .wp-block-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 2px; background: var(--swb-gold); }
.swb .swl-abschnitt .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(20px, 3vw, 40px); margin-bottom: 0; align-items: start; }
.swb .swl-abschnitt .wp-block-column { min-width: 0; margin: 0; }
.swb .swl-abschnitt .wp-block-column > * + * { margin-top: 10px; }
.swb .swl-abschnitt .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.swb .swl-abschnitt .wp-block-button { margin: 0; }
.swb .swl-abschnitt .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; text-align: center;
	min-height: 52px; padding: 10px 26px; border: 1.5px solid var(--swb-blau); border-radius: 4px;
	background: var(--swb-blau) !important; color: var(--swb-creme) !important; border-color: var(--swb-blau) !important;
	font-family: var(--swb-schrift-text); font-size: 17px; font-weight: 600; line-height: 1.25; text-decoration: none;
}
.swb .swl-abschnitt .wp-block-button__link:hover { background: #0f1a33 !important; color: var(--swb-creme) !important; }
.swb .swl-abschnitt .is-style-outline .wp-block-button__link { background: transparent !important; color: var(--swb-blau) !important; }
.swb .swl-abschnitt .is-style-outline .wp-block-button__link:hover { background: var(--swb-gruen-hell) !important; color: var(--swb-blau) !important; }
.swb .swl-formular { border-top: 0; padding-bottom: 0; }

/* Leistungskarten */
.swb .swl-karte { border-top-color: var(--swb-gruen); }

/* ------------------------------------------------------------------------
 * Formular „Projektanfrage“
 * --------------------------------------------------------------------- */
.swb.swp-anfrage { padding: clamp(24px, 4vw, 48px); background: var(--swb-papier); border: 1px solid var(--swb-linie); border-top: 3px solid var(--swb-blau); border-radius: 4px; scroll-margin-top: 24px; }
.swb.swp-anfrage .swb-intro { margin-bottom: 24px; }
.swb .swp-formular { max-width: 820px; }
.swb .swp-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.swb .swp-breit { grid-column: 1 / -1; }
.swb .swp-feld label { display: block; font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.swb .swp-optional { font-weight: 400; color: var(--swb-blau-text); font-size: 15px; }
.swb .swp-pflicht { color: #9a2a1f; }
.swb .swp-feld input[type="text"], .swb .swp-feld input[type="email"], .swb .swp-feld input[type="tel"], .swb .swp-feld select, .swb .swp-feld textarea {
	display: block; width: 100%; min-height: 50px; padding: 10px 14px; margin: 0;
	border: 1.5px solid #6b7690; border-radius: 4px; background: #fff; color: var(--swb-blau);
	font-family: var(--swb-schrift-text); font-size: 17px; line-height: 1.4; box-shadow: none;
}
.swb .swp-feld textarea { min-height: 160px; resize: vertical; }
.swb .swp-feld input:focus-visible, .swb .swp-feld select:focus-visible, .swb .swp-feld textarea:focus-visible, .swb .swp-formular button:focus-visible { outline: 3px solid var(--swb-gold); outline-offset: 2px; border-color: var(--swb-blau); }
.swb .swp-hilfe { font-size: 15px; color: var(--swb-blau-text); margin-top: 6px; }
.swb .swp-pflichthinweis { font-size: 15px; color: var(--swb-blau-text); margin-bottom: 14px; }
.swb .swp-feld-fehler input, .swb .swp-feld-fehler select, .swb .swp-feld-fehler textarea { border-color: #9a2a1f; border-width: 2px; }
.swb .swp-fehlertext { margin-top: 6px; font-size: 16px; font-weight: 600; color: #9a2a1f; }
.swb .swp-einwilligung { margin-top: 22px; }
.swb .swp-einwilligung label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.swb .swp-einwilligung input { width: 22px; height: 22px; margin: 3px 0 0; flex: 0 0 auto; }
.swb .swp-formular button.swb-knopf { cursor: pointer; margin-top: 22px; background: var(--swb-blau) !important; color: var(--swb-creme) !important; border: 1.5px solid var(--swb-blau) !important; }
.swb .swp-formular button.swb-knopf:hover { background: #0f1a33 !important; }
.swb .swp-meldung { padding: 18px 22px; margin: 0 0 24px; border-radius: 4px; border: 1px solid; border-left-width: 5px; }
.swb .swp-meldung > * + * { margin-top: 8px; }
.swb .swp-meldung ul { padding-left: 20px; list-style: disc; }
.swb .swp-meldung:focus { outline: 3px solid var(--swb-gold); outline-offset: 2px; }
.swb .swp-erfolg { background: var(--swb-gruen-hell); border-color: var(--swb-gruen-dunkel); }
.swb .swp-fehler { background: #fbeeec; border-color: #9a2a1f; }
.swb .swp-fehler a { color: #7a1f17; }
.swb .swp-nicht-ausfuellen { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
	.swb .swp-raster { grid-template-columns: minmax(0, 1fr); }
	.swb .swp-formular button.swb-knopf { width: 100%; }
}

/* Ein Blick ins Buch (Grundform; das Theme „Die Sichtweisen“ ergänzt Tiefe und Schatten) */
.swb .sw-aufgeschlagen { margin: 0; max-width: 820px; }
.swb .sw-aufgeschlagen__buch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; box-shadow: 0 12px 28px rgba(27, 42, 74, 0.18); }
.swb .sw-aufgeschlagen__seite { display: block; width: 100% !important; max-width: 100% !important; min-width: 0; height: auto !important; }
.swb .sw-aufgeschlagen figcaption { margin-top: 12px; }

/* Buch zum Umdrehen (Grundform; Tiefe und Drehung ergänzt das Theme) */
.swb .sw-buch3d__koerper { position: relative; }
.swb .sw-buch3d__vorne { display: block; width: 100% !important; height: auto !important; }
.swb .sw-buch3d__hinten, .swb .sw-buch3d__ruecken { display: none; }

/* Perspektivwechsel: Grundform ohne Theme. Ohne JavaScript stehen alle Inhalte untereinander. */
.swv-karten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill,minmax(min(260px,100%),1fr)); gap: 20px; }
.swv-js .swv-karte .swv-karte__hinten { display: none; }
.swv-js .swv-karte.ist-gewendet .swv-karte__vorne { display: none; }
.swv-js .swv-karte.ist-gewendet .swv-karte__hinten { display: block; }
.swv-zustand { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.swv-knopf[hidden], .swv-zwei__wahl[hidden], .swv-zwei__panel[hidden], .swv-bild__ansicht[hidden] { display: none !important; }

/* Referenzen und Termine: Grundform ohne Theme */
.swr-karten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill,minmax(min(280px,100%),1fr)); gap: 20px; }
.swr-karte[hidden] { display: none !important; }
.swa-terminbereich .sw-termine { list-style: none; margin: 0; padding: 0; }

/* -------------------------------------------------------------------------
 * Leseprobe zum Blättern (leseprobe.js)
 * ---------------------------------------------------------------------- */
html.swlp-offen { overflow: hidden; }
.swlp {
	--swlp-grund: var(--sw-nacht, #14203A);
	--swlp-text: var(--sw-creme, #F5F1E8);
	--swlp-gold: var(--sw-gold-hell, #D9BE6A);
	width: min(1240px, calc(100vw - 24px));
	height: min(940px, calc(100dvh - 24px));
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: var(--swlp-grund);
	color: var(--swlp-text);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
	overflow: hidden;
}
.swlp[open] { display: flex; flex-direction: column; }
.swlp::backdrop { background: rgba(10, 16, 30, .78); }
.swlp-unsichtbar { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.swlp-kopf { display: flex; align-items: center; gap: 16px; padding: 14px 16px 10px 22px; border-bottom: 1px solid rgba(245, 241, 232, .12); }
.swlp-kopf > div { flex: 1 1 auto; min-width: 0; }
.swlp-kennzeile { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--swlp-gold); font-weight: 600; }
.swlp-titel { margin: 2px 0 0; font-family: var(--sw-serif, Georgia, serif); font-size: clamp(19px, 2.4vw, 26px); font-weight: 500; line-height: 1.2; color: var(--swlp-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swlp-stand { margin: 0; font-size: 15px; color: rgba(245, 241, 232, .85); white-space: nowrap; }
.swlp-zu { flex: 0 0 auto; width: 48px; height: 48px; border: 1.5px solid rgba(245, 241, 232, .4); border-radius: 50%; background: transparent; color: var(--swlp-text); font-size: 28px; line-height: 1; cursor: pointer; }
.swlp-zu:hover { border-color: var(--swlp-text); }
.swlp button:focus-visible, .swlp a:focus-visible { outline: 3px solid var(--swlp-gold); outline-offset: 3px; }
.swlp-buehne { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 12px; touch-action: pan-y; }
.swlp-pfeil { flex: 0 0 auto; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(245, 241, 232, .1); color: var(--swlp-text); font-size: 36px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding-bottom: 4px; }
.swlp-pfeil:hover:not(:disabled) { background: rgba(245, 241, 232, .2); }
.swlp-pfeil:disabled { opacity: .25; cursor: default; }
.swlp-buch { position: relative; display: flex; justify-content: center; perspective: 2400px; height: var(--swlp-h, 70vh); }
.swlp-seite { position: relative; width: var(--swlp-w, 50vw); height: var(--swlp-h, 70vh); background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.swlp-seite.ist-leer, .swlp-seite:empty { background: transparent; box-shadow: none; }
.swlp.ist-fehler .swlp-buch, .swlp.ist-fehler .swlp-pfeil, .swlp.ist-fehler .swlp-hilfe { display: none; }
.swlp-seite--rechts:empty { display: none; }
.swlp-buch.ist-doppel .swlp-seite--rechts:empty { display: block; background: transparent; box-shadow: none; }
.swlp-seite canvas, .swlp-blatt canvas { display: block; width: 100%; height: 100%; }
/* Buchrücken: leichte Schatten zur Mitte hin */
.swlp-buch.ist-doppel .swlp-seite--links:not(.ist-leer)::after,
.swlp-buch.ist-doppel .swlp-seite--rechts:not(.ist-leer)::after { content: ""; position: absolute; top: 0; bottom: 0; width: 9%; pointer-events: none; }
.swlp-buch.ist-doppel .swlp-seite--links::after { right: 0; background: linear-gradient(to left, rgba(0, 0, 0, .18), transparent); }
.swlp-buch.ist-doppel .swlp-seite--rechts::after { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, .2), transparent); }
/* Das Blatt beim Umblättern */
.swlp-blatt { position: absolute; top: 0; width: var(--swlp-w); height: var(--swlp-h); transform-style: preserve-3d; z-index: 2; }
.swlp-blatt--vor { left: 50%; transform-origin: left center; animation: swlp-vor .7s cubic-bezier(.45, .05, .3, 1) forwards; }
.swlp-blatt--zurueck { right: 50%; transform-origin: right center; animation: swlp-zurueck .7s cubic-bezier(.45, .05, .3, 1) forwards; }
.swlp-blatt__vorne, .swlp-blatt__hinten { position: absolute; inset: 0; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.swlp-blatt__hinten { transform: rotateY(180deg); }
.swlp-blatt__hinten.ist-leer { background: transparent; box-shadow: none; }
@keyframes swlp-vor { from { transform: rotateY(0); } to { transform: rotateY(-180deg); } }
@keyframes swlp-zurueck { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
.swlp-gleiten-vor .swlp-seite--links { animation: swlp-rein-rechts .35s ease-out; }
.swlp-gleiten-zurueck .swlp-seite--links { animation: swlp-rein-links .35s ease-out; }
@keyframes swlp-rein-rechts { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes swlp-rein-links { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.swlp-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 10px 22px 14px; border-top: 1px solid rgba(245, 241, 232, .12); font-size: 15px; }
.swlp-hilfe { margin: 0; color: rgba(245, 241, 232, .75); }
.swlp-pdf { display: inline-flex; align-items: center; min-height: 44px; color: var(--swlp-text); font-weight: 600; text-underline-offset: 3px; }
.swlp.ist-fehler .swlp-stand { white-space: normal; color: var(--swlp-text); }
@media (max-width: 640px) {
	.swlp { width: 100vw; height: 100dvh; border-radius: 0; }
	.swlp-kopf { flex-wrap: wrap; padding: 10px 10px 8px 16px; gap: 4px 12px; }
	.swlp-stand { order: 3; flex-basis: 100%; font-size: 14px; }
	.swlp-buehne { gap: 0; padding: 8px 6px; }
	/* Auf dem Handy liegen die Pfeile über dem Seitenrand, die Seite bekommt die ganze Breite. */
	.swlp-pfeil { position: absolute; z-index: 3; top: 50%; width: 44px; height: 44px; margin-top: -22px; font-size: 30px; background: rgba(20, 32, 58, .82); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
	.swlp-zurueck { left: 4px; }
	.swlp-vor { right: 4px; }
	.swlp-pfeil:disabled { opacity: 0; pointer-events: none; }
	.swlp-hilfe { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.swlp-blatt, .swlp-gleiten-vor .swlp-seite--links, .swlp-gleiten-zurueck .swlp-seite--links { animation: none !important; }
}

/* Gedankenimpuls beim ersten Besuch: kleines Kärtchen am Rand, kein Pop-up */
.swv-impuls { position: fixed; z-index: 50; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: min(360px, calc(100vw - 32px)); margin: 0; padding: 20px 22px 14px; border-radius: 6px; background: var(--swb-papier); color: var(--swb-blau); border: 1px solid var(--swb-linie); border-left: 3px solid var(--swb-gold); box-shadow: 0 4px 8px rgba(20,32,58,.10), 0 18px 40px rgba(20,32,58,.18); opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
.swv-impuls.ist-offen { opacity: 1; transform: none; }
.swv-impuls[hidden] { display: none !important; }
.swv-impuls .swv-impuls__marke { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #46536b; }
.swv-impuls .swv-impuls__zitat { margin: 0; padding: 0; border: 0; }
.swv-impuls .swv-impuls__zitat p { margin: 0; font-family: var(--swb-schrift-titel); font-size: 22px; line-height: 1.3; color: var(--swb-blau); }
.swv-impuls .swv-impuls__quelle { margin: 8px 0 0; font-size: 15px; color: #46536b; }
.swv-impuls .swv-impuls__aktionen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin: 10px 0 0; font-size: 16px; }
.swv-impuls .swv-impuls__aktionen a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.swv-impuls .swv-impuls__zu { min-height: 44px; padding: 0 14px; margin-left: auto; border: 1.5px solid var(--swb-blau); border-radius: 4px; background: transparent; color: var(--swb-blau); font: 600 16px/1.2 var(--swb-schrift-text); cursor: pointer; }
.swv-impuls .swv-impuls__zu:hover { background: var(--swb-gruen-hell); }
.swv-impuls .swv-impuls__zu:focus-visible { outline: 3px solid var(--swb-gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .swv-impuls { transition: none; transform: none; } }
@media print { .swv-impuls { display: none !important; } }
