/* Danovo Systems — Landingpage
   Design-Tokens aus dem Danovo-System; Dark-first, Akzent sparsam. */

:root {
  --tinte: #0a1020;
  --tinte-2: #101a30;
  --flaeche: #ffffff;
  --flaeche-gedaempft: #f4f6fa;
  --text: #101828;
  --text-gedaempft: #5a6273;
  --text-hell: #c8d2e4;
  --text-hell-gedaempft: #8b9ab5;
  --akzent: #1f4ed8;
  --akzent-hell: #4d7bff;
  --rand: #dde3ec;
  --rand-dunkel: #22304f;

  /* Auf großen Bildschirmen wächst der Inhalt mit (92 % der Fensterbreite),
     statt schmal zentriert zu stehen; 2100px als Obergrenze für Ultrabreit. */
  --breite: min(92vw, 2100px);
  --radius: 14px;
  --radius-gross: 22px;

  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--schrift);
  color: var(--text);
  background: var(--flaeche);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.huelle { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 24px; }

/* ---------- Typografie ---------- */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.022em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.32rem); line-height: 1.3; }
p { margin: 0 0 1rem; }
.fuehrung { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--text-gedaempft); max-width: 62ch; }
.augenbraue {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--akzent); margin-bottom: 14px; display: block;
}

