/* ===== ESPRESSOIMPRESSION.DE — CI aligned with Espressivo App ===== */
/* Design System: Warm espresso tones, clean modern UI, mobile-first */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Lora:ital,wght@0,600;1,400&display=swap');

:root {
  /* === Core Palette (matched to Espressivo App) === */
  --espresso:    #1e1108;   /* deepest brown — nav, headers */
  --roast:       #3b1f0e;   /* dark roast — hover states */
  --crema:       #c8a464;   /* crema gold — primary accent */
  --crema-light: #e8c98a;   /* lighter crema — hover accents */
  --cream:       #faf6f0;   /* warm cream — page background */
  --surface:     #ffffff;   /* card surfaces */
  --surface-warm:#fffcf7;   /* slightly warm cards */

  /* === Text === */
  --text-primary:   #1a1008;
  --text-secondary: #5c4a38;
  --text-muted:     #9c8878;

  /* === UI === */
  --border:      #e8dcc8;
  --border-soft: #f0e8da;
  --shadow-sm:   0 1px 4px rgba(30,17,8,0.08);
  --shadow-md:   0 4px 16px rgba(30,17,8,0.10);
  --shadow-lg:   0 8px 32px rgba(30,17,8,0.14);
  --radius:      12px;
  --radius-sm:   8px;

  /* === Hero overlay === */
  --overlay:     rgba(20, 10, 4, 0.70);

  /* === Spacing === */
  --max-w: 1140px;
  --max-w-article: 820px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION ===== */
nav {
  background: var(--espresso);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(200,164,100,0.15);
}
body {
  padding-top: 64px; /* compensate for fixed nav */
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 24px;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  /* Show original colors — tan, gold, gray are all visible on dark nav */
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}
.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--crema);
  letter-spacing: -0.2px;
}
.nav-logo-text span { color: rgba(255,255,255,0.9); font-weight: 400; }

.nav-links { display: none; gap: 2px; align-items: center; margin-left: auto; }  /* hidden on mobile by default */
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(200,164,100,0.15); color: var(--crema-light); }
.nav-links a.active { color: var(--crema); }
.nav-links a.nav-cta {
  background: var(--crema);
  color: var(--espresso);
  font-weight: 700;
  padding: 7px 16px;
  margin-left: 6px;
}
.nav-links a.nav-cta:hover { background: var(--crema-light); transform: translateY(-1px); }

/* ===== MOBILE NAV — Elegant Drawer ===== */

/* Toggle button: clean pill shape */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(200,164,100,0.35);
  border-radius: 10px;
  cursor: pointer;
  background: rgba(200,164,100,0.08);
  transition: all 0.2s;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  flex-shrink: 0;
}
.nav-toggle:hover {
  background: rgba(200,164,100,0.18);
  border-color: var(--crema);
}

/* Three-line icon → animates to X */
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--crema);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
  transform-origin: center;
}

