/* =====================
   ROOT / GRUNDLAGEN
===================== */
:root{
  --bg:#070707;
  --bg2:#0d0d0d;
  --card:#121212;
  --red:#b91c1c;
  --red2:#dc2626;
  --text:#ffffff;
  --muted:#c7c7c7;
  --border:rgba(255,255,255,.08);
  --shadow:0 20px 60px rgba(0,0,0,.6);
  --radius:18px;
  --radius2:28px;
  --max:1100px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:auto;padding:0 20px}

/* =====================
   NAVBAR (FIXED)
===================== */
.navbar{
  position:sticky;
  top:0;
  z-index:1000;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--border);
}

.navbar-inner{
  height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
}

.brand span{color:var(--red2)}

.nav-links{
  list-style:none;
  display:flex;
  gap:16px;
  margin:0;
  padding:0;
}

.nav-links a{
  padding:10px 14px;
  border-radius:999px;
  font-weight:600;
}

.nav-links a:hover{
  background:rgba(255,255,255,.06);
}

.nav-links a.active{
  background:rgba(220,38,38,.18);
  border:1px solid rgba(220,38,38,.35);
}

/* MOBILE MENU */
.nav-links.mobile{
  display:none;
  flex-direction:column;
  gap:10px;
  padding:16px;
}

.burger{
  display:none;
  background:none;
  border:none;
  font-size:1.4rem;
  color:white;
  cursor:pointer;
}

/* =====================
   HERO (LESBAR!)
===================== */
.hero{
  position:relative;
  min-height:calc(100vh - 70px);
  display:flex;
  align-items:center;
  overflow:hidden;
}

.hero-media{
  position:absolute;
  inset:0;
  background:url("assets/hero.jpg") center/cover no-repeat;
}

.hero video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,.45),
    rgba(0,0,0,.7)
  );
  z-index:1;
}

.hero-inner{
  position:relative;
  z-index:2;
  padding:90px 0;
}

/* HERO TEXT */
.hero h1{
  font-size:clamp(2.3rem,4vw,4rem);
  margin:0 0 12px;
  color:#ffffff;
}

.hero h1 span{
  color:var(--red2);
}

.hero p{
  max-width:720px;
  color:#ffffff;
  font-size:1.1rem;
  margin-bottom:30px;
}

.kicker{
  display:inline-block;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(220,38,38,.2);
  color:#ffffff;
  font-weight:700;
  margin-bottom:20px;
}

/* HERO BUTTONS */
.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

/* =====================
   BUTTONS
===================== */
.btn{
  padding:14px 22px;
  border-radius:999px;
  font-weight:800;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:white;
  cursor:pointer;
}

.btn:hover{
  background:rgba(255,255,255,.12);
}

.btn.primary{
  background:linear-gradient(135deg,var(--red2),var(--red));
  border:none;
}

.btn.ghost{
  background:rgba(220,38,38,.18);
  border:1px solid rgba(220,38,38,.4);
}

/* =====================
   SECTIONS / CARDS
===================== */
.section{
  background: transparent;
}

.grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:20px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.card-inner{padding:24px}

.card h3{
  margin:0 0 10px;
}

.card p{
  color:var(--muted);
  line-height:1.6;
}

/* =====================
   FOOTER
===================== */
.footer{
  background:#050505;
  border-top:1px solid var(--border);
  padding:30px 0;
  color:var(--muted);
}

.footer .cols{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
}

/* =====================
   MODAL
===================== */
.modal{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  background:rgba(0,0,0,.75);
  z-index:2000;
}

.modal.show{display:grid}

.modal-box{
  background:#0a0a0a;
  border-radius:var(--radius2);
  border:1px solid rgba(220,38,38,.35);
  width:min(720px,100%);
  box-shadow:var(--shadow);
}

.modal-head,
.modal-actions{
  padding:18px 22px;
  border-bottom:1px solid var(--border);
}

.modal-actions{
  border-top:1px solid var(--border);
  border-bottom:none;
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

.modal-body{
  padding:22px;
  color:var(--muted);
}

/* =====================
   SCROLL ANIMATION
===================== */
.reveal{
  opacity:0;
  transform:translateY(20px);
  transition:.6s ease;
}

.reveal.show{
  opacity:1;
  transform:translateY(0);
}

/* =====================
   RESPONSIVE
===================== */
@media(max-width:820px){
  .nav-links{display:none}
  .burger{display:block}

  .nav-links.mobile{
    display:none;
    background:#0b0b0b;
    border-bottom:1px solid var(--border);
  }

  .nav-links.mobile.show{
    display:flex;
  }

  .hero h1{
    font-size:2.2rem;
  }
}

/* Header Layout fix */
.hdr{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px; /* GANZ WICHTIG */
}

.hdr-text{
  max-width: 700px;
}

/* Button-Gruppe */
.hdr-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 768px){
  .hdr{
    flex-direction: column;
    align-items: stretch;
  }

  .hdr-actions a{
    width: 100%;
    justify-content: center;
  }
}

/* =====================
   PAGE HERO (FIXED BG)  <-- NEU
===================== */
.page-hero{
  position: relative;
  height: 42vh;
  min-height: 300px;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed; /* bleibt stehen beim scrollen */

  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero .container{
  position: relative;
  z-index: 2;
  padding: 44px 20px;
}

.page-hero h1{
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  margin: 0 0 10px;
}

.page-hero p{
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}
