/*! MSR Niederlassungen – Unterseite (freigegebener Entwurf „Variante A“) */
.msrb-page {
	--msrb-ink: #111;
	--msrb-navy: #2a4c56;
	--msrb-dark: #213c45;
	--msrb-acc: #42798a;
	--msrb-brand: #8cb9c7;
	--msrb-soft: #f0f7fc;
	--msrb-muted: #4f5b60;
	--msrb-ease: cubic-bezier(.22, 1, .36, 1);
	color: var(--msrb-ink);
	font-family: inherit;
	line-height: 1.5;
}
.msrb-page *, .msrb-page *::before, .msrb-page *::after { box-sizing: border-box; }
.msrb-page img { max-width: 100%; height: auto; }
.msrb-page a.msrb-xp-btn, .msrb-page a.msrb-btn { border: 0; border-radius: 0; box-shadow: none; text-transform: none; letter-spacing: normal; }

/* Volle Breite innerhalb eines schmaleren Theme-Containers */
.msrb-page.msrb-full > section {
	width: var(--msrb-vw, 100vw);
	max-width: none;
	margin-left: calc(50% - var(--msrb-vw, 100vw) / 2);
}

.msrb-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ---------- HERO ---------- */
.msrb-hero { position: relative; overflow: hidden; padding: 72px 0 88px; background: #fff; }
.msrb-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(42, 76, 86, .10) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }

/* Leichter Farbschein direkt hinter der Karte – sitzt immer an der Karte, nicht am Bildschirmrand */
.msrb-map-col { position: relative; }
.msrb-map-col::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: 115%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(140, 185, 199, .16), rgba(140, 185, 199, .07) 55%, rgba(140, 185, 199, 0) 100%); pointer-events: none; }

.msrb-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.msrb-page .msrb-n-logo { height: 92px; width: auto; max-width: 100%; display: block; }
.msrb-page .msrb-title { margin: 40px 0 0; padding: 0; font-family: inherit; font-size: 62px; line-height: 1.06; font-weight: 400; letter-spacing: -.02em; color: var(--msrb-ink); text-transform: none; }
.msrb-page .msrb-title em { font-style: normal; color: var(--msrb-acc); }
.msrb-page .msrb-lead { margin: 28px 0 0; font-size: 19px; line-height: 1.6; color: var(--msrb-muted); max-width: 520px; }
.msrb-lead a { color: var(--msrb-acc); text-decoration: underline; }

