/*
  Ruprecht et Fils – Dark / Elegant skin
  ------------------------------------------------------------
  This file overrides the base template (assets/css/main.css).
  Keep it small, readable and easy to extend.
*/

:root {
  --bg: #131B10;            /* deep green   #07130d  #2C3825*/
  --bg-2: #0b1d14;          /* slightly lighter */
  --card: rgba(255,255,255,0.04);
  --card-2: rgba(255,255,255,0.06);
  --text: rgba(255,255,255,0.88);
  --muted: rgba(255,255,255,0.66);
  --line: rgba(255,255,255,0.14);
  --silver: #d6d8dd;
  --silver-2: #b9bec8;
  --shadow: 0 18px 60px rgba(0,0,0,0.55);
}

/* Global */
body {
  background: radial-gradient(1200px 800px at 10% 10%, rgba(255,255,255,0.06), transparent 55%),
              radial-gradient(900px 600px at 90% 20%, rgba(140,255,200,0.06), transparent 50%),
              linear-gradient(180deg, var(--bg) 0%, #040a07 100%);
  color: var(--text);
}

body, input, select, textarea {
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--silver);
  letter-spacing: 0.02em;
  font-family: "Cormorant Garamond", serif;
}

p, ul, ol {
  color: var(--text);
}

a {
  color: var(--silver);
}

/* Banner */
.banner.style1 {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
}

.brand-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 0.65rem 0;
  background: linear-gradient(135deg, #ffffff, var(--silver), #9aa2b1, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.banner .major {
  color: var(--muted);
  max-width: 42rem;
}

/* Spotlight images: subtle frame */
.spotlight .image img,
.banner .image img {
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

/* Buttons */
.button {
  border: 1px solid rgba(255,255,255,0.9) !important;
  color: #ffffff !important;
  background: transparent !important;
  box-shadow: none !important;
}

.button:hover {
  background: rgba(255,255,255,0.08) !important;
}

.button.primary {
  background: transparent !important;
}

.button-ghost {
  background: transparent !important;
}

/* Products */
.sub {
  color: var(--muted);
  margin-top: -0.6rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.product-card {
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
}

.product-media {
  background: radial-gradient(700px 280px at 50% 10%, rgba(214,216,221,0.15), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0));
  padding: 1.25rem;
}

.product-media img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 18px 35px rgba(0,0,0,0.55));
}

.product-body {
  padding: 1.25rem 1.25rem 1.35rem;
}

.product-body h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.85rem;
}

.product-spec {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem 0;
}

.product-spec li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}

.product-spec li strong {
  color: var(--silver);
}

.product-note {
  color: var(--text);
  margin-bottom: 1rem;
}

.product-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Contact profile */
.profile-container {
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.profile-image {
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}

.name {
  color: var(--silver);
  font-weight: 700;
}

.position {
  color: var(--muted);
}

/* Legal */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.legal-card {
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.1rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  text-align: left;
}

.legal-card h3 {
  margin-top: 0.1rem;
}

.small {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.82);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.age-gate.is-hidden { display: none; }

.age-card {
  width: min(620px, 100%);
  background: linear-gradient(180deg, rgba(12,30,21,0.92), rgba(6,14,10,0.92));
  border: 1px solid rgba(214,216,221,0.22);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.age-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(214,216,221,0.22);
  color: var(--silver);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.age-fineprint {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer */
footer.wrapper {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-media img { height: 380px; }
  .legal-grid { grid-template-columns: 1fr; }
}




/* ===== Schaumwein-Detailseite: Lesbarkeit & Zentrierung ===== */

/* Cards: weniger Transparent, mehr Kontrast */
.info-card{
  /*
  background: rgba(10, 14, 12, 0.68) !important;   
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  */
   background: linear-gradient(180deg, var(--card), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  padding: 1.25rem 1.25rem 1.35rem;
}

/* Text allgemein heller + besser lesbar */
.info-card, .info-card p, .info-card li, .info-card div{
  color: rgba(245, 247, 246, 0.92) !important;
}

.info-card .subtle{
  color: rgba(245, 247, 246, 0.72) !important;
}

/* Headlines: klarer, „silbrig“ */
.info-card h3,
.wrapper h2{
  color: rgba(235, 239, 237, 0.95) !important;
  letter-spacing: 0.02em;
}

/* Fliesstext schöner */
.info-card p{
  line-height: 1.65;
  max-width: 72ch;   /* verhindert sehr breite Zeilen = besser lesbar */
  margin-left: auto;
  margin-right: auto;
}

/* Zentrierung in der Detail-Section */
#details .inner{
  text-align: center;
}

/* Listen mittig UND sauber ohne komische Einzüge */
#details .note-list{
  display: inline-block;   /* macht die Liste als Block zentrierbar */
  text-align: left;        /* Inhalt bleibt lesbar */
  margin: 10px auto 0 auto;
  padding-left: 18px;      /* kontrollierter Bullet-Einzug */
}

#details .note-list li{
  margin: 6px 0;
  line-height: 1.55;
}

/* KPI-Boxen: Text mittig, besserer Kontrast */
.kpi div{
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  text-align: center;
}
.kpi strong{
  opacity: 0.85;
}

/* CTA Buttons schön mittig */
.product-cta{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* --- FINAL FIX schaumwein: readability + true centering --- */
#details .info-card{
  background: rgba(6, 10, 8, 0.78) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  backdrop-filter: blur(6px) !important;
  text-align: center !important;
}

#details .info-card p,
#details .info-card li{
  color: rgba(248,250,249,0.92) !important;
}

