/*
 * Imkerverein Waldkirch – Designsystem
 * Vorlage: inteo-site/app/globals.css und die Tailwind-Klassen der Next.js-Komponenten.
 *
 * Aufbau: 1 Schriften · 2 Tokens · 3 Basis · 4 Kopf/Fuß · 5 Seitenkopf · 6 Bausteine
 *         · 7 Elementor-Anpassungen · 8 Startseite · 9 Formulare/Login · 10 Bewegung
 */

/* ---------- 1 Schriften (lokal, kein Abruf bei Google) ---------- */

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/barlow-condensed-500-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/barlow-condensed-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/barlow-condensed-600-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/barlow-condensed-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/barlow-condensed-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/barlow-condensed-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/open-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Caveat";
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url("../fonts/caveat-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Caveat";
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url("../fonts/caveat-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2 Tokens ---------- */

:root {
	--iv-bg: #f7f4f1;
	--iv-fg: #141414;
	--iv-body: #3a3a3a;
	--iv-accent: #bf5029;
	--iv-accent-dark: #a3411f;
	--iv-gold: #c9a55c;
	--iv-gold-dark: #b38f47;
	--iv-honey: #e8a92d;
	--iv-surface: #efe9e2;
	--iv-line: #ded6cc;

	/* Text auf Gold: Weiß entspricht der Vorlage, erreicht aber nur ca. 2,4:1 Kontrast.
	   Für WCAG AA hier auf var(--iv-fg) umstellen. */
	--iv-on-gold: #fff;

	--iv-surface-soft: rgb(239 233 226 / 0.6);
	/* Deckende Entsprechung von --iv-surface-soft auf --iv-bg, für Zellen,
	   die beim Scrollen stehen bleiben und nichts durchscheinen lassen dürfen. */
	--iv-zebra: #f2ede8;
	--iv-font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--iv-font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--iv-font-script: "Caveat", cursive;

	--iv-max: 1300px;
	--iv-max-header-wide: 1500px;
	--iv-gutter: 1.25rem; /* 20px, ab 640px 32px */
	--iv-header-h: 5rem;
}

@media (min-width: 640px) {
	:root {
		--iv-gutter: 2rem;
	}
}

/* ---------- 3 Basis ---------- */

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

html {
	scroll-behavior: smooth;
	/* Sprungziele nicht unter die stehende Kopfzeile schieben. */
	scroll-padding-top: calc(var(--iv-header-h) + 1rem);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--iv-bg);
	color: var(--iv-body);
	font-family: var(--iv-font-body);
	font-size: 1rem;
	line-height: 1.5;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

.iv-main {
	flex: 1 0 auto;
}

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

a {
	color: inherit;
}

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: 1rem;
	z-index: 100;
	padding: 0.5rem 1rem;
	background: var(--iv-accent);
	color: #fff;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Überschriften im Seiteninhalt: Barlow Condensed, Versalien */
.iv-main h1,
.iv-main h2,
.iv-main h3,
.iv-main h4 {
	margin: 0;
	font-family: var(--iv-font-display);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	color: var(--iv-fg);
}

.iv-main h2 {
	font-size: 2.25rem;
}

.iv-main h3 {
	font-size: 1.5rem;
	letter-spacing: 0.025em;
}

@media (min-width: 640px) {
	.iv-main h2 {
		font-size: 3rem;
	}
}

/* ---------- 4 Kopf- und Fußbereich ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid rgb(222 214 204 / 0.6);
	background: rgb(247 244 241 / 0.9);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	max-width: var(--iv-max);
	min-height: var(--iv-header-h);
	margin-inline: auto;
	padding-inline: var(--iv-gutter);
}

@media (min-width: 1536px) {
	.site-header__inner {
		max-width: var(--iv-max-header-wide);
	}
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
	text-decoration: none;
}

.site-logo__bee {
	width: 3rem;
	height: 2.25rem;
}

.site-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.site-logo__top {
	font-family: var(--iv-font-display);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	color: var(--iv-fg);
}

.site-logo__sub {
	margin-top: 0.25rem;
	font-family: var(--iv-font-display);
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--iv-body);
}

@media (min-width: 640px) {
	.site-logo__top {
		font-size: 1.875rem;
	}
}

/* Menü-Schalter (nur mit JavaScript sichtbar, nur unter 1280px) */
.site-header__toggle {
	display: none;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 0;
	background: none;
	color: var(--iv-fg);
	cursor: pointer;
}

.js .site-header__toggle {
	display: flex;
}

.site-header__bars {
	position: relative;
	display: block;
	width: 1.5rem;
	height: 1rem;
}

.site-header__bars span {
	position: absolute;
	left: 0;
	width: 1.5rem;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s, opacity 0.2s, top 0.2s;
}

.site-header__bars span:nth-child(1) {
	top: 0;
}

.site-header__bars span:nth-child(2) {
	top: 0.375rem;
}

.site-header__bars span:nth-child(3) {
	top: 0.75rem;
}

.site-header__toggle[aria-expanded="true"] .site-header__bars span:nth-child(1) {
	top: 0.375rem;
	transform: rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__bars span:nth-child(2) {
	opacity: 0;
}

.site-header__toggle[aria-expanded="true"] .site-header__bars span:nth-child(3) {
	top: 0.375rem;
	transform: rotate(-45deg);
}

/* Navigation: Panel unter dem Kopf (schmal), Zeile (ab 1280px) */
.site-nav .menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	font-family: var(--iv-font-display);
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--iv-fg);
	transition: color 0.15s, background-color 0.15s;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	color: var(--iv-accent);
}

/* schmale Ansicht */
@media (max-width: 1279.98px) {
	.site-header__inner {
		flex-wrap: wrap;
	}

	.js .site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - var(--iv-header-h));
		overflow-y: auto;
		border-top: 1px solid var(--iv-line);
		background: var(--iv-bg);
		padding: 1rem var(--iv-gutter);
	}

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

	.site-nav {
		width: 100%;
		order: 3;
	}

	.site-nav .menu {
		display: flex;
		flex-direction: column;
		max-width: var(--iv-max);
		margin-inline: auto;
	}

	.site-nav a {
		display: block;
		padding-block: 0.75rem;
		font-size: 1.125rem;
		letter-spacing: 0.25em;
	}

	.site-nav .iv-nav-cta {
		padding-top: 0.5rem;
	}

	.site-nav .iv-nav-cta a {
		padding: 1rem 2rem;
		background: var(--iv-gold);
		color: var(--iv-on-gold);
		text-align: center;
		font-size: 1rem;
	}

	.site-nav .iv-nav-cta a:hover {
		background: var(--iv-gold-dark);
		color: var(--iv-on-gold);
	}
}

