/* ============================================================
   Prüfsachverständiger Heckl – Hauptstylesheet
   Schrift: Barlow / Barlow Condensed (Google Fonts)
   Framework: Bootstrap 5.3
   ============================================================ */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --gold:        #d4880a;
  --gold-light:  #f0a030;
  --gold-pale:   rgba(212, 136, 10, 0.12);
  --gold-border: rgba(212, 136, 10, 0.35);
  --navy:        #1a2332;
  --navy-mid:    #243044;
  --navy-light:  #2e3e55;
  --text-light:  #8fa3bf;
  --body-light:  #f5f6f8;
  --body-white:  #ffffff;
  --border-subtle: rgba(255,255,255,0.08);
  --radius:      10px;
  --transition:  0.22s ease;
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #2c3340;
  background: var(--body-white);
  overflow-x: hidden;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.section-label.light { color: var(--gold-light); }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-title.light { color: #ffffff; }

.section-intro {
  font-size: 15px;
  color: #5a6880;
  max-width: 560px;
  line-height: 1.75;
}
.section-intro.light { color: var(--text-light); }

/* ---------- NAVIGATION ---------- */
#mainNav {
  background: transparent;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#mainNav.scrolled {
  background: var(--navy);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-h {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.brand-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.brand-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85) !important;
  transition: color var(--transition);
  padding: 6px 4px !important;
}
.nav-link:hover { color: var(--gold-light) !important; }

.btn-nav-cta {
  background: var(--gold) !important;
  color: #fff !important;
  padding: 7px 18px !important;
  border-radius: 6px;
  font-size: 13px !important;
}
.btn-nav-cta:hover { background: var(--gold-light) !important; color: #fff !important; }

/* ---------- HERO ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* Moderner Wert: korrekte Höhe auf Mobile ohne Browser-UI */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 35, 50, 0.85) 0%,
    rgba(26, 35, 50, 0.65) 60%,
    rgba(26, 35, 50, 0.50) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  border-radius: 30px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}
.hero-title .accent { color: var(--gold-light); }

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  line-height: 1.75;
}

/* Buttons */
.btn-gold {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 7px;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
  text-decoration: none;
}
.btn-gold:hover {
  background: var(--gold-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-light-custom {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 12px 28px;
  border-radius: 7px;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition);
  display: inline-block;
  text-decoration: none;
}
.btn-outline-light-custom:hover {
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

/* Cert circle */
.cert-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid var(--gold-border);
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.cert-inner { text-align: center; }
.cert-code {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}
.cert-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
  margin: 4px 0;
}
.cert-radius {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}

/* Video-Steuerung */
.video-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 35, 50, 0.7);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  color: rgba(255,255,255,0.85);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-btn i { font-size: 15px; line-height: 1; }
.video-btn:hover {
  background: rgba(212, 136, 10, 0.25);
  border-color: var(--gold-border);
  color: #fff;
}
.video-btn.video-btn-active {
  background: rgba(212, 136, 10, 0.22);
  border-color: var(--gold-border);
  color: var(--gold-light);
}

/* Scroll-down arrow */
.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.55);
  font-size: 22px;
  animation: bounce 2s infinite;
  text-decoration: none;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- SECTIONS ---------- */
.section-light {
  background: var(--body-white);
  padding: 90px 0;
}
.section-light:nth-child(even) {
  background: var(--body-light);
}
.section-dark {
  background: var(--navy);
  padding: 90px 0;
}

/* ---------- ÜBER MICH ---------- */
.about-img-wrap {
  position: relative;
}

.img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--body-light);
  border: 2px dashed #ccd3dc;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #9aaabb;
  font-size: 14px;
}
.img-placeholder i { font-size: 42px; }

/* Real image styles (wenn Foto vorhanden): */
.about-img-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.about-cert-tag {
  position: absolute;
  bottom: -16px;
  right: -12px;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(212, 136, 10, 0.35);
  white-space: nowrap;
}

.about-text p {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-tag {
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  border-radius: 30px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
}

/* ---------- LEISTUNGEN ---------- */
.leistung-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}
.leistung-card:hover {
  border-color: var(--gold-border);
  background: rgba(212, 136, 10, 0.06);
}

/* Foto-Bereich oben auf der Karte */
.leistung-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy-light);
}
.leistung-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.leistung-card:hover .leistung-img-wrap img {
  transform: scale(1.04);
}

