/* =========================================================================
   NEBO – Theme-Styles
   Aufbau: Tokens, Grundlagen, Layout, Header, Hero, Bausteine, Footer,
   Prose (Block-Editor), Responsive.
   ========================================================================= */

/* --- Tokens ------------------------------------------------------------- */
:root {
	--ink:            #0C0D0F;
	--ink-text:       #15171A;
	--paper:          #F5F6F7;
	--paper-soft:     #EAEDEF;
	--accent:         #FF4D06;   /* exakt das Orange aus dem Logo */
	--accent-ink:     #C0430F;   /* Markenorange, so weit wie WCAG AA auf Papier zulaesst (4,53:1) */

	--on-dark:        #EEF0F2;
	--on-dark-muted:  #A0A5AA;
	--on-dark-faint:  #888E94;
	--rule-dark:      #202326;

	--on-light-muted: #4E545A;
	--on-light-faint: #5D646A;
	--label:          #656C73;
	--rule-light:     #D3D8DC;

	--font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--gutter: clamp(20px, 4.4vw, 64px);
	--maxw: 1440px;
	--section-y: clamp(58px, 7.4vw, 102px);

	--fs-display: clamp(38px, 5.6vw, 78px);
	--fs-display-sm: clamp(32px, 4.2vw, 60px);
	--fs-lead: clamp(16px, 1.35vw, 19px);
	--fs-body: 16px;
}

/* --- Grundlagen --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink-text);
	font-family: var(--font-display);
	font-size: var(--fs-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-decoration: none; }

/* Labels auf dunklem Grund brauchen den helleren Ton (Kontrast) */
.site-footer .label, .site-header--over .label, .hero .label { color: var(--on-dark-faint); }
.cut__label, .section--dark .label { color: var(--on-dark-faint); }
a:hover, a:focus-visible { color: var(--ink-text); text-decoration: underline; text-underline-offset: 3px; }

/* Fliesstext-Links: Unterstreichung in der Linkfarbe selbst */
.prose a { text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .prose a:focus-visible { color: var(--accent-ink); text-decoration-thickness: 2px; }

h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Fokusring: --accent-ink erreicht 4,58:1 gegen den Papierton, --accent nur 2,93:1 */
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 1px; }
.site-header--over :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .section--dark :focus-visible, .cut :focus-visible { outline-color: var(--accent); }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--accent); color: var(--ink);
	padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --- Layout ------------------------------------------------------------- */
.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--light { background: var(--paper); color: var(--ink-text); }
.section--dark + .section--dark { padding-top: 0; }

/* --- Wiederkehrende Textbausteine --------------------------------------- */
.eyebrow {
	display: flex; align-items: center; gap: 14px;
	margin: 0 0 22px;
	font-family: var(--font-mono);
	font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--label);
}
.eyebrow--dark { color: var(--on-dark-faint); }
.rule { display: block; width: 44px; height: 1px; background: var(--accent); flex: none; }

.display { font-size: var(--fs-display); line-height: 0.95; letter-spacing: -0.04em; }
.display--tight { font-size: var(--fs-display-sm); line-height: 1; }
.display--dark { color: var(--on-dark); }

.lead {
	max-width: 46ch;
	margin-top: 24px;
	font-size: var(--fs-lead);
	line-height: 1.55;
	color: var(--on-light-muted);
}
.lead--dark { color: var(--on-dark-muted); }

