/* ==========================================================================
   FSVK – Theme-Styles (Entwurf A „Klar“)

    1. Tokens
    2. Grundlagen
    3. Layout-Hilfen
    4. Buttons & Links
    5. Kopfbereich & Menü
    6. Startseite
    7. Beitragskarten & Listen
    8. Einzelansicht & Blockinhalte
    9. Formulare (Contact Form 7, Suche)
   10. Footer
   11. EVK-Kalender anpassen
   12. Bewegung reduzieren
   ========================================================================== */


/* 1. Tokens
   -------------------------------------------------------------------------- */

:root {
	--fs-paper: #f3f6f4;
	--fs-surface: #ffffff;
	--fs-ink: #12312c;
	--fs-body: #34504a;
	--fs-muted: #566a65;            /* 5,6:1 auf Weiß */
	--fs-line: #dbe5e1;
	--fs-brand: #7cc8b0;            /* FSVK-Türkis */
	--fs-accent: #0d6e64;           /* 5,9:1 auf Weiß */
	--fs-accent-strong: #09534b;
	--fs-accent-soft: #e1f2ec;
	--fs-footer: #12312c;

	--fs-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--fs-wrap: 1200px;            /* Seitenbreite – überall gleich wie die Startseite */
	--fs-content: 760px;          /* schmale Spalte (z. B. „Aktuelles“ ohne Termine) */
	--fs-measure: 80ch;           /* maximale Zeilenlänge für Fließtext */
	--fs-form: 760px;             /* Breite der Formulare */
	--fs-gutter: clamp(1rem, 4vw, 1.5rem);
	--fs-radius: 16px;
	--fs-radius-lg: 20px;
	--fs-ease: cubic-bezier(.2, .7, .2, 1);
}


/* 2. Grundlagen
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--fs-paper);
	color: var(--fs-ink);
	font-family: var(--fs-font);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--fs-ink);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
}

p {
	margin: 0 0 1em;
}

::selection {
	background: var(--fs-brand);
	color: var(--fs-ink);
}

:focus-visible {
	outline: 2px solid var(--fs-accent);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: .75rem;
	left: .75rem;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	padding: .75rem 1rem;
	background: var(--fs-surface);
	color: var(--fs-ink);
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(18, 49, 44, .2);
}

.admin-hint {
	padding: .75rem 1rem;
	border: 1px dashed #b45309;
	border-radius: 10px;
	background: #fff8ed;
	color: #7c3a06;
	font-size: .9375rem;
}


/* 3. Layout-Hilfen
   -------------------------------------------------------------------------- */

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

.site-main {
	padding-block: clamp(2.5rem, 6vw, 3.5rem) 5rem;
}

.page-header {
	margin-bottom: 2rem;
}

.page-title,
.entry-title {
	font-size: clamp(2rem, 5vw, 2.75rem);
	letter-spacing: -.02em;
}


/* 4. Buttons & Links
   -------------------------------------------------------------------------- */

a {
	color: var(--fs-accent);
	text-underline-offset: .15em;
}

a:hover {
	color: var(--fs-accent-strong);
}

.button,
.wp-element-button,
.wp-block-button__link,
.wp-block-file .wp-block-file__button,
.wpcf7-submit,
button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 44px;
	padding: .75rem 1.375rem;
	border: 1px solid var(--fs-accent);
	border-radius: 999px;
	background: var(--fs-accent);
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--fs-ease), border-color .2s var(--fs-ease);
}

.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.wp-block-file .wp-block-file__button:hover,
.wpcf7-submit:hover,
button.button:hover {
	border-color: var(--fs-accent-strong);
	background: var(--fs-accent-strong);
	color: #fff;
}

.button--ghost,
.wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: var(--fs-line);
	background: var(--fs-surface);
	color: var(--fs-ink);
}

.button--ghost:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--fs-accent);
	background: var(--fs-surface);
	color: var(--fs-accent-strong);
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

.more-link {
	display: inline-block;
	padding-block: .5rem;
	font-weight: 600;
	text-decoration: none;
}

.more-link:hover {
	text-decoration: underline;
}


