/* ==========================================================================
   Kanzlivo — styles.css
   Statische Website, keine externen Ressourcen.
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --navy: #0E2A47;
  --navy-2: #153A5F;
  --teal: #0E8F8B;
  --teal-dark: #0A6F6C;
  --teal-light: #E6F4F3;
  --ice: #C9D6E2;
  --text: #1F2D3D;
  --muted: #5A6B7D;
  --border: #E3E9EF;
  --bg: #FAFBFC;
  --accent: #F0A83D;
  --white: #FFFFFF;
  --teal-on-navy: #6FCBC8;

  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 13px;
  --shadow-hover: 0 10px 30px rgba(14, 42, 71, 0.10);
  --container: 1140px;

  --fs-h1: clamp(2.5rem, 1.75rem + 2.6vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --fs-h3: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  --fs-body: clamp(1rem, 0.96rem + 0.15vw, 1.125rem);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.2; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; margin-bottom: 0.5em; }
h3 { font-size: var(--fs-h3); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

ul, ol { list-style-position: inside; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.narrow { max-width: 800px; }

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn--primary { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }
.btn--primary:hover { background: #085D5A; border-color: #085D5A; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10, 111, 108, 0.35); }
.btn--outline { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn--outline:hover { background: var(--teal-light); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: var(--ice); border-color: rgba(201, 214, 226, 0.55); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.08); color: #fff; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--teal-dark); border-color: #fff; }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.btn--lg { padding: 16px 36px; font-size: 1.08rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.badge--hero {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(201, 214, 226, 0.35);
  color: var(--ice);
}
.badge--accent { background: var(--accent); color: var(--navy); }
.badge--teal { background: var(--teal-light); color: var(--teal-dark); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 18px rgba(14, 42, 71, 0.07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav__logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav__logo b { color: var(--teal); font-weight: inherit; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav__links a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav__links a:not(.btn):hover { color: var(--teal-dark); border-bottom-color: var(--teal); }
.nav__links .btn { padding: 10px 20px; font-size: 0.94rem; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  content: "";
  position: relative;
}
.nav__toggle-bars::before { position: absolute; top: -7px; }
.nav__toggle-bars::after { position: absolute; top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(14, 42, 71, 0.12);
    padding: 10px 24px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { border-bottom: 1px solid var(--border); }
  .nav__links li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav__links a:not(.btn) { display: block; padding: 14px 2px; border-bottom: 0; }
  .nav__links .btn { display: block; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 75%, #1A4368 100%);
  color: #fff;
  padding: clamp(72px, 10vw, 120px) 0 clamp(64px, 8vw, 96px);
  overflow: hidden;
}
.hero--compact { padding: clamp(56px, 7vw, 84px) 0; }
.hero__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { color: #fff; max-width: 21ch; margin: 22px 0 0; }
.hero h1 em { font-style: normal; color: var(--teal-on-navy); }
.hero__sub {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ice);
  max-width: 62ch;
  margin: 22px 0 34px;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.trust-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 34px;
  font-size: 0.9rem;
  color: #9FB3C8;
}
.trust-line svg { flex: 0 0 auto; }
.trust-line b { color: var(--ice); font-weight: 600; }
.trust-line .sep { color: rgba(159, 179, 200, 0.6); }

/* ---------- Stats-Bar ---------- */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 40px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px 28px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(2rem, 1.7rem + 1.2vw, 2.7rem);
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--muted); font-size: 0.94rem; display: block; margin-top: 6px; }
.stats__source {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 32px;
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(64px, 8vw, 100px) 0; }
.section--teal { background: var(--teal-light); }
.section--navy { background: var(--navy); color: var(--ice); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--white { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__lead { color: var(--muted); font-size: 1.06rem; }
.section--navy .section__lead { color: var(--ice); }

/* ---------- Karten ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: scale(1.015); box-shadow: var(--shadow-hover); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card__icon { margin-bottom: 16px; }

.section--navy .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(201, 214, 226, 0.22);
}
.section--navy .card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.section--navy .card h3 { color: var(--teal-on-navy); }
.section--navy .card p { color: var(--ice); }

/* ---------- Workflow-Karten ---------- */
.workflow { display: flex; flex-direction: column; }
.workflow__save {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 700;
  color: var(--teal-dark);
  font-size: 0.95rem;
}
.roi-note {
  margin-top: 36px;
  background: var(--teal-light);
  border: 1px solid #CBE8E6;
  border-radius: var(--radius);
  padding: 22px 28px;
  font-size: 1.02rem;
}
.roi-note b { color: var(--teal-dark); }

/* ---------- Checkliste ---------- */
.checklist { list-style: none; }
.checklist li {
  position: relative;
  padding: 7px 0 7px 32px;
  font-size: 0.97rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  background-color: var(--teal);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" d="M4 10.5l4 4 8-9"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" d="M4 10.5l4 4 8-9"/></svg>') no-repeat center / contain;
}

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 26px; align-items: stretch; }
.pkg {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 30px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pkg:hover { transform: scale(1.015); box-shadow: var(--shadow-hover); }
.pkg--featured { border: 2px solid var(--teal); box-shadow: 0 10px 34px rgba(14, 143, 139, 0.16); }
.pkg__badge { position: absolute; top: -15px; left: 28px; }
.pkg h3 { font-size: 1.3rem; }
.pkg__tagline { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }
.pkg__price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--teal-dark);
  margin: 18px 0 2px;
  letter-spacing: -0.02em;
}
.pkg__price small { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.pkg__pricenote { font-size: 0.84rem; color: var(--muted); margin-bottom: 4px; }
.pkg .checklist { margin: 20px 0 28px; flex: 1; }
.pkg__ctas { display: flex; flex-direction: column; gap: 10px; }
.pkg__more { font-size: 0.94rem; font-weight: 600; text-decoration: none; text-align: center; color: var(--teal-dark); }
.pkg__more:hover { text-decoration: underline; }

/* ---------- Ablauf / Schritte ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  counter-increment: step;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: scale(1.015); box-shadow: var(--shadow-hover); }
.step::before {
  content: counter(step);
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.step::after {
  content: "";
  position: absolute;
  top: 48px;
  left: calc(26px + 40px + 8px);
  right: -16px;
  height: 2px;
  background: var(--border);
}
.step:last-child::after { display: none; }
@media (max-width: 640px) {
  .step::after { display: none; }
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: 0.94rem; color: var(--muted); }
.steps-note { margin-top: 30px; font-weight: 600; color: var(--navy); }

/* ---------- Über / Gründer ---------- */
.about { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; } }
.avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--navy) 15%, var(--teal) 120%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 26px rgba(14, 42, 71, 0.22);
}
.about__quote {
  border-left: 3px solid var(--teal);
  padding-left: 18px;
  color: var(--navy);
  font-weight: 600;
  margin-top: 18px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 19px 52px 19px 24px;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .faq__body { padding: 0 24px 20px; color: var(--muted); font-size: 0.97rem; }

/* ---------- Final-CTA ---------- */
.cta-final {
  background: linear-gradient(155deg, var(--teal-dark) 0%, #07504D 100%);
  color: #fff;
  text-align: center;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #E6F4F3; max-width: 58ch; margin: 16px auto 32px; }
.cta-final__mail { margin-top: 20px; font-size: 0.95rem; color: #D7EFEE; }
.cta-final__mail a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #9FB3C8;
  padding: 56px 0 36px;
  font-size: 0.92rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer .nav__logo { color: #fff; margin-bottom: 12px; }
.site-footer h4 { color: var(--ice); font-size: 0.95rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--ice); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom {
  border-top: 1px solid rgba(201, 214, 226, 0.18);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: clamp(48px, 6vw, 72px) 24px 88px; }
.legal h1 { font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.legal p, .legal ul { margin-bottom: 14px; color: var(--text); }
.legal .todo {
  background: #FFF3CD;
  border: 1px dashed #D9B24A;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.legal .hint { color: var(--muted); font-size: 0.9rem; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.error-page .container { max-width: 640px; }
.error-page .code { font-size: clamp(4rem, 10vw, 6.5rem); font-weight: 800; color: var(--teal); letter-spacing: -0.03em; line-height: 1; }
.error-page h1 { margin: 12px 0 14px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.error-page p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Detailseiten ---------- */
.timeline { list-style: none; max-width: 800px; }
.timeline li {
  position: relative;
  padding: 0 0 30px 52px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: -6px;
  width: 2px;
  background: var(--border);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-light);
}
.timeline h3, .timeline h4 { font-size: 1.05rem; margin-bottom: 6px; color: var(--navy); }
.timeline p { color: var(--muted); font-size: 0.96rem; }
.timeline .badge { margin-bottom: 8px; }

.price-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 34px 32px;
}
.price-block table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.price-block th, .price-block td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.price-block th { color: var(--navy); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.04em; }
.price-block tr:last-child td { border-bottom: 0; }
.price-block .num { font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
.price-block__note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.table-scroll { overflow-x: auto; }

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mb-3 { margin-bottom: 24px; }
.maxw-800 { max-width: 800px; }
.site-footer__bottom--plain { border-top: 0; padding-top: 0; }
.price-block__caption { caption-side: top; text-align: left; padding-bottom: 10px; }
.small { font-size: 0.85rem; color: var(--muted); }
.section--navy .small { color: #9FB3C8; }
.center { text-align: center; }