/* X state when open */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Backdrop overlay */
.nav-backdrop { display: none; /* controlled by JS */
  position: fixed;
  inset: 0;
  background: rgba(15, 8, 2, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-backdrop.visible { opacity: 1; pointer-events: auto; }

/* ===== DESKTOP NAV — show links, hide toggle ===== */
@media (min-width: 1025px) {
  .nav-links {
    display: flex !important;
    gap: 2px;
    align-items: center;
  }
  .nav-toggle { display: none !important; }
}

/* ===== MOBILE NAV — in-flow dropdown (phones + tablets up to 1024px) ===== */
@media (max-width: 1024px) {
  .nav-toggle { display: flex !important; }
  .nav-inner {
    padding: 0;
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-logo { order: 1; padding: 0 16px; height: 64px; display: flex; align-items: center; }
  .nav-search-btn { order: 2; margin-left: auto; margin-right: 4px; }
  .nav-toggle { order: 3; margin-right: 16px; }

  /* Nav links: hidden by default, shown when .open added by JS */
  .nav-links {
    order: 4;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    background: #1e1108;
    padding: 0 12px;
    gap: 2px;
    border-top: 1px solid rgba(200,164,100,0.2);
    /* Hidden when closed */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open {
    max-height: 500px;
    padding: 8px 12px 12px;
  }

  .nav-links a {
    padding: 13px 14px;
    font-size: 1rem;
    color: rgba(255,255,255,0.9) !important;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    border-bottom: 1px solid rgba(200,164,100,0.07);
    white-space: normal;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active { color: #c8a464 !important; }
  .nav-links a.nav-cta {
    background: #c8a464 !important;
    color: #1e1108 !important;
    justify-content: center;
    border-radius: 8px;
    margin-top: 4px;
  }

  /* Backdrop shown when menu is open */
  .nav-backdrop { display: block; }
}


/* ===== HERO ===== */
.hero {
  position: relative;
  background:
    linear-gradient(var(--overlay), var(--overlay)),
    url('../Fotos/Cappuccino/LatteArt_1004.jpeg')
    center / cover no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 88px 24px;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--cream));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crema);
  background: rgba(200,164,100,0.15);
  border: 1px solid rgba(200,164,100,0.3);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-content .subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 28px;
  background: var(--crema);
  color: var(--espresso) !important;
  text-decoration: none !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.18s ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--crema-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff !important;
}
.btn-outline:hover { border-color: var(--crema); color: var(--crema) !important; background: rgba(200,164,100,0.1); transform: translateY(-1px); }
.btn-dark {
  background: var(--espresso);
  color: var(--crema) !important;
  border-color: var(--espresso);
}
.btn-dark:hover { background: var(--roast); color: var(--crema-light) !important; }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== LAYOUT ===== */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
}
.content-wrap {
  max-width: var(--max-w-article);
  margin: 0 auto;
  padding: 64px 24px;
}
section + section { border-top: 1px solid var(--border-soft); }

/* ===== SECTION HEADERS ===== */
.section-header { margin-bottom: 40px; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crema);
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--espresso);
  line-height: 1.25;
  margin-bottom: 10px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--espresso);
}
.card-thumb-square {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  background: var(--espresso);
}
.category-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--espresso) 0%, #5c3320 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

/* ===== REVIEW LIST — horizontal card layout ===== */
.review-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.review-list-item {
  display: flex; gap: 14px; align-items: center;
  padding: 14px; background: var(--surface-warm);
  border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.review-list-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); border-color: var(--crema); }
.review-list-item img {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: 8px; flex-shrink: 0; background: var(--border);
}
.review-list-body { flex: 1; min-width: 0; }
.review-list-title { font-weight: 600; font-size: 0.95rem; color: var(--espresso); margin: 3px 0 5px; line-height: 1.3; }
.review-list-excerpt { font-size: 0.8rem; color: var(--text-secondary); margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.review-list-footer { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.review-list-footer .stars { font-size: 0.75rem; color: var(--crema); }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--crema);
  margin-bottom: 7px;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 10px;
  line-height: 1.4;
}
.card-excerpt {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--espresso);
}
.card-arrow {
  color: var(--crema);
  font-size: 1.1rem;
  transition: transform 0.18s;
}
.card:hover .card-arrow { transform: translateX(4px); }

