/* =============================================================
   Elektrotechnik RADIC GmbH – Template CSS
   Joomla 6 | Responsive Design
   Originales Design: Werbeagentur Hoffmann
   ============================================================= */

/* ----- Reset & Box Model ----- */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	height: 100%;
}

body {
	margin: 0;
	padding: 0;
	font-family: Verdana, Arial, sans-serif;
	font-size: 12px;
	color: #666666;
	background-color: #cccccc;
	line-height: 18px;
}

/* ----- Typografie ----- */
h1 {
	font-size: 20px;
	font-family: Verdana, Arial, sans-serif;
	color: #000000;
	font-weight: normal;
	text-decoration: none;
	margin: 0 0 10px 0;
}

h2 {
	font-size: 16px;
	font-family: Verdana, Arial, sans-serif;
	color: #F54003;
	font-weight: normal;
	text-decoration: none;
	margin: 15px 0 5px 0;
}

h3 {
	font-size: 14px;
	font-family: Verdana, Arial, sans-serif;
	color: #F54003;
	font-weight: bold;
	text-decoration: none;
	margin: 10px 0 5px 0;
}

h4 {
	border-bottom: 1px solid #b2b2b2;
	max-width: 500px;
	font-weight: normal;
	margin: 10px 0;
	font-size: 12px;
	color: #666666;
}

p {
	margin: 0 0 8px 0;
}

ul, ol {
	padding-left: 20px;
	margin: 0 0 10px 0;
}

li {
	margin-bottom: 4px;
}

a {
	font-family: Verdana, Arial, sans-serif;
	color: #666666;
	text-decoration: none;
	font-weight: normal;
	border-bottom: 1px dotted #F54003;
}

a:hover,
a:focus {
	color: #F54003;
	font-weight: bold;
	border-bottom: 1px dotted #F54003;
}

/* ----- Haupt-Container ----- */
#radic-container {
	width: 950px;
	margin: 40px auto 0;
}

/* =============================================================
   SEKUNDÄRE NAVIGATION (Kontakt / Impressum / Datenschutz)
   ============================================================= */
#menu-top-bar {
	position: relative;
	width: 950px;
	height: 17px;
	overflow: hidden;
	display: flex;
	align-items: center;
}

#menu-top-inner {
	flex: 1;
	height: 17px;
	background-image: url(../images/bg_m2.png);
	background-repeat: no-repeat;
	background-position: left center;
	padding-left: 15px;
	overflow: hidden;
}

#menu-top-red {
	width: 50px;
	height: 17px;
	background-color: #ff1500;
	flex-shrink: 0;
}

/* Menü-Links oben */
#menu-top-bar ul,
#menu-top-inner ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: center;
	height: 17px;
}

#menu-top-bar ul li,
#menu-top-inner ul li {
	margin: 0 18px 0 0;
}

#menu-top-bar ul li a,
#menu-top-inner ul li a {
	font-size: 12px;
	font-family: Verdana, Arial, sans-serif;
	color: #787777;
	font-weight: bold;
	border-bottom: none;
	line-height: 17px;
}

#menu-top-bar ul li a:hover,
#menu-top-inner ul li a:hover,
#menu-top-bar ul li.current.active a,
#menu-top-inner ul li.current.active a {
	color: #F54003;
	border-bottom: none;
	font-weight: bold;
}

/* =============================================================
   HAUPTNAVIGATION (Home / Unternehmen / Leistungen / Referenzen)
   ============================================================= */
#menu-main-bar {
	width: 950px;
	height: 26px;
	background-image: url(../images/bg_m1.png);
	background-repeat: repeat-x;
	background-color: #7a0000;
	overflow: hidden;
	padding-left: 354px;
}

#menu-main-bar ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: center;
	height: 26px;
}

#menu-main-bar ul li {
	margin: 0 35px 0 0;
}

#menu-main-bar ul li a {
	font-size: 12px;
	font-family: Verdana, Arial, sans-serif;
	color: #000000;
	font-weight: bold;
	border-bottom: none;
	line-height: 26px;
}

#menu-main-bar ul li a:hover,
#menu-main-bar ul li.current.active a,
#menu-main-bar ul li.active a {
	color: #F54003;
	border-bottom: none;
	font-weight: bold;
}

/* =============================================================
   MOBILER HEADER (versteckt auf Desktop)
   ============================================================= */
#mobile-bar {
	display: none;
}

#mobile-nav {
	display: none;
}

/* =============================================================
   HAUPTBEREICH (mitte)
   ============================================================= */
#mitte {
	width: 950px;
	min-height: 775px;
	background-image: url(../images/bg_mitte.png);
	background-repeat: repeat-y;
	display: flex;
	align-items: flex-start;
}

/* =============================================================
   LINKE SIDEBAR
   ============================================================= */
#sidebar {
	width: 298px;
	flex-shrink: 0;
	min-height: 750px;
}

/* Logo-Bereich */
#logo-area {
	width: 268px;
	background-color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px 16px;
}

