@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1b1d1f;
  --ink-2: #4a4f55;
  --muted: #595e66;
  --line: rgba(27, 29, 31, 0.10);
  --accent: #1f5f4a;
  --accent-ink: #ffffff;
  --radius: 10px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr, .skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.top { position: sticky; top: 0; z-index: 20; background: rgba(247, 246, 243, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 18px; }
.top nav { display: flex; gap: 20px; align-items: center; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
.top nav .nav-cta {
  color: var(--accent-ink);
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}
.top nav .nav-cta:hover { background: #184c3b; color: var(--accent-ink); }
@media (max-width: 780px) { .top nav a:not(.nav-cta) { display: none; } }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 8px; }
.btn:hover { background: #184c3b; color: var(--accent-ink); }
.link { color: var(--ink); font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 48px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.hero-shot { position: relative; margin: 0; padding-bottom: 40px; }
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 48px -24px rgba(27, 29, 31, 0.25); }
.bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fbfaf8; }
.bar span { width: 9px; height: 9px; border-radius: 50%; background: #d9d6d0; }
.bar em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 10px; }
.phone { position: absolute; right: -12px; bottom: 0; width: 30%; border: 6px solid #1b1d1f; border-radius: 22px; overflow: hidden; background: #1b1d1f; box-shadow: 0 20px 40px -16px rgba(27, 29, 31, 0.4); }
.phone img { aspect-ratio: 390 / 700; object-fit: cover; object-position: top; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 32px; }
  .phone { right: 8px; width: 28%; }
}

.scores { padding-top: 8px; padding-bottom: 24px; }
.scores-note { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.score-grid > div { background: var(--surface); padding: 16px 20px; }
.score-grid dt { font-weight: 600; margin-bottom: 6px; }
.score-grid dd { margin: 0; color: var(--ink-2); font-size: 15px; display: inline-block; margin-right: 16px; }
.score-grid b { color: var(--accent); font-size: 22px; font-variant-numeric: tabular-nums; margin-right: 4px; }
@media (max-width: 700px) { .score-grid { grid-template-columns: 1fr; } }

.section { padding-top: 72px; padding-bottom: 24px; }
.section-lead { color: var(--ink-2); font-size: 18px; max-width: 44em; margin-bottom: 32px; }

.case { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.case.reverse { grid-template-columns: 1fr 1.2fr; }
.case.single { grid-template-columns: 1fr; }
.case.single .case-text { max-width: 52em; }
.case-media { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.case-media iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; background: var(--surface); }
.embed-btn { position: absolute; left: 12px; bottom: 12px; font: inherit; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, 0.95); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.embed-btn:hover { background: #fff; color: var(--accent); }
.kind { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.case-text > p { color: var(--ink-2); }
.facts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 3px 10px; color: var(--ink-2); }
.case-links { margin-top: 16px; display: flex; gap: 16px; flex-wrap: wrap; }
.case-links a { font-weight: 600; text-decoration: none; }
.case-links a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .case, .case.reverse { grid-template-columns: 1fr; gap: 20px; }
}

/* Video & YouTube */
.yt-embed, .local-video-box {
  position: relative;
  background: #151617;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}
.yt-embed.square, .local-video-box.square {
  aspect-ratio: 1 / 1;
}
.yt-embed iframe, .local-video-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
  background: #000;
}
.yt-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-play-btn, .video-play-btn {
  position: absolute;
  width: fit-content;
  height: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  background: rgba(27, 29, 31, 0.90);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 2;
}
.video-play-btn {
  inset: 0;
  margin: auto;
}
.yt-play-btn {
  bottom: 16px;
  left: 16px;
}
.yt-play-btn:hover, .video-play-btn:hover {
  background: var(--accent);
  transform: scale(1.02);
}
.play-icon { font-size: 12px; line-height: 1; }

/* Video Grid (Messe-Demos) */
.demos-h { margin-top: 48px; margin-bottom: 8px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.video-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.video-card-body h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}
.video-card-body p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .video-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* CAD vs. Real Image Comparison */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}
.compare-grid figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.compare-grid figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: #fbfaf8;
  text-align: center;
}
@media (max-width: 600px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* Grid 4 (Was Sie bekommen) */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid4 > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.grid4 p { color: var(--ink-2); font-size: 16px; margin: 0; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid4 { grid-template-columns: 1fr; } }

.steps-h { margin-top: 48px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { counter-increment: s; border-top: 2px solid var(--accent); padding-top: 12px; }
.steps li::before { content: counter(s); color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; display: block; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Über mich */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.about img { width: 220px; border-radius: 50%; background: #e9e6e0; border: 1px solid var(--line); }
.about p { color: var(--ink-2); max-width: 44em; }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; gap: 20px; } .about img { width: 140px; } }

/* Kontakt */
.contact { padding-bottom: 80px; }
.contact .contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; max-width: 640px; }
.contact-meta { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 15px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Legal Pages */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 24px; }
.legal h2 { font-size: 21px; margin-top: 32px; }
.legal p, .legal li { color: var(--ink-2); }
.legal address { font-style: normal; color: var(--ink); line-height: 1.6; margin-bottom: 14px; }
