/* ============================================
   UNIFIED COLOR PALETTE - Overrides main.css
   ============================================ */

:root {
	/* Your Core Brand Colors */
	--color-dark: #2E2D29;
	/* Dark gray/black - backgrounds */
	--color-text-dark: #2E2D29;
	/* Dark text for body content */
	--color-accent: #CC8F50;
	/* Warm gold/orange - hover states */
	--color-accent-light: #DD9C5A;
	/* Lighter accent for button hover */
	--color-accent-dark: #3c3b3b;
	/* Dark text on accent backgrounds */

	/* Text Colors */
	--color-text-light: #ffffff;
	/* White text on dark backgrounds */
	--color-text-muted: #aaaaaa;
	/* Muted gray for secondary text */

	/* Status Colors */
	--color-error: #e63946;
	/* Error red */

	/* Border Colors */
	--color-border: rgba(160, 160, 160, 0.3);
	--color-border-dark: rgba(160, 160, 160, 0.5);
}

/* ============================================
   OVERRIDE ALL main.css COLORS
   ============================================ */

/* Override body background and text colors */
body {
	background: #f4f4f4 !important;
	color: var(--color-text-dark) !important;
}

/* Override link colors */
a {
	color: inherit !important;
	border-bottom: dotted 1px rgba(160, 160, 160, 0.65) !important;
}

a:hover {
	border-bottom-color: transparent !important;
	color: var(--color-accent) !important;
}

a:hover:before {
	color: var(--color-accent) !important;
}

/* Override heading colors */
h1,
h2,
h3 {
	color: var(--color-text-dark) !important;
}

h1 a,
h2 a {
	color: inherit !important;
	border-bottom: 0 !important;
}

/* Override button colors */
.button {
	box-shadow: inset 0 0 0 1px var(--color-border) !important;
	color: var(--color-text-dark) !important;
}

.button:hover {
	box-shadow: inset 0 0 0 1px var(--color-accent) !important;
	color: var(--color-accent) !important;
}

.button.large {
	background: var(--color-accent) !important;
	color: var(--color-text-light) !important;
	box-shadow: none !important;
}

.button.large:hover {
	background: var(--color-accent-light) !important;
	color: var(--color-accent-dark) !important;
}

/* Override placeholder colors */
::-webkit-input-placeholder {
	color: var(--color-text-muted) !important;
}

:-moz-placeholder {
	color: var(--color-text-muted) !important;
}

::-moz-placeholder {
	color: var(--color-text-muted) !important;
}

:-ms-input-placeholder {
	color: var(--color-text-muted) !important;
}

/* Override header */
#header {
	background-color: var(--color-text-light) !important;
	border-bottom: solid 1px var(--color-border) !important;
}

#header h1 a svg {
	color: var(--color-text-dark) !important;
}

#header h1 a:hover svg {
	color: var(--color-accent) !important;
}

#header .links {
	border-left: solid 1px var(--color-border) !important;
}

#header .links ul li a {
	color: var(--color-text-dark) !important;
}

#header .links ul li a::after {
	background: var(--color-accent) !important;
}

#header .main ul li {
	border-left: solid 1px var(--color-border) !important;
}

#header .main ul li>a {
	color: var(--color-text-muted) !important;
}

#header h1 a {
	transition: color 0.4s ease !important;
}

#header h1 a svg {
	transition: color 0.4s ease !important;
}

/* Remove any conflicting transitions */
#header h1 a svg {
	transition: color 0.4s ease !important;
}

/* Override post styles */
.post {
	background: var(--color-text-light) !important;
	border: solid 1px var(--color-border) !important;
}

.post>header {
	border-bottom: solid 1px var(--color-border) !important;
}

.post>footer .stats li {
	border-left: solid 1px var(--color-border) !important;
}

.post>footer .stats li .icon:before {
	color: rgba(46, 45, 41, 0.6) !important;
}

/* Override menu */
#menu {
	background: var(--color-text-light) !important;
	border-left: solid 1px var(--color-border) !important;
}

#menu>* {
	border-top: solid 1px var(--color-border) !important;
}