.label {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--label);
	margin-bottom: 14px;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 17px 34px;
	border-radius: 999px;
	font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
	transition: transform .18s ease, background-color .18s ease, color .18s ease;
	text-decoration: none;
}
.btn:hover, .btn:focus-visible { text-decoration: none; transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover, .btn--accent:focus-visible { background: #ff6a33; color: var(--ink); }

/* --- Header ------------------------------------------------------------- */
.site-header {
	position: relative; z-index: 60;
	background: var(--paper);
	border-bottom: 1px solid var(--rule-light);
}
.site-header__inner {
	max-width: var(--maxw); margin-inline: auto;
	padding: 20px var(--gutter);
	display: flex; align-items: center; gap: 32px;
}

.site-header--over {
	position: absolute; top: 0; left: 0; right: 0; bottom: auto;
	background: transparent;
	border-bottom: 0;
}
/* Eingeloggte Ansicht: die WordPress-Adminleiste liegt fix ueber der Seite. */
.admin-bar .site-header--over,
.admin-bar .site-header--stuck { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .site-header--over { top: 46px; }
	.admin-bar .site-header--stuck { top: 0; }
}
.site-header--over .nav__list a { color: var(--on-dark); }
.site-header--over .site-nav__cta { border-color: rgba(242,239,234,.4); color: var(--on-dark); }
.site-header--over .nav-toggle__bar { background: var(--on-dark); }
.site-header--over .nav-toggle__label { color: var(--on-dark); }
/* Auf dunklem Grund traegt --accent-ink zu wenig, dort bleibt das volle Markenorange. */
.site-header--over .nav__list a:hover,
.site-header--over .nav__list .current-menu-item > a,
.site-header--over .nav__list a[aria-current="page"] { color: var(--accent); }
.site-header--over .site-nav__cta:hover { border-color: var(--accent); color: var(--accent); }
.site-nav.is-open .nav__list a:hover,
.site-nav.is-open .nav__list a[aria-current="page"] { color: var(--accent); }

/* Wird per JS gesetzt, sobald der Hero durchgescrollt ist. */
.site-header--stuck {
	position: fixed; top: 0;
	background: rgba(11,11,12,.92);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--rule-dark);
	animation: nebo-drop .28s ease both;
}
@keyframes nebo-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.brand { display: block; margin-right: auto; line-height: 0; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__img { width: auto; height: clamp(30px, 3.4vw, 40px); }
.brand__img--on-dark { display: none; }
.site-header--over .brand__img--on-light,
.site-header--stuck .brand__img--on-light { display: none; }
.site-header--over .brand__img--on-dark,
.site-header--stuck .brand__img--on-dark { display: block; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.nav__list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
	color: var(--ink-text); text-decoration: none;
	font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
}
.nav__list a:hover, .nav__list .current-menu-item > a,
.nav__list a[aria-current="page"] { color: var(--accent-ink); text-decoration: none; }

.site-nav__cta {
	padding: 10px 20px; border: 1px solid var(--rule-light); border-radius: 999px;
	font-size: 13px; font-weight: 700; color: var(--ink-text); text-decoration: none;
}
.site-nav__cta:hover { border-color: var(--accent-ink); color: var(--accent-ink); text-decoration: none; }

.nav-toggle { display: none; }

/* --- Hero --------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: min(92vh, 900px);
	display: flex; flex-direction: column; justify-content: flex-end;
	overflow: hidden;
	background: var(--ink);
	color: var(--on-dark);
	isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
/* Das Videobild ist nur in den Buchstaben zu sehen und dort recht dunkel –
   deshalb aufgehellt, waehrend die Scrim-Deckung ringsum erhoeht wurde. */
.hero__video {
	width: 100%; height: 100%; object-fit: cover;
	/* Bildausschnitt nach oben gezogen: der helle Himmel liegt dann hinter der
	   Schrift, nicht die dunkle Strassenebene. */
	object-position: 50% 34%;
	filter: brightness(1.75) saturate(1.2) contrast(0.98);
}

.hero__gradient {
	position: absolute; inset: 0;
	background-image: linear-gradient(100deg, #16233F 0%, #3B2A63 12%, #7E3670 26%, #D2512F 40%, #FF7A2E 50%, #FFB25E 58%, #E2673A 70%, #6B3A6B 86%, #16233F 100%);
	background-size: 280% 100%;
	animation: nebo-drift 30s linear infinite;
}
@keyframes nebo-drift {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

.hero__scrim { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
/* Zweite, schwache Ebene: dunkelt den unteren Rand ab, damit Vorspann und
   Button auch ueber hellen Videostellen lesbar bleiben. */
.hero::after {
	content: ''; position: absolute; inset: auto 0 0 0; height: 46%; z-index: 1; pointer-events: none;
	background: linear-gradient(180deg, rgba(11,11,12,0) 0%, rgba(11,11,12,.72) 100%);
}
.hero__cut {
	font-family: var(--font-display);
	/* 118px statt 128px: die laengste Headline-Zeile passt damit mit Puffer
	   in die viewBox-Breite von 1312 px, auch wenn ein Ersatzzeichensatz greift. */
	font-size: 118px;
	font-weight: 900;
	letter-spacing: -0.045em;
	fill: #000;
}

.hero__content {
	position: relative; z-index: 2;
	width: 100%; max-width: var(--maxw); margin-inline: auto;
	padding: 0 var(--gutter) clamp(48px, 6vw, 76px);
	display: flex; flex-direction: column; gap: 22px;
}

.hero__eyebrow {
	display: flex; align-items: center; gap: 14px;
	margin: 0;
	font-family: var(--font-mono);
	font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--on-dark-muted);
}

/* Auf breiten Viewports uebernimmt die ausgestanzte SVG-Schrift die Optik.
   Die H1 bleibt fuer Screenreader und Suchmaschinen im Dokument. */
.hero__h1 {
	position: absolute; width: 1px; height: 1px;
	margin: -1px; padding: 0; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap; border: 0;
}

.hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.hero__lead { margin: 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; color: var(--on-dark); max-width: 30ch; }

/* --- Der Schnitt von Dunkel auf Hell ------------------------------------ */
.cut {
	background: var(--ink);
	color: #656C73;
	max-width: none;
	padding: 0 var(--gutter) 30px;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
	font-family: var(--font-mono);
	font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.cut > span { display: block; }

/* --- Raster mit Haarlinien ---------------------------------------------- */
.grid { display: grid; gap: 0; margin-top: clamp(44px, 5vw, 76px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.grid--rules, .grid--rules-dark { border-top: 1px solid var(--rule-light); }
.grid--rules-dark { border-top-color: var(--rule-dark); }

.grid--rules > * { border-right: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light); }
.grid--rules-dark > * { border-right: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); }
.grid--3 > *:nth-child(3n) { border-right: 0; }
.grid--3 > *:nth-last-child(-n+3):nth-child(3n+1),
.grid--3 > *:nth-last-child(-n+3):nth-child(3n+1) ~ * { border-bottom: 0; }

.cell { display: flex; flex-direction: column; gap: 15px; padding: 32px 40px 38px; }
.cell:first-child { padding-left: 0; }
.grid--3 > .cell:nth-child(3n) { padding-right: 0; }
.grid--3 > .cell:nth-child(3n+1) { padding-left: 0; }
.cell--compact { padding-block: 28px 32px; gap: 9px; }

.cell__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); }
.cell__title { font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.cell__title--sm { font-size: 21px; letter-spacing: -0.015em; }
.cell__title a { color: inherit; }
.cell__title a:hover { color: var(--accent-ink); text-decoration: none; }
.cell__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--on-light-faint); }
.section--dark .cell__text { color: var(--on-dark-faint); }
.cell__more {
	margin-top: auto; padding-top: 24px;
	font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
	color: var(--on-dark);
}
.cell__more:hover { color: var(--accent); text-decoration: none; }

/* Selbsttest: die Frage aus dem Hero zum Selbernachpruefen.
   Schliesst direkt an den KI-Bereich an, deshalb ohne eigenen Abstand nach oben. */
.selbsttest { padding-top: 0; }
.selbsttest .display { max-width: 18ch; }
.probe {
	margin: 34px 0 32px;
	padding-left: 26px;
	border-left: 3px solid var(--accent);
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(23px, 3vw, 38px);
	letter-spacing: -0.02em;
	line-height: 1.24;
	color: var(--on-dark);
	max-width: 27ch;
}
.probe__var { color: var(--accent); }
.selbsttest__text {
	max-width: 62ch;
	margin: 0 0 16px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--on-dark-muted);
}
.selbsttest__text:last-child { margin-bottom: 0; }
.selbsttest__text a {
	color: var(--on-dark);
	text-decoration: underline;
	text-decoration-color: currentColor;
	text-underline-offset: 3px;
}
.selbsttest__text a:hover, .selbsttest__text a:focus-visible { color: var(--accent); text-decoration-thickness: 2px; }

/* --- Intro -------------------------------------------------------------- */
.intro__heading { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.12; max-width: 22ch; }
.intro__body { margin-top: 26px; max-width: 62ch; color: var(--on-dark-muted); font-size: var(--fs-lead); line-height: 1.65; }

/* --- Haltung ------------------------------------------------------------ */
.promise__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.promise__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.promise__item { padding: 26px 0; border-top: 1px solid var(--rule-light); display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; }
.promise__item:first-child { border-top: 0; padding-top: 0; }
.promise__num { grid-row: span 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent-ink); padding-top: 6px; }
.promise__title { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.promise__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--on-light-muted); }

