/* ===================================
 * GENERELT
 * =================================== */
*{
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Arial, sans-serif;
	color: #222222;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ===================================
 * HEADER
 * =================================== */
header {
	background-color: #e6e9ec;
	padding: 20px 40px;
}

.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

header h1 {
	margin: 0 0 15px 0;
}

.logo {
	width: 300px;
	height: auto;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding-right: 25px;
}

.contact-info a {
	color: #222222;
	text-decoration: none;
	/* transition: color 0.2s; */
	position: relative;
}

.contact-info a::after {
	content: "";
	position: absolute;
	height: 2px;
	background-color: #222222;
	width: 0;
	left: 50%;
	bottom: -5px;
	transition: width 0.25s, left 0.25s;
}

.contact-info a:hover::after,
.contact-info a.active::after {
	width: 100%;
	left: 0;
}

/*.contact-info a:hover {
	color: #666666;
}*/

.contact-info p {
	margin: 0;
}

.notice {
	width: 600px;
	height: auto;
	margin: 0 auto;
	text-align: center;
	border-radius: 10px;
	outline: 1px red solid;
	padding: 20px;
}

/* ===================================
 * NAVIGATION
 * =================================== */
nav {
	display: flex;
	gap: 30px;
}

nav a {
	color: #222222;
	text-decoration: none;
	/*transition: color 0.2s;*/
	position: relative;
}

nav a::after {
	content: "";
	position: absolute;
	height: 2px;
	background-color: #222222;
	width: 0;
	left: 50%;
	bottom: -5px;
	transition: width 0.25s, left 0.25s;
}

nav a:hover::after,
nav a.active::after {
	width: 100%;
	left: 0;
}

/* ===================================
 * HOVEDINDHOLD
 * =================================== */
main {
	padding: 40px;
	max-width: 1200px;
	margin: 0 auto;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.hero {
	max-width: 800px;
	padding: 30px;
	margin: 0 auto;
	background-color: #f4f5f6;
	border-radius: 8px;
	text-align: center;
}

section h2 {
	margin: 0 0 15px 0;
	font-size: 32px;
}

.intro {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
	margin: 0;
}

section h3 {
	margin: 0 0 10px 0;
}

section p {
	margin: 0 0 25px 0;
}

.services-container {
	display: flex;
	gap: 30px;
	/*outline: 1px red solid*/
	/*justify-content: space-between;*/
}

.services-container > div {
	flex: 1;
	width: 300px;
	/*outline: 1px blue solid;*/
	background-color: #f4f5f6;
	padding: 20px;
	border-radius: 8px;
}

.services-container p {
	margin: 0;
}

/* ---------- Projekter ---------- */
.project {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.project-image .slide {
	/*width: 100%*/;
	/*aspect-ratio: 4 / 3;*/
	/*object-fit: contain;*/
	position: absolute;
	top: 0;
	height: 100%;
	display: none;
	/*border-radius: 20px;*/
}

.project-image .slide.landscape {
	width: 100%;
	left: 0;
}

.project-image .slide.portrait {
	width: auto;
	left: 50%;
	transform: translateX(-50%);
}

.project-image .slide img {
	height: 100%;
	width: auto;
	display: block;
	border-radius: 20px;
	cursor: zoom-in;
}

.project-image .slide.active {
	display: block;
}

.project-image {
	position: relative;
	aspect-ratio: 4 / 3;
	/*border-radius: 10px;*/
	/*overflow: hidden;*/
}

.project-image button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	
	background-color: rgba(0,0,0,0.4);
	color: white;
	border: none;
	font-size: 24px;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	/*padding: 10px 14px;*/
	cursor: pointer;
	
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-image .prev {
	left: 10px;
}

.project-image .next {
	right: 10px;
}

.project-reverse .project-text {
	grid-column: 2;
	grid-row: 1;
}

.project-reverse .project-image {
	grid-column: 1;
	grid-row: 1;
}

.divider {
	border-top: 2px solid #aaaaaa;
	padding-top: 40px;
}

/* ---------- Kontakt ---------- */
.contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.contact-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 20px;
}

.contact-details p {
	margin: 0 0 10px 0;
}

.contact-details a {
	color: #222222;
	text-decoration: none;
}


/* ---------- Kontaktformular ---------- */
.form-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 20px;
	/*outline: 2px solid red;*/
}

.form-group input, .form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #aaaaaa;
	border-radius: 5px;
	font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
	outline: 2px solid #888888;
}

#form-success {
	display: none;
	padding: 12px;
	margin-bottom: 20px;
	border: 1px solid #aaaaaa;
	border-radius: 5px;
}


.contact-form {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
}

.contact-form button {
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	background-color: #e6e9ec;
	color: #222222;
}

.contact-form button:hover {
	background-color: #d4d8dc;
}

.website-field {
	display: none;
}

/* ---------- Map ---------- */
.map {
	width: 100%;
	height: 1200px;
	margin: 0 auto;
}

.map iframe {
	width: 100%;
	height: 450px;
	border: 0;
}

.map h2 {
	text-align: center;
}


/* ===================================
 * FOOTER
 * =================================== */
footer {
	background-color: #e6e9ec;
	padding: 20px 40px;
}

footer p {
	margin: 0;
}

/* ===================================
 * RESPONSIV DESIGN
 * =================================== */
@media (max-width:750px) {
	nav {
		flex-direction: column;
		gap: 10px;
	}
	.services-container {
		flex-direction: column;
	}
	.header-top {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	
	.project {
		grid-template-columns: 1fr;
	}
	
	.project-reverse .project-text,
	.project-reverse .project-image {
		grid-column: 1;
		grid-row: auto;
	}
	
	.contact {
		grid-template-columns: 1fr;
	}
}