/* 5. Kopfbereich & Menü
   -------------------------------------------------------------------------- */

.site-header {
	position: relative;
	z-index: 50;
	background: var(--fs-surface);
	border-bottom: 1px solid var(--fs-line);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
	padding-block: 1rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	margin-right: auto;
	color: var(--fs-ink);
	text-decoration: none;
}

.brand:hover {
	color: var(--fs-ink);
}

.brand__logo {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	object-fit: cover;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.brand__name {
	font-size: 1.125rem;
	font-weight: 800;
}

.brand__sub {
	font-size: .8125rem;
	color: var(--fs-muted);
}

.site-nav__list,
.site-nav .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list > li > a,
.site-nav .sub-menu a {
	display: block;
	color: var(--fs-ink);
	font-size: .9375rem;
	font-weight: 500;
	text-decoration: none;
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a,
.site-nav__list .current-page-ancestor > a {
	color: var(--fs-accent-strong);
	font-weight: 600;
}

.subnav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fs-muted);
	cursor: pointer;
}

.subnav-toggle:hover {
	background: var(--fs-accent-soft);
	color: var(--fs-accent-strong);
}

.subnav-toggle svg {
	transition: transform .2s var(--fs-ease);
}

.is-open > .subnav-toggle svg {
	transform: rotate(180deg);
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: .5rem;
	min-height: 44px;
	padding: .5rem 1rem;
	border: 1px solid var(--fs-line);
	border-radius: 999px;
	background: var(--fs-surface);
	color: var(--fs-ink);
	font: inherit;
	font-size: .9375rem;
	font-weight: 600;
	cursor: pointer;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
	display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

/* Desktop: Pills mit Dropdowns (ab 1120px passen Logo, Menü und Button in eine Zeile) */
@media (min-width: 1120px) {
	/* Logo, Menü und Button bleiben in einer Zeile (kein Umbruch, auch bei 7+ Menüpunkten). */
	.site-header__inner {
		flex-wrap: nowrap;
		gap: 1.25rem;
	}

	.brand,
	.site-header__cta {
		flex-shrink: 0;
		white-space: nowrap;
	}

	.site-nav {
		display: flex;
		flex: 1 1 auto;
		min-width: 0;
		justify-content: center;
	}

	.site-nav__list {
		display: flex;
		flex-wrap: nowrap;
		gap: .125rem;
		white-space: nowrap;
	}

	.site-nav__list > li {
		position: relative;
		display: flex;
		align-items: center;
		border-radius: 999px;
	}

	.site-nav__list > li > a {
		padding: .625rem .75rem;
		border-radius: 999px;
	}

	.site-nav__list > .menu-item-has-children > a {
		padding-right: .125rem;
	}

	.site-nav__list > .menu-item-has-children > .subnav-toggle {
		width: 28px;
		margin-right: .25rem;
	}

	.site-nav__list > li:hover,
	.site-nav__list > li.is-open {
		background: var(--fs-paper);
	}

	.site-nav__list > .current-menu-item,
	.site-nav__list > .current-menu-ancestor,
	.site-nav__list > .current-page-ancestor {
		background: var(--fs-accent-soft);
	}

	.site-nav .sub-menu {
		position: absolute;
		top: calc(100% + .375rem);
		left: 0;
		z-index: 60;
		display: none;
		min-width: 16rem;
		padding: .5rem;
		border: 1px solid var(--fs-line);
		border-radius: 14px;
		background: var(--fs-surface);
		box-shadow: 0 12px 32px rgba(18, 49, 44, .12);
	}

	/* Brücke, damit das Dropdown beim Überfahren der Lücke offen bleibt. */
	.site-nav .sub-menu::before {
		content: "";
		position: absolute;
		inset: -.5rem 0 auto;
		height: .5rem;
	}

	.site-nav .menu-item-has-children:hover > .sub-menu,
	.site-nav .menu-item-has-children:focus-within > .sub-menu,
	.site-nav .menu-item-has-children.is-open > .sub-menu {
		display: block;
	}

	.site-nav .sub-menu a {
		padding: .625rem .875rem;
		border-radius: 10px;
	}

	.site-nav .sub-menu a:hover,
	.site-nav .sub-menu .current-menu-item > a {
		background: var(--fs-accent-soft);
		color: var(--fs-accent-strong);
	}

	.site-nav__cta {
		display: none !important;
	}
}

/* Schmaler Desktop (bzw. 125 % Skalierung): Menü etwas kompakter */
@media (min-width: 1120px) and (max-width: 1359.98px) {
	.site-header__inner {
		gap: 1rem;
	}

	.site-nav__list > li > a {
		padding: .5rem .5rem;
		font-size: .875rem;
	}

	.site-nav__list > .menu-item-has-children > a {
		padding-right: 0;
	}

	.site-header__cta {
		padding-inline: 1.125rem;
	}
}

/* Mobil/Tablet: Menü klappt unter den Kopf */
@media (max-width: 1119.98px) {
	.site-header__cta {
		display: none !important;
	}

	.js .nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		flex: 1 0 100%;
		padding-top: .5rem;
		border-top: 1px solid var(--fs-line);
	}

	.js .site-nav {
		display: none;
	}

	.js .nav-is-open .site-nav {
		display: block;
	}

	.site-nav__list > li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		border-bottom: 1px solid var(--fs-line);
	}

	.site-nav__list > li > a {
		flex: 1 1 auto;
		padding: .875rem 0;
		font-size: 1.0625rem;
	}

	.site-nav .subnav-toggle {
		width: 44px;
		height: 44px;
	}

	.site-nav .sub-menu {
		flex: 1 0 100%;
		padding: 0 0 .75rem 1rem;
	}

	.js .site-nav .sub-menu {
		display: none;
	}

	.js .site-nav .is-open > .sub-menu {
		display: block;
	}

	.site-nav .sub-menu a {
		padding: .625rem 0;
		color: var(--fs-body);
	}

	.site-nav__cta {
		margin-block: 1rem .5rem;
	}
}


