/* EnergyFlow GmbH - styles-v1.css
   Glassmorphism, deep navy + copper + blue palette. RTL support. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-0: #050c18;
  --bg-1: #0a1628;
  --bg-2: #0f1e35;
  --bg-3: #162b4a;
  --surface: rgba(22, 43, 74, 0.45);
  --surface-2: rgba(22, 43, 74, 0.70);
  --glass-border: rgba(184, 115, 51, 0.22);
  --glass-border-strong: rgba(184, 115, 51, 0.45);
  --fg-0: #f4f7fb;
  --fg-1: #e8eef5;
  --fg-2: #b6c0d4;
  --fg-3: #8892a8;
  --accent-copper: #B87333;
  --accent-copper-bright: #d49359;
  --accent-blue: #3B82E0;
  --accent-blue-dim: #2a5fb0;
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1180px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-1);
  background: var(--bg-1);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(184, 115, 51, 0.12), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(59, 130, 224, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 40%, var(--bg-1) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

body[dir="rtl"] { direction: rtl; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--fg-0);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-family: var(--body); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; color: var(--fg-2); }
a { color: var(--accent-copper-bright); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-copper); }

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-copper);
  margin-bottom: 1rem;
}

/* Container */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 0;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.brand-text { font-family: var(--display); font-size: 1.25rem; color: var(--fg-0); font-weight: 600; letter-spacing: -0.01em; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--fg-2);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.primary-nav a:hover { color: var(--fg-0); background: rgba(255, 255, 255, 0.04); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-dropdown { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--fg-1);
  font-family: var(--body);
  font-size: 0.87rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-toggle:hover { background: rgba(184, 115, 51, 0.1); border-color: var(--glass-border-strong); }
.lang-toggle::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-inline-start: 4px;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background: rgba(15, 30, 53, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 6px;
  min-width: 180px;
  max-height: 420px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.lang-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-opt {
  display: block;
  width: 100%;
  text-align: start;
  background: transparent;
  border: 0;
  color: var(--fg-2);
  font-family: var(--body);
  font-size: 0.92rem;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-opt:hover { background: rgba(184, 115, 51, 0.12); color: var(--fg-0); }
.lang-opt.is-active { background: rgba(184, 115, 51, 0.18); color: var(--accent-copper-bright); }

.nav-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
  color: var(--fg-0);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor;
  position: relative; transition: transform var(--transition);
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 12, 24, 0.18) 0%, rgba(5, 12, 24, 0.42) 75%, var(--bg-1) 100%),
    linear-gradient(90deg, rgba(5, 12, 24, 0.10) 0%, transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-content { max-width: min(960px, 80vw); }
.hero h1 {
  margin-bottom: 0.4em;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.85),
    0 4px 20px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(0, 0, 0, 0.4);
}
.hero-tagline {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  color: var(--accent-copper-bright);
  margin: 0.5em 0 1.2em;
  line-height: 1.4;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.8),
    0 4px 16px rgba(0, 0, 0, 0.55);
}
.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--fg-0);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.85),
    0 2px 12px rgba(0, 0, 0, 0.65);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 500; font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 8px;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-copper);
  color: var(--bg-0);
  border-color: var(--accent-copper);
}
.btn-primary:hover { background: var(--accent-copper-bright); color: var(--bg-0); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(184, 115, 51, 0.35); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg-0);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--glass-border-strong); color: var(--fg-0); }

/* Sections */
.section { padding: 100px 0; position: relative; }
/* Fließtext uses the full container width (matches the focus-grid, where the
   rightmost card ends). The .wrap container (max-width 1180px, 24px padding)
   is the outer constraint. This gives prose the same horizontal reach as the
   cards below, and scales fluidly down to mobile. */
.section-head, .section-body { max-width: 100%; margin-bottom: 0; }
.section-head { margin-bottom: 52px; }
.section-body p { color: var(--fg-2); font-size: clamp(1.02rem, 0.95rem + 0.25vw, 1.12rem); line-height: 1.75; }

/* Glass cards for Investment Focus */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.focus-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.focus-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-strong);
  background: var(--surface-2);
}
.focus-card h3 {
  color: var(--accent-copper-bright);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.7em;
}
.focus-card p { font-size: 0.97rem; line-height: 1.7; margin: 0; }

/* Section with image */
.section-with-image {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.section-with-image .image-holder {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.section-with-image img { width: 100%; height: auto; display: block; }

/* Exposures list */
.exposures-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
}
.exposures-list li {
  position: relative;
  padding-inline-start: 28px;
  margin-bottom: 14px;
  color: var(--fg-1);
  font-size: 1.02rem;
  line-height: 1.65;
}
.exposures-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 14px;
  height: 1px;
  background: var(--accent-copper);
}
body[dir="rtl"] .exposures-list li::before { background: var(--accent-copper); }

/* Contact card */
.contact-card {
  background: var(--surface-2);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border-strong);
  border-radius: 16px;
  padding: 40px 36px;
  margin-top: 40px;
  max-width: 640px;
  border-top: 3px solid var(--accent-copper);
}
.contact-card h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.2em;
  color: var(--fg-0);
}
.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .label { color: var(--fg-3); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.contact-row .value { color: var(--fg-0); font-size: 1rem; }
.contact-row .value a { color: var(--accent-copper-bright); }

/* Footer */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 12, 24, 0.6);
  margin-top: 40px;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.footer-top { display: flex; align-items: center; gap: 14px; }
