:root {
  --teal-dark: #0d9488;
  --teal: #14b8a6;
  --teal-light: #5eead4;
  --ink: #0f2523;
  --paper: #fbfdfc;
  --line: #d8ece8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 5rem 1.5rem 6rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 40px -30px rgba(13, 42, 39, 0.28);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: mesh-in 1.6s ease forwards;
  animation-delay: .1s;
  -webkit-mask-image: linear-gradient(115deg, transparent 4%, rgba(0, 0, 0, .5) 32%, #000 58%);
  mask-image: linear-gradient(115deg, transparent 4%, rgba(0, 0, 0, .5) 32%, #000 58%);
}

.hero-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mesh-lines line {
  stroke: var(--teal-dark);
  stroke-width: 1.1;
  opacity: .16;
}

.mesh-nodes circle {
  fill: var(--teal-dark);
  opacity: .55;
  transform-box: fill-box;
  transform-origin: center;
  animation-name: node-pulse;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.mesh-nodes circle[r="5.5"] {
  fill: var(--teal-light);
  opacity: .8;
}

.blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: drift 24s ease-in-out infinite alternate;
}

.blob-a {
  width: 440px;
  height: 440px;
  top: -140px;
  right: -100px;
  background: radial-gradient(circle at 30% 30%, var(--teal-light), transparent 70%);
}

.blob-b {
  width: 380px;
  height: 380px;
  bottom: -160px;
  right: 200px;
  background: radial-gradient(circle at 60% 40%, var(--teal), transparent 70%);
  animation-delay: -10s;
}

@keyframes mesh-in {
  to { opacity: 1; }
}

@keyframes node-pulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.6); }
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 25px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .blob, .mesh-nodes circle {
    animation: none !important;
    opacity: 1 !important;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.logo {
  height: 44px;
  width: auto;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: var(--teal-dark);
  max-width: 100%;
}

.hero .lead {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: #3a5350;
  max-width: 52ch;
}

.diensten-section {
  background: var(--line);
  box-shadow: inset 0 -34px 40px -30px rgba(13, 42, 39, 0.28);
}

.diensten {
  max-width: 960px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.dienst {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 14px 34px -20px rgba(13, 42, 39, 0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.dienst:nth-child(2) {
  box-shadow: 0 24px 48px -18px rgba(13, 148, 136, 0.4);
}

.dienst-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.dienst-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.08);
  color: var(--teal-dark);
}

.dienst-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.dienst h2 {
  font-size: 1.35rem;
  color: var(--ink);
}

.dienst p {
  color: #4a615e;
  font-size: 0.98rem;
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}

footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  color: #7a8f8c;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .diensten {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 3.5rem 1.25rem 3.5rem;
  }
}
