/* TastyShelf – Landing Page
   Idee: Die Seite ist ein Rezeptregal. Ein Regalbrett trägt das iPhone, an der Brettkante
   kleben die Tags als geprägte Etiketten. Alles andere bleibt ruhig. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/BigShouldersDisplay-variable.woff2") format("woff2");
  font-weight: 700 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --tomato: #e8590c;       /* Akzent der App */
  --tomato-deep: #b93d07;  /* für Text und Flächen mit weißer Schrift */
  --basil: #1d4434;        /* Text, Regalbrett, Etiketten */
  --basil-top: #2d6249;    /* Oberseite des Bretts */
  --basil-soft: #4b6c5e;   /* Nebentext */
  --tile: #eaf0ec;         /* ruhige Flächen */
  --paper: #ffffff;
  --butter: #ffe6a6;       /* nur für fehlende Angaben im Impressum */

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-text: "Atkinson Hyperlegible", system-ui, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --page: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--basil);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--tomato-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--basil); }

:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3.25rem, 9vw, 6rem); }
h2 { font-size: clamp(2.5rem, 6vw, 4rem); }
h3 {
  font-size: 1.3125rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
p { margin: 0 0 1rem; max-width: var(--measure); }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--basil);
  color: var(--paper);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* Kopfzeile */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--basil);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: clamp(0.75rem, 3vw, 2rem); }
.site-nav a {
  color: var(--basil);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}
.site-nav a:hover { color: var(--tomato-deep); text-decoration: underline; }