/* Fallback-Icon wenn Foto fehlt (onerror setzt Klasse) */
.leistung-img-wrap.leistung-img-fallback img { display: none; }
.leistung-img-icon {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--navy-light);
  color: var(--gold-light);
  font-size: 36px;
}
.leistung-img-wrap.leistung-img-fallback .leistung-img-icon { display: flex; }

.leistung-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.leistung-norm {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2px;
}

.leistung-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.02em;
}

.leistung-chevron {
  color: var(--text-light);
  font-size: 14px;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.leistung-body {
  padding: 0 18px 18px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* ---------- GALERIE ---------- */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.galerie-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}
.galerie-item img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.galerie-placeholder {
  aspect-ratio: 4/3;
  background: var(--body-light);
  border: 2px dashed #ccd3dc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #b0bec5;
  font-size: 28px;
}
.galerie-placeholder span {
  font-size: 11px;
  color: #9aaabb;
  font-family: monospace;
}

/* Lightbox-Overlay */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox.active { display: flex; }
#lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 6px;
  object-fit: contain;
  transition: opacity 0.25s ease;
}
#lightbox-close {
  position: absolute;
  top: 16px;
  right: 22px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.65;
  transition: opacity var(--transition);
  background: none;
  border: none;
}
#lightbox-close:hover { opacity: 1; }

/* Prev / Next */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lb-nav:hover { background: rgba(212,136,10,0.4); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* Lade-Spinner */
#lb-spinner {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lb-spin {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: lb-rotate 0.8s linear infinite;
}
@keyframes lb-rotate { to { transform: rotate(360deg); } }

/* ---------- KONTAKT ---------- */
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 15px;
  transition: color var(--transition);
}
.contact-item:hover:not(.no-link) { color: var(--gold-light); }
.contact-item i {
  width: 38px;
  height: 38px;
  background: var(--gold-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 16px;
  flex-shrink: 0;
}

.social-btn {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.social-btn:hover {
  background: var(--gold-pale);
  border-color: var(--gold-border);
  color: var(--gold-light);
}

/* Formular */
.form-label-dark {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
  display: block;
}

.form-control-dark {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 7px !important;
  color: #fff !important;
  font-family: 'Barlow', sans-serif !important;
  font-size: 15px !important;
  padding: 10px 14px !important;
  transition: border-color var(--transition) !important;
}
.form-control-dark::placeholder { color: rgba(255,255,255,0.3) !important; }
.form-control-dark:focus {
  border-color: var(--gold-border) !important;
  box-shadow: 0 0 0 3px rgba(212,136,10,0.15) !important;
  outline: none !important;
}
.form-control-dark option { background: var(--navy-mid); color: #fff; }

.form-check-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
}
.form-check-input:checked {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
}

.link-gold { color: var(--gold-light); text-decoration: underline; }
.link-gold:hover { color: var(--gold); }

.form-hint {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #111820;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.footer-address {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

.footer-link {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--gold-light); }

/* ---------- UTILITIES & RESPONSIVE ---------- */

/* Navbar Toggler */
.navbar-toggler { border-color: rgba(255,255,255,0.25); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--navy);
    padding: 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: 8px;
  }
  .about-cert-tag {
    right: 0;
    bottom: -12px;
  }
  .galerie-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 575px) {
  .section-light, .section-dark { padding: 60px 0; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }

  /* Hero Badge: kleinere Schrift */
  .hero-badge {
    font-size: 10px;
    padding: 4px 12px;
    letter-spacing: 0.04em;
  }

  /* Hero Sub-Text etwas kleiner */
  .hero-sub { font-size: 14px; }

  /* Video-Controls weiter nach oben */
  .video-controls { bottom: 60px; }
}

/* Hochformat Mobile: Video-Höhe begrenzen damit es nicht riesig wird */
@media (max-width: 575px) and (orientation: portrait) {
  .hero-section {
    min-height: 100svh;
    max-height: 100svh;
  }
  /* Video-Fokus auf obere Bildhälfte (Motiv meist oben) */
  .hero-video {
    object-position: center 20%;
  }
  /* Weniger vertikaler Abstand im Hero-Text */
  .hero-content .min-vh-100 {
    min-height: unset !important;
    padding-top: 80px;
    padding-bottom: 100px;
  }
}

/* Scroll-reveal (wird per JS gesetzt) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
