/*
  Gemeinsames Stylesheet aller Seiten.
  Marke wechseln: nur die Variablen im Block :root anpassen.
  Farben: Platzhalter bis zur Namenswahl.
  Schrift: Inter, selbst gehostet (assets/fonts, Lizenz OFL in assets/fonts/OFL.txt).
*/

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Markenfarben */
  --color-primary: #14201A;
  --color-secondary: #22332A;
  --color-accent: #C6F432;
  --color-accent-dark: #B2DE1F;
  --color-accent-text: #3F6B12;
  --color-text: #14201A;
  --color-text-light: #55625A;
  --color-bg: #F6F8F2;
  --color-bg-alt: #ECF1E3;
  --color-border: #D6DECB;
  --color-on-accent: #14201A;

  /* Schrift */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-body);

  /* Maße */
  --radius: 10px;
  --page-pad: 20px;
  --measure: 680px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-text);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--color-text);
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-accent-text);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}
h1 {
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.5rem);
  font-weight: 700;
  text-wrap: balance;
}
h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}
p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--page-pad));
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* Kopf: nur der Name, ruhig */
.site-header {
  border-bottom: 1px solid var(--color-bg-alt);
}
.site-header .wrap {
  height: 48px;
  display: flex;
  align-items: center;
}
.brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  text-decoration: none;
}
.brand img {
  display: block;
  height: 30px;
  width: auto;
}
.brand:hover {
  color: var(--color-primary);
}

/* Fuß */
.site-footer {
  flex-shrink: 0;
  margin-top: 4rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  font-size: 0.875rem;
  color: var(--color-text-light);
}
.site-footer .wrap {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}
.footer-links {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.footer-links a {
  color: var(--color-text);
  text-decoration: none;
  display: inline-block;
  padding: 0.35rem 0;
}
.footer-links a:hover {
  text-decoration: underline;
  color: var(--color-text);
}
.footer-note {
  margin: 0;
}

/* Eintragungsseite /check */
.check {
  padding-top: 1.25rem;
}
.page-wide .wrap {
  max-width: calc(1040px + 2 * var(--page-pad));
}
.check-grid {
  display: grid;
  gap: 2rem;
}
.check h1 {
  text-wrap: balance;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lead {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--color-text-light);
  margin: 0.75rem 0 1.1rem;
}
.benefits {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.benefits li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 0.96875rem;
  line-height: 1.45;
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}
.benefits li::after {
  content: "";
  position: absolute;
  left: 0.43rem;
  top: 0.36em;
  width: 0.32rem;
  height: 0.6rem;
  border: solid var(--color-accent-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Formular (Platzhalter bis zum Formular des Mail-Tools) */
.signup {
  max-width: 440px;
}
.signup form {
  margin: 0;
  display: grid;
  gap: 0.625rem;
}
.signup label.visually-hidden + input {
  margin: 0;
}
.field {
  width: 100%;
  height: 52px;
  padding: 0 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  appearance: none;
}
.field::placeholder {
  color: var(--color-text-light);
  opacity: 1;
}
.field:focus {
  border-color: var(--color-accent-text);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 122, 138, 0.18);
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: var(--color-on-accent);
  background: var(--color-accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(18, 48, 58, 0.2);
}
.cta:hover {
  background: var(--color-accent-dark);
  color: var(--color-on-accent);
}
.fineprint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-light);
}
.fineprint a {
  color: var(--color-text-light);
}

.cover {
  margin: 0;
  justify-self: center;
  width: 220px;
}
.cover img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(18, 48, 58, 0.12), 0 12px 32px rgba(18, 48, 58, 0.22);
}

@media (min-width: 860px) {
  .check {
    padding-top: 4.5rem;
  }
  .check-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 3.5rem;
    align-items: center;
  }
  .lead {
    font-size: 1.1875rem;
    margin: 1rem 0 1.5rem;
  }
  .benefits {
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }
  .benefits li {
    font-size: 1.0625rem;
  }
  .cover {
    width: 270px;
  }
  .check h1 {
    font-size: 2.5rem;
  }
}

/* Kurze Folgeseiten (bestaetigen, danke) */
.step {
  padding-top: 2.5rem;
}
.step h1 {
  margin-bottom: 1rem;
}
.page-narrow .wrap {
  max-width: calc(560px + 2 * var(--page-pad));
}
.step p {
  font-size: 1.0625rem;
}
.step .cta {
  width: auto;
  margin: 0.5rem 0 0.4rem;
}
.step .meta {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0 0 2rem;
}
.box {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.box > :last-child {
  margin-bottom: 0;
}
.box h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.box p {
  font-size: 1rem;
}
@media (min-width: 860px) {
  .step {
    padding-top: 5rem;
  }
}

/* Textseiten (Impressum, Datenschutz, Quellen) */
.doc {
  padding-top: 2rem;
}
.doc h1 {
  margin-bottom: 1rem;
}
.doc p,
.doc li {
  overflow-wrap: break-word;
}
.doc ul,
.doc ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.doc li {
  margin-bottom: 0.4rem;
}
.doc .intro {
  color: var(--color-text-light);
}
.draft-note {
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-alt);
  padding: 0.85rem 1rem;
  margin: 0 0 1.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9375rem;
}
.draft-note strong {
  color: var(--color-primary);
}
.sources li {
  margin-bottom: 0.75rem;
}
.sources .src-note {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-light);
}
.toc {
  list-style: none;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.toc a {
  display: inline-block;
  padding: 0.25rem 0;
}
dl.facts {
  margin: 0 0 1rem;
}
dl.facts dt {
  font-weight: 600;
  margin-top: 0.75rem;
}
dl.facts dd {
  margin: 0;
}

.br-wide {
  display: none;
}
@media (min-width: 1100px) {
  .br-wide {
    display: inline;
  }
}

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

/* Kontaktformular */
.kontakt { display: grid; gap: 0.5rem; max-width: 520px; margin: 1.5rem 0 0; }
.kontakt label { font-weight: 600; font-size: 0.9375rem; margin-top: 0.5rem; }
.kontakt textarea.field { height: auto; min-height: 150px; padding: 0.75rem 1rem; resize: vertical; line-height: 1.5; }
.kontakt .cta { margin-top: 0.75rem; }
textarea:focus-visible { outline: 3px solid var(--color-accent-text); outline-offset: 2px; }
