/*
Theme Name: ARCHEOS Neu
Theme URI: https://archeos.ch
Author: ARCHEOS
Version: 1.0
Text Domain: archeos
*/

/* =========================================
   ZENTRALE MASSE
========================================= */

:root {
	--archeos-content-width: 820px;
	--archeos-gold: #d49a1f;
	--archeos-dark: #1b1204;
	--archeos-grey: #464646;
}

/* =========================================
   RESET
========================================= */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	background: #ffffff;
	color: #222222;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.5;
	overflow-x: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

/* =========================================
   GRUNDLAYOUT
========================================= */

.site-content {
	width: 100%;
	margin: 0 auto;
	background: #ffffff;
}

/* =========================================
   HEADER
========================================= */

.site-header {
	position: relative;
	width: 100%;
	background: #ffffff;
	min-height: 86px;
}

/* Goldene Linie über gesamte Breite */

.site-header::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 7px;
	background: var(--archeos-gold);
	z-index: 1;
}

/* Schwarzer Navigationsbalken über gesamte Breite */

.site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 7px;
	height: 52px;
	background: var(--archeos-dark);
	z-index: 1;
}

/* Gemeinsame Achse für Logo und Inhalt */

.header-inner {
	position: relative;
	z-index: 2;

	width: var(--archeos-content-width);
	max-width: var(--archeos-content-width);
	margin: 0 auto;

	display: grid;
	grid-template-columns: 135px 1fr;
	align-items: start;

	min-height: 86px;
}

/* =========================================
   LOGO
========================================= */

.site-logo {
	width: 135px;
	min-height: 86px;

	background: #ffffff;

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

	padding: 8px 0 0 0;
}

.site-logo .custom-logo-link {
	display: block;
	width: 110px;
	max-width: 110px;
}

.site-logo img,
.custom-logo {
	width: 110px !important;
	max-width: 110px !important;
	height: auto !important;
	display: block;
}

/* =========================================
   NAVIGATION
========================================= */

.main-navigation {
	background: transparent;
	border: none;

	min-height: 59px;

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

	padding: 7px 0 0 0;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation > ul,
.main-navigation .menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 17px;
	flex-wrap: nowrap;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;

	color: #ffffff;

	font-size: 9px;
	font-weight: 400;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	white-space: nowrap;

	padding: 13px 0;
}

.main-navigation a:hover {
	color: var(--archeos-gold);
}

/* Untermenüs nur bei Hover */

.main-navigation ul ul,
.main-navigation .sub-menu,
.main-navigation .children {
	display: none;

	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1000;

	min-width: 175px;

	background: var(--archeos-dark);

	padding: 10px 12px;
}

.main-navigation li:hover > ul,
.main-navigation li:hover > .sub-menu,
.main-navigation li:hover > .children {
	display: block;
}

.main-navigation ul ul a,
.main-navigation .sub-menu a,
.main-navigation .children a {
	font-size: 9px;
	line-height: 1.35;
	padding: 5px 0;
	white-space: nowrap;
}

/* =========================================
   CLAIM / LEITSATZ
========================================= */

.site-content > h1:first-child,
.site-content > h2:first-child,
.site-content > .wp-block-heading:first-child {
	width: var(--archeos-content-width);
	max-width: var(--archeos-content-width);

	margin: 0 auto;
	padding: 16px 0 15px 0;

	background: #ffffff;

	text-align: center;

	color: #8f8f8f;

	font-size: 13px;
	font-weight: 300;
	letter-spacing: 3px;
	line-height: 1.4;
	text-transform: uppercase;
}

/* =========================================
   MITTELTEIL / 6 KACHELN
========================================= */

.archeos-home-section {
	background: var(--archeos-grey);

	width: 100%;
	max-width: none;

	margin: 0;
	padding: 26px 0 22px 0;

	box-sizing: border-box;
}

/* Kachelreihen exakt auf gleicher Achse wie Logo */

.archeos-home-section .wp-block-columns {
	width: var(--archeos-content-width) !important;
	max-width: var(--archeos-content-width) !important;

	display: flex;
	gap: 14px;

	margin: 0 auto 24px auto !important;
}

.archeos-home-section .wp-block-columns:last-child {
	margin-bottom: 0 !important;
}

/* Karten */

.archeos-home-section .wp-block-column {
	background: #ffffff;
	overflow: hidden;
	flex: 1;
	min-width: 0;
}

/* Bilder: altes Verhältnis 306 × 168 */

.archeos-home-section figure,
.archeos-home-section .wp-block-image {
	margin: 0 !important;
}

