/* =========================================================
   premiumboden.de – OBI QR-Landingpage
   Eigenständiges, reduziertes Design (nicht 1:1 Hauptseite)
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f4f2;
  --color-text: #1c1c1c;
  --color-text-muted: #6b6b6b;
  --color-border: #e3e1dd;
  --color-accent: #1c1c1c;
  --color-accent-contrast: #ffffff;
  --radius: 10px;
  --max-width: 1120px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  z-index: 50;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo-link img {
  height: 42px;
  width: auto;
}

.site-header nav {
  display: flex;
  gap: var(--space-3);
  font-size: 0.92rem;
}

.site-header nav a {
  text-decoration: none;
  color: var(--color-text-muted);
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--color-text);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-bg-alt);
  padding: var(--space-5) 0 var(--space-4);
  text-align: center;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

.hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

/* ---------- Section ---------- */
.section {
  padding: var(--space-5) 0;
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-4);
}

.section-heading h2 {
  font-size: 1.5rem;
  margin: 0 0 var(--space-1);
}

.section-heading p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Produktgrid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-3);
}

.product-card {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}

.product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.product-card .img-wrap {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .card-body {
  padding: var(--space-2);
}

.product-card .kategorie {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.product-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.product-card .art-nr {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-accent);
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}

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

.btn-block { width: 100%; }

/* ---------- App Sektion ---------- */
.app-section {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.store-badges img {
  height: 48px;
  width: auto;
}

/* ---------- Downloadcenter ---------- */
.doc-group {
  margin-bottom: var(--space-4);
}

.doc-group h3 {
  font-size: 1.05rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-1);
  margin-bottom: var(--space-2);
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.doc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.doc-list a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text);
}

.doc-list .doc-icon {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* ---------- Zertifikate-Karussell ---------- */
.cert-carousel-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding: 0 var(--space-4);
  box-sizing: border-box;
}

.cert-carousel {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: calc(var(--max-width) + 2 * var(--space-4));
  margin: 0 auto;
}

.cert-track {
  flex: 1;
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 6px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.cert-track::-webkit-scrollbar {
  display: none;
}

.cert-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 280px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.cert-slide img {
  max-height: 96px;
  max-width: 100%;
  width: auto;
}

.cert-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.cert-arrow:hover:not(:disabled) {
  background: var(--color-bg-alt);
}

.cert-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.cert-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-2);
}

.cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
}

.cert-dot.active {
  background: var(--color-text);
}

@media (max-width: 640px) {
  .cert-slide { width: 200px; min-height: 130px; }
  .cert-slide img { max-height: 72px; }
  .cert-carousel-bleed { padding: 0 var(--space-2); }
}

/* ---------- Reviews (Trustpilot / ProvenExpert) ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.review-widget-placeholder {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
}

.review-widget-placeholder .hint {
  font-size: 0.8rem;
  margin-top: 6px;
}

/* ---------- Dekor-Detailseite ---------- */
.dekor-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.dekor-gallery {
  display: grid;
  gap: var(--space-2);
}

.dekor-gallery .img-main {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
}

.dekor-gallery .img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dekor-gallery .img-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.dekor-gallery .img-thumbs .img-wrap {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  border-radius: 6px;
  overflow: hidden;
}

.dekor-gallery .img-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dekor-info .kategorie {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.dekor-info h1 {
  font-size: 1.9rem;
  margin: 0 0 var(--space-2);
}

.dekor-info .art-nr {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}

.dekor-info .btn-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: var(--space-3);
}

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

@media (max-width: 760px) {
  .dekor-detail { grid-template-columns: 1fr; }
}

/* ---------- Legal / Text-Seiten ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 1.8rem;
  margin-bottom: var(--space-3);
}

.legal-content h2 {
  font-size: 1.15rem;
  margin-top: var(--space-4);
}

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

.placeholder {
  background: #fff8e1;
  border: 1px dashed #d9b34d;
  border-radius: 6px;
  padding: 2px 6px;
  font-style: normal;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) 0;
  margin-top: var(--space-5);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.site-footer nav {
  display: flex;
  gap: var(--space-3);
}

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

.site-footer nav a:hover { color: var(--color-text); }

/* ---------- Cookie-Consent ---------- */
#ProvenExpert_widget_container.pe-hidden {
  display: none !important;
}

.consent-placeholder {
  padding: var(--space-3);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  background: #fafafa;
}

.consent-placeholder p {
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  padding: var(--space-3) var(--space-4);
}

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

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.cookie-banner-inner p {
  flex: 1 1 420px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

.cookie-banner-inner a {
  color: inherit;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: var(--space-2);
  flex: 0 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header nav { gap: var(--space-2); font-size: 0.85rem; }
  .hero { padding: var(--space-4) 0 var(--space-3); }
  .section { padding: var(--space-4) 0; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
}
