:root {
  --bg: #0d0b09;
  --panel: #17130f;
  --panel-soft: #211a14;
  --gold: #d6b574;
  --gold-soft: #f0dca9;
  --text: #f7f0e4;
  --muted: #b9aa94;
  --line: rgba(214, 181, 116, 0.22);
  --danger: #e4a089;
  --shadow: 0 24px 80px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(214,181,116,.18), transparent 32rem),
    linear-gradient(180deg, #120f0b 0%, var(--bg) 55%, #070605 100%);
  color: var(--text);
}

.page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 150px;
}


/* Velvet Scent Banner */
.top-banner {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: #080706;
  box-shadow: var(--shadow);
}

.top-banner img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 620px) {
  .top-banner {
    border-radius: 18px;
    margin-bottom: 18px;
  }
}

.hero {
  padding: 16px 0 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.logo-mark {
  font-size: clamp(2rem, 8vw, 4.6rem);
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--gold-soft);
}

.brand-sub {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 28px;
  align-items: stretch;
  padding-top: 28px;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 4.8rem);
  line-height: .92;
  margin: 0;
  letter-spacing: -.05em;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 680px;
  margin: 22px 0 0;
}

.bottle-card {
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: 28px;
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--muted);
}

.bottle-placeholder {
  width: 92px;
  height: 180px;
  border-radius: 22px 22px 14px 14px;
  border: 2px solid rgba(240,220,169,.7);
  background: linear-gradient(180deg, rgba(214,181,116,.05), rgba(214,181,116,.36));
  display: grid;
  place-items: center;
  position: relative;
}

.bottle-placeholder:before {
  content: "";
  position: absolute;
  top: -34px;
  width: 54px;
  height: 36px;
  border-radius: 8px 8px 4px 4px;
  background: #080706;
  border: 1px solid rgba(240,220,169,.35);
}

.bottle-placeholder span {
  font-weight: 900;
  color: #050403;
  background: rgba(240,220,169,.8);
  padding: 4px 7px;
  border-radius: 6px;
  letter-spacing: .08em;
}

.finder {
  margin-top: 20px;
}

.search-panel, .result-card, .testset {
  background: rgba(23,19,15,.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.search-panel {
  padding: 20px;
}

label {
  display: block;
  color: var(--gold-soft);
  font-weight: 700;
  margin-bottom: 10px;
}

input[type="search"] {
  width: 100%;
  border: 1px solid rgba(214,181,116,.34);
  background: #0b0907;
  color: var(--text);
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 1rem;
  outline: none;
}

input[type="search"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214,181,116,.16);
}


/* Klickbare Flakon-Kategorien */
.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 4px;
}

.category-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  color: var(--text);
  border-radius: 22px;
  padding: 14px 12px 12px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 190px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214,181,116,.55);
  background: linear-gradient(145deg, rgba(214,181,116,.11), rgba(255,255,255,.025));
}

.category-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214,181,116,.12);
}

.category-card img {
  height: 135px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.category-card span {
  color: var(--gold-soft);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
}

@media (max-width: 620px) {
  .category-cards {
    gap: 9px;
  }

  .category-card {
    min-height: 142px;
    border-radius: 18px;
    padding: 10px 7px;
  }

  .category-card img {
    height: 94px;
  }

  .category-card span {
    font-size: .68rem;
    letter-spacing: .08em;
  }
}

.filter-row, .quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

button, a {
  font: inherit;
}

.chip, .tag, .text-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.chip.active, .tag.active {
  background: var(--gold);
  color: #14100c;
  border-color: var(--gold);
  font-weight: 800;
}

.status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  margin: 18px 4px 14px;
  gap: 12px;
}

.text-btn {
  color: var(--gold-soft);
  background: transparent;
}

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

.result-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  color: #0d0b09;
  background: var(--gold);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 900;
  padding: 6px 10px;
  align-self: flex-start;
}

.result-card h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -.02em;
}

.family {
  color: var(--gold-soft);
  margin: 0;
  font-weight: 700;
}

.description {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  font-size: .95rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tags span {
  border: 1px solid rgba(214,181,116,.18);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: .78rem;
}

.add-btn {
  width: 100%;
  border: 0;
  background: var(--gold-soft);
  color: #100d0a;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
}

.add-btn:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.testset {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 24px));
  padding: 14px;
  display: grid;
  grid-template-columns: .9fr 1.4fr auto;
  gap: 14px;
  align-items: center;
  z-index: 10;
}

.testset strong {
  display: block;
  color: var(--gold-soft);
}

.testset span {
  color: var(--muted);
  font-size: .92rem;
}

#testsetList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#testsetList li {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--text);
}

.remove {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  margin-left: 6px;
  padding: 0 2px;
}

.testset-actions {
  display: flex;
  gap: 8px;
}

