:root {
  --bg: #090119;
  --text: #f8f3ff;
  --muted: #d7c9f3;
  --line: rgba(255, 255, 255, 0.16);
  --pink: #ff56dd;
  --violet: #8c5bff;
  --cyan: #59d5ff;
  --shadow: 0 20px 60px rgba(5, 3, 20, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(9, 1, 25, 0.08) 0%, rgba(9, 1, 25, 0.22) 55%, rgba(9, 1, 25, 0.42) 100%),
    url("../../media/images/background.png") center top / 100% auto no-repeat,
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-overlay,
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.site-overlay {
  z-index: -2;
  background:
    radial-gradient(circle at 20% 15%, rgba(72, 212, 255, 0.12), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(255, 73, 220, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(5, 0, 20, 0.08) 0%, rgba(5, 0, 20, 0.06) 30%, rgba(4, 2, 18, 0.16) 100%);
}

.stars {
  z-index: -1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.6px),
    radial-gradient(circle at 65% 22%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.7px),
    radial-gradient(circle at 76% 56%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.8px),
    radial-gradient(circle at 12% 78%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.7px),
    radial-gradient(circle at 54% 84%, rgba(255, 255, 255, 0.48) 0 1px, transparent 1.7px);
  opacity: 0.45;
  animation: drift 18s linear infinite;
}

@keyframes drift {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0);
  }
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 0 22px rgba(255, 86, 221, 0.55);
  transform: rotate(45deg);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1;
}

.brand-copy span {
  font-size: 0.72rem;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.84);
}

.nav a,
.sitemap-grid a {
  position: relative;
  font-size: 0.98rem;
}

.nav a::after,
.sitemap-grid a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a.is-active::after,
.sitemap-grid a:hover::after {
  width: 100%;
}

.hero {
  min-height: 84vh;
  display: flex;
  align-items: flex-start;
  padding-top: 9vh;
}