/* ===== ARTICLE HEADER ===== */
.article-header {
  background: linear-gradient(var(--overlay), var(--overlay)),
              var(--espresso) center / cover;
  padding: 88px 24px 72px;
  text-align: center;
}
.article-header .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crema);
  margin-bottom: 16px;
}
.article-header h1 {
  font-family: 'Lora', Georgia, serif;
  max-width: 800px;
  margin: 0 auto 14px;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.article-header .meta {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* ===== ARTICLE BODY ===== */
.article-body {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
}
.article-body h1, .article-body h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--espresso);
  margin: 44px 0 14px;
  line-height: 1.25;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--espresso);
  margin: 28px 0 10px;
}
.article-body h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 22px 0 8px;
}
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 14px 0 20px 28px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--espresso); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a { color: var(--crema); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--roast); }
.article-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow-md);
  display: block;
}
.article-body blockquote {
  border-left: 3px solid var(--crema);
  padding: 14px 24px;
  margin: 28px 0;
  background: var(--surface-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
}
.table-scroll table { margin: 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}
.article-body table th {
  background: var(--espresso);
  color: var(--crema);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.article-body table td {
  border: 1px solid var(--border);
  padding: 11px 16px;
  color: var(--text-primary);
}
.article-body table tr:nth-child(even) td { background: var(--surface-warm); }

/* ===== CALLOUT BOXES ===== */
.callout {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout-espresso { background: var(--espresso); color: var(--crema-light); }
.callout-espresso strong { color: var(--crema); }
.callout-warm { background: var(--surface-warm); border: 1px solid var(--border); color: var(--text-primary); }
.callout-warm strong { color: var(--espresso); }
.callout-gold { background: linear-gradient(135deg, #3b1f0e, #5c3320); color: rgba(255,255,255,0.88); }
.callout-gold strong { color: var(--crema); }
.callout-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.callout h3, .callout h4 { font-size: 1rem; margin-bottom: 6px; }

/* ===== TOC ===== */
.toc-box {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  font-family: 'Inter', sans-serif;
}
.toc-box h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--crema);
  margin-bottom: 12px;
}
.toc-box ol { margin-left: 18px; }
.toc-box li { margin-bottom: 6px; }
.toc-box a { color: var(--text-secondary); font-size: 0.9rem; text-decoration: none; }
.toc-box a:hover { color: var(--crema); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 14px 0;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--crema); }
.breadcrumb-sep { color: var(--border); }

/* ===== RATING COMPONENTS ===== */
.stars { color: var(--crema); font-size: 1rem; letter-spacing: 1px; }
.rating-bar-wrap {
  background: var(--border);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  flex: 1;
}
.rating-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--crema), var(--crema-light));
  border-radius: 999px;
  transition: width 0.5s ease;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
}
.rating-label { width: 100px; color: var(--text-secondary); font-weight: 500; flex-shrink: 0; }
.rating-num { width: 42px; text-align: right; font-weight: 700; color: var(--espresso); flex-shrink: 0; }

/* ===== SCORE BADGE ===== */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--crema);
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 0 0 4px var(--crema);
  flex-shrink: 0;
}

/* ===== PROFILE SECTION ===== */
.profile-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  margin: 40px 0;
}
.profile-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.product-img img { width: 100%; border-radius: var(--radius); }
.price-box {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}
.price-amount {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--espresso);
  line-height: 1;
}
.price-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; font-family: 'Inter', sans-serif; }

/* ===== APP PROMO BANNER ===== */
.app-banner {
  background: linear-gradient(135deg, var(--espresso) 0%, #3b1f0e 100%);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 48px 0;
  border: 1px solid rgba(200,164,100,0.2);
  box-shadow: var(--shadow-lg);
}
.app-banner-icon { font-size: 3rem; flex-shrink: 0; }
.app-banner h3 { color: var(--crema); font-family: 'Inter', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.app-banner p { color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.6; }
.app-banner .btn { margin-top: 16px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
details.faq-item[open] { box-shadow: var(--shadow-md); }
details.faq-item summary {
  padding: 18px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--espresso);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--crema);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item summary:hover { background: var(--surface-warm); }
.faq-answer {
  padding: 4px 22px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border-soft);
}

/* ===== SCHEMA / GEO: Answer Box ===== */
.answer-box {
  background: linear-gradient(135deg, var(--surface-warm), var(--surface));
  border: 2px solid var(--crema);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
  font-family: 'Inter', sans-serif;
}
.answer-box .answer-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crema);
  margin-bottom: 8px;
}
.answer-box p {
  font-size: 0.97rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
}

/* ===== SUMMARY BOX (AEO – kurze Antwort-Zusammenfassung) ===== */
.summary-box {
  background: var(--surface-warm);
  border-left: 3px solid var(--crema);
  border-radius: 0 6px 6px 0;
  padding: 12px 18px;
  margin: 0 0 24px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-primary);
}
.summary-box strong { color: var(--espresso); }

