/* AGAQUA shared styles — v5 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&family=Newsreader:opsz,wght@6..72,300;6..72,400;6..72,500&display=swap');

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

:root {
  --navy:  #07192b;
  --navy2: #0d2540;
  --teal:  #1a8fa8;
  --teal2: #13b8d4;
  --cream: #f4f6f5;
  --white: #ffffff;
  --text:  #0d1f30;
  --muted: #5a7080;
  --border: rgba(255,255,255,0.10);
}

html { scroll-behavior: smooth; background: var(--navy); }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: rgba(7,25,43,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 38px; width: 38px; object-fit: contain; }
.nav-logo-text {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links li a {
  display: block; padding: 8px 14px;
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 0.875rem; font-weight: 400; border-radius: 6px;
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.nav-links li a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links li a.active { color: var(--white); }
.nav-cta { background: var(--teal) !important; color: var(--white) !important; font-weight: 500 !important; padding: 8px 20px !important; }
.nav-cta:hover { background: var(--teal2) !important; }

/* ── DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7em; opacity: 0.6; }
/* Invisible bridge so cursor can travel from trigger into menu */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 12px;
  z-index: 101;
}
.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--navy2); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px; min-width: 220px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  z-index: 200;
}
.dropdown-menu a {
  display: block; padding: 9px 14px;
  color: rgba(255,255,255,0.8) !important; text-decoration: none;
  font-size: 0.875rem; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: white !important; }
/* CSS :hover is authoritative — includes abs-positioned children per spec */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: block; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; }

/* ── HERO (subpages) ── */
.sub-hero {
  position: relative;
  height: 88vh; min-height: 600px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.sub-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 58%;
  transform: scale(1.04); transition: transform 8s ease-out;
}
.sub-hero-bg.loaded { transform: scale(1); }
.sub-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(7,25,43,0.92) 0%,
    rgba(7,25,43,0.50) 50%,
    rgba(7,25,43,0.20) 100%
  );
}
.sub-hero-content {
  position: relative; z-index: 2;
  width: 100%; padding: 0 80px 52px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--teal2); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal2); margin-bottom: 14px;
}
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: var(--teal2); }
.sub-hero h1 {
  font-family: 'Newsreader', serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  color: var(--white); line-height: 1.08; max-width: 680px; margin-bottom: 16px;
}
.sub-hero .hero-sub {
  font-size: 1rem; font-weight: 300; color: rgba(255,255,255,0.72);
  max-width: 520px; line-height: 1.7; margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── STATS BAR ── */
.stats-bar {
  position: relative; z-index: 2;
  display: flex;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.stat-item { flex: 1; padding: 24px 36px; border-right: 1px solid rgba(255,255,255,0.08); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Newsreader', serif; font-size: 2rem; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 4px; letter-spacing: 0.03em; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: var(--teal); color: white;
  border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 0.925rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--teal2); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: rgba(255,255,255,0.08); color: white;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.925rem; font-weight: 500;
  text-decoration: none; cursor: pointer; backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border: 1.5px solid var(--teal);
  border-radius: 8px; color: var(--teal); font-weight: 600; font-size: 0.875rem;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--teal); color: white; }

