/*
Theme Name: GS Tief- und Leitungsbau
Author: MO-MENTE
Author URI: https://mo-mente.de
Description: Schlankes Theme für GS Tief- und Leitungsbau. Schwarz, Weiß, Orange. Kanten statt Rundungen. SEO/GEO, Google-Ads-Einwilligung und Anfrageformular ohne Plugins.
Version: 0.1.0
Text Domain: gs-tiefbau
*/

:root {
	--black: #1b1b1b;
	--ink: #1f2225;
	--dark: #222222;
	--dark-2: #2b2b2b;
	--contour: rgba(255,255,255,.11);
	--white: #fff;
	--orange: #e97a1e;
	--orange-dark: #b85a0c;
	--ease: .35s cubic-bezier(.25,.1,.25,1);
	--muted: #f3f3f1;
	--line: #dedede;
	--text: #2a2a2a;
	--soft: #6b6b6b;
	--head: Bahnschrift, "DIN Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1200px;
	--gap: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body { margin: 0; font: 17px/1.65 var(--body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--head); font-stretch: 80%; font-weight: 700; line-height: 1.05; color: var(--ink); margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(38px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 24px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.narrow { max-width: 820px; }
.small { font-size: 14px; color: var(--soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--orange); color: var(--ink); padding: 8px 14px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--orange); color: var(--ink); border: 2px solid var(--orange); padding: 12px 22px; font: 700 15px/1 var(--body); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; cursor: pointer; transition: background-color var(--ease), border-color var(--ease), color var(--ease); }
.btn:hover { background: #f5964a; border-color: #f5964a; color: var(--ink); }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: #3a3a3a; color: var(--white); border-color: #3a3a3a; }
.arrow { width: 18px; height: 18px; transition: transform .15s; }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--hh); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 54px; width: auto; transition: height .25s; }
.header-inner { transition: height .25s; }
body { --hh: 96px; }
body.is-scrolled { --hh: 68px; }
.is-scrolled .brand img { height: 40px; }
.nav { display: flex; align-items: center; gap: 28px; }
.menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 3px solid transparent; transition: border-color var(--ease), color var(--ease); }
.menu a:hover, .menu .current-menu-item a { border-bottom-color: var(--orange); }
.nav-toggle { display: none; }

