:root{
  --purple: #3d2058;
  --purple-light: #6b42a0;
  --purple-lighter: #7a4fb2;
  --yellow: #ffce04;
  --dark: #12081d;
  --card: #1c102a;
  --card-2: #26143a;

  --radius: 14px;
  --nav-h: 72px;

  --content-width: 900px;
  --content-padding: 20px;
  --section-space: 60px;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(
      circle at 50% 35%,
      var(--purple-lighter) 0%,
      var(--purple-light) 20%,
      #2d1747 45%,
      #140a21 75%,
      #09040f 100%
    );
  background-attachment: fixed;
  color: white;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--dark);
  text-decoration: none;
  z-index: 2000;
}

.skip-link:focus{
  left: 12px;
}

/* =========================
   Einheitliches Layout-System
   ========================= */

main{
  width: 100%;
}

.section{
  padding: var(--section-space) 0;
}

.section__inner{
  width: min(100% - (var(--content-padding) * 2), var(--content-width));
  margin-inline: auto;
}

/* =========================
   Navigation
   ========================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  pointer-events: none;
}

.nav-shell{
  width: min(94%, 780px);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav{
  position: relative;
  width: 100%;
  background: rgba(61, 32, 88, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  box-shadow:
    0 16px 36px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.04);
  pointer-events: auto;
}

.nav__list{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0.7rem 0.8rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.nav__item{
  display: flex;
}

.nav__highlight{
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 38px;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.18) 0%,
      rgba(255,255,255,.10) 100%
    );
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 8px 18px rgba(0,0,0,.18);
  transform: translate(0, -50%);
  transition:
    width .22s ease,
    transform .22s ease,
    opacity .22s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.nav__link{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  min-height: 38px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 206, 4, 0.92);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color .18s ease, opacity .18s ease;
}

.nav__link::before,
.nav__link::after{
  content: none !important;
}

.nav__link:hover{
  color: #ffffff;
  opacity: 1;
}

.nav__link.active{
  color: #ffffff;
  opacity: 1;
}

.nav__link--contact{
  font-weight: 700;
}

/* =========================
   Hero
   ========================= */

.hero{
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 3rem 20px 2rem;
  position: relative;
  overflow: visible; /* wichtig */
}

.hero::before{
  content: "";
  position: absolute;
  inset: 12% auto auto 50%;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 206, 4, 0.16) 0%,
    rgba(255, 206, 4, 0.08) 28%,
    rgba(255, 206, 4, 0.02) 56%,
    transparent 76%
  );
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero__logo{
  position: relative;
  z-index: 1;
  width: clamp(70px, 11vh, 105px);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 14px 28px rgba(0,0,0,.34))
    drop-shadow(0 0 18px rgba(255,206,4,.12));
  animation: hero-logo-in .8s cubic-bezier(.22,.85,.29,1) both;
}