#menu .links>li {
	border-top: dotted 1px var(--color-border) !important;
}

#menu .links>li a:hover h3 {
	color: var(--color-accent) !important;
}

/* Override footer */
#footer .icons {
	color: var(--color-text-muted) !important;
}

#footer .copyright {
	color: var(--color-text-muted) !important;
}

/* ============================================
   CUSTOM STYLES
   ============================================ */

/* Contact links in header */
#header .main ul li.contact-link a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	text-indent: 0 !important;
	padding: 0 0.5em;
	color: var(--color-text-dark) !important;
	text-decoration: none;
	white-space: nowrap;
	font-size: 0.9em;
	gap: 0.5em;
}

#header .main ul li.contact-link a:hover {
	color: var(--color-accent) !important;
}

#header .main ul li.contact-link a i.fa {
	font-size: 1em;
	display: inline-block;
}

/* Remove text-indent for contact links */
#header .main ul li.contact-link>a {
	text-indent: 0 !important;
	width: auto !important;
}

/* ============================================
   TWO-COLUMN BOX (LAYOUT)
   ============================================ */

.two-column-box {
	display: flex;
	margin: 0 0 3em 0;
	overflow: hidden;
	position: relative;
	min-height: 500px;
	border: solid 1px var(--color-border);
	background: var(--color-text-light);
	align-items: stretch;
}

/* Image columns */
.two-column-box .left-image,
.two-column-box .right-image {
	flex: 1 1 40%;
	background-repeat: no-repeat;
	background-position: top;
	background-size: cover;
}

/* SVG container styling */
.two-column-box .right-image.svg-container {
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: none !important;
}