/* Startfläche */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: var(--gutter);
  padding-top: clamp(1.5rem, 5vw, 4rem);
}
.hero-copy { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero-copy h1 { margin-bottom: 1.5rem; }
.lede { font-size: 1.3125rem; line-height: 1.55; color: var(--basil); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}
.soon {
  display: inline-flex;
  flex-direction: column;
  padding: 0.7rem 1.25rem 0.75rem;
  border-radius: 14px;
  background: var(--basil);
  color: var(--paper);
  line-height: 1.2;
}
.soon small { font-size: 0.8125rem; opacity: 0.8; }
.soon strong { font-size: 1.125rem; }
.hero-actions a { font-weight: 700; }

.hero-device {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Das Regal: Brettoberseite, Kante mit Etiketten */

.shelf { position: relative; }
.shelf-top {
  height: 14px;
  background: var(--basil-top);
}
.shelf-edge {
  background: var(--basil);
  padding: 1.1rem 0 1.4rem;
  overflow: hidden;
}
/* Schatten, den das Brett auf die Fläche darunter wirft */
.shelf::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 22px;
  background: linear-gradient(rgba(15, 36, 27, 0.28), rgba(15, 36, 27, 0));
  pointer-events: none;
}
.labels {
  display: flex;
  gap: 1.1rem;
  flex-wrap: nowrap;
  justify-content: center;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
}
.dymo {
  --r: -1deg;
  flex: none;
  display: inline-block;
  padding: 0.35rem 0.8rem 0.3rem;
  border-radius: 3px;
  background: var(--tomato-deep);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(var(--r));
}
.dymo.ink { background: #0f241b; }
.dymo.cream { background: #f4efe2; color: var(--basil); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 -1px 0 rgba(0, 0, 0, 0.15); }

@media (prefers-reduced-motion: no-preference) {
  .labels .dymo {
    animation: stick 520ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
    animation-delay: calc(350ms + var(--i, 0) * 90ms);
  }
  @keyframes stick {
    from { opacity: 0; transform: translateY(-14px) rotate(calc(var(--r) - 7deg)); }
    to { opacity: 1; transform: rotate(var(--r)); }
  }
}

/* iPhone-Ansicht (nachgebaut, keine Grafik) */

.phone {
  width: min(300px, 78vw);
  aspect-ratio: 300 / 610;
  border: 10px solid #182c23;
  border-bottom-width: 12px;
  border-radius: 46px;
  background: #fff;
  overflow: hidden;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  color: #1c1c1e;
  font-size: 12px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}
.ph-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 4px;
  font-weight: 600;
  font-size: 11px;
}
.ph-island { width: 72px; height: 20px; border-radius: 12px; background: #182c23; }
.ph-body { flex: 1; padding: 6px 12px 0; overflow: hidden; }
.ph-title { text-align: center; font-weight: 600; font-size: 13px; margin: 2px 0 10px; }
.ph-profile { display: flex; gap: 10px; align-items: center; }
.ph-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ffb36b, var(--tomato));
  color: #fff; font-weight: 700; font-size: 18px;
}
.ph-name { font-weight: 700; font-size: 14px; }
.ph-handle { color: #8e8e93; font-size: 11px; }
.ph-stats { display: flex; gap: 9px; margin-top: 3px; font-size: 9.5px; color: #8e8e93; white-space: nowrap; }
.ph-stats b { color: #1c1c1e; font-size: 11px; }
.ph-search {
  margin: 10px 0 8px; padding: 8px 10px; border-radius: 10px;
  background: #eeeef3; color: #8e8e93;
}
.ph-row { display: flex; gap: 6px; align-items: center; }
.ph-seg { flex: 1; display: flex; background: #eeeef3; border-radius: 8px; padding: 2px; }
.ph-seg span { flex: 1; text-align: center; padding: 4px 0; border-radius: 6px; font-size: 10.5px; }
.ph-seg .on { background: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.ph-toggle { display: flex; background: #eeeef3; border-radius: 8px; padding: 2px; }
.ph-toggle span { padding: 3px 7px; border-radius: 6px; font-size: 11px; color: #8e8e93; }
.ph-toggle .on { background: #fff; color: var(--tomato); }
.ph-chips { display: flex; gap: 5px; margin: 8px 0 10px; white-space: nowrap; overflow: hidden; }
.ph-chip { padding: 4px 9px; border-radius: 999px; background: #f0f0f4; font-size: 10.5px; }
.ph-chip.on { background: var(--tomato); color: #fff; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-pic {
  aspect-ratio: 1; border-radius: 11px;
  display: grid; place-items: center; font-size: 40px;
}
.ph-cap { font-weight: 600; font-size: 11px; margin-top: 4px; }
.ph-meta { color: #8e8e93; font-size: 9.5px; display: flex; gap: 8px; }
.ph-tabs {
  display: flex; justify-content: space-around; align-items: center;
  margin: 6px 10px 10px; padding: 8px 0; border-radius: 999px;
  background: #f4f4f6; font-size: 9.5px; color: #3a3a3c;
}
.ph-tabs .on { color: var(--tomato); font-weight: 600; }
.peach { background: #ffe8cc; }
.mint { background: #d3f9d8; }
.rose { background: #ffe3e3; }
.sky { background: #e7f5ff; }

/* Funktionen */

.features {
  background: var(--tile);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.features h2 { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}
.feature + .feature { border-top: 2px solid rgba(29, 68, 52, 0.12); }
.feature:nth-of-type(even) .feature-text { order: 2; }
.feature-text h3 { font-size: 1.5rem; }
.feature-text p { color: var(--basil); }

/* Ausschnitte aus der App */
.snip {
  justify-self: center;
  width: min(100%, 22rem);
  background: #fff;
  border-radius: 22px;
  padding: 1.1rem;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  font-size: 15px;
  color: #1c1c1e;
  border: 2px solid rgba(29, 68, 52, 0.1);
}
.snip-search {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: #eeeef3;
}
.snip-search .muted { color: #8e8e93; }
.snip-result { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.snip-result .ph-pic { width: 52px; font-size: 24px; border-radius: 12px; }
.snip-result b { display: block; font-size: 15px; }
.snip-result small { color: #8e8e93; font-size: 12px; }
.snip-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.snip-chips span { padding: 6px 12px; border-radius: 999px; background: #f0f0f4; font-size: 14px; }
.snip-chips .on { background: var(--tomato); color: #fff; }
.snip-seg { display: flex; background: #eeeef3; border-radius: 10px; padding: 3px; }
.snip-seg span { flex: 1; text-align: center; padding: 7px 0; border-radius: 8px; }
.snip-seg .on { background: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.snip-note { color: #6c6c70; font-size: 13px; margin: 10px 2px 0; }
.snip-comment { display: flex; gap: 10px; }
.snip-comment .ph-avatar { width: 34px; height: 34px; font-size: 13px; flex: none; }
.snip-comment b { font-size: 14px; }
.snip-comment small { color: #8e8e93; font-size: 12px; margin-left: 4px; }
.snip-comment p { margin: 2px 0 0; font-size: 14px; }
.snip-actions { display: flex; gap: 18px; margin-top: 14px; font-size: 16px; }
.snip-actions .liked { color: #e5383b; }

/* So geht's */

.steps-section { padding: clamp(4rem, 9vw, 7rem) 0; }
.steps-section h2 { margin-bottom: clamp(2rem, 5vw, 3rem); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--tomato);
  margin-bottom: 0.5rem;
}

/* Fragen */

.faq { background: var(--tile); padding: clamp(4rem, 9vw, 7rem) 0; }
.faq h2 { margin-bottom: 2rem; }
.faq-list { max-width: 46rem; }
.faq details { border-top: 2px solid rgba(29, 68, 52, 0.15); }
.faq details:last-child { border-bottom: 2px solid rgba(29, 68, 52, 0.15); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 700;
  font-size: 1.1875rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.8;
  color: var(--tomato-deep);
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; }

/* Fußzeile */

.site-footer {
  background: var(--basil);
  color: #fff;
  padding: 3rem 0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  align-items: flex-start;
}
.site-footer .brand { color: #fff; }
.site-footer p { margin: 0.75rem 0 0; color: rgba(255, 255, 255, 0.8); font-size: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.site-footer a { color: #fff; font-weight: 700; }
.site-footer a:hover { color: var(--butter); }

/* Rechtliche Seiten */

/* Nur oben und unten, damit der seitliche Rand von .wrap erhalten bleibt. */
.legal { padding-top: clamp(2rem, 6vw, 4rem); padding-bottom: clamp(4rem, 9vw, 6rem); }
.legal h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); margin-bottom: 2rem; }
.legal h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 2.5rem 0 0.75rem; }
.legal p, .legal ul { max-width: 42rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.35rem; }
.draft-note {
  max-width: 42rem;
  background: var(--butter);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
mark.todo {
  background: var(--butter);
  color: var(--basil);
  padding: 0.05em 0.3em;
  border-radius: 4px;
  font-weight: 700;
}

/* Schmale Bildschirme */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 1rem; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .feature-text { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .labels { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .site-nav { display: none; }
  .lede { font-size: 1.1875rem; }
  .soon { width: 100%; }
}