/* breite Ansicht */
@media (min-width: 1280px) {
	.site-header__toggle {
		display: none !important; /* schlägt .js-Regel */
	}

	.site-nav .menu {
		display: flex;
		align-items: center;
		gap: 1rem;
	}

	.site-nav a {
		display: block;
		white-space: nowrap;
		font-size: 0.8125rem;
		letter-spacing: 0.14em;
	}

	.site-nav .iv-nav-cta a {
		padding: 0.875rem 1.5rem;
		background: var(--iv-gold);
		color: var(--iv-on-gold);
		letter-spacing: 0.2em;
	}

	.site-nav .iv-nav-cta a:hover {
		background: var(--iv-gold-dark);
		color: var(--iv-on-gold);
	}
}

@media (min-width: 1536px) {
	.site-nav .menu {
		gap: 1.75rem;
	}

	.site-nav a {
		letter-spacing: 0.18em;
	}

	.site-nav .iv-nav-cta a {
		padding: 1rem 2rem;
	}
}

/* Fußbereich */
.site-footer {
	border-top: 1px solid var(--iv-line);
	background: var(--iv-surface-soft);
}

.site-footer__top {
	display: grid;
	gap: 2.5rem;
	max-width: var(--iv-max);
	margin-inline: auto;
	padding: 3rem var(--iv-gutter);
}

@media (min-width: 768px) {
	.site-footer__top {
		grid-template-columns: 1fr auto;
	}
}

.site-footer__brand {
	margin: 0;
	font-family: var(--iv-font-display);
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: 0.025em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--iv-fg);
}

.site-footer__address {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	font-style: normal;
	line-height: 1.75;
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--iv-accent);
}

.site-footer__nav .menu {
	display: grid;
	grid-template-columns: repeat(2, auto);
	gap: 0.5rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--iv-font-display);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--iv-fg);
}

.site-footer__bottom {
	border-top: 1px solid var(--iv-line);
}

