/* rechnung42.de - Markenfarben wie in der App (Styles/Theme.xaml) */
:root {
  --navy: #0B2341;
  --navy-2: #173A5E;
  --green: #0A933D;
  --green-dark: #077A32;
  --bg: #FFFFFF;
  --soft: #F4F6F9;
  --line: #E0E4EA;
  --text: #1A2430;
  --muted: #5F6B7A;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(11, 35, 65, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.accent { color: var(--green); }
.fine { font-size: .88rem; color: var(--muted); }

/* Knoepfe */
.btn {
  display: inline-block; padding: .7em 1.3em; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-sm { padding: .45em 1em; font-size: .95rem; }
.btn-block { display: block; text-align: center; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(10, 147, 61, .45); outline-offset: 2px; }

/* Kopf */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { width: 190px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--green); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); padding: 72px 0 64px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--green-dark); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: #34404F; max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.cta-center { justify-content: center; }

.hero-visual { position: relative; padding: 18px 24px 30px; }
.paper {
  background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 26px 26px 22px;
  transform: rotate(1.5deg); border: 1px solid var(--line); font-size: .82rem;
}
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.paper-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.paper-logo img { width: 26px; }
.paper-title { text-align: right; font-weight: 800; color: var(--navy); letter-spacing: .08em; }
.paper-title small { display: block; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.paper-addr span, .paper-foot span { display: block; height: 7px; border-radius: 4px; background: var(--line); margin: 6px 0; width: 46%; }
.paper-addr span.short, .paper-foot span.short { width: 30%; }
.paper-items { width: 100%; border-collapse: collapse; margin: 18px 0 10px; }
.paper-items td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.paper-items td:nth-child(2) { text-align: center; color: var(--muted); width: 3em; }
.paper-items td:last-child { text-align: right; white-space: nowrap; }
.paper-sum { display: grid; grid-template-columns: 1fr auto; gap: 3px 0; margin: 10px 0 0 45%; }
.paper-sum span:nth-child(even), .paper-sum strong:last-child { text-align: right; padding-left: 18px; }
.paper-sum strong { border-top: 2px solid var(--navy); padding-top: 4px; color: var(--navy); }
.paper-foot { margin-top: 18px; }
.paper-foot span { width: 100%; height: 5px; }

.chip {
  position: absolute; background: var(--navy); color: #fff; border-radius: 999px; padding: .45em 1em;
  font-size: .82rem; font-weight: 600; box-shadow: 0 8px 22px rgba(11, 35, 65, .25); white-space: nowrap;
}
.chip b { color: #6EE7A0; margin-right: .3em; }
.chip-xml { left: 0; bottom: 6px; }
.chip-norm { right: 4px; top: 0; background: var(--green); }

/* Leiste */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.strip-inner div { display: flex; flex-direction: column; }
.strip-inner strong { color: var(--navy); font-size: 1.05rem; }
.strip-inner span { color: var(--muted); font-size: .92rem; }

/* Abschnitte */
.section { padding: 84px 0; }
.section-soft { background: var(--soft); }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 42em; margin-bottom: 40px; }
.center .section-lead, .section-lead.center { margin-left: auto; margin-right: auto; }
#preis h2, #preis .section-lead { text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.feature svg {
  width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: rgba(10, 147, 61, .1);
  stroke: var(--green-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px;
}
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

.section-dark { background: var(--navy); color: #D5DEEA; }
.section-dark h2 { color: #fff; }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.section-dark strong { color: #fff; }
.section-dark code { color: #6EE7A0; }
.checklist-dark li { border-bottom-color: var(--line); }

/* Preis */
.price-card {
  max-width: 480px; margin: 0 auto 26px; background: #fff; border: 2px solid var(--green);
  border-radius: 18px; padding: 34px; box-shadow: var(--shadow);
}
.price-head { text-align: center; border-bottom: 1px solid var(--line); margin-bottom: 18px; padding-bottom: 14px; }
.price { margin: .2em 0 .3em; }
.price .amount { font-size: 3rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.price .period { color: var(--muted); margin-left: .4em; }
.tax { font-size: .85rem; color: var(--muted); margin: 0; }
.price-card .btn-block { margin: 24px 0 12px; }

/* Fragen */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; color: var(--navy); position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.4rem; color: var(--green); }
details[open] summary::after { content: "–"; }
details p { padding: 0 20px 6px; color: #34404F; }

.final { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }

/* Fuss */
.foot { background: var(--navy); color: #AFC0D4; font-size: .92rem; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.foot p { margin: 0; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: #6EE7A0; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Schmale Bildschirme */
@media (max-width: 900px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 48px; }
  .hero-visual { max-width: 460px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .brand img { width: 150px; }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta .btn { flex: 1 1 100%; text-align: center; }
  .price-card { padding: 24px 20px; }
  .paper { padding: 18px; font-size: .74rem; }
  .paper-sum { margin-left: 30%; }
  .hero-visual { padding: 18px 8px 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
