/* Fawni-Website: gleiche Farben und Schriften wie die App (src/ui/theme.ts). */
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/Nunito_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/Nunito_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/Fredoka_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --cream: #fff6ec;
  --cream-deep: #f1dfc8;
  --peach: #ffc9a6;
  --peach-edge: #e9956a;
  --mint-mist: #eaf9f2;
  --lavender-mist: #f3eeff;
  --blush-mist: #fff0f4;
  --text: #4a3b32;
  --text-soft: #7a6558;
  --link: #b4552a;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font:
    400 17px/1.6 'Nunito',
    system-ui,
    sans-serif;
}

a {
  color: var(--link);
}

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

h1,
h2,
h3 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 12px;
}

.wrap {
  width: min(1040px, 100% - 48px);
  margin-inline: auto;
}

/* Kopfzeile */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font:
    600 24px 'Fredoka',
    sans-serif;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.lang {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--cream-deep);
  color: var(--text);
}

/* Startbild: Fawni steht rechts auf der Wiese, Text sitzt im freien Himmel links */
.hero {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 1024 / 500;
  background: url('/img/hero.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-text {
  width: 52%;
  padding: 0 0 48px 48px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 12px;
}

.hero p {
  font-size: clamp(17px, 1.8vw, 20px);
  margin: 0 0 24px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 20px;
  border-radius: 16px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  line-height: 1.25;
  box-shadow: 0 4px 0 #2e241e;
}

.store small {
  font-size: 12px;
  opacity: 0.8;
}

.store strong {
  font-size: 17px;
}

.store[aria-disabled='true'] {
  background: #fff;
  color: var(--text);
  border: 2px solid var(--cream-deep);
  box-shadow: none;
}

/* Drei Karten */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.card {
  border-radius: var(--radius);
  padding: 24px;
}

.card:nth-child(1) {
  background: var(--blush-mist);
}
.card:nth-child(2) {
  background: var(--mint-mist);
}
.card:nth-child(3) {
  background: var(--lavender-mist);
}

.card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 8px;
}

.card h2 {
  font-size: 22px;
}

.card p {
  margin: 0;
  color: var(--text-soft);
}

/* Fusszeile */
.foot {
  border-top: 2px solid var(--cream-deep);
  margin-top: 40px;
  padding: 24px 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
  color: var(--text-soft);
}

.foot a {
  color: var(--text-soft);
}

/* Rechtstexte */
.legal {
  max-width: 760px;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 48px;
  margin: 16px auto 0;
}

.legal h1 {
  font-size: 34px;
}

.legal h2 {
  font-size: 22px;
  margin-top: 32px;
}

.legal h3 {
  font-size: 18px;
  margin-top: 20px;
}

.legal ul {
  padding-left: 22px;
}

.legal address {
  font-style: normal;
}

.legal .switch {
  margin-bottom: 24px;
  font-weight: 700;
}

.legal .en {
  border-top: 2px dashed var(--cream-deep);
  margin-top: 48px;
  padding-top: 32px;
}

.todo {
  background: #fff3c4;
  border-radius: 4px;
  padding: 0 4px;
}

@media (max-width: 760px) {
  .hero {
    aspect-ratio: auto;
    min-height: 620px;
    align-items: flex-start;
    /* Text oben auf zartem Himmel, Fawni unten auf der Wiese */
    background:
      url('/img/hero.jpg') 85% bottom / 190% auto no-repeat,
      linear-gradient(#fbe1dc, #e6f3ea);
  }

  .hero-text {
    width: 100%;
    padding: 32px 24px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .legal {
    padding: 28px 22px;
  }
}