/* ── SHARED TYPOGRAPHY ── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 16px;
}
.section-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--teal); }
.section-eyebrow.light { color: var(--teal2); }
.section-eyebrow.light::before { background: var(--teal2); }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.005em; }
h2 { font-family: 'Newsreader', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--navy); line-height: 1.15; font-weight: 400; }
.stat-num, .fact-card-value, .contact-card-name, .kpi-num { font-weight: 400 !important; }
h2.light { color: var(--white); }

/* ── MAIN CONTENT (2-col) ── */
.content-section {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 80px; padding: 96px 80px; align-items: start;
  background: var(--white);
  scroll-margin-top: 80px;
}
.content-body h2 { margin-bottom: 20px; }
.content-body p { color: var(--muted); line-height: 1.75; font-size: 0.97rem; margin-bottom: 16px; }
.content-body ul { margin: 16px 0 28px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.content-body ul li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--muted); font-size: 0.94rem; line-height: 1.55;
}
.content-body ul li::before { content: '—'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.content-body ul li strong { color: var(--navy); font-weight: 600; margin-right: 4px; }

/* ── FACT SIDEBAR ── */
.fact-sidebar { display: flex; flex-direction: column; gap: 16px; }
.fact-card {
  background: var(--cream); border-radius: 12px; padding: 24px 26px;
  border: 1px solid rgba(0,0,0,0.05);
}
.fact-card-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.fact-card-value { font-family: 'Newsreader', serif; font-size: 1.7rem; color: var(--navy); line-height: 1; }
.fact-card-sub { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

.contact-card {
  background: var(--navy); border-radius: 14px; padding: 28px;
  margin-top: 4px;
}
.contact-card-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal2); margin-bottom: 14px; }
.contact-card-name { font-family: 'Newsreader', serif; font-size: 1.2rem; color: white; margin-bottom: 4px; }
.contact-card-title { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.contact-card a { display: block; color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.875rem; margin-bottom: 6px; transition: color 0.15s; }
.contact-card a:hover { color: var(--teal2); }
.address-row {
  font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.6;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── DARK STRIP ── */
.dark-strip {
  background: var(--navy); padding: 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.dark-strip-text .section-eyebrow { color: var(--teal2); }
.dark-strip-text .section-eyebrow::before { background: var(--teal2); }
.dark-strip-text p { color: rgba(255,255,255,0.65); line-height: 1.75; font-size: 0.97rem; margin: 20px 0 28px; }
.dark-strip-image { border-radius: 14px; overflow: hidden; }
.dark-strip-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

/* ── BACK STRIP ── */
.back-strip {
  background: var(--cream); padding: 36px 80px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
a.btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--teal);
  text-decoration: none; transition: gap 0.2s;
}
a.btn-back:hover { gap: 12px; }
.back-strip-row {
  display: flex; align-items: center; gap: 20px;
}
.back-strip-divider {
  display: inline-block; width: 1px; height: 18px;
  background: rgba(0,0,0,0.15); vertical-align: middle;
}

/* ── SIBLING NAV ── */
.sibling-nav {
  background: var(--white); padding: 56px 80px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.sibling-nav h3 { font-family: 'Newsreader', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 28px; }
.sibling-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sibling-card {
  display: block; text-decoration: none;
  background: var(--cream); border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
.sibling-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.09); }
.sibling-card img { width: 100%; aspect-ratio: 16/7; object-fit: cover; display: block; }
.sibling-card-body { padding: 16px 18px; }
.sibling-card-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.sibling-card-name { font-weight: 600; color: var(--navy); font-size: 0.97rem; }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 64px 80px calc(40px + env(safe-area-inset-bottom)); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px; margin-bottom: 48px; }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.62); text-decoration: none; font-size: 0.875rem; margin-bottom: 8px; transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-col p { color: rgba(255,255,255,0.62); font-size: 0.875rem; line-height: 1.6; margin-bottom: 4px; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin-bottom: 28px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.82rem; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  nav { padding: 0 28px; }
  .sub-hero-content { padding: 0 40px 52px; }
  .content-section, .dark-strip { padding: 72px 40px; gap: 48px; }
  .back-strip, .sibling-nav { padding: 36px 40px; }
  footer { padding: 56px 40px calc(32px + env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .content-section { grid-template-columns: 1fr; }
  .dark-strip { grid-template-columns: 1fr; }
  .sibling-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .stats-bar { flex-wrap: wrap; }
  .stats-bar .stat-item { flex: 1 1 50%; }
}
@media (max-width: 720px) {
  .stats-bar .stat-item { flex: 1 1 100% !important; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 18px 24px; }
  .stats-bar .stat-item:last-child { border-bottom: none; }
  .stat-num { font-size: 1.5rem; }
  .sub-hero { height: auto; min-height: 0; padding-top: 110px; }
  .sub-hero-content { padding: 0 24px 36px; }
  .sub-hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .breadcrumb { font-size: 0.72rem; flex-wrap: wrap; }
  .hero-actions { gap: 10px; }
  .btn-primary, .btn-ghost, .btn-outline { padding: 12px 20px; font-size: 0.875rem; }
  /* Konsernstruktur org chart: stack vertically on mobile */
  .org-row { flex-direction: column !important; gap: 12px !important; max-width: 100% !important; }
  .org-row::before { display: none !important; }
  .org-cell { width: 100% !important; padding: 0 !important; }
  .org-cell > div:first-child { display: none !important; }
  /* Konsernstruktur inline-padded sections */
  section[style*="padding:80px 80px"], section[style*="padding:72px 80px"] { padding: 56px 24px !important; }
}
@media (max-width: 540px) {
  .sub-hero-content { padding: 0 20px 36px; }
  .content-section, .dark-strip { padding: 48px 20px; gap: 32px; }
  .sibling-grid { grid-template-columns: 1fr; }
  .back-strip, .sibling-nav { padding: 32px 20px; }
  nav { padding: 0 18px; }
  .nav-logo-text { font-size: 0.92rem; }
  .nav-logo img { height: 32px; width: 32px; }
  footer { padding: 48px 24px calc(28px + env(safe-area-inset-bottom)); }
  .footer-top { gap: 28px; }
}

/* ── CERTIFICATION BLOCK ── */
.cert-block {
  margin-top: 32px;
  display: flex; align-items: center; gap: 22px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-left: 3px solid #6aa84f;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}
.cert-badge {
  flex-shrink: 0;
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 12px 14px 10px;
  background: #ffffff;
  border: 1.5px solid #6aa84f;
  border-radius: 8px;
  min-width: 120px;
}
.cert-badge-mark {
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
}
.cert-badge-global { color: #1e5d2a; }
.cert-badge-gap { color: #6aa84f; margin-left: 2px; }
.cert-badge-tag {
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #6aa84f;
}
.cert-text {
  flex: 1;
  display: flex; flex-direction: column; gap: 6px;
}
.cert-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.cert-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .cert-block { flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px 20px; }
}

/* ── MOBILE CATCH-ALLS (override inline styles on subpages) ── */
@media (max-width: 860px) {
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns:1.3fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  section[style*="grid-template-columns:1.3fr 1fr"],
  section[style*="grid-template-columns:1fr 1fr"] {
    gap: 36px !important;
  }
}
@media (max-width: 720px) {
  section[style*="padding:80px 80px"],
  section[style*="padding:72px 80px"],
  section[style*="padding:88px 80px"],
  section[style*="padding:100px 80px"],
  section[style*="padding: 80px 80px"],
  section[style*="padding: 72px 80px"],
  section[style*="padding: 88px 80px"],
  section[style*="padding: 100px 80px"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
}
@media (max-width: 540px) {
  section[style*="padding:80px 80px"],
  section[style*="padding:72px 80px"],
  section[style*="padding:88px 80px"],
  section[style*="padding:100px 80px"],
  section[style*="padding: 80px 80px"],
  section[style*="padding: 72px 80px"],
  section[style*="padding: 88px 80px"],
  section[style*="padding: 100px 80px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}
