/* ============================================================
   alumis.de — statisches Stylesheet
   Konzept „Technische Zeichnung": Blaupausen-Hero mit
   konstruiertem Marken-Bogen, Zeichenraster, Maßlinien-Labels,
   DIN-Schriftfeld. Tokens und Begründung: README.md
   ============================================================ */

/* ---------- Fonts (lokal, keine externen Requests) ---------- */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --paper: #f5f8fc;
  --panel: #ffffff;
  --ink: #101b2d;
  --blueprint: #0f2c66;
  --blueprint-line: rgba(255, 255, 255, 0.07);
  --blueprint-line-strong: rgba(255, 255, 255, 0.1);
  --blue: #2557e8;
  --blue-deep: #16326e;
  --sky: #9dc0ff;
  --frost: #eaf1ff;
  --mist: #c9d8f5;
  --steel: #5a6b84;
  --line: #d8e0ec;

  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --measure: 64rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Reset / Grundlagen ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  /* Zeichenraster: 24px-Teilung, jede 5. Linie kräftiger */
  background-image:
    repeating-linear-gradient(0deg, rgba(37, 87, 232, 0.055) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(90deg, rgba(37, 87, 232, 0.055) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(37, 87, 232, 0.035) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(37, 87, 232, 0.035) 0 1px, transparent 1px 24px);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Blaupause (Hero + Referenzen) ---------- */

.blueprint {
  background-image:
    repeating-linear-gradient(0deg, var(--blueprint-line-strong) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(90deg, var(--blueprint-line-strong) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, var(--blueprint-line) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, var(--blueprint-line) 0 1px, transparent 1px 24px);
  background-color: var(--blueprint);
  color: var(--frost);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 248, 252, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

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

.site-nav {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 1.8rem);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.site-nav a {
  color: var(--steel);
  padding-block: 0.25rem;
}
.site-nav a:hover {
  color: var(--blue);
  text-decoration: none;
}

@media (max-width: 44rem) {
  .site-header .wrap {
    flex-wrap: wrap;
    justify-content: center;
    padding-block: 0.55rem;
  }
  .brand img {
    height: 32px;
  }
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    font-size: 0.78rem;
  }
}

/* ---------- Maßlinien-Label (ersetzt klassische Eyebrows) ---------- */

.dim {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.dim::before {
  content: "";
  width: 26px;
  height: 12px;
  flex: none;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 12"><path d="M1 11 Q13 9 25 1" fill="none" stroke="%232557e8" stroke-width="2" stroke-linecap="round"/></svg>')
    no-repeat center / contain;
}

.dim::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.blueprint .dim {
  color: var(--sky);
}

.blueprint .dim::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 12"><path d="M1 11 Q13 9 25 1" fill="none" stroke="%239dc0ff" stroke-width="2" stroke-linecap="round"/></svg>');
}

.dim.center {
  justify-content: center;
}
.dim.center::after {
  display: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
}

.hero-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  padding-block: clamp(4.5rem, 12vh, 8rem) clamp(5.5rem, 14vh, 9rem);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  max-width: 20ch;
  margin-top: 1.2rem;
  color: #ffffff;
}

.hero h1 em {
  font-style: normal;
  color: var(--sky);
}

.hero .lede {
  max-width: 52ch;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.9vw, 1.2rem);
  color: var(--mist);
}

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--blue);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  text-decoration: none;
}

.blueprint .btn-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--blue-deep);
}
.blueprint .btn-primary:hover {
  background: var(--frost);
  border-color: var(--frost);
}

.btn-ghost {
  color: var(--blue);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(37, 87, 232, 0.07);
  text-decoration: none;
}

.blueprint .btn-ghost {
  color: var(--frost);
  border-color: rgba(255, 255, 255, 0.55);
}
.blueprint .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- DIN-Schriftfeld ---------- */

.titleblock {
  position: absolute;
  right: var(--gutter);
  bottom: 1.6rem;
  display: grid;
  grid-template-columns: auto auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(15, 44, 102, 0.72);
  backdrop-filter: blur(3px);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
}

.titleblock > div {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.titleblock > div:nth-child(-n + 2) {
  border-top: none;
}
.titleblock > div:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.titleblock .k {
  padding: 0.42rem 0.7rem;
  color: var(--sky);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  min-width: 6.2rem;
}

.titleblock .v {
  padding: 0.42rem 0.8rem;
  color: #ffffff;
  font-weight: 500;
}

@media (max-width: 60rem) {
  .titleblock {
    position: static;
    margin-top: 2.6rem;
    grid-template-columns: auto;
    max-width: 24rem;
  }
  .titleblock > div:nth-child(2) {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
  }
  .titleblock > div:nth-child(odd) {
    border-right: none;
  }
}

/* ---------- Hero-Konstruktion (zeichnet sich beim Laden) ---------- */

.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.aux {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .draw {
    animation: draw 1.4s cubic-bezier(0.45, 0, 0.2, 1) 0.3s forwards;
  }
  .aux {
    animation: fade-aux 0.7s ease forwards;
    animation-delay: 1.5s;
  }
  @keyframes draw {
    to {
      stroke-dashoffset: 0;
    }
  }
  @keyframes fade-aux {
    to {
      opacity: var(--o, 1);
    }
  }

  .hero .wrap > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .hero .lede { animation-delay: 0.08s; }
  .hero-actions { animation-delay: 0.16s; }
  .hero .titleblock { animation-delay: 0.3s; }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .draw {
    stroke-dashoffset: 0;
  }
  .aux {
    opacity: var(--o, 1);
  }
}

@media (max-width: 44rem) {
  .hero-arc {
    display: none;
  }
}

/* ---------- Scroll-Reveal (nur mit JS aktiv) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media print {
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Sektionen allgemein ---------- */

.section {
  padding-block: clamp(3.5rem, 9vh, 6.5rem);
}

.section-head {
  margin-bottom: 2.4rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  letter-spacing: -0.012em;
  margin-top: 0.8rem;
}

.section-head p {
  margin-top: 0.7rem;
  max-width: 58ch;
  color: var(--steel);
}

.blueprint .section-head h2 {
  color: #ffffff;
}
.blueprint .section-head p {
  color: var(--mist);
}

/* ---------- Ausgangslagen (Befunde) ---------- */

.pains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.pain {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.35rem 1.6rem 1.4rem 3.5rem;
}

.pain::before {
  content: "\201E";
  position: absolute;
  left: 1.15rem;
  top: 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--blue);
}