.archeos-home-section img {
	width: 100%;
	aspect-ratio: 306 / 168;
	height: auto;
	object-fit: cover;
	display: block;

	filter: sepia(20%) saturate(85%);
}

/* Kartentitel */

.archeos-home-section h2,
.archeos-home-section h3 {
	margin: 13px 14px 11px 14px;

	color: var(--archeos-gold);

	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.35px;
	text-transform: uppercase;
	text-align: left;
	line-height: 1.35;
}

/* Kartentext */

.archeos-home-section p {
	margin: 0 14px 18px 14px;

	color: #222222;

	font-size: 9px;
	line-height: 1.45;
}

.archeos-home-section a,
.archeos-home-section a:visited,
.archeos-home-section a:hover,
.archeos-home-section a:focus {
	color: var(--archeos-gold);
	text-decoration: none;
}

/* =========================================
   AKTUELLE PROJEKTE
========================================= */

.archeos-projects,
h2.archeos-projects,
.site-content > h2:nth-of-type(2),
.site-content > .wp-block-heading:nth-of-type(2) {
	width: var(--archeos-content-width);
	max-width: var(--archeos-content-width);

	margin: 38px auto 20px auto;
	padding: 0 0 10px 0;

	border-bottom: 1px solid #d6d6d6;

	color: #222222;

	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.35px;
	text-transform: uppercase;
	text-align: left;
	line-height: 1.3;
}

/* Neueste Beiträge / Projekte */

.wp-block-latest-posts,
.wp-block-query .wp-block-post-template {
	width: var(--archeos-content-width);
	max-width: var(--archeos-content-width);

	margin: 0 auto 54px auto;
	padding: 0;

	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;

	list-style: none;
}

/* Einzelne Projektkarte */

.wp-block-latest-posts li,
.wp-block-query .wp-block-post {
	background: transparent;
}

/* Projektbilder */

.wp-block-latest-posts img,
.wp-block-query .wp-block-post-featured-image img {
	width: 100%;
	height: 95px;
	object-fit: cover;
	margin: 0 0 9px 0;
	display: block;
}

/* Projekttitel */

.wp-block-latest-posts a,
.wp-block-query .wp-block-post-title a {
	color: var(--archeos-gold);

	font-size: 9px;
	font-weight: 400;
	line-height: 1.35;
	text-transform: uppercase;
	text-decoration: none;

	display: block;
	margin-bottom: 7px;
}

/* Datum / Auszug */

.wp-block-latest-posts time,
.wp-block-latest-posts .wp-block-latest-posts__post-date,
.wp-block-latest-posts .wp-block-latest-posts__post-excerpt,
.wp-block-query .wp-block-post-excerpt {
	color: #333333;

	font-size: 8px;
	line-height: 1.4;
}

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

.site-footer {
	background: #1d1d1d;

	width: 100%;

	margin: 0;
	padding: 32px 0;

	color: #888888;

	font-size: 9px;
}

.footer-inner {
	width: var(--archeos-content-width);
	max-width: var(--archeos-content-width);

	margin: 0 auto;

	text-align: left;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

	:root {
		--archeos-content-width: calc(100vw - 48px);
	}

	.header-inner {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.site-header::before,
	.site-header::after {
		display: none;
	}

	.site-logo {
		width: 100%;
		min-height: auto;
		justify-content: center;
		padding: 22px 0;
	}

	.main-navigation {
		background: var(--archeos-dark);
		border-top: 8px solid var(--archeos-gold);

		min-height: auto;

		padding: 16px 20px;
		justify-content: center;
	}

	.main-navigation > ul,
	.main-navigation .menu {
		flex-wrap: wrap;
		justify-content: center;
		gap: 16px;
	}

	.archeos-home-section {
		padding: 24px;
	}

	.archeos-home-section .wp-block-columns {
		flex-direction: column;
	}

	.archeos-home-section img {
		height: auto;
	}

	.wp-block-latest-posts,
	.wp-block-query .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {

	.site-logo img,
	.custom-logo {
		width: 130px !important;
		max-width: 130px !important;
	}

	.main-navigation > ul,
	.main-navigation .menu {
		flex-direction: column;
		align-items: center;
	}

	.site-content > h1:first-child,
	.site-content > h2:first-child,
	.site-content > .wp-block-heading:first-child {
		font-size: 12px;
		letter-spacing: 2px;
	}

	.wp-block-latest-posts,
	.wp-block-query .wp-block-post-template {
		grid-template-columns: 1fr;
	}
}