/* Gemeinsame Grundlage für Startseite und Blog: Schriften, Farben, Navigation, Fußzeile.
   Wer hier etwas ändert, prüft beide. */
/* Schriften liegen lokal: keine Anfrage an Google, passend zum Datenschutzversprechen. */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces_600SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces_600SemiBold_Italic.ttf") format("truetype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/assets/fonts/PlusJakartaSans_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/assets/fonts/PlusJakartaSans_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/assets/fonts/PlusJakartaSans_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* Farben aus app/src/design/tokens.ts. Ein Akzent (Terrakotta), dazu die
   weichen Flächentöne der App für die Kacheln. */
:root {
  --papier: #FAF5F2;
  --flaeche: #FFFFFF;
  --flaeche-leise: #F0E8E4;
  --tinte: #2B2422;
  --leise: #6F605B;
  --linie: #E8DDD8;
  --akzent: #C2502A;
  --akzent-text: #9D3920;
  --akzent-weich: #F7E4DD;
  --pfirsich: #F7ECE0;
  --mauve: #EFE6F0;
  --salbei: #E7F0E8;
  --knopf: #2B2422;
  --knopf-text: #FAF5F2;
  --schatten: 157 57 32;
  --radius: 20px;
  --radius-klein: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #1C1614;
    --flaeche: #261E1B;
    --flaeche-leise: #2C2320;
    --tinte: #F2E7DD;
    --leise: #B8A69C;
    --linie: #3A2E29;
    --akzent: #E08A6A;
    --akzent-text: #E8997B;
    --akzent-weich: #3A2621;
    --pfirsich: #33291F;
    --mauve: #2E2530;
    --salbei: #232B24;
    --knopf: #F2E7DD;
    --knopf-text: #1C1614;
    --schatten: 0 0 0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 400 16px/1.65 "Jakarta", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
h3 { font-family: "Jakarta", system-ui, sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
.leise { color: var(--leise); }

/* Icons aus Tabler (MIT) und Simple Icons (CC0), als Maske, damit sie die Textfarbe erben. */
.icon { display: inline-block; width: 22px; height: 22px; background: currentColor; flex: none;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--papier) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.unten { border-bottom-color: var(--linie); }
.nav .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marke { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 24px; text-decoration: none; letter-spacing: -0.01em; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 600; }
.nav ul a { text-decoration: none; color: var(--leise); transition: color .2s; }
.nav ul a:hover { color: var(--tinte); }

/* Store-Knöpfe */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 196px; padding: 11px 22px 11px 18px;
  background: var(--knopf); color: var(--knopf-text); border-radius: var(--radius-klein); text-decoration: none;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; white-space: nowrap; }
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgb(var(--schatten) / .45); }
.store:active { transform: translateY(0) scale(.98); }
.store .icon { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; opacity: .8; letter-spacing: .02em; }
.store b { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.store.bald { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .55; cursor: default; }
.store.bald:hover, .store.bald:active { transform: none; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Fußzeile */
footer { border-top: 1px solid var(--linie); padding: 40px 0 48px; font-size: 14px; color: var(--leise); }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
footer .hinweis { max-width: 56ch; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
footer nav a { text-decoration: none; font-weight: 600; color: var(--tinte); }
footer nav a:hover { color: var(--akzent-text); }
footer .copy { grid-column: 1 / -1; }

@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .stores { flex-direction: column; }
  .store { width: 100%; justify-content: center; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .store, .store:hover { transition: none; transform: none; }
}
