/* salathe.net – Salathe Webservices. Ruhig, gross, klar. Kein JavaScript, keine Fremdschriften. */

:root {
  color-scheme: light dark;
  --grund: #fbfbfd;
  --flaeche: #f2f2f5;
  --text: #1d1d1f;
  --leise: #6e6e73;
  --linie: #d9d9de;
  --akzent: #4a3ae0;
  --akzent-text: #ffffff;
  --dunkel-grund: #000000;
  --dunkel-text: #f5f5f7;
  --dunkel-leise: #a1a1a6;
  --dunkel-akzent: #a99fff;
  --leiste: rgba(251, 251, 253, 0.78);
  --schatten: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08);
  --rund-gross: 28px;
  --rund: 18px;
  --breite: 62rem;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #000000;
    --flaeche: #161617;
    --text: #f5f5f7;
    --leise: #a1a1a6;
    --linie: #333336;
    --akzent: #a99fff;
    --akzent-text: #0b0820;
    --dunkel-grund: #161617;
    --leiste: rgba(0, 0, 0, 0.72);
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}

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

a {
  color: var(--akzent);
  text-underline-offset: 0.18em;
}

a:focus-visible,
main:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.sprung {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--grund);
  border-radius: 10px;
}

.sprung:focus {
  top: 0.75rem;
}

.vorschau-band {
  margin: 0;
  padding: 0.35rem 1rem;
  background: var(--akzent);
  color: var(--akzent-text);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ---------- Wortmarke «salathe.» ---------- */
.wortmarke {
  font-weight: 750;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.wortmarke .punkt {
  display: inline-block;
  width: 0.24em;
  height: 0.24em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--akzent);
}

/* ---------- Leiste oben ---------- */
.leiste {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--leiste);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--linie) 70%, transparent);
}

.leiste-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.marke {
  color: var(--text);
  text-decoration: none;
  font-size: 1.3rem;
  margin-right: auto;
}

.haupt ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.haupt a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
}

.haupt a:hover {
  opacity: 1;
  color: var(--akzent);
}

.sprachen {
  display: flex;
}

.sprachwahl {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0 0.7rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  color: var(--leise);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.sprachwahl:hover {
  color: var(--text);
  border-color: var(--leise);
}

.globus {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

@media (max-width: 26rem) {
  .leiste-innen {
    gap: 0.75rem;
  }

  .haupt ul {
    gap: 0.9rem;
  }

  .haupt a {
    font-size: 0.85rem;
  }
}

@media (max-width: 22rem) {
  .haupt {
    display: none;
  }
}

/* ---------- Bausteine ---------- */
.vorzeile {
  color: var(--leise);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.einleitung {
  color: var(--leise);
  font-size: clamp(1.15rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.4;
  max-width: 40rem;
  margin: 1.25rem auto 0;
}

.knoepfe {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--akzent);
  color: var(--akzent-text);
  font-weight: 600;
  text-decoration: none;
}

.knopf:hover {
  filter: brightness(1.08);
}

.knopf.zweit {
  background: none;
  color: var(--akzent);
  padding: 0 0.25rem;
}

.knopf.zweit:hover {
  text-decoration: underline;
  filter: none;
}

.mehr {
  color: var(--akzent);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
}

a.mehr:hover {
  text-decoration: underline;
}

.pfeil {
  display: inline-block;
  transition: transform 0.2s ease;
}

a:hover .pfeil {
  transform: translateX(3px);
}

/* ---------- Startseite ---------- */
.held {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 8.5rem) 1rem clamp(3.5rem, 9vw, 6.5rem);
  text-align: center;
}

.held h1 {
  font-size: clamp(2.75rem, 1.6rem + 6vw, 5.75rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.held .h1b {
  color: var(--leise);
}

/* Bewegung nur scroll-gesteuert (kein zeitgesteuertes Einblenden: wo Animationen nicht laufen, bliebe Text unsichtbar) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .einblenden {
      animation: auftauchen linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }

    /* Grosse Flaechen nicht ausblenden (halbdurchsichtiges Schwarz wirkt grau), nur leicht heranwachsen */
    .kachel.einblenden {
      animation-name: heranwachsen;
    }
  }
}

@keyframes heranwachsen {
  from {
    transform: scale(0.96);
  }

  to {
    transform: none;
  }
}

@keyframes auftauchen {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }

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

.kachel {
  max-width: 76rem;
  margin: 0 0.75rem;
  border-radius: var(--rund-gross);
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 4rem) 0;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 78rem) {
  .kachel {
    margin: 0 auto;
  }
}

.kachel.dunkel {
  background: var(--dunkel-grund);
  color: var(--dunkel-text);
  --akzent: var(--dunkel-akzent);
  --leise: var(--dunkel-leise);
}

.kachel h2 {
  font-size: clamp(2.5rem, 1.6rem + 4.5vw, 4.5rem);
  letter-spacing: -0.035em;
}

.kachel .vorzeile {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.claim {
  font-size: clamp(1.25rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  max-width: 36rem;
  margin: 1rem auto 0;
}

.plattform {
  color: var(--leise);
  margin: 0.75rem 0 1.25rem;
}

.kachel-bild {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  max-width: 62rem;
}

.kachel-bild img {
  border-radius: var(--rund) var(--rund) 0 0;
  box-shadow: 0 -8px 40px rgba(122, 107, 255, 0.18);
}

.weitere {
  padding: 1.5rem 0 1.75rem;
  color: var(--leise);
  font-size: 0.95rem;
}

.abschnitt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 8rem) 1rem clamp(3rem, 8vw, 5rem);
  text-align: center;
}

.abschnitt h2 {
  font-size: clamp(2.25rem, 1.4rem + 4vw, 4rem);
  letter-spacing: -0.035em;
  max-width: 48rem;
  margin: 0 auto;
}

.punkte {
  list-style: none;
  margin: clamp(3rem, 7vw, 4.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  text-align: left;
}

.punkte li {
  border-top: 1px solid var(--linie);
  padding-top: 1.25rem;
}

.punkte h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.punkte p {
  color: var(--leise);
}

.ref-titel {
  font-size: 1.5rem;
  margin: clamp(4rem, 9vw, 6rem) 0 1.75rem;
  text-align: left;
}

.referenzen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem 2rem;
  text-align: left;
}

.referenz a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text);
  text-decoration: none;
}

