/* Rechnung2XML — Option A (Apple-style) design system
   SF font stack, ink #1d1d1f, tiles #f5f5f7 / #fbfbfd, link blue
   #0066cc, pill buttons #0071e3 (radius 980px), 18px card radii,
   sticky translucent header, light grey footer.
   Same class names as before — presentation only. */

:root {
  --ink: #1d1d1f;
  --slate: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --link: #0066cc;
  --blue: #0071e3;
  --blue-dark: #0060c9;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --bg: #fff;
  --surface: #fff;
  --tile: #f5f5f7;
  --tile-light: #fbfbfd;
  --ok-bg: #e9f7ee;  --ok-line: #8fce9f;  --ok-ink: #14532d;
  --err-bg: #fdeeee; --err-line: #e5a3a3; --err-ink: #7a1f1f;
  --warn-bg: #fff7e0; --warn-line: #e3c766;
  --radius: 18px;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, .05);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, .10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 22px; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 2px; }

/* ---------- header / footer ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 251, 253, .85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px 28px; flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 10px; min-height: 48px;
}
.logo {
  color: var(--ink); font-weight: 700; font-size: .95rem;
  letter-spacing: -.01em; text-decoration: none;
  display: inline-flex; align-items: center;
}
.logo:hover { color: var(--ink); text-decoration: none; }
.logo img { display: block; height: 30px; width: auto; }
.site-header nav { display: flex; gap: 6px 26px; flex-wrap: wrap; align-items: center; }
.site-header nav a {
  color: var(--ink); opacity: .85; text-decoration: none; font-weight: 400; font-size: .8rem;
  padding: 4px 0;
}
.site-header nav a:hover { color: var(--ink); opacity: 1; text-decoration: none; }
.site-header nav .nav-logout { display: inline-flex; margin: 0; }
.site-header nav .nav-logout button {
  background: none; border: none;
  color: var(--ink); opacity: .85; font: inherit; font-weight: 400; font-size: .8rem;
  padding: 4px 0; cursor: pointer;
}
.site-header nav .nav-logout button:hover { opacity: 1; }

main.wrap { padding: 56px 22px 84px; }

.site-footer {
  background: var(--tile); color: var(--muted); font-size: .8rem;
  margin-top: 12px;
}
.site-footer a { color: var(--slate); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 10px 20px;
  flex-wrap: wrap; padding-top: 20px; padding-bottom: 4px;
}
.footer-inner:last-child { padding-bottom: 30px; }
.footer-links { border-top: 1px solid var(--line); font-size: .78rem; }

/* ---------- typography ---------- */

h1 { font-size: 2.5rem; line-height: 1.12; letter-spacing: -.015em; font-weight: 700;
     color: var(--ink); margin: 0 0 18px; }
h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.015em; font-weight: 700;
     color: var(--ink); margin: 52px 0 16px; }
h3 { font-size: 1.08rem; color: var(--ink); margin: 0 0 8px; }
p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: .86em; background: var(--tile); border: 1px solid var(--line-soft);
  border-radius: 5px; padding: 1px 6px;
}
.small { font-size: .9rem; color: var(--muted); }
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 18px; }
.tool-intro { font-size: 1.13rem; line-height: 1.55; color: var(--slate);
              max-width: 46em; margin-bottom: 22px; }

/* ---------- hero (Apple tile) ---------- */

.hero {
  background: var(--tile-light);
  color: var(--ink); border-radius: var(--radius); padding: 76px 60px 64px;
  text-align: center;
}
.hero h1 { color: var(--ink); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700;
           line-height: 1.08; letter-spacing: -.015em; margin: 0 auto 20px; max-width: 16em; }
.hero p.lead { font-size: 1.3rem; line-height: 1.45; color: var(--ink);
              max-width: 40em; margin: 0 auto 8px; }

