/*
Theme Name: S&W Handels GmbH
Theme URI: https://www.sw-ps.eu/
Author: Sichtschmiede
Description: Bootstrap 5 + ACF Flexible-Content Theme fuer S&W Handels GmbH (Metallhandel, kommunale Dienstleistungen, Nachhaltigkeit).
Version: 1.0.0
Text Domain: sw-ps
*/

:root {
	--sw-accent: #168ece;
	--sw-accent-dark: #10709f;
	--sw-dark: #4f4f4f;
	--sw-bright: #efefef;
	--sw-heading: #3c3c3b;
	--sw-text: #333333;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

body {
	font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
	color: var(--sw-text);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: "Oswald", "Helvetica Neue", Arial, sans-serif;
}

a {
	color: var(--sw-accent);
}

a:hover {
	color: var(--sw-accent-dark);
}

/* ---------- Layout container Utilities ---------- */
.small-container {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* ---------- Navbar ---------- */
.sw-navbar {
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.sw-navbar .navbar-brand {
	display: flex;
	align-items: center;
	padding: 0;
}

.sw-navbar .navbar-brand .custom-logo-link {
	display: block;
	line-height: 0;
}

.sw-navbar .navbar-brand img,
.sw-navbar .navbar-brand img.custom-logo {
	height: 55px !important;
	width: auto !important;
	max-height: 55px;
	object-fit: contain;
}

.sw-navbar .nav-link {
	color: var(--sw-heading);
	font-family: "Exo 2", "Open Sans", sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.03em;
}

.sw-navbar .nav-link:hover,
.sw-navbar .nav-link.active {
	color: var(--sw-accent);
}

.sw-navbar .navbar-toggler {
	border: none;
	box-shadow: none !important;
}

/* ---------- Hero ---------- */
.sw-hero {
	padding-top: 50px;
	min-height: 88vh;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.sw-hero-title {
	color: #3d3d3d;
	font-family: "Oswald", sans-serif;
	font-size: 64px;
	line-height: 60px;
	letter-spacing: 1px;
	text-align: right;
}

@media (max-width: 991.98px) {
	.sw-hero-title {
		font-size: 40px;
		line-height: 1.2;
		text-align: left;
	}
	.sw-hero {
		min-height: 60vh;
	}
}

/* ---------- Section-Grundfarben ---------- */
.sw-section-white {
	background: #fff;
	padding-top: 70px;
	padding-bottom: 70px;
}

.sw-section-bright {
	background: var(--sw-bright);
	padding-top: 70px;
	padding-bottom: 70px;
}

.sw-section-kontakt {
	background: var(--sw-dark);
	color: #fff;
}

.sw-section-kontakt .sw-kontakt-info,
.sw-section-kontakt .sw-kontakt-info p {
	color: #fff;
}

/* ---------- Ueberschriften ---------- */
.sw-heading-dark {
	color: var(--sw-heading);
	font-weight: 600;
	font-size: 48px;
}

.sw-heading-accent {
	color: var(--sw-accent);
	font-weight: 600;
	font-size: 48px;
}

.sw-heading-accent-sub {
	color: var(--sw-accent);
	font-size: 24px;
	font-weight: 400;
}

.sw-heading-white {
	color: #fff;
	font-weight: 600;
	font-size: 48px;
}

@media (max-width: 767.98px) {
	.sw-heading-dark,
	.sw-heading-accent,
	.sw-heading-white {
		font-size: 32px;
	}
}

.sw-intro-text {
	font-size: 16px;
	line-height: 1.6;
}

/* ---------- Icon-Boxen (Dienstleistungen) ---------- */
.sw-icon-box {
	text-align: left;
}

.sw-icon-box-icon {
	color: var(--sw-accent);
	font-size: 72px;
	line-height: 1;
	margin-bottom: 0.75rem;
}

.sw-icon-box-heading {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.sw-icon-box-list {
	padding-left: 1.1rem;
	font-size: 16px;
	line-height: 1.6;
}

.sw-icon-box-list li {
	margin-bottom: 0.35rem;
}

/* ---------- Hintergrundbild-Sections (Metalle / Nachhaltigkeit) ---------- */
.sw-bgimage-section {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	padding-top: 70px;
	padding-bottom: 70px;
	min-height: 70vh;
	display: flex;
	align-items: center;
}

.sw-textbox {
	background: rgba(255, 255, 255, 0.85);
	padding: 1.5rem;
	border-radius: 2px;
}

.sw-small-text {
	font-size: 14px;
	color: var(--sw-text);
}

.sw-small-text ul {
	padding-left: 1.1rem;
}

/* ---------- Galerie ---------- */
.sw-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
}

@media (min-width: 768px) {
	.sw-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.sw-gallery-grid button {
	border: none;
	padding: 0;
	background: none;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.sw-gallery-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	display: block;
}

.sw-gallery-grid button:hover img {
	transform: scale(1.06);
}

/* ---------- Footer ---------- */
.sw-footer-bottom {
	background: var(--sw-accent);
	color: #fff;
}

.sw-footer-bottom a {
	color: #cdeaf8;
	text-decoration: none;
}

.sw-footer-bottom a:hover {
	color: #fff;
}

#back-to-top {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 1040;
	display: none;
	background: var(--sw-accent);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 48px;
	height: 48px;
}

/* ---------- Kontaktformular (Contact Form 7) ---------- */
.wpcf7-form p {
	margin-bottom: 1rem;
}

.wpcf7-form .full-width-input {
	display: flex;
	flex-wrap: wrap;
	column-gap: 1rem;
}

.wpcf7-form .full-width-input p.one-half {
	flex: 1 1 calc(50% - 0.5rem);
}

.wpcf7-form .full-width-input p:not(.one-half) {
	flex: 1 1 100%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
	width: 100%;
	border: 1px solid #ced4da;
	border-radius: 0.25rem;
	padding: 0.6rem 0.85rem;
}

.sw-section-kontakt .wpcf7-form input[type="text"],
.sw-section-kontakt .wpcf7-form input[type="email"],
.sw-section-kontakt .wpcf7-form textarea {
	border: none;
}

.wpcf7-form input[type="submit"] {
	background: var(--sw-accent);
	color: #fff;
	border: none;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.7rem 1.75rem;
	border-radius: 0.25rem;
}

.wpcf7-form input[type="submit"]:hover {
	background: var(--sw-accent-dark);
}

.wpcf7-not-valid-tip {
	color: #ffb4a8;
	font-size: 0.85rem;
}

.wpcf7-response-output {
	border-radius: 0.25rem;
	padding: 0.75rem 1rem;
	margin-top: 1rem;
}
