/* ==========================================================================
   Belegwelt – Styles
   Tinte / Prüfgrün / Papier. Mobile first. Breakpoints: 640 px, 960 px.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --tinte: #17191B;
  --pruefgruen: #0F9654;
  --pruefgruen-dunkel: #0B7A43;
  --papier: #F4F1EA;
  --papier-dunkel: #E9E5DB;
  --weiss: #FFFFFF;
  --text: #17191B;
  --text-2: #4F5358;
  --text-3: #5F6368;
  --linie: #DED9CF;

  --font: "Bricolage Grotesque", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fw-text: 450;
  --fw-bold: 700;

  --radius-s: 12px;
  --radius-m: 16px;
  --max-w: 1120px;
  --rand: 20px;
  --abschnitt: 64px;
  --header-h: 72px;
}

@media (min-width: 960px) {
  :root {
    --rand: 40px;
    --abschnitt: 96px;
  }
}

/* --------------------------------------------------------------------------
   Basis
   -------------------------------------------------------------------------- */

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

html {
  font-family: var(--font);
  font-optical-sizing: auto;
  color: var(--text);
  background: var(--papier);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  font-weight: var(--fw-text);
}

@media (min-width: 960px) {
  body {
    font-size: 18px;
  }
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: 36px;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

@media (min-width: 960px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 22px;
  }
}

p,
ul,
ol {
  margin: 0;
}

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

a {
  color: inherit;
}

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.wrap {
  width: min(100% - 2 * var(--rand), var(--max-w));
  margin-inline: auto;
}

.sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  background: var(--tinte);
  color: var(--weiss);
  font-weight: var(--fw-bold);
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

/* Label: klein, Versalien, 0,1 em Spationierung.
   Grün auf hellem Grund: Prüfgrün dunkel, damit 12 px ≥ 4,5:1 erreichen. */
.label {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pruefgruen-dunkel);
}

.intro {
  max-width: 60ch;
  margin-top: 16px;
  color: var(--text-2);
}

.abschnitt {
  padding-block: var(--abschnitt);
}

.bg-weiss {
  background: var(--weiss);
}

.bg-papier {
  background: var(--papier);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  font-weight: var(--fw-bold);
  font-size: 19px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn--primaer {
  background: var(--tinte);
  border-color: var(--tinte);
  color: var(--weiss);
}

.btn--primaer:hover {
  background: #2C2F32;
  border-color: #2C2F32;
}

.btn--sekundaer {
  background: transparent;
  border-color: var(--tinte);
  color: var(--tinte);
}

.btn--sekundaer:hover {
  background: var(--weiss);
}

.btn--wa {
  background: var(--pruefgruen);
  border-color: var(--pruefgruen);
  color: var(--weiss);
}

.btn--wa:hover {
  background: var(--pruefgruen-dunkel);
  border-color: var(--pruefgruen-dunkel);
}

.btn--header {
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--papier);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  border-bottom-color: var(--linie);
}

.header__zeile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  margin-right: auto;
  border-radius: 4px;
}

.logo img {
  height: 34px;
  width: auto;
}

.nav__liste {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
}

.nav__liste a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-s);
  font-weight: var(--fw-bold);
  font-size: 17px;
  color: var(--tinte);
  text-decoration: none;
}

.nav__liste a:hover {
  color: var(--pruefgruen-dunkel);
}

.menu-btn {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  font: inherit;
  font-weight: var(--fw-bold);
  font-size: 17px;
  color: var(--tinte);
  cursor: pointer;
}

@media (max-width: 959.98px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--papier);
    border-bottom: 1px solid var(--linie);
  }

  .nav.is-open {
    display: block;
  }

  .nav__liste {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--rand) 16px;
  }

  .nav__liste li + li {
    border-top: 1px solid var(--linie);
  }

  .nav__liste a {
    min-height: 52px;
    padding: 0 8px;
    font-size: 18px;
  }
}

@media (min-width: 960px) {
  .header__zeile {
    gap: 16px;
  }

  .logo img {
    height: 40px;
  }

  .menu-btn {
    display: none;
  }
}

/* Sehr schmale Geräte (< 360 px): Header-Zeile bleibt einzeilig, Logo unverzerrt. */
@media (max-width: 359.98px) {
  .header__zeile {
    gap: 8px;
  }

  .logo img {
    height: 28px;
  }

  .btn--header {
    padding: 0 12px;
    font-size: 17px;
  }

  .menu-btn {
    padding: 0 6px;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-block: 32px var(--abschnitt);
}

.hero__raster {
  display: grid;
  gap: 32px;
}

.hero__foto {
  order: -1;
}

.hero__foto img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-s);
  box-shadow: 0 24px 60px -28px rgba(23, 25, 27, 0.35);
}

.hero__ueberzeile {
  margin-bottom: 16px;
  font-weight: var(--fw-bold);
  font-size: 16px;
  color: var(--pruefgruen-dunkel);
}

