/* ═══════════════════════════════════════════════
   LEGRAINS SECURITY – SHARED DESIGN SYSTEM
   Mobile-first, vollständig überprüft
═══════════════════════════════════════════════ */
:root {
  --ink:     #05050a;
  --deep:    #08080f;
  --surface: #0c0c15;
  --card:    #10101c;
  --line:    rgba(255,255,255,0.065);
  --gold:    #c8a84b;
  --gold2:   #e5c97c;
  --ivory:   #f0ebe2;
  --smoke:   #8a8998;
  --mist:    rgba(240,235,226,0.5);
  --T:       cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--ink);
  color: var(--ivory);
  overflow-x: hidden;
}

/* NOISE OVERLAY */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .022; mix-blend-mode: overlay;
}

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 5vw;
  transition: padding .4s var(--T), background .4s;
}
nav.s {
  padding: 1rem 5vw;
  background: rgba(5,5,10,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px);
}
.logo { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ivory); line-height: 1;
}
.logo-sub {
  font-size: .5rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold);
}

/* Desktop nav links */
.nav-links {
  display: flex; gap: 1.8rem;
  list-style: none; align-items: center;
}
.nav-links a {
  font-size: .63rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--smoke); text-decoration: none;
  position: relative; padding-bottom: 3px;
  transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s var(--T);
}
.nav-links a:hover, .nav-links a.active { color: var(--ivory); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-btn {
  font-size: .63rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink) !important;
  background: var(--gold);
  padding: .6rem 1.4rem; border-radius: 1px;
  text-decoration: none;
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 20px rgba(200,168,75,.22);
}
.nav-btn::after { display: none !important; }
.nav-btn:hover { background: var(--gold2) !important; transform: translateY(-1px); }

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px; z-index: 700;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--ivory);
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  display: none;
  position: fixed; inset: 0; z-index: 650;
  background: rgba(5,5,10,.98);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  backdrop-filter: blur(20px);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 300;
  letter-spacing: .08em;
  color: var(--ivory); text-decoration: none;
  transition: color .2s;
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile a em { font-style: italic; color: var(--gold); }
.nav-mobile .nav-mobile-btn {
  margin-top: 1rem;
  background: var(--gold); color: var(--ink);
  padding: 1rem 3rem; border-radius: 1px;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
}

@media(max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ══════════════════════════════════════
   PAGE HERO (subpages)
══════════════════════════════════════ */
.page-hero {
  min-height: 50vh;
  display: flex; align-items: flex-end;
  padding: 12rem 5vw 4rem;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,.018) 0px, rgba(255,255,255,.018) 1px,
    transparent 1px, transparent 25vw);
}
.ph-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(200,168,75,.1) 0%, transparent 70%);
  top: -20%; right: -10%;
  animation: gf 18s ease-in-out infinite;
}
@keyframes gf {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-2vw,3vh) scale(1.05); }
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-tag {
  font-size: .58rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1.2rem;
}
.page-hero-tag::before { content: ''; width: 24px; height: 1px; background: var(--gold); opacity: .6; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 300; line-height: .92; letter-spacing: -.01em;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero p {
  font-size: .9rem; font-weight: 300; line-height: 1.85;
  color: var(--mist); max-width: 540px; margin-top: 1.2rem;
}

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.sec { padding: 6rem 5vw; }
.sec-dark { background: var(--deep); }
.sec-surface { background: var(--surface); }

.sec-tag {
  font-size: .58rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1.2rem;
}
.sec-tag::before { content: ''; width: 24px; height: 1px; background: var(--gold); opacity: .6; }

.sec-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 300; line-height: 1; letter-spacing: .02em;
}
.sec-h em { font-style: italic; color: var(--gold); }

.sec-p {
  font-size: .88rem; font-weight: 300;
  line-height: 1.9; color: var(--mist);
  max-width: 580px; margin-top: 1rem;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-g {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--gold); color: var(--ink);
  padding: .95rem 2rem; border-radius: 1px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 8px 28px rgba(200,168,75,.22);
}
.btn-g:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 14px 44px rgba(200,168,75,.32); }