#logo-img {
	width: 100%;
	max-width: 240px;
	height: auto;
	display: block;
}

/* Sidebar Bild 1 */
#sidebar-bild1 {
	width: 270px;
	height: 150px;
	padding-left: 28px;
	overflow: hidden;
}

#sidebar-bild1 img {
	width: 212px;
	height: 140px;
	display: block;
}

/* Sidebar Bild 2 */
#sidebar-bild2 {
	width: 270px;
	height: 140px;
	padding-left: 28px;
	overflow: hidden;
}

#sidebar-bild2 img {
	width: 212px;
	height: 140px;
	display: block;
}

/* Adresse */
#adresse {
	width: 237px;
	padding-left: 27px;
	padding-top: 23px;
	padding-right: 10px;
	font-size: 13px;
	font-family: Verdana, Arial, sans-serif;
	color: #000000;
	font-weight: normal;
	line-height: 20px;
}

#adresse a {
	font-size: 13px;
	font-family: Verdana, Arial, sans-serif;
	color: #333333;
	font-weight: bold;
	border-bottom: none;
}

#adresse a:hover {
	color: #F54002;
	border-bottom: 1px dotted #333333;
	font-weight: bold;
}

/* =============================================================
   RECHTER INHALTSBEREICH
   ============================================================= */
#content-area {
	flex: 1;
	width: 652px;
	min-width: 0;
}

/* Top-Banner-Bild */
#bild-oben {
	width: 652px;
	height: 166px;
	overflow: hidden;
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
}

#bild-oben img {
	width: 652px;
	height: 166px;
	display: block;
}

/* Inhaltsbereich */
#inhalt {
	background-image: url(../images/bg_inhalt.png);
	background-repeat: repeat-x;
	background-color: #ffffff;
	min-height: 558px;
	padding: 50px 50px 40px 50px;
	font-family: Verdana, Arial, sans-serif;
	font-size: 12px;
	color: #666666;
	line-height: 25px;
	background-size: contain;
}

/* Joomla-eigene Komponenten-Wrapper */
#inhalt .item-page,
#inhalt .blog,
#inhalt .com-content-article {
	width: 100%;
}

/* Seitentitel-Header ausblenden */
.page-header {
	display: none;
}

/* =============================================================
   FOOTER
   ============================================================= */
#made {
	width: 950px;
	height: 32px;
	background-image: url(../images/bg_made.png);
	background-repeat: repeat-x;
	background-color: #cccccc;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 10px;
}

#made a {
	font-size: 9px;
	font-family: Tahoma, sans-serif;
	color: #999999;
	font-weight: normal;
	border-bottom: none;
	text-decoration: none;
}

#made a:hover {
	color: #000000;
	font-weight: normal;
	border-bottom: none;
}

/* =============================================================
   BACK-TO-TOP BUTTON
   ============================================================= */
.cd-top {
	display: inline-block;
	height: 40px;
	width: 40px;
	position: fixed;
	bottom: 40px;
	right: 10px;
	box-shadow: 0 0 10px rgba(0,0,0,0.15);
	overflow: hidden;
	text-indent: 100%;
	white-space: nowrap;
	background: rgba(245, 64, 3, 0.85) url(../images/cd-top-arrow.svg) no-repeat center 50%;
	background-size: 20px 20px;
	border-radius: 3px;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s 0s, visibility 0s 0.3s;
	border-bottom: none;
	z-index: 500;
}

.cd-top.cd-is-visible {
	visibility: visible;
	opacity: 0.85;
}

.cd-top:hover {
	background-color: rgba(150, 0, 0, 0.9);
	opacity: 1;
	border-bottom: none;
}

@media only screen and (min-width: 1024px) {
	.cd-top {
		height: 50px;
		width: 50px;
		right: 30px;
		bottom: 30px;
	}
}

/* =============================================================
   RESPONSIVE: TABLET (769px – 950px)
   ============================================================= */
@media (max-width: 960px) {
	#radic-container {
		width: 100%;
		margin: 0;
	}

	#menu-top-bar {
		width: 100%;
	}

	#menu-main-bar {
		width: 100%;
	}

	#mitte {
		width: 100%;
	}

	#made {
		width: 100%;
	}

	#content-area {
		width: auto;
	}

	#bild-oben,
	#bild-oben img {
		width: 100%;
		height: auto;
		min-height: 80px;
	}
}

/* =============================================================
   RESPONSIVE: MOBIL (max 768px)
   ============================================================= */