/* 6. Startseite
   -------------------------------------------------------------------------- */

.front {
	display: flex;
	flex-direction: column;
	gap: clamp(3.5rem, 8vw, 4.5rem);
}

.hero {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 2rem;
}

.hero__text {
	display: flex;
	flex: 999 1 520px;
	flex-direction: column;
	justify-content: center;
	gap: 1.25rem;
	min-width: 0;
}

.hero--solo .hero__text {
	max-width: 760px;
}

.kicker {
	margin: 0;
	color: var(--fs-accent);
	font-size: .875rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hero__title {
	margin: 0;
	font-size: clamp(2.25rem, 6vw, 3.25rem);
	line-height: 1.05;
	letter-spacing: -.02em;
}

.hero__lead {
	max-width: 560px;
	margin: 0;
	color: var(--fs-muted);
	font-size: clamp(1.0625rem, 2vw, 1.1875rem);
	line-height: 1.55;
}

.hero .button-row {
	padding-top: .5rem;
}

.week {
	display: flex;
	flex: 1 1 340px;
	align-self: center;
	flex-direction: column;
	gap: 1.25rem;
	padding: 1.75rem;
	border: 1px solid var(--fs-line);
	border-radius: var(--fs-radius-lg);
	background: var(--fs-surface);
}

.week__title {
	margin: 0;
	color: var(--fs-muted);
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Ausgabe des Shortcodes: neutrale Grundformatierung */
.week__body > :last-child {
	margin-bottom: 0;
}

.week__body ul,
.week__body ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.week__office {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--fs-line);
}

.week__body:empty + .week__office,
.week__title + .week__office {
	padding-top: 0;
	border-top: 0;
}

.week__badge {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background: var(--fs-accent-soft);
	color: var(--fs-accent-strong);
}

.week__office-text {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}

.week__office-text strong {
	font-size: 1.0625rem;
}

.week__office-text span {
	color: var(--fs-muted);
	font-size: .9375rem;
}

.week__office-text a {
	font-size: .9375rem;
	font-weight: 600;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: 1.5rem;
}

.section-head h2,
.front-news > h2,
.front-events > h2 {
	margin: 0;
	font-size: clamp(1.625rem, 4vw, 2rem);
}

.section-head a {
	font-weight: 600;
	text-decoration: none;
}

.section-head a:hover {
	text-decoration: underline;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cards > li {
	display: flex;
}

.card {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: .625rem;
	padding: 1.5rem;
	border: 1px solid var(--fs-line);
	border-radius: var(--fs-radius);
	background: var(--fs-surface);
	color: var(--fs-ink);
	text-decoration: none;
	transition: border-color .2s var(--fs-ease), transform .2s var(--fs-ease), box-shadow .2s var(--fs-ease);
}

.card:hover {
	border-color: var(--fs-brand);
	color: var(--fs-ink);
	box-shadow: 0 10px 24px rgba(18, 49, 44, .08);
	transform: translateY(-2px);
}

.card .icon {
	color: var(--fs-accent);
}

.card__title {
	font-size: 1.1875rem;
}

.card__text {
	color: var(--fs-muted);
	font-size: .9375rem;
	line-height: 1.5;
}

.front-split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 2.5rem;
}

.front-news {
	display: flex;
	flex: 999 1 560px;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
}

.front-split--solo .front-news {
	max-width: var(--fs-content);
}

.front-events {
	display: flex;
	flex: 1 1 300px;
	flex-direction: column;
	gap: 1.25rem;
}

.front-events__list {
	padding: .5rem 1.5rem;
	border: 1px solid var(--fs-line);
	border-radius: var(--fs-radius);
	background: var(--fs-surface);
}


/* 7. Beitragskarten & Listen
   -------------------------------------------------------------------------- */

.post-list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .625rem;
	padding: 1.75rem;
	border: 1px solid var(--fs-line);
	border-radius: var(--fs-radius);
	background: var(--fs-surface);
	transition: border-color .2s var(--fs-ease);
}

