/* =========================================================
   Vermessungsbüro Burgdorf – Template-Stylesheet
   Farben aus dem Logo:
   Anthrazit: #505050 | Rot: #e0003c | Grau: #b4b4b4
   ========================================================= */

:root {
	--vmb-dark: #333333;
	--vmb-anthrazit: #505050;
	--vmb-grau: #b4b4b4;
	--vmb-grau-hell: #f4f4f4;
	--vmb-rot: #e0003c;
	--vmb-rot-dunkel: #b8002f;
	--vmb-weiss: #ffffff;
	--vmb-max-width: 1200px;
	--vmb-radius: 4px;
	--vmb-font: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body.vmb {
	margin: 0;
	font-family: var(--vmb-font);
	color: var(--vmb-dark);
	line-height: 1.6;
	background: var(--vmb-weiss);
}

.vmb-container {
	max-width: var(--vmb-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

a { color: var(--vmb-rot); text-decoration: none; }
a:hover { color: var(--vmb-rot-dunkel); text-decoration: underline; }

h1, h2, h3, h4 {
	font-family: var(--vmb-font);
	color: var(--vmb-anthrazit);
	font-weight: 700;
	margin-top: 0;
}

/* ---------- Topbar ---------- */
.vmb-topbar {
	background: var(--vmb-anthrazit);
	color: #eee;
	font-size: 0.85rem;
}
.vmb-topbar-inner {
	display: flex;
	justify-content: flex-end;
	gap: 24px;
	padding: 6px 20px;
}
.vmb-topbar-contact a {
	color: #eee;
	margin-left: 20px;
}
.vmb-topbar-contact a:first-child { margin-left: 0; }
.vmb-topbar-contact a:hover { color: var(--vmb-rot); text-decoration: none; }

/* ---------- Header ---------- */
.vmb-header {
	background: #fff;
	border-bottom: 3px solid var(--vmb-rot);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.vmb-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	flex-wrap: wrap;
}
.vmb-logo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	text-decoration: none;
}
/* Wortmarke wie im Briefkopf: Burgdorfer [Logo] Vermessungsbüro, rote Linie unterbrochen vom Logo */
.vmb-lh {
	display: flex;
	align-items: center;
	gap: 8px;
}
.vmb-lh img {
	height: 62px;
	width: auto;
	flex-shrink: 0;
}
.vmb-lh-word {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.01em;
	color: #8c8c8c;
	white-space: nowrap;
}
.vmb-lh-word b {
	font-family: Rockwell, 'Roboto Slab', 'Courier New', Georgia, serif;
	font-size: 1.2em;
	font-weight: 700;
	color: #7a7a7a;
}
.vmb-lh-right b { color: var(--vmb-rot); }
.vmb-lh-claim {
	display: block;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #8c8c8c;
}

/* ---------- Navigation ---------- */
.vmb-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 28px;
	height: 22px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.vmb-nav-toggle span {
	display: block;
	height: 3px;
	width: 100%;
	background: var(--vmb-anthrazit);
	border-radius: 2px;
}

.vmb-nav ul {
	list-style: none;
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
}
.vmb-nav li { position: relative; }
.vmb-nav a {
	display: block;
	padding: 10px 16px;
	color: var(--vmb-anthrazit);
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: var(--vmb-radius);
	text-decoration: none;
}
.vmb-nav a:hover,
.vmb-nav li.current > a,
.vmb-nav li.active > a {
	color: var(--vmb-rot);
	background: var(--vmb-grau-hell);
}

/* Untermenüs */
.vmb-nav ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 220px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
	border-top: 2px solid var(--vmb-rot);
	flex-direction: column;
	z-index: 50;
}
.vmb-nav li:hover > ul { display: flex; }
.vmb-nav ul ul a { color: var(--vmb-anthrazit); padding: 10px 16px; }

/* ---------- Hero ---------- */
.vmb-hero {
	background: linear-gradient(135deg, var(--vmb-anthrazit) 0%, #3c3c3c 100%);
	color: #fff;
	background-image:
		linear-gradient(135deg, rgba(51,51,51,0.92) 0%, rgba(51,51,51,0.86) 100%),
		repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 40px);
}
.vmb-hero-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding: 70px 20px;
	flex-wrap: wrap;
}
.vmb-hero-text h1,
.vmb-hero-text h2 {
	color: #fff;
	font-size: 2.2rem;
	max-width: 640px;
}
.vmb-hero-text p {
	color: #ddd;
	max-width: 560px;
}
.vmb-hero-cta { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.vmb-btn,
.vmb-hero-cta a,
.readmore a {
	display: inline-block;
	background: var(--vmb-rot);
	color: #fff !important;
	font-weight: 700;
	padding: 13px 28px;
	border-radius: var(--vmb-radius);
	text-decoration: none !important;
	transition: background 0.15s ease;
}
.vmb-btn:hover,
.vmb-hero-cta a:hover,
.readmore a:hover {
	background: var(--vmb-rot-dunkel);
}

/* ---------- Leistungen / Services-Kacheln ---------- */
.vmb-services { padding: 60px 0; background: var(--vmb-grau-hell); }
.vmb-services .vmb-container { display: flex; flex-wrap: wrap; gap: 24px; }

/* Modulinhalte, die als "Kachel"-Module angelegt werden */
.vmb-services > .vmb-container > div,
.vmb-services .moduletable {
	background: #fff;
	border-top: 4px solid var(--vmb-rot);
	border-radius: var(--vmb-radius);
	padding: 26px;
	flex: 1 1 220px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.vmb-services h3 { color: var(--vmb-anthrazit); }

/* ---------- Hauptinhalt ---------- */
.vmb-main { padding: 60px 0; }
.vmb-main-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}
.vmb-main-grid:has(.vmb-sidebar) {
	grid-template-columns: 2fr 1fr;
}
.vmb-sidebar .moduletable {
	background: var(--vmb-grau-hell);
	border-radius: var(--vmb-radius);
	padding: 22px;
	margin-bottom: 24px;
	border-left: 4px solid var(--vmb-rot);
}
.vmb-sidebar h3 { font-size: 1.05rem; }

/* ---------- Footer ---------- */
.vmb-footer {
	background: var(--vmb-anthrazit);
	color: #ddd;
	margin-top: 40px;
}
.vmb-footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	padding: 50px 20px;
}
.vmb-footer h3 {
	color: #fff;
	font-size: 1.05rem;
	border-bottom: 2px solid var(--vmb-rot);
	padding-bottom: 8px;
	margin-bottom: 14px;
}
.vmb-footer a { color: #ddd; }
.vmb-footer a:hover { color: var(--vmb-rot); }
.vmb-footer-bottom {
	background: #2c2c2c;
	font-size: 0.85rem;
}
.vmb-footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 20px;
	color: #aaa;
}

