/*
 * softlaser mit Herz - Platzhalterseite.
 * Salbei-Palette und Schriften der Hauptseite; alles liegt auf dieser Domain,
 * es gibt keine externe Anfrage.
 */
@font-face {
  font-family: "Mulish";
  src: url("/fonts/mulish-latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Metrikgleiche Ersatzschriften, damit der Wechsel zur Webschrift nichts verschiebt. */
@font-face {
  font-family: "Mulish Fallback";
  src: local(Arial);
  ascent-override: 96.56%;
  descent-override: 24.02%;
  line-gap-override: 0%;
  size-adjust: 104.08%;
}

@font-face {
  font-family: "Nunito Fallback";
  src: local(Arial);
  ascent-override: 99.71%;
  descent-override: 34.82%;
  line-gap-override: 0%;
  size-adjust: 101.39%;
}

:root {
  --cream: #fbf6f0;
  --cream-soft: #fffdfb;
  --ink: #4a3d36;
  --muted: #6b5b51;
  --link: #526e76;
  --salbei: #7d9aa1;
  --teal: #6e8c95;
  --blush: #e3ebeb;
  --teal-soft: #dce6e7;
  --teal-deep: #3f5f68;

  --font-body: "Mulish", "Mulish Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Nunito", "Nunito Fallback", ui-sans-serif, system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--cream);
  background-image: radial-gradient(
    70% 55% at 50% 0%,
    color-mix(in oklab, var(--salbei) 22%, var(--cream)) 0%,
    var(--cream) 100%
  );
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--salbei);
  color: #fff;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--link);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.top {
  padding: 2rem 0 0;
  text-align: center;
}

.brand {
  display: inline-block;
  border-radius: 0.5rem;
}

.brand img {
  display: block;
  width: min(15rem, 70vw);
  height: auto;
}

main {
  flex: 1;
  padding: 3rem 0 2.5rem;
}

.hero {
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal-deep);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 6.5vw, 3rem);
  font-weight: 700;
}

.lead {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1875rem;
}

.themen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.themen li {
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 0.9375rem;
  font-weight: 600;
}

.kontakt {
  margin: 3rem auto 0;
  padding: 1.75rem 1.5rem;
  max-width: 30rem;
  border-radius: 1.5rem;
  background: var(--cream-soft);
  box-shadow: 0 24px 60px -32px rgba(74, 61, 54, 0.45);
  text-align: center;
}

.kontakt h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.kontakt p {
  margin: 0;
  color: var(--muted);
}

.kontakt a {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hinweis {
  max-width: 34rem;
  margin: 2.5rem auto 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.foot {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--blush);
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.foot p {
  margin: 0;
}

/* Rechtstexte */
.legal h1 {
  text-align: left;
  font-size: clamp(1.75rem, 5.5vw, 2.5rem);
}

.legal h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.legal p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.legal strong {
  color: var(--ink);
}

.legal .zurueck {
  margin: 2.5rem 0 0;
}

.stand {
  font-size: 0.9375rem;
}

/* Kleine, ruhige Bewegung: nur die Bausteine blenden nacheinander ein. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes einblenden {
    from {
      opacity: 0;
      transform: translateY(14px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  .reveal {
    animation: einblenden 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 110ms);
  }

  /* Die Reihenfolge steht in Klassen, nicht in style-Attributen: die CSP erlaubt kein Inline-Style. */
  .i0 {
    --i: 0;
  }

  .i1 {
    --i: 1;
  }

  .i2 {
    --i: 2;
  }

  .i3 {
    --i: 3;
  }

  .i5 {
    --i: 5;
  }

  .i6 {
    --i: 6;
  }

  .themen li {
    animation: einblenden 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 500ms;
  }

  .themen li:nth-child(2) {
    animation-delay: 590ms;
  }
}
