/* Endo-Food — Mobile-first.
   Defaults sind für Handy. Tablet ab 640px, Desktop ab 960px. */

:root {
  --sage-light: #B7C9BC;
  --sage: #8FA590;
  --sage-dark: #5C7059;
  --terracotta: #C97B5A;
  --terracotta-dark: #A8593A;
  --cream: #FFFDF9;
  --surface: #F5F0E8;
  --surface-alt: #F3EDE3;
  --text-dark: #2E2A26;
  --text-medium: #5F5E5A;
  --text-light: #8B8B82;
  --border: #E5D5C2;
  --max-w: 1100px;
  --radius: 14px;
  --gutter: 20px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

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

/* ── Header ───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  color: var(--sage-dark);
  text-decoration: none;
}

.brand__logo {
  width: 28px;
  height: 28px;
  background: var(--sage);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 14px;
}

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

.nav__hide-mobile { display: none; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* ── Layout container ─────────────────────────────────────── */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  padding: 36px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  color: var(--text-dark);
}

.hero p.lead {
  font-size: 16px;
  color: var(--text-medium);
  margin: 0 0 22px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.1s, background 0.15s;
}

.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--terracotta); color: white; }
.btn--primary:hover { background: var(--terracotta-dark); }

.btn--secondary {
  background: var(--surface);
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.btn--secondary:hover { background: var(--surface-alt); }

.app-store-badge {
  display: inline-flex;
  border-radius: 8px;
  transition: transform 0.1s;
}

.app-store-badge:active { transform: scale(0.97); }

.app-store-badge img {
  height: 44px;
  width: auto;
}

.phone-mockup {
  width: 240px;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 1206 / 2622;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(46, 42, 38, 0.15),
              0 0 0 1px var(--border) inset;
}

.phone-mockup img { width: 100%; height: 100%; object-fit: cover; }

/* ── Section base ─────────────────────────────────────────── */

.section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.section p.section-lead {
  color: var(--text-medium);
  font-size: 15px;
  margin: 0 0 28px;
}

/* ── Editorial Chapters ───────────────────────────────────── */

.editorial { padding: 0; }

.chapter {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.chapter__number {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 44px;
  color: var(--terracotta);
  line-height: 1;
  margin: 0 0 8px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.chapter h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  color: var(--text-dark);
}

.chapter__body p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
  color: var(--text-medium);
}

.chapter__body p strong { color: var(--text-dark); }

.chapter__quote {
  margin: 22px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--sage-dark);
  quotes: "„" """;
}

.chapter__quote::before { content: open-quote; }
.chapter__quote::after { content: close-quote; }

.chapter__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 5;
  width: 100%;
}

.chapter__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  text-align: center;
  padding: 18px;
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--surface) 60%, rgba(201, 123, 90, 0.18) 100%);
}

/* ── Screenshots Strip ────────────────────────────────────── */

.screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.screenshot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.screenshot__frame {
  aspect-ratio: 1206 / 2622;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(46, 42, 38, 0.1),
              0 0 0 1px var(--border) inset;
}

.screenshot__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot__caption {
  font-size: 12px;
  color: var(--text-medium);
  font-weight: 500;
  text-align: center;
}

/* ── Instagram-Sektion ────────────────────────────────────── */

.ig-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 18px;
  background: var(--sage);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ig-button:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}
.ig-button svg { flex-shrink: 0; }


.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  padding: 6px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.social-link:hover {
  color: var(--terracotta);
  background: var(--surface);
}

.instagram-section {
  text-align: center;
}
.instagram-section .section-lead {
  margin-bottom: 24px;
}
.ig-handle {
  color: var(--sage-dark);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
}
.ig-handle:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.ig-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.ig-card {
  aspect-ratio: 1 / 1;
  display: block;
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--sage-dark);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  box-shadow: 0 0 0 1px var(--border) inset;
}
.ig-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(46, 42, 38, 0.12),
              0 0 0 1px var(--sage) inset;
  color: var(--terracotta);
}
.ig-card__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
}
.ig-card__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
  line-height: 1.35;
  hyphens: auto;
}
.ig-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ── Legal pages ──────────────────────────────────────────── */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 0 56px;
}

.legal h1 {
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.legal p.meta {
  color: var(--text-light);
  font-size: 13px;
  margin: 0 0 28px;
}

.legal h2 {
  font-size: 19px;
  margin: 28px 0 10px;
}

.legal h3 {
  font-size: 16px;
  margin: 20px 0 6px;
}

.legal p, .legal li {
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.7;
}

.legal a { color: var(--terracotta-dark); }
.legal ul { padding-left: 20px; }

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px var(--gutter);
  margin-top: 48px;
  color: var(--text-medium);
  font-size: 13px;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.site-footer__col { min-width: 130px; }

.site-footer a {
  color: var(--text-medium);
  text-decoration: none;
  display: block;
  margin: 4px 0;
}

.site-footer__col h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
}

.site-footer__bottom {
  max-width: var(--max-w);
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 12px;
}

/* ── Utility ──────────────────────────────────────────────── */

.callout {
  background: var(--surface);
  border-left: 4px solid var(--terracotta);
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-medium);
}

/* ═══════════════════════════════════════════════════════════
   Tablet (640px+)
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 640px) {
  :root { --gutter: 28px; }
  body { font-size: 17px; }

  .nav__hide-mobile { display: inline; }

  .hero { padding: 48px 0 36px; }
  .hero h1 { font-size: 38px; }
  .hero p.lead { font-size: 17px; }

  .section { padding: 56px 0; }
  .section h2 { font-size: 28px; }

  .chapter { padding: 56px 0; }
  .chapter__number { font-size: 52px; }
  .chapter h2 { font-size: 28px; }

  .phone-mockup { width: 260px; }

  .screenshots {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .ig-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .ig-card__label { font-size: 14px; }

  .app-store-badge img { height: 48px; }

  .legal { padding: 48px 0 72px; }
  .legal h1 { font-size: 32px; }
  .legal h2 { font-size: 21px; }
}

/* ═══════════════════════════════════════════════════════════
   Desktop (960px+)
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 960px) {
  body { font-size: 17px; }

  .hero {
    display: grid;
    grid-template-columns: 1fr 320px;
    align-items: center;
    gap: 56px;
    padding: 72px 0 56px;
  }

  .hero h1 { font-size: 46px; }
  .hero p.lead { font-size: 18px; }

  .phone-mockup { width: 100%; margin: 0; max-width: 320px; }

  .section { padding: 72px 0; }
  .section h2 { font-size: 32px; }
  .section p.section-lead { font-size: 17px; max-width: 680px; }

  .chapter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 80px 0;
  }
  .chapter--reverse .chapter__media { order: 2; }
  .chapter__number { font-size: 60px; }
  .chapter h2 { font-size: 34px; }
  .chapter__body p { font-size: 17px; }
  .chapter__quote { font-size: 19px; }

  .legal h1 { font-size: 36px; }
  .legal h2 { font-size: 22px; }
  .legal p, .legal li { font-size: 16px; }
}