.hero__title{
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0;

  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;          /* vorher zu knapp */
  letter-spacing: -0.02em;

  padding-bottom: 0.14em;     /* extra Luft für Unterlängen */

  background: linear-gradient(
    180deg,
    #fff7d1 0%,
    #ffdf57 36%,
    #ffce04 72%,
    #e2b400 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow: 0 0 24px rgba(255, 206, 4, 0.08);
  overflow: visible;

  animation: hero-title-in .9s .08s ease both;
}

.hero__payoff{
  position: relative;
  z-index: 1;
  display: block;
  max-width: 640px;
  margin: 0;

  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;

  padding-top: 0.05em;
  padding-bottom: 0.22em; /* mehr Luft für g/y/p/q */

  color: rgba(255,255,255,.86);

  overflow: visible;
  animation: hero-payoff-in .9s .16s ease both;
    overflow: visible !important;
}

@keyframes hero-logo-in{
  from{
    opacity: 0;
    transform: translateY(14px) scale(.92);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-payoff-in{
  from{
    opacity: 0;
  }
  to{
    opacity: 1;
  }
}

/* =========================
   Typography
   ========================= */

h2{
  margin: 0 0 1rem;
  color: var(--yellow);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

h3{
  margin: 0 0 0.6rem;
  color: var(--yellow);
  font-size: 1.05rem;
}

p{
  line-height: 1.6;
}

/* =========================
   About
   ========================= */

#about{
  max-width: 900px;
  margin: 0 auto;
}

.about-lead{
  max-width: 42rem;
  margin: 0 0 2rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255,255,255,.86);
}

.about-grid{
  display: grid;
  gap: 20px;
}

.about-card{
  background:
    linear-gradient(
      145deg,
      rgba(28, 16, 42, 0.94),
      rgba(38, 20, 58, 0.9)
    );
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow:
    0 16px 34px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.03);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

.about-card:hover{
  transform: translateY(-3px);
  box-shadow:
    0 22px 42px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.about-card p{
  margin: 0;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
}

/* =========================
   Services
   ========================= */

.panel{
  width: 100%;
  background:
    linear-gradient(
      145deg,
      rgba(28, 16, 42, 0.94),
      rgba(38, 20, 58, 0.9)
    );
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow:
    0 18px 40px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.03);
  overflow: hidden;
}

.panel__content{
  padding: 2rem;
}

.panel__content p,
.services-list{
  max-width: 42rem;
}

.panel__content p{
  color: rgba(255,255,255,.84);
  line-height: 1.6;
}

.services-list{
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 10px;
}

.services-list li{
  position: relative;
  padding: 10px 14px 10px 28px;
  border-radius: 10px;
  color: rgba(255,255,255,.84);
  transition:
    background-color .18s ease,
    transform .18s ease;
}

.services-list li::before{
  content: "•";
  position: absolute;
  left: 10px;
  top: 8px;
  color: var(--yellow);
  font-size: 1.1rem;
}

.services-list li:hover{
  background: rgba(255,255,255,.05);
  transform: translateY(-1px);
}

/* =========================
   Testimonials
   ========================= */

.popup-container{
  display: grid;
  gap: 20px;
}

.review{
  background:
    linear-gradient(
      145deg,
      rgba(28, 16, 42, 0.94),
      rgba(38, 20, 58, 0.9)
    );
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 16px 35px rgba(0,0,0,.35);
}

.review p{
  margin: 0;
  color: rgba(255,255,255,.84);
}

/* =========================
   Contact
   ========================= */

.contact-card{
  background:
    linear-gradient(
      145deg,
      rgba(28, 16, 42, 0.94),
      rgba(38, 20, 58, 0.9)
    );
  padding: 25px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 16px 35px rgba(0,0,0,.35);
}

.contact-tagline{
  margin-top: 0;
  color: rgba(255,255,255,.86);
}

.contact-line{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: white;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: color .18s ease, transform .18s ease;
}

.contact-line:hover{
  color: var(--yellow);
  transform: translateY(-1px);
}

.contact-line span:last-child{
  font-weight: 600;
}

/* =========================
   Scroll Progress
   ========================= */

.scroll-progress{
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 64px;
  height: 64px;
  opacity: 0;
  transform: translateY(8px) scale(.96);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 1200;
}

.scroll-progress.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-progress__svg{
  width: 100%;
  height: 100%;
}

.scroll-progress__bg{
  stroke: rgba(255,255,255,.18);
  stroke-width: 6;
  fill: none;
}

.scroll-progress__fg{
  stroke: var(--yellow);
  stroke-width: 6;
  fill: none;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
}

.scroll-progress__btn{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--yellow);
  font-size: 20px;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(0,0,0,.7);
  transition: transform .15s ease;
}

.scroll-progress__btn:hover,
.scroll-progress__btn:focus-visible{
  transform: translateY(-1px);
  outline: none;
}

/* =========================
   CSS-only Reveal
   ========================= */

.reveal{
  opacity: 0;
  animation: reveal-up 1ms linear both;
  animation-timeline: view();
  animation-range: entry 20% cover 40%;
}

.from-left{
  animation-name: reveal-left;
}

.from-right{
  animation-name: reveal-right;
}

#about.reveal,
#about .reveal{
  animation-range: entry 35% cover 48%;
}

@keyframes reveal-up{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes reveal-left{
  from{ opacity: 0; transform: translateX(-20px); }
  to{ opacity: 1; transform: translateX(0); }
}

@keyframes reveal-right{
  from{ opacity: 0; transform: translateX(20px); }
  to{ opacity: 1; transform: translateX(0); }
}

/* =========================
   Responsive
   ========================= */

@media (min-width: 700px){
  .about-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popup-container{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px){
  .nav-shell{
    width: min(95%, 780px);
    padding-inline: 12px;
  }

  .nav__list{
    gap: 6px;
    padding: 0.7rem;
  }

  .nav__highlight{
    height: 36px;
  }

  .nav__link{
    font-size: 0.94rem;
    padding: 0.6rem 0.9rem;
    min-height: 36px;
  }
}

@media (max-width: 700px){
  .hero{
    min-height: 84svh;
    gap: 16px;
    padding-top: 2.5rem;
  }

  .hero__payoff{
    max-width: 34rem;
  }
}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior: auto;
  }

  .reveal,
  .from-left,
  .from-right,
  .hero__logo,
  .hero__title,
  .hero__payoff{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}