@media (max-width: 768px) {

	body {
		background-color: #ebebeb;
	}

	/* Horizontalen Überlauf verhindern */
	#radic-container,
	#mitte,
	#content-area,
	#sidebar {
		overflow-x: hidden;
	}

	/* Desktop-Navigation ausblenden */
	#menu-top-bar,
	#menu-main-bar {
		display: none;
	}

	/* ---- MOBILER HEADER ---- */
	#mobile-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		background-image: url(../images/bg_m1.png);
		background-repeat: repeat-x;
		background-color: #7a0000;
		padding: 0 15px;
		height: 48px;
		position: sticky;
		top: 0;
		z-index: 1000;
		box-shadow: 0 2px 6px rgba(0,0,0,0.3);
		background-size: contain;
	}

	#mobile-logo-text {
		color: #111111;
		font-size: 14px;
		font-family: Verdana, Arial, sans-serif;
		letter-spacing: 0.02em;
	}

	/* ---- HAMBURGER ---- */
	#hamburger {
		background: none;
		border: none;
		cursor: pointer;
		padding: 6px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		height: 28px;
		width: 34px;
	}

	#hamburger span {
		display: block;
		width: 26px;
		height: 3px;
		background-color: #111111;
		border-radius: 2px;
		transition: transform 0.3s, opacity 0.3s;
	}

	#hamburger.open span:nth-child(1) {
		transform: translateY(9px) rotate(45deg);
	}
	#hamburger.open span:nth-child(2) {
		opacity: 0;
	}
	#hamburger.open span:nth-child(3) {
		transform: translateY(-9px) rotate(-45deg);
	}

	/* ---- MOBILES NAV-OVERLAY ---- */
	#mobile-nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(25, 0, 0, 0.97);
		z-index: 999;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		overflow-y: auto;
	}

	#mobile-nav.open {
		display: flex;
	}

	#mobile-nav-close {
		position: absolute;
		top: 14px;
		right: 18px;
		background: none;
		border: none;
		color: #ffffff;
		font-size: 38px;
		cursor: pointer;
		line-height: 1;
		padding: 0;
		opacity: 0.8;
	}

	#mobile-nav-close:hover {
		opacity: 1;
	}

	#mobile-nav ul {
		list-style: none;
		margin: 0;
		padding: 0;
		text-align: center;
	}

	#mobile-nav ul li {
		margin: 14px 0;
	}

	#mobile-nav ul li a {
		color: #ffffff;
		font-size: 20px;
		font-family: Verdana, Arial, sans-serif;
		font-weight: bold;
		border-bottom: none;
		letter-spacing: 0.04em;
	}

	#mobile-nav ul li a:hover,
	#mobile-nav ul li.current.active a {
		color: #F54003;
		border-bottom: none;
	}

	.mobile-nav-divider {
		width: 50px;
		height: 1px;
		background-color: rgba(255,255,255,0.15);
		margin: 18px auto;
	}

	/* ---- HAUPT-LAYOUT ---- */
	#radic-container {
		width: 100%;
		margin: 0;
	}

	#mitte {
		display: flex;
		flex-direction: column;
		min-height: auto;
		background: none;
		width: 100%;
	}

	/* Inhaltsbereich oben */
	#content-area {
		order: 1;
		width: 100%;
	}

	/* Sidebar unten */
	#sidebar {
		order: 2;
		width: 100%;
		min-height: auto;
		/* Flexbox für Logo + Bilder nebeneinander + Adresse */
		display: flex;
		flex-wrap: wrap;
		background-color: #f5f5f5;
		border-top: 4px solid #F54003;
	}

	/* ---- BANNER-BILD ---- */
	#bild-oben {
		width: 100%;
		height: auto;
		background-size: cover;
		background-position: center top;
	}

	#bild-oben img {
		width: 100%;
		height: auto;
		display: block;
	}

	/* ---- INHALTSBEREICH ---- */
	#inhalt {
		padding: 22px 16px 28px 16px;
		min-height: auto;
		background: #ffffff;
		line-height: 22px;
	}

	/* Leerzeilen im Content reduzieren */
	#inhalt p {
		margin-bottom: 6px;
	}

	#inhalt h1 {
		font-size: 17px;
		line-height: 1.4;
	}

	#inhalt h4 {
		margin: 6px 0;
	}

	/* ---- LOGO-BEREICH ---- */
	#logo-area {
		flex: 0 0 100%;
		width: 100%;
		height: auto;
		background-color: #ffffff;
		padding: 20px 16px;
		border-bottom: 1px solid #e0e0e0;
		justify-content: center;
	}

	#logo-img {
		max-width: 220px;
	}

	/* ---- SIDEBAR-BILDER nebeneinander ---- */
	#sidebar-bild1,
	#sidebar-bild2 {
		flex: 0 0 50%;
		width: 50%;
		height: 140px;
		padding: 0;
		overflow: hidden;
	}

	#sidebar-bild1 img,
	#sidebar-bild2 img {
		width: 100%;
		height: 140px;
		max-width: none;
		object-fit: cover;
		display: block;
	}

	/* ---- ADRESSE ---- */
	#adresse {
		flex: 0 0 100%;
		width: 100%;
		padding: 18px 20px 22px 20px;
		background-color: #f5f5f5;
		font-size: 13px;
		line-height: 22px;
	}

	/* ---- FOOTER ---- */
	#made {
		width: 100%;
	}

	h4 {
		max-width: 100%;
	}
}
