/* neusta integrate – Darstellung eigener Blöcke und Block-Stile (Frontend und Editor) */

:root {
	--ni-night: var(--wp--preset--color--night, #061826);
	--ni-surface: var(--wp--preset--color--surface, #0b2436);
	--ni-line: var(--wp--preset--color--line, #1b3c55);
	--ni-white: #ffffff;
	--ni-body: var(--wp--preset--color--body, #e6eef4);
	--ni-muted: var(--wp--preset--color--muted, #a9bccb);
	--ni-blue: var(--wp--preset--color--ci-blue, #006897);
	--ni-blue-l: var(--wp--preset--color--blue-light, #7cc3ea);
	--ni-green: var(--wp--preset--color--ci-green, #009975);
	--ni-green-l: var(--wp--preset--color--green-light, #3fd0a6);
	--ni-radius-l: 28px;
	--ni-radius-m: 18px;
}

/* ---------- Typografische Stile ---------- */
.is-style-ni-lead { font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.4375rem); line-height: 1.45; color: var(--ni-muted); }
.is-style-ni-display { font-size: clamp(3rem, 1.6rem + 5.6vw, 6.5rem) !important; line-height: 0.98 !important; letter-spacing: -0.05em !important; }
.ni-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 500; color: var(--ni-muted); }
.ni-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--ni-green); flex: none; }
.ni-stat-value { margin: 0 !important; font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); line-height: 1; font-weight: 600; letter-spacing: -0.05em; color: var(--ni-green-l); font-variant-numeric: tabular-nums; }
.ni-stat-label { margin-top: 0.5rem !important; font-size: 0.9375rem; color: #c9d7e2; }

/* ---------- Karten ---------- */
.wp-block-group.is-style-ni-card,
.wp-block-group.is-style-ni-card-blue,
.wp-block-group.is-style-ni-card-green {
	border-radius: var(--ni-radius-l);
	padding: clamp(1.75rem, 1rem + 2.4vw, 3rem);
	box-sizing: border-box;
}
.wp-block-group.is-style-ni-card { background: var(--ni-surface); border: 1px solid var(--ni-line); }
.wp-block-group.is-style-ni-card p { color: var(--ni-muted); }
.wp-block-group.is-style-ni-card-blue { background: var(--ni-blue); color: var(--ni-white); }
.wp-block-group.is-style-ni-card-blue p { color: #d6ebf5; }
.wp-block-group.is-style-ni-card-blue a { color: var(--ni-white); }
.wp-block-group.is-style-ni-card-green { background: var(--ni-green); color: var(--ni-night); }
.wp-block-group.is-style-ni-card-green :where(h1, h2, h3, h4, p, a) { color: var(--ni-night); }
.wp-block-group.is-style-ni-card-green .wp-block-button__link { background: var(--ni-night); color: var(--ni-white); }
:where(.is-style-ni-card, .is-style-ni-card-blue, .is-style-ni-card-green) > :first-child { margin-top: 0; }

/* ---------- Gleitende Kartenreihe ---------- */
.wp-block-group.is-style-ni-drift { flex-wrap: nowrap !important; gap: 20px; width: max-content; max-width: none !important; box-sizing: border-box; padding-left: max(var(--wp--style--root--padding-left, 1.5rem), calc((100vw - 1240px) / 2)); padding-right: 6vw; }
.wp-block-group.is-style-ni-drift > * { flex: 0 0 clamp(280px, 30vw, 440px); min-height: 360px; display: flex; flex-direction: column; }
.wp-block-group.is-style-ni-drift > * > :last-child { margin-top: auto; }
.wp-block-group:has(> .wp-block-group.is-style-ni-drift) { overflow: hidden; }
@media (max-width: 781px) {
	.wp-block-group.is-style-ni-drift { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.wp-block-group.is-style-ni-drift > * { flex-basis: 82%; scroll-snap-align: start; min-height: 0; }
	.wp-block-group:has(> .wp-block-group.is-style-ni-drift) { overflow: visible; }
}
.editor-styles-wrapper .wp-block-group.is-style-ni-drift { width: auto; overflow-x: auto; }

/* ---------- Site-Logo weiß ---------- */
.wp-block-site-logo.is-style-ni-logo-white img { filter: brightness(0) invert(1); }

/* ---------- Integrations-Animation ---------- */
.ni-net { margin: 0; }
.ni-net__svg { display: block; width: 100%; height: auto; overflow: visible; }
.ni-net__center { font-family: inherit; font-size: 24px; font-weight: 600; fill: #ffffff; letter-spacing: -0.02em; }
.ni-net__label { font-family: inherit; font-size: 17px; font-weight: 500; fill: var(--ni-body); }
.ni-net__orbit { animation: ni-orbit 60s linear infinite; }
@keyframes ni-orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.ni-net__orbit { animation: none; }
	.ni-net__pulses { display: none; }
}

/* ---------- Timeline ---------- */
.ni-timeline { --ni-tl-col: clamp(110px, 16vw, 200px); position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(2.5rem, 2rem + 2vw, 4rem); }
.ni-timeline::before, .ni-timeline::after { content: ""; position: absolute; top: 12px; bottom: 12px; left: calc(var(--ni-tl-col) + 22px); width: 2px; border-radius: 2px; }
.ni-timeline::before { background: var(--ni-line); }
.ni-timeline::after { background: linear-gradient(var(--ni-blue-l), var(--ni-green-l)); transform-origin: top; }
.ni-tl-item { position: relative; display: grid; grid-template-columns: var(--ni-tl-col) minmax(0, 1fr); column-gap: 64px; margin: 0; }
.ni-tl-item::before { content: ""; position: absolute; left: calc(var(--ni-tl-col) + 15px); top: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--ni-night); border: 2px solid var(--ni-green-l); box-sizing: border-box; z-index: 1; }
.ni-tl-year { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1; font-weight: 600; letter-spacing: -0.05em; color: var(--ni-green-l); text-align: right; font-variant-numeric: tabular-nums; }
.ni-tl-body > :first-child { margin-top: 0; }
.ni-tl-body h3 { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); letter-spacing: -0.03em; color: var(--ni-white); margin-bottom: 0.6rem; }
.ni-tl-body p { color: var(--ni-muted); margin-top: 0; max-width: 38em; }
@media (max-width: 781px) {
	.ni-timeline::before, .ni-timeline::after { left: 7px; }
	.ni-tl-item { grid-template-columns: 1fr; padding-left: 40px; row-gap: 10px; }
	.ni-tl-item::before { left: 0; top: 6px; }
	.ni-tl-year { text-align: left; }
}
.ni-timeline.is-editor .ni-tl-year { min-width: 3ch; }

/* ---------- Arbeitsweise ---------- */
.ni-process { display: flex; flex-wrap: wrap; gap: clamp(2rem, 4vw, 4rem); align-items: flex-start; }
.ni-process__panel { flex: 1 1 460px; min-width: 0; position: sticky; top: 110px; }
.ni-process__steps { flex: 1 1 420px; min-width: 0; }
.ni-step { min-height: 380px; display: flex; flex-direction: column; justify-content: center; }
.ni-step__phase { margin: 0 0 0.75rem; font-size: 0.9375rem; font-weight: 600; color: var(--ni-green-l); }
.ni-step__inner h3 { margin: 0; font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1.04; letter-spacing: -0.045em; color: var(--ni-white); }
.ni-step__inner p:not(.ni-step__phase) { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--ni-muted); max-width: 26em; }
.ni-panel { border: 1px solid var(--ni-line); border-radius: 24px; background: var(--ni-surface); overflow: hidden; }
.ni-panel__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 22px; border-bottom: 1px solid var(--ni-line); font-size: 0.875rem; color: var(--ni-muted); }
.ni-panel__title { font-weight: 600; color: var(--ni-body); }
.ni-panel__bars { display: grid; gap: 12px; padding: 28px 22px 8px; }
.ni-panel__phase { display: flex; flex-direction: column; gap: 10px; }
.ni-panel__track { display: block; height: 6px; border-radius: 3px; background: var(--ni-line); overflow: hidden; }
.ni-panel__bar { display: block; height: 6px; border-radius: 3px; background: var(--ni-green); }
.ni-panel__bar.is-blue { background: var(--ni-blue-l); }
.ni-panel__label { font-size: 0.875rem; color: var(--ni-body); overflow-wrap: anywhere; }
@media (max-width: 600px) { .ni-panel__label { font-size: 0.75rem; } }
.ni-panel__list { list-style: none; margin: 0; padding: 20px 22px 26px; display: flex; flex-direction: column; gap: 14px; font-size: 1rem; color: var(--ni-body); }
.ni-panel__list li { display: flex; align-items: center; gap: 12px; }
.ni-panel__check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ni-green); background: var(--ni-green); box-sizing: border-box; flex: none; }
.ni-panel__hint { margin: 0; padding: 16px 22px 22px; font-size: 0.8125rem; color: var(--ni-muted); }
.ni-process.is-editor .ni-process__panel { position: static; }
.ni-process.is-editor .ni-step__inner { padding: 24px 0; border-bottom: 1px dashed var(--ni-line); }
@media (max-width: 781px) {
	.ni-process__panel { position: static; }
	.ni-step { min-height: 0; padding: 2rem 0; }
}

/* ---------- Laufband ---------- */
.ni-marquee__label { margin: 0 0 1.75rem; font-size: 0.9375rem; color: var(--ni-muted); }
.ni-marquee__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ni-marquee__track { display: flex; width: max-content; animation: ni-marquee 40s linear infinite; }
.ni-marquee__set { display: flex; gap: 64px; padding-right: 64px; }
.ni-marquee__set p { margin: 0; white-space: nowrap; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ni-muted); }
@keyframes ni-marquee { to { transform: translateX(-50%); } }
.ni-marquee:hover .ni-marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ni-marquee__track { animation: none; } }
.ni-marquee.is-editor .ni-marquee__set { flex-wrap: wrap; gap: 12px 40px; }

