/* ==========================================================================
   DEIMOS — deimos.run
   Brand: Dark Mode als Grundzustand · Cyan nur als Signal, nie als Fläche
   ========================================================================== */

:root {
  --deep-space: #0B132B;
  --graphite: #1C2541;
  --graphite-2: #232E4F;
  --cyan: #00E5FF;
  --teal: #00B4D8;
  --white: #F4F6F8;
  --muted: #8B96B4;
  --line: rgba(139, 150, 180, 0.18);

  --font-wordmark: "Saira", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --font-ui: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--deep-space);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Wordmark ------------------------------------------------------------ */

.wordmark {
  font-family: var(--font-wordmark);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 30px; width: auto; }

.brand .wordmark { font-size: 19px; letter-spacing: 0.08em; }

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.site-nav a { color: var(--muted); transition: color 0.15s; }
.site-nav a:hover { color: var(--white); }

.lang-select {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.lang-select:hover { color: var(--white); border-color: rgba(0, 229, 255, 0.45); }

.lang-select option {
  background: var(--graphite);
  color: var(--white);
}

.legal-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 32px;
}

.legal-note:empty { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn:hover { background: rgba(0, 229, 255, 0.1); }

.btn.solid {
  background: var(--cyan);
  color: var(--deep-space);
}

.btn.solid:hover { background: #4DEEFF; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 150, 180, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 150, 180, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 26px;
}

.hero-mark { height: 96px; width: auto; margin-bottom: 36px; }

.hero h1 {
  font-size: clamp(52px, 9vw, 96px);
  line-height: 1;
  margin-bottom: 18px;
}

.hero .claim {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--white);
  margin-bottom: 12px;
}

.claim-accent {
  color: var(--cyan);
  font-style: italic;
}

.kicker.status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
  flex: 0 0 auto;
}

.ghost-mark {
  position: absolute;
  right: -130px;
  bottom: -150px;
  height: 580px;
  width: auto;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.hero .sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Keile im Hero */
.wedges {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 38vw);
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 860px) {
  .wedges { display: none; }
}

/* --- Sections ------------------------------------------------------------ */

section { padding: 96px 0; }

.section-head { margin-bottom: 56px; }

.section-head .kicker { margin-bottom: 14px; }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 620px;
}

/* --- Markenkern cards ---------------------------------------------------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .cards-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 28px;
}

.card .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 18px;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 10px;
}

.card p { color: var(--muted); font-size: 15px; }

/* --- Product panel (UI mock) --------------------------------------------- */

.panel {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.panel-bar .live {
  margin-left: auto;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 7px;
}

.panel-bar .live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.panel-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0;
}

@media (max-width: 860px) {
  .panel-body { grid-template-columns: 1fr; }
}

.panel-cell {
  padding: 34px 28px;
  border-right: 1px solid var(--line);
}

.panel-cell:last-child { border-right: none; }

@media (max-width: 860px) {
  .panel-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .panel-cell:last-child { border-bottom: none; }
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.metric-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: var(--white);
}

.metric-value .unit {
  font-size: 20px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 6px;
}

.metric-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.gauge {
  margin-top: 18px;
}

.gauge-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.gauge-row strong { color: var(--white); font-weight: 500; }

.gauge-track {
  height: 6px;
  background: rgba(139, 150, 180, 0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}

.gauge-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 3px;
}

.gauge-fill.dim { background: var(--muted); opacity: 0.6; }

/* --- Apps ----------------------------------------------------------------- */

.app-flagship {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 48px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .app-flagship { grid-template-columns: 1fr; padding: 32px 24px; }
}

.app-flagship h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  margin-bottom: 6px;
}

.app-flagship .role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.app-flagship p { color: var(--muted); margin-bottom: 26px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }

.chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--white);
  background: rgba(11, 19, 43, 0.5);
}

.editions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .editions { grid-template-columns: 1fr; }
}

