:root{
  --bg:#0b0f14;
  --text:#e8eef6;
  --muted:#a9b6c6;
  --line:rgba(255,255,255,.10);

  --btn:#ffffff;
  --btnText:#0b0f14;
  --btnAltText:#ffffff;

  --max:1120px;
  --radius:18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 25% -10%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(900px 600px at 85% 10%, rgba(255,255,255,.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.skip{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  left:1rem; top:1rem;
  width:auto; height:auto;
  background:#fff; color:#000;
  padding:.75rem 1rem;
  border-radius:12px;
  z-index:9999;
}

/* Header */
.header{
  position: sticky;
  top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.70);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding: .9rem 0;
  position: relative;
}

.brand{
  display:flex;
  align-items:center;
  gap:.75rem;
  font-weight:800;
  letter-spacing:.5px;
  white-space: nowrap;
}
.brand .dot{
  width:12px;height:12px;border-radius:99px;
  background:#fff;
  display:inline-block;
}

/* Desktop menu */
.menu{
  display:flex;
  gap:1rem;
  align-items:center;
  flex-wrap:wrap;
}
.menu a{
  color: var(--muted);
  font-weight:600;
  padding:.35rem .5rem;
  border-radius:10px;
}
.menu a.active{
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.ctas{
  display:flex;
  gap:.6rem;
  align-items:center;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.65rem .95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}

.btn.primary{
  background: var(--btn);
  color: var(--btnText);
}
.btn.secondary{
  background: transparent;
  color: var(--btnAltText);
  border-color: rgba(255,255,255,.25);
}
.btn:hover{ filter: brightness(0.95); }

/* Mobile navigation toggle */
.navToggle{ display:none; }
.navBurger{
  display:none;
  width:44px;
  height:40px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  align-items:center;
  justify-content:center;
  gap:5px;
  cursor:pointer;
}
.navBurger span{
  display:block;
  width:18px;
  height:2px;
  background: rgba(255,255,255,.86);
  border-radius:99px;
}

/* Typography */
.h1{
  font-size: clamp(2rem, 3vw, 3rem);
  line-height:1.10;
  margin:0 0 .75rem;
  letter-spacing:-.6px;
  color:#fff;
  text-shadow:
    0 2px 10px rgba(0,0,0,.95),
    0 10px 28px rgba(0,0,0,.65);
}

.sub{
  color: rgba(255,255,255,.95);
  font-size: 1.15rem;
  line-height: 1.6;
  margin:0 0 1rem;
  text-shadow:
    0 2px 10px rgba(0,0,0,.95),
    0 12px 34px rgba(0,0,0,.65);
}

.kicker{
  display:inline-block;
  padding:.35rem .65rem;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.90);
  font-weight:800;
  margin-bottom: .9rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.70);
}

.h2{
  font-size: 1.5rem;
  margin:0 0 .6rem;
}
.p{
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Sections / cards */
.hero{ padding: 2.2rem 0 1.2rem; }
.section{ padding: 1.2rem 0 2.4rem; }

.card{
  background: rgba(18,24,38,.80);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 900px){
  .grid2{ grid-template-columns: 1fr; }
}

.grid4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1100px){
  .grid4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px){
  .grid4{ grid-template-columns: 1fr; }
}

.tile{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem;
  min-height: 120px;
}
.tile h3{ margin:0 0 .35rem; font-size: 1.05rem; }
.tile p{ margin:0; color: var(--muted); }

.list{ display:grid; gap:.6rem; }
.list .item{
  padding: .9rem 1rem;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
}
.item strong{ display:block; margin-bottom:.15rem; }
.item span{ color: var(--muted); }

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 2.2rem;
  color: var(--muted);
}
.footerGrid{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.footer a{ color: var(--muted); }
.small{ font-size:.95rem; }
.hr{
  height:1px;
  background: var(--line);
  margin: 1rem 0;
}

/* HERO banner (bild volle Breite) */
.heroBanner{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);

  background-image:
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 52%, rgba(0,0,0,.10) 72%, rgba(0,0,0,0) 100%),
    url("assets/img/hero/hero-start.png");
  background-size: cover;
  background-position: 70% 55%;
  background-repeat: no-repeat;

  min-height: clamp(440px, 55vh, 640px);
  display:flex;
  align-items: stretch;
}

.heroOverlay{
  width: min(680px, 100%);
  padding: 1.9rem;

  /* 100% transparent, kein Milchglas */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.heroCtas{ margin-top: .75rem; }

/* "Mehr lesen" */
.heroReadMore{
  display:none; /* nur mobile */
  margin: .35rem 0 .4rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.95);
  font-weight: 900;
  cursor: pointer;
  text-shadow: 0 2px 10px rgba(0,0,0,.85);
}

/* Mobile Anpassungen */
@media (max-width: 900px){
  /* Navigation schlank: Menü verstecken, Burger zeigen */
  .nav{
    padding: .7rem 0;
    gap: .6rem;
  }
  .menu{ display:none; }
  .navBurger{ display:flex; }

  /* Dropdown-Menü */
  .navToggle:checked ~ .menu{
    display:flex;
    flex-direction:column;
    gap:.15rem;

    position:absolute;
    left:0;
    right:0;
    top: calc(100% + 10px);
    padding: .7rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(11,15,20,.92);
    backdrop-filter: blur(10px);
    z-index: 60;
  }
  .navToggle:checked ~ .menu a{
    width:100%;
    padding:.7rem .8rem;
    border-radius: 12px;
  }

  /* Hero Text: automatisch kürzen + Button zum Aufklappen */
  .heroReadMore{ display:inline-block; }

  .heroBanner{
    min-height: 560px;
    background-position: 62% 60%;
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.08) 100%),
      url("assets/img/hero/hero-start.png");
  }

  .heroOverlay{
    padding: 1.25rem;
  }

  /* Standard: 4 Zeilen */
  #heroOverlay .sub{
    font-size: 1.05rem;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }

  /* Expanded: voller Text */
  #heroOverlay.isExpanded .sub{
    display:block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  /* Buttons weniger breit am Handy */
  .ctas{ gap:.45rem; }
  .btn{ padding:.6rem .85rem; }
}