/* ---------- Kontaktformular (dunkel) ---------- */
.ni-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.ni-field { margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.ni-field--wide { grid-column: 1 / -1; }
.ni-field label { font-size: 0.9375rem; font-weight: 500; color: var(--ni-body); }
.ni-field input, .ni-field textarea { font: inherit; color: var(--ni-white); background: var(--ni-night); border: 1px solid var(--ni-line); border-radius: 12px; padding: 0.85rem 1rem; width: 100%; box-sizing: border-box; }
.ni-field textarea { resize: vertical; min-height: 9rem; }
.ni-field input:focus, .ni-field textarea:focus { outline: 2px solid var(--ni-green-l); outline-offset: 0; border-color: transparent; }
.ni-field--check { flex-direction: row; align-items: flex-start; gap: 0.75rem; margin-top: 1.25rem; font-size: 0.9375rem; color: var(--ni-muted); }
.ni-field--check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--ni-green); flex: none; }
.ni-form__submit { margin-top: 1.5rem; cursor: pointer; border: 0; font: inherit; font-weight: 600; color: var(--ni-night); background: var(--ni-green); border-radius: 999px; padding: 0.85em 1.6em; }
.ni-form__submit:hover { background: var(--ni-green-l); }
.ni-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ni-form__msg { border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.ni-form__msg--ok { background: #0f3b31; color: #c9f4e5; }
.ni-form__msg--error { background: #4a1820; color: #ffd9dd; }
@media (max-width: 600px) { .ni-form__grid { grid-template-columns: 1fr; } }
