/* Nanoversiegelung-Testsieger.de — geteiltes Stylesheet Hub + Kategorie-Unterseiten */
:root {
  --dark:    #0f172a;
  --dark2:   #1e293b;
  --dark3:   #334155;
  --accent:  #4f46e5;
  --accent2: #818cf8;
  --text:    #f1f5f9;
  --muted:   #94a3b8;
  --card-bg: #1e293b;
  --border:  #334155;
  --cta:     #ea580c;
  --cta-hover: #c2410c;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--dark); color: var(--text); line-height: 1.6; }

/* HERO (Hub-Startseite) */
.hero {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(79,70,229,0.55) 0%, rgba(15,23,42,0.88) 60%); }
.hero-content { position: relative; z-index: 1; padding: 2rem 1rem; max-width: 700px; }
.hero-badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: .75rem; }
.hero h1 span { color: var(--accent2); }
.hero p { font-size: 1.05rem; color: #cbd5e1; max-width: 560px; margin: 0 auto 1.5rem; }
.hero-stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; font-size: .85rem; color: #cbd5e1; }
.hero-stats strong { display: block; font-size: 1.3rem; color: var(--accent2); font-weight: 800; }

/* SUBHERO (Kategorie-Unterseiten) */
.subhero {
  position: relative; min-height: 280px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.subhero .hero-bg { object-position: center 58%; }
.subhero .hero-content { padding: 1.6rem 1rem; max-width: 720px; }
.subhero h1 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 800; line-height: 1.25; margin-bottom: .6rem; }
.subhero p { font-size: .98rem; color: #cbd5e1; max-width: 620px; margin: 0 auto; }

/* BREADCRUMB */
.breadcrumb {
  max-width: 1100px; margin: 0 auto; padding: .8rem 1rem;
  font-size: .82rem; color: var(--muted);
}
.breadcrumb a { color: var(--accent2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 .4rem; color: var(--muted); }

/* KATEGORIE-NAV (auf allen Seiten identisch, 5. Kategorie leicht ergänzbar) */
.cat-nav-wrapper { position: sticky; top: 0; z-index: 100; background: var(--dark2); border-bottom: 2px solid var(--accent); }
.cat-nav { display: flex; overflow-x: auto; scrollbar-width: none; max-width: 1100px; margin: 0 auto; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex-shrink: 0;
  padding: .85rem 1.4rem;
  color: var(--muted); text-decoration: none;
  font-size: .92rem; font-weight: 600;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.cat-nav a.active { color: var(--accent2); border-bottom-color: var(--accent2); }
.cat-nav a:hover:not(.active) { color: var(--text); }

/* AFFILIATE NOTE */
.affiliate-note {
  max-width: 1100px; margin: 1.5rem auto 0; padding: 0 1rem;
}
.affiliate-note p {
  font-size: .8rem; color: var(--muted);
  background: var(--dark2); border-left: 3px solid var(--accent);
  padding: .6rem 1rem; border-radius: 0 6px 6px 0;
}

/* SECTION */
.section { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1rem; }
.section-title { font-size: 1.4rem; font-weight: 800; margin-bottom: .4rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.section-title .badge { font-size: .72rem; font-weight: 700; background: var(--accent); color: #fff; padding: .2rem .65rem; border-radius: 999px; letter-spacing: .05em; }
.section-desc { color: var(--muted); font-size: .93rem; margin-bottom: 1.8rem; }

/* GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }

/* CARD */
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; contain: paint; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(79,70,229,.20); z-index: 10; }

.card-img-wrap { position: relative; background: #fff; aspect-ratio: 1/1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.card-img-wrap img.img-fallback { object-fit: contain; padding: 2rem; background: #1e293b; filter: none; }

.badge-top { position: absolute; top: .6rem; left: .6rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .6rem; border-radius: 999px; color: #fff; }
.badge-top.gold   { background: #d97706; }
.badge-top.silver { background: #64748b; }
.badge-top.teal   { background: var(--accent); }
.badge-top.green  { background: #16a34a; }
.badge-top.blue   { background: #2563eb; }

.card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .45rem; }
.card-brand { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent2); }
.card-title { font-size: .97rem; font-weight: 700; line-height: 1.3; }
.card-meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { background: var(--dark3); border-radius: 6px; padding: .2rem .5rem; font-size: .72rem; color: var(--text); }
.card-desc { font-size: .83rem; color: var(--muted); flex: 1; }
.card-price { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.card-price span { font-size: .8rem; font-weight: 400; color: var(--muted); margin-left: .25rem; }
.card-price .uvp { font-size: .82rem; font-weight: 400; color: var(--muted); text-decoration: line-through; margin-right: .4rem; }
.rank-num { position: absolute; top: .6rem; right: .6rem; background: rgba(15,23,42,.85); color: #fff; font-size: .7rem; font-weight: 800; border-radius: 6px; padding: .2rem .5rem; border: 1px solid var(--border); }

.card-fazit { font-size: .81rem; line-height: 1.55; background: rgba(79,70,229,.12); border-left: 3px solid var(--accent); padding: .5rem .75rem; border-radius: 0 6px 6px 0; color: var(--text); }
.card-fazit strong { color: var(--accent2); }

/* CTA BUTTON */
.btn-amazon { display: flex; align-items: center; justify-content: center; gap: .55rem; background: var(--cta); color: #fff; font-size: .88rem; font-weight: 700; padding: .7rem 1rem; border-radius: 8px; text-decoration: none; transition: background .2s; margin-top: auto; flex-shrink: 0; }
.btn-amazon:hover { background: var(--cta-hover); }
.arrow-anim { display: inline-block; color: #fff; font-weight: 900; font-size: 1.05rem; animation: arrowPulse 1s ease-in-out infinite; }
@keyframes arrowPulse { 0%,100%{ transform: translateX(0); } 50%{ transform: translateX(-5px); } }
.arrow-anim-left { display: inline-block; color: #fff; font-weight: 900; font-size: 1.05rem; animation: arrowPulseLeft 1s ease-in-out infinite; }
@keyframes arrowPulseLeft { 0%,100%{ transform: translateX(0); } 50%{ transform: translateX(-5px); } }

/* PERSONA */
.persona { max-width: 1100px; margin: 0 auto 2rem; padding: 0 1rem; }
.persona-inner { background: var(--dark2); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem 1.6rem; display: flex; align-items: flex-start; gap: 1.2rem; }
.persona-avatar { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent); background: #4f46e5; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.persona-text h3 { font-size: 1rem; font-weight: 800; margin-bottom: .2rem; }
.persona-text p { font-size: .85rem; color: var(--muted); }
.persona-text .role { color: var(--accent2); font-weight: 600; font-size: .82rem; margin-bottom: .25rem; }

/* KATEGORIE-TEASER (nur Hub) */
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.teaser-card { background: var(--dark2); border: 2px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.teaser-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.3); border-color: var(--accent); }
.teaser-img-wrap { background: #fff; width: 100%; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.teaser-img-wrap img { width: 60%; height: 80%; object-fit: contain; }
.teaser-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.teaser-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.teaser-eyebrow { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent2); }
.teaser-badge { flex-shrink: 0; white-space: nowrap; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .18rem .55rem; border-radius: 999px; color: #fff; }
.teaser-badge.gold  { background: #d97706; }
.teaser-badge.green { background: #16a34a; }
.teaser-badge.blue  { background: #2563eb; }
.teaser-title { font-size: 1.15rem; font-weight: 800; }
.teaser-desc { font-size: .87rem; color: var(--muted); flex: 1; }
.teaser-cta { display: flex; align-items: center; justify-content: center; gap: .4rem; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; padding: .65rem 1rem; border-radius: 8px; margin-top: .5rem; transition: background .2s, transform .2s; }
.teaser-card:hover .teaser-cta { background: #4338ca; transform: translateY(-1px); }

/* PICK-BANNER (Kategoriesieger, nur Unterseiten) */
.pick-banner { max-width: 1100px; margin: 1.5rem auto 0; padding: 0 1rem; }
.pick-inner { background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%); border: 2px solid #d97706; border-radius: 14px; padding: 1.2rem 1.4rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pick-medal { font-size: 2rem; }
.pick-label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fbbf24; }
.pick-name { font-size: 1.05rem; font-weight: 800; }
.pick-reason { font-size: .82rem; color: var(--muted); flex: 1 1 260px; min-width: 200px; }
.pick-btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--cta); color: #fff; font-size: .85rem; font-weight: 700; padding: .55rem .9rem; border-radius: 8px; text-decoration: none; transition: background .2s; white-space: nowrap; }
.pick-btn:hover { background: var(--cta-hover); }

/* FAQ */
.faq-section { max-width: 800px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.faq-section h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-item summary { font-weight: 700; font-size: .97rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--accent2); flex-shrink: 0; margin-left: .5rem; }
details[open] summary::after { content: '−'; }
.faq-item p { margin-top: .75rem; color: var(--muted); font-size: .9rem; line-height: 1.65; }

/* RATGEBER */
.ratgeber { max-width: 800px; margin: 0 auto; padding: 1rem 1rem 2rem; }
.ratgeber h2 { font-size: 1.5rem; font-weight: 800; margin: 1.5rem 0 .8rem; }
.ratgeber h3 { font-size: 1.1rem; font-weight: 700; color: var(--accent2); margin: 1.2rem 0 .5rem; }
.ratgeber p { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.ratgeber ul { color: var(--muted); font-size: .92rem; margin: 0 0 1rem 1.2rem; }
.ratgeber li { margin-bottom: .35rem; }

/* VERGLEICHSTABELLE */
.vergleich { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1rem 1rem; }
.vergleich h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: .4rem; display: flex; align-items: center; gap: .6rem; }
.vergleich > p { color: var(--muted); font-size: .93rem; margin-bottom: 1.4rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table.vt { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 700px; }
table.vt thead th { background: var(--dark2); color: var(--accent2); text-align: left; padding: .7rem .8rem; font-weight: 700; white-space: nowrap; border-bottom: 2px solid var(--accent); }
table.vt td { padding: .65rem .8rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.vt tbody tr:last-child td { border-bottom: none; }
table.vt tbody tr:hover { background: rgba(79,70,229,.08); }
table.vt tbody tr.win { background: rgba(217,119,6,.12); }
.vt-model { font-weight: 700; color: var(--text); }
.vt-brand { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent2); font-weight: 700; }
.vt-price { font-weight: 800; white-space: nowrap; }
.vt-btn { display: inline-block; background: var(--cta); color: #fff; font-weight: 700; font-size: .78rem; padding: .4rem .7rem; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.vt-btn:hover { background: var(--cta-hover); }

/* 404 ERROR PAGE */
.error-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; max-width: 1100px; margin: 0 auto 2.5rem; padding: 0 1rem; }
.error-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; max-width: 1100px; margin: 0 auto 3rem; padding: 0 1rem; }
.error-cat-grid a {
  background: var(--dark2); border: 1px solid var(--border); border-radius: 10px;
  padding: .9rem 1.1rem; color: var(--text); text-decoration: none;
  font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: .5rem;
  transition: border-color .2s, transform .2s, background .2s;
}
.error-cat-grid a:hover { border-color: var(--accent); background: #232f47; transform: translateY(-2px); }

/* BACK TO HUB (Ende der Kategorie-Unterseiten) */
.back-to-hub { max-width: 1100px; margin: 3rem auto 2.5rem; padding: 0 1rem; text-align: center; }
.back-to-hub a {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .95rem; padding: .85rem 1.7rem; border-radius: 10px;
  transition: background .2s, transform .2s;
}
.back-to-hub a:hover { background: #4338ca; transform: translateY(-2px); }

/* FOOTER */
footer { background: var(--dark2); border-top: 1px solid var(--border); text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .82rem; }
footer a { color: var(--accent2); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; gap: .8rem; }
  .card-body { padding: .75rem; }
  .hero { min-height: 420px; }
  .subhero { min-height: 220px; }
  .persona-inner { flex-direction: column; }
  .pick-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}