/* ===== PRO / CONTRA LISTEN (semantisch) ===== */
.vorteile-liste, .nachteile-liste { list-style: none; padding-left: 0; }
.vorteile-liste li, .nachteile-liste li { padding-left: 24px; position: relative; margin-bottom: 8px; }
.vorteile-liste li::before { content: "✓"; color: #34C759; font-weight: 700; position: absolute; left: 0; }
.nachteile-liste li::before { content: "✗"; color: #FF3B30; font-weight: 700; position: absolute; left: 0; }

/* ===== GLOSSAR (dl/dt/dd – AEO-optimierte Struktur) ===== */
.glossar-liste { margin: 0 0 8px; }
.glossar-liste dt {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--espresso);
  padding: 20px 0 8px;
  border-bottom: 2px solid var(--crema);
  margin: 0 0 14px;
  scroll-margin-top: 80px;
  letter-spacing: -0.01em;
}
.glossar-liste dd { margin: 0; padding: 0; }
.glossar-summary {
  background: var(--surface-warm);
  border-left: 3px solid var(--crema);
  border-radius: 0 6px 6px 0;
  padding: 10px 16px;
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-primary);
}
.glossar-summary strong { color: var(--espresso); }
.glossar-links {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 4px 0 28px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.glossar-links a { color: var(--crema); text-decoration: underline; text-underline-offset: 2px; }

/* ===== AUTHOR BOX ===== */
.author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 40px 0;
  font-family: 'Inter', sans-serif;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.author-avatar img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 700; font-size: 0.97rem; color: var(--espresso); }
.author-role { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* ===== STATS ROW ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0;
}
.stat-item {
  background: var(--surface);
  padding: 24px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--espresso);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== FOOTER ===== */
footer {
  background: var(--espresso);
  color: rgba(255,255,255,0.65);
  padding: 56px 24px 32px;
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  /* Original colors — gold and tan read well on dark footer */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
  opacity: 0.9;
}
.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--crema);
}
.footer-desc { font-size: 0.87rem; line-height: 1.75; max-width: 280px; }
.footer-app-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 8px 14px;
  background: rgba(200,164,100,0.12);
  border: 1px solid rgba(200,164,100,0.25);
  border-radius: var(--radius-sm);
  color: var(--crema);
  text-decoration: none;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  transition: all 0.18s;
}
.footer-app-link:hover { background: rgba(200,164,100,0.2); }
footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--crema);
  margin-bottom: 16px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 9px; }