/* hero product visual: PDF document -> XML document */
.visual { margin: 54px auto 0; max-width: 760px; display: flex; align-items: center; justify-content: center; gap: 26px; }
.doc { width: 300px; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.16); padding: 28px 26px; text-align: left; }
.doc .dh { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-bottom: 14px; }
.doc .row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.doc .row.total { border-bottom: none; font-weight: 700; font-size: 16px; padding-top: 12px; }
.doc.pdf .dh { color: #c0392b; }
.doc.xml { background: #161617; }
.doc.xml .dh { color: #30d158; }
.doc.xml .row { color: #d6f5df; border-bottom-color: #2c2c2e; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.doc.xml .row.total { color: #30d158; }
.visual .arrow { font-size: 34px; color: var(--faint); font-weight: 300; }
.badge-ok { display: inline-block; margin-top: 22px; font-size: 13px; font-weight: 600; color: #0a7d2c; background: #e6f7ec; border-radius: 980px; padding: 6px 14px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 12px 22px; border-radius: 980px; text-decoration: none;
  border: 1px solid var(--blue); font-size: .95rem; font-weight: 500;
  font-family: inherit; cursor: pointer; line-height: 1.35;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; text-decoration: none; }
.btn.secondary { background: #e8e8ed; color: var(--ink); border-color: #e8e8ed; }
.btn.secondary:hover { background: #dcdce0; color: var(--ink); border-color: #dcdce0; }
.btn:disabled { opacity: .5; cursor: default; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; align-items: center; }
.hero .cta-row { justify-content: center; }

/* ---------- cards, steps, service box ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.card {
  background: var(--tile-light); border: 1px solid rgba(0, 0, 0, .04);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
}
.grid .card { transition: box-shadow .15s ease, transform .15s ease; }
.grid .card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card p:last-child { margin-bottom: 0; }

.card.price .amount { font-size: 2.6rem; font-weight: 700; letter-spacing: -.02em;
                      color: var(--ink); line-height: 1.1; margin-top: 6px; }
.card.price .per { color: var(--muted); font-size: .82rem; font-weight: 600;
                   text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }

.steps { display: flex; gap: 18px; flex-wrap: wrap; margin: 22px 0; }
.step {
  flex: 1 1 230px; background: var(--surface); border: 1px solid rgba(0, 0, 0, .04);
  border-radius: var(--radius);
  padding: 26px 26px; box-shadow: var(--shadow-sm);
}
.step b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 1.03rem; }

.not-box {
  background: var(--tile); border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px 26px; align-self: start;
}
.not-box h3 { margin-top: 0; }
.not-box p { margin: 0; color: var(--slate); }

/* ---------- summary box & fact strip (landing) ---------- */

.kurz-box {
  background: var(--tile); border-radius: var(--radius);
  padding: 30px 34px; margin-top: 26px;
}
.kurz-box h2 { margin: 0 0 10px; font-size: 1.25rem; }
.kurz-box p { margin: 0; color: var(--slate); max-width: 62em; }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px; margin-top: 26px;
}
.fact { border-top: 2px solid var(--line); padding-top: 14px; }
.fact .num { display: block; font-size: 1.85rem; font-weight: 700;
             letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.fact .cap { display: block; margin-top: 5px; font-size: .92rem; color: var(--muted); }

/* ---------- notices & result boxes ---------- */

.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-left: 5px solid #dfa400; border-radius: var(--radius); padding: 20px 24px;
}
.error-box {
  background: var(--err-bg); border: 1px solid var(--err-line);
  border-left: 5px solid #cf3d3d; border-radius: var(--radius);
  padding: 17px 24px; margin-bottom: 22px; color: var(--err-ink);
}
.error-box ul { margin-bottom: 0; }
.ki-marker {
  display: inline-block; margin-top: 5px; font-size: .78rem; font-weight: 700;
  color: #7a5200; background: #fdf3d7; border: 1px solid #dfa400;
  border-radius: 999px; padding: 2px 9px;
}
.ki-corr button {
  font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  border-radius: 980px; padding: 3px 12px; margin-left: 6px;
}
.ok-box {
  background: var(--ok-bg); border: 1px solid var(--ok-line);
  border-left: 5px solid #2e9e4f; border-radius: var(--radius);
  padding: 22px 26px;
}
.ok-box h3 { color: var(--ok-ink); }
.fail-box {
  background: var(--err-bg); border: 1px solid var(--err-line);
  border-left: 5px solid #cf3d3d; border-radius: var(--radius);
  padding: 22px 26px;
}
.fail-box h3 { color: var(--err-ink); }
.ok-box p:last-child, .fail-box p:last-child { margin-bottom: 0; }

.finding {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-left: 4px solid #cf3d3d; border-radius: 12px;
  padding: 15px 20px; margin: 14px 0; box-shadow: var(--shadow-sm);
}
.finding.warn { border-left-color: #dfa400; }
.finding .code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: .78rem; color: var(--muted);
}
.finding details { margin-top: 6px; color: var(--slate); font-size: .9rem; }
.finding details summary { cursor: pointer; font-weight: 600; }

/* ---------- forms ---------- */

form.upload, .panel {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm);
}
fieldset {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); margin: 0 0 22px; padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
legend { font-weight: 700; color: var(--ink); font-size: 1.02rem; padding: 0 8px; }
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        gap: 16px; margin-bottom: 16px; }
.frow:last-child { margin-bottom: 0; }
label { display: block; font-size: .88rem; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: .97rem; font-family: inherit; background: var(--surface); color: var(--ink);
}
input[type=file] {
  width: 100%; padding: 13px; border: 1px dashed var(--line); border-radius: 10px;
  font-size: .97rem; font-family: inherit; background: var(--tile-light); color: var(--ink);
}
input:focus, select:focus {
  border-color: var(--blue); outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .25);
}

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.items { width: 100%; border-collapse: collapse; }
table.items th {
  text-align: left; font-size: .82rem; font-weight: 700; color: var(--slate);
  background: var(--tile); padding: 10px 12px; border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
table.items td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.items td input, table.items td select { padding: 8px 10px; }
table.fristen td, table.fristen th { padding: 13px 16px; }

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

.faq details {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 18px 24px; margin: 14px 0; box-shadow: var(--shadow-sm);
}
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; }
.faq details p { margin: 12px 0 2px; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  main.wrap { padding: 36px 16px 60px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 24px 40px; }
  .visual { flex-direction: column; }
  .visual .arrow { transform: rotate(90deg); }
  .doc { width: 100%; max-width: 340px; }
  .kurz-box { padding: 24px 22px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  form.upload, .panel { padding: 24px; }
  fieldset { padding: 18px; }
  h1 { font-size: 1.9rem; }
  h2 { margin-top: 40px; }
  .footer-inner { flex-direction: column; }
}

/* ---------- trust bar, sections, services, pricing ---------- */

.trustbar {
  background: var(--tile); color: var(--slate);
  font-size: .85rem; line-height: 1.45; text-align: center;
  padding: 9px 0; border-bottom: 1px solid rgba(0, 0, 0, .04);
}
.trustbar strong { color: var(--ink); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .13em;
  font-size: .76rem; font-weight: 700; color: #b64400;
  margin: 72px 0 0;
}
.eyebrow + h2 { margin-top: 10px; }

.hero .checks {
  list-style: none; padding: 26px 0 0; margin: 30px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: center;
  color: var(--slate); font-size: .97rem;
}
.hero .checks li { position: relative; padding-left: 25px; margin: 0; }
.hero .checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #0a7d2c; font-weight: 700;
}

.card.svc { display: flex; flex-direction: column; }
.card.svc .btn { margin-top: auto; align-self: flex-start; }
.card.svc ul.feat { margin-bottom: 22px; }

ul.feat { list-style: none; padding: 0; margin: 0 0 18px; }
ul.feat li { position: relative; padding-left: 25px; margin-bottom: 8px; }
ul.feat li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #0a7d2c; font-weight: 700;
}

.card.price { display: flex; flex-direction: column; position: relative; }
.card.price ul.feat { margin-bottom: 22px; }
.card.price .btn { width: 100%; text-align: center; }
.card.price form { margin-top: 10px; }
.card.price form:first-of-type { margin-top: auto; }
.card.price > .btn { margin-top: auto; }
.card.price > p.small { margin: 12px 0 0; }
.card.price.featured { background: #000; color: #f5f5f7; border-color: #000; box-shadow: var(--shadow-md); }
.card.price.featured h3 { color: #f5f5f7; }
.card.price.featured .amount { color: #f5f5f7; }
.card.price.featured .per { color: #a1a1a6; }
.card.price.featured ul.feat li { color: #d2d2d7; }
.card.price.featured .btn.secondary { background: #333336; color: #f5f5f7; border-color: #333336; }
.card.price.featured .btn.secondary:hover { background: #424245; border-color: #424245; }
.badge {
  position: absolute; top: -13px; right: 20px;
  background: var(--blue); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 999px;
}