/* --- Referenzen --------------------------------------------------------- */
.clients__head { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.clients__lead { max-width: 42ch; margin: 0 0 6px; font-size: var(--fs-body); line-height: 1.6; color: var(--on-light-muted); }

.logo-grid {
	list-style: none; margin: clamp(44px, 5vw, 66px) auto 0; padding-inline: var(--gutter);
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
	border-top: 1px solid var(--rule-light);
}
.logo-grid__item {
	padding: 34px 20px;
	border-right: 1px solid var(--rule-light);
	border-bottom: 1px solid var(--rule-light);
	display: flex; align-items: center; justify-content: center;
	text-align: center;
	font-size: 19px; font-weight: 600; letter-spacing: 0.01em; color: #3F454B;
}
.logo-grid__item:nth-child(5n) { border-right: 0; }
.logo-grid__item:nth-last-child(-n+5) { border-bottom: 0; }

/* --- Kundenstimmen ------------------------------------------------------ */
.quote { margin: 0; padding: 34px 40px 40px; display: flex; flex-direction: column; gap: 20px; }
.grid--3 > .quote:nth-child(3n+1) { padding-left: 0; }
.grid--3 > .quote:nth-child(3n) { padding-right: 0; }
.quote__text { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-text); text-wrap: pretty; }
.quote__name { margin-top: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }

/* --- FAQ ---------------------------------------------------------------- */
.faq__list { margin-top: clamp(38px, 4.5vw, 54px); border-top: 1px solid var(--rule-light); }
.faq__item { border-bottom: 1px solid var(--rule-light); }
.faq__q {
	list-style: none; cursor: pointer;
	display: flex; align-items: baseline; justify-content: space-between; gap: 40px;
	padding: 26px 0;
	font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__sign { flex: none; width: 18px; height: 18px; position: relative; }
.faq__sign::before, .faq__sign::after {
	content: ''; position: absolute; inset: 50% 0 auto 0; height: 2px; background: #AAB0B5; transform: translateY(-50%);
	transition: transform .2s ease, background-color .2s ease;
}
.faq__sign::after { transform: translateY(-50%) rotate(90deg); }
.faq__item[open] .faq__sign::before { background: var(--accent); }
.faq__item[open] .faq__sign::after { transform: translateY(-50%) rotate(90deg) scaleX(0); }
.faq__a { padding: 0 0 30px; max-width: 86ch; }
.faq__a p { margin: 0; font-size: var(--fs-body); line-height: 1.65; color: var(--on-light-muted); }

/* --- Seiteninhalt / Block-Editor ---------------------------------------- */
.page__head { margin-bottom: clamp(28px, 3.5vw, 46px); }
.prose { font-size: 17px; line-height: 1.7; color: var(--on-light-muted); }
.prose > * { margin-block: 0 1.15em; }
.prose h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; color: var(--ink-text); margin-top: 1.8em; }
.prose h3 { font-size: clamp(20px, 2.1vw, 26px); line-height: 1.2; color: var(--ink-text); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--accent); font-size: 19px; color: var(--ink-text); }
.prose figure { margin: 2em 0; }
.prose img { border-radius: 2px; }
.prose .alignwide { max-width: none; }

.teaser { padding-block: 26px; border-top: 1px solid var(--rule-light); }
.teaser__title { font-size: 24px; margin-bottom: 10px; }

.error-404__links { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 600; }


/* --- Bloecke aus dem Editor --------------------------------------------- */
/* Nur Fliesstext wird auf Lesebreite begrenzt, Gruppen duerfen voll ausspielen. */
.prose > p,
.prose > h2,
.prose > h3,
.prose > h4,
.prose > ul,
.prose > ol,
.prose > blockquote,
.prose > figure { max-width: 76ch; }

.prose > .nebo-lead {
	max-width: 44ch;
	font-size: clamp(19px, 2vw, 26px); line-height: 1.35; font-weight: 500;
	letter-spacing: -0.015em; color: var(--ink-text);
}

.nebo-grid-2 {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
	border-top: 1px solid var(--rule-light);
	margin-block: 2.6em;
}
/* Der Block-Editor schiebt bei Gruppen einen Zwischen-Container ein.
   display:contents laesst die Kacheln direkt am Raster teilnehmen. */
.nebo-grid-2 > .wp-block-group__inner-container,
.nebo-cta > .wp-block-group__inner-container { display: contents; }
.nebo-grid-2 .nebo-svc {
	padding: 28px 40px 32px;
	border-bottom: 1px solid var(--rule-light);
	border-right: 1px solid var(--rule-light);
	margin: 0;
}
.nebo-grid-2 .nebo-svc:nth-child(2n) { border-right: 0; padding-right: 0; }
.nebo-grid-2 .nebo-svc:nth-child(2n+1) { padding-left: 0; }
.nebo-grid-2 .nebo-svc:nth-last-child(-n+2) { border-bottom: 0; }
/* Bei ungerader Kachelzahl steht die letzte Zelle allein in der Reihe. */
.nebo-grid-2 .nebo-svc:last-child:nth-child(odd) { border-right: 0; border-bottom: 0; }
.nebo-grid-2 h3 { margin: 0 0 9px; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink-text); }
.nebo-grid-2 p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; max-width: none; }
.nebo-grid-2 p:last-child { margin-bottom: 0; }
.nebo-grid-2 .nebo-more {
	font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}

