/* =====================================================================
   Artner Bau GmbH – style.css (Version 2, Design "E · Original, kräftiger")
   ===================================================================== */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/open-sans/open-sans-light.woff') format('woff'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/open-sans/open-sans-regular.woff') format('woff'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/open-sans/open-sans-semibold.woff') format('woff'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/open-sans/open-sans-bold.woff') format('woff'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/open-sans/open-sans-extrabold.woff') format('woff'); }

/* ---------- Farben & Grundwerte ---------- */
:root {
	--rot: #D32F2F;          /* Buttons, Flächen mit weißer Schrift */
	--rot-hell: #F44336;     /* Akzentlinien, Icons */
	--rot-band: #C62828;     /* Kontaktband */
	--dunkel: #1F1F1F;       /* Menü, Startbereich */
	--fuss: #2F2F2F;         /* Fußbereich */
	--grau: #F1F1F1;         /* jeder zweite Abschnitt */
	--linie: #E0E0E0;
	--text: #1A1A1A;
	--text-2: #555555;
	--max: 1280px;
	--menue-hoehe: 78px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
	margin: 0;
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
	font-size: 17px;
	line-height: 1.7;
	color: var(--text);
	background: #FFFFFF;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #000000; }
a:hover { color: var(--rot); }
h1, h2, h3 { line-height: 1.25; }

[id] { scroll-margin-top: calc(var(--menue-hoehe) + 8px); }

.container { max-width: var(--max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.abschnitt { padding: 96px 0; }
.abschnitt--grau { background: var(--grau); }

.skip-link { position: absolute; left: -9999px; top: 0; background: #FFFFFF; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 3px solid var(--rot-hell); outline-offset: 2px; }

/* ---------- Überschrift mit roter Linie ---------- */
.titel {
	margin: 0 0 8px;
	font-size: 34px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.titel::after {
	content: "";
	display: block;
	width: 60px;
	height: 5px;
	background: var(--rot-hell);
	margin: 14px 0 36px;
}
.titel--zentriert { text-align: center; }
.titel--zentriert::after { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 48px; padding: 12px 24px;
	font-weight: 600; text-decoration: none;
	border: 2px solid transparent;
	transition: background .2s, color .2s, border-color .2s;
}
.btn--rot { background: var(--rot); color: #FFFFFF; }
.btn--rot:hover { background: #B71C1C; color: #FFFFFF; }
.btn--rahmen { border-color: #FFFFFF; color: #FFFFFF; }
.btn--rahmen:hover { background: #FFFFFF; color: var(--dunkel); }
.btn--dunkel { background: #3F3F3F; color: #FFFFFF; }
.btn--dunkel:hover { background: #000000; color: #FFFFFF; }
.btn--dunkel::before {
	content: ""; width: 0; height: 0;
	border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid var(--rot-hell);
	transition: transform .3s ease-out;
}
.btn--dunkel:hover::before { transform: translateX(4px); }

/* =====================================================================
   Menü
   ===================================================================== */
.kopf {
	position: sticky; top: 0; z-index: 50;
	background: var(--dunkel);
	border-bottom: 4px solid var(--rot);
}
.kopf__innen {
	max-width: var(--max); margin: 0 auto; padding: 0 32px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: calc(var(--menue-hoehe) - 4px);
}
.kopf__logo { display: block; padding: 10px 0; }
.kopf__logo img { height: 52px; width: auto; }

.menue { display: flex; flex-wrap: wrap; }
.menue a {
	display: block;
	color: #FFFFFF; text-decoration: none;
	text-transform: uppercase; letter-spacing: 0.12em;
	font-size: 14px; font-weight: 600;
	padding: 24px 16px 20px;
	border-bottom: 4px solid transparent;
	margin-bottom: -4px;
}
.menue a:hover, .menue a[aria-current="page"] { border-bottom-color: var(--rot-hell); color: #FFFFFF; }

.menue-knopf {
	display: none;
	background: transparent; border: 0; color: #FFFFFF; cursor: pointer;
	width: 48px; height: 48px; padding: 12px;
}
.menue-knopf span { display: block; height: 3px; background: #FFFFFF; margin: 5px 0; transition: transform .25s, opacity .25s; }
.menue-knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menue-knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1023px) {
	.menue-knopf { display: block; }
	.menue {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column;
		background: var(--dunkel);
		border-bottom: 4px solid var(--rot);
		padding: 8px 0 16px;
	}
	.menue.offen { display: flex; }
	.menue a { padding: 14px 32px; border-bottom: 0; margin: 0; border-left: 4px solid transparent; }
	.menue a:hover, .menue a[aria-current="page"] { border-left-color: var(--rot-hell); }
}

/* =====================================================================
   Startbereich (geteilt: dunkler Block | Teamfoto)
   ===================================================================== */
.start { display: flex; flex-wrap: wrap; background: var(--dunkel); color: #FFFFFF; }
.start__text {
	flex: 1 1 520px; min-width: 0;
	padding: 88px max(32px, 5vw);
	display: flex; flex-direction: column; justify-content: center;
}
.start__vorzeile { font-size: 16px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 300; color: #DADADA; }
.start h1 {
	margin: 6px 0 0;
	font-size: clamp(38px, 4.6vw, 64px);
	font-weight: 800; line-height: 1.05;
	text-transform: uppercase; letter-spacing: 0.02em;
}
.start h1::after { content: ""; display: block; width: 80px; height: 6px; background: var(--rot-hell); margin: 22px 0 28px; }
.start__lead { margin: 0 0 12px; font-size: 20px; font-weight: 300; max-width: 560px; }
.start__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.start__bild { flex: 1.3 1 560px; min-width: 0; min-height: 420px; }
.start__bild img { width: 100%; height: 100%; object-fit: cover; }

/* Kopf der Unterseiten */
.seitenkopf { background: var(--dunkel); color: #FFFFFF; padding: 64px 0 56px; }
.seitenkopf h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.seitenkopf h1::after { content: ""; display: block; width: 60px; height: 5px; background: var(--rot-hell); margin-top: 16px; }
.seitenkopf p { margin: 18px 0 0; max-width: 720px; color: #DADADA; font-weight: 300; font-size: 19px; }
.brotkrumen { font-size: 14px; color: #BDBDBD; margin-bottom: 14px; }
.brotkrumen a { color: #FFFFFF; }

/* =====================================================================
   Leistungen – Kacheln
   ===================================================================== */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.kachel {
	background: #FFFFFF; padding: 28px 20px; text-align: center;
	transition: transform .25s ease, box-shadow .25s ease;
}
.kachel:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.kachel__icon { width: 76px; height: 76px; display: inline-flex; align-items: center; justify-content: center; }
.kachel__icon svg { width: 38px; height: 38px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kachel__icon--rot { background: var(--rot); } .kachel__icon--rot svg { stroke: #FFFFFF; }
.kachel__icon--schwarz { background: var(--dunkel); } .kachel__icon--schwarz svg { stroke: #FFFFFF; }
.kachel__icon--rahmen-rot { border: 2px solid var(--rot); } .kachel__icon--rahmen-rot svg { stroke: var(--rot); }
.kachel__icon--rahmen-schwarz { border: 2px solid var(--dunkel); } .kachel__icon--rahmen-schwarz svg { stroke: var(--dunkel); }
.kachel h3 { margin: 16px 0 0; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.unter-kacheln { margin-top: 40px; }

/* =====================================================================
   Text + Bild (Über uns usw.)
   ===================================================================== */
.zweispaltig { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; }
.zweispaltig__bild { flex: 1 1 420px; min-width: 0; position: relative; }
.zweispaltig__text { flex: 1.1 1 440px; min-width: 0; }
.bild-akzent::before {
	content: ""; position: absolute; left: -16px; top: -16px;
	width: 45%; height: 45%; background: var(--rot);
}
.bild-akzent img { position: relative; }
.name { margin: 0; font-size: 22px; font-weight: 700; }
.funktion { margin: 0 0 20px; color: var(--text-2); }
.siegel { display: flex; gap: 18px; align-items: center; margin: 28px 0; padding-top: 24px; border-top: 1px solid var(--linie); font-size: 15px; color: #444444; }
.siegel img { width: 150px; flex: none; }

/* =====================================================================
   Aktuelle Bauvorhaben – Karten
   ===================================================================== */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px; }
.karte { background: #FFFFFF; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.karte:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.karte__bild { display: block; aspect-ratio: 16 / 7; overflow: hidden; background: var(--grau); }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; }
.karte__text { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.karte h3 { margin: 0 0 10px; font-size: 24px; font-weight: 700; }
.karte p { margin: 0 0 18px; }
.status { margin-top: auto; align-self: flex-start; background: var(--dunkel); color: #FFFFFF; font-size: 14px; padding: 4px 12px; }

/* =====================================================================
   Referenzen – Galerie
   ===================================================================== */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.galerie figure { margin: 0; position: relative; overflow: hidden; }
.galerie a { display: block; color: #FFFFFF; text-decoration: none; }
.galerie img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s ease; }
.galerie a:hover img { transform: scale(1.05); }
.galerie figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.72); color: #FFFFFF;
	padding: 10px 14px; font-size: 15px; line-height: 1.4;
}
.galerie figcaption strong { font-weight: 700; }

/* Referenzen-Unterseite: Gruppen */
.referenz { padding: 40px 0; border-top: 1px solid var(--linie); }
.referenz:first-of-type { border-top: 0; padding-top: 0; }
.referenz h2 { margin: 0 0 20px; font-size: 24px; font-weight: 700; }
.referenz h2 span { font-weight: 400; color: var(--text-2); }
.referenz .galerie img { aspect-ratio: 4 / 3; }

/* =====================================================================
   Kontaktband & Fuß
   ===================================================================== */
.kontaktband { background: var(--rot-band); color: #FFFFFF; }
.kontaktband__innen { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }
.kontaktband h2 { margin: 0 0 10px; font-size: 34px; font-weight: 800; text-transform: uppercase; }
.kontaktband p { margin: 0; font-size: 19px; }
.kontaktband__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.kontaktband__tel { background: #FFFFFF; color: #B71C1C; text-decoration: none; font-weight: 800; font-size: 22px; padding: 12px 26px; display: inline-flex; align-items: center; min-height: 48px; }
.kontaktband__tel:hover { background: var(--dunkel); color: #FFFFFF; }

.fuss { background: var(--fuss); color: #FFFFFF; font-size: 15px; line-height: 1.9; }
.fuss__spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.fuss h2 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px dotted #FFFFFF; font-size: 16px; font-weight: 700; }
.fuss a { color: #FFFFFF; text-decoration: none; }
.fuss a:hover { color: var(--rot-hell); }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss__links a::before { content: "› "; color: var(--rot-hell); }
.fuss__unten { border-top: 1px solid #444444; padding-top: 18px; padding-bottom: 18px; color: #BDBDBD; font-size: 14px; }

/* =====================================================================
   Textseiten (Leistungen-Details, Impressum, Datenschutz …)
   ===================================================================== */
.textseite { max-width: 860px; }
.textseite h2 { margin: 48px 0 16px; font-size: 24px; font-weight: 700; }
.textseite h2:first-child { margin-top: 0; }
.textseite h3 { margin: 28px 0 10px; font-size: 19px; font-weight: 700; }
.textseite p { margin: 0 0 16px; }
.textseite ul { margin: 0 0 16px; padding-left: 22px; }
.textseite li { margin-bottom: 6px; }
.textseite hr { border: 0; border-top: 1px solid var(--linie); margin: 48px 0; }

.haken { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 32px; font-weight: 600; }
.haken li { position: relative; padding-left: 30px; }
.haken li::before {
	content: ""; position: absolute; left: 2px; top: 6px;
	width: 7px; height: 13px; border: solid var(--rot-hell); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

.merkmale { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 24px 0; }
.merkmal { background: var(--grau); padding: 22px; border-top: 4px solid var(--rot-hell); }
.merkmal strong { display: block; margin-bottom: 6px; }
.merkmal span { color: var(--text-2); font-size: 16px; }

.baubeschreibung details { border-top: 1px solid var(--linie); }
.baubeschreibung details:last-of-type { border-bottom: 1px solid var(--linie); }
.baubeschreibung summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.baubeschreibung summary::-webkit-details-marker { display: none; }
.baubeschreibung summary::after { content: "+"; color: var(--rot); font-size: 24px; line-height: 1; }
.baubeschreibung details[open] summary::after { content: "–"; }
.baubeschreibung details ul { margin-bottom: 20px; }
.hinweis { font-size: 15px; color: var(--text-2); font-style: italic; }

.adresse-liste { list-style: none; padding: 0 !important; }

/* Team-Unterseite */
.team-bilder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; margin: 24px 0 40px; }
.team-bilder img { width: 100%; height: 100%; object-fit: cover; }
.team-bilder--breit { grid-template-columns: 1fr; }

/* Projekte-Unterseite */
.projekt { padding: 0 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--linie); }
.projekt:last-child { border-bottom: 0; margin-bottom: 0; }
.projekt h2 { margin: 0 0 14px; font-size: 28px; }
.projekt__fakten { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.projekt__fakten li { background: var(--grau); padding: 6px 14px; font-size: 15px; font-weight: 600; }
.projekt__bild { display: block; margin-top: 24px; border: 1px solid var(--linie); }

/* Anfahrt / Karte */
.karte-einwilligung { background: var(--grau); padding: 32px; margin: 24px 0; }
.karte-einwilligung p { margin: 0 0 18px; }
.karte-einwilligung button { font: inherit; cursor: pointer; border: 0; }
.karte-rahmen { position: relative; aspect-ratio: 4 / 3; max-height: 520px; width: 100%; }
.karte-rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.zurueck { display: inline-block; margin-top: 32px; font-weight: 600; }

/* =====================================================================
   Lightbox
   ===================================================================== */
.lightbox {
	position: fixed; inset: 0; z-index: 200;
	background: rgba(0,0,0,0.9);
	display: none; align-items: center; justify-content: center;
	padding: 56px 72px;
}
.lightbox.offen { display: flex; }
.lightbox figure { margin: 0; text-align: center; color: #FFFFFF; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); margin: 0 auto; box-shadow: 0 8px 40px rgba(0,0,0,.6); }
.lightbox figcaption { margin-top: 14px; font-size: 16px; }
.lightbox button {
	position: absolute; background: transparent; border: 0; color: #FFFFFF; cursor: pointer;
	width: 56px; height: 56px; font-size: 40px; line-height: 1;
}
.lightbox button:hover { color: var(--rot-hell); }
.lightbox__zu { top: 12px; right: 16px; }
.lightbox__zurueck { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__weiter { right: 8px; top: 50%; transform: translateY(-50%); }

/* =====================================================================
   Kleine Bildschirme
   ===================================================================== */
@media (max-width: 700px) {
	:root { --menue-hoehe: 68px; }
	body { font-size: 16px; }
	.container, .kopf__innen { padding-left: 20px; padding-right: 20px; }
	.kontaktband__innen { padding-top: 48px; padding-bottom: 48px; gap: 24px; }
	.kontaktband__knoepfe { width: 100%; }
	.kontaktband__knoepfe a { flex: 1 1 100%; justify-content: center; }
	.fuss__spalten { padding-top: 40px; padding-bottom: 24px; gap: 24px; }
	.kopf__logo img { height: 44px; }
	.abschnitt { padding: 64px 0; }
	.titel { font-size: 28px; }
	.start__text { padding: 56px 20px; }
	.start__bild { min-height: 260px; flex-basis: 100%; }
	.bild-akzent::before { left: -8px; top: -8px; }
	.kontaktband h2 { font-size: 28px; }
	.lightbox { padding: 56px 12px; }
	.siegel { flex-direction: column; align-items: flex-start; }
}