.hero__lead {
  max-width: 34ch;
  margin-top: 20px;
}

.hero__aktionen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.hero__aktionen .btn {
  width: 100%;
}

.hero__region {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-3);
}

@media (min-width: 640px) {
  .hero__aktionen {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__aktionen .btn {
    width: auto;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-block: var(--abschnitt);
  }

  .hero__raster {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 64px;
  }

  .hero__foto {
    order: 0;
  }

  .hero__lead {
    margin-top: 24px;
  }

  .hero__aktionen {
    margin-top: 36px;
  }
}

/* --------------------------------------------------------------------------
   Leistungen
   -------------------------------------------------------------------------- */

.karten {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.karte {
  padding: 28px;
  border-radius: var(--radius-m);
  background: var(--papier);
}

.karte__nr {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.karte h3 {
  margin-bottom: 10px;
}

.karte p {
  color: var(--text-2);
}

.hinweis {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 32px;
  color: var(--text-2);
}

.hinweis img {
  flex: none;
  height: 22px;
  width: auto;
  margin-top: 3px;
}

@media (min-width: 640px) {
  .karten {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .karten {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
  }

  .hinweis {
    margin-top: 40px;
  }
}

/* --------------------------------------------------------------------------
   Ablauf
   -------------------------------------------------------------------------- */

.schritte {
  display: grid;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.schritt {
  padding: 28px 0;
  border-top: 1px solid var(--linie);
}

.schritt:first-child {
  padding-top: 8px;
  border-top: 0;
}

.schritt:last-child {
  padding-bottom: 0;
}

.schritt__ziffer {
  display: block;
  margin-bottom: 16px;
  font-size: 36px;
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--pruefgruen);
}

.schritt h3 {
  margin-bottom: 10px;
}

.schritt p {
  color: var(--text-2);
}

@media (min-width: 960px) {
  .schritte {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 48px;
  }

  .schritt,
  .schritt:first-child,
  .schritt:last-child {
    padding: 0 32px;
    border-top: 0;
    border-left: 1px solid var(--linie);
  }

  .schritt:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .schritt:last-child {
    padding-right: 0;
  }

  .schritt__ziffer {
    margin-bottom: 24px;
    font-size: 56px;
  }
}

/* --------------------------------------------------------------------------
   Über mich
   -------------------------------------------------------------------------- */

.ueber {
  max-width: 60ch;
  margin-inline: auto;
}

.ueber h2 + p {
  margin-top: 16px;
}

.fakten {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.fakten li {
  position: relative;
  padding-left: 34px;
}

.fakten li::before {
  content: "";
  position: absolute;
  top: 0.38em;
  left: 0;
  width: 22px;
  height: 16px;
  background: url("assets/belegwelt-signet.svg") no-repeat center / contain;
}

/* --------------------------------------------------------------------------
   Kontakt (Tinte, invers)
   -------------------------------------------------------------------------- */

.kontakt {
  background: var(--tinte);
  color: var(--weiss);
}

.kontakt .label {
  color: var(--pruefgruen);
}

.kontakt__intro {
  max-width: 60ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.kontakt__flaechen {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.kontakt__karte {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-m);
  color: var(--weiss);
  text-decoration: none;
}

.kontakt__karte:hover {
  background: var(--pruefgruen);
  border-color: var(--pruefgruen);
}

.kontakt__label {
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.kontakt__karte:hover .kontakt__label {
  color: rgba(255, 255, 255, 0.9);
}

.kontakt__wert {
  font-size: 22px;
  font-weight: var(--fw-bold);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.kontakt__aktion {
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 960px) {
  .kontakt__flaechen {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
  }
}

/* --------------------------------------------------------------------------
   Footer (Tinte)
   -------------------------------------------------------------------------- */

.footer {
  padding-block: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--tinte);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.footer__zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer__marke {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.footer__marke a {
  display: inline-flex;
  border-radius: 4px;
}

.footer__marke img {
  height: 34px;
  width: auto;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--weiss);
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__claim {
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Rechtsseiten
   -------------------------------------------------------------------------- */

.rechts {
  max-width: 68ch;
  padding-block: 32px var(--abschnitt);
}

.zurueck {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: var(--fw-bold);
  text-decoration: none;
}

.zurueck:hover {
  color: var(--pruefgruen-dunkel);
}

.rechts h1 {
  margin-top: 16px;
}

.rechts h2 {
  margin-top: 40px;
  font-size: 24px;
}

.rechts p {
  margin-top: 16px;
  hyphens: auto;
}

.rechts a:not(.zurueck) {
  color: var(--tinte);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rechts a:not(.zurueck):hover {
  color: var(--pruefgruen-dunkel);
}

.offen {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--papier-dunkel);
  color: inherit;
}

@media (min-width: 960px) {
  .rechts {
    padding-block: 48px var(--abschnitt);
  }
}