.nebo-cta {
	margin-block: 3.4em 0; padding-top: 40px;
	border-top: 1px solid var(--rule-light);
	display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px;
}
.nebo-cta h2 { margin: 0; font-size: clamp(26px, 3.2vw, 44px); max-width: 20ch; }

/* Core-Buttons an die Theme-Optik angleichen. */
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 17px 34px; border-radius: 999px;
	background: var(--accent); color: var(--ink);
	font-size: 15px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none;
	transition: transform .18s ease, background-color .18s ease;
}
.wp-block-button__link:hover { background: #ff6a33; color: var(--ink); text-decoration: none; transform: translateY(-1px); }

@media (max-width: 780px) {
	.nebo-grid-2 { grid-template-columns: 1fr; }
	.nebo-grid-2 .nebo-svc { border-right: 0 !important; padding-inline: 0 !important; }
	.nebo-grid-2 .nebo-svc:last-child { border-bottom: 0; }
	.nebo-grid-2 .nebo-svc:nth-last-child(2) { border-bottom: 1px solid var(--rule-light); }
}

/* --- Bildplätze ---------------------------------------------------------
   Rahmen mit Beschriftung, der zeigt, welches Bild an dieser Stelle vorgesehen
   ist. Bewusst als Platzhalter erkennbar; wird ersetzt, sobald Material da ist. */
.nebo-ph {
	position: relative;
	margin-block: 2.8em;
	padding: 34px;
	border: 1px dashed #C4CACE;
	background-color: var(--paper-soft);
	background-image: repeating-linear-gradient(135deg, transparent 0 13px, rgba(21,23,26,.045) 13px 14px);
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 16 / 9;
	/* Sonst fuellt ein 16:9-Kasten auf breiten Bildschirmen die halbe Seite. */
	max-width: 880px;
}
.nebo-ph::before {
	content: 'Bildplatz';
	position: absolute; top: 15px; left: 17px;
	font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
	text-transform: uppercase; color: var(--label);
}
.nebo-ph > * { max-width: 50ch; text-align: center; }
.nebo-ph h3, .nebo-ph__title { margin: 0 0 11px; font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -.015em; line-height: 1.25; color: var(--ink-text); }
.nebo-ph p { margin: 0; max-width: none; font-size: 14px; line-height: 1.6; color: var(--on-light-faint); }
.nebo-ph p.nebo-ph__title { font-size: 20px; line-height: 1.25; color: var(--ink-text); margin: 0 0 11px; }

/* Formular-Beschriftungen im Mikro-Label-Stil des Rasters */
.wpcf7 label { display: block; margin-bottom: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-light-muted); font-weight: 400; }
.wpcf7 p { margin: 0 0 20px; }
.wpcf7 p.hinweis { font-size: 13px; line-height: 1.6; color: var(--on-light-faint); max-width: 60ch; }
.nebo-ph--band { aspect-ratio: 21 / 8; max-width: none; }
.nebo-ph--portrait { aspect-ratio: 4 / 5; max-width: 460px; margin-inline: auto; }

/* Fertige Abbildungen - gleiche Masse wie die Platzhalter */
.prose .nebo-figur, .nebo-figur { margin-block: 2.8em; max-width: 940px; }
.prose .nebo-figur--band, .nebo-figur--band { max-width: none; }
.nebo-figur img { display: block; width: 100%; height: auto; border: 1px solid var(--rule-light); }
.nebo-figur figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }

@media (max-width: 780px) {
	.nebo-ph { aspect-ratio: 4 / 3; padding: 24px; }
	.nebo-ph--band { aspect-ratio: 16 / 9; }
}

/* --- Formulare (Contact Form 7) ----------------------------------------- */
.wpcf7 { margin-block: 2.4em; max-width: 640px; }
.wpcf7 p { margin: 0 0 18px; }
.wpcf7 label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-text); margin-bottom: 7px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--rule-light);
	border-radius: 2px;
	background: #FBFCFC;
	font-family: inherit; font-size: 16px; line-height: 1.4; color: var(--ink-text);
	transition: border-color .16s ease;
}
.wpcf7 textarea { min-height: 190px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { border-color: var(--accent-ink); }
.wpcf7 input:focus-visible, .wpcf7 textarea:focus-visible, .wpcf7 select:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: #939A9F; }
.wpcf7 input[type="submit"] {
	width: auto; cursor: pointer;
	padding: 17px 34px; border: 0; border-radius: 999px;
	background: var(--accent); color: var(--ink);
	font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
	transition: background-color .18s ease, transform .18s ease;
}
.wpcf7 input[type="submit"]:hover { background: #ff6a33; transform: translateY(-1px); }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; color: #B3261E; }
.wpcf7 .wpcf7-response-output {
	margin: 18px 0 0; padding: 14px 18px;
	border: 1px solid var(--rule-light); border-left: 2px solid var(--accent);
	font-size: 15px;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--on-light-muted); }
.wpcf7 .wpcf7-acceptance input[type="checkbox"] { width: auto; margin-top: 3px; }
.grecaptcha-badge { visibility: hidden; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark); }
.site-footer__cta {
	max-width: var(--maxw); margin-inline: auto;
	padding: clamp(52px, 6vw, 74px) var(--gutter);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px 60px;
	border-bottom: 1px solid var(--rule-dark);
}
.site-footer__headline { font-size: clamp(30px, 4vw, 54px); line-height: 1; }
.site-footer__lead { margin: 16px 0 0; max-width: 44ch; font-size: var(--fs-body); line-height: 1.55; color: var(--on-dark-muted); }
.site-footer__cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 26px; }
.site-footer__phone { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--on-dark-faint); }
.site-footer__phone:hover { color: var(--on-dark); text-decoration: none; }

