/* Farben laut Farbpalette Diplomprojekt BM Hietzing */
:root {
  --dunkelgruen: #3F6B2A;
  --hauptgruen: #5F9240;
  --mittelgruen: #8DB048;
  --hellgruen: #B9D48A;
  --gruenhauch: #EAF2E3;
  --anthrazit: #2B2F36;
  --schiefer: #3F4651;
  --grau: #6B6F76;
  --hellgrau: #D5D6D9;
  --nebel: #EEEFF1;
  --weiss: #FFFFFF;
  --max: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--anthrazit);
  background: var(--weiss);
  line-height: 1.6;
  font-size: 17px;
}

img, video { max-width: 100%; height: auto; display: block; }

/* Renderings haben einen halbtransparenten Boden, Ränder sanft ausblenden */
.hero-img, .media img, .project img {
  -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 52% at 50% 50%, #000 62%, transparent 100%);
}

a { color: var(--hauptgruen); }
a:hover { color: var(--dunkelgruen); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Kopfzeile */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hellgrau);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav img { height: 38px; width: auto; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--schiefer); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--hauptgruen); }

/* Schriftzug Wastelligence */
.brand { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--anthrazit); text-decoration: none; }
.brand span { color: var(--hauptgruen); }
.brand:hover { color: var(--anthrazit); }

/* Untermenü Projekte */
.nav .has-sub { position: relative; }
.nav .sub {
  display: none; position: absolute; top: 100%; left: -16px; min-width: 170px;
  flex-direction: column; gap: 0; padding: 8px 0; margin-top: 4px;
  background: var(--weiss); border: 1px solid var(--hellgrau); border-radius: 12px;
  box-shadow: 0 10px 24px rgba(43, 47, 54, 0.12);
}
.nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav .sub a { display: block; padding: 8px 16px; }
.nav .sub a:hover { background: var(--gruenhauch); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: flex; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--hauptgruen);
}
.btn-primary { background: var(--hauptgruen); color: var(--weiss); }
.btn-primary:hover { background: var(--dunkelgruen); border-color: var(--dunkelgruen); color: var(--weiss); }
.btn-ghost { color: var(--hauptgruen); background: transparent; }
.btn-ghost:hover { background: var(--gruenhauch); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--gruenhauch) 0%, var(--weiss) 100%); padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--hauptgruen); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; margin: 0 0 12px; }
.hero h1 { font-size: clamp(36px, 5.5vw, 60px); line-height: 1.08; margin: 0 0 20px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--hauptgruen); }
.hero p.lead { font-size: 19px; color: var(--schiefer); margin: 0 0 28px; max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { justify-self: center; max-width: 420px; }

/* Abschnitte */
section { padding: 80px 0; }
section.alt { background: var(--nebel); }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
.intro { color: var(--schiefer); max-width: 44em; margin: 0 0 40px; font-size: 18px; }

/* Zahlen */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: var(--weiss); border-radius: var(--radius); padding: 28px; border: 1px solid var(--hellgrau); }
.stat b { display: block; font-size: 44px; line-height: 1; color: var(--hauptgruen); margin-bottom: 10px; }
.stat span { color: var(--schiefer); }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; margin-bottom: 48px; }
.step { position: relative; background: var(--gruenhauch); border-radius: var(--radius); padding: 28px 22px 24px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--hauptgruen); color: var(--weiss); font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--schiefer); font-size: 16px; }

.media { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.media video { border-radius: var(--radius); background: var(--weiss); }
.media figure { margin: 0; }
.media figcaption { color: var(--grau); font-size: 14px; margin-top: 8px; }

/* Vorteile */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--weiss); border: 1px solid var(--hellgrau); border-radius: var(--radius); padding: 26px; }
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--gruenhauch); color: var(--hauptgruen);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--schiefer); font-size: 16px; }

/* Stand des Projektes */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--hellgruen); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li::before {
  content: ""; position: absolute; left: -10px; top: 5px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--weiss); border: 3px solid var(--hellgruen);
}
.timeline li.done::before { background: var(--hauptgruen); border-color: var(--hauptgruen); }
.timeline li.now::before { background: var(--mittelgruen); border-color: var(--mittelgruen); }
.timeline b { display: block; }
.timeline span { color: var(--grau); font-size: 15px; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* Projekte */
.project { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; background: var(--gruenhauch); border-radius: 24px; padding: 32px 40px; }
.project img { max-width: 340px; justify-self: center; }
.project h3 { font-size: 30px; margin: 0 0 10px; }
.project p { color: var(--schiefer); margin: 0 0 22px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tags span { background: var(--weiss); color: var(--dunkelgruen); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.project-logo { height: 64px; width: auto; margin-bottom: 18px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { background: var(--weiss); border-radius: var(--radius); padding: 28px; text-align: center; border: 1px solid var(--hellgrau); }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--hauptgruen); color: var(--weiss);
  display: grid; place-items: center; font-weight: 700; font-size: 24px;
}
.person h3 { margin: 0 0 4px; font-size: 19px; }
.person p { margin: 0; color: var(--grau); font-size: 15px; }

/* Kontakt */
.contact { background: var(--anthrazit); color: var(--weiss); border-radius: 24px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact h2 { color: var(--weiss); margin-bottom: 8px; }
.contact p { margin: 0; color: var(--hellgrau); max-width: 36em; }
.contact .btn-primary { border-color: var(--hauptgruen); }

/* Fußzeile */
footer { border-top: 1px solid var(--hellgrau); padding: 28px 0; color: var(--grau); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--grau); }

/* Impressum */
.legal { padding: 56px 0 80px; max-width: 760px; }
.legal h1 { font-size: 36px; margin: 0 0 24px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }

@media (max-width: 900px) {
  .hero .wrap, .media, .status-grid { grid-template-columns: 1fr; }
  .hero-img { max-width: 300px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features, .stats, .team { grid-template-columns: 1fr; }
  .nav ul { gap: 16px; }
  .nav ul a { font-size: 14px; }
  .nav .sub { display: none !important; }
  .project { grid-template-columns: 1fr; padding: 28px 24px; }
  .project img { max-width: 240px; }
  section { padding: 56px 0; }
  .contact { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .brand { font-size: 20px; }
  .nav ul li:first-child, .nav ul li:nth-child(3) { display: none; }
}
