/* Innovationspark Horb – Ergänzungen zu theme.json */

/* Überschriften schmal wie im Logo */
h1, h2, h3, .wp-block-post-title, .wp-block-site-title, .ip-schmal {
	font-stretch: var(--wp--custom--stretch--headline);
}
.ip-label, .wp-block-navigation, .wp-element-button, .wp-block-button__link {
	font-stretch: var(--wp--custom--stretch--label);
}
.ip-label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--violett-dunkel);
}
.has-nachtblau-background-color .ip-label { color: var(--wp--preset--color--violett-hell); }

/* Leitmotiv: Bahnen aus dem Logo */
.is-style-bahnen {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.is-style-bahnen::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -4%;
	top: 50%;
	width: min(58vw, 760px);
	aspect-ratio: 232 / 108;
	transform: translateY(-50%);
	background: url("../img/innovationspark-bildmarke.svg") no-repeat center / contain;
	opacity: 0.12;
	pointer-events: none;
}
.has-nachtblau-background-color.is-style-bahnen::after { opacity: 0.16; }
footer.is-style-bahnen::after { opacity: 0.08 !important; width: min(40vw, 520px); }

.is-style-bahn-linie {
	border: 0;
	height: 6px;
	width: 96px;
	background: var(--wp--preset--color--violett);
	border-radius: 6px 2px 6px 2px;
	transform: skewX(-18deg);
	margin-left: 0;
}

/* Karten */
.is-style-karte {
	background: var(--wp--preset--color--weiss);
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius);
	padding: var(--wp--preset--spacing--40);
	height: 100%;
	transition: border-color .2s ease, transform .2s ease;
}
.is-style-karte:hover { border-color: var(--wp--preset--color--violett); }
.is-style-karte:has(a:focus-visible) { outline: 3px solid var(--wp--preset--color--violett); outline-offset: 3px; }

/* Status-Badges Flächenfinder (Taxonomie „Belegung“) */
.ip-badge {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	background: var(--wp--preset--color--kalk);
	color: var(--wp--preset--color--nachtblau);
}
.ip-badge--frei { background: var(--wp--preset--color--signal); }
.ip-badge--bald-frei { background: var(--wp--preset--color--violett-zart); color: var(--wp--preset--color--violett-dunkel); }
.ip-status .wp-block-post-terms__separator { display: none; }

/* Kompetenz-Tags */
.ip-tags a {
	display: inline-block;
	margin: 0 0.35rem 0.35rem 0;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: var(--wp--preset--color--violett-zart);
	color: var(--wp--preset--color--violett-dunkel);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}
.ip-tags a:hover { background: var(--wp--preset--color--violett); color: var(--wp--preset--color--weiss); }

/* Termin-Datum */
.ip-datum {
	font-stretch: var(--wp--custom--stretch--headline);
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--violett-dunkel);
}

/* Formular Raumanfrage */
.ip-form { display: grid; gap: 1rem; }
.ip-form .ip-feldgruppe { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ip-form label { display: block; font-weight: 600; font-size: var(--wp--preset--font-size--small); margin-bottom: 0.3rem; }
.ip-form input:not([type=checkbox]), .ip-form select, .ip-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--wp--preset--color--grau);
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--nachtblau);
}
.ip-form input:focus-visible, .ip-form select:focus-visible, .ip-form textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--violett);
	outline-offset: 1px;
}
.ip-form .ip-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--wp--preset--font-size--small); }
.ip-form .ip-check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; }
.ip-form .ip-honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ip-hinweis { padding: 1rem 1.25rem; border-radius: var(--wp--custom--radius); }
.ip-hinweis--ok { background: #E3F5EE; color: var(--wp--preset--color--signal-dunkel); }
.ip-hinweis--fehler { background: #FBE9E9; color: #8A1C1C; }

/* Leere, gebundene Felder ausblenden */
.wp-block-group p:empty { display: none; }

/* Kopfbereich */
.ip-header { border-bottom: 1px solid var(--wp--preset--color--linie); }
.ip-header .wp-block-site-logo img { height: auto; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.ip-logo { display: block; line-height: 0; }
.ip-logo img { width: clamp(96px, 10vw, 128px); height: auto; }
@media (max-width: 781px) { .ip-nur-desktop { display: none !important; } }

/* Seitenkopf (Titelbereich) */
.ip-seitenkopf { border-bottom: 1px solid var(--wp--preset--color--linie); }

/* Karten: Titel und Begriffe ruhiger */
.is-style-karte .wp-block-post-title a { color: var(--wp--preset--color--nachtblau); text-decoration: none; }
.is-style-karte .wp-block-post-title a:hover { color: var(--wp--preset--color--violett-dunkel); text-decoration: underline; }
.is-style-karte .wp-block-post-terms:not(.ip-tags):not(.ip-status) a { color: inherit; text-decoration: none; }
.is-style-karte .ip-datum { font-size: var(--wp--preset--font-size--medium); margin-bottom: -0.5rem; }
.ip-header .wp-block-navigation a { text-decoration: none; }
.ip-header .wp-block-navigation a:hover, .ip-header .wp-block-navigation .current-menu-item a { text-decoration: underline; text-underline-offset: 0.3em; }
.ip-seitenkopf .wp-block-post-terms:not(.ip-tags):not(.ip-status) a { color: inherit; text-decoration: none; }
.ip-seitenkopf .wp-block-post-terms:not(.ip-tags):not(.ip-status) a:hover { text-decoration: underline; }

/* Lange deutsche Wörter in Karten sauber trennen */
.is-style-karte .wp-block-post-title, .is-style-karte h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: normal; word-break: normal; }