.post-card:hover {
	border-color: var(--fs-brand);
}

.post-card__date,
.entry-date {
	color: var(--fs-muted);
	font-size: .875rem;
}

.post-card__title {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 700;
}

.post-card__title a {
	color: var(--fs-ink);
	text-decoration: none;
}

/* Die ganze Karte ist über den Titel-Link klickbar. */
.post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.post-card__title a:focus-visible {
	outline: none;
}

.post-card:focus-within {
	outline: 2px solid var(--fs-accent);
	outline-offset: 3px;
}

.post-card__excerpt {
	margin: 0;
	color: var(--fs-body);
	line-height: 1.6;
}

.post-card__more {
	color: var(--fs-accent);
	font-size: .9375rem;
	font-weight: 600;
	text-decoration: none;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 2rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 1rem;
	border: 1px solid var(--fs-line);
	border-radius: 999px;
	background: var(--fs-surface);
	color: var(--fs-ink);
	font-weight: 600;
	text-decoration: none;
}

.pagination .page-numbers.current {
	border-color: var(--fs-accent);
	background: var(--fs-accent);
	color: #fff;
}


/* 8. Einzelansicht & Blockinhalte
   -------------------------------------------------------------------------- */

/* Alle Bereiche der Einzelansicht nutzen dieselbe Breite wie die Startseite
   und beginnen an derselben linken Kante wie Logo und Startseiteninhalt. */
.entry-header,
.entry-thumbnail,
.entry-content,
.entry-footer,
.entry-comments {
	max-width: calc(var(--fs-wrap) + 2 * var(--fs-gutter));
	margin-inline: auto;
	padding-inline: var(--fs-gutter);
}

.entry-header {
	margin-bottom: 2rem;
}

.entry-date {
	display: block;
	margin-bottom: .5rem;
}

.entry-thumbnail {
	margin-block: 0 2.5rem;
}

.entry-thumbnail img {
	display: block;
	width: 100%;
	border-radius: var(--fs-radius);
}

.entry-content {
	color: var(--fs-body);
}

/* Fließtext bleibt lesbar schmal, Tabellen, Gruppen, Datei-Blöcke usw. nutzen die volle Breite. */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote {
	max-width: var(--fs-measure);
}

.entry-content > .alignfull {
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 2em;
	color: var(--fs-ink);
}

