/* Hauptnavigation (includes/hauptnavigation.php), 16.10.2026 */
.edvr-n3 {
	--n3-ink: #0b1b2b; --n3-slate: #475569; --n3-muted: #64748b; --n3-line: #e6ebf0;
	--n3-brand: #0083c4; --n3-brand-ink: #025b89; --n3-soft: #eef5fb; --n3-surface: #f6f8fb;
	display: contents;
}
.edvr-n3 svg { flex: none; }
.edvr-n3__h { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--n3-muted); }
.edvr-n3 ul { list-style: none; margin: 0; padding: 0; }
.edvr-n3 a { text-decoration: none; }

/* ---------- Suche ---------- */
.edvr-n3__suche { position: relative; display: flex; align-items: center; order: 2; flex: 1 1 auto; max-width: 600px; margin: 0 auto 0 48px; }
.edvr-n3__lupe { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--n3-muted); pointer-events: none; }
.edvr-n3__eingabe {
	width: 100%; height: 46px; padding: 0 16px 0 44px; border: 1px solid #d5dde6; border-radius: 12px;
	background: var(--n3-surface); font: inherit; font-size: 15px; color: var(--n3-ink);
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.edvr-n3__eingabe::placeholder { color: #8a96a3; }
.edvr-n3__eingabe:focus { outline: none; background: #fff; border-color: var(--n3-brand); box-shadow: 0 0 0 4px rgba(0,131,196,.12); }
.edvr-n3__vorschlaege {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 120; max-height: 60vh; overflow: auto;
	padding: 6px; background: #fff; border: 1px solid var(--n3-line); border-radius: 14px; box-shadow: 0 20px 40px -18px rgba(11,42,64,.35);
}
.edvr-n3__vorschlaege a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--n3-ink); font-size: 14.5px; }
.edvr-n3__vorschlaege a small { color: var(--n3-muted); font-size: 12px; }
.edvr-n3__vorschlaege li.is-aktiv a, .edvr-n3__vorschlaege a:hover { background: var(--n3-soft); color: var(--n3-brand-ink); }
.edvr-n3__vorschlaege mark { background: none; color: inherit; font-weight: 700; }

/* ---------- Leiste ---------- */
.edvr-n3__burger { display: none; }
.edvr-n3__leiste { order: 4; flex: 0 0 100%; position: relative; margin-top: 14px; }
.edvr-n3__leiste::before {
	content: ""; position: absolute; inset: 0 -100vmax; z-index: -1;
	background: #fff; border-top: 1px solid var(--n3-line);
}
.edvr-n3__punkte { display: flex; align-items: center; gap: 2px; height: 50px; }
.edvr-n3__punkt { position: relative; height: 100%; display: flex; align-items: center; }
.edvr-n3__link {
	position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 9px;
	color: var(--n3-ink); font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .12s ease, color .12s ease;
}
.edvr-n3__link:hover, .edvr-n3__link[aria-expanded="true"] { background: var(--n3-soft); color: var(--n3-brand-ink); }
.edvr-n3__link[aria-expanded="true"]::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: -7px; height: 2px; border-radius: 2px; background: var(--n3-brand);
}
.edvr-n3__chev { color: #94a3b8; transition: transform .15s ease; }
.edvr-n3__link[aria-expanded="true"] .edvr-n3__chev { transform: rotate(180deg); color: var(--n3-brand-ink); }
.edvr-n3__link--status { color: var(--n3-brand-ink); }
.edvr-n3__link--status svg { width: 17px; height: 17px; }
.edvr-n3__trenner { width: 1px; height: 22px; margin: 0 8px; background: var(--n3-line); }
.edvr-n3__abstand { flex: 1; }

/* ---------- Buehne (Desktop) ---------- */
.edvr-n3__schublade { display: contents; }
.edvr-n3__start { display: none; }
.edvr-n3__buehne { position: absolute; left: 0; right: 0; top: 100%; z-index: 110; pointer-events: none; }
.edvr-n3__panel { pointer-events: auto; max-width: 1180px; margin: 0 auto; padding: 0 20px; animation: edvr-n3-ein .16s ease; }
@keyframes edvr-n3-ein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.edvr-n3__pkopf { display: none; }
.edvr-n3__karte {
	display: grid; gap: 28px; padding: 24px 26px 0; background: #fff; border: 1px solid var(--n3-line); border-top: 0;
	border-radius: 0 0 20px 20px; box-shadow: 0 30px 60px -30px rgba(11,42,64,.35);
}
.edvr-n3__karte--marke { grid-template-columns: 250px 290px minmax(0,1fr) minmax(0,1fr); }
.edvr-n3__karte--logos { grid-template-columns: 1fr; }
.edvr-n3__karte--logos.hat-links { grid-template-columns: minmax(0,1fr) 260px; }
.edvr-n3__karte--support { grid-template-columns: 1fr 1fr 300px; padding-bottom: 24px; }
.edvr-n3__fuss {
	grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 -26px; padding: 14px 26px;
	border-top: 1px solid var(--n3-line); background: var(--n3-surface); border-radius: 0 0 20px 20px; font-size: 13.5px; color: var(--n3-slate);
}
.edvr-n3__fuss a:not(.edvr-n3__alle) { color: var(--n3-brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.edvr-n3__alle { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--n3-brand-ink); }
.edvr-n3__alle::after { content: ""; width: 7px; height: 7px; border-top: 1.8px solid currentColor; border-right: 1.8px solid currentColor; transform: rotate(45deg); }
.edvr-n3__alle:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Modelle mit Bild */
.edvr-n3__modelle { display: grid; gap: 2px; }
.edvr-n3__modell { display: flex; align-items: center; gap: 12px; padding: 5px 8px; border-radius: 11px; color: var(--n3-ink); font-size: 14.5px; font-weight: 600; transition: background .12s ease; }
.edvr-n3__modell:hover, .edvr-n3__modell.is-vorschau { background: var(--n3-soft); color: var(--n3-brand-ink); }
.edvr-n3__mbild { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; border-radius: 8px; background: #fff; color: #94a3b8; overflow: hidden; }
.edvr-n3__mbild img { width: 100%; height: 100%; object-fit: contain; }

/* Vorschau */
.edvr-n3__vrahmen { display: flex; margin-bottom: 24px; }
.edvr-n3__vorschau {
	position: relative; display: flex; flex-direction: column; flex: 1; border-radius: 18px; overflow: hidden;
	background: linear-gradient(180deg, #f3f7fb 0%, #fff 70%); border: 1px solid var(--n3-line); color: var(--n3-ink);
}
.edvr-n3__vbild { display: block; flex: 1; min-height: 180px; padding: 14px 14px 0; }
.edvr-n3__vbild img { display: block; width: 100%; height: 100%; max-height: 230px; object-fit: contain; transition: opacity .18s ease; }
.edvr-n3__vorschau.is-wechsel .edvr-n3__vbild img { opacity: 0; }
.edvr-n3__vtext { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px 16px; }
.edvr-n3__vname { font-size: 18px; letter-spacing: -.01em; }
.edvr-n3__vinfo { font-size: 13.5px; color: var(--n3-slate); min-height: 1.4em; }
.edvr-n3__vknopf { align-self: flex-start; margin-top: 8px; padding: 8px 14px; border-radius: 10px; background: var(--n3-brand-ink); color: #fff; font-size: 13.5px; font-weight: 700; }
.edvr-n3__vorschau:hover .edvr-n3__vknopf { background: var(--n3-brand); }
.edvr-n3__vki { position: absolute; left: 12px; top: 12px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 10.5px; font-weight: 700; color: var(--n3-muted); }

/* Listen */
.edvr-n3__reihen a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f3f6; color: var(--n3-ink); font-size: 14.5px; }
.edvr-n3__reihen a::after { content: ""; flex: none; width: 6px; height: 6px; border-top: 1.6px solid #a8b3bf; border-right: 1.6px solid #a8b3bf; transform: rotate(45deg); }
.edvr-n3__reihen a:hover { color: var(--n3-brand-ink); }
.edvr-n3__reihen a:hover::after { border-color: var(--n3-brand); }
.edvr-n3__reps a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 9px; color: var(--n3-ink); font-size: 14.5px; }
.edvr-n3__reps a:hover { background: var(--n3-soft); color: var(--n3-brand-ink); }
.edvr-n3__repico { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--n3-surface); color: var(--n3-brand-ink); }
.edvr-n3__repico svg { width: 18px; height: 18px; }

/* Logos */
.edvr-n3__logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; padding-bottom: 24px; }
.hat-links .edvr-n3__logos { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.edvr-n3__logo { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 9px; border: 1px solid var(--n3-line); border-radius: 14px; color: var(--n3-ink); font-size: 13px; font-weight: 600; text-align: center; transition: border-color .12s ease, box-shadow .12s ease; }
.edvr-n3__logo:hover { border-color: var(--n3-brand); box-shadow: 0 8px 18px -12px rgba(11,42,64,.4); }
.edvr-n3__lbild { display: block; width: 100%; height: 44px; overflow: hidden; }
/* Die Logo-Kacheln sind quadratisch mit viel Rand (800 x 800, Logo mittig).
   cover auf einen flachen Streifen schneidet den Rand weg, ohne zu vergroessern
   - vorher scale(1.5) auf das 150er Vorschaubild, das war unscharf. */
.edvr-n3 .edvr-n3__lbild img { display: block; width: 100%; height: 100% !important; max-width: none; object-fit: cover; }
.edvr-n3__logo.ohne-logo { justify-content: center; min-height: 72px; }

/* Support */
.edvr-n3__weg { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--n3-slate); font-size: 13px; line-height: 1.4; }
.edvr-n3__weg b { display: block; font-size: 15px; color: var(--n3-ink); }
.edvr-n3__wegico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--n3-soft); color: var(--n3-brand-ink); font-weight: 700; }
.edvr-n3__laden { display: block; border-radius: 16px; overflow: hidden; background: #0b2a40; color: #c3d4e2; }
.edvr-n3__ladenbild { display: block; height: 120px; background-size: cover; background-position: center 25%; }
.edvr-n3__ladentext { display: block; padding: 12px 14px 14px; font-size: 13px; line-height: 1.45; }
.edvr-n3__ladentext b { display: block; font-size: 15px; color: #fff; }
.edvr-n3__ladentext em { display: block; margin-top: 6px; font-style: normal; font-weight: 700; color: #9fd3ef; }

/* Kopf: Suche steht in der Zeile, die Lupe rechts braucht es am Rechner nicht */
.header-main > .wp-block-group:has(.edvr-n3) { flex-wrap: wrap; row-gap: 0; justify-content: flex-start !important; }
.header-main:has(.edvr-n3) { position: relative; padding-bottom: 0 !important; }
/* backdrop-filter macht den Kopf zum Bezugsrahmen fuer position:fixed -
   die Schublade am Telefon war dadurch 1 px hoch. */
.header-main:has(.edvr-n3), .site-header.is-gescrollt .header-main:has(.edvr-n3) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #fff !important; }
.header-main:has(.edvr-n3) .wp-block-site-logo { order: 1; }
.header-main:has(.edvr-n3) .header-actions { order: 3; margin-left: 24px; }
.site-header:has(.edvr-n3) .edvr-kopf__knopf[data-n3-suche] { display: none; }

@media (max-width: 1180px) and (min-width: 901px) {
	.edvr-n3__karte--marke { grid-template-columns: 230px 240px minmax(0,1fr); }
	.edvr-n3__karte--marke > .edvr-n3__spalte:nth-of-type(3) { display: none; }
	.edvr-n3__link { padding: 0 9px; font-size: 14px; }
	.edvr-n3__link--status svg { display: none; }
	.edvr-n3__trenner { margin: 0 4px; }
}

/* ---------- Telefon und Tablet hochkant ---------- */
@media (max-width: 900px) {
	.edvr-n3__leiste { display: none; }
	.edvr-n3__suche { order: 5; flex: 0 0 100%; max-width: none; margin: 12px 0 2px; }
	.edvr-n3__eingabe { height: 44px; font-size: 16px; }
	.site-header.is-gescrollt .edvr-n3__suche { display: none; }
	.site-header.is-gescrollt .edvr-kopf__knopf[data-n3-suche] { display: inline-flex; }
	.header-main:has(.edvr-n3) { padding-bottom: 12px !important; }
	.header-main:has(.edvr-n3) .wp-block-site-logo { margin-right: auto !important; }
	.header-main:has(.edvr-n3) .header-actions { margin-left: 8px; }

	.edvr-n3__burger {
		order: 0; display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 42px; margin-right: 10px;
		padding: 0 10px; border: 0; border-radius: 10px; background: var(--n3-surface); cursor: pointer;
	}
	.edvr-n3__burger span { display: block; height: 2px; border-radius: 2px; background: var(--n3-ink); transition: transform .2s ease, opacity .2s ease; }
	.edvr-n3__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.edvr-n3__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.edvr-n3__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

	.edvr-n3__schublade {
		display: block; position: fixed; left: 0; right: 0; top: var(--n3-oben, 64px); bottom: 0; z-index: 105;
		overflow: hidden; background: #fff; border-top: 1px solid var(--n3-line);
		visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
	}
	.edvr-n3.is-offen .edvr-n3__schublade { visibility: visible; opacity: 1; transform: none; transition: opacity .18s ease, transform .18s ease; }
	body.edvr-n3-offen { overflow: hidden; }

	.edvr-n3__start, .edvr-n3__buehne { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 16px 32px; transition: transform .24s ease; }
	.edvr-n3__start { display: block; }
	.edvr-n3__buehne { pointer-events: auto; top: 0; transform: translateX(100%); background: #fff; }
	.edvr-n3__schublade:not([data-ansicht="start"]) .edvr-n3__start { transform: translateX(-30%); }
	.edvr-n3__schublade:not([data-ansicht="start"]) .edvr-n3__buehne { transform: none; }
	.edvr-n3__panel { padding: 0; max-width: none; animation: none; }

	.edvr-n3__kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 24px !important; }
	.edvr-n3__kachel {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; aspect-ratio: 1 / 1;
		border: 1px solid var(--n3-line); border-radius: 16px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--n3-ink); cursor: pointer;
	}
	.edvr-n3__kachel img { width: 86%; height: 46%; object-fit: cover; }
	.edvr-n3__kachel--weitere { color: var(--n3-brand-ink); background: var(--n3-soft); border-color: transparent; }
	.edvr-n3__geraete { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
	.edvr-n3__geraet {
		display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid var(--n3-line); border-radius: 14px;
		background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: var(--n3-ink); text-align: left; cursor: pointer;
	}
	.edvr-n3__gico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--n3-soft); color: var(--n3-brand-ink); }
	.edvr-n3__mlinks { border-top: 1px solid var(--n3-line); margin-bottom: 16px; }
	.edvr-n3__mlinks a, .edvr-n3__mlinks button {
		display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--n3-line);
		background: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--n3-ink); text-align: left; cursor: pointer;
	}
	.edvr-n3__mlinks svg { color: var(--n3-brand-ink); }
	.edvr-n3__mladen { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: #0b2a40; color: #c3d4e2; font-size: 13px; line-height: 1.4; }
	.edvr-n3__mladen b { display: block; color: #fff; font-size: 15px; }
	.edvr-n3__mladenbild { flex: none; width: 76px; height: 60px; border-radius: 10px; background-size: cover; background-position: center; }

	.edvr-n3__pkopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
	.edvr-n3__zurueck {
		display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border: 0; border-radius: 10px;
		background: var(--n3-surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--n3-ink); cursor: pointer;
	}
	.edvr-n3__zurueck::before { content: ""; width: 7px; height: 7px; border-left: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); }
	.edvr-n3__ptitel { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--n3-ink); }
	.edvr-n3__karte, .edvr-n3__karte--marke, .edvr-n3__karte--logos.hat-links, .edvr-n3__karte--support {
		display: flex; flex-direction: column; gap: 22px; padding: 0; border: 0; border-radius: 0; box-shadow: none;
	}
	.edvr-n3__vrahmen { display: none; }
	.edvr-n3__start .edvr-n3__h { margin-top: 4px; }
	.edvr-n3__kacheln + .edvr-n3__h { margin-top: 0; }
	.edvr-n3__modelle { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
	.edvr-n3__modelle::-webkit-scrollbar { display: none; }
	.edvr-n3__modelle li { scroll-snap-align: start; }
	.edvr-n3__modell, .edvr-n3__modell.is-vorschau { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 8px 10px; border: 1px solid var(--n3-line); border-radius: 14px; background: #fff; color: var(--n3-ink); font-size: 13.5px; }
	.edvr-n3__mbild { width: 100%; height: auto; aspect-ratio: 11 / 9; }
	.edvr-n3__logos { grid-template-columns: repeat(3, 1fr); padding-bottom: 0; }
	.edvr-n3__fuss { flex-direction: column; align-items: flex-start; margin: 0; padding: 14px; border: 0; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.edvr-n3 *, .edvr-n3 *::before, .edvr-n3 *::after { transition: none !important; animation: none !important; }
}
.edvr-n3__suche > p, .edvr-n3__suche > br { display: none; }
.header-main:has(.edvr-n3) { overflow-x: clip; }

/* WooCommerce setzt auf Shopseiten `.woocommerce img { height: auto }` -
   gleich spezifisch und spaeter geladen. Ohne den Vorsatz .edvr-n3 wurden die
   Logos dort 171 px hoch und lagen ueber Text und Fuss (16.10.2026). */
.edvr-n3 .edvr-n3__mbild img { height: 100% !important; max-width: none; }
.edvr-n3 .edvr-n3__vbild img { height: 100% !important; }
.edvr-n3 .edvr-n3__kachel img { height: 46% !important; max-width: none; }
.edvr-n3 .edvr-n3__logo { gap: 2px; padding: 8px 10px 10px; }
.edvr-n3 .edvr-n3__lname { font-size: 12.5px; color: var(--n3-slate); }
.edvr-n3__logos { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.edvr-n3__reihen--gross { max-width: 340px; }
