/* Solobeleg – solobeleg.de
   Plain CSS, no build step. Light and dark follow the system setting. */

:root {
  color-scheme: light dark;

  --paper: #f5f2ea;
  --surface: #fffdf8;
  --ink: #17212b;
  --muted: #56616c;
  --line: #d9d3c4;
  --accent: #0b6652;
  --accent-soft: #dcebe4;
  --todo-bg: #ffe9a8;
  --todo-ink: #4a3500;
  --shadow: 0 1px 2px rgb(23 33 43 / 0.06), 0 12px 32px -12px rgb(23 33 43 / 0.22);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f151b;
    --surface: #172029;
    --ink: #ebe7dc;
    --muted: #a2acb5;
    --line: #2b3742;
    --accent: #62cfae;
    --accent-soft: #16332c;
    --todo-bg: #5c4700;
    --todo-ink: #ffeebb;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

@media (max-width: 40rem) {
  body {
    hyphens: auto;
    -webkit-hyphenate-limit-before: 4;
    -webkit-hyphenate-limit-after: 4;
    hyphenate-limit-chars: 10 4 4;
  }
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
  hyphens: manual;
}

h1 {
  font-size: clamp(2.1rem, 1.2rem + 4.2vw, 3.7rem);
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  border-radius: 0.4rem;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

/* Header */

.site-header {
  padding-block: 1.1rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.4rem;
  display: inline-block;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Hero */

.hero {
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
}

.hero .wrap {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 58rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  margin-top: 1.4rem;
  max-width: 34em;
}

.lead strong {
  color: var(--ink);
  font-weight: 600;
}

.soon {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 0.5rem 0.5rem 0;
  max-width: 34em;
}

.soon strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.soon span {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Invoice illustration */

.sheet-figure {
  margin: 0;
  position: relative;
  justify-self: center;
  width: min(100%, 27rem);
}

.sheet-figure > div {
  position: relative;
  padding-bottom: 4.6rem;
}

.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 2.6rem;
  font-size: 0.82rem;
  line-height: 1.45;
  transform: rotate(-1.2deg);
  hyphens: none;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.sheet-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
}

.sheet-meta {
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sheet-to {
  margin-block: 0.9rem;
  color: var(--muted);
}

.sheet-to b {
  color: var(--ink);
  font-weight: 600;
}

.sheet-rows {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0;
  font-variant-numeric: tabular-nums;
}

.sheet-rows > :nth-child(even) {
  text-align: right;
  padding-left: 1rem;
}

.sheet-rows .sep {
  border-top: 1px solid var(--line);
  margin-top: 0.3rem;
  padding-top: 0.55rem;
}

.sheet-rows .dim {
  color: var(--muted);
}

.sheet-rows .total {
  font-weight: 700;
  font-size: 0.98rem;
}

.xml-card {
  position: absolute;
  right: -0.4rem;
  bottom: 0;
  width: min(78%, 19rem);
  background: var(--ink);
  color: var(--paper);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  padding: 0.7rem 0.9rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
  transform: rotate(1.5deg);
  hyphens: none;
  overflow: hidden;
  white-space: nowrap;
}

.xml-card b {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.xml-card b::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #62cfae;
}

@media (prefers-color-scheme: dark) {
  .xml-card {
    background: #05090d;
    color: #ebe7dc;
    border: 1px solid var(--line);
  }
}

.xml-card i {
  font-style: normal;
  opacity: 0.6;
}

.sheet-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Sections */

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Features */

.features {
  display: grid;
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 46rem) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.features li {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}

.features h3 {
  margin-bottom: 0.5rem;
}

.features p {
  color: var(--muted);
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 2.2rem 2rem;
  border-left: 2px solid var(--line);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 0.35rem;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}

.timeline li.past::before {
  background: var(--accent);
}

.timeline time {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: lining-nums;
}

.timeline .who {
  display: block;
  font-weight: 600;
  margin-block: 0.5rem 0.3rem;
}

.timeline p {
  color: var(--muted);
}

@media (min-width: 54rem) {
  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline li {
    border-left: 0;
    border-top: 2px solid var(--line);
    padding: 1.6rem 2rem 0 0;
  }

  .timeline li::before {
    left: 0;
    top: -0.5rem;
  }
}

.note {
  margin-top: 2.2rem;
  max-width: 46rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Comparison */

.compare {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.compare th,
.compare td {
  padding: 0.9rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  font-family: var(--serif);
  font-size: 1.1rem;
  border-bottom: 2px solid var(--ink);
}

.compare tbody th {
  font-weight: 600;
  width: 26%;
  padding-left: 0;
}

.compare td {
  color: var(--muted);
}

.compare td.us {
  color: var(--ink);
  background: var(--accent-soft);
}

.compare thead th.us {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 0.5rem 0.5rem 0 0;
}

@media (max-width: 40rem) {
  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: auto;
  }

  .compare tr {
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--line);
  }

  .compare tbody th,
  .compare td {
    border: 0;
    padding: 0;
  }

  .compare tbody th {
    width: auto;
    font-family: var(--serif);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    hyphens: manual;
  }

  .compare td {
    padding: 0.55rem 0.8rem;
    border-radius: 0.4rem;
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .compare td.us::before {
    color: var(--accent);
  }
}

/* FAQ */

.faq {
  max-width: 46rem;
}

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

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

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.05rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  hyphens: manual;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details > div {
  padding-bottom: 1.3rem;
  color: var(--muted);
}

.faq details > div p + p {
  margin-top: 0.8rem;
}

/* Closing */

.closing {
  text-align: center;
}

.closing h2 {
  max-width: 22em;
  margin-inline: auto;
}

.closing p {
  color: var(--muted);
  max-width: 36em;
  margin: 1.1rem auto 0;
  font-size: 1.1rem;
}

.platforms {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
}

.platforms li {
  border: 1px solid var(--line);
  border-radius: 99rem;
  padding: 0.3rem 1rem;
  font-size: 0.95rem;
  background: var(--surface);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 3rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--muted);
}

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

.site-footer .disclaimer {
  flex-basis: 100%;
  max-width: 50rem;
  font-size: 0.85rem;
}

/* Legal pages and 404 */

.prose {
  max-width: 44rem;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
}

.prose h1 {
  font-size: clamp(2rem, 1.4rem + 2.5vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.7rem;
}

.prose h3 {
  margin: 1.6rem 0 0.4rem;
}

.prose p,
.prose ul,
.prose address {
  margin-block: 0 0.9rem;
}

.prose address {
  font-style: normal;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.3rem;
}

.prose .stand {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

mark.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  padding: 0.05em 0.35em;
  border-radius: 0.25rem;
  font-weight: 600;
  hyphens: none;
}

.draft {
  border: 2px dashed var(--todo-ink);
  background: var(--todo-bg);
  color: var(--todo-ink);
  padding: 0.9rem 1.1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

@media print {
  .site-nav,
  .skip {
    display: none;
  }
}
