/* ============================================================
   SEA Saarland Elektroanlagenbau GmbH — Joomla Styles
   ------------------------------------------------------------
   - Über head-links.txt einbinden ODER Inhalt ans Ende der
     template.css kopieren (manche Server laden nur template.css).
   - Alle Klassen mit "sea-" geprefixt (Template-CSS-Kollisionen).
   - Mobile-First. Nav-Regeln nutzen !important gegen Template-CSS.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");

:root {
  --sea-primary: #2a3990;
  --sea-primary-dark: #232f73;
  --sea-deepblue: #11316d;
  --sea-accent: #1a73e8;
  --sea-dark: #3a3a3a;
  --sea-text: #5a5a5a;
  --sea-heading: #6b6b6b;
  --sea-grey-band: #c9c9c9;
  --sea-border: #e2e2e2;
  --sea-container: 1170px;
}

/* ---------- Overflow-Schutz: kein horizontales Scrollen ---------- */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100%; }
.sea-section, .sea-parallax, .sea-cta-band, .sea-komp-band,
.sea-hero-start, .sea-page-hero, .sea-footer, .sea-gmap-container { max-width: 100%; }

/* box-sizing: Padding zählt zur Breite -> Container/Bänder überstehen nicht */
.sea-topbar, .sea-topbar *,
.sea-header, .sea-header *,
.sea-section, .sea-section *,
.sea-parallax, .sea-parallax *,
.sea-cta-band, .sea-cta-band *,
.sea-komp-band, .sea-komp-band *,
.sea-hero-start, .sea-hero-start *,
.sea-page-hero, .sea-page-hero *,
.sea-footer, .sea-footer *,
.sea-cookie-banner, .sea-cookie-banner *,
.sea-container, .sea-container * { box-sizing: border-box; }

/* Mobil-Overflow: lange Komposita brechen, Flex-Kinder dürfen schrumpfen.
   WICHTIG: .sea-container behält seine zentrierte max-width (var(--sea-container)) —
   hier NUR min-width:0 + Wortumbruch, KEIN max-width:100% (das würde die
   Zentrierung killen und den Text an den Rand drücken). */
