/* Nexplano — Platzhalter / Coming-Soon
   Komplett statisch, keine externen Ressourcen (DSGVO).
   Marken-Tokens gespiegelt aus nexplano-web/src/styles/tokens.css. */

:root {
  --ink: #0b1b3a;
  --ink-2: #13254a;
  --ink-3: #0a1730;
  --brand-700: #1b3fc4;
  --brand-600: #2557f0;
  --brand-500: #3b6bf5;
  --brand-400: #5b86f7;
  --brand-300: #9db8fb;

  --surface: #f4f7fe;
  --card: #ffffff;
  --line: #e4eaf6;
  --text: #1b2742;
  --muted: #5a6b8c;

  --on-ink: #eaf1ff;
  --on-ink-muted: #b9c7e8;
  --on-ink-faint: #8fa2cb;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --wrap: 1120px;
  --doc: 720px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Display = etwas Charakter, Body = neutral. System-Stack, kein Webfont-Download. */
  --font-display: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.08rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-600);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  z-index: 50;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Nur für Screenreader sichtbar */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Auf den hellen Dokumentseiten braucht der Fokusring mehr Kontrast */
.doc :focus-visible {
  outline-color: var(--brand-700);
}

/* ============================================================
   LANDING (dunkel, Teaser)
   ============================================================ */

.landing {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--on-ink);
  background:
    radial-gradient(120% 90% at 50% -10%, var(--ink-2) 0%, var(--ink) 55%, var(--ink-3) 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Aurora-Schimmer — zwei gegenläufige Ebenen für mehr Bewegung */
.aurora,
.aurora-2 {
  position: absolute;
  z-index: -2;
  filter: blur(72px);
  pointer-events: none;
  will-change: transform, opacity;
}
.aurora {
  inset: -25% -15% auto -15%;
  height: 95%;
  opacity: 0.6;
  background:
    radial-gradient(42% 60% at 22% 28%, rgba(37, 87, 240, 0.6), transparent 70%),
    radial-gradient(40% 55% at 80% 16%, rgba(91, 134, 247, 0.5), transparent 70%),
    radial-gradient(55% 55% at 52% 72%, rgba(27, 63, 196, 0.45), transparent 75%);
  animation: drift 17s ease-in-out infinite alternate, breathe 9s ease-in-out infinite;
}
.aurora-2 {
  inset: auto -20% -30% -20%;
  height: 90%;
  opacity: 0.42;
  background:
    radial-gradient(45% 55% at 70% 60%, rgba(59, 107, 245, 0.5), transparent 72%),
    radial-gradient(40% 50% at 26% 76%, rgba(157, 184, 251, 0.35), transparent 72%);
  animation: drift2 23s ease-in-out infinite alternate, breathe 11s ease-in-out infinite reverse;
}
@keyframes drift {
  0% {
    transform: translate3d(-4%, -3%, 0) scale(1) rotate(0deg);
  }
  100% {
    transform: translate3d(6%, 4%, 0) scale(1.18) rotate(8deg);
  }
}
@keyframes drift2 {
  0% {
    transform: translate3d(5%, 4%, 0) scale(1.12) rotate(0deg);
  }
  100% {
    transform: translate3d(-7%, -5%, 0) scale(1) rotate(-10deg);
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.72;
  }
}

/* feines Korn / Sterne-Layer */
.landing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.bar {
  width: min(100% - 2.5rem, var(--wrap));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.18rem;
  text-decoration: none;
  color: var(--on-ink);
}
.brand .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(59, 107, 245, 0.18), 0 0 18px 2px rgba(91, 134, 247, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Belege-Tab */
.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(157, 184, 251, 0.28);
  background: rgba(91, 134, 247, 0.08);
  color: var(--on-ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tab:hover {
  background: rgba(91, 134, 247, 0.18);
  border-color: rgba(157, 184, 251, 0.5);
  transform: translateY(-1px);
}
.tab .arrow {
  font-size: 0.85em;
  opacity: 0.8;
  transition: transform 0.25s var(--ease);
}
.tab:hover .arrow {
  transform: translate(2px, -2px);
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(100% - 2.5rem, 900px);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 7rem) 0;
}
.hero-inner {
  max-width: 740px;
}

/* Gestaffelter Auftritt beim Laden — ein bewusster Moment, sonst ruhig */
.rise {
  animation: rise 0.7s var(--ease) both;
}
.hero-inner .eyebrow.rise {
  animation-delay: 0.05s;
}
.hero-inner h1.rise {
  animation-delay: 0.14s;
}
.hero-inner .lede.rise {
  animation-delay: 0.26s;
}
.hero-inner .rumor.rise {
  animation-delay: 0.38s;
}
.hero-inner .contact.rise {
  animation-delay: 0.5s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  margin-bottom: 1.6rem;
}
.eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-400);
  position: relative;
}
.eyebrow .pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-400);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 4.6rem);
  margin: 0 0 1.3rem;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--brand-300), var(--brand-500) 60%, var(--brand-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);
  color: var(--on-ink-muted);
  max-width: 36ch;
  margin: 0 auto 2.2rem;
  text-wrap: pretty;
}

