:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --accent: #0b6efd;
  --muted: #6b7280;
  --shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
  --radius: 12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  color: #0f1724;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

header {
  max-width: 1200px;
  margin: 36px auto 20px;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #0b2545;
}

.subtitle {
  color: var(--muted);
  font-size: 13px;
}

.title-hr {
  height: 4px;
  width: 88px;
  background: linear-gradient(90deg, var(--accent), #6ea8fe);
  border-radius: 6px;
  margin-top: 6px;
  box-shadow: 0 2px 6px rgba(11, 110, 253, 0.25);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(11, 110, 253, 0.16);
  transition: background 0.25s ease, transform 0.2s ease;
}

.cta:hover {
  background: #095ed1;
  transform: translateY(-1px);
}

main {
  max-width: 1200px;
  margin: 18px auto 60px;
  padding: 18px;
  display: grid;
  gap: 20px;
}

.hero {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero .hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}

.hero .hero-img:hover {
  transform: scale(1.02);
}

.info {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 600px) {
  .project-meta {
    flex-direction: column;
    gap: 8px;
  }

  .project-meta div {
    border: none !important;
    padding-left: 0 !important;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.thumb {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.thumb:hover {
  transform: translateY(-6px);
}

/* Baufortschritt mit 6 Bildern pro Zeile */
.gallery.six-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.thumb.small-thumb {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.thumb.small-thumb img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.thumb.small-thumb:hover {
  transform: translateY(-4px);
}

/* Responsive: 4 auf Tablet, 2–3 auf Handy */
@media (max-width: 1024px) {
  .gallery.six-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px) {
  .gallery.six-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery.six-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .thumb.small-thumb img {
    height: 90px;
  }
}


@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .thumb img {
    height: 160px;
  }

  .gallery.small-gallery {
    grid-template-columns: 1fr;
  }

  .thumb.small-thumb img {
    height: 90px;
  }
}

/* Logo-Scroller */
.logo-section {
  max-width: 1200px;
  margin: 18px auto 8px;
  padding: 8px 18px;
}

.logo-heading {
  font-size: 13px;
  color: #374151;
  margin: 0 8px 8px 8px;
  font-weight: 600;
}

.logo-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 8px;
}

.logo-scroller {
  overflow: hidden;
  position: relative;
}

.scroller-track {
  display: flex;
  gap: 28px;
  align-items: center;
  width: max-content;
}

.scroller-track-inner {
  display: flex;
  gap: 28px;
  align-items: center;
  animation: scroll-left 22s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.logo-wrap {
  display: inline-block;
  width: 75px;
  flex: 0 0 75px;
  text-align: center;
}

.logo-link {
  display: inline-block;
  width: 100%;
  text-decoration: none;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(85%) brightness(90%);
  transition: filter 0.25s ease, transform 0.25s ease;
  opacity: 0.98;
}

.logo-wrap:hover .logo {
  filter: none;
  transform: scale(1.06);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.6);
  z-index: 1200;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 1100px;
  max-height: 92vh;
  width: 100%;
  background: transparent;
  border-radius: 10px;
  position: relative;
}

.lightbox img {
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.6);
}

.close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
  font-weight: 700;
}

/* Formular Overlay */
.form-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.6);
  z-index: 1300;
  padding: 24px;
}

.form-overlay.open {
  display: flex;
}

.form-container {
  background: var(--card);
  padding: 28px 32px;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.6);
  max-width: 480px;
  width: 100%;
  position: relative;
}

.form-container h2 {
  margin-top: 0;
  color: #0b2545;
  font-size: 20px;
  font-weight: 700;
}

.form-container label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-top: 12px;
}

.form-container input,
.form-container textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.form-container textarea {
  resize: vertical;
  min-height: 100px;
}

.form-container button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  margin-top: 16px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(11, 110, 253, 0.16);
}

.form-container button[type="submit"]:hover {
  background: #095ed1;
}

.form-close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
  font-weight: 700;
}

#formStatus {
  min-height: 20px;
}

footer {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