.site-footer__bottom-inner {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: var(--iv-max);
	margin-inline: auto;
	padding: 1.25rem var(--iv-gutter);
	font-size: 0.875rem;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__legal .menu {
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.site-footer__bottom-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* ---------- 5 Seitenkopf der Unterseiten ---------- */

.iv-eyebrow,
.iv-main .elementor-widget-heading.iv-eyebrow .elementor-heading-title {
	margin: 0;
	font-family: var(--iv-font-display);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--iv-accent);
}

.page-header {
	border-bottom: 1px solid var(--iv-line);
	background: var(--iv-surface-soft);
}

.page-header__inner {
	max-width: var(--iv-max);
	margin-inline: auto;
	padding: 3.5rem var(--iv-gutter);
}

@media (min-width: 640px) {
	.page-header__inner {
		padding-block: 5rem;
	}
}

.page-header__title {
	margin-top: 0.75rem;
	font-size: clamp(2.5rem, 9vw, 5rem);
}

.page-header__inner > .iv-eyebrow + .page-header__title {
	margin-top: 0.75rem;
}

.page-header__inner > .page-header__title:first-child {
	margin-top: 0;
}

.page-header__intro {
	max-width: 42rem;
	margin: 1.5rem 0 0;
	font-size: 1rem;
	line-height: 2;
}

@media (min-width: 640px) {
	.page-header__intro {
		font-size: 1.125rem;
	}
}

/* ---------- 6 Bausteine ---------- */

/* Buttons: eckig, Versalien mit weiter Laufweite */
.iv-btn,
.iv-main .iv-btn .elementor-button {
	display: inline-block;
	padding: 1.25rem 2.25rem;
	border: 1px solid transparent;
	border-radius: 0;
	background: var(--iv-accent);
	color: #fff;
	font-family: var(--iv-font-display);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.25em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
	cursor: pointer;
}

.iv-btn:hover,
.iv-main .iv-btn .elementor-button:hover {
	background: var(--iv-accent-dark);
	color: #fff;
}

.iv-main .iv-btn--gold .elementor-button,
.iv-btn--gold {
	background: var(--iv-gold);
	color: var(--iv-on-gold);
}

.iv-main .iv-btn--gold .elementor-button:hover,
.iv-btn--gold:hover {
	background: var(--iv-gold-dark);
	color: var(--iv-on-gold);
}

.iv-main .iv-btn--outline .elementor-button,
.iv-btn--outline {
	border-color: var(--iv-fg);
	background: transparent;
	color: var(--iv-fg);
}

.iv-main .iv-btn--outline .elementor-button:hover,
.iv-btn--outline:hover {
	background: var(--iv-fg);
	color: var(--iv-bg);
}

/* Abschnitte: Inhalt zentriert auf 1300px, Hintergrund läuft randlos */
.iv-main .e-con.iv-section {
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	--padding-top: 4rem;
	--padding-bottom: 4rem;
	width: 100%;
	max-width: none;
	padding-block: 4rem;
	padding-inline: max(var(--iv-gutter), calc((100% - var(--iv-max)) / 2));
}

@media (min-width: 640px) {
	.iv-main .e-con.iv-section {
		padding-block: 5rem;
	}
}

.iv-main .e-con.iv-section--tight {
	padding-block: 3.5rem;
}

.iv-main .e-con.iv-section--flush-top {
	padding-top: 0;
}

.iv-main .e-con.iv-section--surface {
	border-block: 1px solid var(--iv-line);
	background: var(--iv-surface-soft);
}

.iv-main .e-con.iv-section--narrow {
	padding-inline: max(var(--iv-gutter), calc((100% - 900px) / 2));
}

/* Innenabstand: Kinder eines Abschnitts stapeln mit gleichmäßigem Rhythmus */
.iv-main .e-con.iv-stack {
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.iv-mt-2 { margin-top: 0.5rem; }
.iv-mt-3 { margin-top: 0.75rem; }
.iv-mt-4 { margin-top: 1rem; }
.iv-mt-6 { margin-top: 1.5rem; }
.iv-mt-8 { margin-top: 2rem; }
.iv-mt-10 { margin-top: 2.5rem; }
.iv-mt-14 { margin-top: 3.5rem; }

/* Zwei Spalten, Text neben Bild */
.iv-main .e-con.iv-split {
	--gap: 2.5rem;
	--row-gap: 2.5rem;
	--column-gap: 2.5rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.iv-main .e-con.iv-split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4rem;
	}

	.iv-main .e-con.iv-split--top {
		align-items: start;
	}
}

/* Kartenraster */
.iv-main .e-con.iv-grid {
	--gap: 1.5rem;
	--row-gap: 1.5rem;
	--column-gap: 1.5rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	margin-top: 2.5rem;
	align-items: stretch;
}

@media (min-width: 640px) {
	.iv-main .e-con.iv-grid--2,
	.iv-main .e-con.iv-grid--3,
	.iv-main .e-con.iv-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.iv-main .e-con.iv-grid--5,
	.iv-main .e-con.iv-grid--facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.iv-main .e-con.iv-grid--3-sm {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.iv-main .e-con.iv-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.iv-main .e-con.iv-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.iv-main .e-con.iv-grid--5,
	.iv-main .e-con.iv-grid--facts {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* Karte mit goldener Oberkante */
.iv-main .e-con.iv-card {
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	border-top: 2px solid var(--iv-gold);
	background: var(--iv-surface-soft);
	padding: 1.75rem;
}

.iv-main .e-con.iv-card--plain {
	background: var(--iv-bg);
}

/* Kennzahlen */
.iv-fact-number,
.iv-main .elementor-widget-heading.iv-fact-number .elementor-heading-title {
	font-family: var(--iv-font-display);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
	color: var(--iv-accent);
}

.iv-fact-prefix,
.iv-main .elementor-widget-heading.iv-fact-prefix .elementor-heading-title {
	min-height: 1rem;
	font-family: var(--iv-font-display);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--iv-body);
}

.iv-fact-label,
.iv-main .elementor-widget-heading.iv-fact-label .elementor-heading-title {
	margin-top: 0.75rem;
	font-family: var(--iv-font-display);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--iv-body);
}

@media (min-width: 640px) {
	.iv-fact-number,
	.iv-main .elementor-widget-heading.iv-fact-number .elementor-heading-title {
		font-size: 3rem;
	}
}

/* Karten-Untertitel (Gebiet, Art) */
.iv-kicker,
.iv-main .elementor-widget-heading.iv-kicker .elementor-heading-title {
	font-family: var(--iv-font-display);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--iv-accent);
}

/* Aufruf-Abschnitt (dunkel, zentriert) */
.iv-main .e-con.iv-cta {
	align-items: center;
	background: var(--iv-fg);
	color: var(--iv-bg);
	text-align: center;
}

.iv-cta h2,
.iv-main .iv-cta .elementor-heading-title {
	max-width: 48rem;
	color: var(--iv-bg);
	font-size: 2.25rem;
}

@media (min-width: 640px) {
	.iv-cta h2,
	.iv-main .iv-cta .elementor-heading-title {
		font-size: 3rem;
	}
}

.iv-main .iv-cta .elementor-widget-heading.iv-eyebrow .elementor-heading-title {
	color: var(--iv-gold);
}

.iv-main .iv-cta .elementor-widget-text-editor {
	max-width: 36rem;
	color: rgb(247 244 241 / 0.8);
	font-size: 1rem;
	line-height: 2;
}

.iv-main .iv-cta .elementor-widget-text-editor p {
	color: inherit;
}

/* Hinweisbox (Entwurf, Platzhalter) */
.iv-notice,
.iv-main .e-con.iv-notice {
	border: 1px solid var(--iv-gold);
	background: rgb(201 165 92 / 0.1);
	padding: 1rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

/* Leere Zustände, Kästen mit dünnem Rahmen */
.iv-empty,
.iv-main .e-con.iv-box {
	border: 1px solid var(--iv-line);
	background: var(--iv-surface-soft);
	padding: 2rem;
	line-height: 2;
}

.iv-main .e-con.iv-box--framed {
	background: transparent;
	padding: 2rem;
}

@media (min-width: 640px) {
	.iv-main .e-con.iv-box--framed {
		padding: 2.5rem;
	}
}

/* Hervorgehobener Kasten (Schwarm melden) */
.iv-main .e-con.iv-alert {
	border: 2px solid var(--iv-accent);
	background: rgb(191 80 41 / 0.05);
	padding: 2rem;
}

@media (min-width: 640px) {
	.iv-main .e-con.iv-alert {
		padding: 2.5rem;
	}
}

@media (min-width: 768px) {
	.iv-main .e-con.iv-alert {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 1.5rem;
	}
}

.iv-main .e-con.iv-alert h2 {
	font-size: 1.875rem;
}

@media (min-width: 640px) {
	.iv-main .e-con.iv-alert h2 {
		font-size: 2.25rem;
	}
}

/* Bild-Platzhalter mit sichtbarer Beschriftung */
.iv-placeholder {
	display: flex;
	width: 100%;
	aspect-ratio: 4 / 3;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px dashed var(--iv-gold);
	background: var(--iv-surface);
	padding: 1.5rem;
	text-align: center;
}

.iv-placeholder span {
	max-width: 20rem;
	font-family: var(--iv-font-display);
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.375;
	text-transform: uppercase;
	color: var(--iv-gold-dark);
}

/* Fotos, die einen Bild-Platzhalter ersetzen: gleicher Ausschnitt, Bild formatfüllend */
.iv-main .iv-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Vorteile-Liste mit Honig-Quadraten, Ablauf mit Schreibschrift-Ziffern */
.iv-list,
.iv-steps {
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.iv-list li {
	position: relative;
	margin-bottom: 1rem;
	padding-left: 1.65rem;
	line-height: 1.75;
}

.iv-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6rem;
	width: 0.625rem;
	height: 0.625rem;
	background: var(--iv-honey);
}

.iv-steps {
	counter-reset: schritt;
}

.iv-steps li {
	display: flex;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
	line-height: 1.75;
	counter-increment: schritt;
}

.iv-steps li::before {
	content: counter(schritt);
	flex-shrink: 0;
	font-family: var(--iv-font-script);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
	color: var(--iv-accent);
}

.iv-steps li > span {
	padding-top: 0.25rem;
}

/* Rechtstexte und Fließtext */
.iv-prose {
	max-width: 900px;
	margin-inline: auto;
	padding: 4rem var(--iv-gutter);
	font-size: 1rem;
	line-height: 2;
}

@media (min-width: 640px) {
	.iv-prose {
		padding-block: 5rem;
	}
}

.iv-main .elementor-widget-text-editor,
.iv-main .elementor-widget-text-editor p {
	font-family: var(--iv-font-body);
	color: var(--iv-body);
	line-height: 2;
}

.iv-main .elementor-widget-text-editor p {
	margin: 0 0 1rem;
}

.iv-main .elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

.iv-main .elementor-widget-text-editor a,
.iv-link {
	color: var(--iv-fg);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--iv-accent);
	text-underline-offset: 4px;
}

.iv-main .elementor-widget-text-editor a:hover,
.iv-link:hover {
	color: var(--iv-accent);
}

.iv-main .iv-text-lg,
.iv-main .iv-text-lg p {
	font-size: 1.0625rem;
}

@media (min-width: 640px) {
	.iv-main .iv-text-lg,
	.iv-main .iv-text-lg p {
		font-size: 1.125rem;
	}
}

.iv-main .iv-text-sm,
.iv-main .iv-text-sm p {
	font-size: 0.875rem;
	line-height: 1.75;
}

/* Rechtstext-Überschriften */
.iv-legal h2,
.iv-main .iv-legal .elementor-heading-title {
	font-size: 1.5rem;
	letter-spacing: 0.025em;
}

/* Kontaktseite: Beschriftungen */
.iv-label,
.iv-main .elementor-widget-heading.iv-label .elementor-heading-title {
	font-family: var(--iv-font-display);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--iv-accent);
}

