/* The pages of accessdiff-shopware.tenhatch.com (home in German and English, guide, help, privacy, terms,
   accessibility). Every colour pair is measured by the accessibility checks in tests/e2e/site.spec.mjs. As VoltMeld's,
   in AccessDiff's blue. */

:root {
  --bg: #ffffff;
  --text: #0f1b33;
  --muted: #45506a;
  --line: #6b7590;
  --link: #1d4ed8;
  --focus: #1d4ed8;
  --box: #eef3fe;
  --button: #1d4ed8;
  --button-text: #ffffff;
  --error: #b91c1c;
  --ok: #166534;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --text: #f1f5f9;
    --muted: #cbd5e1;
    --line: #94a3b8;
    --link: #93c5fd;
    --focus: #bfdbfe;
    --box: #15213d;
    --button: #93c5fd;
    --button-text: #0b1220;
    --error: #fca5a5;
    --ok: #86efac;
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    'Segoe UI',
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    'Helvetica Neue',
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

header.site a {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  min-height: 24px;
}

header.site a.lang {
  margin-left: auto;
  font-size: 16px;
  font-weight: 600;
  color: var(--link);
  text-decoration: underline;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 32px 0 8px;
}

h3 {
  font-size: 18px;
  margin: 20px 0 6px;
}

a {
  color: var(--link);
}

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

.lede {
  font-size: 19px;
}

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

.box {
  background: var(--box);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
}

ul.plain {
  padding-left: 20px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid var(--button);
  border-radius: 8px;
  background: var(--button);
  color: var(--button-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary,
button.secondary {
  background: transparent;
  color: var(--link);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.plan {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.plan h3 {
  margin-top: 0;
}

.price {
  font-size: 26px;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  vertical-align: top;
}

form label {
  display: block;
  font-weight: 600;
  margin: 12px 0 4px;
}

form label.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

input[type='email'],
input[type='text'] {
  width: 100%;
  max-width: 420px;
  min-height: 44px;
  padding: 8px 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

input[type='radio'],
input[type='checkbox'] {
  flex-shrink: 0;
  width: 24px;
  min-width: 24px;
  height: 24px;
  accent-color: var(--button);
}

fieldset {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px 12px;
  margin: 12px 0;
}

legend {
  font-weight: 700;
  padding: 0 4px;
}

.error {
  color: var(--error);
  font-weight: 600;
}

.ok {
  color: var(--ok);
  font-weight: 600;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer.site {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer.site nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

h2.in-box {
  margin-top: 0;
}

nav.toc ul {
  margin: 8px 0 16px;
}

nav.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}

.table-wrap table {
  margin: 0;
}

caption {
  text-align: left;
  font-weight: 600;
  padding: 0 6px 6px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}
