/*
Theme Name: ifV
Theme URI: https://ifv.de
Author: ifV – Institut für Verwaltungswissenschaften gGmbH
Author URI: https://ifv.de
Description: Professionelles Block-Theme für das Institut für Verwaltungswissenschaften (ifV). Klares, institutionelles Design mit Violett-Akzent und Montserrat, optimiert für Seminarverwaltung und öffentliche Verwaltung.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 8.1
Version: 1.4.87
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ifv
Tags: block-styles, full-site-editing, wide-blocks, custom-colors, custom-logo, translation-ready
*/

/* ── Self-hosted Montserrat (variable, 300–700) ── */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300 700;
    font-display: optional;
    src: url('assets/fonts/montserrat-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: 'Montserrat';
    font-style: normal;
    font-weight: 300 700;
    font-display: optional;
    src: url('assets/fonts/montserrat-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;
}

/* ── Self-hosted Public Sans (variable, 300–700) — Fließtext lt. Styleguide ── */
@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: optional;
    src: url('assets/fonts/public-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: 'Public Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: optional;
    src: url('assets/fonts/public-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;
}

/* ==========================================================================
   Base refinements
   ========================================================================== */

html {
    scroll-behavior: smooth;
    /* Versatz für Anker-Sprünge (#ifv-termine etc.), damit der sticky Header
       das Sprungziel nicht verdeckt. Etwas mehr als die Header-Höhe. */
    scroll-padding-top: 90px;
}

h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

/* ==========================================================================
   Header
   ========================================================================== */

/* Sticky muss auf den template-part-Wrapper (direktes Kind von .wp-site-blocks),
   nicht auf die innere Leiste — sonst hat das sticky-Element keinen Scroll-
   Spielraum in seinem Parent und klebt nicht. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 1000;
}

/* Eingeloggte Admins: sticky Header unter die WP-Admin-Bar versetzen,
   damit er nicht dahinter verschwindet (32px Desktop, 46px ≤782px). */
.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: 32px;
}
@media screen and (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 46px;
	}
}

.ifv-site-header {
	background: var(--wp--preset--color--primary-dark);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ifv-site-header,
.ifv-site-header a,
.ifv-site-header .wp-block-site-title a,
.ifv-site-header .wp-block-navigation a,
.ifv-site-header .wp-block-navigation .wp-block-navigation-item__content {
	color: #fff !important;
}

.ifv-site-header .wp-block-navigation a:hover,
.ifv-site-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--secondary) !important;
}

/* Active navigation items */
.ifv-site-header .wp-block-navigation .current-menu-item > a,
.ifv-site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--secondary) !important;
	color: #fff !important;
	border-radius: 3px;
	padding: 4px 10px;
}

/* ── Header e-Schulungs-Center-Button (nur eingeloggt) ───────────────── */
.ifv-site-header .ifv-header-eschulung {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 12px;
	padding: 6px 14px;
	background: var(--wp--preset--color--accent, #00A7C6); /* Türkis/Cyan aus dem Styleguide */
	color: #fff !important;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
	transition: background 0.15s, transform 0.15s;
	white-space: nowrap;
}
.ifv-site-header .ifv-header-eschulung:hover,
.ifv-site-header .ifv-header-eschulung:focus {
	background: #008DA8; /* Cyan abgedunkelt */
	color: #fff !important;
}
.ifv-site-header .ifv-header-eschulung svg {
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.ifv-site-header .ifv-header-eschulung span {
		/* Auf Mobil: nur Icon, kein Text */
		display: none;
	}
	.ifv-site-header .ifv-header-eschulung {
		padding: 6px 8px;
	}
}

/* ── Header Login Icon ────────────────────────────────────────────────── */

.ifv-header-login-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 4px;
	color: rgba(255, 255, 255, 0.85);
	transition: background 0.2s;
}

.ifv-header-login-icon:hover {
	background: rgba(255, 255, 255, 0.15);
}

/* ── Header User Dropdown (eingeloggt) ───────────────────────────────── */

.ifv-header-user {
	position: relative;
	display: flex;
	align-items: center;
}

.ifv-header-user-toggle {
	display: flex;
	align-items: center;
	gap: 2px;
	border: none;
	border-radius: 4px;
	padding: 5px 6px 5px 5px;
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	transition: background 0.2s;
}

.ifv-header-user-caret {
	opacity: 0.6;
	transition: transform 0.2s, opacity 0.2s;
}

.ifv-header-user-toggle:hover .ifv-header-user-caret {
	opacity: 1;
}

.ifv-header-user-toggle[aria-expanded="true"] .ifv-header-user-caret {
	transform: rotate(180deg);
	opacity: 1;
}

.ifv-header-user-toggle:hover,
.ifv-header-user-toggle[aria-expanded="true"] {
	background: rgba(255, 255, 255, 0.15);
}

.ifv-header-user-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 220px;
	/* Weisse Karte im Stil der Header-Pill (vorher Navy aus dem Alt-Design —
	   unlesbar, seit die Pill-Regeln Links dunkel faerben). */
	background: #fff;
	border: 1px solid var(--wp--preset--color--border, #e0e0e0);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(34, 53, 142, 0.18);
	z-index: 10000;
	padding: 0.5rem 0;
	flex-direction: column;
}

.ifv-header-user-dropdown.is-open {
	display: flex;
}