.ref-bild {
  display: block;
  margin-bottom: 0.9rem;
  border-radius: var(--rund);
  overflow: hidden;
  border: 1px solid var(--linie);
  box-shadow: var(--schatten);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.referenz a:hover .ref-bild {
  transform: translateY(-4px);
}

.ref-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ref-text {
  color: var(--leise);
}

.referenz .mehr {
  margin-top: 0.25rem;
  font-size: 1rem;
}

.referenz a:hover .mehr {
  text-decoration: underline;
}

@media (min-width: 48rem) {
  .punkte {
    grid-template-columns: repeat(3, 1fr);
  }

  .referenzen {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kachel.kontakt {
  background: var(--flaeche);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

@media (min-width: 78rem) {
  .kachel.kontakt {
    margin-bottom: 5rem;
  }
}

.kontakt .einleitung {
  margin-bottom: 2rem;
}

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */
.lesespalte {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 1rem clamp(3.5rem, 8vw, 5.5rem);
}

.lesespalte h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
}

.lesespalte h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 2.25rem 0 0.5rem;
}

.lesespalte p + p {
  margin-top: 0.75rem;
}

.stand {
  color: var(--leise);
}

.entwurf {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: #fff3c4;
  color: #5c4500;
  font-size: 0.85rem;
  font-weight: 600;
}

.luecke {
  background: #fff3c4;
  color: #5c4500;
  padding: 0 0.25rem;
  border-radius: 4px;
}

/* ---------- Fusszeile ---------- */
.fuss {
  background: var(--flaeche);
  color: var(--leise);
  font-size: 0.8rem;
  border-top: 1px solid var(--linie);
}

.fuss-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1.75rem 1rem 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
}

.fuss-marke {
  color: var(--text);
  font-size: 1.05rem;
}

.fuss ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

.fuss a {
  color: var(--text);
  text-decoration: none;
}

.fuss a:hover,
.fuss a[aria-current] {
  text-decoration: underline;
}

.marken {
  flex-basis: 100%;
}

/* ---------- Entwurf: Logo-Vorschlag ---------- */
.logo-entwurf {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 1rem 4rem;
}

.logo-entwurf h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  letter-spacing: -0.035em;
}

.logo-entwurf > .einleitung {
  margin: 1rem 0 0;
}

.variante {
  margin-top: 3.5rem;
}

.variante h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.variante > p {
  color: var(--leise);
  max-width: 44rem;
  margin-top: 1rem;
}

.etikett {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--akzent);
  color: var(--akzent-text);
  font-size: 0.75rem;
  letter-spacing: 0;
  vertical-align: middle;
}

.logo-flaechen {
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .logo-flaechen {
    grid-template-columns: 1fr 1fr;
  }
}

.logo-flaeche {
  min-height: 11rem;
  border-radius: var(--rund);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  border: 1px solid var(--linie);
}

.logo-flaeche.hell {
  background: #ffffff;
  color: #1d1d1f;
  --akzent: #4a3ae0;
  --leise: #6e6e73;
}

.logo-flaeche.dunkel {
  background: #000000;
  color: #f5f5f7;
  --akzent: #a99fff;
  --leise: #a1a1a6;
}

.wortmarke.gross {
  font-size: clamp(3rem, 2rem + 4vw, 4.5rem);
}

.logo-b {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.b-oben {
  font-size: clamp(2.5rem, 1.8rem + 3vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -0.04em;
}

.b-unten {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--leise);
}

.logo-c {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.c-kreis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border: 3px solid currentColor;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 750;
  line-height: 1;
  padding-bottom: 0.2rem;
}

.c-wort {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.icon-reihe {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
}

.icon-reihe img {
  display: inline-block;
}

.app-fuss {
  min-height: 5rem;
  font-size: 0.95rem;
  gap: 0.35rem;
}

.app-fuss .wortmarke {
  font-size: 1.1rem;
}
