:root{
  --bg:#07080b;
  --text:#e9ecf3;
  --muted:#a9b0c2;
  --line: rgba(255,255,255,.10);

  --nav-h: 76px;

  --accent:#7cffd8;
  --accent2:#7aa2ff;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

body.home{ 
  overflow: hidden; 
} /* NUR Startseite */

a{ color:inherit; text-decoration:none; }

/* HEADER */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7,8,11,.55);
  border-bottom: 1px solid var(--line);
}

.nav{
  width: min(1300px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 48px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  font-weight:700;
}

.brand-logo{
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 0 12px rgba(124,255,216,.18));
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 12px;
}

.nav-links a{
  height: 40px;
  display:inline-flex;
  align-items:center;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav-links a:hover{
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}

.nav-links a.active{
  color: var(--text);
  border-color: rgba(124,255,216,.25);
  background: rgba(124,255,216,.06);
}

/* HERO */
.hero{
  position: relative;
  height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  place-items: center;
}

/* Background image (smooth intro) */
.bg{
  position:absolute;
  inset: 0;
  background-image: url("../assets/logo-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* start hidden so it can "appear" */
  opacity: 0;
  transform: scale(1.06);
  filter: brightness(1.15) saturate(1.15);

  will-change: opacity, transform, filter;
  transition: opacity 1.6s ease, transform 1.9s ease, filter 1.9s ease;
}

@media (max-width: 768px){
  .bg{
    background-image: url("../assets/logo-bg-mobile.png");
    background-size: cover;
    background-position: center;
    opacity: .75;
    transform: none;
  }
}

body.bg-ready .bg{
  opacity: 1;                 /* volle Pracht */
  transform: scale(1);
  filter: brightness(1.05) saturate(1.10);
}

/* Overlay: fades in after bg is ready, gets darker on click */
.overlay{
  position:absolute;
  inset: 0;

  /* very light at first, then fades in a bit */
  background: radial-gradient(900px 520px at 50% 35%, rgba(0,0,0,.00), rgba(0,0,0,.18));
  opacity: 0;

  transition: background .9s ease, opacity .9s ease;
}

body.bg-ready .overlay{
  opacity: .35;
}

/* Button at bottom */
.reveal-btn{
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 5vh, 46px);
  transform: translateX(-50%) translateY(10px);
  z-index: 5;

  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor: pointer;

  letter-spacing: .08em;
  text-transform: uppercase;

  opacity: 0;
  pointer-events: none;

  transition: opacity .6s ease, transform .6s ease, border-color .2s ease, background .2s ease;
}

body.bg-ready .reveal-btn{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  transition-delay: .15s;
}

.reveal-btn:disabled{
  opacity: 0;
  pointer-events: none;
}

.reveal-btn:hover{
  border-color: rgba(124,255,216,.25);
  background: rgba(124,255,216,.06);
}

.reveal-btn:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(124,255,216,.12);
}

/* Content hidden by default */
.hero-content{
  position: relative;
  z-index: 6;
  width: min(900px, 92vw);
  text-align: center;

  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.2s ease, transform 1.2s ease;

  pointer-events: none;
}

.hero-text{
  margin: 0 auto;
  max-width: 760px;
  line-height: 1.6;
  color: rgba(233,236,243,.86);
  font-size: 1.06rem;
}

.hero-actions{
  margin-top: 22px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.hero-subhint{
  margin-top: 18px;
  color: rgba(169,176,194,.95);
  font-size: .95rem;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
}

.btn:hover{
  border-color: rgba(124,255,216,.25);
  background: rgba(124,255,216,.06);
}

.btn.primary{
  border-color: rgba(124,255,216,.32);
  background: linear-gradient(135deg, rgba(124,255,216,.16), rgba(122,162,255,.10));
}

/* REVEALED STATE */
body.revealed .hero-content{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: .35s; /* Text kommt nach dem “Dunkler werden” */
}

body.revealed .reveal-btn{
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}

/* Hard reset helper (prevents "stuck" states when coming back) */
body.no-anim, body.no-anim *{
  transition: none !important;
  animation: none !important;
}

body.revealed .bg{
  filter: brightness(.55) saturate(.9); /* erst beim Click dimmen */
}

body.revealed .overlay{
  background:
    radial-gradient(900px 520px at 50% 35%, rgba(0,0,0,.25), rgba(0,0,0,.85)),
    linear-gradient(180deg, rgba(7,8,11,.35), rgba(7,8,11,.92));
  opacity: 1;
}

/* Mobile */
@media (max-width: 640px){
  :root{ --nav-h: 72px; }
  .brand-logo{ width: 38px; height: 38px; }
  .hero-text{ font-size: 1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .bg, .overlay, .hero-content, .reveal-btn{ transition: none !important; }
}

/* PAGE LAYOUT */
.page{
  padding-top: calc(var(--nav-h) + 28px);
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  padding-bottom: 60px;
}

.page-head{
  margin-bottom: 18px;
}

.page-head h1{
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.lead{
  margin-top: 10px;
  color: rgba(233,236,243,.78);
  max-width: 820px;
}

.h2{
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.muted{
  color: rgba(169,176,194,.95);
}

/* FILTER CHIPS */
.filters{
  margin-top: 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.chip{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color: rgba(169,176,194,.95);
  cursor:pointer;
}

.chip:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}

.chip.active{
  color: var(--text);
  border-color: rgba(124,255,216,.32);
  background: rgba(124,255,216,.07);
}

/* CARDS */
.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top: 18px;
}

.card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.40);
}

.card-top{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}

.card h3{
  margin:0;
  font-size: 1.05rem;
}

.card p{
  margin: 10px 0 0;
}

.card-actions{
  margin-top: 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* PILLS */
.pill{
  font-size:.72rem;
  letter-spacing:.04em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
}

.pill.featured{ border-color: rgba(124,255,216,.25); background: rgba(124,255,216,.06); }
.pill.info{ border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: rgba(169,176,194,.95); }
.pill.live{ border-color: rgba(122,162,255,.28); background: rgba(122,162,255,.08); }
.pill.planned{ border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.03); color: rgba(169,176,194,.95); }

/* PANELS + FORM */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top: 14px;
}

