/* ───────────────────────────────────────────────────────────────────────
   SignerBox — Onepager
   Farben aus der App übernommen (kPrimaryColor #0077CC, kAccentColor #FFA500),
   damit Website und Anwendung zusammengehören.
   Bewusst ohne externe Schriften und ohne CDN: die Content-Security-Policy
   in nginx.conf erlaubt ausschließlich eigene Quellen.
   ─────────────────────────────────────────────────────────────────────── */

:root {
  --blue:        #0077CC;
  --blue-dark:   #005EA3;
  --blue-tint:   #EAF4FC;
  --amber:       #FFA500;
  --ink:         #14212B;
  --ink-soft:    #4A5A66;
  --ink-faint:   #7B8A94;
  --line:        #E3E8EC;
  --surface:     #FFFFFF;
  --surface-alt: #F6F9FB;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 1px 2px rgba(20, 33, 43, .04), 0 12px 32px rgba(20, 33, 43, .07);
  --shadow-lg: 0 2px 4px rgba(20, 33, 43, .05), 0 28px 64px rgba(20, 33, 43, .12);

  --wrap:  1140px;
  --gap:   clamp(1.5rem, 4vw, 3rem);
  --sect:  clamp(4.5rem, 10vw, 8rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p  { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.wrap.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* ─── Kopfzeile ────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(20, 33, 43, .05);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}
.brand { flex: 0 0 auto; }
.brand img { width: 168px; height: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  color: var(--ink-soft); font-size: .95rem; font-weight: 500;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a.btn { color: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 4px auto;
  background: var(--ink); border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gap) 1.25rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 1rem; border-bottom: 0; justify-content: center; }
}

/* ─── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.5rem;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .98rem; font-weight: 600; white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, background-color .18s ease,
              border-color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; }

.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 6px 18px rgba(0, 119, 204, .28);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-faint); color: var(--ink); background: var(--surface-alt); }

/* ─── Bausteine ───────────────────────────────────────────────────── */

.eyebrow {
  font-size: .82rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: .9rem;
}
.lead, .section-lead {
  color: var(--ink-soft); font-size: 1.12rem; max-width: 56ch;
}
.section { padding: var(--sect) 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 1rem; }

/* ─── Hero ────────────────────────────────────────────────────────── */

.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 var(--sect);
  background:
    radial-gradient(80rem 40rem at 88% -14%, var(--blue-tint) 0%, transparent 62%),
    radial-gradient(50rem 30rem at 4% 4%, rgba(255, 165, 0, .09) 0%, transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 4.5rem); align-items: center;
}
.hero-copy h1 { margin-bottom: 1.4rem; }
.hero-copy .lead { margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.75rem; }

.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.hero-facts li {
  position: relative; padding-left: 1.7rem;
  font-size: .97rem; color: var(--ink-soft);
}
.hero-facts li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue);
}
.hero-facts strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
}

/* Gerätemockup, komplett aus CSS/SVG — kein Screenshot nötig */
.device {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: rotate(-1.1deg);
}
.device-bar {
  display: flex; gap: 7px; align-items: center;
  padding: .8rem 1rem;
  background: var(--surface-alt); border-bottom: 1px solid var(--line);
}
.device-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #D6DDE3; }
.device-body { padding: 1.4rem; background: linear-gradient(180deg, #FBFDFE, #F2F6F9); }

.doc {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: 0 8px 24px rgba(20, 33, 43, .06);
}
.doc-kicker {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: .5rem;
}
.doc-heading {
  font-size: 1.02rem; line-height: 1.25; hyphens: auto;
  margin-bottom: .9rem;
}
.doc-text {
  font-size: .74rem; line-height: 1.6; color: var(--ink-soft);
  margin-bottom: .7rem;
}

/* Fußzeile des Dokuments: Unterschrift links, Stempel rechts —
   so, wie es auf einem echten Blatt aussieht. */
.doc-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-top: 1.4rem;
}
.doc-sig { flex: 1 1 auto; min-width: 0; position: relative; }
.doc-sign { width: 84%; max-width: 150px; margin-bottom: -.35rem; }
.doc-sig-line {
  display: block; height: 1px; background: var(--line); margin-bottom: .35rem;
}
.doc-sig-name { display: block; font-size: .72rem; font-weight: 600; }
.doc-sig-role { display: block; font-size: .64rem; color: var(--ink-faint); }

/* Runder Firmenstempel, leicht schief aufgesetzt wie mit der Hand. */
.doc-stamp {
  flex: 0 0 auto;
  width: 92px; height: 92px;
  display: grid; place-content: center; gap: .1rem;
  text-align: center;
  border: 2px solid var(--blue); border-radius: 50%;
  box-shadow: inset 0 0 0 2.5px #fff, inset 0 0 0 4px var(--blue);
  color: var(--blue);
  transform: rotate(-9deg);
  opacity: .88;
}
.doc-stamp-top {
  font-size: .6rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase;
}
.doc-stamp-name {
  font-size: .62rem; font-weight: 700; letter-spacing: .01em;
  line-height: 1.15; max-width: 74px; margin-inline: auto;
}
.doc-stamp-date { font-size: .54rem; letter-spacing: .04em; opacity: .8; }

@media (max-width: 420px) {
  .doc-stamp { width: 78px; height: 78px; }
}

/* ─── Ablauf ──────────────────────────────────────────────────────── */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 1.15rem;
  border-radius: 12px;
  background: var(--blue); color: #fff;
  font-weight: 700; font-size: 1.05rem;
}
.step h3 { margin-bottom: .6rem; }
.step p { color: var(--ink-soft); font-size: .99rem; }

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