/* „Man munkelt …" Rotator */
.rumor {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px dashed rgba(157, 184, 251, 0.3);
  color: var(--on-ink-faint);
  font-size: 0.95rem;
  font-style: italic;
  min-height: 2.6rem;
}
.rumor .label {
  font-style: normal;
  font-weight: 600;
  color: var(--brand-300);
  white-space: nowrap;
}
.rumor [data-cycle] {
  transition: opacity 0.4s var(--ease);
}
.rumor.is-swapping [data-cycle] {
  opacity: 0;
}

.contact {
  margin-top: 2.4rem;
  font-size: 0.95rem;
  color: var(--on-ink-faint);
}
.contact a {
  color: var(--brand-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(157, 184, 251, 0.35);
  padding-bottom: 1px;
}
.contact a:hover {
  border-color: var(--brand-300);
}

/* Footer (auf beiden Seitentypen) */
.foot {
  width: min(100% - 2.5rem, var(--wrap));
  margin: 0 auto;
  padding: 1.8rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
}
.landing .foot {
  color: var(--on-ink-faint);
  border-top: 1px solid rgba(157, 184, 251, 0.14);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.foot a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.landing .foot a:hover {
  color: var(--on-ink);
}

/* ============================================================
   DOKUMENT-SEITEN (hell, lesbar) — Impressum / AGB / Datenschutz
   ============================================================ */

.doc {
  background: var(--surface);
  color: var(--text);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.doc-head {
  width: min(100% - 2.5rem, var(--doc));
  margin: 0 auto;
  padding: 2rem 0 0;
}
.doc-head .brand {
  color: var(--ink);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 500;
}
.back:hover {
  text-decoration: underline;
}

main.doc-body {
  width: min(100% - 2.5rem, var(--doc));
  margin: 0 auto;
  padding: 2.4rem 0 4rem;
  flex: 1;
}

.doc-body h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0.4rem 0;
}
.doc-body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2.4rem 0 0.6rem;
}
.doc-body h3 {
  font-size: 1.05rem;
  color: var(--ink-2);
  margin: 1.6rem 0 0.4rem;
}
.doc-body p,
.doc-body li {
  color: var(--text);
}
.doc-body ul {
  padding-left: 1.2rem;
}
.doc-body li {
  margin: 0.3rem 0;
}
.doc-body a {
  color: var(--brand-600);
}
.doc-body address {
  font-style: normal;
  line-height: 1.7;
}
.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Platzhalter-Markierung — sticht ins Auge, damit nichts vergessen wird */
.ph {
  background: #fff4dd;
  border-bottom: 2px dotted #f0a000;
  padding: 0 0.2em;
  border-radius: 3px;
  font-weight: 600;
  color: #7a4d00;
}

.notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid #f0a000;
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
  margin: 1.6rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.notice strong {
  color: var(--ink-2);
}

.doc .foot {
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.doc .foot a {
  color: var(--muted);
}
.doc .foot a:hover {
  color: var(--ink);
}

/* ============================================================
   Motion / Responsive
   ============================================================ */

@media (max-width: 560px) {
  .bar {
    padding-top: 1.2rem;
  }
  .brand {
    font-size: 1.05rem;
  }
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .aurora,
  .aurora-2,
  .eyebrow .pulse::after {
    animation: none !important;
  }
  .rise {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .rumor [data-cycle] {
    transition: none;
  }
}
