/* MH Projektentwicklung – Stylesheet
   Nachbau des bisherigen Elementor-Layouts (Entscheidung Micha, 29.11.2026: "ganz nah an der 1:1-Kopie").
   Farben NUR hier im :root-Block definieren (tests/check-static.sh prüft das). */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #132F5C;        /* Hauptfarbe (Slider, Kontakt, Überschriften) */
  --navy-dark: #132B51;   /* Abschnitt Modulares Planen */
  --button: #2C4465;      /* Buttons */
  --button-hover: #3A5A86;
  --band: #C4CBD4;        /* fixiertes Hinweisband */
  --text: #191919;
  --muted: #555B62;
  --line: #D9DDE3;
  --white: #FFFFFF;
  --success: #10B981;
  --error: #EF4444;

  --container: 1140px;
  --header-h: 64px;
  --font: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: 300; font-size: 18px; line-height: 1.55; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-weight: 300; color: var(--navy); line-height: 1.215; margin: 0 0 20px; overflow-wrap: break-word; }
p { margin: 0 0 20px; }
strong { font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--button-hover); outline-offset: 2px; }
.skip-link { position: absolute; left: 16px; top: -64px; background: var(--navy); color: var(--white); padding: 8px 16px; z-index: 10001; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.title { font-size: 27px; text-align: center; margin-bottom: 40px; }
.title--light { color: var(--white); }
.center { text-align: center; }
.text-cols { columns: 1; column-gap: 40px; }
@media (min-width: 768px) { .text-cols { columns: 2; } }
.text-cols p:first-child { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--button); color: var(--white); text-decoration: none;
  font: inherit; font-size: 16px; line-height: 1.2; padding: 10px 20px; border: 0; border-radius: 2px;
  cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover { background: var(--button-hover); transform: translateY(-2px); box-shadow: 0 4px 8px color-mix(in srgb, var(--text) 10%, transparent); }
.btn-row { text-align: center; margin-top: 40px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); height: var(--header-h); box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: calc(var(--container) + 40px); }
.brand-logo img { height: 30px; width: auto; }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: var(--navy); text-decoration: none; font-size: 16px; }
.nav-links a:hover { color: var(--button-hover); }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; width: 24px; background: var(--navy); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-open .nav-links { display: flex; flex-direction: column; gap: 0; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); padding: 8px 20px 16px; box-shadow: 0 8px 16px color-mix(in srgb, var(--text) 8%, transparent); }
.nav-open .nav-links a { padding: 10px 0; font-size: 15px; }
@media (min-width: 1025px) {
  :root { --header-h: 104px; }
  .brand-logo img { height: 34px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0 20px; }
  .nav-toggle { display: none; }
  .nav-links, .nav-open .nav-links { display: flex; flex-direction: row; position: static; padding: 0; box-shadow: none; background: none; }
  .nav-open .nav-links a { padding: 0 20px; font-size: 16px; }
}

/* ---------- Slider ---------- */
.slider { position: relative; overflow: hidden; height: 600px; }
.slide { position: absolute; inset: 0; display: flex; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s; }
.slide.active { opacity: 1; visibility: visible; z-index: 1; }
.slide-image { width: 50%; height: 100%; overflow: hidden; }
.slide-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.slide-content { width: 50%; height: 100%; background: var(--navy); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 10%; }
.slide-content h1, .slide-content h2 { color: var(--white); font-size: 3.3rem; line-height: 1.2; margin-bottom: 20px; }
.scroll-down { position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%); width: 50px; height: 50px; z-index: 10; transition: opacity 0.3s ease, transform 0.3s ease; }
.scroll-down:hover { opacity: 0.8; transform: translateX(-50%) translateY(3px); }
.slider-dots { position: absolute; bottom: 10%; left: 0; width: 100%; display: flex; justify-content: center; gap: 12px; z-index: 10; }
.slider-dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: color-mix(in srgb, var(--white) 50%, transparent); cursor: pointer; transition: transform 0.3s ease; }
.slider-dot.active { background: var(--white); border-color: var(--white); }
.slider-dot:hover { transform: scale(1.2); }
@media (max-width: 1024px) { .slide-content h1, .slide-content h2 { font-size: 2.25rem; } }
@media (max-width: 768px) {
  .slider { height: auto; }
  .slide { position: relative; flex-direction: column; display: none; opacity: 1; visibility: visible; }
  .slide.active { display: flex; }
  .slide-image { width: 100%; height: 320px; }
  .slide-content { width: 100%; padding: 30px 5% 56px; min-height: 260px; align-items: stretch; }
  .slide-content h1, .slide-content h2 { font-size: 1.875rem; }
  .slide-content .btn { text-align: center; }
  .scroll-down { display: none; }
  .slider-dots { bottom: 20px; }
}

