:root{
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --bg:#0b0d12;
  --text:#f4f7ff;
  --muted: rgba(244,247,255,.78);
  --glass: rgba(12,14,18,.40);
  --line: rgba(255,255,255,.14);
  --shadow: 0 18px 55px rgba(0,0,0,.48);
}

*{box-sizing:border-box}
html,body{height:100%; margin:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background: var(--bg);
}

a{color:inherit; text-decoration:none}
.container{width:min(1120px, 92%); margin:0 auto}

/* NEW: Topbar darf etwas breiter sein (mehr Rand rechts/links) */
.topbar .container{width:min(1120px, 96%);}


/* ===== HERO (Startseite) ===== */
.hero{
  min-height:100vh;
  position:relative;
  overflow:hidden;
}

/* Hintergrundbild */
.hero::before{
  content:"";
  position:absolute;
  inset:0;

  background-image:url("hero.jpg");
  background-size:cover;
  background-repeat:no-repeat;
  background-position: center center;
  

  
  /* transform:scale(1.02);  <- RAUS */
}

/* Abdunklung für Lesbarkeit */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(
      900px 520px at 50% 32%,
      rgba(0,0,0,.03),
      rgba(0,0,0,.25)
    ),
    linear-gradient(
      to top,
      rgba(0,0,0,.30),
      rgba(0,0,0,.06)
    );
}

.hero-inner{
  position:relative;
  z-index:2;
  min-height:100vh;
}

/* ===== Topbar ===== */
.topbar{
  position:absolute;
  top: calc(16px + var(--safe-top));
  left: 0;
  right: 0;
  z-index: 4;
}

.topbar-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 0 calc(14px + var(--safe-right)) 0 calc(14px + var(--safe-left));
}

.brand{
  display:inline-flex;
  align-items:center;
  padding:10px 12px;
  border-radius:16px;
  background: var(--glass);
  border:1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.brand .brand-text{
  font-weight:900;
  letter-spacing:2px;
  font-size:14px;
  text-transform:uppercase;
}

/* NEW: rechte Controls weiter an den Rand schieben */
.right-controls{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
  margin-right:-28px; /* stärker nach rechts */
}



/* Sprachwahl */
.lang{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:16px;
  background: var(--glass);
  border:1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-weight:900;
  letter-spacing:.4px;
}

.lang a{
  color: rgba(244,247,255,.72);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid transparent;
}

.lang a.active{
  color: var(--text);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
}

/* Hamburger */
.menu-btn{
  width:46px;
  height:46px;
  border-radius:16px;
  border:1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  cursor:pointer;
  display:grid;
  place-items:center;
}

.menu-icon{
  width:18px;
  height:12px;
  position:relative;
}
.menu-icon span{
  position:absolute;
  left:0; right:0;
  height:2px;
  background: rgba(244,247,255,.92);
  border-radius:999px;
}
.menu-icon span:nth-child(1){top:0}
.menu-icon span:nth-child(2){top:5px; opacity:.9}
.menu-icon span:nth-child(3){top:10px; opacity:.85}

/* Dropdown Menü */
.menu{
  position:absolute;
  top:64px;
  right:0;
  width:min(320px, 92vw);
  border-radius:18px;
  background: rgba(12,14,18,.86);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding:10px;
  display:none;
}

.menu.open{display:block}

.menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-radius:14px;
  color: rgba(244,247,255,.90);
  font-weight:800;
}

.menu a:hover{
  background: rgba(255,255,255,.08);
}

.menu .hint{
  font-size:12px;
  color: rgba(244,247,255,.65);
  padding:8px 12px 2px;
}

/* ===== Startseiten Text (oben mittig) ===== */
.hero-title{
  position:absolute;
  top:92px;
  left:50%;
  transform:translateX(-50%);
  width:min(980px, 92%);
  text-align:center;
  z-index:3;
}

.hero-title .logo-line{
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 3px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0,0,0,.55);
  margin:0;
}

