/* =============================================================
   G&S Industrieservice GmbH – Haupt-Stylesheet
   Farben: Anthrazit #1c2331 | Stahlblau #173D62 | Akzent #e8800a
   System-Fonts (DSGVO-konform, keine externen Requests)
   ============================================================= */

:root {
  --bg-dark:      #1c2331;
  --bg-medium:    #1e2d40;
  --bg-card:      #1a2b3c;
  --primary:      #173D62;
  --primary-light:#2a5c8f;
  --accent:       #e8800a;
  --accent-hover: #c96e00;
  --text-light:   #e8edf2;
  --text-muted:   #8a9bb0;
  --border:       #2a3d52;
  --white:        #ffffff;
  --radius:       6px;
  --shadow:       0 4px 20px rgba(0,0,0,0.4);
  --transition:   0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================================================
   HEADER & NAVIGATION
   ================================================================ */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: relative;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 50px; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
}

.site-nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 11px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--accent);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--primary) url('../images/main.jpg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23,61,98,0.88) 0%, rgba(28,35,49,0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 40px 20px;
}

.hero-content h1 {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-content h1 span { color: var(--accent); }

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-light);
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  font-family: inherit;
}

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,128,10,0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ================================================================
   SECTIONS – gemeinsam
   ================================================================ */
section { padding: 70px 0; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-light);
}

.section-title span { color: var(--accent); }

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 44px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 12px 0 36px;
  border-radius: 2px;
}

/* PAGE HEADER (für Unterseiten) */
.page-header {
  background: var(--primary);
  padding: 50px 0 40px;
  border-bottom: 3px solid var(--accent);
}

.page-header h1 { font-size: 2.2rem; font-weight: 700; }
.page-header p { color: var(--text-muted); margin-top: 8px; }

/* ================================================================
   STARTSEITE – Über uns
   ================================================================ */
.about-section { background: var(--bg-medium); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.about-text p { margin-bottom: 16px; color: var(--text-light); line-height: 1.8; }
.about-text strong { color: var(--accent); }

.services-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 16px;
}

.services-list h4 {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.services-list p { color: var(--text-muted); font-size: 0.9rem; }

/* Kontakt-Karte (Sidebar) */
.contact-card {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.contact-card h3 {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-card p { color: var(--text-light); line-height: 1.9; font-size: 0.93rem; }
.contact-card a { color: var(--accent); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

.contact-card .portrait {
  width: 100%;
  border-radius: var(--radius);
  margin-top: 16px;
}

/* ================================================================
   STARTSEITE – Leistungen-Vorschau
   ================================================================ */
.services-section { background: var(--bg-dark); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: block;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(232,128,10,0.18);
}

.service-card .icon { font-size: 2.2rem; margin-bottom: 14px; display: block; }
.service-card h3 { color: var(--text-light); font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ================================================================
   LEISTUNGEN-SEITE
   ================================================================ */
.leistungen-section { background: var(--bg-dark); }

.service-block {
  border-bottom: 1px solid var(--border);
  padding-bottom: 56px;
  margin-bottom: 56px;
}
.service-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.service-block h2 {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.service-block .tag-line {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 36px;
  align-items: start;
}

.service-description { line-height: 1.8; color: var(--text-light); margin-bottom: 20px; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.gallery-thumb {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

.gallery-thumb:hover { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox:target { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: var(--white);
  font-size: 2.5rem;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity var(--transition), color var(--transition);
  z-index: 10000;
  line-height: 1;
}

.lightbox-close:hover { opacity: 1; color: var(--accent); }

.lightbox-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  cursor: pointer;
}

/* Service Sidebar */
.service-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 90px;
}

.service-sidebar h4 {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  margin-top: 18px;
}

.service-sidebar h4:first-child { margin-top: 0; }

.service-sidebar ul { list-style: none; }

.service-sidebar li {
  color: var(--text-muted);
  padding: 5px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}

.service-sidebar li:last-child { border-bottom: none; }
.service-sidebar li::before { content: '▸ '; color: var(--accent); font-size: 0.72rem; }

/* ================================================================
   VIDEO-SEITE
   ================================================================ */
.video-section { background: var(--bg-dark); }
.video-wrapper { max-width: 820px; margin: 0 auto; }

.video-preview {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}

.video-preview:hover { border-color: var(--accent); }

.video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.video-preview:hover img { opacity: 0.85; }

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
  transition: transform var(--transition);
}

.video-preview:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.08); }

.video-play-btn::after {
  content: '';
  border: 0 solid transparent;
  border-left: 28px solid white;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  margin-left: 7px;
}

.video-notice {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.video-notice a { color: var(--accent); text-decoration: none; }
.video-notice a:hover { text-decoration: underline; }

.video-iframe-container {
  display: none;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--accent);
}

.video-iframe-container iframe { width: 100%; height: 100%; border: none; }

.firmentv-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
  text-align: center;
}

.firmentv-box p { color: var(--text-muted); margin-bottom: 16px; }

/* ================================================================
   REFERENZEN
   ================================================================ */
.referenzen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.referenz-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 20px;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color var(--transition), color var(--transition);
}

.referenz-item:hover { border-color: var(--accent); color: var(--accent); }
.referenz-item::before { content: '▸ '; color: var(--accent); font-size: 0.8rem; }

/* ================================================================
   ZERTIFIZIERUNGEN
   ================================================================ */
.quality-intro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
  color: var(--text-light);
  line-height: 1.8;
}

.cert-person {
  margin-bottom: 40px;
}

.cert-person h3 {
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.cert-list { list-style: none; padding: 0; }

.cert-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.93rem;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.cert-list li:last-child { border-bottom: none; }
.cert-list li::before { content: '▸'; color: var(--accent); flex-shrink: 0; }

.cert-list a { color: var(--accent); text-decoration: none; font-weight: 500; }
.cert-list a:hover { text-decoration: underline; }

/* ================================================================
   KONTAKTFORMULAR
   ================================================================ */
.kontakt-section { background: var(--bg-dark); }

.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-light);
}

