/* ============================================================
   Einfach POS – Landing Page
   Palette: kühles Off-White, Marineblau, Orange als Akzent
   ============================================================ */

:root {
  --paper: #f6f8fb;
  --paper-dark: #e9eef5;
  --ink: #0e2a47;
  --ink-soft: #3f566e;
  --accent: #e8590c;
  --accent-dark: #b54708;
  --line: #d5dde7;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 760px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; }

.mono { font-family: var(--font-mono); font-size: 0.95em; background: var(--paper-dark); padding: 0.1em 0.35em; border-radius: 3px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(181, 71, 8, 0.28);
}

.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }

.btn-small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.btn-ghost {
  display: inline-block;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.15s ease;
}

.btn-ghost:hover { color: var(--accent); }

.btn-ghost .arrow { display: inline-block; transition: transform 0.2s ease; }

.btn-ghost:hover .arrow { transform: translateX(4px); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

.main-nav { display: flex; gap: 1.6rem; }

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover { color: var(--accent); }

.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); }

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

.hero { padding: 5rem 0 4.5rem; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.4rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Kassenbon ---------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.receipt {
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #2e3440;
  width: 270px;
  padding: 1.4rem 1.2rem 2.6rem;
  transform: rotate(2.5deg);
  box-shadow: 0 14px 34px rgba(14, 42, 71, 0.18);
  /* gezackte Unterkante wie ein abgerissener Bon */
  clip-path: polygon(
    0 0, 100% 0, 100% calc(100% - 8px),
    95% 100%, 90% calc(100% - 8px), 85% 100%, 80% calc(100% - 8px),
    75% 100%, 70% calc(100% - 8px), 65% 100%, 60% calc(100% - 8px),
    55% 100%, 50% calc(100% - 8px), 45% 100%, 40% calc(100% - 8px),
    35% 100%, 30% calc(100% - 8px), 25% 100%, 20% calc(100% - 8px),
    15% 100%, 10% calc(100% - 8px), 5% 100%, 0 calc(100% - 8px)
  );
}

.receipt-head { text-align: center; font-weight: 500; }

.receipt-rule {
  border-top: 1px dashed #aab4c0;
  margin: 0.7rem 0;
}

.receipt-items { width: 100%; border-collapse: collapse; }

.receipt-items td { padding: 0.1rem 0; }

.receipt-items td:last-child { text-align: right; }

.receipt-total td {
  font-weight: 700;
  padding-top: 0.45rem;
  font-size: 0.92rem;
}

.receipt-meta { color: #5c6b7c; }

.receipt-thanks {
  text-align: center;
  margin-top: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.receipt-tag {
  position: absolute;
  bottom: -16px;
  right: 4%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transform: rotate(-4deg);
  box-shadow: 0 6px 16px rgba(14, 42, 71, 0.25);
}

/* ---------- Trust strip ---------- */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-dark);
  padding: 0.9rem 0;
}

.trust-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.trust-inner span::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Problem ---------- */

.problem { padding: 5.5rem 0; }

.problem h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 1.4rem;
}