.panel{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.40);
}

.form{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top: 10px;
}

label{
  display:flex;
  flex-direction:column;
  gap:6px;
  color: var(--text);
  font-weight: 600;
}

input, select, textarea{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(124,255,216,.35);
  box-shadow: 0 0 0 4px rgba(124,255,216,.10);
}

.note{
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(169,176,194,.95);
}

/* BUTTON SIZES */
.btn.small{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .95rem;
}

/* FOOTER */
.footer{
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align:center;
  color: rgba(169,176,194,.95);
}

/* RESPONSIVE */
@media (max-width: 980px){
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .cards{ grid-template-columns: 1fr; }
}

/* FEATURED PROJECT SPOTLIGHT (layered backgrounds, no ::before blackout) */
/* FEATURED PROJECT SPOTLIGHT (uses real <img>, so it cannot "vanish") */
.project-spotlight{
  display: grid;
  align-items: end;
  text-decoration: none;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  min-height: clamp(420px, 62vh, 720px);
  box-shadow: 0 18px 70px rgba(0,0,0,.55);
  position: relative;

  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.project-spotlight:hover{
  transform: translateY(-2px);
  border-color: rgba(124,255,216,.22);
  box-shadow: 0 22px 90px rgba(0,0,0,.62);
}

.project-spotlight__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* make it pop a bit */
  filter: brightness(1.02) saturate(1.05);
  transform: scale(1.02);
}

.project-spotlight__scrim{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 50% 35%, rgba(0,0,0,.10), rgba(0,0,0,.55)),
    linear-gradient(180deg, rgba(7,8,11,.18), rgba(7,8,11,.86));
}

.project-spotlight__content{
  position: relative;
  z-index: 2;
  padding: clamp(16px, 3vw, 28px);
  max-width: 860px;
}

.project-spotlight__meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom: 12px;
}

.project-spotlight__title{
  margin: 0;
  font-size: clamp(1.4rem, 2.3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.project-spotlight__desc{
  margin-top: 10px;
  color: rgba(233,236,243,.80);
  max-width: 70ch;
}

.project-spotlight__cta{
  display:inline-block;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(124,255,216,.28);
  background: rgba(124,255,216,.08);
  color: rgba(233,236,243,.92);
}

/* PROJECT DETAIL HERO */
.project-hero{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  min-height: clamp(360px, 52vh, 520px);
  box-shadow: 0 18px 70px rgba(0,0,0,.55);
  margin-bottom: 18px;
}

.project-hero__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.95) saturate(1.05);
  transform: scale(1.02);
}

.project-hero__scrim{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 50% 35%, rgba(0,0,0,.12), rgba(0,0,0,.62)),
    linear-gradient(180deg, rgba(7,8,11,.18), rgba(7,8,11,.88));
}

.project-hero__content{
  position: relative;
  z-index: 2;
  padding: clamp(16px, 3vw, 28px);
  max-width: 920px;
}

.project-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom: 12px;
}

.project-title{
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: -0.02em;
}

.project-lead{
  margin-top: 10px;
  color: rgba(233,236,243,.82);
  max-width: 72ch;
}

.project-ctaRow{
  margin-top: 18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.project-miniNote{
  margin-top: 12px;
  font-size: .92rem;
  color: rgba(169,176,194,.92);
}

/* list on project page */
.project-list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(233,236,243,.82);
}

.project-list li{
  margin: 12px 0;
}

.project-linkRow{
  margin-top: 6px;
}

/* simple link style if not present */
.link{
  color: rgba(233,236,243,.92);
  border-bottom: 1px dashed rgba(255,255,255,.28);
  padding-bottom: 2px;
}
.link:hover{
  border-bottom-color: rgba(124,255,216,.55);
}

/* --- Project page: make panels less boxy, more airy --- */
.project-page .two-col{
  gap: 18px;
}

.project-page .panel{
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);

  /* softer + cleaner glass */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.045) 0%,
    rgba(255,255,255,.022) 100%
  );
  backdrop-filter: blur(10px);

  /* less “heavy card” vibe */
  box-shadow: 0 14px 50px rgba(0,0,0,.35);
}

.project-page .panel .h2{
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.project-page .panel p.muted{
  color: rgba(233,236,243,.78);
  line-height: 1.75;
  margin-top: 12px;
}

/* spacing that feels intentional */
.project-page .panel > * + *{
  margin-top: 12px;
}

/* list looks cleaner */
.project-page .project-list{
  margin: 12px 0 0;
  padding-left: 18px;
}

.project-page .project-list li{
  margin: 14px 0;
  line-height: 1.65;
  color: rgba(233,236,243,.78);
}

.project-page .project-list li::marker{
  color: rgba(124,255,216,.55);
}

/* make the “Open WhatsApp invite” link less random */
.project-page .project-linkRow{
  margin-top: 6px;
}

.project-page .link{
  opacity: .9;
}

.project-page .link:hover{
  opacity: 1;
}