.iv-contact-text,
.iv-main .iv-contact-text.elementor-widget-text-editor,
.iv-main .iv-contact-text.elementor-widget-text-editor p {
	font-size: 1.125rem;
	line-height: 2;
	color: var(--iv-fg);
}

.iv-contact-text a {
	text-decoration: none;
}

.iv-contact-text a:hover {
	color: var(--iv-accent);
}

/* Akkordeon (Häufige Fragen) */
.iv-faq {
	border-top: 1px solid var(--iv-line);
	margin-top: 2.5rem;
	width: 100%;
}

.iv-main .iv-faq .elementor-accordion-item {
	border: 0;
	border-bottom: 1px solid var(--iv-line);
}

.iv-main .iv-faq .elementor-tab-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 0;
	border: 0;
	font-family: var(--iv-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	color: var(--iv-fg);
}

.iv-main .iv-faq .elementor-tab-title a {
	color: inherit;
	text-decoration: none;
}

.iv-main .iv-faq .elementor-tab-title:hover,
.iv-main .iv-faq .elementor-tab-title:hover a,
.iv-main .iv-faq .elementor-tab-title.elementor-active a {
	color: var(--iv-accent);
}

.iv-main .iv-faq .elementor-tab-content {
	padding: 0 0 1.5rem;
	border: 0;
	font-size: 1rem;
	line-height: 2;
	color: var(--iv-body);
}

