/* ============================================================
   silkbase — Under Construction
   Mobile-first, minimalistisch, interaktiv
   ============================================================ */

:root {
  --bg:        #08080a;
  --bg-2:      #0e0e12;
  --fg:        #f4f4f6;
  --muted:     #9a9aa6;
  --line:      rgba(255, 255, 255, 0.10);
  --accent:    #c9b4ff;   /* sanftes Seiden-Violett */
  --accent-2:  #7fe3d0;   /* kühler Schimmer        */
  --radius:    14px;

  /* fluide Maße (mobile-first via clamp) */
  --pad: clamp(20px, 6vw, 64px);
}

/* ----------  Reset  ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;                 /* eine ruhige, gefüllte Seite */
  overscroll-behavior: none;
  touch-action: none;               /* damit Touch die Animation steuert */
}

a { color: inherit; text-decoration: none; }

/* ----------  Hintergrund  ---------- */
#silk {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4%, 3%); }
  40%  { transform: translate(3%, -4%); }
  60%  { transform: translate(-2%, 2%); }
  80%  { transform: translate(4%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ----------  Layout  ---------- */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;               /* small-viewport, korrekt auf Mobile */
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    calc(var(--pad) + env(safe-area-inset-top))
    var(--pad)
    calc(var(--pad) + env(safe-area-inset-bottom));
}

.content {
  width: 100%;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 4vh, 30px);

  /* sanfter Auftritt */
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(.2, .8, .2, 1) 0.15s forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ----------  Logo  ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.logo-img {
  height: auto;
  width: clamp(170px, 52vw, 280px);
  display: block;
  /* schwarzes Logo → weiß, damit es auf dunklem Grund leuchtet */
  filter: invert(1) brightness(1.9)
          drop-shadow(0 0 24px rgba(201, 180, 255, 0.18));
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), filter .4s ease;
}

.logo:hover .logo-img {
  transform: translateY(-2px) scale(1.02);
}

/* ----------  Headline  ---------- */
.headline {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 11vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.headline .line { display: block; }

.headline em {
  font-style: normal;
  background: linear-gradient(105deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------  Subline  ---------- */
.subline {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 4vw, 1.1rem);
}

/* ----------  Status  ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(127, 227, 208, 0.7);
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 227, 208, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(127, 227, 208, 0); }
}

.status-text { color: var(--fg); font-weight: 500; }

.status-progress {
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.status-bar {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.2s cubic-bezier(.2, .8, .2, 1);
}

/* ----------  Buttons  ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.btn {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 260px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, opacity .25s ease;
  will-change: transform;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--fg);
  color: #0b0b0d;
}
.btn-primary:hover { opacity: 0.9; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--fg);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); }

/* ----------  Footer  ---------- */
.foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.foot .dot { opacity: 0.5; }

/* ----------  Desktop-Feinschliff  ---------- */
@media (min-width: 700px) {
  .actions { justify-content: center; }
  .btn { flex: 0 1 auto; }
}

/* Hover-Hinweis nur auf Touch-Geräten anpassen */
@media (hover: none) {
  .foot span:last-child { /* "Bewege dich…" → "Tippe & ziehe" via JS-fähig, hier Fallback */ }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  .grain,
  .logo-mark,
  .status-dot { animation: none; }
  .content { animation: none; opacity: 1; transform: none; }
}