/* ---------- Siegel (fixiert rechts) + Pop-up ---------- */
.seals { position: fixed; right: 0; top: 55%; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.seal-btn { display: block; background: var(--white); padding: 5px; border: 0; border-top-left-radius: 10px; cursor: pointer; transition: transform 0.3s ease; box-shadow: 0 2px 6px color-mix(in srgb, var(--text) 10%, transparent); }
.seal-btn:hover { transform: translateX(-10px); }
.seal-btn img { width: 70px; height: 70px; }
.modal { position: fixed; inset: 0; z-index: 10000; background: color-mix(in srgb, var(--white) 80%, transparent); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; background: var(--white); padding: 40px; text-align: center; box-shadow: 0 4px 8px color-mix(in srgb, var(--text) 10%, transparent); width: 100%; max-width: 500px; border-radius: 8px; }
.modal-box img { width: 80px; height: 80px; margin: 0 auto 20px; }
.modal-box p { color: var(--navy); font-size: 16px; margin: 0; line-height: 1.5; }
.modal-close { position: absolute; top: 6px; right: 10px; font-size: 28px; line-height: 1; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 4px 8px; }
/* Mittlere Breiten: Inhalt rückt von den festen Siegeln am rechten Rand weg */
@media (min-width: 768px) and (max-width: 1299px) { main .container { padding-left: 90px; padding-right: 90px; } }
@media (max-width: 767px) {
  .seals { top: 20%; }
  .seal-btn { padding: 4px; }
  .seal-btn img { width: 50px; height: 50px; }
  .modal-box { padding: 25px 20px; }
  .modal-box img { width: 60px; height: 60px; margin-bottom: 15px; }
  .modal-box p { font-size: 0.9rem; }
}

/* ---------- Leistungen (Kacheln) ---------- */
.services { padding-top: 130px; }
.services .title { margin-bottom: 60px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 20px; max-width: 700px; margin: 0 auto; }
.tile { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.tile img { width: 156px; height: 156px; transition: transform 0.3s ease; }
.tile:hover img { transform: scale(1.04); }
.tile span { margin-top: 16px; font-size: 20.8px; color: var(--navy); text-align: center; line-height: 1.2; }
@media (max-width: 480px) { .tile img { width: 120px; height: 120px; } .tile span { font-size: 16px; } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 200px); gap: 20px; max-width: none; justify-content: center; } .tile img { width: 200px; height: 200px; } }

/* ---------- Banner ---------- */
.banner { position: relative; min-height: 400px; display: flex; align-items: center; background: var(--navy) url("../img/banner.webp") center / cover no-repeat; }
.banner::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--text) 35%, transparent); }
.banner .container { position: relative; }
.banner h2 { color: var(--white); font-size: 40px; font-weight: 400; line-height: 1.2; max-width: 520px; margin-bottom: 32px; }
@media (max-width: 767px) { .banner { min-height: 340px; } .banner h2 { font-size: 30px; } .banner .btn { display: block; text-align: center; } }

/* ---------- Listen „Auf einen Blick“ ---------- */
.glance { display: grid; gap: 8px 40px; grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; padding-left: 20px; }
@media (min-width: 768px) { .glance { grid-template-columns: 1fr 1fr; } }
.glance li { list-style: disc; font-size: 16px; line-height: 1.6; }
.glance strong { display: block; }
.glance--inline strong { display: inline; }

/* ---------- Hinweisband (klebt unten, bis es seinen Platz erreicht) ---------- */
.band { position: sticky; bottom: 0; z-index: 900; background: var(--band); color: var(--navy); text-align: center; font-size: 16px; font-weight: 500; text-transform: uppercase; padding: 15px 20px; line-height: 1.5; }
.band p { margin: 0; }
.band a { color: inherit; text-decoration: none; }