footer ul a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
  font-family: 'Inter', sans-serif;
}
footer ul a:hover { color: var(--crema-light); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; margin-left: 18px; transition: color 0.15s; }
.footer-bottom a:hover { color: var(--crema); }
/* ===== KONTAKT-SEITE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-info { padding-top: 4px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 20px; }
.contact-list-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-list-label { font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--crema); margin: 0 0 3px; }
.contact-list-value { font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--espresso); text-decoration: none; font-weight: 500; line-height: 1.5; transition: color 0.15s; }
a.contact-list-value:hover { color: var(--crema); }
.contact-form {
  display: flex; flex-direction: column; gap: 20px;
  padding: 36px 32px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-success {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 48px 32px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-field { display: flex; flex-direction: column; gap: 7px; }
.contact-label { font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 600; color: var(--espresso); }
.contact-label-optional { font-weight: 400; opacity: 0.5; }
.contact-label-required { color: var(--crema); }
.contact-input {
  width: 100%; box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 0.9375rem;
  background: var(--cream); color: var(--espresso);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.contact-input::placeholder { color: var(--espresso); opacity: 0.35; }
.contact-input:focus { outline: none; border-color: var(--crema); box-shadow: 0 0 0 3px rgba(200,164,100,0.12); }
.contact-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c8a464' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }
.contact-error { font-family: 'Inter', sans-serif; font-size: 0.82rem; color: #c0392b; margin: 0; }
.contact-required-note { font-family: 'Inter', sans-serif; font-size: 0.78rem; color: var(--text-muted); margin: 0; text-align: center; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 28px 20px; }
  .contact-success { padding: 36px 20px; }
}

/* ===== FRISCH GETESTET ===== */
.fresh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.fresh-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.fresh-card:hover { border-color: var(--crema); box-shadow: 0 4px 16px rgba(200,164,100,0.1); }
.fresh-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  align-self: flex-start;
}
.fresh-badge--review { background: rgba(200,164,100,0.15); color: #a07830; }
.fresh-badge--guide  { background: rgba(30,17,8,0.07); color: var(--espresso); }
.fresh-badge--tool   { background: rgba(60,130,80,0.1); color: #2d7048; }
.fresh-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1rem; font-weight: 700; color: var(--espresso); line-height: 1.35; }
.fresh-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; font-family: 'Inter', sans-serif; margin: 0; flex: 1; }
.fresh-link { font-size: 0.82rem; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--crema); margin-top: auto; }
.fresh-footer-note { font-size: 0.85rem; color: var(--text-muted); font-family: 'Inter', sans-serif; text-align: center; margin-top: 4px; }
.fresh-footer-note a { color: var(--crema); text-decoration: none; }
.fresh-footer-note a:hover { text-decoration: underline; }
@media (max-width: 768px) { .fresh-grid { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1024px) { .fresh-grid { grid-template-columns: repeat(2, 1fr); } }

.footer-newsletter { margin-top: 20px; }
.footer-newsletter p { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 10px; line-height: 1.5; font-family: 'Inter', sans-serif; }
.footer-nl-form { display: flex; gap: 8px; }
.footer-nl-form input[type="email"] {
  flex: 1; min-width: 0; padding: 9px 12px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm); color: #fff; font-size: 0.82rem;
  font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.15s;
}
.footer-nl-form input[type="email"]::placeholder { color: rgba(255,255,255,0.3); }
.footer-nl-form input[type="email"]:focus { border-color: rgba(200,164,100,0.5); }
.footer-nl-form button {
  padding: 9px 14px; background: var(--crema); border: none;
  border-radius: var(--radius-sm); color: var(--espresso); font-size: 0.8rem;
  font-family: 'Inter', sans-serif; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: opacity 0.15s;
}
.footer-nl-form button:hover { opacity: 0.88; }
.footer-nl-success { display: none; font-size: 0.82rem; color: var(--crema); font-family: 'Inter', sans-serif; margin-top: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {

  /* --- Layout --- */
  .hero {
    min-height: 380px;
    padding: 60px 20px 80px;
  }
  .hero-content h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-outline { margin-left: 0; }

  .page-wrap, .content-wrap { padding: 36px 18px; }
  .cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .profile-section { grid-template-columns: 1fr; gap: 28px; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .app-banner { flex-direction: column; text-align: center; padding: 28px 24px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* --- TOC on mobile --- */
  .toc-box { padding: 16px 18px; }

  /* --- Article body mobile --- */
  .article-header { padding: 60px 18px 48px; }
  .article-body { font-size: 1rem; }
  .article-body h2 { font-size: 1.3rem; }
  .article-body table { font-size: 0.82rem; }
  .article-body table th,
  .article-body table td { padding: 8px 10px; }

  /* --- FAQ mobile --- */
  details.faq-item summary { padding: 15px 18px; font-size: 0.92rem; }
  .faq-answer { padding: 4px 18px 16px; }

  /* --- Author box mobile --- */
  .author-box { flex-direction: column; gap: 14px; }

  /* --- Callout mobile --- */
  .callout { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
  .hero { padding: 52px 16px 72px; }
  .hero-content h1 { font-size: 1.65rem; }
  .hero-eyebrow { font-size: 0.68rem; }
  .page-wrap, .content-wrap { padding: 28px 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.4rem; }
  .nav-logo-text { font-size: 0.95rem; }
  .score-badge { width: 60px; height: 60px; font-size: 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════════
   APPLE-LIKE DESIGN LAYER + ANIMATIONS
   Progressive enhancement — overrides and extends the base CSS
   ═══════════════════════════════════════════════════════════════ */

/* ── Frosted Glass Navigation ─────────────────────────────────── */
nav {
  background: rgba(20, 10, 4, 0.72) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(200,164,100,0.12), 0 4px 24px rgba(0,0,0,0.18) !important;
  transition: background 0.3s ease;
}
nav.scrolled {
  background: rgba(14, 7, 2, 0.88) !important;
}
.nav-links a {
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease !important;
}
.nav-links a:hover {
  transform: none !important;
}
.nav-links a.nav-cta {
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}
.nav-links a.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(200,164,100,0.35) !important;
}

/* ── Hero: larger type, tighter tracking ──────────────────────── */
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem) !important;
  letter-spacing: -0.03em !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}
.hero-eyebrow {
  letter-spacing: 0.12em !important;
  font-size: 0.7rem !important;
}

/* ── Section titles: Apple-style large display text ──────────── */
.section-title {
  letter-spacing: -0.025em !important;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
  font-weight: 700 !important;
}

/* ── Cards: cleaner shadow system, sharper hover ─────────────── */
.card {
  border: none !important;
  box-shadow: 0 2px 8px rgba(30,17,8,0.06), 0 0 0 1px rgba(30,17,8,0.04) !important;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease !important;
}
.card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 20px 48px rgba(30,17,8,0.14), 0 0 0 1px rgba(30,17,8,0.04) !important;
}

/* ── Buttons: Apple pill style + spring animation ────────────── */
.btn {
  border-radius: 980px !important; /* Apple's signature pill */
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), 
              box-shadow 0.2s ease, 
              background 0.2s ease !important;
}
.btn:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 6px 20px rgba(200,164,100,0.4) !important;
}
.btn:active {
  transform: scale(0.97) !important;
  transition-duration: 0.08s !important;
}
.btn-outline:hover {
  box-shadow: 0 4px 14px rgba(255,255,255,0.2) !important;
}

