/* ---------- Grundlagen ---------- */
:root {
  --white: #FFFFFF;
  --indigo: #4A3AFF;
  --violet: #5B4DFF;
  --ink: #12151C;
  --ink-soft: rgba(18, 21, 28, 0.68);
  --line: #E4E5EA;
  --edge: clamp(1.5rem, 5vw, 3rem);
  --max: 1200px;
  --panel-h: 26vh;
}

@supports (height: 1svh) {
  :root { --panel-h: 26svh; }
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, p { margin: 0; }

.accent { color: var(--indigo); }

/* ---------- Eine Bildschirmhöhe ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 2rem var(--edge) calc(var(--panel-h) + 1rem);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
}

h1 {
  font-size: clamp(2.25rem, min(7vw, 9vh), 5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 11ch;
}

.lead {
  margin-top: clamp(1rem, 2.5vh, 1.5rem);
  max-width: 34ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
}

/* ---------- Countdown ---------- */
.countdown {
  margin-top: clamp(2rem, 6vh, 3.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.countdown[hidden] { display: none; }

.unit {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.num {
  font-size: clamp(2rem, min(6vw, 7vh), 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.label {
  font-size: 0.9375rem;
  line-height: 1.2;
  color: var(--ink-soft);
}

/* ---------- Schräge Indigo-Fläche ---------- */
.panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--panel-h);
}

.panel-stripe,
.panel-main {
  position: absolute;
  inset: 0;
}

.panel-stripe {
  background: var(--violet);
  clip-path: polygon(0 30%, 100% 0, 100% 18%, 0 48%);
}

.panel-main {
  background: var(--indigo);
  clip-path: polygon(0 48%, 100% 18%, 100% 100%, 0 100%);
}

/* ---------- Breite Bildschirme: Fläche rechts ---------- */
@media (min-width: 760px) {
  .hero {
    padding: 2rem var(--edge);
    padding-left: max(var(--edge), calc((100vw - var(--max)) / 2));
  }

  .hero-inner { max-width: min(600px, 50vw); }

  .panel {
    left: auto;
    top: 0;
    width: 40%;
    height: auto;
  }
  .panel-stripe { clip-path: polygon(22% 0, 30% 0, 8% 100%, 0 100%); }
  .panel-main   { clip-path: polygon(30% 0, 100% 0, 100% 100%, 8% 100%); }
}