/* Die wichtigste Frage steht dauerhaft offen über dem Akkordeon. Typografie wie
   eine aufgeklappte Frage, nur ohne Schalter – so liest sich beides als eine Liste. */
.iv-main .e-con.iv-faq-lead {
	display: block;
	margin-top: 2.5rem;
	padding: 1.25rem 0 1.75rem;
	border-top: 1px solid var(--iv-line);
}

.iv-main .iv-faq-lead .elementor-widget-heading.iv-faq-lead__frage .elementor-heading-title {
	font-family: var(--iv-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.025em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--iv-fg);
}

.iv-main .iv-faq-lead .elementor-widget-text-editor,
.iv-main .iv-faq-lead .elementor-widget-text-editor p {
	line-height: 2;
}

/* Das Akkordeon schließt bündig an, sonst stünden zwei Linien übereinander. */
.iv-main .iv-faq-lead + .iv-faq {
	margin-top: 0;
}

/* Notfallkontakte, Inserate (Plugin-Ausgabe) */
.iv-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	margin: 2.5rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.iv-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.iv-cards--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.iv-cards--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.iv-cards__item {
	display: flex;
	flex-direction: column;
	border-top: 2px solid var(--iv-gold);
	background: var(--iv-surface-soft);
	padding: 1.75rem;
}

.iv-cards__item .iv-kicker {
	margin: 0;
}

.iv-cards__title {
	margin: 0.5rem 0 0;
	font-family: var(--iv-font-display);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	color: var(--iv-fg);
}

.iv-cards__text {
	flex: 1;
	margin: 0.75rem 0 0;
	line-height: 1.75;
}

.iv-cards__meta {
	margin: 1.25rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--iv-line);
	font-size: 0.875rem;
}

.iv-cards__phone {
	display: inline-block;
	margin-top: 0.75rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--iv-fg);
	text-decoration: none;
}

.iv-cards__phone:hover {
	color: var(--iv-accent);
}

.iv-tag {
	align-self: flex-start;
	background: var(--iv-accent);
	padding: 0.25rem 0.75rem;
	font-family: var(--iv-font-display);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #fff;
}

.iv-doclist {
	margin: 0;
	padding: 0;
	list-style: none;
	border-block: 1px solid var(--iv-line);
}

.iv-doclist li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
}

.iv-doclist li + li {
	border-top: 1px solid var(--iv-line);
}

.iv-doclist a {
	font-weight: 600;
	color: var(--iv-fg);
	text-decoration: none;
}

.iv-doclist a:hover {
	color: var(--iv-accent);
}

.iv-doclist time {
	font-size: 0.875rem;
}

/* ---------- 7 Elementor-Anpassungen ---------- */

/* Elementors Kit-Variablen auf unsere Tokens umbiegen, damit alle Widgets ohne Einzelstyling passen. */
body[class*="elementor-kit-"] {
	--e-global-color-primary: var(--iv-fg);
	--e-global-color-secondary: var(--iv-body);
	--e-global-color-text: var(--iv-body);
	--e-global-color-accent: var(--iv-accent);
	--e-global-typography-primary-font-family: "Barlow Condensed";
	--e-global-typography-primary-font-weight: 700;
	--e-global-typography-secondary-font-family: "Barlow Condensed";
	--e-global-typography-secondary-font-weight: 600;
	--e-global-typography-text-font-family: "Open Sans";
	--e-global-typography-text-font-weight: 400;
	--e-global-typography-accent-font-family: "Barlow Condensed";
	--e-global-typography-accent-font-weight: 600;
}

.iv-main .elementor-widget-heading .elementor-heading-title {
	font-family: var(--iv-font-display);
	font-weight: 700;
	line-height: 1;
	color: var(--iv-fg);
}

.iv-main .elementor-widget-heading p.elementor-heading-title {
	line-height: 1.5;
}

/* Kleinere Zwischenüberschrift (h2 mit 30/36px) */
.iv-main .elementor-widget-heading.iv-h2--sm .elementor-heading-title {
	font-size: 1.875rem;
}

@media (min-width: 640px) {
	.iv-main .elementor-widget-heading.iv-h2--sm .elementor-heading-title {
		font-size: 2.25rem;
	}
}

.iv-main .elementor-widget-heading.iv-eyebrow .elementor-heading-title {
	line-height: 1.5;
}

.iv-plain {
	margin: 0;
	padding: 0;
	list-style: none;
}

.iv-muted {
	color: var(--iv-body);
}

