/* ==========================================================================
   IRR – "In Entwicklung" Landing Page
   Reines CSS, keine externen Fonts/Bilder, kein Build-Schritt.
   Tokens: --bg (gebrochenes Weiss), --ink (Anthrazit), --green (Akzent)
   ========================================================================== */

:root {
  --bg: #f6f5f1;
  --ink: #15181a;
  --ink-soft: #535a56;
  --green: #1e9e5a;
  --hairline: rgba(21, 24, 26, 0.14);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --space-page: clamp(22px, 5vw, 56px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(30, 158, 90, 0.18);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--space-page);
}

/* ---------------------------------------------------------------- Kopfzeile */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(22px, 4vh, 40px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand__mark > rect {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.35;
  stroke-width: 1;
}

.brand__bars {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.brand__name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.status__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 158, 90, 0.14);
}

/* ------------------------------------------------------------ Hauptbereich */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  flex: 1;
  padding-block: clamp(40px, 8vh, 104px);
}

.hero__text {
  min-width: 0;
}

h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.highlight {
  position: relative;
  display: inline-block;
}

.highlight__line {
  position: absolute;
  left: 0;
  bottom: -0.12em;
  width: 100%;
  height: 0.26em;
  overflow: visible;
}

.highlight__line path {
  fill: none;
  stroke: var(--green);
  stroke-width: 3.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.lead {
  margin: 28px 0 0;
  max-width: 42ch;
  font-size: clamp(1.02rem, 1.1vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.note {
  margin: 24px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.hero__art {
  min-width: 0;
}

.art {
  display: block;
  width: 100%;
  height: auto;
}

.art__grid line {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-opacity: 0.16;
}

.art__grid line:nth-child(3n) {
  stroke-opacity: 0.28;
}

.art__grid line:nth-child(4n) {
  stroke-opacity: 0.1;
}

.art__baseline {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-opacity: 0.18;
}

.art__ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-opacity: 0.22;
}

.art__ring--dash {
  stroke-opacity: 0.13;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
}

.art__curve {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: draw 1.5s 0.45s cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

.art__node {
  fill: var(--green);
  opacity: 0;
  animation: fade-in 0.5s 1.5s ease forwards;
}

/* --------------------------------------------------------------- Abschluss */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 22px clamp(22px, 4vh, 36px);
}

.copyright {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ------------------------------------------------------- Einblendung (kurz) */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.75s cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

.site-header {
  animation-delay: 0.05s;
}

.reveal--1 {
  animation-delay: 0.12s;
}

.reveal--2 {
  animation-delay: 0.24s;
}

.reveal--3 {
  animation-delay: 0.34s;
}

.reveal--art {
  animation-delay: 0.2s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

/* ------------------------------------------------------------------- Mobil */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: clamp(36px, 8vw, 68px);
    padding-block: clamp(32px, 6vh, 64px);
    align-items: start;
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(2.35rem, 9vw, 3.25rem);
  }

  .hero__art {
    max-width: 420px;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-block: 18px;
    gap: 12px;
  }

  .brand__name {
    font-size: 0.88rem;
    letter-spacing: 0.18em;
  }

  .status {
    padding: 6px 11px 6px 10px;
    font-size: 0.72rem;
    gap: 7px;
  }

  .status__dot {
    width: 7px;
    height: 7px;
  }
}

/* --------------------------- Reduzierte Bewegung: alles bleibt statisch */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .art__curve {
    animation: none;
    stroke-dashoffset: 0;
  }

  .art__node {
    animation: none;
    opacity: 1;
  }
}