:root{
  --bg:#0f1511;
  --bg-soft:#121a15;
  --surface:#151f18;
  --surface-soft:#111813;
  --line:#29382e;
  --line-strong:#385044;
  --text:#edf3ee;
  --muted:#9caf9f;
  --muted-2:#77897b;
  --accent:#77a982;
  --accent-bright:#9bc5a4;
  --green:#86d6a1;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;color-scheme:dark}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 15% 0%,rgba(119,169,130,.09),transparent 28%),
    radial-gradient(circle at 100% 20%,rgba(119,169,130,.05),transparent 24%),
    var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.ambient{
  position:fixed;
  pointer-events:none;
  border-radius:50%;
  filter:blur(100px);
  opacity:.12;
}
.ambient-a{
  width:380px;
  height:380px;
  background:#5d8f69;
  top:-180px;
  left:-130px;
}
.ambient-b{
  width:320px;
  height:320px;
  background:#42684b;
  right:-160px;
  top:220px;
}

.page{
  width:min(1040px,calc(100% - 28px));
  margin:0 auto;
  padding:18px 0 28px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:6px 0 18px;
  border-bottom:1px solid var(--line);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
}
.brand-mark{
  width:34px;
  height:34px;
  border:1px solid var(--line-strong);
  display:grid;
  place-items:center;
  font-weight:800;
  color:var(--accent-bright);
  background:rgba(119,169,130,.06);
}
.brand-text{
  font-weight:800;
  letter-spacing:-.025em;
}

.nav{
  display:flex;
  gap:18px;
}
.nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:.86rem;
}
.nav a:hover{color:var(--text)}

.hero{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(250px,.5fr);
  gap:46px;
  padding:58px 0 46px;
  border-bottom:1px solid var(--line);
}

.eyebrow{
  color:var(--accent);
  font-size:.72rem;
  letter-spacing:.15em;
  text-transform:uppercase;
  font-weight:800;
}

.hero h1{
  margin:10px 0 0;
  font-size:clamp(2.8rem,7vw,5.2rem);
  line-height:.96;
  letter-spacing:-.065em;
}
.hero h1 span{
  color:var(--accent-bright);
  font-weight:650;
}
.hero-copy p{
  max-width:680px;
  margin:22px 0 0;
  color:var(--muted);
  line-height:1.7;
  font-size:1rem;
}

.hero-meta{
  align-self:end;
  border-top:1px solid var(--line);
}
.meta-row{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:.84rem;
}
.meta-row strong{
  color:var(--text);
  font-weight:650;
}
.online{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--green)!important;
}
.online i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 10px rgba(134,214,161,.45);
}

.section{
  padding:34px 0 0;
}
.section-title{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-end;
  margin-bottom:10px;
}
.section-title h2{
  margin:5px 0 0;
  font-size:1.35rem;
  letter-spacing:-.04em;
}
.section-note{
  color:var(--muted-2);
  font-size:.8rem;
}

.project{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 32px;
  gap:18px;
  align-items:start;
  padding:22px 0;
  border-top:1px solid var(--line);
  color:var(--text);
  text-decoration:none;
  transition:background .18s ease,padding .18s ease;
}
.project:last-child{
  border-bottom:1px solid var(--line);
}
.project.featured:hover{
  background:rgba(119,169,130,.045);
  padding-left:10px;
  padding-right:10px;
}
.project-index{
  color:var(--muted-2);
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.78rem;
  padding-top:4px;
}
.project-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}
.project-category{
  color:var(--muted-2);
  font-size:.69rem;
  letter-spacing:.12em;
  font-weight:800;
}
.project h3{
  margin:5px 0 0;
  font-size:1.18rem;
  letter-spacing:-.03em;
}
.project p{
  margin:9px 0 0;
  color:var(--muted);
  line-height:1.55;
  max-width:690px;
  font-size:.92rem;
}
.project-meta{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  margin-top:12px;
  color:var(--muted-2);
  font-size:.76rem;
}
.project-arrow{
  color:var(--accent-bright);
  font-size:1.25rem;
  padding-top:3px;
}
.live-badge,.planned-badge{
  padding:4px 7px;
  border:1px solid var(--line);
  font-size:.64rem;
  letter-spacing:.09em;
  font-weight:800;
  white-space:nowrap;
}
.live-badge{
  color:var(--green);
  border-color:rgba(134,214,161,.28);
  background:rgba(134,214,161,.04);
}
.planned-badge{
  color:var(--muted-2);
}

.about{
  padding-bottom:14px;
}
.about-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:44px;
  padding:22px 0 4px;
  border-top:1px solid var(--line);
}
.about-text p{
  margin:0;
  max-width:650px;
  color:var(--muted);
  line-height:1.7;
}
.domain-list{
  border-top:1px solid var(--line);
}
.domain-list div{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.8rem;
}
.domain-list span{color:var(--accent-bright)}
.domain-list strong{
  color:var(--muted);
  font-weight:500;
}

.footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:26px;
  padding-top:14px;
  border-top:1px solid var(--line);
  color:var(--muted-2);
  font-size:.76rem;
}

@media(max-width:780px){
  .hero{
    grid-template-columns:1fr;
    gap:30px;
    padding:42px 0 34px;
  }
  .hero-meta{align-self:stretch}
  .about-grid{
    grid-template-columns:1fr;
    gap:24px;
  }
}