/* Widgets, die ihre Spalte füllen sollen (Platzhalter, Karten) */
.iv-main .iv-fill {
	width: 100%;
}

/* Alle Container starten ohne Elementor-Vorgabeabstände; Abstände setzen wir über Klassen.
   Vom Redakteur im Editor gesetzte Abstände (spezifischer) bleiben wirksam. */
.iv-main .e-con {
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
}

/* Elementors eigener Button-Link erbt Farbe/Schrift sonst vom Kit */
.iv-main .elementor-widget-button .elementor-button {
	fill: currentcolor;
}

/* Elementor-Inhalt nutzt die volle Breite; die Begrenzung erledigen unsere Abschnitte. */
.iv-content > .elementor {
	width: 100%;
}

.iv-main .e-con {
	--container-max-width: none;
}

/* ---------- 8 Startseite ---------- */

.iv-main .e-con.iv-hero {
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	max-width: none;
	padding-block: 3.5rem;
	padding-inline: max(var(--iv-gutter), calc((100% - var(--iv-max)) / 2));
}

@media (min-width: 640px) {
	.iv-main .e-con.iv-hero {
		padding-block: 5rem;
	}
}

@media (min-width: 1024px) {
	.iv-main .e-con.iv-hero {
		padding-block: 6rem;
	}
}

.iv-hero__grid.e-con {
	--gap: 2.5rem;
	--row-gap: 2.5rem;
	--column-gap: 2.5rem;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	align-items: center;
	padding: 0;
}

@media (min-width: 1024px) {
	.iv-hero__grid.e-con {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.iv-hero__text.e-con,
.iv-hero__visual.e-con {
	--gap: 0px;
	--row-gap: 0px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 0;
}

.iv-main .iv-hero .elementor-widget-heading.iv-hero__title .elementor-heading-title {
	font-size: clamp(3.25rem, 13vw, 7.5rem);
	line-height: 0.95;
}

/* Ab 1024 px steht der Titel in der halben Breite: 13vw wären dort breiter als die
   Spalte, der Schriftzug liefe unter das Hero-Bild. */
@media (min-width: 1024px) {
	.iv-main .iv-hero .elementor-widget-heading.iv-hero__title .elementor-heading-title {
		font-size: clamp(3.25rem, 10.1vw, 7.5rem);
	}
}

.iv-main .iv-hero .elementor-widget-heading.iv-hero__eyebrow .elementor-heading-title {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.35em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--iv-fg);
}

@media (min-width: 640px) {
	.iv-main .iv-hero .elementor-widget-heading.iv-hero__eyebrow .elementor-heading-title {
		font-size: 1rem;
	}
}

.iv-hero__intro {
	max-width: 28rem;
}

/* Handschrift-Akzent neben dem Foto */
.iv-main .e-con.iv-hero__script {
	display: none;
	position: absolute;
	top: -1rem;
	right: 0.5rem;
	z-index: 2;
	width: auto;
	padding: 0;
	text-align: right;
	pointer-events: none;
}

@media (min-width: 640px) {
	.iv-main .e-con.iv-hero__script {
		display: block;
	}
}

@media (min-width: 1024px) {
	.iv-main .e-con.iv-hero__script {
		top: 1.5rem;
		right: -0.5rem;
	}
}

.iv-main .iv-hero__script .elementor-widget-heading .elementor-heading-title {
	font-family: var(--iv-font-script);
	font-weight: 700;
	line-height: 1;
}

.iv-main .iv-hero__script .iv-hero__script--big .elementor-heading-title {
	font-size: 3rem;
}

.iv-main .iv-hero__script .iv-hero__script--small .elementor-heading-title {
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.25;
}

@media (min-width: 1280px) {
	.iv-main .iv-hero__script .iv-hero__script--big .elementor-heading-title {
		font-size: 3.75rem;
	}
}

/* Liegt im Hero ein Foto statt des hellen Platzhalters, rutscht der Schriftzug
   ganz aufs Bild und wird hell, damit er auch auf dunklen Motiven lesbar bleibt. */
@media (min-width: 640px) {
	.iv-main .iv-hero__visual:has(.iv-photo) .e-con.iv-hero__script {
		top: 1.5rem;
		right: 1.25rem;
	}

	.iv-main .iv-hero__visual:has(.iv-photo) .iv-hero__script .elementor-heading-title {
		color: #fff;
		text-shadow: 0 1px 14px rgba(20, 20, 20, 0.6);
	}
}

/* Dekor: absolut positioniert, nie interaktiv */
.iv-main .iv-deco {
	position: absolute;
	margin: 0;
	pointer-events: none;
}

.iv-deco svg {
	display: block;
	width: 100%;
	height: auto;
}

.iv-deco--sprig-left,
.iv-deco--sprig-right {
	display: none;
	width: 8.4rem; /* 56 * 0.6 * 0.25rem, entspricht h-56 bei Verhältnis 120:200 */
}

@media (min-width: 1536px) {
	.iv-deco--sprig-left,
	.iv-deco--sprig-right {
		display: block;
	}

	.iv-deco--sprig-left {
		left: 0;
		top: 2.5rem;
	}

	.iv-deco--sprig-right {
		right: 0;
		bottom: 1.5rem;
		width: 7.2rem;
		transform: scaleX(-1);
	}
}

.iv-deco--dash {
	display: none;
	left: 28%;
	bottom: 0;
	width: 26.25rem;
}

@media (min-width: 1024px) {
	.iv-deco--dash {
		display: block;
	}
}

.iv-deco--bee-a {
	top: -2.5rem;
	left: 6rem;
	width: 3.5rem;
	z-index: 2;
}

.iv-deco--bee-b {
	top: -2rem;
	left: 1.5rem;
	width: 2.75rem;
	z-index: 2;
}

@media (min-width: 640px) {
	.iv-deco--bee-a {
		left: 10rem;
	}

	.iv-deco--bee-b {
		left: 4rem;
	}
}

/* ---------- 9 Formulare und Anmeldung ---------- */

.iv-login {
	max-width: 28rem;
	margin: 0 auto;
	border-top: 2px solid var(--iv-gold);
	background: var(--iv-surface-soft);
	padding: 2rem;
}

@media (min-width: 640px) {
	.iv-login {
		padding: 2.5rem;
	}
}

.iv-login form p,
.iv-member-form p {
	margin: 0 0 1.5rem;
}

.iv-login label,
.iv-member-form label {
	font-family: var(--iv-font-display);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--iv-fg);
}

