:root {
  /* Colors — near-black / white scale, two restrained accents */
  --snow: #ffffff;
  --mist: #fafafa;
  --cloud: #f4f4f5;
  --silver: #e4e4e7;
  --ash: #a1a1aa;
  --slate: #71717a;
  --graphite: #3f3f46;
  --panel: #18181b;
  --ink: #09090b;
  --ember: #ff5a00;

  /* Type — single typeface system (Cosmica substitute) */
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;

  /* Radii */
  --r-tile: 36px;
  --r-card: 28px;
  --r-badge: 12px;
  --r-input: 14px;
  --r-pill: 999px;

  --max-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  background: var(--snow);
  color: var(--ink);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--ink);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

.muted { color: var(--ash); font-weight: 500; }

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--snow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--r-badge);
}
.badge-accent { background: var(--ember); }
.badge-ghost { background: rgba(255,255,255,0.14); color: var(--snow); backdrop-filter: blur(6px); }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--snow);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  padding: 15px 28px;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.08) inset,
    0 0 0 1px rgba(0,0,0,0.5),
    0 10px 24px -10px rgba(0,0,0,0.5);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), box-shadow 0.35s cubic-bezier(.16,1,.3,1);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--silver);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn-ghost:hover { background: var(--cloud); }
.btn-ghost.on-dark { border-color: rgba(255,255,255,0.25); color: var(--snow); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,0.1); }

/* ===== Header (floating pill nav) ===== */
.site-header {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 1000;
}
.nav-pill {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  border: 1px solid var(--silver);
  border-radius: var(--r-pill);
  padding: 9px 10px 9px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.site-logo span { color: var(--ash); font-weight: 600; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--slate);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); background: var(--cloud); }

.header-cta .btn-primary { padding: 11px 22px; font-size: 13px; white-space: nowrap; }

@media (max-width: 420px) {
  .nav-pill { padding: 8px 8px 8px 18px; }
  .header-cta .btn-primary { padding: 10px 16px; font-size: 12px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
}

/* ===== Hero ===== */
.hero {
  padding: 168px 0 0;
  background: var(--mist);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}
.hero-copy .badge { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 0.98;
  margin: 0;
  max-width: 13ch;
}
.hero-claim {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ash);
  margin: 16px 0 0;
}
.hero-aside { padding-bottom: 6px; }
.hero-sub {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0 0 24px;
  max-width: 420px;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

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

.hero-media {
  border-radius: var(--r-tile);
  overflow: hidden;
  aspect-ratio: 16/7;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .hero-media { aspect-ratio: 4/3; } }

/* ===== Marquee ===== */
.marquee {
  margin-top: 56px;
  border-top: 1px solid var(--silver);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 48px;
  padding: 20px 0;
  width: max-content;
  animation: scroll-left 26s linear infinite;
}
.marquee-track span {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
}
.marquee-track span em { color: var(--ember); font-style: normal; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Generic sections ===== */
.section { padding: 110px 0; }
.section-dark { background: var(--ink); color: var(--snow); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.05;
}
.lead {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  margin: 18px 0 0;
  max-width: 540px;
}
.prose { max-width: 720px; }
.prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate);
  margin: 0 0 18px;
}
.prose h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 30px 0 12px;
}
.prose ul { margin: 0 0 18px; padding-left: 20px; }
.prose li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: 8px;
}
.prose strong { color: var(--ink); font-weight: 600; }
.section-dark .lead { color: var(--ash); }

/* ===== Stat row ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 44px;
  border-top: 1px solid var(--silver);
}
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr; gap: 28px; } }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-num small { font-size: 0.45em; color: var(--ash); font-weight: 600; }
.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
}

/* ===== Feature grid (Leistungen) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--cloud);
  border-radius: var(--r-card);
  padding: 32px;
}
.feature-card.featured {
  grid-column: span 3;
  background: var(--ink);
  color: var(--snow);
  padding: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--snow);
  border-radius: var(--r-badge);
  margin-bottom: 20px;
  color: var(--ink);
}
.featured .feature-icon { background: rgba(255,255,255,0.1); color: var(--snow); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card.featured h3 { font-size: 26px; max-width: 360px; }
.feature-card p {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
}
.featured p { color: var(--ash); max-width: 360px; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.featured { grid-column: span 1; flex-direction: column; align-items: flex-start; }
}

/* ===== Portfolio tiles ===== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .tile-grid { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  display: block;
  min-height: 440px;
  border-radius: var(--r-tile);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: var(--snow);
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,0.88), rgba(9,9,11,0.15) 55%);
}
.tile-badge { position: absolute; top: 24px; left: 24px; z-index: 2; }
.tile-info { position: absolute; left: 0; bottom: 0; padding: 30px; z-index: 2; }
.tile-info h3 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  margin-bottom: 10px;
  max-width: 18ch;
}
.tile-info p {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  margin: 0 0 16px;
  max-width: 32ch;
}
.tile-cta {
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease;
}
.tile:hover .tile-cta { gap: 12px; }

/* ===== Reviews (dark panel) ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--panel);
  border-radius: var(--r-card);
  padding: 28px 24px;
  position: relative;
}
.review-card .stars { color: var(--ember); font-size: 13px; letter-spacing: 2px; margin-bottom: 16px; }
.review-card .source {
  position: absolute;
  top: 26px; right: 24px;
  font-weight: 600;
  font-size: 12px;
  color: var(--ash);
}
.review-card .quote {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin: 0 0 18px;
}
.review-card .author {
  font-weight: 700;
  font-size: 12px;
  color: var(--ash);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--silver);
}
.info-row .label {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
}
.info-row .value {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-align: right;
  line-height: 1.5;
}

.map-wrap {
  margin-top: 28px;
  border-radius: var(--r-tile);
  overflow: hidden;
}
.map-wrap iframe { width: 100%; height: 240px; border: 0; display: block; filter: saturate(0.85); }

.cf-form label {
  display: block;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ash);
}
.cf-form input, .cf-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  background: var(--cloud);
  border: 1px solid transparent;
  border-radius: var(--r-input);
  transition: border-color 0.2s, background 0.2s;
}
.cf-form input:focus, .cf-form textarea:focus { outline: none; border-color: var(--ink); background: var(--snow); }
.cf-form textarea { min-height: 120px; resize: vertical; }
.cf-form .btn-primary { width: 100%; justify-content: center; padding: 16px; margin-top: 4px; }

.form-success, .form-error {
  border-radius: var(--r-input);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 14px;
}
.form-success { background: var(--cloud); color: var(--ink); }
.form-error { background: var(--cloud); color: var(--graphite); }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--ash);
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }
.footer-logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--snow);
  margin-bottom: 14px;
}
.footer-logo span { color: var(--ash); font-weight: 600; }
.footer-col h4 {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 10px;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--snow); }
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--graphite);
  margin-top: 24px;
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(20px) scale(0.98); transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal { transition: opacity 0.2s linear; transform: none; }
  .btn-primary, .btn-ghost, .tile-cta { transition: none; }
}

@media (max-width: 700px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
}
