/* MTH Bau — Farben von der Visitenkarte */
:root {
  --navy: #16213e;
  --navy-light: #1f2f57;
  --pink: #e4007c;
  --pink-dark: #b8005f;
  --petrol: #5c6e6c;
  --mint: #dce3df;
  --black: #1a1a1a;
  --white: #ffffff;
  --gray: #6b7280;
  --shadow: 0 10px 30px rgba(22, 33, 62, 0.12);
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--pink); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--pink-dark); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: 0.1s; }
.btn-primary { background: var(--pink); color: var(--white); }
.btn-primary:hover { background: var(--pink-dark); color: var(--white); box-shadow: 0 8px 20px rgba(228,0,124,0.35); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand svg { width: 46px; height: 30px; color: var(--white); }
.brand-name {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--pink);
}
.brand-name span { color: var(--white); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--pink); border-bottom-color: var(--pink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-phone {
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}
.header-phone:hover { color: var(--pink); }

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 55%, var(--petrol) 100%);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--pink); }
.hero p {
  font-size: 1.1rem;
  color: var(--mint);
  margin-bottom: 30px;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-graphic {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-graphic svg { width: 100%; height: auto; color: var(--white); }
.hero-graphic img { width: 100%; height: auto; max-width: 320px; border-radius: calc(var(--radius) - 8px); }

/* Page header (Unterseiten) */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--petrol) 100%);
  color: var(--white);
  padding: 55px 0;
  text-align: center;
}
.page-hero h1 { font-size: 2.1rem; margin-bottom: 8px; }
.page-hero p { color: var(--mint); }

/* Sections */
section { padding: 70px 0; }
.section-alt { background: var(--mint); }
.section-title {
  text-align: center;
  margin-bottom: 45px;
}
.section-title .eyebrow {
  color: var(--pink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 10px;
}
.section-title h2 { font-size: 2rem; color: var(--navy); }
.section-title p { color: var(--gray); margin-top: 10px; max-width: 60ch; margin-inline: auto; }

/* Leistungs-Kacheln */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--pink);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(22, 33, 62, 0.18); }
.service-icon {
  width: 56px; height: 56px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--pink);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), background 0.3s ease;
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); background: var(--pink); color: var(--white); }
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { color: var(--gray); font-size: 0.95rem; }
.service-card a.more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 0.9rem; }

/* Vertrauensblock */
.trust-bar {
  background: var(--navy);
  color: var(--white);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.trust-grid .num { font-size: 2.2rem; font-weight: 800; color: var(--pink); }
.trust-grid .label { color: var(--mint); font-size: 0.95rem; margin-top: 6px; }

/* Leistungen-Detailseite */
.leistung-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 55px 0;
  border-bottom: 1px solid #e5e5e5;
}
.leistung-block:nth-child(even) .leistung-text { order: 2; }
.leistung-block:nth-child(even) .leistung-media { order: 1; }
.leistung-text .tag {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.leistung-text h2 { color: var(--navy); font-size: 1.7rem; margin-bottom: 14px; }
.leistung-text p { color: var(--gray); margin-bottom: 14px; }
.leistung-text ul { padding-left: 20px; color: var(--black); }
.leistung-text ul li { margin-bottom: 6px; }

.media-placeholder {
  background: var(--mint);
  border: 2px dashed var(--petrol);
  border-radius: var(--radius);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--petrol);
  font-weight: 600;
  text-align: center;
  gap: 8px;
  padding: 20px;
}
.media-placeholder svg { width: 44px; height: 44px; }

/* Illustrationen (Beispielbilder) */
.illustration-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 240px;
  background: var(--mint);
}
.illustration-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.example-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(22, 33, 62, 0.85);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.illustration-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(22, 33, 62, 0.85) 0%, rgba(22, 33, 62, 0) 100%);
  color: var(--white);
  padding: 30px 16px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Referenzen — Baustellen-Karten */
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 28px;
}
.project-header { margin-bottom: 20px; }
.project-header h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 6px; }
.project-header p { color: var(--gray); font-size: 0.95rem; }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.gallery-thumb {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 33, 62, 0.10);
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}
.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 34px rgba(22, 33, 62, 0.28);
  outline: none;
}
.gallery-thumb:hover img { transform: scale(1.08); }

.phase-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
}
.phase-badge.phase-vorher { background: var(--petrol); }
.phase-badge.phase-nachher { background: var(--pink); }

.gallery-note {
  background: var(--white);
  border-left: 4px solid var(--pink);
  padding: 20px 24px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  margin-top: 20px;
  color: var(--gray);
}
.gallery-note strong { color: var(--navy); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(22, 33, 62, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 40px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-content {
  max-width: min(90vw, 1000px);
  max-height: 85vh;
  text-align: center;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(.22,1,.36,1);
}
.lightbox.is-open .lightbox-content { transform: scale(1); }
.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}
.lightbox-caption { color: var(--white); margin-top: 14px; font-size: 0.95rem; }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--pink); transform: scale(1.08); }
.lightbox-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 1.6rem; }
.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.8rem;
}
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view { opacity: 1; transform: none; }

/* Über uns */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.values-list { list-style: none; margin-top: 20px; }
.values-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 14px;
  color: var(--black);
}
.values-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--pink); font-weight: 800;
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}
.contact-info {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-info h3 { color: var(--pink); margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item svg { width: 24px; height: 24px; color: var(--pink); flex-shrink: 0; }
.contact-item a, .contact-item span { color: var(--white); font-weight: 600; }
.contact-item .sub { display: block; color: var(--mint); font-weight: 400; font-size: 0.9rem; }

.map-embed {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #d8dde3;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pink);
}
.form-note { font-size: 0.85rem; color: var(--gray); margin-top: 10px; }

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--mint);
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}
.footer-brand .brand-name { font-size: 1.3rem; }
.footer-brand p { margin-top: 12px; color: #9aa3ad; font-size: 0.9rem; }
.site-footer h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #b8c0c9; }
.site-footer a:hover { color: var(--pink); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: #7c848c;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-graphic { order: -1; max-width: 320px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .leistung-block, .leistung-block:nth-child(even) { grid-template-columns: 1fr; }
  .leistung-block:nth-child(even) .leistung-text,
  .leistung-block:nth-child(even) .leistung-media { order: initial; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .hero h1 { font-size: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .main-nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--navy);
    padding: 0 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(.22,1,.36,1), opacity 0.25s ease, padding 0.35s ease;
  }
  .site-header.nav-open .main-nav {
    max-height: 400px;
    opacity: 1;
    padding: 20px;
  }
  .main-nav ul { flex-direction: column; gap: 16px; }
}
