/*
 * ─────────────────────────────────────────────────────────────
 *  Feinwerktechnik Frank — Coming Soon
 *  Keine externen Abhängigkeiten. Kein JS. Keine Frameworks.
 * ─────────────────────────────────────────────────────────────
 */


/* ── 1. DESIGN-TOKENS ──────────────────────────────────────── */

:root {
  /* Farben */
  --color-bg:        #F5F4F0;   /* warmes Off-White, Papier-Ton */
  --color-card:      #FFFFFF;
  --color-border:    #D8D5CE;
  --color-divider:   #C8C4BC;
  --color-text-main: #1A1917;   /* fast Schwarz, warm */
  --color-text-sub:  #6B6860;   /* gedämpftes Grau */
  --color-footer:    #9B9890;

  /* Typografie – system-serif Stack mit industriellem Charakter */
  --font-primary: "Georgia", "Times New Roman", serif;
  --font-mono:    "Courier New", "Lucida Console", monospace;

  /* Abstände */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  3.5rem;
  --space-xl:  5rem;

  /* Radien & Schatten */
  --card-radius:  2px;          /* bewusst kantig = industriell */
  --card-shadow:  0 1px 3px rgba(0,0,0,0.06),
                  0 4px 24px rgba(0,0,0,0.04);
}


/* ── 2. RESET & BASIS ──────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-bg);
  /* Subtile Papier-Textur: nur CSS, kein externes Bild */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(0,0,0,0.018) 39px,
      rgba(0,0,0,0.018) 40px
    );
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--color-text-main);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}


/* ── 3. LAYOUT: STAGE ──────────────────────────────────────── */

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  gap: var(--space-md);
}


/* ── 4. CARD ───────────────────────────────────────────────── */

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--space-lg) var(--space-xl);
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);

  /* Einblend-Animation beim Laden */
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ── 5. LOGO ───────────────────────────────────────────────── */

.logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: var(--space-xs) 0;
}

.logo {
  display: block;
  width: 100%;

  /* Maximale Breite: Logo dominiert, aber nie zu groß */
  max-width: 360px;

  /* Höhe folgt automatisch dem Seitenverhältnis */
  height: auto;

  /* Schärfe auf Retina-Displays */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}


/* ── 6. TRENNLINIE ─────────────────────────────────────────── */

.divider {
  width: 100%;
  height: 1px;
  background: var(--color-divider);

  /* Kleine Einrückung gibt Leichtigkeit */
  margin: 0 auto;
  max-width: 80%;
}


/* ── 7. TEXT ───────────────────────────────────────────────── */

.headline {
  font-family: var(--font-primary);
  font-size: 1.15rem;       /* ~18.4px */
  font-weight: normal;
  line-height: 1.5;
  color: var(--color-text-main);
  text-align: center;
  letter-spacing: 0.01em;
}

.subline {
  font-family: var(--font-mono);
  font-size: 0.8rem;        /* ~12.8px */
  color: var(--color-text-sub);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ── 8. FOOTER ─────────────────────────────────────────────── */

.foot {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-footer);
  letter-spacing: 0.06em;
  text-align: center;
  padding-bottom: var(--space-sm);

  animation: fadeUp 0.6s 0.3s ease both; /* leicht verzögert */
}


/* ── 9. RESPONSIVE ─────────────────────────────────────────── */

/* Tablet und schmaler */
@media (max-width: 680px) {
  .card {
    padding: var(--space-md) var(--space-md);
    max-width: 100%;
  }

  .logo {
    max-width: 280px;
  }

  .headline {
    font-size: 1rem;
  }
}

/* Sehr schmale Screens / Hochformat Smartphone */
@media (max-width: 400px) {
  .stage {
    padding: var(--space-sm);
  }

  .card {
    padding: var(--space-md) var(--space-sm);
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: none;
  }

  .logo {
    max-width: 220px;
  }
}


/* ── 10. BARRIEREFREIHEIT ──────────────────────────────────── */

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  .card,
  .foot {
    animation: none;
  }
}

/* Hoher Kontrast */
@media (forced-colors: active) {
  .card {
    border: 2px solid ButtonText;
  }
}