/* ─── Karten ──────────────────────────────────────────────────────── */

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 1.9rem);
}
.card {
  padding: 1.9rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #D3DCE3;
}
.card-icon {
  width: 46px; height: 46px; margin-bottom: 1.15rem;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--blue-tint); color: var(--blue);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .97rem; }

@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cards { grid-template-columns: 1fr; } }

/* ─── Sicherheit ──────────────────────────────────────────────────── */

.security-grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4.5rem); align-items: start;
}
.security-grid h2 { margin-bottom: 1rem; }
.security-grid .section-lead { margin-bottom: 1.9rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.checklist li {
  position: relative; padding-left: 2.9rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .1rem;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230077CC' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.checklist h3 { margin-bottom: .25rem; }
.checklist p { color: var(--ink-soft); font-size: .97rem; }

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

/* ─── FAQ ─────────────────────────────────────────────────────────── */

.faq { display: grid; gap: .8rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq details[open] { border-color: #CFDBE4; box-shadow: var(--shadow); }
.faq summary {
  padding: 1.15rem 3rem 1.15rem 1.35rem;
  position: relative; cursor: pointer;
  font-weight: 600; font-size: 1.03rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.35rem; top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p {
  padding: 0 1.35rem 1.35rem;
  color: var(--ink-soft); font-size: .99rem;
  max-width: 62ch;
}

/* ─── Abschluss ───────────────────────────────────────────────────── */

.cta {
  background:
    radial-gradient(60rem 32rem at 50% 0%, var(--blue-tint) 0%, transparent 68%);
}
.cta-inner { text-align: center; }
.cta-icon {
  width: 76px; height: 76px; margin: 0 auto 1.6rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.cta h2 { margin-bottom: 1rem; }
.cta p { color: var(--ink-soft); font-size: 1.1rem; margin: 0 auto 2.2rem; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }

/* ─── Fußzeile ────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line); padding: 3rem 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.25rem 2rem;
}
.footer-logo { width: 138px; opacity: .9; }
.footer-meta { color: var(--ink-faint); font-size: .9rem; }
.footer-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { color: var(--ink-soft); font-size: .92rem; }
.footer-nav a:hover { color: var(--ink); }

/* ─── Einblenden beim Scrollen ────────────────────────────────────── */

/* Bewusst umgekehrt gebaut: .reveal ist von sich aus SICHTBAR. Erst wenn
   main.js die Klasse `js-reveal` auf <html> setzt, wird ausgeblendet und
   animiert. Läuft das Skript nicht (Fehler, blockiert, alter Browser),
   bleibt die Seite vollständig lesbar statt leer. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

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

/* ─── Preise ───────────────────────────────────────────────────────────
   Drei Karten nebeneinander, ab Tablet zweispalten, auf dem Telefon
   untereinander. Die mittlere ist hervorgehoben — nicht aus Dekoration:
   ohne einen Anker vergleicht niemand drei gleichrangige Angebote, und die
   mittlere ist die, die für die meisten passt.
   ─────────────────────────────────────────────────────────────────────── */
.preis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.preis-karte {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
}

.preis-karte--hervor {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
}

.preis-fahne {
  position: absolute;
  top: -.75rem;
  left: 1.6rem;
  background: var(--blue);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
}

.preis-karte h3 { margin-bottom: .2rem; }

.preis-mappen {
  color: var(--ink-faint);
  font-size: .92rem;
  margin-bottom: 1.2rem;
}

.preis-betrag {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.preis-betrag span {
  font-size: .95rem;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0;
}

.preis-jahr {
  color: var(--ink-soft);
  font-size: .9rem;
  margin-bottom: 1.4rem;
}

.preis-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.preis-liste li {
  font-size: .94rem;
  color: var(--ink-soft);
  padding-left: 1.4rem;
  position: relative;
}

/* Häkchen als CSS statt als Bild oder Icon-Schrift: die
   Content-Security-Policy erlaubt keine externen Quellen, und für ein
   Häkchen lohnt keine eigene Datei. */
.preis-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .5rem;
  height: .28rem;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.preis-fuss {
  margin-top: 2rem;
  font-size: .88rem;
  color: var(--ink-faint);
  max-width: 68ch;
}

@media (max-width: 900px) {
  .preis-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  /* Die Fahne der mittleren Karte braucht oben Luft, sobald die Karten
     untereinander stehen — sonst schneidet sie in die vorherige. */
  .preis-karte--hervor { margin-top: .5rem; }
}