/* Content columns */
.two-column-box .left-content,
.two-column-box .right-content {
	flex: 1 1 60%;
	padding: 3em;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Typography - Responsive headings */
.two-column-box .left-content h2,
.two-column-box .right-content h2 {
	font-weight: 900;
	font-size: 1.8em;
	margin-bottom: 1em;
	line-height: 1.3;
	word-break: break-word;
	color: var(--color-text-dark) !important;
}

.two-column-box .left-content p,
.two-column-box .right-content p {
	font-family: "Poppins", Helvetica, sans-serif;
	font-size: 0.95em;
	line-height: 1.7;
	margin-bottom: 1em;
	color: var(--color-text-dark);
}

.two-column-box .left-content ul,
.two-column-box .right-content ul {
	margin: 1em 0;
	padding-left: 1.5em;
	color: var(--color-text-dark);
}

.two-column-box .left-content li,
.two-column-box .right-content li {
	margin-bottom: 0.5em;
	line-height: 1.5;
	color: var(--color-text-dark);
}

/* Flip layout */
.two-column-box.flipped {
	flex-direction: row-reverse;
}

/* IMAGE COLUMN (acts like right-image) */
.two-column-box .right-image-row {
	flex: 1 1 40%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	gap: 0.3em;
}

/* EACH IMAGE */
.two-column-box .right-image-row img {
	width: 100%;
	flex: 1;
	object-fit: cover;
	display: block;

	transition: transform 0.4s ease;
}

/* subtle hover effect */
.two-column-box .right-image-row img:hover {
	transform: scale(1.05);
}

/* ============================================
   CUSTOM FOOTER
   ============================================ */

.custom-footer {
	background: var(--color-dark) !important;
	color: var(--color-text-light) !important;
	padding: 6em 3em 3em 3em;
	text-align: left;
	font-family: "Raleway", Helvetica, sans-serif;
}

.custom-footer .footer-content {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 2em;
}

.custom-footer h3,
.custom-footer h4 {
	color: var(--color-text-light) !important;
	margin-bottom: 0.5em;
}

.custom-footer .footer-company {
	max-width: 300px;
}

.footer-logo-svg {
	max-width: 120px;
	height: auto;
	margin-bottom: 1em;
	display: block;
}

.custom-footer .footer-company p {
	line-height: 1.8;
	margin-bottom: 1em;
	color: var(--color-text-light);
}

.custom-footer .footer-links ul,
.custom-footer .footer-social .footer-map ul.icons {
	list-style: none;
	padding: 0;
	margin: 0;
}

.custom-footer .footer-links ul li,
.custom-footer .footer-social .footer-map ul.icons li {
	margin-bottom: 0.5em;
}

.custom-footer .footer-links ul li a {
	color: var(--color-text-muted) !important;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 0.8em;
	letter-spacing: 0.1em;
	transition: color 0.3s ease;
}

.custom-footer .footer-links ul li a:hover,
.custom-footer .footer-social .footer-map ul.icons li a:hover {
	color: var(--color-accent) !important;
}

.custom-footer .footer-social .footer-map ul.icons li a {
	color: var(--color-text-muted) !important;
	font-size: 1.2em;
	transition: color 0.3s ease;
}

.custom-footer p.copyright {
	text-align: center;
	font-size: 0.6em;
	margin-top: 3em;
	color: var(--color-text-muted);
}

.custom-footer p.copyright a {
	color: var(--color-text-muted) !important;
	text-decoration: none;
}

.custom-footer p.copyright a:hover {
	color: var(--color-accent) !important;
}

/* Responsive Footer */
@media screen and (max-width: 980px) {
	.custom-footer .footer-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.custom-footer .footer-company,
	.custom-footer .footer-links,
	.custom-footer .footer-social,
	.custom-footer .footer-map {
		max-width: 100%;
	}

	.footer-logo-svg {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ============================================
   TWO-COLUMN BOX RESPONSIVE
   ============================================ */

@media screen and (max-width: 980px) {

	.two-column-box,
	.two-column-box.flipped {
		flex-direction: column;
	}

	.two-column-box .left-image,
	.two-column-box .right-image,
	.two-column-box .right-content,
	.two-column-box .left-content {
		flex: 1 1 100%;
		min-height: auto;
	}

	.two-column-box .left-image,
	.two-column-box .right-image {
		min-height: 280px !important;
		width: 100% !important;
		background-size: cover !important;
		background-position: top !important;
	}

	.two-column-box .right-image.svg-container {
		min-height: 250px !important;
		padding: 2em;
	}

	.two-column-box.flipped .right-image {
		order: -1 !important;
	}

	.two-column-box .right-content,
	.two-column-box .left-content {
		padding: 2em 1.8em;
	}

	.two-column-box .left-content h2,
	.two-column-box .right-content h2 {
		font-size: 1.6em !important;
	}

	.two-column-box .right-image-row {
		flex-direction: row;
		height: 220px;
	}

	.two-column-box .right-image-row img {
		flex: 1;
	}
}

@media screen and (max-width: 736px) {

h1, h2, h3 {
  line-height: 1.2;
  overflow-wrap: break-word;
}
	/* Contact Links: only show icon */
	#header .main ul li.contact-link a span {
		display: none !important;
	}

	#header .main ul li.contact-link a {
		padding: 0 !important;
		gap: 0 !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 3em !important;
		height: 3em !important;
	}

	#header .main ul li.contact-link a i {
		font-size: 1.2em !important;
		margin: 0 !important;
		display: inline-block !important;
		vertical-align: middle !important;
	}

	#header .main ul li.contact-link {
		display: inline-block !important;
		line-height: 1 !important;
	}

	.two-column-box .left-content h2,
	.two-column-box .right-content h2 {
		font-size: 1.4em !important;
		line-height: 1.3 !important;
	}

	.two-column-box .left-content,
	.two-column-box .right-content {
		padding: 1.5em !important;
	}

	.two-column-box .left-content p,
	.two-column-box .right-content p {
		font-size: 0.85em;
	}

	.two-column-box .left-image,
	.two-column-box .right-image {
		min-height: 200px !important;
	}

	.two-column-box .right-image.svg-container {
		min-height: 200px !important;
		padding: 1em;
	}
}

/* ============================================
   FORM STYLES
   ============================================ */

