/* === rechnung2qr — Clean Fintech Design === */
/* Fonts loaded via <link> in HTML <head> for performance */

:root {
  --accent: oklch(0.45 0.16 255);
  --accent-glow: radial-gradient(circle at 50% 50%, oklch(0.45 0.16 255 / 0.3), transparent 60%);
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: "Schibsted Grotesk", "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --bg: #fafaf7;
  --ink: #0f1012;
  --muted: rgba(15,16,18,0.58);
  --line: rgba(15,16,18,0.08);
  --soft: #fff;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

a { color: var(--ink); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

/* === Navbar === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.2px;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
  align-items: center;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.nav-actions a { color: var(--muted); }
.nav-actions a:hover { color: var(--ink); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  padding: 14px 22px;
  transition: opacity 0.15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff !important; }
.btn-light { background: #fff; color: var(--ink) !important; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 8px; }
.btn-full { width: 100%; }
.btn-google {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}
.btn-google:hover { background: #f8f8f5; }

/* === Hero === */
.hero {
  padding: 88px 56px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
  font-family: var(--mono);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
}
.hero h1 {
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -2.4px;
  font-weight: 500;
  font-family: var(--display);
}
.hero-sub {
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 28px;
  max-width: 480px;
  letter-spacing: -0.2px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 36px; align-items: center; }
.hero-cta .hint { font-size: 13px; color: var(--muted); }
.hero-checks {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  font-size: 13px;
  color: var(--muted);
}
.hero-checks span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-checks svg { color: var(--accent); }

/* === Upload Card (Hero right) === */
.upload-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 24px 48px -24px rgba(0,0,0,0.12);
  min-height: 460px;
  display: flex;
  flex-direction: column;
}
.upload-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.upload-card-header span {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* === Dropzone === */
.dropzone {
  flex: 1;
  border: 2px dashed var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: rgba(0,0,0,0.015);
}
.dropzone input[type="file"] { display: none; }
.dropzone-icon {
  width: 52px;
  height: 52px;
  border-radius: 26px;
  background: rgba(0,0,0,0.04);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.dropzone h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  text-align: center;
  color: var(--ink);
}
.dropzone p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
}
.dropzone .security-hint {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.dropzone img.preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 12px;
}

.upload-card-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.upload-card-footer .mono { font-family: var(--mono); }

/* === Logo Bar === */
.logo-bar {
  padding: 32px 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.logo-bar-label {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}
.logo-bar span {
  font-size: 16px;
  color: rgba(15,16,18,0.35);
  letter-spacing: -0.3px;
  font-weight: 500;
}

/* === Section === */
.section { padding: 96px 56px; }
.section-white { background: #fff; border-top: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #fff; }
.section-label {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section h2 {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -1.2px;
  font-weight: 500;
  font-family: var(--display);
}

/* === Steps === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  min-height: 220px;
}
.step-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 44px;
}
.step-card-header .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.step-card-header .icon { color: var(--accent); }
.step-card h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
  color: var(--ink);
}
.step-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* === Security Grid === */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: center;
}
.security-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.security-card {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.security-card .icon { color: var(--accent); margin-bottom: 14px; }
.security-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.security-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* === Testimonials === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}
.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.1px;
}
.testimonial-author {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 18px;
}
.testimonial-author strong { font-size: 13px; display: block; }
.testimonial-author small { font-size: 12px; color: var(--muted); }

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 56px auto 0;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  background: #fff;
}
.price-card.highlight {
  border-color: var(--accent);
  background: rgba(0,0,0,0.02);
}
.price-card .popular-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.price-card .tier {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}
.price-card .price {
  font-size: 44px;
  font-family: var(--display);
  letter-spacing: -1.5px;
  line-height: 1;
}
.price-card .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.price-card li svg { color: var(--accent); flex-shrink: 0; }

/* === FAQ === */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
}
.faq-contact { font-size: 14px; color: var(--muted); margin-top: 20px; line-height: 1.55; }
.faq-contact a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq-list summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.2px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .toggle { color: var(--muted); font-size: 20px; font-weight: 300; transition: transform 0.2s; }
.faq-list details[open] summary .toggle { transform: rotate(45deg); }
.faq-list .answer {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 560px;
}

/* === CTA Banner === */
.cta-banner {
  padding: 72px 56px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.cta-banner h2 {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -1.4px;
  font-weight: 500;
  font-family: var(--display);
}
.cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin-top: 18px;
}
.cta-banner .btn { margin-top: 28px; }

/* === Footer === */
.footer {
  padding: 56px 56px 32px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
.footer-brand { font-size: 13px; color: var(--muted); line-height: 1.55; max-width: 280px; margin-top: 12px; }
.footer-col h4 {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 10px;
}
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  display: flex;
  justify-content: space-between;
}