.site-footer__meta {
	max-width: var(--maxw); margin-inline: auto;
	padding: clamp(40px, 5vw, 62px) var(--gutter);
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 40px;
	font-size: 15px; line-height: 1.65; color: var(--on-dark-muted);
}
.site-footer__meta address { font-style: normal; }
.site-footer__meta a { color: var(--on-dark-muted); }
.site-footer__meta a:hover { color: var(--accent); text-decoration: none; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.site-footer__base {
	max-width: var(--maxw); margin-inline: auto;
	padding: 24px var(--gutter) 40px;
	border-top: 1px solid var(--rule-dark);
	font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-faint);
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--3 > *:nth-child(3n) { border-right: 1px solid var(--rule-light); }
	.grid--rules-dark.grid--3 > *:nth-child(3n) { border-right-color: var(--rule-dark); }
	.grid--3 > *:nth-child(2n) { border-right: 0; }
	.grid--3 > .cell:nth-child(3n), .grid--3 > .cell:nth-child(3n+1) { padding-inline: 40px; }
	.grid--3 > .cell:nth-child(2n+1), .grid--3 > .quote:nth-child(2n+1) { padding-left: 0; }
	.grid--3 > .cell:nth-child(2n), .grid--3 > .quote:nth-child(2n) { padding-right: 0; }
	.grid--3 > *:nth-last-child(-n+3):nth-child(3n+1),
	.grid--3 > *:nth-last-child(-n+3):nth-child(3n+1) ~ * { border-bottom: 1px solid var(--rule-light); }
	.grid--3 > *:last-child { border-bottom: 0; }
	.promise__inner { grid-template-columns: 1fr; }
	.site-footer__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.logo-grid__item:nth-child(5n) { border-right: 1px solid var(--rule-light); }
	.logo-grid__item:nth-child(2n) { border-right: 0; }
	.logo-grid__item:nth-last-child(-n+5) { border-bottom: 1px solid var(--rule-light); }
	.logo-grid__item:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 780px) {
	/* Ausgestanzte Schrift ist auf kleinen Viewports nicht lesbar –
	   hier laeuft der Hero mit normaler weisser Schrift ueber dem Video. */
	.hero { min-height: 80vh; justify-content: flex-end; }
	.hero__scrim { display: none; }
	.hero__media::after {
		content: ''; position: absolute; inset: 0;
		background: linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.35) 42%, rgba(11,11,12,.92) 100%);
	}
	.hero__h1 {
		position: static; width: auto; height: auto; margin: 0; overflow: visible;
		clip-path: none; white-space: normal;
		font-size: clamp(38px, 11vw, 62px); line-height: .98; letter-spacing: -0.04em;
	}
	.hero__content { gap: 18px; padding-bottom: 48px; }

	.grid--3 { grid-template-columns: 1fr; }
	.grid--3 > * { border-right: 0 !important; border-bottom: 1px solid var(--rule-light); }
	.grid--rules-dark.grid--3 > * { border-bottom-color: var(--rule-dark); }
	.grid--3 > *:last-child { border-bottom: 0; }
	.grid--3 > .cell, .grid--3 > .quote { padding-inline: 0 !important; }

	.site-header__inner { padding-block: 16px; gap: 16px; }
	.nav-toggle {
		display: inline-flex; flex-direction: column; align-items: flex-end; gap: 5px;
		margin-left: auto; padding: 8px 0; background: none; border: 0; cursor: pointer;
	}
	.nav-toggle__bar { display: block; width: 26px; height: 2px; background: var(--ink-text); transition: transform .2s ease, opacity .2s ease; }
	.nav-toggle__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-text); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-0px) rotate(-45deg); }

	.site-nav {
		position: fixed; inset: 0; z-index: 40;
		display: none; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px;
		padding: 96px var(--gutter) 40px;
		background: var(--ink);
	}

	/* Bei offenem Menue liegt die Kopfzeile ueber dem dunklen Overlay –
	   deshalb dort helles Logo und helle Balken. */
	body.nav-open .site-header { position: fixed; inset: 0 0 auto 0; background: transparent; border-bottom: 0; }
	body.nav-open .brand__img--on-light { display: none; }
	body.nav-open .brand__img--on-dark { display: block; }
	body.nav-open .nav-toggle__bar { background: var(--on-dark); }
	body.nav-open .nav-toggle__label { color: var(--on-dark); }
	.site-nav.is-open { display: flex; }
	.site-nav .nav__list { flex-direction: column; align-items: flex-start; gap: 20px; }
	.site-nav .nav__list a { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; color: var(--on-dark); }
	.site-nav__cta { color: var(--on-dark); border-color: rgba(242,239,234,.4); }

	.clients__head { display: block; }
	.clients__lead { margin-top: 22px; }
	.site-footer__meta { grid-template-columns: 1fr; }
	.logo-grid { grid-template-columns: 1fr; }
	.logo-grid__item { border-right: 0 !important; border-bottom: 1px solid var(--rule-light) !important; justify-content: flex-start; text-align: left; padding-inline: 0; }
	.logo-grid__item:last-child { border-bottom: 0 !important; }
	.cut { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 22px; }
	.faq__q { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.hero__gradient { animation: none; }
	.hero__video { display: none; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* Untermenue unter "Leistungen" -----------------------------------------
   Desktop: Klappliste unter dem Menuepunkt. Mobil: eingerueckte Liste im
   aufgeschobenen Menue. Geoeffnet wird ueber einen eigenen Knopf, damit der
   Menuepunkt selbst ein Link auf die Uebersichtsseite bleibt. */
.nav__list .menu-item-has-children { position: relative; display: flex; align-items: center; gap: 3px; }

.nav__sub-toggle {
	appearance: none; background: none; border: 0; margin: 0; padding: 5px;
	line-height: 0; cursor: pointer; color: inherit;
}
.nav__sub-toggle svg { width: 10px; height: 10px; display: block; transition: transform .18s ease; }
.nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__sub-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.nav__list .sub-menu {
	list-style: none; margin: 0; padding: 10px 0;
	position: absolute; top: calc(100% + 16px); left: -20px; z-index: 60;
	min-width: 272px;
	background: var(--paper);
	border: 1px solid var(--rule-light);
	box-shadow: 0 18px 44px rgba(12,13,15,.18);
	display: none;
}
.nav__list .menu-item-has-children.is-open > .sub-menu { display: block; }
.nav__list .sub-menu li { display: block; }
.nav__list .sub-menu a {
	display: block; padding: 9px 22px;
	font-size: 14px; letter-spacing: 0; text-transform: none;
	color: var(--ink-text); white-space: nowrap;
}
.nav__list .sub-menu a:hover,
.nav__list .sub-menu a:focus-visible {
	background: var(--paper-soft); color: var(--accent-ink); text-decoration: none;
}
.nav__list .sub-menu .current-menu-item > a { color: var(--accent-ink); }

@media (max-width: 1080px) {
	.nav__list .menu-item-has-children { flex-wrap: wrap; }
	.nav__list .sub-menu {
		position: static; width: 100%;
		background: none; border: 0; box-shadow: none;
		margin-top: 10px; padding: 4px 0 14px 18px;
		border-left: 1px solid rgba(238,240,242,.24);
	}
	.nav__list .sub-menu a {
		color: var(--on-dark); white-space: normal;
		font-size: 16px; padding: 9px 0;
	}
	.nav__list .sub-menu a:hover,
	.nav__list .sub-menu a:focus-visible { background: none; color: var(--accent); }
	/* Auf Mobil mindestens 44 px Antippflaeche. */
	.nav__sub-toggle {
		padding: 0; min-width: 44px; min-height: 44px;
		display: flex; align-items: center; justify-content: center;
	}
	.nav__sub-toggle svg { width: 15px; height: 15px; }
}


/* Lange deutsche Komposita in Ueberschriften umbrechen lassen.
   Ohne das laeuft z. B. "Suchmaschinenoptimierung" als H1 auf schmalen
   Bildschirmen aus dem Viewport heraus. lang="de" steht am <html>,
   der Browser trennt damit korrekt. break-word nur als Auffangnetz. */
h1, h2, h3, .display {
	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: break-word;
}


/* Kundenlogos im Raster der Startseite: einheitlich monochrom.
   .ist-hell ist fuer Logos, die fuer dunkle Hintergruende gemacht sind. */
.logo-grid__bild {
	display: block;
	max-width: 100%;
	border: 0;
	border-radius: 0;
	filter: grayscale(1) contrast(1.08);
}
.logo-grid__bild.ist-hell {
	filter: grayscale(1) invert(1) contrast(1.08);
}
@media (max-width: 760px) {
	.logo-grid__bild { width: auto !important; height: auto !important; max-width: 104px; max-height: 52px; }
}

/* Hero: Vorspann und Button gestapelt; Layout per Skript (home-hero.php) */
.hero__foot { flex-direction: column; align-items: flex-start; gap: 26px; }
.hero__lead { max-width: 42ch; }
.hero--js { justify-content: flex-start; }
.hero--js .hero__content { padding-top: var(--hero-top, 140px); }
.hero--js .hero__eyebrow { margin-bottom: var(--hero-lines, 0px); }

/* Footer-CTA: zwei gleichwertige Wege, Formular und Telefon */
.site-footer__cta-actions { gap: 14px; }
.btn--line { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38); }
.btn--line:hover, .btn--line:focus-visible { color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--on-dark); }
/* Trennlinie unter dem Footer-CTA nur so breit wie der Inhalt */
.site-footer__cta { border-bottom: 0; background: linear-gradient(var(--rule-dark), var(--rule-dark)) no-repeat center bottom / calc(100% - 2 * var(--gutter)) 1px; }
/* Buttons im Fliesstext nicht unterstreichen (die Link-Unterstreichung aus .prose a greift sonst) */
.prose a.wp-block-button__link, .prose a.btn { text-decoration: none; }

