/* Public landing styles - leverages V2 tokens; marketing / Infoseite für Externe */

.landing {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-top: var(--space-4);
  padding-bottom: var(--space-10);
}

.landing-lead-quote {
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-5);
}

/* Freistehende KPI-Zeile: äußere Hülle wie früher; Kacheln = metrics-spotlight__hero (components.css) */
.landing-stat-strip {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
}

.landing-stat-strip .metrics-spotlight__metric-value--landing-text {
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.landing-stat-strip .metrics-spotlight__metric--next-essen {
  grid-column: 1 / -1;
}

.landing-next-essen__date {
  white-space: nowrap;
}

.landing-next-essen__dot {
  margin: 0 0.35rem;
  opacity: 0.7;
}

.landing-next-essen__restaurant {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Landing-KPI-Werte auf kleinen Viewports stärker verkleinern/umbrechen */
.landing-stat-strip .metrics-spotlight__metric-value {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ============================================
   HERO SECTION - Theme-aware, modern design
   ============================================ */

.landing-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-8) var(--card-padding);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-lg);
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
}

/* Subtle background pattern - theme-aware (Brand Wash Token) */
.landing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.22;
  background-image: var(--gradient-brand-wash);
  pointer-events: none;
  z-index: 0;
}

.landing-hero__text {
  position: relative;
  z-index: 1;
}

/*
 * Pro Textzeile denselben Verlauf (sonst bei Umbruch: Gradient über die ganze
 * Box → wirkt auf schmalen Viewports plötzlich „weniger orange“).
 */
.landing-hero__text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--font-bold);
  margin: 0;
  padding-bottom: var(--space-3);
  letter-spacing: -0.02em;
  display: block;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--logo-orange);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .landing-hero__text h1 {
    color: transparent;
  }
}

.landing-hero__text .lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-5);
}

.landing-hero__text .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  margin: 0 0 var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-secondary);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
}

.landing-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Logo Container with Beautiful Background */
.landing-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  min-height: 300px;
  z-index: 1;
  isolation: isolate;
}

/* Logo Background Circle - Matches logo background #1b232e */
.landing-hero__visual::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--logo-navy-dark);  /* #1b232e - matches logo background! */
  z-index: 1;
}

/* Light Mode: Same navy color to match logo */
[data-theme="light"] .landing-hero__visual::before {
  background: var(--logo-navy-dark);  /* #1b232e - stays consistent! */
}

.landing-hero__visual::after {
  content: '';
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(transparent, transparent) padding-box,
    var(--gradient-brand-text) border-box;
  opacity: 0.46;
  z-index: 0;
}

.landing-logo {
  position: relative;
  width: 248px;
  max-width: 248px;
  height: 248px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  transition: none;
}

.landing-restaurants {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.landing-restaurants .landing-section-title {
  margin-bottom: 0;
}

.landing-hitlist-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.landing-hitlist-toolbar {
  margin-bottom: var(--space-3);
}

.landing-hitlist-filter {
  display: block;
  margin-bottom: 0;
}

.landing-hitlist-filter__hint {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.landing-hitlist-filter__field {
  width: 100%;
  max-width: 28rem;
  display: block;
  margin-bottom: 0;
}

.landing-restaurants-table__col-ort {
  min-width: 6rem;
}

.landing-restaurants-table__col-home {
  width: 8rem;
  text-align: right;
}

.landing-restaurants-table__col-visited {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.landing-restaurants-table__home-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-interactive-primary);
  text-decoration: none;
}

.landing-restaurants-table__home-link:hover {
  text-decoration: underline;
}

.landing-restaurants-table__home-link .icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.landing-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.landing-pagination__status {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.landing-section-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.landing-section-title .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--color-interactive-primary);
}

.landing-event .card {
  border: 1px solid var(--color-border-subtle);
}

.landing-event .card__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.landing-event .card__title .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.landing-event-teaser {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.landing-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) 0 var(--space-2);
  border-top: 1px solid var(--color-border-subtle);
}

.landing-footer__label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
  margin: 0;
}

.socials {
  display: flex;
  gap: var(--space-4);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border-subtle);
}

.social-link:hover {
  color: var(--color-interactive-primary);
  background: var(--color-surface-hover);
  border-color: var(--color-interactive-primary);
  transform: translateY(-2px);
}

.social-link .icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ============================================
   RESPONSIVE - Mobile Optimizations
   ============================================ */

@media (max-width: 768px) {
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-6) var(--space-4);
  }
  
  .landing-hero__visual {
    order: -1;
    margin-bottom: var(--space-4);
    min-height: 260px;
    padding: var(--space-3) var(--space-5);
  }
  
  .landing-hero__visual::before {
    width: 220px;
    height: 220px;
  }
  
  .landing-hero__visual::after {
    width: 230px;
    height: 230px;
  }
  
  .landing-logo {
    width: 196px;
    max-width: 196px;
    height: 196px;
  }
  
  .landing-actions {
    justify-content: center;
  }
  
  .landing-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .landing-restaurants {
    gap: var(--space-1);
  }

  .landing-hitlist-toolbar {
    margin-bottom: var(--space-2);
  }

  .landing-hitlist-block {
    gap: var(--space-2);
  }

  .landing-stat-strip .metrics-spotlight__metric-value {
    font-size: clamp(1.35rem, 7vw, 1.9rem);
    line-height: 1.15;
  }

}

@media (max-width: 420px) {
  .landing-stat-strip .metrics-spotlight__hero > .metrics-spotlight__metric {
    min-height: 5.5rem;
  }

  .landing-stat-strip .metrics-spotlight__metric-value {
    font-size: clamp(1.2rem, 8vw, 1.6rem);
  }

  .landing-stat-strip .metrics-spotlight__metric-value--landing-text {
    font-size: clamp(0.85rem, 3.6vw, 0.95rem);
  }

}

