/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --teal: #003e53;
  --green: #39b398;
  --magenta: #a62055;
  --cream: #e9d0b2;
  --dark: #0a0f19;
  --panel: rgba(10, 15, 25, 0.6);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-dim: rgba(255, 255, 255, 0.45);
  --radius: 20px;
  --gap: 24px;
  --padding: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

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

/* === Metaball Canvas === */
#metaballs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--padding);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 15, 25, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__logo { height: 28px; }

.nav__links { display: flex; align-items: center; gap: 36px; }

.nav__link {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__link:hover, .nav__link.active {
  color: var(--text);
  font-weight: 500;
}

.nav__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  background: var(--green);
  padding: 10px 28px;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(57, 179, 152, 0.3);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* === Sections === */
.section {
  position: relative;
  z-index: 1;
  padding: 0 var(--padding);
}

.panel {
  margin: 8px 32px;
  padding: 48px 56px;
  background: var(--panel);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel--connected-top {
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 0;
}

.panel--connected-mid {
  border-radius: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.panel--connected-bot {
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: 0;
}

.section__label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.section__label span {
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section__line {
  width: 48px;
  height: 1px;
  background: var(--green);
}

.section__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-transform: lowercase;
}

.section__desc {
  font-weight: 300;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
}

/* === Hero === */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--padding) 0;
  overflow: hidden;
}

.hero__content { position: relative; z-index: 2; }

.hero__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  margin-bottom: 20px;
}

.hero__text {
  font-weight: 300;
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.58;
  max-width: 520px;
}

.hero__illustration {
  position: absolute;
  bottom: 0;
  right: -20px;
  width: min(800px, 60vw);
  z-index: 1;
  pointer-events: none;
}

.hero__cat {
  position: absolute;
  bottom: 40px;
  left: 80px;
  width: 120px;
  z-index: 3;
}

/* === About / Stats === */
.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.about__text { flex: 1; }
.about__text .section__title { margin-bottom: 16px; }

.stats { display: flex; gap: 40px; }

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat__number {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.stat__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === Projekte === */
.projects__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.projects__link {
  font-size: 15px;
  color: var(--green);
  transition: opacity 0.2s;
}

.projects__link:hover { opacity: 0.7; }

.projects__grid {
  display: flex;
  gap: var(--gap);
}

.project-card {
  flex: 1;
  position: relative;
  border-radius: 16px;
  padding: 24px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.project-card--cream { background: var(--cream); }
.project-card--magenta { background: var(--magenta); }
.project-card--green { background: var(--green); }
.project-card--teal { background: #004d66; }

.project-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.project-card__tag--dark {
  background: rgba(0, 62, 83, 0.15);
  color: var(--teal);
}

.project-card__tag--cream {
  background: rgba(233, 208, 178, 0.15);
  color: var(--cream);
}

.project-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  text-align: center;
}

.project-card__title--dark { color: var(--teal); }
.project-card__title--cream { color: var(--cream); }

.project-card__desc {
  position: absolute;
  bottom: -32px;
  left: 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* === Werte === */
.values { display: flex; gap: var(--gap); }

.value-card {
  flex: 1;
  padding: 40px;
  border-radius: 16px;
}

.value-card--cream { background: var(--cream); }
.value-card--magenta { background: var(--magenta); }
.value-card--green { background: var(--green); }

.value-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin-bottom: 12px;
}

.value-card--cream .value-card__title,
.value-card--green .value-card__title { color: var(--teal); }

.value-card__text {
  font-size: 15px;
  line-height: 1.6;
}

.value-card--cream .value-card__text,
.value-card--green .value-card__text { color: rgba(0, 62, 83, 0.7); }

.value-card--magenta .value-card__text { color: rgba(255, 255, 255, 0.75); }

/* === Kontakt === */
.contact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.contact__info { flex: 1; }

.contact__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 5vw, 64px);
  letter-spacing: -0.03em;
  text-transform: lowercase;
  margin-bottom: 12px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.contact__link {
  font-weight: 500;
  font-size: 15px;
  color: var(--green);
  transition: opacity 0.2s;
}

.contact__link:hover { opacity: 0.7; }

.contact__detail {
  font-size: 15px;
  color: var(--text-dim);
}

.contact__mascots {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.contact__seal { width: 200px; }
.contact__hamster { width: 160px; }

/* === Footer === */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 56px !important;
  margin-bottom: 32px !important;
}

.footer__logo { height: 24px; opacity: 0.5; }

.footer__links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer__links a:hover { color: var(--text-muted); }

/* === Animationen === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__title, .hero__text, .hero__cat {
  animation: fadeInUp 0.8s ease-out both;
}

.hero__text { animation-delay: 0.15s; }
.hero__cat { animation-delay: 0.3s; }

/* === Responsive === */
@media (max-width: 1024px) {
  :root { --padding: 40px; }

  .panel { margin: 6px 16px; padding: 36px 32px; }

  .about { flex-direction: column; gap: 32px; }
  .stats { align-self: flex-start; }

  .projects__grid { flex-direction: column; }
  .project-card { height: 240px; }

  .values { flex-direction: column; }

  .contact { flex-direction: column; }
  .contact__mascots { align-self: center; }
}

@media (max-width: 768px) {
  :root { --padding: 24px; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__burger { display: flex; }

  .hero {
    min-height: 80vh;
    padding-top: 100px;
  }

  .hero__illustration {
    position: relative;
    width: 100%;
    right: 0;
    margin-top: 40px;
  }

  .hero__cat {
    bottom: auto;
    top: 60%;
    left: 20px;
    width: 80px;
  }

  .panel { margin: 4px 8px; padding: 28px 20px; }
  .footer { flex-direction: column; gap: 16px; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }

  .stats { gap: 24px; }
  .stat__number { font-size: 36px; }
}