.ifv-header-user-greeting {
	display: block;
	padding: 0.6rem 1rem;
	font-size: 0.8rem;
	color: var(--wp--preset--color--text-medium, #687080);
	border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
}

.ifv-header-user-greeting strong {
	color: var(--wp--preset--color--contrast, #1d1d1d);
}

.ifv-header-user-dropdown a {
	display: block;
	padding: 0.55rem 1rem;
	font-size: 0.85rem;
	color: var(--wp--preset--color--primary-dark, #22358E) !important;
	text-decoration: none;
	transition: background 0.15s;
}

.ifv-header-user-dropdown a:hover {
	background: var(--wp--preset--color--light-bg, #F4F6F9);
	color: var(--wp--preset--color--primary, #2E49C2) !important;
}

/* Separator between admin links and personal links */
.ifv-header-user-dropdown a.ifv-dropdown-sep {
	border-top: 1px solid var(--wp--preset--color--border, #e0e0e0);
	margin-top: 0.15rem;
	padding-top: 0.65rem;
}

/* ── Header Search (Lupe → expandierendes Feld) ─────────────────────── */

.ifv-header-search {
	position: relative;
	display: flex;
	align-items: center;
}

.ifv-header-search-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.ifv-header-search-toggle:hover,
.ifv-header-search-toggle[aria-expanded="true"] {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.ifv-header-search-form {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	margin-top: 4px;
	z-index: 10000;
	background: var(--wp--preset--color--primary-dark, #0a2a40);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	white-space: nowrap;
}

.ifv-header-search-form.is-open {
	display: flex;
}

.ifv-header-search-input {
	width: 260px;
	padding: 8px 12px;
	border: none;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 14px;
	outline: none;
}

.ifv-header-search-input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.ifv-header-search-input:focus {
	background: rgba(255, 255, 255, 0.15);
}

.ifv-header-search-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border: none;
	border-left: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s;
}

.ifv-header-search-submit:hover {
	background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
	.ifv-header-search-form {
		left: auto;
		right: 0;
		width: calc(100vw - 40px);
	}
	.ifv-header-search-input {
		width: 100%;
	}
}

/* Navigation submenu */
.ifv-site-header .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--primary-dark) !important;
	border: none !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	border-radius: 0 0 4px 4px;
	min-width: 220px;
}

/* Verschachteltes Sub-Sub-Menü (Desktop): nach RECHTS aufklappen statt links.
   Greift nur, wenn ein submenu-container innerhalb eines anderen liegt. */
.ifv-site-header .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
	left: 100% !important;
	right: auto !important;
	top: 0 !important;
	border-radius: 4px;
}

.ifv-site-header .wp-block-navigation__submenu-container a {
	padding: 8px 16px !important;
	font-size: 0.9em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ifv-site-header .wp-block-navigation__submenu-container a:hover {
	background: rgba(255, 255, 255, 0.08) !important;
}

/* Mobile menu overlay — weiss mit dunklen Links (Design-Sprache der Pill).
   Die Pill-Regeln faerben Header-Links ohnehin primary-dark, das passt hier. */
.ifv-site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: #fff !important;
}

/* Mobile-Overlay: WP-Core-Pfeile (mit eigener Interactivity-API) komplett
   ausblenden — nutzen würde sie das Sub-Sub-State unzuverlässig synchronisieren
   und beim Klick das Eltern-Menu schließen. Wir verwenden ausschließlich den
   per JS injizierten .ifv-arrow. */
.ifv-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon {
	display: none !important;
}

/* Submenüs im Overlay default eingeklappt */
.ifv-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
	height: 0 !important;
	overflow: hidden !important;
	opacity: 0 !important;
	visibility: hidden !important;
	padding: 0 !important;
	position: static !important;
	background: transparent !important;
	box-shadow: none;
	border: none !important;
	min-width: 0 !important;
}

/* Aufklappen wenn .ifv-submenu-open */
.ifv-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child.ifv-submenu-open > .wp-block-navigation__submenu-container {
	height: auto !important;
	overflow: visible !important;
	opacity: 1 !important;
	visibility: visible !important;
	padding-left: 1rem !important;
	padding-top: 0.25rem !important;
	width: 100% !important;
}

/* Pfeil rotieren wenn offen */
.ifv-site-header .has-child.ifv-submenu-open > .wp-block-navigation__submenu-icon svg {
	transform: rotate(180deg);
}

/* Injizierter Pfeil-Button (sitzt innerhalb des <a>) */
.ifv-arrow {
	display: none;
}
.is-menu-open .ifv-arrow {
	/* Ist ein <button> (Tastaturbedienbarkeit) — Browser-Chrome zuruecksetzen. */
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	font: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	min-height: 48px;
	margin-left: 0.5rem;
	color: var(--wp--preset--color--text-medium, #687080);
	font-size: 1.6rem;
	cursor: pointer;
	transition: transform 0.2s;
	vertical-align: middle;
}
.has-child.ifv-submenu-open .ifv-arrow {
	transform: rotate(180deg);
	color: var(--wp--preset--color--primary, #2E49C2);
}

/* Der Aufklapp-Button sitzt jetzt NEBEN dem Menuelink (vorher darin). Damit
   Zeile 1 = Link + Button und Zeile 2 = Submenu bleibt, wird das <li> zum
   Flex-Container mit Umbruch — ausschliesslich im geoeffneten Mobile-Overlay. */
.is-menu-open .wp-block-navigation-item.has-child {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: 1px solid var(--wp--preset--color--border, #e8e8e8);
}
.is-menu-open .wp-block-navigation-item.has-child > .wp-block-navigation-item__content {
	flex: 1 1 auto;
	width: auto !important;
	border-bottom: 0 !important;
}
.is-menu-open .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
	flex: 0 0 100%;
}
.is-menu-open .ifv-arrow:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary, #2E49C2);
	outline-offset: -3px;
	border-radius: 6px;
}

/* Submenü-Links im Overlay */
.ifv-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container a {
	font-size: 1rem;
	font-weight: 400;
	min-height: 40px;
	padding: 6px 0 !important;
	border-bottom: 1px solid var(--wp--preset--color--border, #e8e8e8);
}

/* Home button in header */
a.ifv-home-btn {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	text-decoration: none;
}

a.ifv-home-btn:hover {
	opacity: 0.75;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.ifv-site-footer {
	/* TEST auf Wunsch der Designerin: Styleguide-Grau statt primary-dark.
	   Rueckbau = wieder var(--wp--preset--color--primary-dark) (siehe Todo).
	   Wichtig: auf dem Grau reicht 92%-Weiss nicht (4,29:1) — deshalb volles
	   Weiss (4,98:1) und weisser statt cyaner Link-Hover (Cyan waere 1,74:1). */
	background: var(--wp--preset--color--text-medium, #687080);
	color: #fff;
}

.ifv-site-footer a {
	color: #fff !important;
	text-decoration: none;
}

.ifv-site-footer a:hover {
	color: #fff !important;
	text-decoration: underline;
}

/* 404-Suche: zielt wie Header- und Hero-Suche auf den Seminarkatalog
   (11.08.2026 — die WP-Volltextsuche haengt an keinem UI-Element mehr). */
.ifv-404-search {
	display: flex;
	gap: 0;
	border: 1px solid var(--wp--preset--color--border, #e8e8e8);
	border-radius: 8px;
	overflow: hidden;
}
.ifv-404-search input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	padding: 0.7rem 1rem;
	font-size: 1rem;
}
.ifv-404-search button {
	border: none;
	background: var(--wp--preset--color--primary, #2E49C2);
	color: #fff;
	font-weight: 600;
	padding: 0 1.5rem;
	cursor: pointer;
}
.ifv-404-search button:hover {
	background: var(--wp--preset--color--primary-dark, #22358E);
}

/* Footer-Linkliste in zwei Spalten (11.08.2026, Fabian: eine Liste mit 10
   Eintraegen ist zu lang). column-flow: die ersten sechs Markup-Eintraege
   fuellen die linke Spalte (Angebot: Seminare bis Seminarplaner), die
   naechsten sechs die rechte (Haus & Service: Das ifV bis Verbindungstest,
   seit 11.08. inkl. des jetzt auch fuer Gaeste offenen Tests). !important, weil die
   Grid-Regel die von WP generierte Flex-Layout-Klasse schlagen muss. */
.ifv-footer-links .wp-block-navigation__container {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(6, auto);
	grid-auto-flow: column;
	gap: 0.35rem 1.75rem;
}

@media (max-width: 480px) {
	/* Sehr schmal: zwei Spalten wuerden 'Ansprechpartner*innen' umbrechen. */
	.ifv-footer-links .wp-block-navigation__container {
		display: flex !important;
	}
}

.ifv-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	font-size: 0.85em;
	/* Frueher #d0d0d0 — das war fuer den dunkelblauen Footer gedacht. Auf dem
	   Styleguide-Grau sind das nur 3,23:1, Normaltext braucht 4,5:1 (von
	   Lighthouse als einziger Kontrastfehler gemeldet). Volles Weiss = 4,98:1.
	   Bei einem Rueckbau auf primary-dark kann hier wieder abgesetzt werden. */
	color: #fff;
}

.ifv-footer-bottom a {
	color: #fff !important;
}

/* ==========================================================================
   "So wird Ihr Seminartag" — Komfort vor Ort
   Sitzt direkt unter den Hero-Karten. Optik bewusst identisch zur
   .ifv-aktuelles-card (weisse Karte, 18px, gleicher Schatten), damit die
   Startseite nicht in vier verschiedene Kartenstile zerfaellt.
   ========================================================================== */

.ifv-seminartag {
	background: var(--wp--preset--color--light-bg, #F4F6F9);
	padding: clamp(2.5rem, 5vw, 4rem) var(--wp--preset--spacing--50, 1.5rem);
}
.ifv-seminartag-inner {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-inline: auto;
}
.ifv-seminartag-card {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 16px 44px rgba(34, 53, 142, 0.14);
	overflow: hidden;
	display: grid;
	grid-template-columns: 42% 58%;
}

/* Foto-Raster: oben das Leitmotiv ueber die ganze Breite (Lounge), darunter
   die beiden Belegbilder — Getraenke links, Seminarraum rechts.
   Bilder tragen kein eigenes Seitenverhaeltnis: das Raster gibt die Hoehe vor
   und object-fit beschneidet. Die Zuschnitte sind bereits auf diese Slots
   gerechnet (1200x540 bzw. 640x500), es wird also kaum nachbeschnitten. */
.ifv-seminartag-fotos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1.15fr 1fr;
	gap: 4px;
	background: #fff;
}
.ifv-seminartag-foto {
	display: block;
	overflow: hidden;
}
.ifv-seminartag-foto--gross {
	grid-column: span 2;
}
.ifv-seminartag-foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ifv-seminartag-text {
	padding: clamp(1.75rem, 3vw, 2.75rem);
	align-self: center;
}
.ifv-seminartag-text h2 {
	margin: 0 0 0.6rem;
	color: var(--wp--preset--color--primary-dark, #22358E);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.ifv-seminartag-lead {
	margin: 0 0 1.5rem;
	color: var(--wp--preset--color--text-medium, #687080);
	max-width: 52ch;
}

/* Zweispaltige Punkteliste; unter 1100px einspaltig, damit die Zeilen nicht
   auf drei Woerter zusammenschrumpfen. */
.ifv-seminartag-punkte {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem 2rem;
}
.ifv-seminartag-punkte li {
	position: relative;
	padding-left: 1.15rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--wp--preset--color--text-medium, #687080);
}
/* Raute statt Listenpunkt — greift das Logo-Motiv auf. */
.ifv-seminartag-punkte li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 7px;
	height: 7px;
	background: var(--wp--preset--color--primary, #2E49C2);
	transform: rotate(45deg);
}
.ifv-seminartag-punkte strong {
	display: block;
	color: var(--wp--preset--color--contrast, #1d1d1d);
	font-family: Montserrat, sans-serif;
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 0.15rem;
}

.ifv-seminartag-cta {
	margin: 0;
}
.ifv-seminartag-cta a {
	display: inline-block;
	background: var(--wp--preset--color--primary, #2E49C2);
	color: #fff;
	text-decoration: none;
	font-family: Montserrat, sans-serif;
	font-weight: 600;
	padding: 0.7rem 1.4rem;
	border-radius: 999px;
	transition: background 0.2s ease;
}
.ifv-seminartag-cta a:hover,
.ifv-seminartag-cta a:focus-visible {
	background: var(--wp--preset--color--primary-dark, #22358E);
}

@media (max-width: 1100px) {
	.ifv-seminartag-punkte { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
	/* Fotos nach oben, Text darunter — feste Hoehen, sonst frisst das Raster
	   den halben Bildschirm, bevor man den ersten Satz liest. */
	.ifv-seminartag-card { grid-template-columns: 1fr; }
	.ifv-seminartag-fotos {
		grid-template-rows: 190px 130px;
	}
}
@media (max-width: 560px) {
	/* Flacher, aber alle drei bleiben: die Belegbilder sind das Argument. */
	.ifv-seminartag-fotos {
		grid-template-rows: 150px 105px;
	}
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.ifv-hero {
	position: relative;
	overflow: hidden;
}

/* Flacher Halbtransparenz-Dim (primary-dark) ueber dem ganzen Hero-Bild —
   wieder aktiviert auf Wunsch (war zwischenzeitlich durch einen Verlauf ersetzt). */
.ifv-hero .wp-block-cover__background {
	/* Rollback-Werte: Blau var(--wp--preset--color--primary-dark), Grau-Test #3a3f4a */
	background-color: #3a3f4a !important; /* dunkles Grau (Favorit aus Testreihe) */
	background-image: none !important;
	opacity: 0.40 !important;
}

.ifv-hero .wp-block-cover__image-background {
	object-position: center 45%;
}

/* Mobiler Hero-Ausschnitt (11.08.2026, Fabian): mehr Gebaeude zeigen, die
   Seerosen-Insel mittig. Deren Zentrum liegt bei x=24% der Bildbreite; bei
   600px Hero-Hoehe ist das Cover-Bild ~796px breit skaliert, auf einem
   390er-Viewport landet der 24%-Punkt mit linksbuendigem Ausschnitt fast
   exakt in der Mitte (191px vs. 195px). 'left' statt Prozentwert, weil der
   linke Bildrand zugleich die Gebaeudekante ist. Gilt nur fuer das
   wasserbecken-Motiv sinnvoll — bei einem Motivwechsel mit pruefen. */
@media (max-width: 782px) {
	.ifv-hero .wp-block-cover__image-background {
		object-position: left 45%;
	}
}

/* Lesbarkeits-Scrim ueber der oberen Hero-Haelfte. Der flache 40%-Dim allein
   reicht bei hellen Motiven (Glasdach) nicht — die weisse Typo zerfaellt ueber
   den hellen Glasflaechen. Der Verlauf dunkelt genau die Textzone ab und laeuft
   nach unten auf 0 aus, damit das Foto darunter unangetastet bleibt.
   Paint-Order: ::before ist erstes Kind, liegt damit UEBER dem Bild (z-index 0)
   und UNTER Overlay-Span und Inhalt (beide z-index 1, spaeter im DOM). */
.ifv-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 78%;
	z-index: 1;
	pointer-events: none;
	/* Staerken am 11.08.2026 zweimal auf Fabians Wunsch reduziert, Endstand
	   0.42/0.32. ACHTUNG: abgestimmt NUR auf das wasserbecken-Motiv (Fabians
	   Entscheidung: Bild ist fix, Aenderung nur auf GL-Wunsch). Gemessen mit
	   Overlay+Scrim gegen den hellsten Block der Zone: H1 4,36:1 (Grosstext-
	   Schwelle 3:1), Claim 4,76:1 (Schwelle 4,5:1), mobil 4,41:1. Eine Stufe
	   heller (0.35/0.26) faellt der Claim mit 4,24:1 durch. Die uebrigen sechs
	   Motive halten diese Staerke NICHT mehr (glasdach & Co. brauchen ~0.60) —
	   bei einem Motivwechsel Scrim neu messen: scratchpad/hero-score.py. */
	background: linear-gradient(
		to bottom,
		rgba(29, 29, 29, 0.42) 0%,
		rgba(29, 29, 29, 0.32) 45%,
		rgba(29, 29, 29, 0) 100%
	);
}

/* Vorlage: Hero-Foto komplett sichtbar. Ab Desktop folgt die Hero-Höhe dem
   Bild-Seitenverhältnis (2000x1131) — object-fit:cover füllt dann exakt ohne
   Beschnitt. Mobil bleibt die feste Mindesthöhe (Inhalt braucht Platz). */
@media (min-width: 783px) {
	.ifv-hero {
		min-height: 0 !important;
		/* !important noetig: WP rendert bei gesetzter minHeight inline
		   'aspect-ratio:unset' auf den Cover-Block.
		   84% der vollen Bildhoehe (1131 * 0.84 = 950) — Designerin-Feedback:
		   Bild groesser, Karten ragen nur mit den Ueberschriften hinein. */
		aspect-ratio: 2000 / 950 !important;
	}
}

.ifv-hero h1,
.ifv-hero h2,
.ifv-hero p {
	color: #fff !important;
}

.ifv-hero h1 {
	font-size: clamp(1.75rem, 4vw, 3rem);
	margin-bottom: 0.5em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   News Carousel
   ========================================================================== */

.ifv-news-carousel {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.ifv-news-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--wp--preset--color--border, #ddd);
	border-radius: 50%;
	background: #fff;
	color: var(--wp--preset--color--primary-dark, #1a3a5c);
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ifv-news-arrow:hover:not(:disabled) {
	background: var(--wp--preset--color--primary-dark, #1a3a5c);
	color: #fff;
	border-color: var(--wp--preset--color--primary-dark, #1a3a5c);
}

.ifv-news-arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

/* Override wp:query grid → horizontal slider */
.ifv-news-slider {
	overflow: hidden;
}

.ifv-news-slider .wp-block-post-template {
	display: flex !important;
	flex-wrap: nowrap !important;
	transition: transform 0.4s ease;
}

.ifv-news-slider .wp-block-post-template > .wp-block-post {
	min-width: calc(33.333% - var(--wp--preset--spacing--40, 1.25rem) * 2 / 3);
	flex: 0 0 calc(33.333% - var(--wp--preset--spacing--40, 1.25rem) * 2 / 3);
}

@media (max-width: 768px) {
	.ifv-news-slider .wp-block-post-template > .wp-block-post {
		min-width: calc(50% - var(--wp--preset--spacing--40, 1.25rem) / 2);
		flex: 0 0 calc(50% - var(--wp--preset--spacing--40, 1.25rem) / 2);
	}
}

@media (max-width: 480px) {
	.ifv-news-slider .wp-block-post-template > .wp-block-post {
		min-width: 100%;
		flex: 0 0 100%;
	}
}

/* ==========================================================================
   Search – Seminar Results
   ========================================================================== */

/* Seminar-Treffer als auffaellige Karten (Anja-Feedback) */
.ifv-search-seminars {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.ifv-search-seminar-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 1rem 3rem 1rem 1.25rem;
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border, #ddd);
	border-left: 4px solid var(--wp--preset--color--primary, #2E49C2);
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(34, 53, 142, 0.08);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.ifv-search-seminar-item::after {
	content: "›";
	position: absolute;
	right: 1.1rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary, #2E49C2);
}

.ifv-search-seminar-item:hover {
	background: var(--wp--preset--color--light-bg, #F4F6F9);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(34, 53, 142, 0.14);
	text-decoration: none;
}

.ifv-search-seminar-title {
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--wp--preset--color--primary-dark, #22358E);
}

.ifv-search-seminar-meta {
	font-size: 0.85rem;
	color: var(--wp--preset--color--text-medium, #687080);
}

/* Seiten & Beitraege: eingerueckte Karten (sekundaerer Akzent) */
.ifv-search-posts .wp-block-post {
	margin-left: 1.25rem;
	padding: 1rem 1.25rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border, #ddd);
	border-left: 4px solid var(--wp--preset--color--secondary, #81A5D6);
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(34, 53, 142, 0.06);
}

.ifv-search-posts .wp-block-post-title {
	font-size: 1.05rem;
	margin: 0 0 0.25rem;
}

.ifv-search-posts .wp-block-post-title a {
	color: var(--wp--preset--color--primary-dark, #22358E);
	text-decoration: none;
}

.ifv-search-posts .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary, #2E49C2);
	text-decoration: underline;
}

.ifv-search-posts .wp-block-post-excerpt {
	font-size: 0.92rem;
	color: var(--wp--preset--color--text-medium, #687080);
}

@media (max-width: 600px) {
	.ifv-search-posts .wp-block-post { margin-left: 0.5rem; }
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.ifv-faq-item {
	border: 1px solid var(--wp--preset--color--border, #ddd);
	border-radius: 6px;
	margin-bottom: 0.5rem;
	background: #fff;
	transition: box-shadow 0.2s;
}

.ifv-faq-item[open] {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ifv-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.9rem 1.25rem;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--wp--preset--color--primary-dark, #1a3a5c);
	cursor: pointer;
	list-style: none;
	gap: 1rem;
}

.ifv-faq-item summary::-webkit-details-marker {
	display: none;
}

.ifv-faq-item summary::after {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
	opacity: 0.5;
}

.ifv-faq-item[open] summary::after {
	transform: rotate(-135deg);
	opacity: 0.8;
}

.ifv-faq-item summary:hover {
	background: #f8f9fb;
	border-radius: 6px;
}

.ifv-faq-answer {
	padding: 0 1.25rem 1rem;
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--wp--preset--color--text-medium, #555);
}

.ifv-faq-answer p {
	margin: 0;
}

.ifv-faq-answer a {
	color: var(--wp--preset--color--primary, #2E49C2);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ==========================================================================
   Cards & Content Boxes
   ========================================================================== */

.ifv-card {
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	border: 1px solid var(--wp--preset--color--border);
	padding: 1.5rem;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ifv-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* Action boxes (colored CTAs) */
.ifv-action-boxes-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 !important;
}

.ifv-action-boxes-row > .wp-block-group {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	min-height: 80px;
}

.ifv-action-boxes-row.wp-block-group {
	gap: 0 !important;
}

.ifv-action-box-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.5rem;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.1em;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: filter 0.2s, transform 0.2s;
	min-height: 80px;
}

.ifv-action-box-item:hover {
	filter: brightness(1.1);
	transform: scale(1.02);
	color: #fff;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.ifv-section-light {
	background: var(--wp--preset--color--light-bg);
}

.ifv-section-heading {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--primary-dark);
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 3px solid var(--wp--preset--color--primary);
	display: inline-block;
}

/* ==========================================================================
   Quick Links / Feature Grid
   ========================================================================== */

.ifv-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.ifv-feature {
	text-align: center;
	padding: 2rem 1.5rem;
}

.ifv-feature-icon {
	font-size: 2.5rem;
	color: var(--wp--preset--color--primary);
	margin-bottom: 1rem;
	display: block;
}

.ifv-feature h3 {
	color: var(--wp--preset--color--primary-dark);
	margin-bottom: 0.5rem;
}

.ifv-feature p {
	color: var(--wp--preset--color--text-medium);
	font-size: 0.95em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.ifv-btn-primary {
	display: inline-block;
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	padding: 0.7rem 1.75rem;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
	border: none;
	cursor: pointer;
}

.ifv-btn-primary:hover {
	background: var(--wp--preset--color--primary-dark);
	color: #fff !important;
}

.ifv-btn-secondary {
	display: inline-block;
	background: var(--wp--preset--color--secondary);
	color: #fff !important;
	padding: 0.7rem 1.75rem;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
	border: none;
	cursor: pointer;
}

.ifv-btn-secondary:hover {
	background: #7fcf29;
	color: #fff !important;
}

.ifv-btn-outline {
	display: inline-block;
	background: transparent;
	color: var(--wp--preset--color--primary) !important;
	padding: 0.6rem 1.75rem;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
	border: 2px solid var(--wp--preset--color--primary);
	cursor: pointer;
}

.ifv-btn-outline:hover {
	background: var(--wp--preset--color--primary);
	color: #fff !important;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.ifv-contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.ifv-contact-card {
	background: #fff;
	border-radius: 6px;
	padding: 1.5rem;
	border-top: 4px solid var(--wp--preset--color--primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ifv-contact-card h3 {
	color: var(--wp--preset--color--primary-dark);
	margin-bottom: 0.75rem;
}

.ifv-contact-card p {
	color: var(--wp--preset--color--text-medium);
	font-size: 0.95em;
	margin-bottom: 0.25rem;
}

/* ==========================================================================
   Breadcrumbs override (harmonize with theme)
   ========================================================================== */

.ifv-breadcrumbs {
	background: var(--wp--preset--color--light-bg);
	padding: 0.75rem 0;
	font-size: 0.85em;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.ifv-text-center { text-align: center; }
.ifv-text-white { color: #fff !important; }
.ifv-bg-primary { background: var(--wp--preset--color--primary) !important; }
.ifv-bg-primary-dark { background: var(--wp--preset--color--primary-dark) !important; }
.ifv-bg-secondary { background: var(--wp--preset--color--secondary) !important; }
.ifv-bg-accent { background: var(--wp--preset--color--accent) !important; }
.ifv-bg-light { background: var(--wp--preset--color--light-bg) !important; }

/* ==========================================================================
   WordPress Block Overrides
   ========================================================================== */

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--primary);
}

/* Override Psychedeli plugin header hacks — this theme handles its own header */
.wp-site-blocks header,
.wp-block-template-part:first-child {
	background: transparent !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 782px) {
	.ifv-site-header .wp-block-columns {
		flex-wrap: nowrap !important;
	}

	.ifv-action-boxes-row {
		grid-template-columns: 1fr;
	}

	.ifv-contact-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
	.ifv-site-header,
	.ifv-site-footer,
	.ifv-hero {
		display: none;
	}

	body {
		font-size: 12pt;
		line-height: 1.5;
		color: #000;
	}
}

/* ==========================================================================
   Hero Search
   ========================================================================== */
.ifv-hero-search-wrap {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ifv-hero-search-form {
    width: 100%;
    max-width: 640px; /* 11.08.2026: minimal breiter (Fabian), Suche ist DIE Hero-Aktion */
}

.ifv-hero-search-inner {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.22);
    overflow: visible;
    padding: 0 0 0 1.5rem;
}

.ifv-hero-search-inner input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    padding: 0.95rem 0.5rem 0.95rem 0;
    background: transparent;
    color: #1a1a2e;
    min-width: 0;
}

.ifv-hero-search-inner input[type="text"]::placeholder {
    color: #9a9ab0;
}

.ifv-hero-search-inner button[type="submit"] {
    flex-shrink: 0;
    border: none;
    background: var(--wp--preset--color--primary);
    color: #fff;
    padding: 0 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 56px;
    transition: background 0.2s;
    border-radius: 0 50px 50px 0;
}

/* CTA prominenter (11.08.2026, Fabian): sichtbares "Suchen"-Label statt
   Nur-Icon. Auf schmalen Viewports faellt das Label weg (Platz), das
   Icon traegt dann allein — deshalb bleibt es immer im Markup. */
.ifv-hero-search-label {
    font-family: var(--wp--preset--font-family--montserrat);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.ifv-hero-search-inner button[type="submit"]:hover {
    background: var(--wp--preset--color--primary-dark);
}

.ifv-hero-beratung-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 0.6rem 1.25rem;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.ifv-hero-beratung-cta:hover {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.ifv-hero-beratung-cta > svg:first-child {
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.ifv-hero-beratung-text {
    display: flex;
    flex-direction: column;
}

.ifv-hero-beratung-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.ifv-hero-beratung-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.ifv-hero-beratung-arrow {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    margin-left: 0.2rem;
    transition: transform 0.15s;
}

.ifv-hero-beratung-cta:hover .ifv-hero-beratung-arrow {
    transform: translateX(2px);
}

@media (max-width: 600px) {
    .ifv-hero-search-inner {
        padding-left: 1rem;
    }
    .ifv-hero-search-inner button[type="submit"] {
        padding: 0 1rem;
    }
    .ifv-hero-search-label {
        display: none;
    }
}

/* ==========================================================================
   Hero-Varianten a–e (Redesign-Vergleich; Reihenfolge am 11.08. abends
   rotiert: A = Kasten mittig (vorher B) · B = Kasten links (vorher D) ·
   C = Scrim-Panel (vorher A) · D = Marker (vorher C) · E = Duotone.

   Gemeinsame Basis bleibt der 40%-Dim + der 0.42/0.32-Scrim (fuer rc1
   gemessen); die Panels der Varianten kommen OBENDRAUF — weisser Text auf
   einem Panel ist damit immer deutlich besser als die 4,36:1, die die
   H1-Zone ohne Panel misst. Nur Variante E ersetzt beides durch ein
   eigenes Duotone-Overlay.

   Stellschrauben (alle hier, keine im Markup):
   - A/B dunkles Glas: --ifv-glas-alpha (0.5; ohne Blur-Support 0.78)
   - C/D Ink-Panel:    --ifv-panel-alpha (0.55 Minimum; 0.65 = Kleintext-sicher)
   - E   Duotone:      --ifv-duotone-alpha (0.8; unter 0.78 faellt Kleintext
         unter 4,5:1 ueber dem hellen Himmel — vorher rechnen, nicht drehen!)
   ========================================================================== */

.ifv-hero {
    --ifv-panel-alpha: 0.65;
    --ifv-glas-alpha: 0.5;
    --ifv-duotone-alpha: 0.8;
}

.ifv-hero-einheit {
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.ifv-hero-tagline {
    margin: 0;
    font-family: var(--wp--preset--font-family--montserrat);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fff;
}
.ifv-hero-tagline span { opacity: 0.6; margin-inline: 0.35em; }

.ifv-hero-h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2.15rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.ifv-hero-einheit .ifv-hero-search-form { margin-inline: auto; width: 100%; }

/* ── A (vorher B): dunkles Glas, Kasten MITTIG, feste H1-Zeilen (Fabian, 11.08., 2. Iteration):
   dunkles Glas + weisse Akzentlinie + linksbuendiger Text — identisches
   Material und identische Kontraste wie D (8,9:1), einziger Unterschied
   ist die zentrierte Position. Das helle Milchglas der urspruenglichen
   Variante B ist damit verworfen. */
.ifv-hero--va .ifv-hero-einheit,
.ifv-hero--va2 .ifv-hero-einheit {
    margin-inline: auto;
    text-align: left;
    align-items: flex-start;
    max-width: 640px;
    background: rgba(29, 29, 29, var(--ifv-glas-alpha));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-left: 4px solid #fff; /* einseitig: kein radius */
    padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.5rem);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .ifv-hero--va .ifv-hero-einheit,
    .ifv-hero--va2 .ifv-hero-einheit { background: rgba(29, 29, 29, 0.78); }
}
.ifv-hero--va .ifv-hero-tagline,
.ifv-hero--va .ifv-hero-h1 { text-align: left; }
.ifv-hero--va .ifv-hero-search-form { margin-inline: 0; }

/* Feste Zeilen in B (Fabian): "Seminare und Fortbildungen" / "für die" /
   "öffentliche Verwaltung". Die <br class="ifv-hero-br"> stehen im Markup
   aller Varianten, sind aber nur hier sichtbar — anderswo bricht die H1
   weiter frei um. Die Segmente sind in B zusaetzlich umbruchfest und die
   Schrift skaliert per vw so, dass die laengste Zeile in jeder Kasten-
   breite passt — sonst bricht z.B. ein 1366er-Laptop nach "und" um
   (Fabians Befund) und es entstehen Doppel-Umbrueche. */
.ifv-hero-br { display: none; }
.ifv-hero--va .ifv-hero-br,
.ifv-hero--va2 .ifv-hero-br { display: inline; }
.ifv-hero--va .ifv-hero-h1,
.ifv-hero--va2 .ifv-hero-h1 { font-size: clamp(1.2rem, 4vw, 2rem); }
.ifv-hero--va .ifv-hero-h1z,
.ifv-hero--va .ifv-hero-kw,
.ifv-hero--va2 .ifv-hero-h1z,
.ifv-hero--va2 .ifv-hero-kw { white-space: nowrap; }
@media (max-width: 420px) {
	/* Unter ~420px passt die laengste Zeile rechnerisch nicht mehr in den
	   Kasten (329px Zeile vs. 274px Innenbreite bei 360px-Geraeten) — dort
	   lieber frei umbrechen als aus dem Kasten laufen. */
	.ifv-hero--va .ifv-hero-h1z,
	.ifv-hero--va .ifv-hero-kw,
	.ifv-hero--va2 .ifv-hero-h1z,
	.ifv-hero--va2 .ifv-hero-kw { white-space: normal; }
}

/* ── C (vorher A): Scrim-Panel (konservativ) — Panel nur um Tagline+H1, Suche darunter ── */
.ifv-hero--vc .ifv-hero-einheit { gap: 1.5rem; }
.ifv-hero--vc .ifv-hero-tagline,
.ifv-hero--vc .ifv-hero-h1 { margin: 0; }
.ifv-hero--vc .ifv-hero-panel,
.ifv-hero--vc .ifv-hero-tagline { order: 0; }
.ifv-hero--vc .ifv-hero-einheit > .ifv-hero-tagline,
.ifv-hero--vc .ifv-hero-einheit > .ifv-hero-h1 {
    background: rgba(29, 29, 29, var(--ifv-panel-alpha));
    border-radius: 12px 12px 0 0;
    padding: 1rem clamp(1rem, 3vw, 2rem) 0;
}
.ifv-hero--vc .ifv-hero-einheit > .ifv-hero-h1 {
    border-radius: 0 0 12px 12px;
    padding-top: 0.5rem;
    padding-bottom: 1.1rem;
    margin-top: -1.1rem; /* Tagline+H1 zu EINEM Panel verschmelzen (gap kompensieren) */
}

/* ── D (vorher C): Marker-Highlight (auf Scrim-Untergrund wie C) ── */
.ifv-hero--vd .ifv-hero-einheit > .ifv-hero-tagline,
.ifv-hero--vd .ifv-hero-einheit > .ifv-hero-h1 {
    background: rgba(29, 29, 29, var(--ifv-panel-alpha));
    padding: 1rem clamp(1rem, 3vw, 2rem) 0;
    border-radius: 12px 12px 0 0;
}
.ifv-hero--vd .ifv-hero-einheit { gap: 1.5rem; }
.ifv-hero--vd .ifv-hero-einheit > .ifv-hero-h1 {
    border-radius: 0 0 12px 12px;
    padding-top: 0.5rem;
    padding-bottom: 1.1rem;
    margin-top: -1.5rem;
}
.ifv-hero--vd .ifv-hero-kw {
    display: inline-block;
    background: #fff;
    color: var(--wp--preset--color--primary);
    border-radius: 6px;
    padding: 0.05em 0.35em;
}

/* ── A.2 (Fabian): wie A, aber Inhalt zentriert — Akzentlinie links bleibt,
   Kasten eckig (2. Iteration). Kontraste = A (8,9:1). */
.ifv-hero--va2 .ifv-hero-einheit {
    text-align: center;
    align-items: center;
}
.ifv-hero--va2 .ifv-hero-tagline,
.ifv-hero--va2 .ifv-hero-h1 { text-align: center; }
.ifv-hero--va2 .ifv-hero-search-form { margin-inline: auto; }
.ifv-hero-einheit-logo {
    width: 140px;
    height: auto;
    aspect-ratio: 371 / 125;
    margin-inline: auto;
    margin-bottom: 0.25rem;
    opacity: 0.95;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}
@media (max-width: 600px) {
    .ifv-hero-einheit-logo { width: 112px; }
}

/* ── B (vorher D): Editorial linksbuendig, dunkles Glas, weisse Akzentlinie ── */
.ifv-hero--vb .ifv-hero-einheit {
    margin-inline: 0;             /* linke Achse — Suche wandert mit */
    text-align: left;
    align-items: flex-start;
    max-width: 640px;
    background: rgba(29, 29, 29, var(--ifv-glas-alpha));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-left: 4px solid #fff;  /* einseitige Border: KEIN border-radius */
    padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.5rem);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .ifv-hero--vb .ifv-hero-einheit { background: rgba(29, 29, 29, 0.78); }
}
.ifv-hero--vb .ifv-hero-tagline,
.ifv-hero--vb .ifv-hero-h1 { text-align: left; }
.ifv-hero--vb .ifv-hero-search-form { margin-inline: 0; }

/* ── E: Duotone-Overlay in Markenblau ── */
.ifv-hero--ve .wp-block-cover__background {
    background-color: var(--wp--preset--color--primary, #2E49C2) !important;
    opacity: var(--ifv-duotone-alpha) !important;
}
.ifv-hero--ve::before { display: none; } /* eigener Farbteppich statt Scrim */
.ifv-hero--ve .ifv-hero-tagline { color: #fff; } /* #9fb0f0 faellt auf dem Overlay durch 4,5:1 — gerechnet, nicht geschaetzt */
.ifv-hero--ve .ifv-hero-kw { border-bottom: 3px solid rgba(255, 255, 255, 0.6); }

/* Fokus-Ringe der Einheit (BITV): gleiche Optik wie das rc1-Suchfeld. */
.ifv-hero-einheit input[type="text"]:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary, #2E49C2);
    outline-offset: 2px;
}
.ifv-hero-einheit button[type="submit"]:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
    .ifv-hero-einheit, .ifv-hero-einheit * { transition: none !important; }
}

@media (max-width: 600px) {
    .ifv-hero-einheit { gap: 0.9rem; }
    .ifv-hero--va .ifv-hero-einheit,
    .ifv-hero--va2 .ifv-hero-einheit,
    .ifv-hero--vb .ifv-hero-einheit { padding: 1.1rem 1rem; }
}

/* Dev-Umschaltleiste (rendert nur auf dev2, siehe home.php) */
.ifv-hero-devbar {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 2000;
    display: flex;
    gap: 6px;
    align-items: center;
    background: rgba(29, 29, 29, 0.85);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
}
.ifv-hero-devbar a {
    color: #fff;
    text-decoration: none;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
}
.ifv-hero-devbar a.is-active { background: var(--wp--preset--color--primary, #2E49C2); }

/* ── Hero Logo + Claims (Lockup zentriert ueber der H1) ── */
.ifv-hero-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
}

/* Trennlinie zwischen Lockup und H1 — mit dem kleineren Lockup (11.08.2026)
   ebenfalls schmaler, sonst wirkt sie ueberdimensioniert. */
.ifv-hero-divider {
    width: clamp(220px, 26vw, 380px);
    height: 2px;
    background: var(--wp--preset--color--primary);
    margin: clamp(1.1rem, 2.2vw, 1.75rem) auto;
}

/* H1 + Suchfeld etwas nach oben: Inhalt sitzt leicht ueber der Mitte */
.ifv-hero .wp-block-cover__inner-container {
    transform: translateY(clamp(-2.25rem, -2.5vw, -1.25rem));
}

.ifv-hero-claims {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-left: clamp(1rem, 2vw, 1.5rem);
    border-left: 2px solid rgba(255, 255, 255, 0.55);
}

.ifv-hero-claims span {
    color: #fff;
    font-family: var(--wp--preset--font-family--montserrat);
    font-weight: 600;
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    letter-spacing: 0.04em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

@media (max-width: 781px) {
    .ifv-hero-logo-wrap { display: none; } /* mobil zu wenig Hero-Fläche */
}

.ifv-hero-logo {
    display: block;
    width: 150px; /* 11.08.2026: Lockup kleiner (Fabian), 180 -> 150 */
    height: auto;
    aspect-ratio: 371 / 125; /* offizielles Guide-Logo (3.05:1) */
    opacity: 0.95;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
    transition: opacity 0.2s;
}

.ifv-hero-logo-wrap:hover .ifv-hero-logo {
    opacity: 1;
}

@media (max-width: 600px) {
    .ifv-hero-logo {
        width: 120px;
    }
}

/* ── Newsletter CTA Button (Overlap) ── */
.ifv-newsletter-wrap {
    position: relative;
    z-index: 10;
    margin-top: -2.25rem;
    display: flex;
    justify-content: center;
    padding: 0 var(--wp--preset--spacing--50, 1.5rem);
    contain: layout style;
    min-height: 3.5rem;
}

.ifv-newsletter-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(0, 30, 80, 0.16);
    padding: 0.6rem 1.4rem 0.6rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s;
}

.ifv-newsletter-cta:hover {
    box-shadow: 0 6px 32px rgba(0, 30, 80, 0.22);
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}

.ifv-newsletter-cta > svg:first-child {
    color: var(--wp--preset--color--primary);
    flex-shrink: 0;
}

.ifv-nl-eyebrow {
    font-size: 0.75rem;
    color: #595959;
    letter-spacing: 0.04em;
    line-height: 1;
}

.ifv-nl-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.ifv-newsletter-cta .ifv-nl-eyebrow,
.ifv-newsletter-cta .ifv-nl-label {
    display: block;
}

.ifv-newsletter-cta > div,
.ifv-newsletter-cta span {
    display: block;
}

.ifv-nl-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ifv-nl-arrow {
    color: #9ca3af;
    flex-shrink: 0;
    margin-left: 0.2rem;
    transition: transform 0.15s;
}

.ifv-newsletter-cta:hover .ifv-nl-arrow {
    transform: translateX(2px);
}

/* ==========================================================================
   Beratungsseite
   ========================================================================== */

.ifv-berater-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .ifv-berater-grid {
        grid-template-columns: 1fr;
    }
}

.ifv-berater-card {
    background: #fff;
    border-radius: 6px;
    border-top: 4px solid var(--wp--preset--color--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.ifv-berater-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ifv-berater-foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ifv-berater-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--wp--preset--color--primary-dark);
}

.ifv-berater-info p {
    font-size: 0.9rem;
    color: var(--wp--preset--color--text-medium);
    margin-bottom: 0;
    line-height: 1.6;
}

.ifv-berater-info a {
    color: var(--wp--preset--color--primary);
}

.ifv-booking-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    padding: 0.5rem 1.2rem;
    background: var(--wp--preset--color--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.ifv-booking-toggle:hover {
    background: var(--wp--preset--color--primary-dark);
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   Mobile Navigation (≤782px — deckungsgleich mit Pill-nowrap ab 783px)
   ========================================================================== */

@media (max-width: 782px) {

    /* ── Hamburger-Button ──────────────────────────────────────────────── */
    .ifv-site-header .wp-block-navigation__responsive-container-open {
        padding: 8px;
    }
    .ifv-site-header .wp-block-navigation__responsive-container-open svg {
        width: 28px;
        height: 28px;
        /* dunkel auf der weissen Pill (fill:#fff stammte vom alten dunklen Header
           und machte den Burger unsichtbar) */
        fill: var(--wp--preset--color--primary-dark, #22358E);
    }

    /* ── Overlay ───────────────────────────────────────────────────────── */
    .ifv-site-header .wp-block-navigation__responsive-container.is-menu-open {
        padding-top: 5rem;
    }

    /* Close-Button */
    .ifv-site-header .wp-block-navigation__responsive-container-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: transparent;
        border: none;
        padding: 8px;
    }
    .ifv-site-header .wp-block-navigation__responsive-container-close svg {
        width: 28px;
        height: 28px;
        fill: var(--wp--preset--color--primary-dark, #22358E);
    }

    /* ── Menüpunkte vertikal, linksbündig, kompakt ────────────────────── */
    .ifv-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        align-items: flex-start;
    }
    .ifv-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
        align-items: stretch;
        gap: 0;
        padding: 0 1.5rem;
    }

    .ifv-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 8px 0;
        font-size: 1.1rem;
        font-weight: 600;
        border-bottom: 1px solid var(--wp--preset--color--border, #e8e8e8);
        width: 100%;
    }

    /* Submenü-Regeln jetzt außerhalb der Media Query (siehe oben) */

    /* ── Site-Titel kürzen ─────────────────────────────────────────────── */
    .ifv-site-header .wp-block-group.is-nowrap {
        gap: 0.5rem;
    }
    .ifv-site-header .wp-block-group.is-nowrap > p {
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

/* ──────────────────────────────────────────────────────────────────────
   Schwebende Aktions-Bubbles (Redesign 2026): eingeklappt nur Chat-Raute
   mit kreisförmigem Hinweistext; Stack klappt bei Hover/Focus auf.
   ────────────────────────────────────────────────────────────────────── */
/* Gemeinsamer Anker des Bubble-Ensembles: Mitte der Raute liegt auf der
   Unterkante der Hero (Desktop: Hero-Hoehe = 47.5vw [aspect 2000/950],
   um 78px unter die Header-Pill gezogen). Bleibt position:fixed (mitscrollend);
   max() verhindert Absacken auf kurzen/breiten Viewports. */
/* ==========================================================================
   Festes Seitenmenue am rechten Rand (.ifv-siderail)
   Ersetzt den frueheren Aufklapp-Stack samt Kreistext. Immer sichtbar, kein
   Hover noetig. Drei Custom Properties steuern die Geometrie — sie gelten
   auch im Shadow DOM des Flowise-Launchers, der per Shadow-CSS zur dritten
   Kachel geformt wird (siehe ifv_side_menu() in functions.php).

   Farben aus dem Styleguide: Kachel primary-dark, Hover primary. Weisse
   Schrift ergibt 10,67:1 bzw. 7,37:1 — beides deutlich ueber AA, was bei
   9,5px Beschriftung auch noetig ist.

   Verankert per top (nicht vertikal zentriert): so verschiebt die spaeter
   nachladende Chat-Kachel die beiden darueber nicht. CLS bleibt 0.
   ========================================================================== */

:root {
    --ifv-rail-top: clamp(120px, 32vh, 420px);
    --ifv-rail-size: 68px;
    --ifv-rail-gap: 2px;
    /* Glas-Optik wie die Startseiten-Karten (11.08.2026, Fabian). Basis bleibt
       primary-dark, damit die 9,5px-Beschriftung auch ueber weissem Grund satt
       Kontrast behaelt: Blend gegen Weiss bei alpha 0.85 -> 7,05:1. Die
       Variablen erben in den Flowise-Shadow-DOM — der Launcher-Button bekommt
       die Farbe automatisch, nur der Blur steht dort separat (functions.php,
       backdrop-filter erbt nicht). */
    --ifv-rail-bg: rgba(34, 53, 142, 0.85);
    --ifv-rail-bg-hover: rgba(46, 73, 194, 0.92);
}

.ifv-siderail {
    position: fixed;
    right: 0;
    top: var(--ifv-rail-top);
    z-index: 1099; /* ueber dem Sticky-Header (1000) */
    display: flex;
    flex-direction: column;
    gap: var(--ifv-rail-gap);
}

.ifv-siderail-item {
    width: var(--ifv-rail-size);
    height: var(--ifv-rail-size);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--ifv-rail-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-right: 0; /* Kachel liegt buendig am Seitenrand */
    color: #fff;
    text-decoration: none;
    border-radius: 12px 0 0 12px;
    transition: background-color 0.18s ease;
}
.ifv-siderail-item:hover,
.ifv-siderail-item:focus-visible {
    background: var(--ifv-rail-bg-hover);
    color: #fff;
}
.ifv-siderail-item svg {
    width: 24px;
    height: 24px;
    flex: none;
}
.ifv-siderail-text {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 9.5px;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
}

@media (max-width: 600px) {
    /* Schmaler, damit vom Inhalt genug uebrig bleibt. Die Beschriftung bleibt
       — sie ist der Grund, warum das Menue besser ist als der alte Stack. */
    :root {
        --ifv-rail-size: 56px;
        --ifv-rail-top: clamp(90px, 26vh, 300px);
    }
    .ifv-siderail-item svg { width: 20px; height: 20px; }
    .ifv-siderail-text { font-size: 8px; }
}

@media (min-width: 2200px) {
    /* 4K: Ensemble mitskalieren (wie zuvor der Bubble-Stack). */
    :root { --ifv-rail-size: 92px; }
    .ifv-siderail-item svg { width: 32px; height: 32px; }
    .ifv-siderail-text { font-size: 12.5px; }
}


/* ==========================================================================
   Redesign 2026 – Startseite (Figma): Karten, Quick-Links, Themenband,
   Netzwerke, Ueber-Uns-Akkordeon. Nutzt die Theme-Tokens (Mono-Violett).
   ========================================================================== */

/* --- Karten Seminarprogramm / Mein IFV (ueberlappen den Hero) --- */
.ifv-home-cards-wrap {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-inline: auto;
    padding-inline: var(--wp--preset--spacing--50);
    margin-top: clamp(-5.75rem, -6vw, -3.5rem); /* nur Karten-Überschriften ragen in den Hero (Designerin) */
    position: relative;
    z-index: 2;
}
.ifv-home-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2vw, 1.75rem);
}
.ifv-home-card {
    /* Glas-Experiment (11.08.2026, Fabian): halbtransparentes Primary statt
       Vollton — wirkt weniger kraeftig, bleibt aber in der Styleguide-Palette,
       weil KEINE neue Farbe eingefuehrt wird. Der Blur zieht das Hero-Foto in
       die Kartenflaeche (oben) bzw. laesst den weissen Grund durchscheinen
       (unten). alpha 0.85 ist die Kontrastgrenze: weisser Linktext (0.95rem,
       Schwelle 4,5:1) auf dem Blend gegen Weiss = 5,0:1; bei 0.75 nur 4,4:1. */
    background: rgba(46, 73, 194, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    border-radius: 18px; /* einheitlicher Radius Startseite */
    /* Vertikal etwas straffer (kleinere Hoehe), horizontal grosszuegiger
       (mehr Innenabstand) — beides Fabians Vorgabe. */
    padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 14px 36px rgba(34, 53, 142, 0.2);
}
.ifv-home-card h2 {
    color: #fff;
    /* Staerkere Trennung zwischen Ueberschrift und Links: eigene Linie
       plus mehr Abstand statt nur Weissraum. */
    margin: 0 0 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.ifv-home-card-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem 1.75rem;
}
.ifv-home-card-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition: opacity 0.15s ease;
}
.ifv-home-card-links a:hover { opacity: 0.8; text-decoration: none; }
.ifv-home-card-links a span { font-size: 1.1rem; }

/* --- Aktuelles (Karten-Karussell: Bild links, Panel rechts) --- */
.ifv-aktuelles {
    padding-inline: var(--wp--preset--spacing--50);
    padding-block: clamp(2.5rem, 5vw, 4rem);
}
.ifv-aktuelles-inner {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-inline: auto;
}
.ifv-aktuelles-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 44px rgba(34, 53, 142, 0.14);
}
.ifv-aktuelles-slide { display: none; }
.ifv-aktuelles-slide.is-active {
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: 360px;
}
.ifv-aktuelles-media {
    background-size: cover;
    background-position: center;
    border-radius: 18px 0 0 18px;
    min-height: 260px;
}
.ifv-aktuelles-media--placeholder {
    background: linear-gradient(135deg, var(--wp--preset--color--primary-dark), var(--wp--preset--color--primary));
}
.ifv-aktuelles-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 3rem);
    border: 1px solid rgba(46, 73, 194, 0.25);
    border-left: 0;
    border-radius: 0 24px 24px 0;
}
.ifv-aktuelles-body h2 {
    color: var(--wp--preset--color--primary);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0 0 0.5rem;
}
.ifv-aktuelles-title {
    margin: 0.25rem 0 0.75rem;
    font-size: 1.1rem;
    color: var(--wp--preset--color--primary-dark);
}
.ifv-aktuelles-text {
    color: #3a3a3a;
    font-size: 0.95rem;
    line-height: 1.65;
}
.ifv-aktuelles-link {
    margin-top: 1rem;
    align-self: flex-start;
    color: var(--wp--preset--color--primary);
    font-weight: 700;
    text-decoration: none;
}
.ifv-aktuelles-link:hover { text-decoration: underline; }
.ifv-aktuelles-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: none;
    background: transparent;
    color: var(--wp--preset--color--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s ease;
}
.ifv-aktuelles-arrow:hover { background: rgba(46, 73, 194, 0.1); }
.ifv-aktuelles-prev { left: calc(55% + 4px); }
.ifv-aktuelles-next { right: 8px; }
@media (max-width: 782px) {
    .ifv-aktuelles-slide.is-active { grid-template-columns: 1fr; }
    .ifv-aktuelles-media { border-radius: 18px 18px 0 0; min-height: 200px; }
    .ifv-aktuelles-body { border-left: 1px solid rgba(46, 73, 194, 0.25); border-top: 0; border-radius: 0 0 18px 18px; }
    .ifv-aktuelles-prev { left: 8px; }
    .ifv-aktuelles-next { right: 8px; }
}

/* --- Themenbereiche (violettes Vollband) --- */
.ifv-themenband {
    background: var(--wp--preset--color--primary);
    padding-block: clamp(2.5rem, 5vw, 4rem);
    padding-inline: var(--wp--preset--spacing--50);
    margin-block: clamp(2rem, 4vw, 3.5rem);
}
.ifv-themenband-inner {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-inline: auto;
}
.ifv-themenband h2 { color: #fff; margin: 0 0 1.5rem; }
.ifv-thementiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.75rem, 1.8vw, 1.5rem);
}
/* Kachel-Optik wie auf /themenbereiche/ (.ifv-tb-tile) — Anja-Feedback */
.ifv-thementile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: left;
    padding: 1.1rem 1.2rem 1rem;
    min-height: 108px;
    background: #fff;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(34, 53, 142, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}
/* Label in der Kachel (Platzhalter bis die Figma-Icons kommen, Task #64) */
.ifv-thementile span {
    font-family: var(--wp--preset--font-family--montserrat);
    font-weight: 600;
    font-size: clamp(0.85rem, 1vw, 1rem);
    line-height: 1.3;
    color: var(--wp--preset--color--primary-dark);
}
.ifv-thementile small {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--wp--preset--color--text-medium);
    flex: 1 1 auto;
}
.ifv-thementile::after {
    content: "Mehr erfahren ›";
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--wp--preset--color--primary);
}
.ifv-thementile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* --- Themenbereichs-Uebersicht (/themenbereiche/): Kachel-Grid --- */
.ifv-tb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-block: 1.5rem 3rem;
}
.ifv-tb-tile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 18px;
    padding: 1.4rem 1.5rem 1.2rem;
    box-shadow: 0 6px 18px rgba(34, 53, 142, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ifv-tb-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(34, 53, 142, 0.16);
    text-decoration: none;
}
.ifv-tb-tile h2 {
    font-size: 1.05rem;
    margin: 0;
    color: var(--wp--preset--color--primary-dark);
}
.ifv-tb-tile p {
    font-size: 0.9rem;
    color: var(--wp--preset--color--text-medium);
    margin: 0;
    flex: 1 1 auto;
}
.ifv-tb-mehr {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--wp--preset--color--primary);
}
.ifv-tb-tile--alle {
    background: var(--wp--preset--color--primary);
}
.ifv-tb-tile--alle h2, .ifv-tb-tile--alle p { color: #fff; }
.ifv-tb-tile--alle p { opacity: 0.85; }
.ifv-tb-tile--alle .ifv-tb-mehr { color: #fff; }
@media (max-width: 900px) { .ifv-tb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ifv-tb-grid { grid-template-columns: 1fr; } }

/* --- FAQ: Kategorie-Akkordeons (Dennis-Feedback) --- */
.ifv-faq-kategorie {
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
}
.ifv-faq-kategorie > summary {
    font-family: var(--wp--preset--font-family--montserrat);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--wp--preset--color--primary-dark);
    cursor: pointer;
}
.ifv-faq-kategorie[open] > summary { margin-bottom: 0.75rem; }
.ifv-faq-kategorie .wp-block-details { margin-left: 0.25rem; }

/* --- Anfahrt + Welcome-Video: weisse Karte wie der Aktuelles-Block (Designerin) --- */
.ifv-anfahrt-video {
    padding-inline: var(--wp--preset--spacing--50);
    padding-block: clamp(2.5rem, 5vw, 4rem);
}
.ifv-anfahrt-inner {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-inline: auto;
}
.ifv-anfahrt-card {
    display: grid;
    grid-template-columns: 55% 45%;
    background: #fff;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 18px;
    box-shadow: 0 16px 44px rgba(34, 53, 142, 0.14);
    overflow: hidden;
}
.ifv-anfahrt-col {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}
.ifv-anfahrt-col h2 {
    color: var(--wp--preset--color--primary-dark);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    margin-bottom: 1.25rem;
}
.ifv-anfahrt-col p {
    margin: 0 0 1rem;
    font-size: 0.98rem;
    color: var(--wp--preset--color--contrast);
}
.ifv-anfahrt-links a {
    color: var(--wp--preset--color--primary);
    font-weight: 600;
    text-decoration: none;
    line-height: 2;
}
.ifv-anfahrt-links a:hover { text-decoration: underline; }
.ifv-video-col {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    padding-left: 0;
    display: flex;
    flex-direction: column;
}
.ifv-video-col h2 {
    color: var(--wp--preset--color--primary-dark);
    font-size: 1.15rem;
    margin: 0 0 1rem;
}
.ifv-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--wp--preset--color--light-bg);
}
.ifv-video-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 0;
    cursor: pointer;
    color: #fff;
    background-color: var(--wp--preset--color--primary-dark, #22358E);
    background-size: cover;
    background-position: center;
    /* Poster hell -> Text braucht Deckung; auf dem Fallback-Blau egal. */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.ifv-video-facade:hover .ifv-video-facade-play,
.ifv-video-facade:focus-visible .ifv-video-facade-play {
    transform: scale(1.08);
    background: var(--wp--preset--color--primary, #2E49C2);
}
.ifv-video-facade-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 53, 142, 0.9);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
}
.ifv-video-facade-play svg { margin-left: 3px; }
.ifv-video-facade-label {
    font-family: var(--wp--preset--font-family--montserrat);
    font-weight: 600;
    font-size: 0.95rem;
}

.ifv-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 880px) {
    .ifv-anfahrt-card { grid-template-columns: 1fr; }
    .ifv-video-col { padding-left: clamp(1.5rem, 3vw, 2.5rem); padding-top: 0; }
}

/* --- OSM-Zwei-Klick-Consent (Anreise) --- */
.ifv-osm-consent {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        repeating-linear-gradient(45deg, rgba(34, 53, 142, 0.03) 0 12px, transparent 12px 24px),
        var(--wp--preset--color--light-bg);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 18px;
}
.ifv-osm-consent-inner {
    max-width: 480px;
    padding: 2rem 1.5rem;
    color: var(--wp--preset--color--text-medium);
}
.ifv-osm-consent-inner svg { color: var(--wp--preset--color--primary); margin-bottom: 0.5rem; }
.ifv-osm-consent-inner h3 {
    font-size: 1.05rem;
    color: var(--wp--preset--color--primary-dark);
    margin: 0 0 0.5rem;
}
.ifv-osm-consent-inner p { font-size: 0.9rem; margin: 0 0 1.25rem; }
.ifv-osm-consent-btn {
    background: var(--wp--preset--color--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s;
}
.ifv-osm-consent-btn:hover { background: var(--wp--preset--color--primary-dark); }

/* Consent-Box mit lokaler Karten-Vorschau als halbtransparentem Hintergrund */
.ifv-osm-consent--preview {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.ifv-osm-consent--preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78); /* Schleier: Vorschau erkennbar, Text lesbar */
}
.ifv-osm-consent--preview .ifv-osm-consent-inner {
    position: relative;
    z-index: 1;
}
.ifv-osm-consent-attrib {
    display: block;
    margin-top: 1rem;
    font-size: 0.72rem;
    color: var(--wp--preset--color--text-medium);
}

/* Statisches OSM-Kartenbild (consent-frei, lokal gehostet) */
.ifv-osm-static { margin: 1.25rem 0 2rem; }
.ifv-osm-static img {
    width: 100%;
    height: auto;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 18px;
    display: block;
}
.ifv-osm-static figcaption {
    font-size: 0.8rem;
    color: var(--wp--preset--color--text-medium);
    margin-top: 0.4rem;
}

/* --- Anker-Sprungleiste (das-ifv, UX-Audit D1) --- */
.ifv-anker-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 2rem;
}
.ifv-anker-nav a {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--wp--preset--color--light-bg);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wp--preset--color--primary-dark);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.ifv-anker-nav a:hover {
    background: var(--wp--preset--color--primary);
    color: #fff;
}

/* Verbindungstest noch nicht bestanden: Eintrag in der Mein-ifV-Karte hervorheben.
   Heller Balken + Badge, damit es auf dem blauen Kartenhintergrund auffaellt,
   ohne wie eine Fehlermeldung zu wirken. */
.ifv-home-card-links a.ifv-card-link--offen {
    background: rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--wp--preset--color--accent, #00A7C6);
    border-radius: 6px;
    margin-inline: -0.5rem;
    padding-inline: 0.5rem;
}
.ifv-home-card-links a.ifv-card-link--offen:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}
.ifv-card-badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #fff;
    color: var(--wp--preset--color--primary-dark, #22358E);
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: 0.05em;
    white-space: nowrap;
}

/* --- Kooperationspartner-Logos (das-ifv) --- */
.ifv-partner-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2.25rem;
    margin: 1.25rem 0 2rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 18px;
}
.ifv-partner-logos img {
    height: 44px;
    width: auto;
    display: block;
    filter: grayscale(35%);
    opacity: 0.9;
    transition: filter 0.15s ease, opacity 0.15s ease;
}
.ifv-partner-logos a:hover img { filter: none; opacity: 1; }

/* --- Netzwerke --- */
.ifv-netzwerke {
    padding-inline: var(--wp--preset--spacing--50);
}
.ifv-netzwerke-inner {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-inline: auto;
}
.ifv-netzwerke h2 { margin: 0 0 1.5rem; }
.ifv-netzwerke-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
}
.ifv-netzwerk-card {
    background: #fff;
    border-radius: 18px; /* einheitlicher Radius Startseite */
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--wp--preset--color--border);
}
.ifv-netzwerk-img {
    aspect-ratio: 16 / 7;
    background: linear-gradient(135deg, var(--wp--preset--color--primary-dark), var(--wp--preset--color--primary));
}
.ifv-netzwerk-body { padding: clamp(1rem, 2vw, 1.5rem); position: relative; }
.ifv-netzwerk-body h3 { margin: 0 0 0.5rem; color: var(--wp--preset--color--primary); }
.ifv-netzwerk-body p { margin: 0; color: var(--wp--preset--color--text-medium); font-size: 0.9rem; }
.ifv-netzwerk-more {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    color: var(--wp--preset--color--primary);
    display: inline-flex;
}

/* --- Ueber Uns (Akkordeon) --- */
.ifv-ueberuns {
    padding-inline: var(--wp--preset--spacing--50);
    padding-block: clamp(2.5rem, 5vw, 4rem);
}
.ifv-ueberuns-inner {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-inline: auto;
}
.ifv-ueberuns h2 { text-align: center; margin: 0 0 1.5rem; }
.ifv-accordion {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(34, 53, 142, 0.12);
}
.ifv-acc-item { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.ifv-acc-item:last-child { border-bottom: 0; }
.ifv-acc-item summary {
    list-style: none;
    cursor: pointer;
    background: var(--wp--preset--color--primary);
    color: #fff;
    font-weight: 700;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ifv-acc-item summary::-webkit-details-marker { display: none; }
.ifv-acc-item summary::after {
    content: "";
    width: 10px; height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}
.ifv-acc-item[open] summary::after { transform: rotate(-135deg); }
.ifv-acc-panel {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid var(--wp--preset--color--primary);
    border-top: 0;
}
.ifv-acc-panel p { margin: 0 0 0.75rem; }
.ifv-acc-panel a { color: var(--wp--preset--color--primary); font-weight: 600; text-decoration: none; }
.ifv-acc-panel a:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 782px) {
    .ifv-home-cards { grid-template-columns: 1fr; }
    .ifv-home-cards-wrap { margin-top: clamp(-3rem, -5vw, -2rem); }
    .ifv-thementiles { grid-template-columns: repeat(3, 1fr); }
    .ifv-netzwerke-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .ifv-home-card-links { grid-template-columns: 1fr; }
    .ifv-thementiles { grid-template-columns: repeat(2, 1fr); }
}

/* ──────────────────────────────────────────────────────────────────────
   Füllelemente (Styleguide S.3) — VORBEREITET, noch nicht platziert.
   Nutzung: <div class="ifv-deko"><span class="ifv-deko-a"></span>
   <span class="ifv-deko-b"></span><p class="ifv-deko-claim">Claim</p></div>
   Varianten: .ifv-deko--klein, .ifv-deko--cyan-vorn (Cyan vor Violett).
   ────────────────────────────────────────────────────────────────────── */
.ifv-deko { position: relative; width: 220px; height: 220px; }
.ifv-deko--klein { width: 140px; height: 140px; }
.ifv-deko-a, .ifv-deko-b { position: absolute; display: block; }
.ifv-deko-a { width: 62%; height: 62%; left: 0; bottom: 0; background: var(--wp--preset--color--accent); }
.ifv-deko-b { width: 48%; height: 48%; right: 0; top: 0; background: var(--wp--preset--color--primary); }
.ifv-deko--cyan-vorn .ifv-deko-a { background: var(--wp--preset--color--primary); }
.ifv-deko--cyan-vorn .ifv-deko-b { background: var(--wp--preset--color--accent); }
.ifv-deko-claim {
    position: absolute; top: 100%; left: 0; margin: 0.6rem 0 0;
    font-size: 0.85rem; color: var(--wp--preset--color--text-medium); line-height: 1.4;
}

/* ==========================================================================
   Redesign 2026 – Header als weiße, schwebende Pill (Override; steht bewusst
   am Dateiende, um die alten Dunkel-Bar-Regeln per Source-Order zu schlagen).
   ========================================================================== */
.ifv-site-header {
    background: transparent !important;
    box-shadow: none !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.25rem !important;
}
.ifv-header-bar {
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(34, 53, 142, 0.14);
    border: 1px solid var(--wp--preset--color--border);
    padding-left: clamp(0.75rem, 2vw, 1.5rem) !important;
    padding-right: clamp(0.75rem, 2vw, 1.5rem) !important;
    column-gap: 1rem;
}

/* Text/Links dunkel statt weiß */
.ifv-site-header,
.ifv-site-header a,
.ifv-site-header .wp-block-navigation a,
.ifv-site-header .wp-block-navigation .wp-block-navigation-item__content {
    color: var(--wp--preset--color--primary-dark) !important;
}
.ifv-site-header .wp-block-navigation a:hover,
.ifv-site-header .wp-block-navigation .wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--primary) !important;
}
.ifv-site-header .wp-block-navigation .current-menu-item > a,
.ifv-site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
    background: var(--wp--preset--color--primary) !important;
    color: #fff !important;
    border-radius: 999px;
    padding: 4px 12px;
}

/* Linke Gruppe: Logo + Telefon + Suche */
.ifv-header-left { display: flex; align-items: center; gap: 0.5rem; }
.ifv-header-logo { display: inline-flex; align-items: center; }
.ifv-header-logo img { height: 38px; width: auto; display: block; }
.ifv-header-right { column-gap: 0.5rem; }

/* Icon-Buttons (Telefon/Suche/User/Login) dunkel auf Weiß */
.ifv-header-phone,
.ifv-header-search-toggle,
.ifv-header-user-toggle,
.ifv-header-login-icon {
    color: var(--wp--preset--color--primary-dark) !important;
}
.ifv-header-phone {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    transition: background 0.15s ease;
}
.ifv-header-phone:hover,
.ifv-header-search-toggle:hover,
.ifv-header-search-toggle[aria-expanded="true"],
.ifv-header-user-toggle:hover,
.ifv-header-user-toggle[aria-expanded="true"],
.ifv-header-login-icon:hover {
    background: rgba(46, 73, 194, 0.10) !important;
}
.ifv-header-user-caret { opacity: 0.6; }

/* Eingeloggt: Maennchen als gefuellter Kreis in primary + gruener Status-Punkt.
   (.ifv-header-user-toggle rendert NUR fuer eingeloggte Nutzer — ausgeloggt
   erscheint stattdessen .ifv-header-login-icon.) */
.ifv-header-user-toggle {
    position: relative;
    background: var(--wp--preset--color--accent, #00A7C6) !important; /* Tuerkis wie e-Schulungs-Button */
    color: #fff !important;
    border-radius: 999px;
    padding: 5px 8px 5px 6px;
}
.ifv-header-user-toggle:hover,
.ifv-header-user-toggle[aria-expanded="true"] {
    background: #008DA8 !important; /* Cyan abgedunkelt */
}
.ifv-header-user-toggle::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2fbf71; /* Status: angemeldet */
    border: 2px solid #fff;
}

/* Aufgeklapptes Suchfeld: hell auf Weiß */
.ifv-header-search-input {
    background: var(--wp--preset--color--light-bg) !important;
    color: var(--wp--preset--color--contrast) !important;
    border: 1px solid var(--wp--preset--color--border) !important;
}
.ifv-header-search-input::placeholder { color: var(--wp--preset--color--text-medium) !important; }

/* Desktop: Pill bricht nie um — eine Zeile fuer Logo/Icons + Navigation.
   Suchfeld klappt als absolutes Overlay auf und nimmt keinen Platz im Flow ein. */
@media (min-width: 783px) {
    .ifv-header-bar { flex-wrap: nowrap !important; }
    .ifv-header-left { flex: 0 0 auto; }
    .ifv-header-right { flex: 0 1 auto; min-width: 0; }
    .ifv-header-right .wp-block-navigation { flex-wrap: nowrap !important; }
}
.ifv-header-search-form.is-open {
    position: absolute !important;
}

@media (max-width: 782px) {
    .ifv-header-logo img { height: 32px; }
    .ifv-header-bar { border-radius: 20px; }
}

/* Breakpoint-Luecke schliessen (UX-Audit B5): WP blendet den Burger ab 600px
   aus, die Pill darf aber erst ab 783px nicht mehr umbrechen. Dazwischen
   uebernimmt der Burger — nur im Header (Footer-Nav hat kein Overlay). */
@media (min-width: 600px) and (max-width: 782px) {
    .ifv-header-right .wp-block-navigation__responsive-container-open {
        display: flex !important;
    }
    .ifv-header-right .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: none !important;
    }
}

/* Header schwebt über dem Hero (nur Startseite): Hero unter die sticky, transparente
   Pill ziehen. Auf Unterseiten bleibt der Header normal in-flow. */
:root { --ifv-header-h: 70px; }
/* Puffer (-8px), damit oben garantiert kein heller Streifen durchscheint,
   falls die Pill minimal höher ist als --ifv-header-h. */
body.home .ifv-hero { margin-top: calc(-1 * var(--ifv-header-h) - 8px); }
body.home .ifv-hero .wp-block-cover__inner-container { position: relative; z-index: 1; }
/* Grosses Hero-Logo unter die Pill schieben, damit es nicht kollidiert */
body.home .ifv-hero-logo-wrap { top: calc(var(--ifv-header-h) + 0.75rem); }

/* --- Seminarplaner-Downloads (/seminarplaner/) ------------------------------
   Vier Karten mit Titelbild links und Text rechts. Bewusst kein CPT und keine
   Landing Page je PDF wie bei den Publikationen: es sind vier Dokumente ohne
   Archiv, da waere ein CPT Overhead und die Einzelseiten waeren Thin Content.
   --------------------------------------------------------------------------- */
.ifv-planer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 2.5rem;
}
.ifv-planer-karte {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1.25rem;
    align-items: start;
    background: #fff;
    border: 1px solid var(--wp--preset--color--border, #e8e8e8);
    border-radius: 14px;
    padding: 1.25rem;
}
.ifv-planer-cover {
    display: block;
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(34, 53, 142, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ifv-planer-cover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(34, 53, 142, 0.2);
}
.ifv-planer-cover img { width: 100%; height: auto; display: block; }

.ifv-planer-text h3 {
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
    color: var(--wp--preset--color--primary-dark, #22358E);
}
.ifv-planer-unter {
    margin: 0 0 0.45rem;
    color: var(--wp--preset--color--text-medium, #687080);
    font-size: 0.95rem;
}
.ifv-planer-meta {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--wp--preset--color--text-medium, #687080);
}
.ifv-planer-aktionen {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}
.ifv-planer-download {
    display: inline-block;
    background: var(--wp--preset--color--primary, #2E49C2);
    color: #fff;
    text-decoration: none;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    transition: background 0.2s ease;
}
.ifv-planer-download:hover,
.ifv-planer-download:focus-visible { background: var(--wp--preset--color--primary-dark, #22358E); color: #fff; }
.ifv-planer-link {
    font-size: 0.9rem;
    color: var(--wp--preset--color--primary, #2E49C2);
    text-decoration: none;
}
.ifv-planer-link:hover { text-decoration: underline; }

@media (max-width: 520px) {
    /* Auf schmalen Screens Titelbild ueber den Text — 130px Spalte lassen zu
       wenig Platz fuer die Zeilen. */
    .ifv-planer-karte { grid-template-columns: 1fr; }
    .ifv-planer-cover { max-width: 170px; }
}

/* --- Generischer Tab-Index ([ifv_tabs]) — gleiche Mechanik und Optik wie die
   Publikationsuebersicht, aber aus den H2 einer beliebigen Seite gebaut.
   Eigene Klassen statt .ifv-pub-*, weil jene im Plugin-CSS wohnen und an den
   Publikations-CPT gebunden sind. --- */
.ifv-tabs-intro { margin-bottom: 1.5rem; }
.ifv-tabs { margin-top: 1rem; }
.ifv-tabs.is-js {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 0;
    align-items: start;
}
.ifv-tablist { display: flex; flex-direction: column; padding-right: 1.25rem; }
.ifv-tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--wp--preset--color--border);
    text-align: left;
    font: inherit;
    font-weight: 600;
    color: var(--wp--preset--color--contrast);
    padding: 0.9rem 0.25rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.ifv-tab:hover { color: var(--wp--preset--color--primary); }
.ifv-tab.is-active {
    color: var(--wp--preset--color--primary);
    border-bottom: 2px solid var(--wp--preset--color--primary);
}
/* Panel wie bei den Publikationen: farbige Flaeche mit weissem Text.
   Weiss auf primary = 7,37:1, also AA-konform auch fuer Fliesstext. */
.ifv-tabpanel {
    background: var(--wp--preset--color--primary);
    color: #fff;
    border-radius: 0 14px 14px 14px;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    margin-bottom: 1.5rem; /* nur relevant ohne JS (alle Panels gestapelt) */
}
.ifv-tabs.is-js .ifv-tabpanel { display: none; margin-bottom: 0; }
.ifv-tabs.is-js .ifv-tabpanel.is-active { display: block; }
.ifv-tabpanel-titel { color: #fff; margin: 0 0 1rem; }
.ifv-tabpanel p { color: rgba(255, 255, 255, 0.92); }
.ifv-tabpanel p:last-child { margin-bottom: 0; }
.ifv-tabpanel h3 { color: #fff; font-size: 1.05rem; margin: 1.75rem 0 0.6rem; }
.ifv-tabpanel ul,
.ifv-tabpanel ol { color: rgba(255, 255, 255, 0.92); }
/* Links im Panel muessen sich vom Fliesstext abheben, ohne aus dem Blau zu
   fallen — Unterstreichung statt Farbwechsel. */
.ifv-tabpanel a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ifv-tabpanel a:hover { text-decoration-thickness: 2px; }
.ifv-tabpanel img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}
/* Mobile: Tabs als horizontale, scrollbare Leiste ueber dem Panel */
@media (max-width: 860px) {
    .ifv-tabs.is-js { grid-template-columns: 1fr; }
    .ifv-tablist {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 0.5rem;
        gap: 0.25rem;
        scrollbar-width: thin;
    }
    .ifv-tab {
        white-space: nowrap;
        border: 1px solid var(--wp--preset--color--border);
        border-radius: 999px;
        padding: 0.5rem 0.9rem;
    }
    .ifv-tab.is-active {
        border-color: var(--wp--preset--color--primary);
        background: var(--wp--preset--color--primary);
        color: #fff;
    }
    .ifv-tabpanel { border-radius: 14px; }
}

/* --- Publikationen: Tab-Index wie Original (links Kategorien, rechts Panel) --- */
.ifv-pub-tabs { margin-top: 1rem; }
.ifv-pub-tabs.is-js {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr;
    gap: 0;
    align-items: start;
}
.ifv-pub-tablist { display: flex; flex-direction: column; padding-right: 1.25rem; }
.ifv-pub-tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--wp--preset--color--border);
    text-align: left;
    font: inherit;
    font-weight: 600;
    color: var(--wp--preset--color--contrast);
    padding: 0.9rem 0.25rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.ifv-pub-tab:hover { color: var(--wp--preset--color--primary); }
.ifv-pub-tab.is-active {
    color: var(--wp--preset--color--primary);
    border-bottom: 2px solid var(--wp--preset--color--primary);
}
/* Panel: farbige Fläche (Violett) mit weißem Text */
.ifv-pub-panel {
    background: var(--wp--preset--color--primary);
    color: #fff;
    border-radius: 0 14px 14px 14px;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    margin-bottom: 1.5rem; /* nur relevant ohne JS (alle Panels gestapelt) */
}
.ifv-pub-tabs.is-js .ifv-pub-panel { display: none; margin-bottom: 0; }
.ifv-pub-tabs.is-js .ifv-pub-panel.is-active { display: block; }
.ifv-pub-panel h2 { color: #fff; margin: 0 0 0.75rem; }
.ifv-pub-kat-beschreibung { color: rgba(255, 255, 255, 0.9); margin: 0 0 1.5rem; }
.ifv-pub-leer { color: rgba(255, 255, 255, 0.85); font-style: italic; }
.ifv-pub-jahr { color: #fff; font-size: 1rem; font-weight: 700; margin: 1.75rem 0 0.75rem; }
.ifv-pub-liste { list-style: none; padding: 0; margin: 0; }
.ifv-pub-eintrag { margin-bottom: 1.4rem; }
.ifv-pub-eintrag:last-child { margin-bottom: 0; }
.ifv-pub-autoren { color: rgba(255, 255, 255, 0.88); font-style: italic; font-size: 0.92rem; }
.ifv-pub-titel { font-weight: 700; color: #fff; text-decoration: none; }
.ifv-pub-titel:hover { text-decoration: underline; color: #fff; }
.ifv-pub-nummer { color: rgba(255, 255, 255, 0.8); font-size: 0.88rem; }
.ifv-pub-nummer em { font-style: italic; }
/* Mobile: Tabs als horizontale, scrollbare Leiste über dem Panel */
@media (max-width: 860px) {
    .ifv-pub-tabs.is-js { grid-template-columns: 1fr; }
    .ifv-pub-tablist {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 0.5rem;
        gap: 0.25rem;
        scrollbar-width: thin;
    }
    .ifv-pub-tab {
        white-space: nowrap;
        border: 1px solid var(--wp--preset--color--border);
        border-radius: 999px;
        padding: 0.45rem 1rem;
        font-size: 0.9rem;
    }
    .ifv-pub-tab.is-active {
        background: var(--wp--preset--color--primary);
        border-color: var(--wp--preset--color--primary);
        color: #fff;
    }
    .ifv-pub-panel { border-radius: 14px; }
}

.ifv-pub-single-grid {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
    margin-top: 1rem;
}
.ifv-pub-cover img {
    width: 100%;
    height: auto;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(34, 53, 142, 0.14);
}
.ifv-pub-badge {
    display: inline-block;
    background: var(--wp--preset--color--primary);
    color: #fff;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.ifv-pub-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; margin: 0 0 1rem; }
.ifv-pub-meta dt { font-weight: 700; color: var(--wp--preset--color--primary-dark); }
.ifv-pub-meta dd { margin: 0; color: var(--wp--preset--color--text-medium); }
.ifv-pub-abstract { line-height: 1.7; }
.ifv-pub-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--wp--preset--color--primary);
    color: #fff !important;
    font-weight: 700;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    text-decoration: none !important;
    margin-top: 1rem;
    transition: background 0.15s ease;
}
.ifv-pub-download:hover { background: var(--wp--preset--color--primary-dark); }
.ifv-pub-zurueck { margin-top: 1.25rem; }
.ifv-pub-zurueck a { color: var(--wp--preset--color--primary); font-weight: 600; text-decoration: none; }
@media (max-width: 640px) {
    .ifv-pub-single-grid { grid-template-columns: 1fr; }
    .ifv-pub-cover { max-width: 220px; }
}

/* --- Blog: Ein-Seiten-Übersicht mit Kategorie-Farben + Artikelseiten --- */
.ifv-blog-filter {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.5rem;
    font-weight: 600;
}
.ifv-blog-filter select {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 999px;
    font: inherit;
    background: #fff;
    color: var(--wp--preset--color--contrast);
}
.ifv-blog-eintrag {
    position: relative;
    background: #fff;
    border: 1px solid var(--wp--preset--color--border);
    border-left: 5px solid var(--ifv-blog-farbe, var(--wp--preset--color--primary));
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.ifv-blog-badge {
    display: inline-block;
    background: var(--ifv-blog-farbe, var(--wp--preset--color--primary));
    color: #fff;
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.ifv-blog-titel { margin: 0.25rem 0 0.25rem; font-size: 1.15rem; }
.ifv-blog-titel a { color: var(--wp--preset--color--primary-dark); text-decoration: none; }
.ifv-blog-titel a:hover { color: var(--ifv-blog-farbe, var(--wp--preset--color--primary)); text-decoration: underline; }
.ifv-blog-meta { color: var(--wp--preset--color--text-medium); font-size: 0.82rem; margin: 0 0 0.5rem; }
.ifv-blog-teaser { margin: 0 0 0.6rem; font-size: 0.95rem; }
.ifv-blog-mehr {
    color: var(--ifv-blog-farbe, var(--wp--preset--color--primary));
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}
.ifv-blog-mehr:hover { text-decoration: underline; }
/* Artikelseite */
.ifv-blog-single-kopf { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.ifv-blog-single .ifv-blog-badge { margin-bottom: 0; }
.ifv-blog-inhalt { line-height: 1.7; }
.ifv-blog-cta {
    background: var(--wp--preset--color--light-bg);
    border-left: 5px solid var(--ifv-blog-farbe, var(--wp--preset--color--primary));
    border-radius: 10px;
    padding: 1.1rem 1.4rem;
    margin: 1.75rem 0 0;
}
.ifv-blog-cta p { margin: 0 0 0.75rem; }
.ifv-blog-cta-btn {
    display: inline-block;
    background: var(--wp--preset--color--primary);
    color: #fff !important;
    font-weight: 700;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    text-decoration: none !important;
}
.ifv-blog-cta-btn:hover { background: var(--wp--preset--color--primary-dark); }
.ifv-blog-ki-hinweis {
    color: var(--wp--preset--color--text-medium);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 1.5rem;
}
.ifv-blog-zurueck { margin-top: 1rem; }
.ifv-blog-zurueck a { color: var(--wp--preset--color--primary); font-weight: 600; text-decoration: none; }

/* Navigations-Untermenü ("Das ifV" u.a.): weißes Dropdown, dunkler Text,
   violetter Hover — lesbar auf der hellen Pill. */
.ifv-site-header .wp-block-navigation__submenu-container {
    background: #fff !important;
    border: 1px solid var(--wp--preset--color--border) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(34, 53, 142, 0.18) !important;
    padding: 0.35rem !important;
    min-width: 230px;
}
.ifv-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.ifv-site-header .wp-block-navigation__submenu-container a {
    color: var(--wp--preset--color--primary-dark) !important;
    border-radius: 8px;
    padding: 0.5rem 0.85rem !important;
}
.ifv-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.ifv-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.ifv-site-header .wp-block-navigation__submenu-container a:hover,
.ifv-site-header .wp-block-navigation__submenu-container a:focus {
    background: rgba(46, 73, 194, 0.10) !important;
    color: var(--wp--preset--color--primary) !important;
}
/* aktiver Punkt im Untermenü nicht als volle Pille, nur Textfarbe */
.ifv-site-header .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
    background: transparent !important;
    color: var(--wp--preset--color--primary) !important;
}

/* ==========================================================================
   Fokus-Sichtbarkeit (WCAG 2.4.7) — Audit Stufe C
   Vorher: nur 5 :focus-Regeln im gesamten Stylesheet, und die beiden Suchfelder
   hatten outline:none OHNE Ersatz. :focus-visible statt :focus, damit Mausklicks
   keinen Ring hinterlassen.
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--wp--preset--color--primary, #2E49C2);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Auf dunklen/farbigen Flaechen ist Blau unsichtbar — dort weiss umranden. */
.ifv-site-footer a:focus-visible,
.ifv-home-card a:focus-visible,
.ifv-themenband a:focus-visible,
.ifv-hero a:focus-visible,
.ifv-siderail-item:focus-visible {
    outline-color: #fff;
}
/* .ifv-anfahrt-col liegt seit 1.4.49 auf weisser Karte — dort der normale
   blaue Ring (weiss waere unsichtbar). */

/* Ersatz fuer die entfernten Outlines der beiden Suchfelder: der Ring sitzt am
   umgebenden Pill/Container, damit die Rundung nicht zerschnitten wird. */
.ifv-header-search-input:focus-visible,
.ifv-hero-search-inner input[type="text"]:focus-visible {
    outline: none;
}
.ifv-header-search-form:focus-within {
    box-shadow: 0 0 0 3px var(--wp--preset--color--primary, #2E49C2);
}
.ifv-hero-search-inner:focus-within {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(46, 73, 194, 0.55);
}

/* ==========================================================================
   Verbindungstest-Hinweis deutlicher (Bernstein statt dezentem Weiss)
   Rot wuerde "Test fehlgeschlagen" bedeuten — offen ist aber nur "noch zu tun",
   deshalb der Ampel-Gelbton, den wir bei Seminaren schon fuer "Achtung" nutzen.
   ========================================================================== */
.ifv-home-card-links a.ifv-card-link--offen {
    background: rgba(255, 194, 75, 0.18);
    border-left: 4px solid #FFC24B;
}
.ifv-home-card-links a.ifv-card-link--offen:hover {
    background: rgba(255, 194, 75, 0.28);
}
.ifv-card-badge {
    background: #FFC24B;
    color: #4A3000;
}
.ifv-card-badge::before {
    content: "!";
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    margin-right: 0.3em;
    border-radius: 50%;
    background: #4A3000;
    color: #FFC24B;
    font-size: 0.78em;
    line-height: 0.95em;
    text-align: center;
    vertical-align: 0.08em;
    font-weight: 700;
}

/* ==========================================================================
   Tuerkis-Kontraste (WCAG 1.4.3) — weisse Schrift auf #00A7C6 = 2,86:1.
   Das Styleguide-Tuerkis bleibt als Token unangetastet (Akzentlinien, Raender);
   fuer Flaechen MIT weisser Schrift gilt die abgedunkelte Textvariante.
   ========================================================================== */
:root {
    --ifv-accent-text: #00788F; /* weiss darauf ≈ 4,8:1 */
}
.ifv-site-header .ifv-header-eschulung {
    background: var(--ifv-accent-text) !important;
}
.ifv-site-header .ifv-header-eschulung:hover,
.ifv-site-header .ifv-header-eschulung:focus {
    background: #00647A !important;
}
.ifv-header-user-toggle {
    background: var(--ifv-accent-text) !important;
}
.ifv-header-user-toggle:hover,
.ifv-header-user-toggle[aria-expanded="true"] {
    background: #00647A !important;
}

/* Blog-Kategorie-Badge: die Farbe kommt aus dem Term-Meta und kann beliebig
   hell sein. color-mix dunkelt jede gewaehlte Farbe so weit ab, dass weisse
   Schrift lesbar bleibt — datengetrieben statt pro Farbe gepflegt.
   Fallback: die reine Term-Farbe (Regel darueber greift weiter). */
.ifv-blog-badge {
    background: color-mix(in srgb, var(--ifv-blog-farbe, var(--wp--preset--color--primary)) 72%, #000);
}