@media(max-width:560px){
  .page{
    width:min(100% - 18px,100%);
    padding-top:12px;
  }
  .topbar{
    align-items:flex-start;
  }
  .nav{gap:12px}
  .nav a{font-size:.8rem}

  .hero{
    padding:34px 0 28px;
  }
  .hero h1{
    font-size:2.7rem;
  }
  .hero-copy p{
    font-size:.94rem;
  }

  .section{
    padding-top:28px;
  }

  .project{
    grid-template-columns:32px minmax(0,1fr);
    gap:12px;
    padding:18px 0;
  }
  .project-arrow{
    display:none;
  }
  .project-head{
    gap:10px;
  }
  .project h3{
    font-size:1.08rem;
  }
  .project p{
    font-size:.87rem;
  }
  .project-meta{
    gap:8px 14px;
  }
  .live-badge,.planned-badge{
    font-size:.59rem;
  }

  .section-title{
    align-items:flex-start;
    flex-direction:column;
    gap:6px;
  }
}


/* ===== v5 Logo integration ===== */
.brand-image-link{
  display:block;
  width:min(250px, 44vw);
}
.brand-image{
  display:block;
  width:100%;
  height:auto;
  border-radius:0;
}

.hero-brand{
  grid-template-columns:minmax(0,1.45fr) minmax(230px,.55fr);
  align-items:end;
  padding:30px 0 28px;
}
.hero-logo-wrap{
  min-width:0;
}
.hero-logo{
  display:block;
  width:min(760px,100%);
  height:auto;
  object-fit:contain;
  object-position:left center;
}

.project{
  grid-template-columns:118px minmax(0,1fr) 32px;
  align-items:center;
}
.project-thumb{
  width:118px;
  padding:0;
}
.project-thumb img{
  display:block;
  width:100%;
  aspect-ratio:21 / 9;
  object-fit:cover;
  border:1px solid var(--line);
  background:#0d1410;
}
.project-content{
  min-width:0;
}

@media(max-width:780px){
  .hero-brand{
    grid-template-columns:1fr;
    gap:18px;
    padding:24px 0 26px;
  }
  .hero-logo{
    width:min(680px,100%);
  }
}
@media(max-width:560px){
  .brand-image-link{
    width:190px;
  }
  .project{
    grid-template-columns:88px minmax(0,1fr);
    gap:12px;
  }
  .project-thumb{
    width:88px;
    align-self:start;
    margin-top:2px;
  }
  .project-head{
    flex-wrap:wrap;
  }
  .project-meta{
    display:none;
  }
}


/* ===== v5.1: großes Hero-Logo entfernt ===== */
.hero-compact{
  display:block;
  padding:20px 0 24px;
}
.hero-compact .hero-meta{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.hero-compact .meta-row{
  padding:14px 16px;
  border-right:1px solid var(--line);
}
.hero-compact .meta-row:first-child{
  padding-left:0;
}
.hero-compact .meta-row:last-child{
  border-right:0;
  padding-right:0;
}
@media(max-width:640px){
  .hero-compact{
    padding:14px 0 18px;
  }
  .hero-compact .hero-meta{
    grid-template-columns:1fr;
  }
  .hero-compact .meta-row,
  .hero-compact .meta-row:first-child,
  .hero-compact .meta-row:last-child{
    padding:9px 0;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .hero-compact .meta-row:last-child{
    border-bottom:0;
  }
}


/* ===== Rechtliches ===== */
.legal-links{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.legal-links a{
  color:var(--muted);
  text-decoration:none;
}
.legal-links a:hover{
  color:var(--accent-bright);
}
.legal-page{
  min-height:100vh;
}
.legal-topbar{
  margin-bottom:0;
}
.legal-content{
  max-width:820px;
  padding:42px 0 48px;
}
.legal-content h1{
  margin:8px 0 14px;
  font-size:clamp(2.1rem,6vw,3.5rem);
  line-height:1;
  letter-spacing:-.05em;
}
.legal-lead{
  margin:0 0 32px;
  max-width:760px;
  color:var(--muted);
  line-height:1.7;
  font-size:1rem;
}
.legal-section{
  padding:22px 0;
  border-top:1px solid var(--line);
}
.legal-section:last-of-type{
  border-bottom:1px solid var(--line);
}
.legal-section h2{
  margin:0 0 10px;
  font-size:1.08rem;
  letter-spacing:-.025em;
}
.legal-section p,
.legal-section li,
.legal-section address{
  color:var(--muted);
  line-height:1.72;
  font-size:.93rem;
}
.legal-section p{
  margin:8px 0;
}
.legal-section ul{
  margin:8px 0 14px;
  padding-left:22px;
}
.legal-section address{
  font-style:normal;
}
.legal-section strong{
  color:var(--text);
}
.legal-section a{
  color:var(--accent-bright);
  text-decoration:none;
}
.legal-section a:hover{
  text-decoration:underline;
}
.legal-updated{
  margin:24px 0 0;
  color:var(--muted-2);
  font-size:.8rem;
}
.legal-footer{
  border-top:1px solid var(--line);
}
@media(max-width:640px){
  .legal-content{
    padding:30px 0 36px;
  }
  .legal-topbar{
    align-items:flex-start;
  }
  .legal-topbar .nav{
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  .legal-topbar .nav a{
    font-size:.78rem;
  }
}