#details .info-card strong{
  color: rgba(235,239,237,0.98) !important;
  font-weight: 600;
}

/* Listen: Block zentriert, Inhalt sauber links */
#details .note-list{
  display: inline-block !important;
  text-align: left !important;
  margin: 10px auto 0 auto !important;
  padding-left: 18px !important;
}

/* KPI: kontrastreicher + mittig */
#details .kpi div{
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  color: rgba(248,250,249,0.92) !important;
  text-align: center !important;
}

/* === Product Card Image Hover === */

.product-media{
  position: relative;
  overflow: hidden;
  border-radius: 14px; /* falls noch nicht vorhanden */
}

/* Link füllt den ganzen Bildbereich */
.product-media .product-link{
  display: block;
  position: relative;
}

/* Bild Animation */
.product-media img{
  display: block;
  width: 100%;
  height: auto;
  transition: 
    transform 0.6s ease,
    filter 0.4s ease;
}

/* Dunkler Overlay beim Hover */
.product-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.15)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* "Mehr erfahren" Overlay Text */
.product-media::before{
  content: "Mehr erfahren →";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(245,247,246,0.95);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  text-transform: uppercase;
  opacity: 0;
  transition: all 0.35s ease;
  z-index: 2;
  pointer-events: none;
}

/* Hover Effekt */
.product-card:hover .product-media img{
  transform: scale(1.06);
  filter: brightness(0.85) contrast(1.05);
  border-radius: 24px;
}

.product-card:hover .product-media::after{
  opacity: 1;
}

.product-card:hover .product-media::before{
  opacity: 1;
  transform: translate(-50%, -50%) translateY(-4px);
}


/* === Hero Carousel (robust, ohne absolute) === */

.hero-carousel{
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
}

/* Beide Bilder liegen im selben Grid-Feld */
.hero-carousel .hero-slide{
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;

  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* Aktives Bild sichtbar */
.hero-carousel .hero-slide.active{
  opacity: 1;
}
/* ===== HERO CAROUSEL (Template-sicher) ===== */

/* Banner image container fix: Template positioniert imgs absolut auf den Banner.
   Wir geben dem Wrapper eine eigene "Bühne" und steuern nur die Slides. */
#top .hero-media {
  position: relative;
  overflow: hidden;
}

/* Damit das Banner-Bild nicht mehr „komisch“ absolut relativ zum Banner sitzt */
#top .hero-media .hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 22rem; /* sorgt dafür, dass auch bei kleinen Viewports sicher Platz da ist */
}

/* Slides übereinander */
#top .hero-media .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 900ms ease;
}

/* aktiver Slide sichtbar */
#top .hero-media .hero-slide.is-active {
  opacity: 1;
}

/* Mobile: etwas weniger Höhe */
@media screen and (max-width: 736px) {
  #top .hero-media .hero-carousel {
    min-height: 16rem;
  }
}