/* Karte */
.msrb-map {
	position: relative;
	min-height: 200px;
	/* Weiche Kanten rundum (oben/unten/rechts kräftig, links dezent) statt harter Kartenkante */
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%, #000 78%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%, #000 78%, transparent 100%);
	mask-composite: intersect;
}
.msrb-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.msrb-map .ctx { fill: #e4ebee; stroke: #fff; stroke-width: calc(.8px * var(--msrb-k, 1)); }
.msrb-map .country { fill: var(--msrb-brand); stroke: #fff; stroke-width: calc(.8px * var(--msrb-k, 1)); animation: msrb-lit 1s ease backwards; transition: fill .4s; }
.msrb-map .country.is-hl { fill: var(--msrb-navy); }
@keyframes msrb-lit { 0% { fill: #e4ebee; } 50% { fill: #b9d6df; } 100% { fill: var(--msrb-brand); } }
.msrb-map .lbl { opacity: 0; transition: opacity .35s; fill: var(--msrb-navy); font-family: inherit; font-weight: 700; font-size: calc(17px * var(--msrb-k, 1)); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: calc(5px * var(--msrb-k, 1)); }
.msrb-map .lbl.is-hl { opacity: 1; }
.msrb-map .arc { fill: none; stroke: var(--msrb-navy); stroke-width: calc(1.3px * var(--msrb-k, 1)); stroke-dasharray: 700; opacity: .55; animation: msrb-draw 1.4s ease backwards; }
@keyframes msrb-draw { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
.msrb-map .flow { fill: none; stroke: var(--msrb-navy); stroke-width: calc(2.2px * var(--msrb-k, 1)); stroke-linecap: round; stroke-dasharray: calc(2px * var(--msrb-k, 1)) calc(28px * var(--msrb-k, 1)); opacity: 0; animation: msrb-flow 2.2s linear infinite; }
@keyframes msrb-flow { 0% { stroke-dashoffset: calc(60px * var(--msrb-k, 1)); opacity: .9; } 100% { stroke-dashoffset: 0; opacity: .9; } }
.msrb-map .dot { fill: var(--msrb-navy); stroke: #fff; stroke-width: calc(1.2px * var(--msrb-k, 1)); animation: msrb-pop .5s ease backwards; }
@keyframes msrb-pop { from { opacity: 0; } }
.msrb-map .hq { fill: var(--msrb-navy); stroke: #fff; stroke-width: calc(2px * var(--msrb-k, 1)); }
.msrb-map .pulse { fill: none; stroke: var(--msrb-navy); stroke-width: calc(2px * var(--msrb-k, 1)); transform-box: fill-box; transform-origin: center; animation: msrb-pulse 2.4s ease-out infinite; }
.msrb-map .p2 { animation-delay: 1.2s; }
@keyframes msrb-pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(4.5); opacity: 0; } }

.msrb-in { animation: msrb-rise .9s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes msrb-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Länderkacheln */
.msrb-loc-wrap { position: relative; z-index: 2; margin-top: 44px; }
.msrb-page .msrb-locs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.msrb-page .msrb-loc { display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 0 22px; background: var(--msrb-soft); color: var(--msrb-dark); font-size: 16px; line-height: 1.3; border-radius: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .08); transition: background .35s, color .35s, box-shadow .35s, transform .35s; }
.msrb-page .msrb-loc::before { content: none; }
.msrb-page .msrb-loc.is-on { background: var(--msrb-acc); color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .06), 0 20px 44px rgba(0, 0, 0, .13); transform: translateY(-2px); }
.msrb-page .msrb-loc-hq, .msrb-page .msrb-loc-hq.is-on { padding: 10px 24px; background: var(--msrb-dark); color: #fff; }
.msrb-loc-hq svg { color: var(--msrb-brand); flex: none; }
.msrb-loc-hq small { display: block; font-size: 11px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; color: #cfe3e9; line-height: 1.4; }
.msrb-loc-hq em { font-style: normal; color: #cfe3e9; }
/* Desktop: gleich große Kacheln, jede Reihe links und rechts bündig (Breiten setzt branch.js) */
.msrb-page .msrb-locs.is-justified .msrb-loc { flex: none; box-sizing: border-box; justify-content: center; text-align: center; padding: 8px 14px; }
.msrb-page .msrb-locs.is-justified .msrb-loc-hq { justify-content: flex-start; text-align: left; padding: 10px 24px; }

/* Firmennamen nie trennen */
.msr-nw, .msrb-page .msr-brand-link { white-space: nowrap; }

/* Vertriebsgebiet als Region (USA, Middle East) */
.msrb-map.is-region .hq { stroke-width: calc(3px * var(--msrb-k, 1)); }
.msrb-map .hq-lbl { font-size: calc(19px * var(--msrb-k, 1)); }
.msrb-map .wray { opacity: .3; }
.msrb-map .rdot { animation: msrb-pop .5s ease backwards, msrb-blink 3s ease-in-out infinite; }
@keyframes msrb-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- PRODUKTE ---------- */
.msrb-products { background: var(--msrb-soft); padding: 110px 0 120px; }
.msrb-page .msrb-products h2 { margin: 0; text-align: center; font-family: inherit; font-size: 36px; font-weight: 400; color: var(--msrb-ink); }
.msrb-page .msrb-sub { text-align: center; margin: 12px 0 48px; font-size: 17px; }
.msrb-xrow { display: flex; gap: 24px; align-items: flex-start; }
.msrb-xrow--single { max-width: 680px; margin: 0 auto; }
.msrb-xp { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: #fff; box-shadow: 0 10px 40px rgba(33, 60, 69, .07); outline: none; display: flex; flex-direction: column; transition: flex-grow .55s var(--msrb-ease), box-shadow .4s ease; }
.msrb-xp::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--msrb-ease); }
@media (hover: hover) and (min-width: 961px) {
.msrb-xrow:has(.msrb-xp:hover) .msrb-xp, .msrb-xrow:has(.msrb-xp:focus-within) .msrb-xp { flex-grow: .88; }
.msrb-xrow:has(.msrb-xp:hover) .msrb-xp:hover, .msrb-xrow:has(.msrb-xp:focus-within) .msrb-xp:focus-within { flex-grow: 1.2; box-shadow: 0 26px 60px rgba(33, 60, 69, .12); }
.msrb-xp:hover::after, .msrb-xp:focus-within::after { transform: scaleX(1); }
}
.msrb-xp-img { flex: 0 0 290px; background: var(--msrb-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.msrb-page .msrb-xp-img img { height: 262px; width: auto; max-width: none; transition: transform .7s var(--msrb-ease); }
.msrb-xp:hover .msrb-xp-img img, .msrb-xp:focus-within .msrb-xp-img img { transform: scale(1.04); }
.msrb-xp-body { flex: 0 0 auto; padding: 36px 40px 40px; display: flex; flex-direction: column; gap: 12px; color: var(--msrb-ink); }
.msrb-xp-body > * { width: 440px; max-width: 100%; }
.msrb-page .msrb-xp-logo { height: 58px; width: auto !important; align-self: flex-start; }
/* Claims als Grafik (Original-Schriftzug). Beide Boxen gleich hoch, gleiche Versalhöhe. */
.msrb-page .msrb-xp .msrb-xp-claim { width: min(412px, 100%); aspect-ratio: 435.37 / 34.02; margin: 6px 0 0; padding: 0; line-height: 0; font-size: 0; }
.msrb-page .msrb-xp-claim img { display: block; height: auto; max-width: none; }
.msrb-page .msrb-xp-claim--tr img { width: 100%; }
.msrb-page .msrb-xp-claim--el img { width: 67.35%; }
.msrb-page .msrb-xp-d { margin: 0; font-size: 17px; line-height: 1.55; color: var(--msrb-muted); }
.msrb-xp-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--msrb-ease), opacity .2s ease; }
.msrb-xp-more-in { overflow: hidden; min-height: 0; }
.msrb-xp:hover .msrb-xp-more, .msrb-xp:focus-within .msrb-xp-more { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .5s var(--msrb-ease), opacity .35s ease .12s; }
.msrb-xp-badge { display: inline-flex; width: auto !important; margin-top: 22px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; background: var(--msrb-soft); color: var(--c); white-space: nowrap; }
.msrb-page a.msrb-xp-btn { display: inline-flex !important; width: auto !important; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; background: #111; color: #fff; text-decoration: none; font-size: 16px; align-self: flex-start; margin-top: 14px; transition: background .3s; }
.msrb-xp-btn i { font-style: normal; transition: transform .25s; }
.msrb-xp-btn:hover i { transform: translateX(4px); }
.msrb-page .msrb-xp:hover a.msrb-xp-btn, .msrb-page .msrb-xp:focus-within a.msrb-xp-btn { background: var(--c); color: #fff; }

/* ---------- KONTAKT ---------- */
.msrb-contact { padding: 110px 0 80px; background: #fff; }
.msrb-ct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; max-width: 1090px; margin: 0 auto; font-size: 16px; line-height: 1.55; }
.msrb-page .msrb-ct-grid img { height: 78px; width: auto; }
.msrb-page .msrb-ct-grid a { color: var(--msrb-acc); text-decoration: none; }
.msrb-page .msrb-ct-grid a:hover { text-decoration: underline; }
.msrb-page .msrb-ct-extra { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: #6b6b6b; }
.msrb-world { max-width: 1090px; margin: 60px auto 0; border: 1px solid #d9d9d9; padding: 36px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.msrb-page .msrb-world h3 { margin: 0; font-family: inherit; font-size: 22px; font-weight: 700; color: var(--msrb-ink); }
.msrb-page .msrb-world p { margin: 8px 0 0; color: #6b6b6b; font-size: 15px; }
.msrb-page a.msrb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 250px; padding: 0 24px; background: #111; color: #fff; text-decoration: none; font-size: 16px; }
.msrb-page a.msrb-btn:hover { background: var(--msrb-navy); color: #fff; }

/* ---------- Tablet / Mobile ----------
   Abstands-System (8er-Raster): Seitenrand 20px, Abschnitte 64px, Blöcke 32px, Elemente 16px, Kacheln 8px */
@media (max-width: 960px) {
	.msrb-wrap { padding: 0 20px; }

	/* Hero */
	.msrb-hero { padding: 48px 0 64px; }
	.msrb-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.msrb-page .msrb-n-logo { height: 56px; }
	.msrb-page .msrb-title { font-size: clamp(32px, 8.5vw, 44px); line-height: 1.1; margin-top: 24px; }
	.msrb-page .msrb-lead { font-size: 17px; margin-top: 16px; max-width: none; }
	.msrb-map { max-width: 560px; margin: 0 auto; }

	/* Länderkacheln: gleichmäßiges 2er-Raster, Hauptsitz über volle Breite */
	.msrb-loc-wrap { margin-top: 32px; }
	.msrb-page .msrb-locs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.msrb-page .msrb-loc { min-height: 48px; padding: 0 16px; font-size: 15px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05), 0 6px 16px rgba(0, 0, 0, .06); }
	.msrb-page .msrb-loc.is-on { transform: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 10px 22px rgba(0, 0, 0, .1); }
	.msrb-page .msrb-loc-hq { grid-column: 1 / -1; padding: 12px 16px; }

	/* Produkte */
	.msrb-products { padding: 64px 0; }
	.msrb-page .msrb-products h2 { font-size: 30px; line-height: 1.2; }
	.msrb-page .msrb-sub { margin: 8px 0 32px; font-size: 16px; }
	.msrb-xrow { flex-direction: column; align-items: stretch; gap: 48px; max-width: 560px; margin: 0 auto; }
	.msrb-xp { flex: none !important; width: 100%; }
	.msrb-xp-img { flex: none; aspect-ratio: 16 / 9; }
	.msrb-page .msrb-xp-img img { width: 86%; height: auto; max-width: none; max-height: 92%; object-fit: contain; }
	.msrb-xp-body { padding: 24px 20px 28px; gap: 16px; }
	.msrb-xp-body > * { width: 100%; }
	.msrb-page .msrb-xp-logo { height: 44px; }
	.msrb-page .msrb-xp .msrb-xp-claim { margin-top: 0; }
	.msrb-page .msrb-xp-d { font-size: 16px; }
	.msrb-page a.msrb-xp-btn { margin-top: 8px; min-height: 48px; width: 100% !important; justify-content: center; }
	.msrb-xp::after { transform: scaleX(1); }
	.msrb-xp-badge { white-space: normal; }
	.msrb-xp-more { grid-template-rows: 1fr; opacity: 1; }

	/* Kontakt */
	.msrb-contact { padding: 64px 0; }
	.msrb-ct-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.msrb-page .msrb-ct-grid img { height: 56px; }
	.msrb-world { margin-top: 40px; padding: 24px 20px; gap: 16px; }
	.msrb-page .msrb-world h3 { font-size: 20px; }
	.msrb-page a.msrb-btn { min-width: 0; width: 100%; }
}

/* Tablet: Kontakt zweispaltig, Länder dreispaltig */
@media (min-width: 600px) and (max-width: 960px) {
	.msrb-page .msrb-locs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.msrb-ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.msrb-page *, .msrb-page *::before, .msrb-page *::after { animation: none !important; transition: none !important; }
	.msrb-map .flow { display: none; }
}