/* ── Stats row: cleaner ──────────────────────────────────────── */
.stat-num {
  font-size: 2.4rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}
.stats-row {
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(30,17,8,0.06) !important;
}

/* ── FAQ: smoother open/close ────────────────────────────────── */
details.faq-item {
  transition: box-shadow 0.2s ease !important;
}
details.faq-item summary {
  transition: background 0.15s ease !important;
}
details.faq-item summary::after {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1) !important;
}

/* ── App banner: glass effect ────────────────────────────────── */
.app-banner {
  background: linear-gradient(135deg, rgba(30,17,8,0.92), rgba(59,31,14,0.95)) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(200,164,100,0.15) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

/* ── Callout boxes: subtle glass ─────────────────────────────── */
.callout-gold {
  background: linear-gradient(135deg, rgba(30,17,8,0.94), rgba(59,31,14,0.97)) !important;
  border: 1px solid rgba(200,164,100,0.2) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

/* ── Article header: deeper overlay, sharper type ────────────── */
.article-header h1 {
  letter-spacing: -0.03em !important;
  font-weight: 700 !important;
}

/* ═══ SCROLL ANIMATIONS ═══════════════════════════════════════ */

/* Elements start invisible and slide up */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
              transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1),
              transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.0s; opacity:1; transform:translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; opacity:1; transform:translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; opacity:1; transform:translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; opacity:1; transform:translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; opacity:1; transform:translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; opacity:1; transform:translateY(0); }
.reveal-stagger.visible > *:nth-child(n+7) { opacity:1; transform:translateY(0); }

/* Fade only (for images, heroes) */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-fade.visible { opacity: 1; }

/* Scale in (for stats, badges) */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s cubic-bezier(0.34,1.56,0.64,1),
              transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ═══ COUNTER ANIMATION ══════════════════════════════════════ */
.stat-num[data-target] {
  transition: none;
}

/* ═══ HERO PARALLAX ══════════════════════════════════════════ */
.hero {
  will-change: transform;
}

/* ═══ IMAGE HOVER ZOOM ═══════════════════════════════════════ */
.article-body img {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease !important;
}
.article-body img:hover {
  cursor: zoom-in;
}
.article-body img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(30,17,8,0.18) !important;
}

/* ═══ LINK HOVER UNDERLINE ANIMATION ════════════════════════ */
.article-body a {
  background-image: linear-gradient(var(--crema), var(--crema));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease, color 0.2s ease !important;
  text-decoration: none !important;
}
.article-body a:hover {
  background-size: 100% 1.5px;
}

/* ═══ FOOTER LINKS ═══════════════════════════════════════════ */
footer ul a {
  transition: color 0.15s ease, transform 0.15s ease !important;
  display: inline-block;
}
footer ul a:hover {
  transform: translateX(3px) !important;
}

/* ═══ NAV TOGGLE ANIMATION REFINEMENT ═══════════════════════ */
.nav-toggle {
  transition: background 0.2s ease, border-color 0.2s ease !important;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .reveal-fade, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .card { transition: box-shadow 0.2s ease !important; }
  .btn { transition: background 0.2s ease !important; }
}