/* Seitenkopf der Unterseiten (Variante A): Kernsatz links, Erklaertext rechts,
   alles Weitere in voller Breite. Gilt nur, wenn die Seite mit .nebo-lead beginnt. */
.prose { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 72px; }
.prose > * { grid-column: 1 / -1; min-width: 0; }
.prose > .nebo-lead:first-child { grid-column: 1; max-width: none; margin-top: 0; padding-top: 20px; }
.prose > .nebo-lead:first-child + p { grid-column: 2; max-width: none; margin-top: 0; padding-top: 18px; border-top: 2px solid var(--accent); font-size: 17px; line-height: 1.7; color: var(--on-light-muted); }
/* Abbildungen nutzen die volle Inhaltsbreite */
.prose .nebo-figur:not([style*="max-width"]) { max-width: none; }
@media (max-width: 780px) {
	.prose { display: block; }
	.prose > .nebo-lead:first-child + p { margin-top: 1.15em; }
}

/* Selbsttest auf der Startseite: orange Flaeche mit weisser Karte, bricht die dunklen Bereiche auf */
.selbsttest { padding-top: var(--section-y); background: #FCE9E0; color: var(--ink); border-top: 3px solid var(--accent); }
.selbsttest__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.selbsttest .selbsttest__eyebrow { color: #B03C0C; }
.selbsttest .selbsttest__title { color: var(--ink); max-width: 13ch; }
.selbsttest__lead { margin: 26px 0 0; max-width: 40ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; font-weight: 500; color: var(--ink); }
.selbsttest__card { background: #fff; color: var(--ink-text); border-radius: 6px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 18px 44px rgba(192, 67, 15, .12); }
.selbsttest__label { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-light-muted); }
.selbsttest .probe { margin: 0 0 26px; padding: 18px 22px; border: 1px solid var(--rule-light); border-radius: 14px; background: var(--paper); color: var(--ink); font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }
.selbsttest .probe__var { color: var(--accent-ink); }
.selbsttest .selbsttest__text { color: var(--on-light-muted); }
.selbsttest .selbsttest__text a { color: var(--accent-ink); }
.selbsttest .selbsttest__text a:hover, .selbsttest .selbsttest__text a:focus-visible { color: var(--ink); }
.selbsttest :focus-visible { outline-color: var(--ink); }
@media (max-width: 900px) { .selbsttest__grid { grid-template-columns: 1fr; } }
/* Untermenue: unsichtbare Bruecke ueber den Abstand, damit es beim Hovern offen bleibt */
.nav__list .menu-item-has-children.is-open > .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }

/* Startseite: Kurzvorstellung hell und zweispaltig, KI-Kopf zweispaltig.
   Damit sind Vorstellung und KI-Angebot klar zwei Abschnitte. */
.intro__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 72px; align-items: start; }
.intro .intro__heading { margin: 0; max-width: 16ch; color: var(--ink-text); }
.intro .intro__body { margin-top: 0; max-width: none; padding-top: 18px; border-top: 2px solid var(--accent); color: var(--on-light-muted); }
.intro .intro__body p { margin: 0 0 1em; }
.intro .intro__body p:last-child { margin-bottom: 0; }
.ki > .wrap:first-child { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 72px; align-items: end; }
.ki > .wrap:first-child > .eyebrow { grid-column: 1 / -1; }
.ki > .wrap:first-child > .display { grid-column: 1; }
.ki > .wrap:first-child > .lead { grid-column: 2; margin: 0; max-width: none; padding-top: 18px; border-top: 2px solid var(--accent); }
@media (max-width: 900px) {
	.intro__grid, .ki > .wrap:first-child { display: block; }
	.intro .intro__body, .ki > .wrap:first-child > .lead { margin-top: 26px; }
}

