@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #ECEEF1;
  --dot: #CBD0D7;
  --ink: #1B1E26;
  --muted: #535967;
  --paper: #FFFFFF;
  --line: #D6DAE0;
  --blue: #2F5BFF;
  --blue-dark: #1E45E6;
  --pink: #D6336C;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--canvas);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.3px);
  background-size: 24px 24px;
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Kopfzeile */
.top {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 10px;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-name {
  font-size: 22px;
  font-weight: 650;
  font-stretch: 85%;
  letter-spacing: -0.01em;
}

.contact { display: flex; gap: 8px; flex-wrap: wrap; }
.contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s ease;
}
.contact a:hover { border-color: var(--ink); }
.contact svg { color: var(--blue); flex: none; }

/* Animation */
main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 24px;
}

.browser {
  max-width: 960px;
  margin: 20px auto 0;
  aspect-ratio: 960 / 580;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(27, 30, 38, 0.06), 0 28px 60px -24px rgba(27, 30, 38, 0.28);
}
#stage { display: block; width: 100%; height: 100%; }

#stage .guide { fill: #FF4868; fill-opacity: 0.08; }
#stage .w { fill: #F7F8FA; stroke: #C3C8D0; stroke-width: 1.5; }
#stage text { font-family: 'Bricolage Grotesque', system-ui, sans-serif; }
#stage .t-logo { font-size: 19px; font-weight: 800; font-stretch: 85%; fill: #1B1E26; letter-spacing: -0.2px; }
#stage .t-link { font-size: 13px; font-weight: 500; fill: #535967; }
#stage .t-btn-s { font-size: 12px; font-weight: 650; fill: #FFFFFF; }
#stage .t-btn { font-size: 14px; font-weight: 650; fill: #FFFFFF; }
#stage .t-head { font-size: 41px; font-weight: 800; font-stretch: 85%; fill: #1B1E26; letter-spacing: -0.8px; }
#stage .t-card { font-size: 17px; font-weight: 700; fill: #1B1E26; }
#stage .t-url { font-size: 12.5px; font-weight: 500; fill: #535967; }
#stage .t-avatar { font-size: 11px; font-weight: 700; fill: #FFFFFF; }
#stage .t-cursor { font-size: 12px; font-weight: 650; fill: #FFFFFF; }

/* Bevor das Skript läuft: fertiger Entwurf ohne Bewegung */
#stage #caret, #stage #popup, #stage #sel-img, #stage #snap-v, #stage #snap-h,
#stage #marquee, #stage #rip, #stage #img-wirefx, #stage #guides, #stage #wire { opacity: 0; }

.status {
  max-width: 960px;
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}
.status #step { color: var(--ink); font-weight: 600; }
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }

/* Text unter der Animation */
.intro {
  max-width: 960px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
}
h1 {
  margin: 0;
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 0.94;
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.lead {
  margin: 0 0 20px;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--ink); color: #FFFFFF; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.foot {
  width: 100%;
  max-width: 1008px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .top { padding: 16px; }
  main { padding: 4px 16px 16px; }
  .browser { margin-top: 12px; border-radius: 10px; }
  .intro { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .foot { padding: 36px 16px 24px; }
}
@media (max-width: 560px) {
  .contact { width: 100%; }
  .contact a { flex: 1 1 100%; justify-content: center; }
  .status { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  .contact a, .btn { transition: none; }
}