.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.375rem; }
.entry-content h4 { font-size: 1.125rem; }

.entry-content ul,
.entry-content ol {
	padding-left: 1.25em;
}

.entry-content li {
	margin-bottom: .35em;
}

.entry-content img {
	border-radius: 12px;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin-block: 2em;
	padding: 1.25rem 1.5rem;
	border: 0;
	border-radius: var(--fs-radius);
	background: var(--fs-accent-soft);
	color: var(--fs-ink);
}

.entry-content hr,
.entry-content .wp-block-separator {
	margin-block: 2.5em;
	border: 0;
	border-top: 1px solid var(--fs-line);
}

/* Tabellen dürfen auf dem Handy seitlich scrollen. */
.entry-content .wp-block-table,
.entry-content > table {
	overflow-x: auto;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9375rem;
}

.entry-content th,
.entry-content td {
	padding: .625rem .75rem;
	border: 1px solid var(--fs-line);
	text-align: left;
	vertical-align: top;
}

.entry-content th,
.entry-content thead td {
	background: var(--fs-accent-soft);
	color: var(--fs-ink);
	font-weight: 600;
}

/* Datei-Block (Downloads) */
.entry-content .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--fs-line);
	border-radius: 14px;
	background: var(--fs-surface);
}

.entry-content .wp-block-file > a:not(.wp-block-file__button) {
	color: var(--fs-ink);
	font-weight: 600;
}

.entry-content .wp-block-file .wp-block-file__button {
	margin: 0;
	min-height: 40px;
	padding: .5rem 1.125rem;
	font-size: .9375rem;
}

/* Gruppen mit Hintergrund als Karte */
.entry-content .wp-block-group.has-background {
	padding: 1.5rem;
	border-radius: var(--fs-radius);
}

.entry-footer {
	margin-top: 3rem;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}

.post-navigation a {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	height: 100%;
	padding: 1.25rem;
	border: 1px solid var(--fs-line);
	border-radius: var(--fs-radius);
	background: var(--fs-surface);
	text-decoration: none;
}

.post-navigation .nav-next a {
	text-align: right;
}

.post-navigation .nav-label {
	color: var(--fs-muted);
	font-size: .875rem;
}

.post-navigation .nav-title {
	color: var(--fs-ink);
	font-weight: 700;
}

.page-links {
	margin-top: 2rem;
	font-weight: 600;
}


/* 9. Formulare (Contact Form 7, Suche)
   -------------------------------------------------------------------------- */

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="number"],
.entry-content input[type="date"],
.entry-content input[type="time"],
.entry-content input[type="url"],
.entry-content input[type="password"],
.entry-content select,
.entry-content textarea,
.search-form input[type="search"] {
	width: 100%;
	min-height: 48px;
	padding: .75rem .875rem;
	border: 1px solid #b9c9c3;
	border-radius: 10px;
	background: var(--fs-surface);
	color: var(--fs-ink);
	font: inherit;
	font-size: 1rem;
}

.entry-content textarea {
	min-height: 9rem;
	resize: vertical;
}

.entry-content input:focus,
.entry-content select:focus,
.entry-content textarea:focus,
.search-form input[type="search"]:focus {
	border-color: var(--fs-accent);
	outline: 2px solid var(--fs-accent);
	outline-offset: 0;
}

.entry-content input[type="file"] {
	width: 100%;
	padding: .75rem .875rem;
	border: 1px dashed #b9c9c3;
	border-radius: 10px;
	background: var(--fs-surface);
	color: var(--fs-body);
	font: inherit;
	font-size: .9375rem;
	cursor: pointer;
}

