/* ============================================================
   Klarpost Landing Page
   Style mechanics modeled on a minimal fintech look:
   near-black ink on white, one accent family, pill buttons,
   14px cards, soft shadows, slab-serif headlines.
   ============================================================ */

/* ---------- Fonts (self-hosted, DSGVO-safe) ---------- */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-v51-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/roboto-v51-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-v51-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/roboto-slab-v36-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/roboto-slab-v36-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-slab-v36-latin-700.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0b1220;
  --body: #5c6770;
  --accent: #0e7c7b;
  --accent-dark: #0a5f5e;
  --mint: #b9ede6;
  --mint-soft: #e4f7f4;
  --tint: #f0f7f6;
  --white: #ffffff;
  --line: #e5eaea;
  --shadow-sm: 0 2px 10px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 12px 34px rgba(11, 18, 32, 0.09);
  --radius: 14px;
  --radius-sm: 7px;
  --radius-pill: 999px;
  --font-head: 'Roboto Slab', Georgia, serif;
  --font-body: 'Roboto', -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.preloader--hidden { opacity: 0; visibility: hidden; }
.preloader__mark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: var(--ink);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn--lg { padding: 18px 34px; font-size: 1rem; }
.btn--block { display: block; width: 100%; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #1c2536; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--white); }

/* ---------- Eyebrow / Marker ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--mint-soft);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  margin-bottom: 18px;
}
.eyebrow--light { background: rgba(185, 237, 230, 0.16); color: var(--mint); }
.marker {
  background: linear-gradient(transparent 58%, var(--mint) 58%);
  padding: 0 0.08em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header--scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ink);
}
.logo .dot { color: var(--accent); }
.logo--light { color: var(--white); }
.main-nav { display: flex; gap: 30px; }
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 100px; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.lead { font-size: 1.15rem; max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-row li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.trust-row li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: inset 0 0 0 4px var(--accent);
}
.hero__visual img,
.split__visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head__sub { margin-top: 10px; }
.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* ---------- Split (Zweispalter) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split__content .btn { margin-top: 8px; }
.icon-list { margin: 22px 0 26px; display: grid; gap: 13px; }
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
  font-weight: 500;
}
.icon-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
  background: var(--mint-soft);
  border-radius: 50%;
  padding: 4px;
}

/* ---------- Feature Grid (Iconboxen) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.iconbox {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.iconbox:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.iconbox__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--mint-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.iconbox__icon svg { width: 28px; height: 28px; }
.iconbox p { margin: 0; font-size: 0.97rem; }

/* ---------- Benefit Cards ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit-card__visual {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--mint-soft);
}
.benefit-card p { font-size: 0.97rem; }
.text-link {
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1.5px solid var(--mint);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.text-link:hover { border-color: var(--accent); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.price-card__badge {
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}
.price-card h3 { margin-bottom: 2px; }
.price-card__units { font-size: 0.9rem; margin-bottom: 16px; }
.price-card__price { display: flex; align-items: baseline; gap: 8px; }
.price-card__price .amount {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--ink);
}
.price-card__price .period { font-size: 0.9rem; }
.price-card__effective {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--mint-soft);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  margin: 10px 0 20px;
}
.check-list { display: grid; gap: 10px; margin-bottom: 26px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mint);
  -webkit-mask: none;
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 7.5px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: rotate(-45deg);
}
.price-card .btn { margin-top: auto; }

/* ---------- Fallbeispiel-Slider ---------- */
.slider-nav { display: flex; gap: 10px; }
.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.slider-btn:hover { background: var(--ink); color: var(--white); }
.slider-btn svg { width: 20px; height: 20px; }
.slider { overflow: hidden; }
.slider__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.slider__track::-webkit-scrollbar { display: none; }
.case-card {
  flex: 0 0 calc((min(var(--container), 100vw) - 48px - 48px) / 3);
  min-width: 300px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.case-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.case-card__chips span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--mint-soft);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}
.case-card p { margin: 0; font-size: 0.95rem; }

/* ---------- CTA / Kontakt ---------- */
.cta {
  background: var(--ink);
  padding: 96px 0;
}
.cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta h2 { color: var(--white); }
.cta p { color: rgba(255, 255, 255, 0.75); }
.cta__contact {
  margin-top: 28px;
  display: grid;
  gap: 4px;
}
.cta__contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.cta__contact a {
  color: var(--mint);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
}
.cta__contact-note { font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); }
.cta__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--tint);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-row textarea { resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  background: var(--white);
}
.form-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--body);
  text-align: center;
}

/* ---------- Badge Strip ---------- */
.badge-strip {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.badge-strip__label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 28px;
}
.badge-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
}
.badge-strip__list li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 52px;
}
.footer__brand p { font-size: 0.93rem; margin-top: 16px; }
.footer__byline { color: rgba(255, 255, 255, 0.45); }
.footer__col h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.footer__col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--mint); }
.footer__col p { font-size: 0.92rem; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  padding-bottom: 24px;
}
.footer__bottom p { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- Reveal Animationen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--right { transform: translateY(0) translateX(30px); }
.reveal--visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal--right { opacity: 1; transform: none; transition: none; }
  .preloader__mark { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero__inner, .split, .cta__inner { grid-template-columns: 1fr; gap: 44px; }
  .split__visual { order: -1; }
  .hero { padding: 56px 0 72px; }
  .section, .cta { padding: 72px 0; }
  .feature-grid, .benefit-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--tint); }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .feature-grid, .benefit-grid, .pricing-grid { grid-template-columns: 1fr; }
  .header__actions .btn { display: none; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .case-card { flex-basis: 85%; }
  .cta__form { padding: 28px 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Rechtsseiten (Impressum, Datenschutz, AVV) ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 24px 96px;
}
.legal h1 { margin-bottom: 0.35em; }
.legal .lead {
  font-size: 1.15rem;
  color: var(--body);
  margin-bottom: 2.4em;
}
.legal h2 {
  font-size: 1.4rem;
  margin: 2em 0 0.6em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { margin: 1.4em 0 0.4em; }
.legal p { margin: 0 0 1.1em; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal ul {
  list-style: disc;
  padding-left: 1.3em;
  margin: 0 0 1.1em;
}
.legal ul li { margin-bottom: 0.5em; }
.legal-card {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 1.6em;
}
.legal-card p { margin: 0 0 0.4em; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6em;
  font-size: 0.96rem;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
}
.legal .updated {
  margin-top: 2.4em;
  font-size: 0.9rem;
  color: var(--body);
}
.legal .back {
  display: inline-block;
  margin-top: 1.4em;
  font-weight: 500;
}