/* Klassische Leistungen: gleicher zweispaltiger Kopf wie der KI-Bereich */
.craft > .wrap:first-child { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 72px; align-items: end; }
.craft > .wrap:first-child > .eyebrow { grid-column: 1 / -1; }
.craft > .wrap:first-child > .display { grid-column: 1; }
.craft > .wrap:first-child > .lead { grid-column: 2; margin: 0; max-width: none; padding-top: 18px; border-top: 2px solid var(--accent); }
@media (max-width: 900px) {
	.craft > .wrap:first-child { display: block; }
	.craft > .wrap:first-child > .lead { margin-top: 26px; }
}

/* Obere Trennlinien von Rastern nur so breit wie der Inhalt (nicht bis in den Seitenrand) */
.wrap.grid--rules, .wrap.logo-grid, .wrap.faq__list { border-top-color: transparent; background: linear-gradient(var(--rule-light), var(--rule-light)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px; }
.wrap.grid--rules-dark { border-top-color: transparent; background: linear-gradient(var(--rule-dark), var(--rule-dark)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px; }

/* Quellenangaben als kleiner Kasten am Seitenende */
.prose > .nebo-quellen { margin: 3.5em 0 0; padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.6vw, 34px); max-width: 980px; background: #fff; border: 1px solid var(--rule-light); border-radius: 6px; font-size: 14px; line-height: 1.6; color: var(--on-light-muted); }
.prose > .nebo-quellen > *, .prose > .nebo-quellen > .wp-block-group__inner-container > * { margin: 0 0 .8em; max-width: none; }
.prose > .nebo-quellen h2 { margin: 0 0 .7em; font-size: 16px; line-height: 1.3; letter-spacing: 0; color: var(--ink-text); }
.prose > .nebo-quellen ul { padding-left: 1.1em; }
.prose > .nebo-quellen li { margin-bottom: .45em; font-size: 14px; }
.prose > .nebo-quellen p, .prose > .nebo-quellen li { font-size: 14px; }
.prose > .nebo-quellen :last-child { margin-bottom: 0; }

/* --- Abschnittsbaender auf Unterseiten ------------------------------------
   Die Abschnitte setzt functions.php (nebo_abschnitts_baender) um jede H2.
   Vollflaechig per box-shadow und clip-path, ohne die Spalte zu verlassen. */
.prose > .nebo-abschnitt {
	--band: #FFFFFF;
	grid-column: 1 / -1;
	margin: 0;
	padding-block: clamp(48px, 6vw, 88px);
	background: var(--band);
	box-shadow: 0 0 0 100vmax var(--band);
	clip-path: inset(0 -100vmax);
}
.prose > :not(.nebo-abschnitt) + .nebo-abschnitt { margin-top: clamp(28px, 3.5vw, 48px); }
.prose > .nebo-abschnitt + :not(.nebo-abschnitt) { margin-top: clamp(36px, 4vw, 56px); }
.prose > .nebo-abschnitt--grau   { --band: var(--paper); }
.prose > .nebo-abschnitt--orange { --band: #FCE9E0; }
.prose > .nebo-abschnitt--dunkel { --band: var(--ink); color: var(--on-dark-muted); }

.nebo-abschnitt > * { margin-block: 0 1.15em; }
.nebo-abschnitt > p,
.nebo-abschnitt > h3,
.nebo-abschnitt > h4,
.nebo-abschnitt > ul,
.nebo-abschnitt > ol,
.nebo-abschnitt > blockquote { max-width: 76ch; }
.prose .nebo-abschnitt > h2 { margin-top: 0; margin-bottom: .7em; max-width: 34ch; }
.prose .nebo-abschnitt > h2::before {
	content: ""; display: block; width: 44px; height: 3px; margin-bottom: 22px;
	background: var(--accent);
}
.prose .nebo-abschnitt > .nebo-grid-2 { margin-block: 1.8em 1.15em; gap: 16px; border-top: 0; }
.prose .nebo-abschnitt > .nebo-figur { margin-block: 2.4em 1.15em; }
.prose .nebo-abschnitt > :last-child { margin-bottom: 0; }

/* Kacheln werden zu Karten, die sich vom Band abheben. */
.prose .nebo-abschnitt .nebo-grid-2 .nebo-svc {
	padding: clamp(22px, 2.4vw, 30px) !important;
	border: 0 !important;
	border-radius: 6px;
	background: #FFFFFF;
}
.prose .nebo-abschnitt--hell .nebo-grid-2 .nebo-svc { background: var(--paper); }

/* Dunkles Band (Haeufige Fragen) */
.prose .nebo-abschnitt--dunkel .nebo-grid-2 .nebo-svc { background: #16181B; }
.prose .nebo-abschnitt--dunkel h2,
.prose .nebo-abschnitt--dunkel h3 { color: var(--on-dark); }
.prose .nebo-abschnitt--dunkel p,
.prose .nebo-abschnitt--dunkel li { color: var(--on-dark-muted); }
.prose .nebo-abschnitt--dunkel a { color: var(--accent); }
.prose .nebo-abschnitt--dunkel a:hover,
.prose .nebo-abschnitt--dunkel a:focus-visible { color: var(--on-dark); }

@media (max-width: 780px) {
	.prose > .nebo-abschnitt { padding-block: 44px; }
	.prose .nebo-abschnitt > .nebo-grid-2 { gap: 12px; }
}

/* Abschnitt beginnt mit Text: Ueberschrift links, Text rechts, wie im Seitenkopf. */
.prose > .nebo-abschnitt--zweispaltig {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	column-gap: 72px;
	align-items: start;
}
.nebo-abschnitt--zweispaltig > * { grid-column: 1 / -1; min-width: 0; }
.prose .nebo-abschnitt--zweispaltig > h2 { grid-column: 1; margin-bottom: 0; }
.nebo-abschnitt--zweispaltig > .nebo-abschnitt__text,
.nebo-abschnitt--zweispaltig > p,
.nebo-abschnitt--zweispaltig > ul,
.nebo-abschnitt--zweispaltig > ol,
.nebo-abschnitt--zweispaltig > h3 { grid-column: 2; max-width: 68ch; }
.nebo-abschnitt__text { padding-top: 25px; }
.nebo-abschnitt__text > * { margin-block: 0 1.15em; }
.nebo-abschnitt__text > :last-child { margin-bottom: 0; }

/* Endet die Seite mit einem Band, schliesst es direkt an den Footer an. */
.page:has(.prose > .nebo-abschnitt:last-child) { padding-bottom: 0; }

@media (max-width: 900px) {
	.prose > .nebo-abschnitt--zweispaltig { display: block; }
	.prose .nebo-abschnitt--zweispaltig > h2 { margin-bottom: .7em; }
	.nebo-abschnitt__text { padding-top: 0; }
}

/* Ueberschriften in Baendern nicht trennen; dunkles Schlussband mit Linie zum Footer. */
@media (min-width: 901px) { .prose .nebo-abschnitt > h2 { hyphens: manual; -webkit-hyphens: manual; } }
.prose > .nebo-abschnitt--dunkel:last-child { border-bottom: 1px solid #2A2D31; }

/* Links auf dem zartorangen Band etwas dunkler, sonst nur 4,4:1 */
.prose .nebo-abschnitt--orange a:not(.wp-block-button__link):not(.btn) { color: #B03C0C; }
.prose .nebo-abschnitt--orange a:not(.wp-block-button__link):not(.btn):hover { color: var(--ink-text); }

/* Kontaktformular: Sicherheitsfrage (CF7-Quiz) als normaler Satz, nicht als Mono-Label */
.wpcf7 .quiz br { display: none; }
.wpcf7 .quiz .wpcf7-form-control-wrap label { display: block; margin: 0; font-family: inherit; font-size: inherit; text-transform: none; letter-spacing: 0; font-weight: 400; }
.wpcf7 .quiz .wpcf7-quiz-label { display: block; margin: 8px 0 10px; font-family: var(--font-display); font-size: 16px; line-height: 1.5; text-transform: none; letter-spacing: 0; color: var(--ink-text); }
.wpcf7 .quiz .wpcf7-quiz { max-width: 200px; }

/* --- Datenfiguren: Tabellen und Diagramme als HTML statt als Bild ---------
   Zahlen sind lesbar, durchsuchbar und fuer Screenreader zugaenglich. */
.prose .nebo-daten { max-width: none; padding: clamp(20px, 3vw, 40px); background: #FFFFFF; border: 1px solid var(--rule-light); border-radius: 6px; color: var(--ink-text); font-size: 15px; line-height: 1.55; }
.prose .nebo-abschnitt--hell .nebo-daten { background: var(--paper); }
.nebo-daten__label { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.nebo-daten__titel { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; line-height: 1.25; color: var(--ink-text); }
.nebo-daten__text { margin: 0 0 22px; max-width: 72ch; color: var(--on-light-muted); }
.nebo-daten__scroll { overflow-x: auto; }
.nebo-daten table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 15px; }
.nebo-daten th, .nebo-daten td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--rule-light); text-align: right; font-variant-numeric: tabular-nums; vertical-align: middle; }
.nebo-daten th:first-child, .nebo-daten td:first-child { text-align: left; }
.nebo-daten th:last-child, .nebo-daten td:last-child { padding-right: 0; }
.nebo-daten tbody td:first-child { font-weight: 600; color: var(--ink-text); }
.nebo-daten thead th, .nebo-daten .gruppe th, .nebo-daten .trenner td { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.nebo-daten thead th { border-bottom: 2px solid var(--ink-text); }
.nebo-daten .gruppe th { padding-top: 20px; text-align: left; }
.nebo-daten .trenner td { padding: 14px 0; text-align: center; }
.nebo-daten tbody td s { font-weight: 400; color: var(--on-light-muted); }
.nebo-daten .null { font-weight: 700; color: var(--accent-ink); }
.nebo-daten .balken-zelle { text-align: left; width: 46%; }
.nebo-daten .balken { display: inline-block; height: 14px; margin-right: 10px; vertical-align: middle; background: var(--accent-ink); }
.nebo-daten .balken-zelle b { font-family: var(--font-mono); font-size: 13px; }
.nebo-daten__summen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; margin: 24px 0 0; }
.nebo-daten__summen dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.nebo-daten__summen dd { margin: 4px 0 0; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.1; color: var(--ink-text); }
.nebo-daten__summen dd + dd { margin-top: 4px; font-family: inherit; font-size: 14px; font-weight: 400; color: var(--on-light-muted); }
.nebo-daten__summen .hervor dd:first-of-type { color: var(--accent-ink); }
.nebo-daten__fazit { margin: 22px 0 0; padding-left: 18px; border-left: 2px solid var(--accent); max-width: 72ch; color: var(--ink-text); }
.nebo-daten__kennzahl { display: inline-block; margin: 0 0 16px; padding: 14px 18px; background: var(--ink); color: var(--on-dark); border-radius: 4px; }
.nebo-daten__kennzahl span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.nebo-daten__kennzahl strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 32px; line-height: 1; }
.nebo-daten svg { display: block; width: 100%; height: auto; }
.nebo-daten figcaption, .prose .nebo-daten figcaption { margin-top: 18px; }
@media (max-width: 640px) {
	.nebo-daten__summen { grid-template-columns: 1fr; }
}
.nebo-daten tbody .trenner td:first-child { font-weight: 400; color: var(--label); }