/* ═══ HERO ENTRY ANIMATION ══════════════════════════════════════ */
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ═══ ARTICLE HEADER ENTRY ══════════════════════════════════════ */
.article-header {
  animation: heroIn 0.75s cubic-bezier(0.16,1,0.3,1) both;
}
.article-header h1 {
  animation: heroIn 0.8s cubic-bezier(0.16,1,0.3,1) both 0.1s;
}
.article-header .meta,
.article-header .eyebrow {
  animation: heroIn 0.8s cubic-bezier(0.16,1,0.3,1) both 0.2s;
}

/* ═══ PAGE ENTRY: breadcrumb ════════════════════════════════════ */
.breadcrumb {
  animation: heroIn 0.5s cubic-bezier(0.16,1,0.3,1) both 0.15s;
}

/* ═══ SECTION LABEL + TITLE ENTRY ══════════════════════════════ */
.section-label {
  display: inline-block;
  letter-spacing: 0.14em !important;
}

/* ═══ TOC BOX: subtle hover per item ═══════════════════════════ */
.toc-box a {
  transition: color 0.15s ease, padding-left 0.2s ease !important;
  display: inline-block;
}
.toc-box a:hover {
  padding-left: 4px !important;
  color: var(--crema) !important;
}

/* ═══ MACHINE CARDS ON UEBER-UNS ═══════════════════════════════ */
/* Subtle lift on machine cards */
div[style*="surface-warm"] {
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease;
}
div[style*="surface-warm"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(30,17,8,0.1);
}

/* ═══ REDUCED MOTION SAFETY ═════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .article-header, .article-header h1,
  .article-header .meta, .article-header .eyebrow,
  .breadcrumb, [style*="animation"] {
    animation: none !important;
  }
}

/* Exclude card thumbs from zoom */
.card img, .card-thumb { cursor: default !important; }

/* ═══ MOBILE FIXES ════════════════════════════════════════════════════════
   Prevent horizontal overflow, fix touch targets, improve mobile layout
   ═══════════════════════════════════════════════════════════════════════ */

/* Prevent horizontal scroll sitewide */
/* overflow-x on body breaks position:fixed on iOS — avoid it */
html { overflow-x: hidden; }
body { max-width: 100%; }

/* Fix any element that might overflow */
img, video, iframe, table {
  max-width: 100%;
}

/* ── Nav: mobile touch targets ── */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex !important;
    min-width: 44px;
    min-height: 44px;
  }
  /* Touch target minimum 44px */
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  /* Fix article header on mobile */
  .article-header {
    padding: 60px 16px 48px;
    background-attachment: scroll !important; /* fixed bg breaks on iOS */
  }
  /* Fix hero background on iOS (fixed doesn't work in Safari) */
  .hero {
    background-attachment: scroll !important;
  }
  /* Fix stats row overflow */
  .stats-row {
    overflow: hidden;
  }
  /* Fix profile section image */
  .profile-section .profile-img img {
    max-width: 100%;
    height: auto;
  }
  /* Fix cards-grid min-width */
  .cards-grid {
    grid-template-columns: 1fr !important;
  }
  /* Fix wide tables */
  .article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Fix recipe boxes */
  div[style*="grid-template-columns:repeat(auto-fit"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* Review filter tabs - horizontal scroll on small screens */
  div[style*="display:flex;gap:8px;margin-bottom:32px"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
  }
  div[style*="display:flex;gap:8px;margin-bottom:32px"]::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-logo-text { font-size: 0.9rem !important; }
  .hero-content h1 { font-size: 1.65rem !important; }
  .section-title { font-size: 1.4rem !important; }
  /* Fix product detail grid on tiny screens */
  .product-detail { gap: 20px !important; }
  /* Fix app banner */
  .app-banner { padding: 20px !important; }
  /* Recipe box 2 columns on small phones */
  .article-body div[style*="grid-template-columns:repeat(auto-fit,minmax(100px"] {
    grid-template-columns: 1fr 1fr !important;
  }
}


  .nav-logo-text { font-size: 0.95rem !important; }
}