.primary-btn, .secondary-btn {
  text-decoration: none;
  border: 0;
  border-radius: 14px;
  padding: 11px 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.primary-btn {
  background: var(--gold);
  color: #100d0a;
}

.secondary-btn {
  background: rgba(255,255,255,.05);
  color: var(--gold-soft);
  border: 1px solid var(--line);
}

.feedback {
  grid-column: 1 / -1;
  color: var(--gold-soft);
  margin: 0;
  min-height: 18px;
  font-size: .9rem;
}

.empty {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 22px;
  padding: 24px;
  text-align: center;
}

@media (max-width: 860px) {
  .page { width: min(100% - 20px, 720px); padding-bottom: 230px; }
  .hero-grid { grid-template-columns: 1fr; }
  .bottle-card { min-height: 180px; }
  .bottle-placeholder { width: 72px; height: 132px; }
  .results { grid-template-columns: 1fr; }
  .testset {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .testset-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .logo-mark { font-size: 2.25rem; }
  .brand { align-items: flex-start; flex-direction: column; }
  .testset-actions { grid-template-columns: 1fr; }
}


/* Hero ohne Platzhalter-Flakon */
.hero-intro {
  max-width: 920px;
  padding-top: 22px;
}

.order-note {
  grid-column: 1 / -1;
  color: var(--muted);
  margin: -4px 0 0;
  font-size: .86rem;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .hero-intro {
    padding-top: 16px;
  }

  .order-note {
    font-size: .82rem;
  }
}

.bottle-card {
  display: none;
}


/* V6: Testset nicht mehr fixiert, sondern als normaler Bereich */
.testset {
  display: none !important;
}

.testset-panel {
  margin: 28px 0 40px;
  background: rgba(23,19,15,.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.testset-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.testset-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  letter-spacing: -.04em;
}

.eyebrow.small {
  margin-bottom: 6px;
  font-size: .68rem;
}

.selection-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}

.selection-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(214,181,116,.18);
  border-radius: 16px;
  padding: 10px 12px;
  color: var(--text);
}

.selection-list strong {
  color: var(--gold-soft);
  margin-right: 8px;
}

.empty-selection {
  color: var(--muted) !important;
}

.order-info {
  border: 1px solid rgba(214,181,116,.22);
  background: rgba(214,181,116,.07);
  border-radius: 18px;
  padding: 13px 14px;
  color: var(--muted);
  line-height: 1.48;
  margin: 14px 0;
}

.order-info strong {
  color: var(--gold-soft);
}

.order-info p {
  margin: 6px 0 0;
}

.testset-panel .testset-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.testset-panel .primary-btn,
.testset-panel .secondary-btn {
  flex: 1 1 220px;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 26px 0 40px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .9rem;
}

.site-footer a {
  color: var(--gold-soft);
  text-decoration: none;
}

@media (max-width: 860px) {
  .page {
    padding-bottom: 44px;
  }

  .testset-panel {
    margin-top: 22px;
    border-radius: 20px;
    padding: 16px;
  }

  .testset-header {
    flex-direction: column;
    gap: 6px;
  }

  .selection-list li {
    align-items: flex-start;
  }
}

/* V7: Partnerzeile, Legal Pages, Cookie Banner */
.official-partner-line {
  display: inline-flex;
  color: var(--gold-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  margin: 18px 0 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 900;
  background: rgba(214,181,116,.07);
}

.legal-page {
  max-width: 980px;
}

.back-link {
  display: inline-block;
  color: var(--gold-soft);
  text-decoration: none;
  margin: 18px 0;
}

.legal-card {
  background: rgba(23,19,15,.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 42px);
  color: var(--text);
  line-height: 1.62;
}

.legal-card h1,
.legal-card h2,
.legal-card h3,
.legal-card h4 {
  color: var(--gold-soft);
}

.legal-card a {
  color: var(--gold-soft);
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 24px));
  z-index: 999;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  background: rgba(14,11,8,.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px;
  color: var(--muted);
}

.cookie-banner strong {
  color: var(--gold-soft);
}

.cookie-banner p {
  margin: 5px 0 0;
  line-height: 1.45;
}

.cookie-banner a {
  color: var(--gold-soft);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}

#cookieAccept {
  background: var(--gold);
  color: #100d0a;
}

#cookieNecessary {
  background: rgba(255,255,255,.04);
  color: var(--gold-soft);
}

.cookie-banner.hidden {
  display: none;
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 10px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


/* V8: Hero mit Video rechts */
.hero-with-video {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .78fr);
  gap: 28px;
  align-items: center;
  padding-top: 22px;
}

.hero-copy {
  min-width: 0;
}

.saving-note {
  color: var(--gold-soft);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  margin: 18px 0 0;
  font-weight: 800;
  line-height: 1.45;
}

.video-card {
  background: rgba(23,19,15,.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 14px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-text {
  margin: 0 0 10px;
}

.video-text span {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.video-text strong {
  color: var(--text);
  font-size: 1.02rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #060504;
  border: 1px solid rgba(214,181,116,.22);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 980px) {
  .hero-with-video {
    grid-template-columns: 1fr;
  }

  .video-card {
    max-width: 720px;
  }
}

@media (max-width: 620px) {
  .hero-with-video {
    gap: 18px;
    padding-top: 16px;
  }

  .video-card {
    border-radius: 20px;
    padding: 10px;
  }

  .video-frame {
    border-radius: 14px;
  }

  .saving-note {
    font-size: .94rem;
  }
}
