/* Matuszewski Rohr- und Kanalservice – Template */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }

:root {
	--accent: #00AEEF;
	--brand-brown: #7A2E1E;
	--text: #222222;
	--muted: #555555;
	--page-bg: #EDEDED;
	--footer-bg: #333333;
	--line: #C8C8C8;
	--link: #0083B8;
	--link-hover: #005F87;
	--max: 1200px;
	--pad: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--page-bg);
	color: var(--text);
	font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); }
a:hover, a:focus { color: var(--link-hover); }

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--accent); color: #fff; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Rahmen */
.site-box {
	max-width: var(--max);
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 0 12px rgba(0, 0, 0, .08);
}

/* Header */
.site-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	padding: 14px var(--pad);
	border-bottom: 3px solid var(--line);
	position: relative;
}

.brand { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand img { max-height: 56px; width: auto; }
.brand-name {
	font-weight: 700; font-size: 30px; letter-spacing: .5px;
	color: var(--accent); text-shadow: 1px 1px 0 #0A5A80;
}
.brand-sub {
	margin-top: 3px; padding: 3px 6px;
	background: var(--brand-brown); color: #fff;
	font-size: 12px; font-weight: 600; letter-spacing: 3px; text-align: center;
}

/* Menü (mod_menu) */
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul, .site-nav .mod-menu { display: flex; flex-wrap: wrap; gap: 26px; }
.site-nav li { position: relative; }
.site-nav a, .site-nav .mod-menu__separator, .site-nav .mod-menu__heading {
	display: inline-block; padding: 8px 0;
	color: var(--text); text-decoration: none; font-size: 15px;
}
.site-nav a:hover, .site-nav a:focus,
.site-nav .current > a, .site-nav .active > a { color: var(--accent); }

.site-nav .mod-menu__sub {
	display: none;
	position: absolute; top: 100%; left: -12px; z-index: 20;
	min-width: 220px; padding: 8px 0;
	background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.site-nav li:hover > .mod-menu__sub,
.site-nav li:focus-within > .mod-menu__sub { display: block; }
.site-nav .mod-menu__sub a { display: block; padding: 6px 16px; }

.nav-toggle {
	display: none;
	width: 44px; height: 44px; padding: 10px;
	background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 3px; margin: 5px 0; background: var(--text); }

/* Titelbild */
.hero { position: relative; background: #3A4752; }
.hero img, .hero-img { display: block; width: 100%; height: 420px; object-fit: cover; }
.hero-caption {
	position: absolute; left: 0; bottom: 36px;
	background: var(--accent); color: #fff;
	font-size: 24px; padding: 8px 18px;
}

/* Slider */
.hero-slider { height: 420px; overflow: hidden; }
.hero-slider .slide {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity .8s ease, visibility 0s linear .8s;
}
.hero-slider .slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.slider-nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 44px; height: 44px; border: 0; cursor: pointer;
	background: rgba(0, 0, 0, .35); color: #fff; font-size: 32px; line-height: 1;
	opacity: 0; transition: opacity .2s;
}
.hero-slider:hover .slider-nav, .slider-nav:focus-visible { opacity: 1; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots {
	position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2;
	display: flex; gap: 6px;
}
.slider-dot {
	width: 24px; height: 24px; padding: 0; border: 0; cursor: pointer; background: none;
	display: flex; align-items: center; justify-content: center;
}
.slider-dot::before {
	content: ""; width: 10px; height: 10px; border-radius: 50%;
	background: rgba(255, 255, 255, .55); border: 1px solid rgba(0, 0, 0, .25);
}
.slider-dot.is-active::before { background: #fff; }
@media (prefers-reduced-motion: reduce) {
	.hero-slider .slide, .hero-slider .slide.is-active { transition: none; }
}
@media (hover: none) { .slider-nav { opacity: 1; } }

/* Kontaktleiste */
.contact-bar {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
	padding: 22px var(--pad);
	background: var(--accent); color: #fff;
	font-weight: 700; font-size: 24px;
}
.contact-bar a { color: #fff; text-decoration: none; }
.contact-bar a:hover { text-decoration: underline; color: #fff; }

/* Inhalt */
.content { padding: 32px var(--pad) 16px; }
.content h1, .content h2, .content .page-header h1, .content .page-header h2 {
	margin: 0 0 14px; font-weight: 400; font-size: 26px; line-height: 1.3; color: var(--accent);
}
.content h3 { font-size: 19px; font-weight: 600; margin: 24px 0 8px; }
.content p { margin: 0 0 14px; }
.content ul { padding-left: 20px; }
.content li { margin-bottom: 8px; }

.pos-top-a, .pos-bottom-a { padding: 0 var(--pad); }

/* Bilderreihe (Position gallery, Custom-Modul) */
.gallery { padding: 16px var(--pad) 32px; }
.bildreihe, .gallery .mod-custom {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
}
.bildreihe img, .gallery img { display: block; width: 100%; height: 200px; object-fit: cover; }
.bildreihe p, .gallery p { margin: 0; }

/* Blauer Vorteilskasten (Position highlight) */
.highlight {
	margin: 16px 10px 32px; padding: 28px 18px;
	background: var(--accent); color: #fff;
}
.highlight .card-header, .highlight h2, .highlight h3 {
	margin: 0 0 16px; font-size: 24px; font-weight: 600; color: #fff; background: none; border: 0; padding: 0;
}
.highlight ul {
	margin: 0; padding-left: 20px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4px 48px;
	font-size: 16px;
}
.highlight a { color: #fff; }

/* Team (im Beitrag) */
.team-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
	margin: 24px 0;
}
.team-card img { display: block; width: 100%; height: 260px; object-fit: cover; }
.team-card .team-name {
	display: block; padding: 10px 14px 0;
	background: var(--accent); color: #fff; font-weight: 700; font-size: 17px;
}
.team-card .team-role {
	display: block; padding: 0 14px 10px;
	background: var(--accent); color: #fff; font-size: 14px;
}

/* Footer */
.site-footer { background: var(--footer-bg); color: #fff; padding: 28px 32px 20px; font-size: 14px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px; }
.footer-cols > div { flex: 1 1 200px; min-width: 0; }
.footer-cols > .footer-map { flex: 1.3 1 320px; }
.footer-map iframe, .footer-map img { width: 100%; height: 150px; border: 0; display: block; }
.gmap { position: relative; height: 200px; background: #E4E8EC; }
.gmap iframe { width: 100%; height: 200px; border: 0; display: block; }
.gmap-consent {
	height: 100%; display: flex; align-items: center; justify-content: center; padding: 12px;
	background-size: cover; background-position: center;
}
.gmap-box { background: rgba(255, 255, 255, .94); color: var(--text); padding: 12px 14px; max-width: 360px; font-size: 13px; text-align: center; }
.gmap-box p { margin: 0 0 8px; }
.site-footer .gmap-box a { color: var(--link); text-decoration: underline; }
.gmap-load { background: var(--accent); color: #fff; border: 0; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; }
.gmap-remember { display: block; margin-top: 8px; font-size: 12px; }
.gmap-link { display: inline-block; margin-top: 8px; font-size: 13px; }

.site-footer h2 { margin: 0 0 8px; color: var(--accent); font-size: 22px; font-weight: 700; }
.site-footer p { margin: 0 0 16px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-legal { margin-top: 24px !important; }
.copyright { border-top: 1px solid #4A4A4A; margin-top: 28px; padding-top: 16px; font-size: 12px; }

/* Joomla-Systemmeldungen / Formulare minimal */
joomla-alert, .alert { display: block; padding: 12px 16px; margin-bottom: 16px; border-left: 4px solid var(--accent); background: #F2F7FA; }
.btn, button[type="submit"], input[type="submit"] {
	background: var(--accent); color: #fff; border: 0; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
}
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
	font: inherit; padding: 8px 10px; border: 1px solid var(--line); width: 100%; max-width: 520px;
}

/* Mobil */
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; width: 100%; }
	.site-nav.is-open { display: block; }
	.site-nav > ul, .site-nav .mod-menu { flex-direction: column; gap: 0; }
	.site-nav a { display: block; padding: 10px 0; border-top: 1px solid #EEE; }
	.site-nav .mod-menu__sub { display: block; position: static; box-shadow: none; padding: 0 0 0 16px; }
	.contact-bar { font-size: 18px; flex-direction: column; align-items: flex-start; }
	.hero img, .hero-img, .hero-slider { height: 240px; }
	.hero-caption { font-size: 18px; bottom: 16px; }
}

@media print {
	.site-nav, .nav-toggle, .contact-bar, .hero, .footer-map { display: none; }
	.site-box { box-shadow: none; }
}