.btn-o {
  display: inline-flex; align-items: center; gap: .7rem;
  border: 1px solid rgba(240,235,226,.18); color: var(--ivory);
  padding: .95rem 2rem; border-radius: 1px;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none;
  transition: border-color .2s, color .2s, transform .2s;
}
.btn-o:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-wa {
  display: inline-flex; align-items: center; gap: .7rem;
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.3); color: #25d366;
  padding: .95rem 2rem; border-radius: 1px;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn-wa:hover { background: rgba(37,211,102,.18); transform: translateY(-2px); }

.arr { transition: transform .2s; }
.btn-g:hover .arr { transform: translateX(4px); }

/* ══════════════════════════════════════
   CARDS & GRIDS
══════════════════════════════════════ */
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.grid-3 {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
@media(max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media(max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); padding: 2.5rem 2rem;
  position: relative; overflow: hidden; transition: background .3s;
}
.card:hover { background: var(--card); }
.card-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--T);
}
.card:hover .card-bar { transform: scaleX(1); }
.card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 300;
  color: rgba(200,168,75,.1); line-height: 1; margin-bottom: 1rem;
  transition: color .3s;
}
.card:hover .card-num { color: rgba(200,168,75,.2); }
.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 300; margin-bottom: .4rem;
}
.card h4 { font-size: .88rem; font-weight: 600; letter-spacing: .05em; margin-bottom: .6rem; }
.card-sub { font-size: .6rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.card p { font-size: .82rem; font-weight: 300; line-height: 1.82; color: var(--mist); }
.card-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.ctag {
  font-size: .6rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .7rem; border: 1px solid var(--line); color: var(--smoke); border-radius: 100px;
  transition: border-color .2s, color .2s;
}
.card:hover .ctag { border-color: rgba(200,168,75,.25); }

/* ══════════════════════════════════════
   CTA BAND
══════════════════════════════════════ */
.cta-band {
  padding: 7rem 5vw;
  background: var(--deep); text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(200,168,75,.07) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band-inner { max-width: 580px; margin: 0 auto; position: relative; z-index: 1; }
.cta-band h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300; line-height: .95; margin-bottom: 1.2rem;
}
.cta-band h2 em { font-style: italic; color: var(--gold); }
.cta-band p { font-size: .88rem; font-weight: 300; line-height: 1.85; color: var(--mist); margin-bottom: 2.2rem; }
.cta-btns { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* ══════════════════════════════════════
   SISTER BAR
══════════════════════════════════════ */
.sister-bar {
  padding: 2.5rem 5vw;
  border-top: 1px solid var(--line);
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
  background: var(--ink); position: relative;
}
.sister-bar::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}
.sister-left { padding-left: 1.5rem; }
.sister-eyebrow {
  font-size: .55rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .3rem; display: block;
}
.sister-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 300; color: var(--ivory);
}
.sister-desc { font-size: .75rem; color: var(--mist); font-weight: 300; }
.sister-cta {
  font-size: .65rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border: 1px solid rgba(200,168,75,.3); padding: .75rem 1.6rem; border-radius: 1px;
  transition: border-color .2s, background .2s, transform .2s; white-space: nowrap;
}
.sister-cta:hover { border-color: var(--gold); background: rgba(200,168,75,.06); transform: translateY(-2px); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer { border-top: 1px solid var(--line); padding: 4rem 5vw 2rem; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
@media(max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media(max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 300;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ivory); margin-bottom: .7rem;
}
.footer-desc { font-size: .76rem; font-weight: 300; line-height: 1.8; color: var(--smoke); }
.footer-col h5 {
  font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul a { font-size: .76rem; color: var(--smoke); text-decoration: none; transition: color .2s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .65rem; color: var(--smoke); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .65rem; color: var(--smoke); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--gold); }

/* ══════════════════════════════════════
   WHATSAPP ICON SVG
══════════════════════════════════════ */
.wa-icon { flex-shrink: 0; }

/* ══════════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════════ */
.r { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--T), transform .7s var(--T); }
.r.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

@keyframes fsu { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }
@keyframes fi  { from { opacity:0; } to { opacity:1; } }
