/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

/* ── Tokens ── */
:root {
  --bg:         #f8f7f4;
  --bg-white:   #ffffff;
  --bg-dark:    #141414;
  --text:       #1c1c1e;
  --muted:      #666;
  --border:     #e5e2da;
  --accent:     #0A84FF;
  --accent-rgb: 10, 132, 255;
  --radius:     16px;
  --max:        900px;
}

/* ── Base ── */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
}
.nav-logo-img {
  height: 28px;
  width: auto;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 36px;
}
.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav-menu a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 48px 100px;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after { display: none; }
.hero::before {
  content: '';
  position: absolute;
  top: 4%;
  right: -4%;
  width: min(580px, 58vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 55% 45%,
    rgba(var(--accent-rgb), .10) 0%,
    rgba(var(--accent-rgb), .03) 40%,
    transparent 68%
  );
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 16%;
  right: 8%;
  width: min(360px, 36vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .10);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-visual img {
  width: 100%;
  border-radius: 20px;
}
.hero-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(46px, 7.5vw, 80px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 44px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  background: var(--text);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .82; transform: translateY(-1px); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.scroll-cue {
  position: absolute;
  bottom: 38px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #bbb;
}
.scroll-cue-line { width: 28px; height: 1px; background: currentColor; }
.scroll-cue-arrow { animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ── Shared sections ── */
.section { padding: 100px 48px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.s-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.s-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 620px;
}

/* ── Was wir tun ── */
.section-about { background: var(--bg-white); }

/* ── Leistungen ── */
.section-leistungen { background: var(--bg); }
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 52px;
}
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.07);
  transform: translateY(-3px);
}
.card-ico {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.card-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-bottom: 10px;
}
.card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.card-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.card-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A84FF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 9px no-repeat;
}

/* ── Für wen ── */
.section-fuerwen { background: #f0f7ff; }
.section-fuerwen .s-label { color: var(--accent); }
.section-fuerwen h2    { color: var(--text); }
.section-fuerwen .s-text { color: var(--muted); max-width: 640px; }

.fuerwen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.fuerwen-tags span {
  background: #fff;
  border: 1px solid #c8e0ff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
}
.fuerwen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.fuerwen-visual { width: 100%; }

.carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.dot.active { background: #fff; }

/* ── Kontakt ── */
.section-kontakt { background: var(--bg-white); }
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.kontakt-visual img {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.k-email {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  transition: color .2s;
}
.k-email:hover { color: var(--accent); }
.k-meta { font-size: 15px; color: var(--muted); }

.k-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.k-social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px 11px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: opacity .2s, transform .2s;
}
.k-social:hover { opacity: .88; transform: translateY(-1px); }
.k-social svg { width: 19px; height: 19px; flex-shrink: 0; }
.k-whatsapp { background: #25D366; }
.k-line     { background: #06C755; }

/* ── Footer ── */
.footer {
  background: var(--bg-dark);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { font-size: 14px; font-weight: 600; color: #fff; }
.footer-copy  { font-size: 13px; color: #444; }
.footer-nav   { display: flex; gap: 24px; }
.footer-nav a { font-size: 13px; color: #555; transition: color .2s; }
.footer-nav a:hover { color: #bbb; }

/* ── Sub-pages ── */
.sub-topbar {
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sub-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.sub-back:hover { color: var(--text); }
.sub-back svg {
  width: 15px; height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sub-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
}
.sub-logo-img {
  height: 26px;
  width: auto;
}
.sub-header {
  padding: 64px 48px 52px;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.sub-header h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.sub-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 48px 100px;
}
.sub-body h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 36px 0 10px;
}
.sub-body h2:first-child { margin-top: 0; }
.sub-body p, .sub-body address {
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
  font-style: normal;
}
.sub-body a { color: var(--accent); }
.sub-body a:hover { text-decoration: underline; }
.sub-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.in { opacity: 1; transform: none; }
.fade-up.d1 { transition-delay: .10s; }
.fade-up.d2 { transition-delay: .20s; }
.fade-up.d3 { transition-delay: .30s; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .nav         { padding: 18px 20px; }
  .nav-menu    { display: none; }

  .hero        { padding: 100px 20px 80px; }
  .hero-inner  { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .scroll-cue  { left: 20px; bottom: 28px; }
  .fuerwen-grid { grid-template-columns: 1fr; gap: 32px; }
  .fuerwen-visual { order: -1; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 32px; }
  .kontakt-visual { display: none; }

  .section     { padding: 64px 20px; }

  .cards       { grid-template-columns: 1fr; gap: 12px; }

  .footer      { padding: 28px 20px; flex-direction: column; align-items: flex-start; gap: 12px; }

  .sub-topbar  { padding: 16px 20px; }
  .sub-header  { padding: 40px 20px 40px; }
  .sub-body    { padding: 36px 20px 80px; }
}