.sea-container { min-width: 0; }
.sea-parallax .sea-container,
.sea-cta-band .sea-container,
.sea-footer-main .sea-container { flex-wrap: wrap; }
.sea-leistung-card { min-width: 0; max-width: 100%; }
.sea-leistung-card,
.sea-leistung-card h2, .sea-leistung-card h3, .sea-leistung-card p, .sea-leistung-card li,
.sea-section-title, .sea-page-hero h1, .sea-hero-start h1,
.sea-cta-band h2, .sea-karriere-intro h2, .sea-job h2,
.sea-text-block p, .sea-leistung-intro, .sea-ref-intro {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* ---------- Schrift erzwingen ---------- */
.sea-topbar, .sea-topbar *,
.sea-header, .sea-header *,
.sea-footer, .sea-footer *,
.sea-section, .sea-section *,
.sea-parallax, .sea-parallax *,
.sea-cta-band, .sea-cta-band *,
.sea-komp-band, .sea-komp-band *,
.sea-hero-start, .sea-hero-start *,
.sea-page-hero, .sea-page-hero *,
.sea-cookie-banner, .sea-cookie-banner *,
.sea-to-top {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif !important;
}

/* Grundtypografie: größer & luftiger (wie Original) */
.sea-section, .sea-parallax, .sea-cta-band, .sea-komp-band, .sea-hero-start {
  font-size: 17px;
  line-height: 1.85;
}

/* ---------- Basis ---------- */
.sea-container {
  width: 100%;
  max-width: var(--sea-container);
  margin: 0 auto;
  padding: 0 20px;
}
.sea-section { padding: 90px 0; }
.sea-section-sm { padding: 60px 0; }

.sea-btn {
  display: inline-block;
  background: var(--sea-primary);
  color: #fff;
  padding: 15px 34px;
  font-size: 1.02rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s ease;
  font-weight: 400;
  text-decoration: none;
  line-height: 1.4;
}
.sea-btn:hover { background: var(--sea-primary-dark); color: #fff; }
.sea-btn-outline { background: transparent; border: 1px solid #fff; color: #fff; }
.sea-btn-outline:hover { background: #fff; color: var(--sea-primary); }
.sea-btn-ghost { background: transparent; border: 1px solid #6a6a6a; color: #e6e6e6; }
.sea-btn-ghost:hover { background: #444; color: #fff; }

/* ---------- TOPBAR ---------- */
.sea-topbar { border-bottom: 1px solid var(--sea-border); font-size: 1rem; background: #fff; }
.sea-topbar .sea-container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; min-height: 50px; }
.sea-topbar a { color: var(--sea-primary); font-weight: 700; text-decoration: none; }
.sea-tb-phone { padding: 6px 16px; }
.sea-tb-mail { padding: 6px 16px; }

/* ---------- HEADER / NAV ---------- */
.sea-header { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 3px solid var(--sea-primary); }
.sea-header-inner { display: flex !important; align-items: center; justify-content: space-between; min-height: 88px; }
.sea-logo { display: inline-block; line-height: 0; }
.sea-logo img { width: 190px; height: auto; }

.sea-nav-toggle {
  display: inline-flex !important; align-items: center; justify-content: center;
  position: relative; width: 46px; height: 46px;
  background: transparent; border: none; cursor: pointer; padding: 0; line-height: 0;
}
.sea-nav-toggle .sea-burger-bars {
  position: relative; display: block !important; width: 26px; height: 3px;
  background: var(--sea-primary) !important; border-radius: 2px;
  font-size: 0; color: transparent; transition: background .2s ease;
}
.sea-nav-toggle .sea-burger-bars::before,
.sea-nav-toggle .sea-burger-bars::after {
  content: ""; position: absolute; left: 0; width: 26px; height: 3px;
  background: var(--sea-primary); border-radius: 2px;
  transition: transform .25s ease, top .25s ease, bottom .25s ease;
}
.sea-nav-toggle .sea-burger-bars::before { top: -8px; }
.sea-nav-toggle .sea-burger-bars::after  { bottom: -8px; }
.sea-nav-toggle[aria-expanded="true"] .sea-burger-bars { background: transparent !important; }
.sea-nav-toggle[aria-expanded="true"] .sea-burger-bars::before { top: 0; transform: rotate(45deg); }
.sea-nav-toggle[aria-expanded="true"] .sea-burger-bars::after  { bottom: 0; transform: rotate(-45deg); }

.sea-main-nav {
  position: fixed !important; top: 0; right: 0;
  height: 100vh !important; height: 100dvh !important;
  width: 290px; max-width: 85%;
  background: #fff !important; box-shadow: -4px 0 22px rgba(0,0,0,.18);
  transform: translateX(100%); transition: transform .3s ease;
  z-index: 1200 !important; padding: 88px 28px 28px !important; overflow-y: auto;
}
.sea-main-nav.sea-open { transform: translateX(0) !important; }
.sea-main-nav ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column !important; gap: 0 !important; }
.sea-main-nav li { margin: 0 !important; }
.sea-main-nav a {
  display: block !important; padding: 15px 0 !important; width: 100%;
  color: var(--sea-heading) !important; text-transform: uppercase; letter-spacing: .5px;
  font-size: 1.05rem; text-decoration: none; border-bottom: 1px solid #eee; transition: color .2s ease;
}
.sea-main-nav a:hover, .sea-main-nav a.sea-active { color: var(--sea-primary) !important; }

/* ---------- HERO / SECTIONS ---------- */
.sea-bg-img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; z-index: 0; display: block; margin: 0 !important; }
.sea-bg-overlay { position: absolute; inset: 0; z-index: 1; }

.sea-hero-start {
  position: relative; min-height: 440px; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; width: 100%; margin-left: 0; overflow: hidden;
}
.sea-hero-start .sea-bg-overlay { background: rgba(40,45,70,.45); }
.sea-hero-start .sea-container { position: relative; z-index: 2; }
.sea-hero-start .sea-eyebrow { text-transform: uppercase; letter-spacing: 1px; font-size: 1.05rem; margin-bottom: 14px; color: #e6e6e6; }
.sea-hero-start h1 { color: #fff; font-size: 2.5rem; font-weight: 300; margin-bottom: 30px; line-height: 1.2; }

.sea-page-hero {
  position: relative; min-height: 280px; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; width: 100%; margin-left: 0; overflow: hidden;
}
.sea-page-hero .sea-bg-overlay { background: rgba(30,35,55,.35); }
.sea-page-hero .sea-hero-inner { position: relative; z-index: 2; padding: 0 20px; }
.sea-page-hero h1 { color: #fff; font-size: 2.4rem; font-weight: 300; margin: 0; line-height: 1.2; }
.sea-page-hero .sea-hero-rule { width: 90px; height: 2px; background: #fff; margin: 20px auto 0; }

.sea-section-title { text-align: center; font-size: 2.3rem; font-weight: 300; color: var(--sea-heading); margin: 0 0 22px; line-height: 1.25; }
.sea-title-rule { width: 120px; height: 3px; background: #c4c4c4; margin: 0 auto 40px; }
.sea-title-left { text-align: left; }
.sea-rule-left { margin-left: 0; }

.sea-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Kompetenzfelder (mit Hover-Overlay) ---------- */
.sea-komp-band { background: var(--sea-grey-band); width: 100%; margin-left: 0; }
.sea-komp-grid { display: grid; grid-template-columns: 1fr; gap: 26px; max-width: var(--sea-container); margin: 0 auto; padding: 40px 22px; }
.sea-komp-tile {
  position: relative; display: block; overflow: hidden; text-decoration: none;
  height: 220px;
}
.sea-komp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sea-komp-tile:hover img { transform: scale(1.06); }
.sea-komp-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(42, 57, 144, 0); transition: background .35s ease;
}
.sea-komp-tile:hover .sea-komp-overlay { background: rgba(42, 57, 144, 0.78); }
.sea-komp-label {
  color: #fff; font-size: 1.5rem; font-weight: 300; letter-spacing: .5px;
  text-align: center; padding: 0 14px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
.sea-komp-tile:hover .sea-komp-label { opacity: 1; transform: none; }
.sea-komp-cta { text-align: center; padding-bottom: 48px; }

/* ---------- Features ---------- */
.sea-features { display: grid; grid-template-columns: 1fr; gap: 34px; margin-top: 10px; }
.sea-feature h3 { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; color: var(--sea-heading); margin: 0 0 14px; font-weight: 300; }
.sea-feature h3 i { color: #555; font-size: 1.3rem; }
.sea-feature p { font-size: 1.05rem; margin: 0; }

/* ---------- CTA-Band ---------- */
.sea-cta-band { background: var(--sea-primary); color: #fff; padding: 64px 0; width: 100%; margin-left: 0; }
.sea-cta-band .sea-container { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.sea-cta-band h2 { color: #fff; font-size: 2rem; font-weight: 300; margin: 0; line-height: 1.25; }
.sea-cta-band .sea-cta-text p { color: #f0f0f0; margin: 12px 0 0; font-size: 1.08rem; }

/* ---------- Über uns ---------- */
.sea-text-block { max-width: var(--sea-container); margin: 0 auto; }
.sea-text-block .sea-lead { font-size: 1.18rem; margin-bottom: 34px; line-height: 1.85; }
.sea-text-block p { font-size: 1.08rem; }
.sea-two-col { display: grid; grid-template-columns: 1fr; gap: 28px; }

/* ---------- LEISTUNGEN — Parallax ---------- */
.sea-leistung-intro { text-align: center; max-width: 900px; margin: 0 auto; font-size: 1.18rem; line-height: 1.85; }
.sea-parallax { position: relative; width: 100%; margin-left: 0; overflow: hidden; }
.sea-parallax .sea-bg-overlay { z-index: 1; }
.sea-parallax.is-blue  .sea-bg-overlay { background: rgba(17, 49, 109, 0.86); }
.sea-parallax.is-light .sea-bg-overlay { background: rgba(255, 255, 255, 0.90); }
.sea-parallax .sea-container { position: relative; z-index: 2; display: flex; padding-top: 64px; padding-bottom: 64px; }
.sea-leistung-card { width: 100%; }
.sea-leistung-card h2 { font-size: 1.85rem; margin: 0 0 20px; font-weight: 300; line-height: 1.25; }
.sea-leistung-card h3 { font-size: 1.4rem; margin: 28px 0 12px; font-weight: 400; }
.sea-leistung-card p { margin: 0 0 16px; font-size: 1.06rem; line-height: 1.85; }
.sea-leistung-card ul { list-style: none; margin: 14px 0 16px; padding: 0; }
.sea-leistung-card li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 1.06rem; }
.sea-leistung-card li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 50%; }
.is-blue .sea-leistung-card, .is-blue .sea-leistung-card h2, .is-blue .sea-leistung-card h3 { color: #fff; }
.is-blue .sea-leistung-card li::before { background: #fff; }
.is-light .sea-leistung-card, .is-light .sea-leistung-card p { color: #4a4a4a; }
.is-light .sea-leistung-card h2, .is-light .sea-leistung-card h3 { color: var(--sea-primary); }
.is-light .sea-leistung-card li::before { background: var(--sea-primary); }

/* ---------- Referenzen ---------- */
.sea-ref-intro { text-align: center; max-width: 1000px; margin: 0 auto; font-size: 1.22rem; line-height: 1.85; color: var(--sea-text); }

/* ---------- Karriere ---------- */
.sea-karriere-intro { text-align: center; max-width: 800px; margin: 0 auto; }
.sea-karriere-intro h2 { font-size: 2.4rem; color: var(--sea-heading); font-weight: 300; margin: 0 0 34px; line-height: 1.2; }
.sea-karriere-intro p { margin: 0 0 18px; font-size: 1.1rem; }
.sea-karriere-jobs { display: grid; grid-template-columns: 1fr; gap: 34px; margin-top: 54px; }
.sea-karriere-jobs .sea-job-img { order: -1; }
.sea-karriere-jobs .sea-job-img img { width: 100%; display: block; }
.sea-job h2 { font-size: 1.65rem; color: var(--sea-heading); font-weight: 300; margin: 0 0 16px; }
.sea-job h4 { font-size: 1.08rem; color: var(--sea-text); font-weight: 400; margin: 0 0 12px; }
.sea-job p { margin: 0 0 28px; font-size: 1.06rem; line-height: 1.8; }

/* ---------- Kontakt ---------- */
.sea-gmap-container { width: 100%; margin-left: 0; height: 380px; background: #e9e9e9; }
.sea-gmap-container iframe { width: 100%; height: 100%; border: 0; display: block; }
.sea-kontakt-cta { padding: 80px 0; }
.sea-kontakt-cta p { font-size: 1.9rem; font-weight: 300; color: var(--sea-heading); line-height: 1.45; max-width: 1000px; margin: 0; }

/* ---------- FOOTER ---------- */
.sea-footer { background: var(--sea-dark); color: #cfcfcf; width: 100%; margin-left: 0; }
.sea-footer-main { padding: 52px 0; }
.sea-footer-main .sea-container { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.sea-footer-logo img { width: 200px; }
.sea-footer-col p, .sea-footer-col a { color: #d2d2d2; font-size: 1.04rem; line-height: 1.95; text-decoration: none; }
.sea-footer-col a:hover { color: #fff; }
.sea-footer-bottom { border-top: 1px solid #4a4a4a; padding: 18px 0; font-size: .88rem; color: #9a9a9a; }
.sea-footer-bottom .sea-container { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sea-footer-bottom a { color: #9a9a9a; text-decoration: none; }
.sea-footer-bottom a:hover { color: #fff; }
.agency-branding p { color: #9a9a9a; font-size: .85rem; margin: 0; }
.agency-branding a { color: #b9b9b9; }

/* ---------- Scroll-to-top ---------- */
.sea-to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; background: var(--sea-primary); color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 2px; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; z-index: 800; }
.sea-to-top.sea-show { opacity: 1; visibility: visible; }
.sea-to-top:hover { background: var(--sea-primary-dark); color: #fff; }

/* ---------- Cookie-Banner ---------- */
.sea-cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #2e2e2e; color: #e6e6e6; padding: 18px 20px; z-index: 1000; display: none; }
.sea-cookie-banner.sea-show { display: block; }
.sea-cookie-banner .sea-container { display: flex; flex-direction: column; gap: 14px; }
.sea-cookie-banner p { margin: 0; font-size: .98rem; }
.sea-cookie-banner a { color: #9fc0ff; }
.sea-cookie-actions { display: flex; gap: 12px; }

/* ---------- 404 / Datenschutz ---------- */
.sea-error { text-align: center; padding: 110px 0; }
.sea-error h1 { font-size: 5.5rem; color: var(--sea-primary); font-weight: 300; margin: 0; }
.sea-error h2 { font-size: 1.8rem; color: var(--sea-heading); margin: 10px 0 26px; font-weight: 300; }

/* ---------- Reveal ---------- */
.sea-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.sea-reveal.sea-visible { opacity: 1; transform: none; }

/* ============================================================
   TABLET / DESKTOP
   ============================================================ */
@media (min-width: 768px) {
  .sea-komp-grid { grid-template-columns: repeat(3, 1fr); }
  .sea-features { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .sea-two-col { grid-template-columns: 1fr 1fr; gap: 64px; }
  .sea-footer-main .sea-container { grid-template-columns: 1fr 1fr 1fr; gap: 44px; }
  .sea-footer-col { border-left: 1px solid #555; padding-left: 38px; }
  .sea-footer-bottom .sea-container { flex-direction: row; justify-content: space-between; align-items: center; }
  .sea-cta-band .sea-container { flex-direction: row; justify-content: space-between; align-items: center; }
  .sea-cookie-banner .sea-container { flex-direction: row; justify-content: space-between; align-items: center; }

  .sea-section { padding: 100px 0; }
  .sea-hero-start { min-height: 520px; }
  .sea-hero-start h1 { font-size: 3.4rem; }
  .sea-page-hero { min-height: 380px; }
  .sea-page-hero h1 { font-size: 3.1rem; }
  .sea-section-title { font-size: 2.7rem; }
  .sea-karriere-intro h2 { font-size: 2.8rem; }
  .sea-kontakt-cta p { font-size: 2.4rem; }
  .sea-gmap-container { height: 520px; }

  .sea-karriere-jobs { grid-template-columns: 1fr 0.7fr; gap: 54px; align-items: start; }
  .sea-karriere-jobs .sea-job-img { order: 0; }

  .sea-parallax .sea-container { padding-top: 88px; padding-bottom: 88px; }
  .sea-leistung-card { width: 52%; max-width: 560px; }
  .sea-parallax.is-blue .sea-container { justify-content: flex-start; }
  .sea-parallax.is-light .sea-container { justify-content: flex-end; }
  .sea-parallax.is-light .sea-leistung-card { padding-left: 22px; }
  .sea-leistung-card h2 { font-size: 2rem; }
}

@media (min-width: 992px) {
  .sea-nav-toggle { display: none !important; }
  .sea-main-nav {
    position: static !important; height: auto !important; width: auto !important; max-width: none !important;
    background: transparent !important; box-shadow: none !important; transform: none !important;
    padding: 0 !important; overflow: visible !important;
  }
  .sea-main-nav ul { flex-direction: row !important; gap: 36px !important; align-items: center; }
  .sea-main-nav a { width: auto; padding: 6px 2px !important; border-bottom: none !important; position: relative; font-size: 1.05rem; }
  .sea-main-nav a.sea-active { color: #2e2e2e !important; }
  .sea-main-nav a.sea-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 4px; background: #9a9a9a; }
  .sea-header-inner { min-height: 128px; }
  .sea-logo img { width: 240px; }
  .sea-topbar .sea-container { justify-content: flex-end; }
}