/* === Auth Pages === */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
}
.auth-form-side {
  padding: 40px 72px;
  display: flex;
  flex-direction: column;
}
.auth-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
}
.auth-form-wrap .section-label { margin-bottom: 12px; }
.auth-form-wrap h1 {
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -1.2px;
  font-weight: 500;
  font-family: var(--display);
}
.auth-form-wrap > p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
}
.auth-right {
  background: var(--ink);
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-right-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--accent-glow);
  opacity: 0.5;
  pointer-events: none;
}
.auth-right h2 {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -1.4px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.auth-right .features { position: relative; z-index: 1; margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.auth-right .features div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
}
.auth-right .features svg { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.auth-testimonial {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  margin-top: 40px;
}
.auth-testimonial p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.85); }
.auth-testimonial .author { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.auth-testimonial .avatar { width: 28px; height: 28px; border-radius: 14px; background: oklch(0.85 0.04 90); }
.auth-testimonial strong { font-weight: 600; }
.auth-testimonial small { color: rgba(255,255,255,0.5); }
.auth-footer { font-size: 11px; color: var(--muted); font-family: var(--mono); }

/* === Form fields === */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label, .field-label {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,70,200,0.12);
}
.form-input.mono { font-family: var(--mono); }

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.divider span {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Social buttons row */
.social-row { display: flex; gap: 10px; }

/* Toggle link */
.auth-toggle { margin-top: 32px; font-size: 13px; color: var(--muted); }
.auth-toggle a { color: var(--ink); border-bottom: 1px solid var(--ink); text-decoration: none; }

/* Alert */
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}
.alert.error { display: block; background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.2); color: #b91c1c; }
.alert.success { display: block; background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.2); color: #15803d; }

/* === App Page === */
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.app-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.usage-badge {
  color: var(--muted);
  font-family: var(--mono);
}
.usage-badge strong { color: var(--ink); font-weight: 600; }

/* Stepper */
.stepper {
  padding: 24px 40px 16px;
  display: flex;
  align-items: center;
}
.stepper-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.stepper-dot {
  width: 22px;
  height: 22px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
}
.stepper-dot.active { background: var(--accent); color: #fff; }
.stepper-dot.done { background: var(--accent); color: #fff; }
.stepper-dot.pending { background: rgba(0,0,0,0.06); color: var(--muted); }
.stepper-line { flex: 1; height: 1px; background: var(--line); margin: 0 16px; }
.stepper-label { font-weight: 400; color: var(--muted); }
.stepper-label.active { font-weight: 600; color: var(--ink); }

/* App Main */
.app-main {
  padding: 24px 40px 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.app-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.app-card-source { font-size: 11px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.5px; }
.app-card-file { font-size: 14px; font-weight: 600; margin-top: 2px; }
.app-card-status { font-size: 12px; color: oklch(0.55 0.15 142); font-family: var(--mono); display: inline-flex; align-items: center; gap: 6px; }

.fields-form { display: flex; flex-direction: column; gap: 14px; }
.fields-row { display: grid; gap: 10px; }
.fields-row-2 { grid-template-columns: 2fr 1fr; }
.fields-row-half { grid-template-columns: 1fr 1fr; }

.form-hint {
  margin-top: 24px;
  padding: 14px;
  background: rgba(0,0,0,0.025);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.form-hint strong { color: var(--ink); font-weight: 600; }

/* QR Result */
.qr-preview {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr-preview .label {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}
.qr-preview .qr-wrap {
  padding: 14px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.qr-preview .qr-wrap img { display: block; max-width: 200px; }
.qr-preview .qr-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  font-family: var(--mono);
  text-align: center;
}

/* Status */
.status { font-size: 13px; color: var(--muted); text-align: center; margin: 16px 0; }
.status.error { color: #b91c1c; }
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Responsive === */
@media (max-width: 768px) {
  .nav { padding: 14px 22px; }
  .nav-links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 22px 28px;
    gap: 32px;
  }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero-sub { font-size: 15px; margin-top: 18px; }
  .hero-checks { flex-wrap: wrap; gap: 16px; }
  .upload-card { min-height: auto; }
  .logo-bar { padding: 20px 22px; flex-wrap: wrap; gap: 12px; }
  .section { padding: 48px 22px; }
  .section h2 { font-size: 28px; letter-spacing: -0.8px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .step-card-header { margin-bottom: 20px; }
  .security-grid { grid-template-columns: 1fr; gap: 32px; }
  .security-cards { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 48px 22px; }
  .cta-banner h2 { font-size: 30px; }
  .footer { padding: 32px 22px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-right { display: none; }
  .auth-form-side { padding: 24px 22px; }
  .auth-form-wrap h1 { font-size: 28px; }
  .app-nav { padding: 14px 22px; }
  .stepper { padding: 16px 22px; }
  .app-main { grid-template-columns: 1fr; padding: 16px 22px 32px; }
}