/* ---------- Modulares Planen ---------- */
.section--navy { background: var(--navy-dark); color: var(--white); }
.lead-center { max-width: 820px; margin: 0 auto 20px; text-align: center; }
.modul-image { width: 100%; max-width: min(820px, 100%); margin: 40px auto; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 0 40px; max-width: 820px; margin: 0 auto; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature { padding: 20px 0; border-bottom: 1px solid color-mix(in srgb, var(--white) 35%, transparent); }
.feature h3 { color: var(--white); font-size: 20.8px; line-height: 1.25; margin-bottom: 12px; }
.feature p { font-size: 16px; margin: 0; }

/* ---------- BIM-Icons ---------- */
.icon-boxes { display: grid; grid-template-columns: 1fr; gap: 40px 20px; max-width: 780px; margin: 60px auto 0; text-align: center; }
@media (min-width: 768px) { .icon-boxes { grid-template-columns: repeat(3, 1fr); } }
.icon-box img { width: 200px; height: auto; margin: 0 auto 29px; }
.icon-box h3 { font-size: 20.8px; margin-bottom: 8px; }
.icon-box h3::after { content: ""; display: block; width: 14px; height: 2px; background: var(--navy); margin: 10px auto 0; }
.icon-box p { font-size: 16px; margin: 0; }

.kreislauf { width: 100%; max-width: min(800px, 100%); margin: 40px auto 50px; }

/* ---------- Projekte ---------- */
.project-grid { display: grid; grid-template-columns: 1fr; gap: 32px 24px; margin-top: 40px; }
@media (min-width: 768px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.video-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--text); cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.video-thumb:hover img { transform: scale(1.03); }
.video-thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid var(--white); background: color-mix(in srgb, var(--text) 25%, transparent); }
.video-thumb::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-35%, -50%); border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--white); }
.project-name { margin-top: 16px; text-align: center; font-size: 17.6px; color: var(--navy); line-height: 1.3; }
.lightbox { position: fixed; inset: 0; z-index: 10000; background: color-mix(in srgb, var(--text) 88%, transparent); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox-frame { width: min(1000px, 100%); aspect-ratio: 16 / 9; background: var(--text); }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox .modal-close { color: var(--white); top: 12px; right: 16px; font-size: 36px; }

/* ---------- Profil ---------- */
.profile-band { background: var(--navy); margin-top: 120px; }
.profile-band .container { display: grid; grid-template-columns: 1fr; align-items: center; gap: 24px; }
.profile-band img { margin-top: -120px; width: 100%; max-width: 420px; }
.profile-band blockquote { margin: 0; padding: 0 0 40px; color: var(--white); font-size: 27px; line-height: 1.25; }
@media (min-width: 768px) {
  .profile-band .container { grid-template-columns: 5fr 7fr; gap: 40px; }
  .profile-band img { margin-bottom: -40px; }
  .profile-band blockquote { padding: 40px 0; }
}
.accordion { margin: 80px auto 0; max-width: 1140px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 8px; font-size: 16px; color: var(--text); cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 20px; font-weight: 600; color: var(--text); }
.accordion details[open] summary::after { content: "−"; }
.cv { padding: 8px 8px 24px; }
.cv li { display: grid; grid-template-columns: 1fr; gap: 0 24px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.cv li:first-child { border-top: 0; }
@media (min-width: 640px) { .cv li { grid-template-columns: 140px 1fr; } }
.cv .when { color: var(--navy); font-weight: 600; }
.cv .what { display: block; font-weight: 600; }
.cv .role { display: block; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact { background: var(--navy); color: var(--white); padding: 60px 0 80px; }
.form { display: grid; gap: 12px; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--white); background: transparent;
  border: 1px solid color-mix(in srgb, var(--white) 55%, transparent); border-radius: 2px; padding: 9px 12px;
}
.form textarea { min-height: 96px; resize: vertical; }
.form ::placeholder { color: color-mix(in srgb, var(--white) 70%, transparent); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--white); }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12.8px; line-height: 1.6; margin-top: 8px; }
.consent input { margin: 3px 0 0; accent-color: var(--white); flex: none; }
.consent a { color: var(--white); }
.form button[type="submit"] { width: 100%; background: transparent; border: 1px solid color-mix(in srgb, var(--white) 55%, transparent); color: var(--white); padding: 12px 20px; font: inherit; font-size: 16px; cursor: pointer; border-radius: 2px; transition: background-color 0.3s ease; }
.form button[type="submit"]:hover { background: var(--button); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 12px 16px; border-radius: 2px; font-size: 16px; margin-bottom: 16px; color: var(--text); }
.status[hidden] { display: none; }
.status--ok { background: color-mix(in srgb, var(--success) 18%, var(--white)); }
.status--err { background: color-mix(in srgb, var(--error) 14%, var(--white)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); padding: 24px 0; font-size: 14.4px; }
.site-footer .container { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 768px) { .site-footer .container { grid-template-columns: 1fr auto 1fr; } }
.footer-contact li { display: flex; gap: 10px; align-items: center; line-height: 1.95; }
.footer-contact svg { width: 18px; height: 18px; flex: none; }
.footer-contact a, .footer-legal a { color: var(--text); text-decoration: none; }
.footer-contact a:hover, .footer-legal a:hover { text-decoration: underline; }
.footer-legal { text-align: center; }
.footer-social { display: flex; gap: 16px; justify-content: flex-end; }
@media (max-width: 767px) { .footer-social { justify-content: center; } .footer-contact { justify-self: center; } }
.footer-social a { display: inline-flex; width: 20px; height: 20px; color: var(--muted); }
.footer-social a:hover { color: var(--navy); }
.footer-social svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- Rechtstexte / 404 ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: 36px; margin-bottom: 32px; hyphens: auto; }
.legal h2 { font-size: 24px; margin-top: 48px; hyphens: auto; }
.legal h3 { font-size: 19px; margin-top: 32px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { list-style: disc; padding-left: 24px; margin-bottom: 20px; }
.legal address { font-style: normal; font-size: 16px; margin-bottom: 20px; }
.eyebrow { display: block; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.lead { font-size: 18px; }
@media (max-width: 640px) { .legal h1 { font-size: 28px; } }

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