.pain-id {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--steel);
  margin-bottom: 0.45rem;
}

.pain q {
  quotes: none;
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.55;
}
.pain q::before,
.pain q::after {
  content: none;
}

@media (max-width: 44rem) {
  .pains {
    grid-template-columns: 1fr;
  }
}

/* ---------- Leistungen (Details A–D) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card svg {
  width: 34px;
  height: 34px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.card p {
  color: var(--steel);
  font-size: 0.97rem;
}

@media (max-width: 44rem) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Referenzen (Ausführungen, auf Blaupause) ---------- */

.refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.2rem;
}

.ref {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 44, 102, 0.5);
  border-radius: 10px;
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ref .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--sky);
}

.ref h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: #ffffff;
}

.ref p {
  color: var(--mist);
  font-size: 0.97rem;
}

.ref ul {
  padding-left: 1.1rem;
  color: var(--mist);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Mini-Demo: Anfrage an den Akten-Agenten (in der Legaltech-Referenz) */
.agent-demo {
  margin: 0.85rem 0 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(10, 29, 70, 0.6);
  padding: 0.9rem 0.95rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.agent-demo-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--sky);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 0.55rem;
}

.agent-demo .msg {
  max-width: 92%;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.agent-demo .q {
  align-self: flex-end;
  background: var(--frost);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  border-radius: 10px 10px 3px 10px;
}

.agent-demo .a {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--frost);
  padding: 0.6rem 0.85rem 0.7rem;
  border-radius: 10px 10px 10px 3px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.agent-demo .a blockquote {
  border-left: 2px solid var(--sky);
  padding: 0.15rem 0 0.15rem 0.7rem;
  font-style: italic;
  color: var(--mist);
  font-size: 0.85rem;
}

.agent-demo .src {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--sky);
  margin-bottom: 0.3rem;
}

.agent-demo mark {
  background: rgba(157, 192, 255, 0.2);
  color: var(--frost);
  border-bottom: 1.5px solid var(--sky);
  padding: 0 0.1em;
}

.agent-demo-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--sky);
}

blockquote.voice {
  border-left: 3px solid var(--sky);
  padding: 0.4rem 0 0.4rem 1rem;
  font-style: italic;
  color: var(--frost);
}

blockquote.voice footer {
  margin-top: 0.7rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--sky);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* Platzhalter für das Kundenfoto — wird gegen ein echtes Porträt getauscht */
.voice-avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1.5px dashed var(--sky);
  opacity: 0.85;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="9" r="3.6" fill="%239dc0ff"/><path d="M5 20c0-3.9 3.1-6.2 7-6.2s7 2.3 7 6.2" fill="%239dc0ff"/></svg>')
    no-repeat center / 58%;
}

.voice-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- Klartext (FAQ) ---------- */

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
}

.faq h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.faq p {
  color: var(--steel);
  font-size: 0.97rem;
}

@media (max-width: 44rem) {
  .faq {
    grid-template-columns: 1fr;
  }
}

/* ---------- Über ---------- */

.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.founder {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.founder img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.founder div {
  display: flex;
  flex-direction: column;
}

.founder strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.founder span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.about-facts {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-facts div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.about-facts dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.about-facts dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

@media (max-width: 44rem) {
  .about {
    grid-template-columns: 1fr;
  }
}

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

.contact {
  text-align: center;
}

.contact h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  letter-spacing: -0.012em;
  margin-top: 0.8rem;
}

.contact > .wrap > p {
  margin-top: 0.8rem;
  color: var(--steel);
  max-width: 48ch;
  margin-inline: auto;
}

/* Kontaktdaten stehen nirgends als Text — nur als Bild (Spam-Schutz);
   Klick kopiert den Wert, den JS erst im Klick-Moment dekodiert */
.mail img,
.tel img {
  display: inline-block;
  height: 0.89em;
  width: auto;
  vertical-align: -0.19em;
}

.mail,
.tel {
  cursor: pointer;
}

.contact .mail {
  display: inline-block;
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 4vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.15rem;
  cursor: pointer;
}

.contact .hint {
  margin-top: 1rem;
  color: var(--steel);
  font-size: 0.95rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding-block: 1.5rem;
  font-size: 0.9rem;
  color: var(--steel);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.site-footer .plain {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
}

.site-footer nav {
  display: flex;
  gap: 1.4rem;
}

.site-footer a {
  color: var(--steel);
}
.site-footer a:hover {
  color: var(--blue);
}

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */

.legal {
  padding-block: clamp(3rem, 8vh, 5rem);
}

.legal .wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 2rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 2.2rem 0 0.7rem;
}

.legal p,
.legal address {
  max-width: 65ch;
  font-style: normal;
  margin-bottom: 0.8rem;
}
