/*=============================================================
	IWOBAU – Mobile-Optimierung (Smartphones < 768px)
	Wird NACH allen anderen Styles geladen und greift nur mobil.
	Ziel: Look & Feel der Desktop-Version (Schwarz/Weiss, klare
	Karten, Poppins) sauber auf kleine Bildschirme übertragen.
=============================================================*/
@media only screen and (max-width: 767px) {

	body { font-size: 15px; overflow-x: clip; }

	/* ---------- Topbar ---------- */
	.header .topbar { padding: 6px 0; }
	.header .top-contact { margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; }
	.header .top-contact li { margin: 0; padding: 0; font-size: 13px; line-height: 22px; }
	.header .top-contact li:before { display: none; }
	.header .top-contact li i { margin-right: 6px; }

	/* ---------- Header: Logo links, Menü rechts in EINER Zeile ---------- */
	.header .header-inner { padding: 8px 0 !important; }
	.header.sticky .header-inner { left: 0; right: 0; width: auto; }
	.header .header-inner .inner > .row > .col-12:first-child {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: static;
	}
	.header .header-inner .inner,
	.header .header-inner .container { position: relative; }
	.header .logo { min-height: 52px; margin: 0; }
	.header .logo img { max-height: 46px; width: auto; max-width: 170px; }
	.header .mobile-nav { position: static; }
	.header .slicknav_menu { position: static; padding: 0; }
	.header .slicknav_btn {
		margin: 0 !important;
		padding: 10px 8px;
		border-radius: 8px;
		border: 1px solid #e3e3e3;
		background: #fff;
		line-height: 1;
	}
	.header .slicknav_menu .slicknav_icon { margin: 0; }
	.header .slicknav_menu .slicknav_icon-bar { width: 22px; height: 2px; }
	/* Aufgeklapptes Menü: volle Breite unter dem Header */
	.header .slicknav_nav {
		position: absolute;
		left: 15px;
		right: 15px;
		top: 100%;
		margin-top: 8px !important;
		z-index: 999;
		padding: 6px 16px !important;
	}
	.header .slicknav_nav li { border-bottom: 1px solid #f0f0f0; }
	.header .slicknav_nav li:last-child { border-bottom: 0; }
	.header .slicknav_nav li a { font-size: 15px; padding: 12px 0 !important; margin: 0; }
	.header .get-quote { display: none; }

	/* ---------- Hero / Slider ---------- */
	.slider .single-slider { height: auto; min-height: 460px; padding: 48px 0 56px; display: flex; align-items: center; }
	.slider .single-slider:before { opacity: 0.6; }
	.slider .single-slider .text { margin-top: 0; position: relative; z-index: 2; }
	.slider .single-slider h1 { font-size: 26px; line-height: 1.3; margin-bottom: 14px; color: #111; }
	.slider .single-slider p { font-size: 15px; line-height: 1.6; margin-top: 0; color: #222; }
	.slider .single-slider .button { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
	.slider .single-slider .btn,
	.slider .single-slider .button .btn { width: 100%; margin: 0 !important; padding: 14px 20px; font-size: 15px; font-weight: 600; border-radius: 8px; text-align: center; }
	.slider .single-slider .btn.primary { background: #fff; color: #000; border: 2px solid #000; }
	.slider .single-slider .btn.primary:before { display: none; }
	.slider .owl-carousel .owl-nav { display: none; }
	/* Abstandshalter direkt nach dem Slider (inline margin:60px) */
	#home + div { margin: 0 !important; }

	/* ---------- Sektionen allgemein ---------- */
	.section { padding: 56px 0; }
	.section-title { margin-bottom: 28px; padding: 0 5px; }
	.section-title h2 { font-size: 24px; line-height: 1.3; }
	.section-title p { font-size: 14px; line-height: 1.7; }
	.container { padding-left: 20px; padding-right: 20px; }

	/* ---------- Ablauf (3 Schritte) als Karten ---------- */
	.Feautes .single-features {
		margin: 0 0 16px;
		padding: 24px 20px;
		border: 1px solid #ececec;
		border-radius: 12px;
		background: #fff;
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
	}
	.Feautes .single-features .signle-icon { position: static; }
	.Feautes .single-features .signle-icon i {
		position: static;
		margin: 0 auto 14px;
		display: block;
		height: 64px; width: 64px; line-height: 64px;
		font-size: 30px;
	}
	.Feautes .single-features h3 { padding-top: 0; font-size: 18px; margin-bottom: 8px; }
	.Feautes .single-features p { font-size: 14px; line-height: 1.65; margin: 0; }

	/* ---------- Leistungen ---------- */
	.services.section { padding: 40px 0 10px; }
	.services .container { padding-left: 0; padding-right: 0; }
	.services .row { margin-left: 0; margin-right: 0; }
	.services .single-service {
		margin: 0 0 14px;
		padding: 20px 18px 20px 76px;
		border: 1px solid #ececec;
		border-radius: 12px;
		position: relative;
	}
	.services .single-service i { left: 18px; top: 22px; font-size: 36px; }
	.services .single-service h4 { font-size: 17px; margin-bottom: 6px; padding: 0; }
	.services .single-service p { font-size: 14px; line-height: 1.6; margin: 0; padding: 0; }

	/* ---------- Zahlen (Fun-Facts) als 2x2 Raster ---------- */
	.fun-facts.section { padding: 48px 0; }
	.fun-facts .row > [class*="col-"] { flex: 0 0 50%; max-width: 50%; padding-left: 8px; padding-right: 8px; }
	.fun-facts .single-fun { margin: 0 0 30px; padding-top: 58px; text-align: center; }
	.fun-facts .row > [class*="col-"]:nth-last-child(-n+2) .single-fun { margin-bottom: 0; }
	.fun-facts .single-fun i { height: 48px; width: 48px; line-height: 46px; font-size: 20px; top: 0; margin-top: 0; margin-left: -24px; }
	.fun-facts .single-fun .content span { font-size: 26px; }
	.fun-facts .single-fun .content p { font-size: 13px; line-height: 1.45; margin-top: 4px; }
	.fun-facts .single-fun .content p:first-child { font-size: 26px; line-height: 1.2; margin: 0; }

	/* ---------- Konfigurator ---------- */
	#konfigurator .container { padding-left: 12px; padding-right: 12px; }
	.rechner-embed { margin-top: 10px; border-radius: 12px; }

	/* ---------- Über uns ---------- */
	.aboutus { padding: 56px 20px !important; }
	.aboutus-content { flex-direction: column !important; gap: 28px !important; padding-left: 0 !important; }
	.aboutus h2 {
		font-family: 'Poppins', sans-serif !important;
		font-size: 26px !important;
		text-align: left !important;
		margin-bottom: 16px !important;
		position: relative;
		padding-bottom: 12px !important;
	}
	.aboutus h2:after { content: ""; position: absolute; left: 0; bottom: 0; width: 50px; height: 2px; background: #fff; }
	.aboutus-text,
	.aboutus-text p {
		font-family: 'Poppins', sans-serif !important;
		font-size: 14.5px !important;
		line-height: 1.75 !important;
		text-align: left !important;
		color: #e9e9e9 !important;
	}
	.aboutus-image { margin-top: 0 !important; width: 100%; }
	.aboutus-image img { max-width: 320px !important; width: 100%; margin: 0 auto; display: block; }

	/* ---------- Referenzen ---------- */
	#portfolio .container-fluid { padding-left: 20px; padding-right: 20px; }
	.portfolio .single-pf { border-radius: 12px; overflow: hidden; }
	.portfolio .single-pf img { width: 100%; height: 240px; object-fit: cover; }

	/* ---------- Kontakt ---------- */
	.contact-text h2 { font-size: 24px; margin-bottom: 10px; }
	.contact-text p { font-size: 14px; line-height: 1.7; }
	.contact-buttons { flex-direction: column !important; gap: 10px !important; align-items: stretch; padding: 0 5px; }
	.contact-button { display: block !important; width: 100%; padding: 14px 20px !important; font-size: 15px !important; font-weight: 600; border-radius: 8px !important; text-align: center; }

	/* ---------- Footer ---------- */
	.footer .footer-top { padding: 48px 0 24px; }
	.footer .single-footer { margin-bottom: 28px; }
	.footer .single-footer h2 { font-size: 18px; line-height: 1.4; margin-bottom: 20px; padding-bottom: 12px; text-transform: none; }
	.footer .single-footer p { font-size: 14px; line-height: 1.7; }
	.footer .copyright { padding: 20px 0 72px; }
	.footer .copyright .copyright-content p {
		font-size: 13px;
		line-height: 1.9;
		white-space: normal;
		word-break: normal;
		overflow-wrap: anywhere;
		margin: 0;
	}

	/* ---------- Scroll-Top Button kleiner ---------- */
	#scrollUp { right: 14px; bottom: 14px; height: 40px; width: 40px; line-height: 40px; font-size: 20px; padding: 0; }
}

/* Sehr kleine Geräte */
@media only screen and (max-width: 360px) {
	.slider .single-slider h1 { font-size: 23px; }
	.header .logo img { max-width: 145px; }
	.fun-facts .single-fun .content p { font-size: 12px; }
}