/* ---------- Kopfleiste ---------- */
.kopf {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 14px 0;
  background: rgba(10, 16, 32, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.kopf.geschrumpft { padding: 9px 0; border-bottom-color: var(--rand-dunkel); background: rgba(10, 16, 32, 0.92); }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.kopf img {
  height: 32px; width: auto;
  /* Eigene Dunkel-Variante statt einer CSS-Farbumkehr: Die Umkehr faerbte auch
     das blaue Zeichen weiss, wodurch das weisse „D" darin unsichtbar wurde.
     Verwendet wird die offizielle Dunkel-Variante danovo-logo-dark.png aus dem
     Website-Projekt — dieselbe Datei wie auf danovo-software.de, damit beide
     Auftritte dasselbe Logo zeigen. */
}
.kopf-nav { display: flex; align-items: center; gap: 28px; }
.kopf-nav a { color: var(--text-hell); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.kopf-nav a:hover { color: #fff; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.22s var(--ease), background 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.knopf-haupt { background: var(--akzent); color: #fff; box-shadow: 0 8px 26px rgba(31, 78, 216, 0.34); }
.knopf-haupt:hover { background: var(--akzent-hell); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(31, 78, 216, 0.42); }
.knopf-rand { border-color: rgba(255, 255, 255, 0.26); color: #fff; }
.knopf-rand:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.knopf-dunkel { background: var(--tinte); color: #fff; }
.knopf-dunkel:hover { background: var(--tinte-2); transform: translateY(-2px); }

/* ---------- Held ---------- */
.held {
  position: relative; padding: 168px 0 96px;
  background: radial-gradient(120% 90% at 78% 8%, #1b2f63 0%, var(--tinte) 58%);
  color: #fff; overflow: hidden;
}
.held::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 3px 3px; opacity: .5;
}
.held .huelle { position: relative; z-index: 2; }
.held h1 { max-width: 17ch; }
.held-text { color: var(--text-hell); font-size: clamp(1.02rem, 1.6vw, 1.22rem); max-width: 56ch; margin: 22px 0 34px; }
.held-aktionen { display: flex; gap: 14px; flex-wrap: wrap; }
.held-hinweis { margin-top: 20px; font-size: 0.88rem; color: var(--text-hell-gedaempft); }

.held-bild {
  margin-top: 62px; position: relative; z-index: 2;
  border-radius: var(--radius-gross); overflow: hidden;
  border: 1px solid var(--rand-dunkel);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}

/* ---------- Kennzahlenband ---------- */
.band { background: var(--tinte-2); color: #fff; padding: 30px 0; }
.band-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.band-wert { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; }
.band-text { font-size: 0.83rem; color: var(--text-hell-gedaempft); margin-top: 3px; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(70px, 9vw, 118px) 0; }
.abschnitt-hell { background: var(--flaeche-gedaempft); }
.abschnitt-dunkel { background: var(--tinte); color: #fff; }
.abschnitt-dunkel .fuehrung { color: var(--text-hell); }
.abschnitt-kopf { max-width: 760px; margin-bottom: 52px; }
.abschnitt-kopf h2 + .fuehrung { margin-top: 16px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.kachel {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius-gross);
  padding: 30px; grid-column: span 2;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.kachel:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(16, 24, 40, 0.1); border-color: #c3cddd; }
.kachel-breit { grid-column: span 3; }
.kachel h3 { margin-bottom: 10px; letter-spacing: -0.018em; }
.kachel p { color: var(--text-gedaempft); font-size: 0.96rem; line-height: 1.62; margin: 0; max-width: 54ch; }
.kachel-voll { grid-column: 1 / -1; }

/* Symbolplakette: groesser und mit etwas Tiefe. Die kleinen, blassen Quadrate
   davor wirkten wie Platzhalter — bei 52 px mit weichem Verlauf und Rand
   traegt das Symbol die Kachel mit, statt nur danebenzustehen. */
.kachel-symbol {
  width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(145deg, rgba(31, 78, 216, 0.13), rgba(77, 123, 255, 0.05));
  border: 1px solid rgba(31, 78, 216, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  display: grid; place-items: center; margin-bottom: 20px; color: var(--akzent);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.kachel-symbol svg { width: 27px; height: 27px; }
.kachel:hover .kachel-symbol {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(145deg, rgba(31, 78, 216, 0.2), rgba(77, 123, 255, 0.08));
}

/* Akzent-Kachel: dunkel abgesetzte Bento-Karte für das Hauptmerkmal
   (KI-Angebotsassistent) — gleiche Machart wie der Hinweiskasten. */
.kachel-akzent {
  position: relative;
  background: linear-gradient(135deg, #101a30 0%, #16244a 100%);
  border-color: var(--rand-dunkel);
  color: #fff;
}
.kachel-akzent p { color: var(--text-hell); max-width: 78ch; }
.kachel-akzent em { color: #fff; font-style: italic; }
.kachel-akzent .kachel-symbol {
  background: linear-gradient(145deg, rgba(77, 123, 255, 0.28), rgba(77, 123, 255, 0.08));
  border-color: rgba(77, 123, 255, 0.35);
  box-shadow: none; color: var(--akzent-hell);
}
.kachel-akzent:hover { border-color: #33518f; box-shadow: 0 18px 44px rgba(6, 12, 28, 0.5); }

/* Kleine Status-Pille („Neu", „In Arbeit") oben rechts in einer Kachel. */
.neu-pille {
  position: absolute; top: 22px; right: 22px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: var(--akzent); color: #fff;
}
.neu-pille-hell { background: rgba(31, 78, 216, 0.1); color: var(--akzent); border: 1px solid rgba(31, 78, 216, 0.28); }
.wege .kachel { position: relative; }

/* ---------- Plattform: drei Wege ---------- */
.wege { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wege .kachel { grid-column: auto; }

/* ---------- Hervorgehobener Kasten (z. B. Serverstandort) ---------- */
.hinweiskasten {
  margin-top: 34px; padding: clamp(26px, 3vw, 38px);
  background: linear-gradient(135deg, #101a30 0%, #16244a 100%);
  color: #fff; border-radius: var(--radius-gross);
  border: 1px solid var(--rand-dunkel);
}
.hinweiskasten h3 { margin-bottom: 12px; }
.hinweiskasten p { color: var(--text-hell); max-width: 74ch; font-size: 0.97rem; }
.hinweiskasten strong { color: #fff; }

/* ---------- Ablauf ---------- */
.ablauf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: schritt; }
.schritt { position: relative; padding-top: 46px; }
.schritt::before {
  counter-increment: schritt; content: counter(schritt, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; color: var(--akzent);
}
.schritt::after {
  content: ""; position: absolute; top: 9px; left: 34px; right: -20px; height: 1px;
  background: linear-gradient(90deg, var(--rand), transparent);
}
.schritt:last-child::after { display: none; }
.schritt h3 { font-size: 1.05rem; margin-bottom: 7px; }
.schritt p { font-size: 0.92rem; color: var(--text-gedaempft); margin: 0; }

/* ---------- Wechselblöcke ---------- */
.wechsel { display: grid; grid-template-columns: 1fr 1.18fr; gap: clamp(34px, 5vw, 68px); align-items: center; }
.wechsel + .wechsel { margin-top: clamp(56px, 7vw, 96px); }
.wechsel.gedreht .wechsel-text { order: 2; }
.wechsel-bild {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rand);
  box-shadow: 0 22px 54px rgba(16, 24, 40, 0.13);
}
.abschnitt-dunkel .wechsel-bild { border-color: var(--rand-dunkel); box-shadow: 0 26px 60px rgba(0,0,0,.45); }
.liste { list-style: none; padding: 0; margin: 20px 0 0; }
.liste li { position: relative; padding-left: 27px; margin-bottom: 10px; font-size: 0.95rem; }
.liste li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 13px; height: 8px;
  border-left: 2px solid var(--akzent); border-bottom: 2px solid var(--akzent);
  transform: rotate(-45deg);
}

/* ---------- Handy-Reihe ---------- */
.handys { display: flex; gap: 26px; justify-content: center; align-items: flex-start; flex-wrap: wrap; padding-top: 14px; }
.handys img {
  width: 232px; border-radius: 20px; border: 1px solid var(--rand-dunkel);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}
/* Die Lightbox huellt jedes Bild in einen Knopf; der darf hier nicht die volle
   Breite einnehmen, sonst stapeln sich die drei Handys untereinander. */
.handys .bild-knopf { width: auto; flex: 0 0 auto; transition: transform 0.35s var(--ease); }
.handys .bild-knopf:hover { transform: translateY(-8px); }
@media (min-width: 701px) {
  /* Leicht gefaechert wie auf einem Tisch — das mittlere Handy steht vorn. */
  .handys .bild-knopf:first-child { transform: rotate(-2.4deg) translateY(14px); }
  .handys .bild-knopf:last-child { transform: rotate(2.4deg) translateY(14px); }
  .handys .bild-knopf:first-child:hover { transform: rotate(-2.4deg) translateY(4px); }
  .handys .bild-knopf:last-child:hover { transform: rotate(2.4deg) translateY(4px); }
}

/* ---------- Formular ---------- */
.anfrage-raster { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px, 5vw, 66px); align-items: start; }
.formular {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius-gross);
  padding: clamp(26px, 3.4vw, 38px);
}
.feld { margin-bottom: 16px; }
.feld label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; }
.feld input, .feld textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--rand); border-radius: 10px;
  font: inherit; font-size: 0.95rem; background: #fff; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feld input:focus, .feld textarea:focus {
  outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(31, 78, 216, 0.15);
}
.feld textarea { min-height: 104px; resize: vertical; }
.feld-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zustimmung { display: flex; gap: 10px; align-items: flex-start; font-size: 0.83rem; color: var(--text-gedaempft); margin: 4px 0 20px; }
.zustimmung input { margin-top: 3px; flex: none; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-hinweis { font-size: 0.82rem; color: var(--text-gedaempft); margin: 14px 0 0; }
.meldung { padding: 13px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 0.92rem; }
.meldung-ok { background: #e9f7ef; border: 1px solid #a6dfbb; color: #14663a; }
.meldung-fehler { background: #fdecea; border: 1px solid #f2b8b1; color: #8f2018; }

.kontaktliste { list-style: none; padding: 0; margin: 26px 0 0; }
.kontaktliste li { display: flex; gap: 12px; margin-bottom: 15px; align-items: flex-start; }
.kontaktliste svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--akzent-hell); }
.kontaktliste a { border-bottom: 1px solid rgba(255,255,255,.28); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details {
  border-bottom: 1px solid var(--rand); padding: 19px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none;
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--akzent); border-bottom: 2px solid var(--akzent);
  transform: rotate(45deg); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 12px 0 0; color: var(--text-gedaempft); font-size: 0.95rem; max-width: 68ch; }

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: var(--text-hell-gedaempft); padding: 58px 0 30px; font-size: 0.89rem; }
.fuss-raster { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; margin-bottom: 34px; }
.fuss img { height: 29px; margin-bottom: 15px; opacity: .92; }
.fuss h4 { color: #fff; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 13px; }
.fuss a:hover { color: #fff; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 8px; }
.fuss-unten {
  border-top: 1px solid var(--rand-dunkel); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem;
}

/* ---------- Held: Einblenden ohne Javascript ----------
   Der Bereich ueber der Falz darf nicht davon abhaengen, dass ein
   IntersectionObserver laeuft — sonst steht der Besucher bei langsamem oder
   blockiertem Javascript vor einer leeren Seite. Reine CSS-Animation, gestaffelt
   ueber die Variable --v. */
@keyframes held-einblenden {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.held-auf {
  animation: held-einblenden 0.72s var(--ease) both;
  animation-delay: calc(var(--v, 0) * 90ms);
}

/* ---------- Scroll-Reveal ----------
   Nur aktiv, wenn Javascript laeuft (Klasse `js` setzt ein Inline-Skript im
   <head>). Ohne Javascript — oder wenn das Skript scheitert — bleibt die Seite
   vollstaendig lesbar, statt leer zu sein. */
.js .zeigen { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .zeigen.sichtbar { opacity: 1; transform: none; }
.js .zeigen[data-verzug="1"] { transition-delay: 0.08s; }
.js .zeigen[data-verzug="2"] { transition-delay: 0.16s; }
.js .zeigen[data-verzug="3"] { transition-delay: 0.24s; }

/* ---------- Lightbox für Bildschirmfotos ----------
   Wird per Javascript ergänzt (progressive Verbesserung): Screenshots werden
   in Knöpfe gehüllt und öffnen sich vergrößert in einem Overlay. */
.bild-knopf {
  display: block; width: 100%; border: 0; padding: 0; margin: 0;
  background: none; cursor: zoom-in; font: inherit; line-height: 0;
}
.lichtkasten {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 10, 20, 0.93);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(3vmin, 20px);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
/* `display: flex` gewinnt sonst gegen das Browser-`[hidden]` — das geschlossene
   Overlay laege unsichtbar ueber der Seite und wuerde jeden Klick schlucken. */
.lichtkasten[hidden] { display: none; }
.lichtkasten.offen { opacity: 1; }
.lichtkasten img {
  max-width: min(1680px, 94vw); max-height: 86vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.lichtkasten figcaption {
  margin-top: 14px; color: var(--text-hell); font-size: 0.9rem; text-align: center;
}
.lichtkasten-schliessen {
  position: absolute; top: 16px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08);
  color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lichtkasten-schliessen:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }
body.lichtkasten-offen { overflow: hidden; }

/* ---------- Responsiv ---------- */
@media (max-width: 940px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .kachel, .kachel-breit { grid-column: span 1; }
  .wege { grid-template-columns: 1fr; }
  .ablauf { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .schritt::after { display: none; }
  .wechsel, .anfrage-raster { grid-template-columns: 1fr; }
  .wechsel.gedreht .wechsel-text { order: 0; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
  .band-raster { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .kopf-nav a:not(.knopf) { display: none; }
}
@media (max-width: 700px) {
  /* Handy-Aufnahme mittig und in Geraetebreite statt randlos gestreckt. */
  .held-bild {
    max-width: 300px; margin-left: auto; margin-right: auto;
    border-radius: 24px;
  }
  .handys img { width: min(46vw, 200px); }
}

@media (max-width: 560px) {
  .held { padding-top: 132px; }
  .bento { grid-template-columns: 1fr; }
  .ablauf { grid-template-columns: 1fr; }
  .feld-zwei { grid-template-columns: 1fr; }
  .fuss-raster { grid-template-columns: 1fr; }
}

/* ---------- Bewegung abschaltbar ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .held-auf { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .zeigen { opacity: 1; transform: none; }
}

/* ---------- Fokus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--akzent-hell); outline-offset: 3px; border-radius: 5px;
}