/* ---------- Fehlerseite ---------- */
.vmb-error { text-align: center; padding: 100px 20px; }
.vmb-error-code {
	font-size: 5rem;
	font-weight: 800;
	color: var(--vmb-grau);
	margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.vmb-footer-grid { grid-template-columns: 1fr 1fr; }
	.vmb-main-grid:has(.vmb-sidebar) { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
	.vmb-nav-toggle { display: flex; }
	.vmb-nav {
		display: none;
		width: 100%;
		order: 3;
	}
	.vmb-nav.is-open { display: block; }
	.vmb-nav ul { flex-direction: column; }
	.vmb-nav ul ul {
		position: static;
		box-shadow: none;
		border-top: none;
		border-left: 3px solid var(--vmb-rot);
		margin-left: 12px;
	}
	.vmb-topbar-inner { justify-content: center; }
	.vmb-lh-word { font-size: 1.05rem; }
	.vmb-lh img { height: 48px; }
	.vmb-lh-claim { font-size: 0.66rem; }
	.vmb-hero-inner { padding: 40px 20px; }
	.vmb-hero-text h1, .vmb-hero-text h2 { font-size: 1.6rem; }
	.vmb-footer-grid { grid-template-columns: 1fr; padding: 30px 20px; }
	.vmb-footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* Joomla-Menü: Hinweistext/Umschalter für Untermenüs ausblenden (Untermenü öffnet per Hover) */
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.vmb-nav .mod-menu__toggle-sub { display: none; }

/* Frontend-Bearbeiten-Symbole (nur für angemeldete Redakteure sichtbar) ausblenden */
.com-content-article .icons,
.vmb-content .icons,
.jmoddiv .btn-edit,
.jmodedit { display: none !important; }