@keyframes fadeSlideIn {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.just-validate-error-label {
	animation: fadeSlideIn 0.5s ease forwards;
	color: var(--color-error) !important;
	font-size: 13px;
	margin-top: 0.4em;
	display: block;
}

.just-validate-error-field {
	border-color: var(--color-error) !important;
	box-shadow: 0 0 0 1px var(--color-error) !important;
}

.just-validate-success-field {
	border-color: var(--color-accent) !important;
	box-shadow: 0 0 0 1px var(--color-accent) !important;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
textarea {
	width: 100%;
	padding: 0.9em 1em;
	border: 1px solid var(--color-border);
	background: var(--color-text-light);
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-size: 0.9em;
	color: var(--color-dark);
	transition: all 0.2s ease;
	outline: none;
	box-sizing: border-box;
}

input:focus,
textarea:focus {
	border-color: var(--color-accent) !important;
	box-shadow: 0 0 0 1px var(--color-accent) !important;
}

textarea {
	min-height: 150px;
	resize: vertical;
}

.checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 0.6em;
	cursor: pointer;
	font-size: 0.85em;
}

.checkbox-wrapper input[type="checkbox"] {
	opacity: 0;
	position: absolute;
	left: -9999px;
}

.checkbox-custom {
	width: 18px;
	height: 18px;
	border: 1px solid var(--color-border-dark);
	display: inline-block;
	position: relative;
	transition: all 0.2s ease;
}

.checkbox-custom::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 5px;
	width: 5px;
	height: 10px;
	border: solid var(--color-text-light);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: all 0.2s ease;
}

.checkbox-wrapper input:checked+.checkbox-custom {
	background: var(--color-accent) !important;
	border-color: var(--color-accent) !important;
}

.checkbox-wrapper input:checked+.checkbox-custom::after {
	transform: rotate(45deg) scale(1);
}

.control-wrapper {
	margin-bottom: 0.5em;
}

form .field {
	margin-bottom: 1.5em;
}

.form-success {
	text-align: center;
	padding: 2em 1em;
	animation: fadeSlideIn 0.5s ease;
}

.form-success h3 {
	color: var(--color-accent);
	margin-bottom: 0.5em;
}

.form-success p {
	color: var(--color-dark);
	font-size: 0.95em;
}

/* ============================================
   CARD GRID SYSTEM
   ============================================ */

.card-grid {
	display: grid;
	grid-template-columns: repeat(var(--columns, 4), 1fr);
	gap: 2em;
	margin: 3em 0;
}

/* Responsive behavior */
@media screen and (max-width: 980px) {
	.card-grid {
		--columns: 2;
	}
}

@media screen and (max-width: 600px) {
	.card-grid {
		--columns: 1;
	}
}

/* ============================================
   RESPONSIVE CARD GRID
   ============================================ */

