/* Wochentisch Landingpage
   Design-Tokens 1:1 aus packages/shared/src/theme.ts (darkColors) übernommen,
   damit die Website denselben Markenauftritt wie der App-Darkmode hat. */

:root {
  color-scheme: dark;

  /* Farben (siehe theme.ts darkColors) */
  --primary: #4ecb8a;
  --primary-dark: #3fa66b;
  --accent: #ff9a70;
  --background: #1c1e1a;
  --surface: #262924;
  --surface-raised: #2e3229;
  --border: #3a3f34;
  --text-primary: #f2f1ea;
  --text-secondary: #a6ac9e;
  --success: #6fa98a;
  --on-success: #16281f;
  --error: #e06455;

  /* Form & Bewegung */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 80px;

  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 0 0 1px rgba(78, 203, 138, 0.16), 0 20px 40px rgba(0, 0, 0, 0.4);

  --font-heading: -apple-system, "SF Pro Rounded", "Segoe UI Rounded", ui-rounded,
    "Nunito", "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;

  --max-width: 1120px;
  --header-height: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Für Screenreader sichtbar, visuell versteckt */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-sm);
  z-index: 100;
  padding: var(--space-xs) var(--space-sm);
  background: var(--primary);
  color: var(--on-success);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: var(--space-xs);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--on-success);
  box-shadow: 0 8px 20px rgba(78, 203, 138, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(78, 203, 138, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(28, 30, 26, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(28, 30, 26, 0.92);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
}

.brand img {
  width: 34px;
  height: 34px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.main-nav a:not(.btn) {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s var(--ease-out);
}

.main-nav a:not(.btn):hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--space-2xl) + var(--space-lg)) 0 var(--space-2xl);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 560px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(78, 203, 138, 0.22), transparent 70%),
    radial-gradient(50% 50% at 80% 10%, rgba(255, 154, 112, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(78, 203, 138, 0.12);
  border: 1px solid rgba(78, 203, 138, 0.3);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: var(--space-sm);
}

.hero h1 .accent-text {
  background: linear-gradient(135deg, var(--primary), #8fe0b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: var(--space-lg);
}

@media (max-width: 900px) {
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-note {
  margin-top: var(--space-sm);
  font-size: 13.5px;
  color: var(--text-secondary);
}

.hero-note .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 6px;
  box-shadow: 0 0 0 3px rgba(78, 203, 138, 0.2);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* ---------- App-Vorschau (reine CSS-Mockups, kein Bild nötig) ---------- */

.app-card {
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  padding: var(--space-md);
  transform: rotate(-2deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-card {
    animation: none;
  }
}

.app-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.app-card-header .week-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
}

.app-card-header .badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--on-success);
  background: var(--success);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.day-row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
}

.day-row.is-today {
  border-color: rgba(78, 203, 138, 0.5);
  background: rgba(78, 203, 138, 0.1);
}

.day-row .day-dot {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--on-success);
  background: var(--success);
  flex-shrink: 0;
}

.day-row.is-today .day-dot {
  background: var(--primary);
}

.day-row .meal {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.day-row .meal span {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ---------- Sections ---------- */

.section {
  padding: var(--space-2xl) 0;
}

.section-header {
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.section-eyebrow {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---------- Feature-Karten ---------- */

.grid {
  display: grid;
  gap: var(--space-md);
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(78, 203, 138, 0.35);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(78, 203, 138, 0.14);
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Vorteile ---------- */

.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (max-width: 700px) {
  .benefits {
    grid-template-columns: 1fr;
  }
}

.benefit {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--background));
  border: 1px solid var(--border);
}

.benefit .card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
  background: rgba(255, 154, 112, 0.14);
  color: var(--accent);
}

.benefit h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.benefit p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Screenshots ---------- */

.phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 860px) {
  .phones {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

.phone {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 14px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease-out);
}

.phone:hover {
  transform: translateY(-6px);
}

.phone-screen {
  background: var(--background);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  padding-top: 22px;
  min-height: 380px;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.phone-body {
  padding: var(--space-sm);
}

.phone-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.phone-caption {
  text-align: center;
  margin-top: var(--space-sm);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.phone-caption span {
  display: block;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Wochenplan-Mockup */
.mock-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.mock-week .cell {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
}

.mock-week .cell.filled {
  background: var(--success);
}

.mock-week .cell.active {
  background: var(--primary);
}

.mock-plan-card {
  margin-top: var(--space-sm);
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  border: 1px solid var(--border);
}

.mock-plan-card + .mock-plan-card {
  margin-top: 8px;
}

.mock-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(78, 203, 138, 0.14);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.mock-plan-title {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}

.mock-recipe-title {
  font-size: 14px;
  font-weight: 700;
}

/* Rezeptkarte-Mockup */
.mock-recipe-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid var(--border);
}

.mock-recipe-photo {
  height: 130px;
  background: linear-gradient(135deg, #6c8153, #d9814e 130%);
  position: relative;
}

.mock-recipe-photo .heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(28, 30, 26, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.mock-recipe-info {
  padding: 12px;
}

.mock-recipe-info .tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(78, 203, 138, 0.14);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.mock-swipe-hint {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-sm);
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Einkaufsliste-Mockup */
.mock-list-group {
  margin-bottom: var(--space-sm);
}

.mock-list-group h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 6px;
  font-weight: 700;
}

.mock-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.mock-item .check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--text-secondary);
  flex-shrink: 0;
}

.mock-item.checked .check {
  background: var(--primary);
  border-color: var(--primary);
}

.mock-item.checked span {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.phones-note {
  text-align: center;
  margin-top: var(--space-lg);
  color: var(--text-secondary);
  font-size: 13px;
}

/* ---------- CTA-Bereich ---------- */

.cta-section {
  margin: 0 var(--space-sm) var(--space-2xl);
}

.cta-box {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(78, 203, 138, 0.16), rgba(255, 154, 112, 0.08)),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.cta-box h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--space-xs);
}

.cta-box p {
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 auto var(--space-lg);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-top: 6px;
  max-width: 32ch;
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-nav-group h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 var(--space-xs);
  font-weight: 700;
}

.footer-nav-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-group a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}

.footer-nav-group a:hover {
  color: var(--primary);
}

.footer-bottom a {
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.footer-bottom a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 13px;
}

/* ---------- Rechtsseiten (Impressum/Datenschutz/Kontakt) ---------- */

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-sm) var(--space-2xl);
}

.legal-main h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.legal-main .muted {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.legal-main h2 {
  font-size: 1.15rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
  padding-bottom: var(--space-2xs);
  border-bottom: 1px solid var(--border);
}

.legal-main p,
.legal-main li {
  color: var(--text-primary);
}

.legal-main p {
  margin-top: var(--space-xs);
}

.legal-main a:not(.btn) {
  color: var(--primary);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.back-link:hover {
  color: var(--primary);
}

.contact-card {
  margin-top: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-card a.btn {
  margin-top: var(--space-sm);
}

.contact-card-heading {
  margin: 0 0 var(--space-xs);
  border: 0;
  padding: 0;
}