.iv-login input[type="text"],
.iv-login input[type="password"],
.iv-member-form input[type="text"],
.iv-member-form input[type="password"] {
	display: block;
	width: 100%;
	margin-top: 0.5rem;
	border: 1px solid var(--iv-line);
	border-radius: 0;
	background: var(--iv-bg);
	padding: 0.875rem 1rem;
	font: inherit;
	color: var(--iv-fg);
}

.iv-login .login-remember label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--iv-font-body);
	font-size: 0.875rem;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 400;
}

.iv-login input[type="submit"] {
	width: 100%;
	border: 0;
	border-radius: 0;
	background: var(--iv-accent);
	padding: 1.25rem 2.25rem;
	font-family: var(--iv-font-display);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s;
}

.iv-login input[type="submit"]:hover {
	background: var(--iv-accent-dark);
}

.iv-login__error {
	margin: 0 0 1.5rem;
	border: 1px solid var(--iv-accent);
	background: rgb(191 80 41 / 0.05);
	padding: 1rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--iv-fg);
}

.iv-login__hint {
	margin: 1.25rem 0 0;
	font-size: 0.875rem;
	line-height: 1.75;
}

/* Passwortformular von WordPress (falls eine Seite doch ein Passwort hat) */
.post-password-form {
	max-width: 28rem;
	margin: 4rem auto;
	padding-inline: var(--iv-gutter);
}

/* ---------- 10 Bewegung ---------- */

@keyframes iv-bee-float {
	0%,
	100% {
		transform: translateY(0) rotate(0deg);
	}

	50% {
		transform: translateY(-8px) rotate(3deg);
	}
}

.iv-bee-float {
	animation: iv-bee-float 4s ease-in-out infinite;
}

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

	.iv-bee-float {
		animation: none;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important; /* Bewegung minimieren, siehe WCAG 2.3.3 */
	}
}

/* Hero-Foto: 4:3 auf schmalen, 6:5 auf breiten Bildschirmen */
@media (min-width: 1024px) {
	.iv-hero .iv-placeholder,
	.iv-main .iv-hero .iv-photo img {
		aspect-ratio: 6 / 5;
	}
}

/* ---------- Ergänzungen für einzelne Seiten ---------- */

.iv-main .e-con.iv-section--flush-bottom {
	padding-bottom: 0;
}

.iv-main .e-con.iv-buttons {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

@media (min-width: 640px) {
	.iv-main .e-con.iv-buttons {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

.iv-main .e-con.iv-contact-list {
	gap: 2rem;
}

.iv-alert__btn {
	flex-shrink: 0;
}

.iv-main .iv-notice.elementor-widget-text-editor,
.iv-main .iv-notice.elementor-widget-text-editor p {
	font-size: 0.875rem;
	line-height: 1.5;
}

.iv-main .iv-notice.elementor-widget-text-editor {
	border: 1px solid var(--iv-gold);
	background: rgb(201 165 92 / 0.1);
	padding: 1rem;
}

.iv-main .iv-empty.elementor-widget-text-editor {
	border: 1px solid var(--iv-line);
	background: var(--iv-surface-soft);
	padding: 1.5rem;
}

/* ---------- 11 Bewegung beim Scrollen ---------- */

/* Der unsichtbare Ausgangszustand hängt an „html.iv-anim“. Diese Klasse setzt
   nur der Schnipsel in inc/assets.php, und zwar nicht bei „prefers-reduced-
   motion“. Ohne JavaScript – oder wenn reveal.js nicht lädt – greift keine
   einzige Regel hier und der Inhalt steht ganz normal da. */

.iv-anim .iv-reveal {
	opacity: 0;
	transform: translateY(var(--iv-reveal-y, 3rem));
	transition:
		opacity 0.5s ease-out var(--iv-reveal-delay, 0s),
		transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) var(--iv-reveal-delay, 0s);
	will-change: opacity, transform;
}

.iv-anim .iv-reveal.is-in {
	opacity: 1;
	transform: none;
	will-change: auto;
}

/* Bild-Platzhalter: Wischer nach oben statt Einblenden, dazu ein leichtes
   Heranfahren. „scale“ statt „transform“, damit beides nebeneinander läuft. */
.iv-anim .iv-reveal--mask {
	opacity: 1;
	transform: none;
	clip-path: inset(0 0 100% 0);
	scale: 1.05;
	transition:
		clip-path 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) var(--iv-reveal-delay, 0s),
		scale 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) var(--iv-reveal-delay, 0s);
}

