/* ============================================================================
   MENATEC – One-Pager Styles
   Industrielles Blau-Grau. Mobile-First, einfach gehalten.
   Farben:
     Primär  #1a3a5c  (Blau)
     Akzent  #e8731c  (Orange)
     BG hell #f5f6f8
     Text    #222
   Schrift: System-Schriftarten (DSGVO – keine Google Fonts per CDN).
   ============================================================================ */

:root {
  --primary: #1a3a5c;
  --accent: #e8731c;
  --bg: #f5f6f8;
  --text: #222;
  --white: #ffffff;
  --border: #dfe3e8;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* DSGVO: System-Schriftarten (kein Google-Fonts-CDN). Für eine eigene Schrift
     eine lokal gehostete woff2-Datei per @font-face einbinden – NICHT über ein CDN. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { color: var(--primary); line-height: 1.2; }

/* Anker-Offset, damit sticky Header nicht über Überschriften liegt */
section[id] { scroll-margin-top: 80px; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border: 2px solid transparent;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: #d2640f; border-color: #d2640f; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
/* Outline-Button (z. B. "Ablehnen" im Cookie-Banner) – gleichwertig zum Accept-Button */
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ----- Cookie-Hinweis-Banner ----- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 940px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 30px rgba(26, 58, 92, 0.22);
  padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
}
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; flex: 1 1 320px; font-size: 0.9rem; color: #333; }
.cookie-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cookie-link { font-size: 0.9rem; white-space: nowrap; }
.cookie-banner .btn { padding: 10px 22px; }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  text-decoration: none;
  display: flex; align-items: center;
}
/* Bild-Logo im Header */
.logo-img { height: 34px; width: auto; display: block; }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--accent); }

.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  background: none; border: none; font: inherit; font-weight: 600;
  color: #8a939c; cursor: pointer; padding: 4px;
}
.lang-btn.is-active { color: var(--primary); text-decoration: underline; }
.lang-sep { color: var(--border); }

/* ============================= HERO ============================= */
.hero {
  position: relative;
  background: url("images/refinery-3127588.avif") center/cover no-repeat;
  color: var(--white);
  min-height: 88vh;            /* großer Banner – füllt fast den ganzen Bildschirm */
  display: flex;
  align-items: center;         /* Inhalt vertikal zentriert */
}
.hero-overlay { position: absolute; inset: 0; background: rgba(26, 58, 92, 0.72); }
.hero-content { position: relative; padding: 70px 20px; max-width: 880px; }
.hero-title {
  color: var(--white);
  font-size: 2.2rem;
  margin: 0 0 18px;
}
.hero-sub { font-size: 1.1rem; margin: 0 0 16px; }
.hero-support { font-size: 0.98rem; color: #dbe3ec; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================ SEKTIONEN ============================ */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-title { text-align: center; font-size: 2rem; margin: 0 0 16px; }
.section-intro {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
  color: #444;
}

/* ----- Über uns ----- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.about-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.about-text h2 { font-size: 2rem; margin-top: 0; }

/* ----- Märkte (Chips) ----- */
.chip-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.chip-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 12px 18px;
  border-radius: 3px;
  font-weight: 500;
}
.section-alt .chip-list li { background: var(--white); }

/* ----- Produkte: Karten-Raster (Desktop) ----- */
/* Horizontales Swipe-Karussell (alle Bildschirmgrößen) mit Scroll-Snap.
   Desktop zeigt ~3 Karten, Tablet ~2, Handy ~1 (nächste Karte teasert an). */