.problem p {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ---------- Features ---------- */

.features {
  background: var(--ink);
  color: var(--paper);
  padding: 5.5rem 0 4rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 3.2rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 70px 1.2fr 0.8fr;
  gap: 2rem;
  padding: 2.4rem 0;
  border-top: 1px solid rgba(246, 248, 251, 0.18);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  padding-top: 0.4rem;
}

.feature-body h3 {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
}

.feature-body p { color: rgba(246, 248, 251, 0.78); }

.feature-body .mono {
  background: rgba(246, 248, 251, 0.12);
  color: var(--paper);
}

.feature-list {
  list-style: none;
  font-size: 0.95rem;
  padding-top: 0.35rem;
}

.feature-list li {
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative;
  border-bottom: 1px dashed rgba(246, 248, 251, 0.15);
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- Steps ---------- */

.steps { padding: 5.5rem 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.8rem 1.6rem;
}

.step-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
}

.step h3 {
  font-size: 1.2rem;
  margin: 0.7rem 0 0.6rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Pricing ---------- */

.pricing {
  background: var(--paper-dark);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5.5rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border: 2px solid var(--ink);
  position: relative;
}

.price-badge {
  position: absolute;
  top: -0.85rem;
  left: 1.5rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.price-card h3 { font-size: 1.25rem; }

.price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0.8rem 0 1.2rem;
}

.price span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.price-card ul {
  list-style: none;
  font-size: 0.93rem;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 1.6rem;
}

.price-card li {
  padding: 0.4rem 0 0.4rem 1.3rem;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-note {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 62em;
}

/* ---------- FAQ ---------- */

.faq { padding: 5.5rem 0; }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.2rem 2.2rem 1.2rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  padding: 0 0 1.4rem;
  color: var(--ink-soft);
  max-width: 60em;
}

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

.cta {
  background: var(--ink);
  color: var(--paper);
  padding: 5.5rem 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 1.2rem;
}

.cta-text p { color: rgba(246, 248, 251, 0.78); }

.cta-contact {
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.7;
}

.cta-contact a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.cta-contact a:hover { color: var(--accent); }

.cta-form {
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cta-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.cta-form input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.cta-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.form-note {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-soft);
}

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */

.legal-page { padding: 4rem 0 5rem; }

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.45rem;
  margin: 2.6rem 0 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.legal-page h3 {
  font-size: 1.15rem;
  margin: 1.8rem 0 0.5rem;
}

.legal-page h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.3rem 0 0.35rem;
}

.legal-page p { color: var(--ink-soft); margin-bottom: 0.8rem; }

.legal-page ul {
  color: var(--ink-soft);
  margin: 0.5rem 0 1rem 1.3rem;
}

.legal-page li { margin-bottom: 0.6rem; }

.legal-page a { color: var(--accent); }

.legal-hint {
  background: #fdeee1;
  border: 1px solid #f0c39a;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: #7c4a12 !important;
}

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

.site-footer {
  background: var(--paper);
  padding: 3.5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.logo--footer { font-size: 1.2rem; }

.footer-tagline {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.footer-col p { font-size: 0.92rem; }

.footer-col a { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  padding-bottom: 1.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero { padding-top: 3.5rem; }
  .feature-row { grid-template-columns: 50px 1fr; }
  .feature-list { grid-column: 2; }
  .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .receipt { width: 240px; }
}

/* ============================================================
   Animationen & Mikro-Interaktionen
   – nur transform/opacity, respektiert prefers-reduced-motion
   – Scroll-Reveal & Laufband setzt script.js auf; ohne JS
     bleibt die Seite vollständig sichtbar und nutzbar
   ============================================================ */

/* ---------- Header wird beim Scrollen kompakter ---------- */

.site-header { transition: box-shadow 0.25s ease; }

.header-inner { transition: padding 0.25s ease; }

.site-header--scrolled { box-shadow: 0 4px 18px rgba(14, 42, 71, 0.07); }

.site-header--scrolled .header-inner {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

/* ---------- Karten heben sich beim Hover ---------- */

.step,
.price-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.step:hover,
.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(14, 42, 71, 0.1);
}

/* ---------- FAQ-Antwort blendet weich ein ---------- */

.faq details[open] p { animation: faq-open 0.35s ease both; }

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
}

/* ---------- Scroll-Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Zähler in der Problem-Sektion ---------- */

.count-up {
  display: inline-block;
  min-width: 2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- Trust-Leiste als Laufband ---------- */

.trust-inner--marquee {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.trust-track {
  display: inline-flex;
  animation: trust-marquee 22s linear infinite;
}

.trust-inner--marquee:hover .trust-track { animation-play-state: paused; }

.trust-group {
  display: flex;
  gap: 2.75rem;
  padding-right: 2.75rem;
}

@keyframes trust-marquee {
  to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); }
}

/* ---------- Einstiegs-Animationen (Hero) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero-text > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-text > *:nth-child(2) { animation-delay: 0.15s; }
  .hero-text > *:nth-child(3) { animation-delay: 0.25s; }
  .hero-text > *:nth-child(4) { animation-delay: 0.35s; }
  .hero-text > *:nth-child(5) { animation-delay: 0.45s; }

  /* Der Bon "druckt" sich aus – steps() wirkt wie ein Bondrucker */
  .hero-visual { animation: receipt-print 1.4s steps(12, end) 0.35s both; }

  .receipt-tag { animation: tag-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s both; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
}

@keyframes receipt-print {
  from { clip-path: inset(0 -60px 100% -60px); }
  to { clip-path: inset(-60px); }
}

@keyframes tag-pop {
  from { opacity: 0; transform: rotate(-14deg) scale(0.5); }
  to { opacity: 1; transform: rotate(-4deg) scale(1); }
}

/* ---------- Reduzierte Bewegung: alles ruhigstellen ---------- */

@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; }
}