.iv-anim .iv-reveal--mask.is-in {
	clip-path: inset(0 0 0 0);
	scale: 1;
}

/* Überschriften, die reveal.js in Zeichen oder Wörter zerlegt hat */
.iv-split__i {
	display: inline-block;
}

/* Klammert die Zeichen eines Wortes, damit der Umbruch nur zwischen
   Wörtern passiert und nicht zwischen zwei Buchstaben. */
.iv-split__w {
	display: inline-block;
	white-space: nowrap;
}

/* Den Block selbst nicht mitblenden, sonst überdeckt sein Einblenden den
   Aufbau der einzelnen Zeichen. */
.iv-anim .iv-reveal--text {
	opacity: 1;
}

.iv-anim .iv-reveal--text .iv-split__i {
	opacity: 0;
	transform: translateY(0.45em);
	transition:
		opacity 0.3s ease-out,
		transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
	transition-delay: calc(var(--iv-reveal-delay, 0ms) + var(--i, 0) * 45ms);
}

.iv-anim .iv-reveal--text.is-in .iv-split__i {
	opacity: 1;
	transform: none;
}

/* Kopfzeile bekommt beim Scrollen mehr Kante */
.site-header {
	transition:
		box-shadow 0.3s ease-out,
		background-color 0.3s ease-out;
}

.site-header.is-scrolled {
	background: rgb(247 244 241 / 0.96);
	box-shadow: 0 1px 16px rgb(20 20 20 / 0.08);
}

@media (prefers-reduced-motion: reduce) {
	.iv-anim .iv-reveal,
	.iv-anim .iv-reveal--mask,
	.iv-anim .iv-reveal--text .iv-split__i {
		opacity: 1;
		transform: none;
		scale: 1;
		clip-path: none;
	}
}

/* ---------- 12 Tabellen ---------- */

/* Die Notfallkontakte haben je nach Datenlage viele Ortsspalten. Statt die
   Schrift zu schrumpfen darf die Tabelle seitlich scrollen. role="region" und
   tabindex setzt der Shortcode, damit der Bereich auch per Tastatur erreichbar
   ist – sonst käme man ohne Maus nicht an die rechten Spalten. */
.iv-table-scroll {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
}

.iv-table-scroll:focus-visible {
	outline: 2px solid var(--iv-accent);
	outline-offset: 3px;
}

.iv-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.iv-table caption {
	text-align: left;
}

.iv-table th,
.iv-table td {
	padding: 0.75rem 0.875rem;
	border-bottom: 1px solid var(--iv-line);
	vertical-align: middle;
}

.iv-table thead th {
	font-family: var(--iv-font-display);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.25;
	text-transform: uppercase;
	color: var(--iv-fg);
	vertical-align: bottom;
	border-bottom: 2px solid var(--iv-fg);
}

.iv-table--kontakte thead th:not(:first-child) {
	min-width: 5rem;
	max-width: 7rem;
	text-align: center;
}

/* Namensspalte bleibt beim seitlichen Scrollen stehen, sonst weiß man in den
   rechten Spalten nicht mehr, zu wem das Kreuz gehört. */
.iv-table--kontakte th[scope="row"],
.iv-table--kontakte thead th:first-child {
	position: sticky;
	left: 0;
	min-width: 9.5rem;
	text-align: left;
	background: var(--iv-bg);
	border-right: 1px solid var(--iv-line);
}

.iv-table--kontakte thead th:first-child {
	z-index: 2;
}

.iv-table--kontakte th[scope="row"] {
	z-index: 1;
	font-weight: 400;
}

.iv-table__name {
	display: block;
	font-family: var(--iv-font-display);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--iv-fg);
}

.iv-table__phone {
	display: block;
	margin-top: 0.125rem;
	font-size: 0.875rem;
	text-decoration: none;
	white-space: nowrap;
	color: var(--iv-accent);
}

.iv-table__phone:hover {
	color: var(--iv-accent-dark);
	text-decoration: underline;
}

/* Zusatz zur Rufnummer, etwa „(Weiterleitung auf Mobil)“ */
.iv-table__note {
	display: block;
	margin-top: 0.125rem;
	font-size: 0.75rem;
	line-height: 1.3;
	color: var(--iv-body);
}

.iv-table--kontakte tbody td {
	text-align: center;
}

/* Der Landkreis fasst die Orte rechts davon zusammen. Der kräftigere Strich
   macht diese Gruppierung sichtbar. */
.iv-table__divider {
	border-right: 2px solid var(--iv-gold);
}

.iv-table__yes span[aria-hidden] {
	font-size: 1.125rem;
	line-height: 1;
	color: var(--iv-accent);
}

/* Zeilenwechsel: Die stehende Namensspalte braucht denselben Ton deckend,
   sonst scheinen beim Scrollen die Zellen darunter durch. */
.iv-table--kontakte tbody tr:nth-child(2n) {
	background: var(--iv-zebra);
}

.iv-table--kontakte tbody tr:nth-child(2n) th[scope="row"] {
	background: var(--iv-zebra);
}