.required { color: var(--accent); margin-left: 3px; }

.form-control {
  width: 100%;
  background: var(--bg-medium);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-control:focus { outline: none; border-color: var(--accent); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 130px; }

/* CAPTCHA-Box */
.captcha-box {
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 10px;
  color: var(--text-light);
  font-size: 1rem;
}

.captcha-box strong {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Honeypot – für Nutzer unsichtbar */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.checkbox-group { display: flex; gap: 10px; align-items: flex-start; }

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-group label { font-size: 0.87rem; color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.checkbox-group a { color: var(--accent); text-decoration: none; }

.form-submit { margin-top: 24px; }
.form-submit .btn { width: 100%; text-align: center; }

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 500;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(42,157,92,0.15);
  border: 1px solid #2a9d5c;
  color: #5dba87;
}

.alert-error {
  background: rgba(192,57,43,0.15);
  border: 1px solid #c0392b;
  color: #e05c4b;
}

.alert ul { list-style: disc; margin: 8px 0 0 20px; }
.alert li { margin-bottom: 4px; }

/* Direktkontakt-Karte (Kontakt-Seite) */
.direktkontakt {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.direktkontakt h3 { color: var(--accent); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.direktkontakt p { color: var(--text-light); line-height: 1.9; font-size: 0.93rem; margin-bottom: 12px; }
.direktkontakt p:last-child { margin-bottom: 0; }
.direktkontakt strong { color: var(--text-light); display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
.direktkontakt a { color: var(--accent); text-decoration: none; }
.direktkontakt a:hover { text-decoration: underline; }

/* ================================================================
   RECHTLICHE SEITEN (Impressum, Datenschutz)
   ================================================================ */
.legal-section { background: var(--bg-dark); }
.legal-content { max-width: 820px; }

.legal-content h2 {
  color: var(--accent);
  font-size: 1.4rem;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-content > h2:first-child { margin-top: 0; }

.legal-content h3 { color: var(--text-light); font-size: 1.05rem; margin: 22px 0 8px; }

.legal-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }

.legal-content a { color: var(--accent); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

.legal-content ul { margin: 10px 0 14px 22px; color: var(--text-muted); line-height: 1.8; }

.legal-content strong { color: var(--text-light); }

.legal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}

.legal-box p { margin-bottom: 5px; }
.legal-box p:last-child { margin-bottom: 0; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--primary);
  padding: 22px 0;
  border-top: 3px solid var(--accent);
}

.site-footer p { color: var(--text-muted); font-size: 0.87rem; text-align: center; }

.site-footer a { color: var(--text-light); text-decoration: none; transition: color var(--transition); }
.site-footer a:hover { color: var(--accent); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .about-grid,
  .kontakt-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary);
    border-top: 1px solid var(--border);
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.35);
  }

  .site-nav.open { display: block; }

  .site-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }

  .site-nav a { display: block; padding: 12px 20px; border-radius: 0; }

  .section-title { font-size: 1.65rem; }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

  .hero { min-height: 70vh; }

  .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  section { padding: 48px 0; }
  .form-card { padding: 22px; }
  .page-header { padding: 36px 0 28px; }
  .page-header h1 { font-size: 1.7rem; }
}
