/*
 * Shared shell for the public surface of achordia.com (epic 1376).
 *
 * Four pages use this: the root, /imprint, /privacy and /contact. It is a real
 * file rather than four copies of an inline <style> block because the legal
 * pages will be edited by hand for years and drift between copies is the
 * predictable failure.
 *
 * SAME-ORIGIN ON PURPOSE. No web font, no CDN, no @import. A page carrying a
 * statutory notice must not need a consent story to render, so the font stack is
 * the system stack and every byte here is served from our own domain.
 */

:root {
  --ink: #2b2320;
  --muted: #7a6f68;
  --bg: #fffaf6;
  --bg2: #fdeee6;
  --hair: #efe2d8;
  --accent: #ef1e4c;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(120% 120% at 50% 0%, var(--bg) 0%, var(--bg2) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ── Layouts ──────────────────────────────────────────────────────────────── */

/* The root: one centred block, nothing below the fold. */
main.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

/* Long-form: the imprint, the privacy policy. Measure capped for reading. */
main.doc {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

/* The contact form sits between the two — long-form chrome, narrower measure. */
main.form {
  flex: 1;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

/* ── Type ─────────────────────────────────────────────────────────────────── */

.logo { display: block; }
main.center .logo { margin: 0 auto 1.75rem; }
main.doc .logo, main.form .logo { margin: 0 0 1.5rem; }

h1 {
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}
main.center h1 { font-size: clamp(2.6rem, 7vw, 3.6rem); margin: 0; }
main.doc h1, main.form h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); }

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

p { margin: 0 0 1rem; line-height: 1.65; }
main.doc p, main.form p { color: var(--ink); }
p.muted, .updated { color: var(--muted); }
p.lede { color: var(--muted); margin-bottom: 2rem; }

/* The divider under the wordmark on the root. */
.rule {
  width: 56px;
  height: 4px;
  margin: 22px auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef1e4c 0%, #fd8212 100%);
}

/*
 * The B2B marking (sc-1379). Not decoration: in a dispute B2C is assumed by
 * default, and the mere possibility of a consumer buying can pull the site into
 * the scope of the accessibility act and the consumer-protection stack. It has
 * to be legible and above the fold, so it is not styled down into fine print.
 */
.b2b {
  margin: 1.5rem auto 0;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.updated { font-size: 0.9rem; margin: 0 0 2rem; }

address {
  font-style: normal;
  line-height: 1.65;
  margin: 0 0 1rem;
}

dl { margin: 0 0 1rem; }
dt { font-weight: 600; margin: 1rem 0 0.25rem; }
dd { margin: 0 0 0.5rem; line-height: 1.65; }

ul { margin: 0 0 1rem; padding-left: 1.25rem; line-height: 1.65; }
li { margin: 0 0 0.375rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

/*
 * Present on every page. SS 5 DDG wants the imprint leicht erkennbar and
 * unmittelbar erreichbar — one click from anywhere public, with stable link
 * text. Do not collapse these into an icon or a menu.
 */
footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--hair);
  margin-top: 2rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  margin: 0 0 0.75rem;
}

footer p { margin: 0; }

/* ── Form controls ────────────────────────────────────────────────────────── */

label {
  display: block;
  margin: 0 0 0.375rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.field { margin: 0 0 1.25rem; }

input, textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 8px;
}

input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

textarea { min-height: 10rem; resize: vertical; }

button {
  padding: 0.7rem 1.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

button:hover { filter: brightness(1.08); }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/*
 * Honeypot. Hidden from people in every way a person could perceive it, and left
 * in the DOM for form-filling bots to find. Off-canvas rather than display:none,
 * because some bots skip fields they can tell are not rendered.
 */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