.entry-content input[type="file"]::file-selector-button {
	margin-right: .875rem;
	padding: .5rem 1rem;
	border: 0;
	border-radius: 999px;
	background: var(--fs-accent-soft);
	color: var(--fs-accent-strong);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.entry-content label {
	display: inline-block;
	color: var(--fs-ink);
	font-weight: 600;
}

/* CF7: Formulare einheitlich breit; jedes Feld füllt die Formularbreite.
   CF7 setzt Felder in <label> und gibt ihnen size/cols-Attribute –
   als Block-Label richten sich alle Felder nach derselben Breite. */
.entry-content .wpcf7 {
	max-width: var(--fs-form);
}

.wpcf7 form > p > label,
.wpcf7 form .wpcf7cf_group > p > label,
.wpcf7 form .wpcf7-form-control-wrap {
	display: block;
}

.wpcf7 form .wpcf7-form-control-wrap {
	margin-top: .375rem;
}

.wpcf7 form > p,
.wpcf7 form .wpcf7cf_group > p {
	max-width: none;
}

/* Bild-Captcha: Symbole nebeneinander, Hinweistext normal gesetzt */
.wpcf7 .captcha-image {
	display: block;
	padding: 1rem 1.25rem;
	border: 1px solid var(--fs-line);
	border-radius: 12px;
	background: var(--fs-surface);
}

.wpcf7 .captcha-image label {
	display: inline-block;
	font-weight: 400;
}

.wpcf7 .cf7ic_instructions {
	display: block;
	margin-bottom: .5rem;
	color: var(--fs-body);
	font-weight: 400;
}

.wpcf7 .cf7ic_instructions span {
	font-weight: 700;
}

.wpcf7 .captcha-image {
	text-align: left;
}

/* Symbole groß genug zum Antippen (48px), Auswahl in Theme-Farbe statt Rot */
.wpcf7 .captcha-image svg {
	width: 48px;
	height: 48px;
	padding: 9px;
	border-radius: 10px;
	color: var(--fs-ink);
}

.wpcf7 .captcha-image label > input + svg:hover {
	background: var(--fs-paper);
}

.wpcf7 .captcha-image label > input:checked + svg,
.wpcf7 .captcha-image label > input:focus + svg {
	border-color: var(--fs-accent);
	background: var(--fs-accent-soft);
	color: var(--fs-accent-strong);
}

.wpcf7 form > p {
	margin-bottom: 1.25rem;
}

.wpcf7 .wpcf7-list-item {
	margin: 0 1rem .25rem 0;
}

.wpcf7 .wpcf7-list-item label {
	font-weight: 400;
}

.wpcf7-not-valid-tip {
	margin-top: .375rem;
	color: #a1261e;
	font-size: .9375rem;
}

.entry-content .wpcf7-not-valid {
	border-color: #a1261e;
}

.wpcf7 form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 1rem 1.25rem;
	border: 1px solid var(--fs-line);
	border-radius: 12px;
	background: var(--fs-surface);
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--fs-accent);
	background: var(--fs-accent-soft);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: #a1261e;
	background: #fdf0ef;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-block: 1.5rem;
}

.search-form input[type="search"] {
	flex: 1 1 240px;
	width: auto;
	border-radius: 999px;
	padding-inline: 1.25rem;
}


/* 10. Footer
   -------------------------------------------------------------------------- */

.site-footer {
	background: var(--fs-footer);
	color: var(--fs-line);
	font-size: .9375rem;
}

.site-footer a {
	color: var(--fs-brand);
}

.site-footer a:hover {
	color: #fff;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem 4rem;
	padding-block: 3rem;
}

.site-footer__about {
	flex: 1 1 280px;
}

.site-footer__about p {
	margin: 0;
	line-height: 1.6;
}

.site-footer__name,
.site-footer__heading {
	margin-bottom: .5rem !important;
	color: #fff;
	font-weight: 700;
}

.site-footer__name {
	font-size: 1.125rem;
}

.site-footer__col {
	flex: 1 1 200px;
}

.site-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	padding-block: 1.25rem;
	border-top: 1px solid rgba(219, 229, 225, .2);
	font-size: .875rem;
}


/* 11. EVK-Kalender an die Theme-Farben anpassen
   -------------------------------------------------------------------------- */

body .evk {
	--evk-accent: var(--fs-accent);
	--evk-line: var(--fs-line);
	--evk-muted: var(--fs-muted);
	--evk-radius: 10px;
}

.front-events .evk-list,
.week__body .evk-list {
	margin: 0;
	padding: 0;
	list-style: none;
}



/* 12. Bewegung reduzieren
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}

	.card:hover {
		transform: none;
	}
}
