/* ===============================
   Custom Fonts
   =============================== */
@font-face {
  font-family: 'UnfairStyle';
  src: url('../fonts/Unfair Style2Rough.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CaudexRegular';
  src: url('../fonts/Caudex-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CrimsonItalic';
  src: url('../fonts/CrimsonText-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* =============================== */
:root{
  --accent: rgb(127, 27, 29);
  --bg-offset-y: 0px; /* via JS gesetzt (gerundet) */
}

/* ===============================
   Reset & Base
   =============================== */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body{
  font-family:'Jost', sans-serif;

  /* Hintergrund: füllt Breite, looped vertikal */
  background-image:
    linear-gradient(135deg, rgba(10,10,10,0.4) 0%, rgba(26,26,26,0.4) 100%),
    url('../images/backgrounds/bg1.jpg');
  background-repeat: no-repeat, repeat-y;
  background-position:
    center calc(var(--bg-offset-y) * 1),
    center calc(var(--bg-offset-y) * 1);
  background-size: 100% auto, 100% auto;

  color:#fff;
  overflow-x:hidden;
  line-height:1.6;
  position:relative;
}

/* ===============================
   Scrollbar
   =============================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgb(150, 32, 34); }

/* ===============================
   Navigation
   =============================== */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  background:rgba(10,10,10,0.8);
  border-bottom:1px solid rgba(255,255,255,.1);
  transition:all .3s ease;
}
.nav-container{ max-width:1200px; margin:0 auto; padding:0 2rem; height:70px; display:flex; align-items:center; justify-content:space-between; }
.nav-left{ display:flex; align-items:center; gap:.5rem; }
.nav-logo{ height:30px; width:auto; }

.logo{
  font-family:'UnfairStyle', sans-serif;
  font-size:1.2rem; color:#fff; text-decoration:none; transition:color .2s ease;
}
.logo:hover{ color:var(--accent) !important; }

.nav-links{ display:flex; gap:2rem; list-style:none; }
.nav-links a{
  font-family:'UnfairStyle', sans-serif;
  font-size:1.2rem; color:#fff; text-decoration:none; transition:color .2s ease; position:relative;
}
.nav-links a:hover{ color:var(--accent) !important; }
.nav-links a::after{
  content:''; position:absolute; bottom:-5px; left:0; width:0; height:2px; background:#fff; transition:width .3s ease;
}
.nav-links a:hover::after{ width:100%; }

/* ===============================
   Hero
   =============================== */
.hero{ min-height:100vh; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.hero-content{ text-align:center; max-width:800px; padding:0 2rem; z-index:10; position:relative; }

.hero-title{
  font-family:'UnfairStyle', sans-serif;
  font-size:clamp(3.9rem, 10.4vw, 7.8rem);
  margin-bottom:1rem; color:#fff; font-weight:normal; /* Outline fix */
  animation:slideInUp 1s ease-out;
}
.hero-subtitle{
  font-family:'CaudexRegular', serif;
  font-size:clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom:3rem; color:#fff; font-weight:300;
  animation:slideInUp 1s ease-out .2s both;
}

.hero-buttons{ display:flex; gap:1.5rem; justify-content:center; flex-wrap:wrap; animation:slideInUp 1s ease-out .4s both; }

.btn{
  padding:1rem 2rem; border:1px solid #f5f5f5; border-radius:0;
  font-size:1rem; font-weight:500; text-decoration:none; transition:all .25s ease;
  cursor:pointer; position:relative; overflow:hidden; backdrop-filter:blur(10px);
  display:inline-flex; align-items:center; justify-content:center; min-width:180px; white-space:nowrap;
}
.btn-primary{ font-family:'CaudexRegular', serif; background:rgba(127,27,29,.85); color:#fff; box-shadow:0 10px 30px rgba(0,0,0,.3); }
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 15px 40px rgba(0,0,0,.4); }

.joe-blue-btn{ font-family:'CaudexRegular', serif; background:rgba(245,245,245,.85); color:#000; box-shadow:0 10px 30px rgba(0,0,0,.3); animation:slideInUp 1s ease-out .6s both; }
.joe-blue-btn:hover{ transform:translateY(-3px); box-shadow:0 15px 40px rgba(0,0,0,.4); }
#joe-blue-btn.playing{ border-color:#fff !important; border-width:2px; box-shadow:none; transform:scale(1.02); }
.joe-blue-btn:active{ transform:translateY(-1px); }

/* ===============================
   Products
   =============================== */
.products-section{ padding:4rem 2rem; max-width:1400px; margin:0 auto; }
.section-header{ text-align:center; margin-bottom:3rem; }

.section-title{
  font-family:'UnfairStyle', sans-serif;
  font-size:clamp(2.5rem, 6vw, 4rem);
  margin-bottom:1rem; color:#fff; font-weight:normal; /* Outline fix */
}
.section-subtitle{ font-family:'CaudexRegular', serif; font-size:1.2rem; color:#fff; font-weight:300; }

.products-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(350px, 1fr)); gap:2rem; }

/* Cards (stärker abdunkeln + Blur) */
.product-card{
  background:rgba(0, 0, 0, 0.7);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px; overflow:hidden;
  transition:all .4s cubic-bezier(.4,0,.2,1); cursor:pointer; position:relative;
}
.product-card:hover{ transform:translateY(-8px); box-shadow:0 25px 50px rgba(0,0,0,.35); border-color:rgba(200,134,13,.4); }

.product-image{ position:relative; height:250px; overflow:hidden; }
.product-image img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.product-card:hover .product-image img{ transform:scale(1.1); }

.product-price{
  position:absolute; top:1rem; right:1rem; background:rgba(127,27,29,.85); color:#fff;
  padding:.5rem 1rem; border-radius:0; border:1px solid #f5f5f5; font-weight:600; font-size:.9rem; backdrop-filter:blur(10px);
}

.product-content{ padding:2rem; position:relative; z-index:10; }

.product-title{
  font-family:'CaudexRegular', serif;
  font-size:1.4rem; font-weight:600; margin-bottom:.5rem; color:#fff; transition:color .2s ease;
}
.product-card:hover .product-title,
.product-title:hover{ color:var(--accent) !important; }

.product-description{
  font-family:'CrimsonItalic', serif;
  color:#cccccc; font-size:.95rem; margin-bottom:1.5rem; line-height:1.5;
}

.product-features{ list-style:none; margin-bottom:1.5rem; font-family:'CrimsonItalic', serif; }
.product-features li{ color:#aaaaaa; font-size:.9rem; margin-bottom:.3rem; position:relative; padding-left:1rem; }
.product-features li::before{ content:'✓'; position:absolute; left:0; color:#c8860d; font-weight:bold; }

.product-buttons{ display:flex; gap:1rem; flex-wrap:wrap; }
.product-btn{
  padding:.8rem 1.5rem; border:1px solid #f5f5f5; border-radius:0; font-size:.9rem; font-weight:500;
  text-decoration:none; transition:all .3s ease; cursor:pointer; position:relative; overflow:hidden; flex:1; text-align:center; min-width:150px;
  display:inline-flex; align-items:center; justify-content:center; white-space:nowrap;
}

.product-btn-primary{ font-family:'CaudexRegular', serif; background:rgba(127,27,29,.85); color:#fff; box-shadow:0 8px 25px rgba(0,0,0,.3); }
.product-btn-primary:hover{ transform:translateY(-2px); box-shadow:0 12px 35px rgba(0,0,0,.4); }
.product-btn-secondary{ font-family:'CaudexRegular', serif; background:rgba(245,245,245,.85); color:#000; }
.product-btn-secondary:hover{ background:rgba(245,245,245,.95); transform:translateY(-2px); }

/* ===============================
   Scroll Indicator
   =============================== */
.scroll-indicator{ position:absolute; bottom:30px; left:50%; transform:translateX(-50%); color:#ccc; animation:bounce 2s infinite; text-align:center; z-index:10; }
.scroll-arrow{ display:block; margin:0 auto .5rem; width:24px; height:24px; opacity:.8; }
.scroll-text{ font-family:'CrimsonItalic', serif; font-size:.8rem; margin-top:.5rem; }
@keyframes bounce{
  0%,20%,50%,80%,100%{ transform:translateX(-50%) translateY(0); }
  40%{ transform:translateX(-50%) translateY(-10px); }
  60%{ transform:translateX(-50%) translateY(-5px); }
}

/* ===============================
   Footer
   =============================== */
.footer{
  font-family:'CaudexRegular', serif;
  padding:3rem 2rem; text-align:center;
  background:rgba(0,0,0,0.9);
  backdrop-filter:blur(10px);
  border-top:1px solid rgba(255,255,255,.12);
}
.footer a{ color:#c8860d; text-decoration:none; transition:color .2s ease; }
.footer a:hover{ color:var(--accent) !important; }

/* ===============================
   Animations
   =============================== */
@keyframes slideInUp{ from{opacity:0; transform:translateY(50px);} to{opacity:1; transform:translateY(0);} }

/* ===============================
   Responsive
   =============================== */
@media (max-width:768px){
  .nav-container{ padding:0 1rem; }
  .nav-links{ gap:1rem; }
  .hero-content{ padding:0 1rem; }
  .hero-buttons{ flex-direction:column; align-items:center; }
  .btn{ width:100%; max-width:300px; }
  .products-section{ padding:2rem 1rem; }
  .products-grid{ grid-template-columns:1fr; gap:1.5rem; }
  .product-buttons{ flex-direction:column; }
  .product-btn{ flex:none; }
}

/* ===============================
   Layers
   =============================== */

/* Grain Video unter Content, über dem Body-Background */
#grain-video{
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:0;             /* unter Content */
  pointer-events:none;
  mix-blend-mode:overlay;
  opacity:.8;           /* Stärke anpassbar */
}

/* Particles über Grain, unter Content */
#particle-canvas{
  position:fixed; inset:0;
  pointer-events:none;
  z-index:2;
}

/* ===============================
   Video Modal
   =============================== */
.video-modal{
  position:absolute; left:0; width:100%; height:100vh;
  background:rgba(0,0,0,.9); display:none; align-items:center; justify-content:center;
  z-index:20000;
}
.video-modal.active{ display:flex; }
.video-container{ max-width:90%; max-height:90%; }

/* Controls verstecken (WebKit) */
#modal-video::-webkit-media-controls { display:none !important; }
#modal-video{
  width:100%; height:auto; box-shadow:0 0 30px rgba(0,0,0,.7);
}

/* ===============================
   Fix: Force true red hover color
   =============================== */
.logo:hover,
.nav-links a:hover,
.product-title:hover,
.footer a:hover {
  color: rgb(127, 27, 29) !important;
  mix-blend-mode: normal !important; /* verhindert Pastell-Effekt durch Overlays */
}