/* Base grid (auto responsive) */
.card-grid {
	display: grid;
	gap: 2em;
	margin: 3em 0;

	/* MAGIC: responsive without breakpoints */
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Optional: force exact column count when needed */
.card-grid.cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.card-grid.cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.card-grid.cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

.card-grid.cols-5 {
	grid-template-columns: repeat(5, 1fr);
}

/* Responsive overrides (so forced layouts don't break mobile) */
@media screen and (max-width: 980px) {

	.card-grid.cols-4,
	.card-grid.cols-5 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 736px) {

	.card-grid,
	.card-grid.cols-2,
	.card-grid.cols-3,
	.card-grid.cols-4,
	.card-grid.cols-5 {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   CARD COMPONENT
   ============================================ */

.card {
	background: var(--color-text-light);
	border: 1px solid var(--color-border);
	padding: 2em 1.8em;
	position: relative;
	cursor: pointer;
	border-radius: 6px;

	display: flex;
	flex-direction: column;
	justify-content: flex-start;

	transition:
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.35s ease,
		border-color 0.25s ease;
}

/* Hover effect */
.card:hover {
	border-color: var(--color-accent);
	transform: translateY(-6px);
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

/* Accent top line animation */
.card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: var(--color-accent);
	transition: width 0.35s ease;
}

.card:hover::before {
	width: 100%;
}

/* Content */
.card h3 {
	font-size: 1.2em;
	margin-bottom: 0.6em;
	color: var(--color-text-dark);
	transition: color 0.25s ease;
}

.card:hover h3 {
	color: var(--color-accent);
}

.card p {
	font-size: 0.9em;
	line-height: 1.6;
	color: var(--color-text-muted);
	margin-bottom: 1em;
}

/* Push button to bottom if present */
.card .button {
	margin-top: auto;
}

/* Optional icon */
.card .icon {
	font-size: 1.8em;
	margin-bottom: 0.6em;
	color: var(--color-accent);
}

/* Click feedback */
.card:active {
	transform: translateY(-2px) scale(0.98);
}

/* ============================================
   Tooltip styles
   ============================================ */
.tooltip {
	position: relative;
	display: inline-block;
}

.tooltip .tooltip-text {
	visibility: hidden;
	background-color: var(--color-dark);
	color: var(--color-text-light);
	text-align: center;
	padding: 5px 10px;
	border-radius: 6px;
	position: absolute;
	z-index: 1;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	font-size: 0.8em;
	opacity: 0;
	transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
	visibility: visible;
	opacity: 1;
}

/* Icons styling */
.icons li {
	display: inline-block;
	margin-right: 1em;
}

.icons li a {
	text-decoration: none;
	color: var(--color-text-dark) !important;
	transition: color 0.3s ease;
}

.icons li a:hover {
	color: var(--color-accent) !important;
}

/* Stats icons hover */
.stats li a .icon:before {
	transition: color 0.2s ease;
}

.stats li a:hover .icon:before {
	color: var(--color-accent) !important;
}

/* SVG container for hero */
.svg-container svg {
	max-width: 100%;
	height: auto;
}

/* Force all accent colors consistently */
.accent-color,
.hover-color,
*[class*="hover"]:hover {
	color: var(--color-accent) !important;
}

/* ============================================
   FIX: FOOTER MAP IMAGE
   ============================================ */

.footer-map img {
	width: 100%;
	max-width: 500px;
	/* adjust to taste (200–300px ideal) */
	height: auto;
	display: block;
}

/* center it nicely */
.footer-map {
	display: flex;
	justify-content: center;
	align-items: center;
}


.zeit-hero {
	margin: 1.5rem 0;
	padding: 1.5rem;
	border-radius: 14px;
	background: rgba(204, 143, 80, 0.08);
}

.zeit-title {
	font-size: 3rem;
	font-weight: 700;
	letter-spacing: 0.4rem;
	text-align: center;
	color: #CC8F50;
	margin-bottom: 1rem;
}

.zeit-grid {
	display: grid;
	gap: 0.75rem;
}

.zeit-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.4rem 0;
}

.letter {
	width: 2.2rem;
	height: 2.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	border-radius: 50%;
	background: #CC8F50;
	color: white;
}

.text {
	font-size: 1.05rem;
}

.zeit-heart {
	margin-top: 1rem;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: #CC8F50;
	font-size: 1.1rem;
}

.scroll-top {
	position: fixed;
	bottom: 20px;
	right: 20px;

	width: 52px;
	height: 52px;

	border: none;
	border-radius: 50%;
	background: #CC8F50;
	cursor: pointer;

	display: flex;
	align-items: center;
	justify-content: center;

	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);

	transition: all 0.3s ease;
	z-index: 9999;
}

.scroll-top.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* IMPORTANT: proper centering context */
.scroll-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
}

/* SVG fills button perfectly */
.progress-ring {
	position: absolute;
	width: 100%;
	height: 100%;
}

/* background circle */
.progress-ring-bg {
	fill: none;
	stroke: rgba(255, 255, 255, 0.25);
	stroke-width: 3;
}

/* animated ring */
.progress-ring-fill {
	fill: none;
	stroke: white;
	stroke-width: 3;
	stroke-linecap: round;

	stroke-dasharray: 113;
	stroke-dashoffset: 113;

	transition: stroke-dashoffset 0.1s linear;
}

/* centered arrow */
.arrow {
	position: relative;
	font-size: 18px;
	color: white;
	font-weight: bold;
	z-index: 2;
}