/* ===== SCORE BOX ===== */
.score-box {
  display: flex;
  align-items: stretch;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 28px;
  font-family: 'Inter', sans-serif;
}
.score-gesamt {
  text-align: center;
  flex-shrink: 0;
  padding: 22px 26px;
  background: var(--espresso);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 110px;
}
.score-zahl {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--crema);
  line-height: 1;
  letter-spacing: -0.04em;
}
.score-max {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}
.score-sterne {
  color: var(--crema);
  font-size: 0.9rem;
  margin-top: 7px;
  letter-spacing: 2px;
  display: block;
}
.score-kategorien {
  flex: 1;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}
.score-kategorie {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.sterne-klein {
  color: var(--crema);
  font-size: 0.82rem;
  letter-spacing: 1px;
}
@media (max-width: 520px) {
  .score-box { flex-direction: column; }
  .score-gesamt {
    padding: 18px;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    min-width: unset;
  }
  .score-sterne { margin-top: 0; }
}

/* ===== BUY BUTTON ===== */
.btn-kaufen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--crema);
  color: var(--espresso) !important;
  text-decoration: none !important;
  background-image: none !important;
  background-size: 0 !important;
  border-radius: 980px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.18s ease;
  margin: 12px 0 20px;
}
.btn-kaufen:hover {
  background: var(--crema-light) !important;
  transform: scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(200,164,100,0.4) !important;
}
.kaufen-hinweis {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--crema);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 12px 0 20px;
  line-height: 1.6;
}

/* ===== FAQ ACCORDION (custom div-based) ===== */
div.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
div.faq-item.is-open { box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%;
  padding: 18px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--espresso);
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: background 0.15s ease;
}
.faq-q:hover { background: var(--surface-warm); }
.faq-icon {
  color: var(--crema);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  display: inline-block;
  line-height: 1;
}
div.faq-item.is-open .faq-icon { transform: rotate(90deg); }
.faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
div.faq-item.is-open .faq-answer-wrap { max-height: 600px; }
div.faq-item .faq-answer { border-top: 1px solid var(--border-soft); }
@media (max-width: 768px) {
  .faq-q { padding: 15px 18px; font-size: 0.92rem; }
}

/* Hero secondary CTA — text link, clearly subordinate to primary btn */
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
  white-space: nowrap;
}
.hero-cta-secondary:hover {
  color: var(--crema);
  text-decoration: none;
}

/* ===== SEARCH ===== */
.nav-search-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.nav-search-btn:hover {
  background: rgba(200,164,100,0.15);
  color: var(--crema-light);
}

/* Auth nav icon */
#ei-auth-nav { margin-left: 14px; }
.ei-auth-mobile { display: none; }
@media (max-width: 1024px) {
  #ei-auth-nav { display: none !important; }
  .ei-auth-mobile { display: flex !important; align-items: center; }
}
@media (min-width: 1025px) {
  .ei-auth-mobile { display: none !important; }
}

/* Overlay backdrop */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15,8,2,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Search card */
.search-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  margin: 0 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  transform: translateY(-10px);
  transition: transform 0.18s ease;
}
.search-overlay.is-open .search-box {
  transform: translateY(0);
}

.search-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}
.search-input-wrap svg { flex-shrink: 0; }
#search-input {
  flex: 1;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  min-width: 0;
}
#search-input::placeholder { color: var(--text-muted); }
.search-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  transition: background 0.12s;
  flex-shrink: 0;
}
.search-close:hover { background: var(--border-soft); }

.search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 0;
}
.search-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 20px;
  text-align: center;
  margin: 0;
}

/* Result list */
.search-result-list { list-style: none; margin: 0; padding: 0; }
.search-result-list li a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 18px;
  text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.1s;
}
.search-result-list li:last-child a { border-bottom: none; }
.search-result-list li a:hover { background: var(--surface-warm); }
.sr-category {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.sr-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--espresso);
}
.sr-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.79rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Prevent body scroll when search open */
body.search-open { overflow: hidden; }

@media (max-width: 768px) {
  .search-overlay { padding-top: 72px; }
  .search-box { margin: 0 12px; }
  .search-results { max-height: 55vh; }
}