.hero-title .subline{
  margin:8px 0 0;
  font-size: clamp(14px, 2.2vw, 20px);
  letter-spacing: 6px;
  font-weight: 800;
  opacity: .92;
  text-transform: uppercase;
}

.hero-title .headline{
  margin:22px 0 0;
  font-size: clamp(26px, 3.7vw, 46px);
  font-weight: 900;
  text-shadow: 0 10px 30px rgba(0,0,0,.55);
}

.hero-title .tagline{
  margin:10px 0 0;
  font-style: italic;
  font-size: clamp(14px, 2.2vw, 20px);
  color: rgba(244,247,255,.86);
}

/* ===== NEW: Bottom Center Block ===== */
.bottom-center{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:22px;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

/* Button unten (zentriert) */
.cta-bottom-left{
  position:static; /* NEW: nicht mehr links unten */
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(12,14,18,.42);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-weight:900;
  letter-spacing:.2px;
  min-width: 210px;
}

.btn.primary{
  border-color: rgba(125,211,252,.58);
  background: linear-gradient(135deg, rgba(125,211,252,.26), rgba(167,139,250,.20));
}

/* Footer links unten (zentriert) */
.footer-links{
  position:static; /* NEW: nicht mehr links unten */
  display:flex;
  gap:16px;
  align-items:center;
}

.footer-links a{
  color: rgba(244,247,255,.78);
  font-weight:800;
  padding:8px 10px;
  border-radius:12px;
  background: rgba(12,14,18,.22);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

/* ===== Subpages (alle außer Startseite) ===== */
.page{
  min-height:100vh;
  background:
    radial-gradient(1000px 520px at 20% 0%, rgba(167,139,250,.18), transparent 60%),
    radial-gradient(900px 520px at 100% 20%, rgba(125,211,252,.16), transparent 55%),
    var(--bg);
}

.page-header{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,13,18,.70);
  border-bottom:1px solid rgba(255,255,255,.10);
}

.page-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
}

.home-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(12,14,18,.36);
  font-weight:900;
}

.page-main{
  padding:34px 0 60px;
}

.card{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(12,14,18,.36);
  border-radius:20px;
  padding:18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

h1{margin:0 0 10px; font-size:28px}
p{color:rgba(244,247,255,.82); margin:8px 0}
ul{color:rgba(244,247,255,.82)}
.small{color:rgba(244,247,255,.68); font-size:13px}

/* Mobile */
/* Mobile Feinjustierung */
/* Mobile Feinjustierung */
@media (max-width: 560px){

  /* rechte Controls (DE/EN + Menü) leicht nach links,
     ohne das Bild zu beeinflussen */
  .right-controls{
    margin-right: 8px;
  }

  /* Mobile Hero Bild */
  .hero::before{
    background-image: url("hero-mobile.jpg") !important;
    background-size: cover;
    background-position: center top !important;
    filter: saturate(1.05) contrast(1.05) brightness(1.15);
  }

  /* Overlay minimal leichter auf Mobile (damit das Bild nicht absäuft) */
  .hero::after{
    background:
      radial-gradient(900px 520px at 50% 28%, rgba(0,0,0,.02), rgba(0,0,0,.22)),
      linear-gradient(to top, rgba(0,0,0,.28), rgba(0,0,0,.06));
  }

  /* Topbar kompakter, damit mehr Bild sichtbar ist */
  .topbar{ top: calc(10px + var(--safe-top)); }
  .topbar-row{ padding: 0 calc(8px + var(--safe-right)) 0 calc(8px + var(--safe-left)); }

  /* DE/EN etwas kleiner */
  .lang{ padding:8px 10px; border-radius:14px; gap:6px; }
  .lang a{ padding:5px 9px; }

  /* Menü Button kleiner */
  .menu-btn{
    width:42px;
    height:42px;
    border-radius:14px;
  }

  /* Buttons unten etwas höher, damit sie nicht "zu tief" wirken */
  .bottom-center{ bottom: 28px; }

  .btn{ min-width: 190px; }
}