.edition {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 24px;
  transition: border-color 0.15s, background 0.15s, transform 0.2s;
}

.edition:hover { border-color: rgba(0, 229, 255, 0.45); background: rgba(28, 37, 65, 0.5); transform: translateY(-3px); }

/* --- Route-Teaser ----------------------------------------------------------- */

.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 860px) {
  .duo-grid { grid-template-columns: 1fr; }
}

.duo-grid .card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
}

.duo-grid .card p { flex-grow: 1; margin-bottom: 26px; }

.duo-grid .card .btn { align-self: flex-start; }

.route-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-form input {
  width: 100%;
  background: rgba(11, 19, 43, 0.6);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--white);
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 15px;
}

.route-form input::placeholder { color: var(--muted); }

.route-form input:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.45);
}

.route-form .btn { align-self: flex-start; margin-top: 6px; cursor: pointer; }

/* --- Abschluss-CTA ----------------------------------------------------------- */

.cta-section {
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.cta-section .hero-actions { justify-content: center; }

/* --- Sektions-Wechsel & Reveal ----------------------------------------------- */

.section-alt { background: #0E1631; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

.edition .domain {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.edition p { font-size: 14px; color: var(--muted); }

/* --- Stats row ------------------------------------------------------------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .stats-row { grid-template-columns: 1fr; }
}

.stat {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 28px;
}

.stat .stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 52px;
  line-height: 1;
  color: var(--white);
}

.stat .stat-label {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.stat .stat-mono {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  line-height: 1.7;
}

/* --- Module categories ------------------------------------------------------ */

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0;
}

@media (max-width: 860px) {
  .module-grid { grid-template-columns: 1fr; }
}

.module-grid .card .mods {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  line-height: 1.8;
}

/* --- Module im Einsatz ------------------------------------------------------ */

.tool-card {
  display: flex;
  flex-direction: column;
}

.tool-card p { flex-grow: 1; }

.tool-card .mods {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  line-height: 1.8;
}

.tool-card .btn { align-self: flex-start; margin-top: 20px; }

.tool-card .btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tool-card .btn-row .btn { margin-top: 0; }

/* --- Blog / Insights ------------------------------------------------------- */

.blog-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 48px;
}

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; padding: 32px 24px; }
}

.blog-grid .role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.blog-grid h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  margin-bottom: 6px;
}

.blog-grid .author {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.blog-grid > div > p:not(.role):not(.author) { color: var(--muted); margin-bottom: 26px; }

.btn .li-icon { width: 16px; height: 16px; flex: 0 0 auto; }

.post-list-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.post {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s;
}

.post:last-child { border-bottom: none; }

.post .post-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 4px;
}

.post .post-title {
  font-size: 15px;
  color: var(--white);
  line-height: 1.45;
}

.post:hover .post-title { color: var(--cyan); }

/* --- Kontakt -------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-grid .card a { color: var(--cyan); font-family: var(--font-mono); font-size: 15px; }
.contact-grid .card a:hover { text-decoration: underline; }
.contact-grid .card p { color: var(--muted); font-size: 15px; }

/* --- Footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.site-footer .brand img { height: 22px; }
.site-footer .brand .wordmark { font-size: 15px; }

.footer-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.footer-links a:hover { color: var(--white); }

/* --- Legal pages ----------------------------------------------------------- */

.legal {
  padding: 72px 0 110px;
  max-width: 780px;
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  margin-bottom: 8px;
}

.legal .stand {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 44px;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 40px 0 12px;
}

.legal h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  margin: 26px 0 8px;
}

.legal p { color: var(--muted); margin-bottom: 12px; font-size: 15px; }
.legal p strong { color: var(--white); font-weight: 500; }
.legal a { color: var(--cyan); }
.legal a:hover { text-decoration: underline; }
.legal address { font-style: normal; color: var(--muted); font-size: 15px; line-height: 1.7; }
