/* Linkseite klartag.app – eigene, kleine Gestaltung (Boutique: warmes Hell, Navy, Klartag-Blau).
   Schriften liegen lokal neben dieser Datei (linkpage/build.mjs ersetzt fraunces-7234ed86.woff2 / inter-3100e775.woff2 durch die Dateinamen). */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fraunces-7234ed86.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./inter-3100e775.woff2') format('woff2-variations');
}

:root {
  --bg: #f7f3ee;
  --bg-deep: #efe7dc;
  --paper: #fffdf9;
  --ink: #14213d;
  --ink-soft: #3f4a63;
  --muted: #5b6275;
  --accent: #2f6fde;
  --accent-deep: #2458b5;
  --accent-wash: rgba(47, 111, 222, 0.1);
  --line: rgba(20, 33, 61, 0.14);
  --line-soft: rgba(20, 33, 61, 0.08);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 46% at 50% 22%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 120% 70% at 50% 120%, var(--bg-deep), rgba(239, 231, 220, 0) 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.mark {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Kopfleiste ─────────────────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 0;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
}

.top--home {
  justify-content: flex-end;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 6px 0;
}

.home-link .mark {
  width: 30px;
}

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.6);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang:hover {
  border-color: rgba(20, 33, 61, 0.3);
  color: var(--ink);
}

/* ── Startseite ─────────────────────────────────────────────────────────── */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 12px var(--gutter) 40px;
}

.seal {
  position: relative;
  width: 108px;
  height: 108px;
  margin-top: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, var(--paper), rgba(255, 253, 249, 0.4) 70%);
}

.seal::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(20, 33, 61, 0.22);
}

.seal .mark {
  width: 52px;
  margin-top: -2px;
}

.brand {
  margin: 26px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--ink);
  /* Sperrung am Ende ausgleichen, damit das Wort optisch mittig sitzt */
  padding-inline-start: 0.46em;
}

.brand::before,
.brand::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.brand::before {
  margin-inline-end: 0.46em;
}

h1.tagline {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.6rem, 11.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1.tagline span {
  display: block;
}

h1.tagline .accent {
  color: var(--accent);
  font-weight: 380;
}

.rule {
  width: 56px;
  height: 1px;
  margin: 26px auto 22px;
  background: rgba(20, 33, 61, 0.28);
}

.lead {
  margin: 0;
  max-width: 30rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: balance;
}

.nb {
  white-space: nowrap;
}

.lead + .lead {
  margin-top: 10px;
}

.cta {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 23rem;
  min-height: 60px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 14px 28px -14px rgba(36, 88, 181, 0.75),
    0 3px 8px -4px rgba(20, 33, 61, 0.25);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.cta:hover {
  background: var(--accent-deep);
}

.cta:active {
  transform: translateY(1px);
}

.cta:focus-visible {
  outline: 3px solid rgba(47, 111, 222, 0.45);
  outline-offset: 3px;
  border-radius: 999px;
}

.cta svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.cta-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.facts {
  list-style: none;
  margin: 34px 0 0;
  padding: 6px 22px;
  width: 100%;
  max-width: 23rem;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.72);
  text-align: start;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-size: 0.93rem;
  color: var(--ink);
}

.facts li + li {
  border-top: 1px solid var(--line-soft);
}

.facts svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent);
}

.social {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 0.9rem;
}

.social a {
  color: var(--ink-soft);
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
}

/* ── Fußzeile ───────────────────────────────────────────────────────────── */

.foot {
  padding: 22px var(--gutter) calc(26px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
}

.foot nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.foot a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 2px;
}

.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot .dot {
  color: rgba(20, 33, 61, 0.3);
}

.foot p {
  margin: 6px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* ── Rechtstexte ────────────────────────────────────────────────────────── */

.doc {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 18px var(--gutter) 24px;
}

.doc-card {
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 30px 22px 26px;
  box-shadow: 0 24px 48px -36px rgba(20, 33, 61, 0.35);
}

.doc h1 {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.1rem, 8vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.doc .kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.doc section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.doc section:first-of-type {
  margin-top: 22px;
}

.doc h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.16rem;
  line-height: 1.35;
  color: var(--ink);
}

.doc p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.68;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  /* nur lange Wörter trennen („Verbraucherschlichtungsstelle“), nie „ei-ner“ */
  hyphenate-limit-chars: 12 5 5;
}

.doc p + p {
  margin-top: 12px;
}

.doc p.lines {
  line-height: 1.75;
}

.doc a {
  color: var(--accent-deep);
  text-underline-offset: 3px;
}

.doc .back {
  margin: 30px 0 0;
  text-align: center;
}

h1.tagline.tagline--small {
  font-size: clamp(2.1rem, 8.5vw, 3.2rem);
  text-wrap: balance;
}

.hero--plain {
  justify-content: center;
}

.back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.back a:hover {
  border-color: rgba(20, 33, 61, 0.3);
}

.back svg {
  width: 16px;
  height: 16px;
}

/* ── Größere Bildschirme ────────────────────────────────────────────────── */

@media (min-width: 720px) {
  .top {
    padding-top: calc(22px + env(safe-area-inset-top));
    padding-inline: 40px;
  }

  .hero {
    max-width: 48rem;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 24px;
  }

  .rule {
    margin: 24px auto 20px;
  }

  .cta {
    margin-top: 28px;
  }

  .facts {
    margin-top: 30px;
  }

  .foot {
    padding-top: 14px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .seal {
    width: 120px;
    height: 120px;
    margin-top: 0;
  }

  .seal .mark {
    width: 58px;
  }

  .brand {
    margin-top: 26px;
    font-size: 1rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .facts {
    max-width: none;
    width: auto;
    display: flex;
    padding: 0 6px;
    border-radius: 999px;
  }

  .facts li {
    padding: 12px 18px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .facts li + li {
    border-top: 0;
    border-inline-start: 1px solid var(--line-soft);
  }

  .doc {
    padding-top: 34px;
  }

  .doc-card {
    padding: 48px 56px 44px;
  }
}