.product-cards {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Scrollbar ausblenden (Firefox) */
  padding-bottom: 6px;
  scroll-padding-left: 0;
}
.product-cards::-webkit-scrollbar { display: none; }  /* Scrollbar ausblenden (WebKit) */
.product-card {
  flex: 0 0 calc((100% - 48px) / 3);   /* 3 Karten sichtbar (2 × 24px gap) */
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(26, 58, 92, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Großes Bild oben, einheitliche Höhe, leichter Hover-Zoom */
.product-card-media { overflow: hidden; }
.product-card-img {
  width: 100%; height: 210px; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-img { transform: scale(1.05); }
.product-card-body { padding: 18px 20px 22px; }
.product-card-body h3 { margin: 0 0 12px; font-size: 1.2rem; }
.product-card-body ul {
  margin: 0; padding: 0; list-style: none;
  font-size: 0.92rem;
}
.product-card-body li { padding-left: 16px; position: relative; color: #444; margin-bottom: 6px; }
.product-card-body li::before {
  content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* Hinweis-Zeile + Pfeil-Buttons unter dem Karussell */
.carousel-controls {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 16px;
}
.carousel-hint {
  text-align: center; color: #8a939c; font-size: 0.85rem; margin: 0;
}
.carousel-btn {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white);
  color: var(--primary); font-size: 1.2rem; line-height: 1; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.carousel-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn:disabled:hover { background: var(--white); color: var(--primary); border-color: var(--border); }
/* Pfeil-Buttons nur auf größeren Screens (am Rechner) – mobil wird gewischt */
@media (max-width: 768px) {
  .carousel-btn { display: none; }
}

/* Tablet: 2 Karten sichtbar */
@media (max-width: 1000px) {
  .product-card { flex: 0 0 calc((100% - 24px) / 2); }
}
/* Handy: 1 Karte sichtbar, nächste teasert an */
@media (max-width: 640px) {
  .product-cards { gap: 16px; }
  .product-card { flex: 0 0 85%; }
}

/* ----- Leistungen ----- */
.services-layout { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; }
.services-media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: 4px; }
.services-intro { margin-top: 0; color: #444; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.service-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 26px;
}
.service-block h3 { margin: 0 0 14px; font-size: 1.25rem; }
.service-block ul { margin: 0; padding-left: 20px; }
.service-block li { margin-bottom: 8px; color: #444; }

/* ----- Warum MENATEC (Benefits) ----- */
.benefit-list {
  max-width: 760px; margin: 0 auto; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.benefit-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 14px 18px 14px 44px;
  position: relative;
}
.benefit-list li::before {
  content: "✓";
  position: absolute; left: 16px; top: 14px;
  color: var(--accent); font-weight: 700;
}

/* ----- Zertifizierungen ----- */
.cert-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.cert-list li {
  background: var(--primary); color: var(--white);
  padding: 12px 22px; border-radius: 3px; font-weight: 600;
}

/* ----- Standort ----- */
.location-images { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
.location-images img { width: 100%; height: 280px; object-fit: cover; border-radius: 4px; }
.location-address { font-style: normal; font-size: 1.1rem; text-align: center; margin-bottom: 22px; }
.map-placeholder {
  background: #e4e7eb; border: 1px dashed #b9c0c8; color: #6b7480;
  text-align: center; padding: 40px 20px; border-radius: 4px; font-size: 0.95rem;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.map-placeholder .map-hint { margin: 0; }
/* Nach Einwilligung: eingebettete Karte */
.map-embed { width: 100%; height: 300px; border: 0; border-radius: 4px; display: block; }

/* ----- Kontakt ----- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.contact-info h2 { font-size: 2rem; margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 16px 0 20px; }
.contact-list li { margin-bottom: 10px; }
.contact-photo { width: 100%; height: 220px; object-fit: cover; border-radius: 4px; margin-bottom: 16px; }

/* ----- Impressum ----- */
.legal { max-width: 760px; margin: 0 auto; }
.legal p { color: #444; }
.legal-list { list-style: none; padding: 0; margin: 16px 0 0; }
.legal-list li { margin-bottom: 8px; }

/* ----- Datenschutz-Seite (langer Rechtstext) ----- */
.legal-doc { max-width: 820px; margin: 0 auto; }
.legal-doc h1 { font-size: 2rem; margin: 0 0 8px; }
.legal-doc h2 { font-size: 1.35rem; margin: 32px 0 10px; }
.legal-doc h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.legal-doc p { color: #333; }
.legal-doc ul { color: #333; padding-left: 22px; margin: 8px 0 14px; }
.legal-doc li { margin-bottom: 6px; }
.legal-note {
  background: #fff7ec; border: 1px solid #f0d8b8; border-left: 4px solid var(--accent);
  padding: 14px 18px; border-radius: 4px; font-size: 0.9rem; margin: 0 0 26px;
}
/* Sichtbar markierte Platzhalter, die vor Live-Gang gefüllt werden müssen */
.ph { background: #fdf3d6; padding: 0 5px; border-radius: 3px; font-weight: 600; }

.contact-form { display: flex; flex-direction: column; }
.contact-form label { font-weight: 600; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  font: inherit; padding: 10px 12px; margin-bottom: 18px;
  border: 1px solid var(--border); border-radius: 3px; background: var(--white);
}
.contact-form textarea { resize: vertical; }

.form-consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
/* Honeypot-Feld: visuell entfernt, aber im DOM (Spam-Schutz) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent input { margin-top: 5px; }
.form-consent label { font-weight: 400; }

.form-note { font-size: 0.85rem; color: #6b7480; margin: 0 0 18px; }
.form-confirm {
  margin-top: 16px; padding: 12px 16px;
  background: #e6f2e9; border: 1px solid #b6d8c1; color: #1f6b3a; border-radius: 3px;
}

/* ============================= FOOTER ============================= */
.site-footer { background: var(--primary); color: #cdd6e0; padding: 30px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.footer-brand { margin: 0; font-weight: 700; color: var(--white); letter-spacing: 0.5px; }
.footer-copy { margin: 0; font-size: 0.9rem; }
.footer-links { display: flex; gap: 20px; justify-content: center; }
.footer-links a { color: #cdd6e0; }
.footer-links a:hover { color: var(--accent); }

/* ============================================================================
   RESPONSIVE – ab Tablet/Desktop mehrspaltig
   ============================================================================ */
@media (min-width: 700px) {
  .hero-content { padding: 80px 20px; }
  .hero-title { font-size: 3rem; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .services-layout { grid-template-columns: 0.9fr 1.1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .location-images { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