/* ---------- Bild-Platzhalter ---------- */
.ph { position: relative; background: #d8d8d5 repeating-linear-gradient(135deg, transparent 0 22px, rgba(0,0,0,.045) 22px 24px); display: flex; align-items: flex-end; overflow: hidden; }
.ph span { font: 600 12px/1.3 var(--body); text-transform: uppercase; letter-spacing: .08em; color: #555; background: rgba(255,255,255,.85); padding: 6px 10px; margin: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); color: var(--white); overflow: hidden; }
.hero-inner { position: relative; padding: clamp(80px, 13vw, 160px) var(--gap) clamp(90px, 12vw, 150px); max-width: var(--wrap); }
.hero h1 { color: var(--white); max-width: 12em; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 55%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(34,34,34,.92) 0%, rgba(34,34,34,.78) 42%, rgba(34,34,34,.15) 78%); }
.hero .lead { max-width: 640px; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-line { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 10px; background: var(--orange); }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }

/* ---------- Feine Kontur auf dunklen Flächen ---------- */
.hero::before, .page-hero::before, .section-dark::before, .site-footer::before, .contact-card::before {
	content: ""; position: absolute; inset: 14px; z-index: 1; pointer-events: none;
	border: 1px solid var(--contour);
	background:
		linear-gradient(var(--orange), var(--orange)) top left / 22px 2px no-repeat,
		linear-gradient(var(--orange), var(--orange)) top left / 2px 22px no-repeat,
		linear-gradient(var(--orange), var(--orange)) bottom right / 22px 2px no-repeat,
		linear-gradient(var(--orange), var(--orange)) bottom right / 2px 22px no-repeat;
}
.contact-card::before { inset: 10px; }
.hero-inner, .page-hero .wrap, .section-dark .wrap, .site-footer .wrap, .contact-card > * { position: relative; z-index: 2; }
.hero::before { bottom: 24px; }

/* ---------- Fakten ---------- */

/* ---------- Abschnitte ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-dark { position: relative; background: var(--dark); color: rgba(255,255,255,.8); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-muted { background: var(--muted); }
.section-head { margin-bottom: 44px; max-width: 720px; }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; }
.services-full { grid-template-columns: repeat(4, 1fr); }
.services-full .service h3 { font-size: 22px; }
.service.service-cta { background: var(--orange); border-top-color: var(--ink); color: var(--ink); }
.service.service-cta .service-body { padding: 22px 24px 26px; }
.service.service-cta h3, .service.service-cta p, .service.service-cta .more { color: var(--ink); }
.service.service-cta { transition: background-color var(--ease); }
.service.service-cta:hover { background: #f5964a; border-top-color: var(--ink); }
.service.service-cta:hover .more { color: var(--ink); }
.service { display: flex; flex-direction: column; border-top: 4px solid var(--ink); text-decoration: none; color: var(--text); transition: border-color var(--ease); }
.service:hover { border-top-color: var(--orange); }
.service .more { transition: color var(--ease); }
.service:hover .more { color: var(--orange-dark); }
.service-body { padding: 20px 0 4px; display: flex; flex-direction: column; flex: 1; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--soft); font-size: 16px; margin-bottom: 18px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }

/* ---------- Ablauf ---------- */

/* ---------- Split, Listen ---------- */
.photo { display: block; width: 100%; height: auto; }
.media-tall .photo, .media-wide .photo, .gallery .photo { width: 100%; height: 100%; object-fit: cover; }
.media-tall { aspect-ratio: 4/5; overflow: hidden; }
.media-wide { aspect-ratio: 3/2; overflow: hidden; }
.section-dark .media-wide { outline: 1px solid var(--contour); outline-offset: 10px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 19vw, 290px); gap: 4px; background: var(--white); }
.gallery figure { margin: 0; overflow: hidden; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(6) { grid-column: span 2; }
.contact-side { display: flex; flex-direction: column; }
.contact-photo { aspect-ratio: 3/2; object-fit: cover; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; }
.checklist li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 12px; background: var(--orange); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid #cfcfcc; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 700; font-size: 18px; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 3px; background: var(--ink); box-shadow: none; }
.faq summary::before { content: ""; position: absolute; right: 12.5px; top: calc(50% - 6.5px); width: 3px; height: 16px; background: var(--ink); transition: transform .15s; }
.faq details[open] summary::before { transform: scaleY(0); }
.faq details p { padding-bottom: 20px; margin: 0; }

/* ---------- CTA ---------- */
.cta { background: var(--orange); color: var(--ink); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; font-size: 18px; }
.cta-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-phone { font: 700 26px/1 var(--head); text-decoration: none; }

/* ---------- Unterseiten ---------- */
.page-hero { position: relative; background: var(--dark); color: rgba(255,255,255,.82); padding: clamp(56px, 8vw, 100px) 0 clamp(48px, 7vw, 80px); border-bottom: 10px solid var(--orange); }
.page-hero h1 { color: var(--white); max-width: 16em; }
.page-hero .lead { max-width: 720px; margin: 0; }
.page-hero-sm { padding: 56px 0 44px; }
.crumbs { font-size: 14px; margin-bottom: 22px; color: rgba(255,255,255,.6); }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.crumbs a { transition: color var(--ease); }
.crumbs a:hover { color: var(--orange); }
.prose h2 { font-size: 30px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose a { color: var(--orange-dark); }
.prose mark, .ph-text { background: #fff1e4; padding: 0 3px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-card { position: relative; background: var(--dark); color: rgba(255,255,255,.8); padding: 36px; border-top: 8px solid var(--orange); }
.contact-card h2 { color: var(--white); font-size: 30px; }
.contact-phone { font: 700 30px/1.1 var(--head); color: var(--white); }
.contact-phone a { text-decoration: none; }
address { font-style: normal; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 24px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: 16px/1.4 var(--body); padding: 13px 14px; border: 1px solid #bdbdbd; border-radius: 0; background: var(--white); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--orange); }
.form .check { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; }
.form .check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--orange); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 18px 20px; margin-bottom: 24px; border-left: 6px solid; }
.notice-ok { background: #f1f7ee; border-color: #3d8b2f; }
.notice-err { background: #fdf0ef; border-color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--dark); color: rgba(255,255,255,.7); font-size: 15px; }
.footer-logo { width: 300px; max-width: 100%; height: auto; margin-bottom: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.footer-about { margin-top: 20px; max-width: 380px; }
.footer-h { font-size: 18px; color: var(--white); margin-bottom: 16px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: 3px 0; }
.site-footer a { text-decoration: none; }
.site-footer a { transition: color var(--ease); }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; padding-bottom: 26px; font-size: 14px; }
.footer-legal { display: flex; gap: 20px; list-style: none; margin: 0 0 0 auto; padding: 0; }

/* ---------- Consent ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; background: var(--white); border: 2px solid var(--ink); border-top: 8px solid var(--orange); padding: 22px; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.consent .btn-ghost { color: var(--ink); border-color: var(--ink); }
.consent-actions { display: flex; gap: 12px; justify-content: flex-end; }
.call-fab { display: none; }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
	.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 46px; height: 46px; background: var(--dark); border: 0; cursor: pointer; padding: 0 12px; }
	.nav-toggle span { display: block; height: 3px; background: var(--white); transition: transform .2s; }
	.nav-open .nav-toggle span:first-child { transform: translateY(5px) rotate(45deg); }
	.nav-open .nav-toggle span:last-child { transform: translateY(-5px) rotate(-45deg); }
	.nav { position: fixed; inset: var(--hh) 0 0 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gap) 32px; transform: translateX(100%); visibility: hidden; transition: transform .2s, visibility .2s; }
	.nav-open .nav { transform: none; visibility: visible; }
	.menu { flex-direction: column; gap: 0; }
	.menu a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
	.nav .btn { margin-top: 24px; justify-content: center; }
	.services, .services-full { grid-template-columns: 1fr 1fr; }
	.split, .contact, .footer-grid { grid-template-columns: 1fr; }
	.hero::after { background: rgba(34,34,34,.8); }
	.gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 160px; }
	.gallery figure:first-child { grid-row: span 1; }
	.gallery figure:nth-child(6) { grid-column: span 1; }
	.gallery figure:first-child, .gallery figure:last-child { grid-column: span 2; }
	.footer-legal { margin-left: 0; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.brand img { height: 38px; }
	body { --hh: 76px; }
	.is-scrolled .brand img { height: 32px; }
	body.is-scrolled { --hh: 60px; }
	.services, .services-full { grid-template-columns: 1fr; }
	.form-grid { grid-template-columns: 1fr; }
	.hero-actions .btn { width: 100%; justify-content: center; }
	.call-fab { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--orange); color: var(--ink); text-align: center; padding: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
	body:has(.call-fab) { padding-bottom: 54px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