.hero-copy {
  max-width: 700px;
  padding: 38px;
  margin-top: 10px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #f7d9ff;
  opacity: 0.95;
  margin-bottom: 14px;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1 {
  font-size: clamp(1.24rem, 2.28vw, 2.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: none;
  width: 100%;
  text-wrap: balance;
  text-shadow: 0 0 24px rgba(255, 118, 228, 0.12);
}

h2,
.panel-price strong {
  background: linear-gradient(90deg, #ffffff 0%, #ffd0f7 34%, #9ddcff 72%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p,
.section-head p,
.service-card p,
.timeline-item p,
.project-body p,
.panel-card p,
.price-row h3,
.section-note,
.contact-card p,
.footer-copy {
  color: var(--muted);
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  text-wrap: pretty;
  hyphens: auto;
}

.hero p {
  margin-top: 18px;
  max-width: 60ch;
  font-size: 1.03rem;
}

.hero-actions,
.hero-stats,
.service-grid,
.timeline,
.project-grid,
.form-row,
.panel-grid,
.sitemap-grid {
  display: grid;
  gap: 18px;
}

.hero-actions {
  grid-template-columns: repeat(2, max-content);
  margin-top: 28px;
}

.hero-stats {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  padding: 0;
}

.hero-stats li {
  list-style: none;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.95rem;
}

section {
  padding: 72px 0;
  scroll-margin-top: 90px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head-center {
  text-align: center;
}

.section-head-compact {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(1.18rem, 1.7vw, 1.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-head p {
  max-width: 72ch;
}

.section-head-center p {
  margin-inline: auto;
}

.service-grid,
.project-grid,
.panel-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.panel-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.service-card,
.timeline-item,
.project-card,
.contact-card,
.panel-card,
.price-section,
.sitemap {
  position: relative;
  overflow: hidden;
}

.service-card,
.panel-card {
  padding: 28px;
}

.service-card {
  min-height: 320px;
}

.service-card h3,
.panel-card h3,
.project-body h3,
.price-row h3 {
  font-size: clamp(0.92rem, 1.08vw, 1.02rem);
  margin: 14px 0 12px;
}

.chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
}

.inline-link {
  display: inline-block;
  margin-top: 18px;
  color: #fff;
  font-weight: 600;
}

.inline-link.is-muted {
  color: rgba(255, 255, 255, 0.56);
}

.bullet-list,
.contact-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.bullet-list li,
.contact-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--muted);
  text-align: justify;
  text-justify: inter-word;
  text-wrap: pretty;
  hyphens: auto;
}

.bullet-list li::before,
.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 0 12px rgba(89, 213, 255, 0.55);
}

.timeline {
  grid-template-columns: repeat(4, 1fr);
}

.timeline-item {
  padding: 24px;
  min-height: 220px;
}

.timeline-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.project-card {
  padding: 18px;
}

.project-visual {
  position: relative;
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(89, 213, 255, 0.34), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(255, 86, 221, 0.38), transparent 26%),
    linear-gradient(135deg, rgba(17, 8, 40, 0.95), rgba(37, 15, 74, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.screen,
.screen-glow {
  position: absolute;
  border-radius: 18px;
}

.screen-a {
  inset: 26px 72px 70px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: perspective(1000px) rotateY(-14deg) rotateX(10deg);
}

.screen-b {
  inset: 68px 32px 30px 118px;
  background: linear-gradient(180deg, rgba(94, 222, 255, 0.24), rgba(255, 86, 221, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: perspective(1000px) rotateY(-14deg) rotateX(10deg);
}

.screen-glow {
  inset: auto 20px 14px 20px;
  height: 18px;
  background: linear-gradient(90deg, rgba(89, 213, 255, 0), rgba(89, 213, 255, 0.75), rgba(255, 86, 221, 0.8), rgba(255, 86, 221, 0));
  filter: blur(12px);
}

.project-body {
  padding: 18px 6px 6px;
}

.content-section {
  padding-top: 12px;
}

.page-hero {
  min-height: auto;
  padding-top: 5rem;
}

.page-hero-card {
  padding: 34px;
  max-width: 860px;
}

.page-hero-card p {
  max-width: 68ch;
}

.page-referenzen .page-hero {
  padding-bottom: 36px;
}

.page-referenzen .projects {
  padding-top: 36px;
}

.panel-price {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 10px;
}

.price-section {
  margin-top: 26px;
  padding: 28px;
}

.price-list {
  display: grid;
  gap: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-row:last-child {
  border-bottom: 0;
}

.section-note {
  margin-top: 20px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  padding: 32px;
}

.contact-card h2 {
  font-size: clamp(1.2rem, 1.85vw, 1.75rem);
  line-height: 1.06;
  margin-bottom: 12px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  grid-template-columns: repeat(2, 1fr);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.footer {
  padding: 26px 0 40px;
}

.sitemap {
  padding: 28px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.legal-copy p + p {
  margin-top: 14px;
}

.legal-copy a {
  color: #fff;
}

.article-intro {
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.article-section + .article-section {
  margin-top: 24px;
}

.article-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
}

.sitemap-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.footer-copy {
  margin-top: 24px;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, rgba(102, 216, 255, 0.18), rgba(255, 86, 221, 0.28));
  box-shadow: 0 0 24px rgba(255, 86, 221, 0.25), 0 0 30px rgba(89, 213, 255, 0.14);
}

.btn-outline,
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.btn-sm {
  min-height: 44px;
  padding-inline: 18px;
}

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 28px;
}

.strong-glow::before,
.service-card::before,
.timeline-item::before,
.project-card::before,
.panel-card::before,
.price-section::before,
.contact-card::before,
.sitemap::before {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(89, 213, 255, 0.25), rgba(255, 86, 221, 0.08) 42%, transparent 72%);
  filter: blur(16px);
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  body {
    background-size: 1400px auto;
  }
}

@media (max-width: 1080px) {
  .service-grid,
  .project-grid,
  .panel-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card,
  .panel-grid-2,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body {
    background-size: 1800px auto;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .page-hero {
    padding-top: 3.5rem;
  }

  .hero-copy {
    padding: 28px;
  }

  .page-hero-card {
    padding: 28px;
  }

  .hero-actions,
  .hero-stats,
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    background-position: 62% top;
    background-size: 2200px auto;
  }

  .container {
    width: min(1200px, calc(100% - 18px));
  }

  .service-grid,
  .project-grid,
  .panel-grid-3,
  .timeline {
    grid-template-columns: 1fr;
  }

  .btn,
  .hero-actions {
    width: 100%;
  }

  .hero-copy,
  .page-hero-card,
  .service-card,
  .panel-card,
  .price-section,
  .contact-card,
  .sitemap {
    padding: 22px;
  }
}
