/* =============================================
   GeruTech GmbH – Hauptstylesheet
   ============================================= */

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

:root {
  --red: #cc2229;
  --dark: #1a1a1a;
  --white: #fff;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); overflow-x: hidden; }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ---- NAVBAR ---- */
nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  animation: fadeIn 1s ease forwards;
}
.nav-logo {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') center / cover no-repeat;
  filter: brightness(0.45);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.04); }
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 620px;
  padding: 0 20px;
  animation: fadeInUp 1.1s ease 0.2s both;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-content p {
  font-size: 0.97rem;
  opacity: 0.88;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 28px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-primary:hover { background: #fff; color: var(--dark); transform: translateY(-2px); }

.btn-red {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 14px 36px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn-red:hover { background: #a81b21; transform: translateY(-2px); }

/* ---- SECTION HELPERS ---- */
.section-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.section-line {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 20px;
}
.section-line-left {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 0 0 20px;
}
.section-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  color: #666;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---- ABOUT ---- */
.about {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.about-text p { color: #555; line-height: 1.7; font-size: 0.93rem; }
.about-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.about-img img:hover { transform: scale(1.03); }

/* ---- SERVICES ---- */
.services { padding: 70px 40px; text-align: center; background: #fff; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 820px;
  margin: 0 auto;
}
.service-card {
  text-align: left;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.service-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.13); transform: translateY(-4px); }
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.service-card:hover img { transform: scale(1.05); }
.service-card-body { padding: 20px; }
.service-card-body h4 { font-family: var(--font-head); font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.service-card-body p { color: #666; font-size: 0.87rem; line-height: 1.6; margin-bottom: 14px; }
.link-red {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.link-red:hover { opacity: 0.7; }

/* ---- STANDARDS ---- */
.standards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  max-height: 420px;
  overflow: hidden;
}
.standards-text {
  padding: 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.standards-text h2 { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; margin-bottom: 16px; }
.standards-text p { color: #555; line-height: 1.7; font-size: 0.93rem; }
.standards-img {
  overflow: hidden;
  max-height: 420px;
}
.standards-img img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.standards-img:hover img { transform: scale(1.04); }

/* ---- WHY US ---- */
.why { padding: 80px 40px; text-align: center; background: #fff; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 40px auto 0;
}
.why-item { padding: 20px; transition: transform 0.3s; }
.why-item:hover { transform: translateY(-5px); }
.why-icon { width: 50px; height: 50px; margin: 0 auto 16px; }
.why-icon svg { width: 100%; height: 100%; }
.why-item h4 { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
.why-item p { color: #666; font-size: 0.86rem; line-height: 1.6; }

/* ---- PROJEKTE ---- */
.projekte { padding: 80px 40px; background: #fff; text-align: center; }
.projekte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 1000px;
  margin: 40px auto 0;
}
.projekte-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.projekte-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.projekte-item:hover img { transform: scale(1.08); }
.projekte-overlay {
  position: absolute;
  inset: 0;
  background: rgba(204, 34, 41, 0);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.projekte-item:hover .projekte-overlay { background: rgba(204, 34, 41, 0.25); }
.projekte-overlay-icon { opacity: 0; transition: opacity 0.3s; color: #fff; }
.projekte-item:hover .projekte-overlay-icon { opacity: 1; }

/* ---- LIGHTBOX ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; animation: fadeIn 0.25s ease; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 28px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  background: none;
  border: none;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 0.7; }
.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 10px 18px;
  transition: background 0.2s;
  z-index: 10000;
}
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-family: var(--font-head);
}

/* ---- CTA ---- */
.cta {
  position: relative;
  padding: 90px 40px;
  text-align: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: url('../img/cta-hintergrund.jpg') center / cover no-repeat;
  filter: brightness(0.35);
}
.cta-content { position: relative; z-index: 2; color: #fff; }
.cta-content h2 { font-family: var(--font-head); font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-content p { font-size: 0.92rem; opacity: 0.85; margin-bottom: 28px; }

/* ---- CONTACT ---- */
.contact { position: relative; padding: 80px 40px; background: #f4f4f4; }
.contact-bg { display: none; }
.contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 50px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.contact-info h2 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; }
.contact-info p { color: #555; font-size: 0.88rem; line-height: 1.7; margin-bottom: 24px; }
.contact-detail { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.88rem; color: #444; }
.contact-detail svg { color: var(--red); flex-shrink: 0; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.25s;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); }
.contact-form textarea { height: 100px; resize: vertical; }
.contact-form button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.contact-form button:hover { background: #a81b21; transform: translateY(-2px); }

/* ---- FOOTER ---- */
footer {
  padding: 20px 40px;
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  border-top: 1px solid #eee;
}
footer a { color: var(--red); text-decoration: none; margin: 0 8px; }
footer a:hover { text-decoration: underline; }

/* ---- LEGAL PAGES (Impressum / Datenschutz) ---- */
.legal-page { max-width: 860px; margin: 0 auto; padding: 60px 40px 80px; }
.legal-page h1 { font-family: var(--font-head); font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.legal-page .legal-intro { color: #666; font-size: 0.9rem; margin-bottom: 40px; border-bottom: 3px solid var(--red); padding-bottom: 20px; display: inline-block; }
.legal-page h2 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin: 36px 0 10px; color: var(--dark); }
.legal-page h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin: 24px 0 8px; color: #333; }
.legal-page p { color: #555; line-height: 1.75; font-size: 0.92rem; margin-bottom: 12px; }
.legal-page a { color: var(--red); }
.legal-page ul { margin: 10px 0 12px 20px; }
.legal-page ul li { color: #555; line-height: 1.75; font-size: 0.92rem; }

.legal-nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.legal-nav .nav-logo { color: var(--dark); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.legal-nav .nav-back { color: var(--red); font-size: 0.85rem; text-decoration: none; font-family: var(--font-head); font-weight: 600; margin-left: auto; }
.legal-nav .nav-back:hover { text-decoration: underline; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .about, .standards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .projekte-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; padding: 30px; }
  nav { padding: 16px 20px; }
  .standards-text { padding: 40px 30px; }
  .legal-page { padding: 40px 24px 60px; }
  .legal-nav { padding: 16px 20px; }
}
