/* Fragment · one stylesheet for the page and the tool.
   Direction ("ICP and brand world.md"): the good tradesman among web designers.
   Paper, ink, one warm accent. Big numbers, short lines, phone first. */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f6f4ef;
  --paper-2: #efece5;
  --card: #fffefb;
  --ink: #171614;
  --ink-2: #4f4b44;
  --ink-3: #7a756c;
  --line: #e2ddd3;
  --line-2: #d3cdc1;
  --accent: #b23f17;
  --accent-ink: #ffffff;
  --accent-soft: #f6e6de;
  --ok: #2e6a46;
  --ok-soft: #e3efe6;
  --warn: #8a5a00;
  --warn-soft: #f6ecd7;
  --todo: #8a5a00;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  --fs-2xl: clamp(2.125rem, 1.4rem + 3.6vw, 3.75rem);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --gap: clamp(1rem, 0.6rem + 1.8vw, 1.75rem);
  --section: clamp(3.5rem, 2rem + 6vw, 7rem);
  --wrap: 72rem;
  --shadow: 0 1px 0 rgba(23, 22, 20, 0.04), 0 8px 24px -12px rgba(23, 22, 20, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; /* the sticky header (4rem) never covers a jumped-to heading */ }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 450 var(--fs-base) / 1.55 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; letter-spacing: -0.022em; line-height: 1.08; font-weight: 640; text-wrap: balance; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); letter-spacing: -0.018em; line-height: 1.15; }
h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; line-height: 1.25; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.lede { color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.5; max-width: 40rem; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.todo { color: var(--todo); background: var(--warn-soft); padding: 0 0.3em; border-radius: 4px; font-style: italic; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease); }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.mark { font-weight: 680; font-size: 1.1875rem; letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: baseline; gap: 0.08em; }
.mark::after { content: ''; width: 0.36em; height: 0.36em; background: var(--accent); border-radius: 2px; transform: translateY(-0.02em); }
.mark:hover { color: var(--ink); }
.mark { white-space: nowrap; }
@media (max-width: 22.5rem) { .mark { font-size: 1.0625rem; } .top__in { gap: 0.75rem; } }
.nav { display: flex; gap: 1.25rem; margin-left: auto; font-size: var(--fs-sm); }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.top__tel { font-size: var(--fs-sm); font-weight: 560; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4rem; }
.top__tel-icon { flex: none; }
/* Below the full header the number becomes a round tap-to-call button next to "Rückruf anfordern" (buyer test run 4, #63). */
@media (max-width: 68rem) {
  .top__tel { position: relative; order: 3; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--ink); }
  .top__tel:hover { background: var(--card); color: var(--ink); }
  .top__tel-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top__in .btn--sm { order: 2; }
  .top__tel { flex: none; }
  .top__in { gap: 0.75rem; }
  .nav { margin-right: 0.75rem; }
}
@media (max-width: 24rem) { .top__btn-more { display: none; } }
@media (max-width: 52rem) { .nav { display: none; } .top__in .btn { margin-left: auto; } }

/* Buttons */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.25rem; border-radius: var(--r-pill);
  border: 1px solid var(--b); background: var(--b); color: var(--paper);
  font: inherit; font-weight: 580; font-size: var(--fs-sm); line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover { color: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--accent { --b: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--ink); background: var(--card); }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; white-space: nowrap; } /* the header button stays one line down to 320 px (buyer test run 3) */
@media (max-width: 22.5rem) { .top__in .btn--sm { padding-inline: 0.875rem; } }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; box-shadow: none; }
.arrow::after { content: '→'; transition: transform 0.15s var(--ease); }
a:hover > .arrow::after, .arrow:hover::after { transform: translateX(3px); }

/* Cards and pills */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.75rem; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 540; color: var(--ink-2); }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); flex: none; }

/* Forms */
.field { display: grid; gap: 0.35rem; }
.field label { font-size: var(--fs-sm); font-weight: 560; }
.input, .textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 0.8rem 0.95rem; min-height: 3rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.textarea { min-height: 7rem; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field__err { color: var(--accent); font-size: var(--fs-xs); min-height: 0; }
.check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--fs-sm); }
.foot__in { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: baseline; justify-content: space-between; }
.foot__who { display: grid; gap: 0.35rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

/* Legal pages */
.legal { max-width: 44rem; }
.legal h1 { font-size: var(--fs-xl); margin-bottom: 1.5rem; }
.legal h2 { font-size: var(--fs-lg); margin: 2rem 0 0.5rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal dl { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.4rem 1.25rem; margin: 0; }
.legal dt { color: var(--ink-3); }
.legal dd { margin: 0; }
@media (max-width: 30rem) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 0.5rem; } }