.footer-top img { height: 40px; }
.footer-tagline { font-family: var(--display); font-size: 1.05rem; color: var(--fg-1); font-style: italic; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 18px 28px; color: var(--fg-3); font-size: 0.88rem; }
.footer-meta a { color: var(--fg-2); }
.footer-meta a:hover { color: var(--accent-copper-bright); }
.footer-bottom { color: var(--fg-3); font-size: 0.84rem; }

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 12, 24, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  overflow-y: auto;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  max-width: 760px;
  width: 100%;
  padding: 48px 44px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal-card h2 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1em;
  color: var(--fg-0);
}
.modal-card h3 { font-size: 1.1rem; margin-top: 1.4em; color: var(--fg-0); }
.modal-card p, .modal-card li { font-size: 0.95rem; color: var(--fg-2); line-height: 1.65; }
.modal-card .dl-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.modal-card .dl-row:last-child { border: 0; }
.modal-card .dl-row .k { color: var(--fg-3); font-size: 0.88rem; }
.modal-card .dl-row .v { color: var(--fg-1); font-size: 0.95rem; }
.modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 36px; height: 36px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg-1);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(184, 115, 51, 0.2); color: var(--fg-0); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Divider */
.section-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--accent-copper), transparent);
  margin-bottom: 2rem;
}
body[dir="rtl"] .section-divider { background: linear-gradient(-90deg, var(--accent-copper), transparent); }

/* Responsive */
@media (max-width: 900px) {
  .section-with-image { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 70px 0; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-block; }
  .primary-nav {
    position: fixed;
    top: 70px;
    inset-inline-end: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(15, 30, 53, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 10px;
    min-width: 240px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  }
  .primary-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .primary-nav a { padding: 10px 16px; }
  .hero { min-height: auto; padding: 120px 0 80px; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
  .modal-card { padding: 36px 24px 28px; }
  .modal-card .dl-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 480px) {
  .brand-text { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}


/* === V2 ADDITIONS: contact-with-logo layout, section variants === */

.section-tinted {
  background: rgba(5, 12, 24, 0.35);
}

.section-img-block {
  padding-top: 0;
  padding-bottom: 60px;
}

.img-block-h {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--fg-0);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-img-block .section-with-image p {
  color: var(--fg-2);
  font-size: 1.02rem;
  line-height: 1.75;
}

.exposures-close {
  font-style: italic;
  color: var(--fg-3);
  margin-top: 1.5em;
}

.modal-footer-note {
  margin-top: 2em;
  font-size: 0.88rem;
  color: var(--fg-3);
}

/* Contact layout: card on the left, large transparent logo on the right (per mockup) */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

.contact-layout .contact-card {
  margin-top: 0;
  max-width: none;
}

.contact-logo-holder {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: 360px;
}

.contact-logo-holder::before {
  content: '';
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(ellipse at center, rgba(184, 115, 51, 0.18), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.contact-logo-holder img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-width: 480px;
  max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(184, 115, 51, 0.25));
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-logo-holder {
    min-height: 240px;
    order: -1;
  }
  .contact-logo-holder img {
    max-width: 280px;
    max-height: 320px;
  }
}

body[dir="rtl"] .contact-layout {
  direction: rtl;
}

/* Refreshed nav logo - was 44px, bump to 48px since source is sharper */
.brand img {
  height: 48px;
}

@media (max-width: 480px) {
  .brand img {
    height: 40px;
  }
}


/* === V3: contact logo height = card height, hero text shadows === */

#contact .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
  margin-top: 40px;
}

#contact .contact-card {
  margin-top: 0;
  max-width: none;
  width: 100%;
  min-width: 0;
}

/* Logo holder takes whatever height the row track resolves to (= card height,
   since the img is absolute-positioned and contributes nothing to row sizing).
   Min-height as a safety floor only. */
#contact .contact-logo-holder {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 220px;
}

#contact .contact-logo-holder::before {
  content: '';
  position: absolute;
  inset: 8% 12%;
  background: radial-gradient(ellipse at center, rgba(184, 115, 51, 0.20), transparent 70%);
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
}

/* Img absolute-positioned -> doesn't drive row height. object-fit: contain
   keeps aspect ratio inside the holder's resolved size. */
#contact .contact-logo-holder img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(184, 115, 51, 0.30));
}

@media (max-width: 900px) {
  #contact .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  #contact .contact-logo-holder {
    height: 240px;
    min-height: 240px;
    order: 2;
  }
}

/* Hero eyebrow gets its own shadow for readability over the video */
.hero .eyebrow {
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.8),
    0 2px 10px rgba(0, 0, 0, 0.5);
}



/* === V6: intro section — eyebrow + H1 + tagline + lede (hero is text-free video only) === */
.section-intro {
  padding: 80px 0 30px;
}
.section-intro .intro-eyebrow {
  /* Former hero eyebrow; now at the top of the intro, copper-bright against dark bg */
  display: block;
  font-family: var(--sans);
  font-size: clamp(0.72rem, 0.7rem + 0.1vw, 0.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-copper-bright);
  margin: 0 0 1.2rem 0;
}
.section-intro .intro-h1 {
  /* Former hero H1 at its proper home now: Cormorant Garamond, bright */
  font-family: var(--display);
  font-size: clamp(2.4rem, 1.8rem + 2.5vw, 4.2rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--fg-0);
  margin: 0 0 1.5rem 0;
}
.section-intro .intro-tagline {
  /* Italic copper-bright display text */
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem);
  font-weight: 500;
  font-style: italic;
  color: var(--accent-copper-bright);
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin: 0 0 1rem 0;
}
.section-intro .intro-lede {
  /* Lede paragraph */
  font-family: var(--display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  color: var(--fg-0);
  letter-spacing: -0.005em;
  margin: 0;
}
.section-intro .section-body {
  max-width: 100%;
}
@media (max-width: 767px) {
  .section-intro { padding: 60px 0 20px; }
  .section-intro .intro-h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
}
