/*=====================
Schriftart
=====================*/

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-v24-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-v24-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-v24-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}


/*=====================
zeilenumbrüche Bleiben gespeichert
=====================*/

.garage-entry p,
.card p,
.trikot-type {
    white-space: pre-line;
}

/* =====================
Text Design unter Willkommen
===================== */
.hero-text {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ✨ moderner Effekt */
.hero-text {
    background: linear-gradient(90deg, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 👇 leichtes Fade-In */
.hero-text {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}/* =====================
   RESET / BASE
===================== */
body{
margin:0;
font-family:'Poppins', sans-serif;
background:#0f172a;
color:white;
}

html{
scroll-behavior:smooth;
}

/* =====================
   NAVBAR
===================== */
nav{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 40px;
background:#020617;
position:sticky;
top:0;
z-index:1000;
}

nav a{
color:white;
text-decoration:none;
font-weight:500;
margin:0 20px;
transition:0.3s;
}

nav a:hover{
color:#38bdf8;
}

/* =====================
   HERO
===================== */
.hero{
height:90vh;
display:flex;
align-items:center;
justify-content:center;
flex-direction:column;
text-align:center;
}

.hero h1{
font-size:60px;
margin-bottom:10px;
}

.hero p{
font-size:20px;
opacity:0.7;
}

/* =====================
   SECTIONS
===================== */
.section{
padding:100px 20%;
padding-bottom:140px; /* 🔥 Safari Fix */
}

.section h2{
font-size:40px;
margin-bottom:20px;
}

/* =====================
   ⚽ TRIKOT-KARTEN
===================== */
.grid{
display:grid;
grid-template-columns:1fr;
justify-items:center;
gap:24px;
width:100%;
padding:20px 16px;
box-sizing:border-box;
margin:0 auto;
}

.trikot-card{
background:linear-gradient(180deg, #020617 0%, #030b23 100%);
border-radius:28px;
padding:20px 14px 18px;
box-shadow:0 18px 40px rgba(0,0,0,0.28);
transition:0.3s;
text-align:center;
width:100%;
max-width:320px;
margin:0 auto;
box-sizing:border-box;
}

.trikot-card:hover{
transform:translateY(-4px);
}

.trikot-season{
font-size:18px;
font-weight:700;
line-height:1.2;
margin-bottom:6px;
}

.trikot-type{
font-size:13px;
opacity:0.78;
margin-bottom:12px;
min-height:18px;
}

.trikot-image-wrap{
width:100%;
border:none;
background:linear-gradient(180deg, #0f172a 0%, #111c36 100%);
border-radius:34px 34px 20px 20px;
padding:14px 10px 10px;
cursor:pointer;
position:relative;
overflow:hidden;
display:block;
}

.trikot-image-wrap::before{
content:"";
position:absolute;
top:0;
left:50%;
transform:translateX(-50%);
width:34%;
height:14px;
background:#020617;
border-radius:0 0 12px 12px;
z-index:2;
}

.trikot-image-wrap img{
width:100%;
height:320px;
object-fit:cover;
object-position:center 28%;
display:block;
border-radius:18px;
transition:0.3s;
background:#0b1220;
}

.trikot-image-wrap:hover img{
transform:scale(1.02);
}
/* =====================
  Trikots Verstecken
===================== */

.trikot-hidden {
    display: none;
}

.show-more-trikots {
    display: block;
    margin: 28px auto 10px;
    padding: 14px 24px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.show-more-trikots:hover {
    transform: translateY(-2px);
}

/* =====================
   🔍 LIGHTBOX
===================== */
.lightbox{
position:fixed;
inset:0;
background:rgba(2,6,23,0.92);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
padding:20px;
backdrop-filter:blur(8px);
-webkit-backdrop-filter:blur(8px);
}

.lightbox.open{
display:flex;
}

.lightbox-inner{
position:relative;
width:min(1100px, 100%);
height:min(80vh, 820px);
border-radius:24px;
overflow:hidden;
background:
radial-gradient(circle at top right, rgba(96,165,250,0.12), transparent 28%),
linear-gradient(180deg, rgba(16,38,95,0.96), rgba(7,18,36,0.98));
border:1px solid rgba(96,165,250,0.18);
box-shadow:0 25px 80px rgba(0,0,0,0.45);
}

.lightbox-track{
position:relative;
width:100%;
height:100%;
}

.lightbox-track img{
position:absolute;
inset:0;
width:100%;
height:100%;
object-fit:contain;
display:none;
background:#020617;
-webkit-user-drag:none;
}

.lightbox-track img.active{
display:block;
}

.lightbox-btn,
.lightbox-close{
position:absolute;
z-index:3;
border:none;
cursor:pointer;
color:white;
background:rgba(2,6,23,0.65);
backdrop-filter:blur(6px);
-webkit-backdrop-filter:blur(6px);
border:1px solid rgba(255,255,255,0.12);
}

.lightbox-btn{
top:50%;
transform:translateY(-50%);
width:54px;
height:54px;
border-radius:50%;
font-size:24px;
}

.lightbox-btn.prev{ left:16px; }
.lightbox-btn.next{ right:16px; }

.lightbox-close{
top:16px;
right:16px;
width:46px;
height:46px;
border-radius:50%;
font-size:22px;
}

.lightbox-counter{
position:absolute;
left:16px;
bottom:16px;
z-index:3;
padding:8px 12px;
border-radius:999px;
background:rgba(2,6,23,0.6);
border:1px solid rgba(255,255,255,0.10);
color:#dbeafe;
font-size:0.95rem;
}

@media (max-width:700px){
.lightbox-inner{
height:min(72vh, 700px);
border-radius:18px;
}

.lightbox-btn{
width:46px;
height:46px;
font-size:22px;
}
}
/*iwas kp*/

@media (max-width:900px){
.grid{
grid-template-columns:1fr;
padding:16px 8px;
gap:18px;
}

.trikot-card{
max-width:280px;
padding:18px 12px 16px;
}

.trikot-season{
font-size:17px;
}

.trikot-type{
font-size:12px;
margin-bottom:10px;
}

.trikot-image-wrap img{
height:290px;
object-position:center 25%;
}
}
/*=========
   📝 SPIELE
===================== */
.cards{
display:flex;
flex-direction:column;
gap:25px;
padding:20px;
align-items:center;
}

.card{
position:relative;
isolation:isolate;
background:linear-gradient(180deg, #020617 0%, #030b23 100%);
border-radius:28px;
padding:34px;
transition:0.3s;
width:100%;
max-width:560px;
box-shadow:0 18px 40px rgba(0,0,0,0.28);
overflow:hidden;
}

.card:hover{
transform:scale(1.02);
}

.card-slider{
position:relative;
width:100%;
height:260px;
overflow:hidden;
border-radius:22px;
margin-bottom:26px;
background:linear-gradient(180deg, #0f172a 0%, #111c36 100%);
z-index:2;
}

.card-slider img{
position:absolute;
width:100%;
height:100%;
object-fit:cover;
display:none;
border-radius:18px;
}

.card-slider img.active{
display:block;
}

.card h3,
.card p{
position:relative;
z-index:2;
text-align:center;
}

.card h3{
margin:0;
font-size:30px;
font-weight:700;
padding:32px 18px 12px;
}

.card p{
margin:0;
padding:4px 18px 32px;
font-size:22px;
opacity:0.8;
}

.card::after{
content:"";
position:absolute;
left:34px;
right:34px;
top:calc(260px + 60px);
bottom:34px;
background:linear-gradient(180deg, #0f172a 0%, #111c36 100%);
border-radius:22px;
z-index:1;
pointer-events:none;
}

.card-slider button{
position:absolute;
top:50%;
transform:translateY(-50%);
background:rgba(0,0,0,0.6);
color:white;
border:none;
padding:10px 14px;
cursor:pointer;
font-size:24px;
}

.card-slider .prev{left:10px;}
.card-slider .next{right:10px;}/* =====================
   🚗 GARAGE
===================== */
.garage-container{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
}

.garage-column{
background:linear-gradient(180deg, #020617 0%, #030b23 100%);
padding:34px;
border-radius:28px;
box-shadow:0 18px 40px rgba(0,0,0,0.28);
}

.garage-entry{
margin-top:20px;
padding:28px;
background:#0f172a;
border-radius:22px;
}

.garage-entry img{
width:100%;
margin-top:10px;
border-radius:8px;
}

/* GARAGE SLIDER */
.slider-garage{
position:relative;
width:100%;
max-width:700px;
height:clamp(250px, 60svh, 420px);
margin:auto;
margin-bottom:40px;
overflow:hidden;
border-radius:10px;
}

.slider-garage .slide{
position:absolute;
width:100%;
height:100%;
object-fit:cover;
display:none;
}

.slider-garage .slide.active{
display:block;
}

/* Buttons */
.prev,.next{
position:absolute;
top:50%;
transform:translateY(-50%);
background:rgba(0,0,0,0.6);
color:white;
border:none;
font-size:22px;
padding:10px;
cursor:pointer;
}

.prev{left:10px;}
.next{right:10px;}

.car-info{
text-align:center;
margin-top:10px;
opacity:0.8;
}
/* =====================
   📱 MOBILE
===================== */
@media (max-width:900px){

.section{
padding:60px 8%;
padding-bottom:120px;
}

.hero h1{
font-size:38px;
}

.hero p{
font-size:16px;
}

nav{
padding:15px 20px;
}

nav a{
margin:0 10px;
font-size:14px;
}

.garage-container{
grid-template-columns:1fr;
gap:25px;
}

/* 🔥 WICHTIG: NICHT überschreiben mit festen px */
.slider-garage{
height:clamp(220px, 55svh, 350px);
}
.card{
max-width:560px;
padding:28px;
border-radius:28px;
}

.card-slider{
height:260px;
border-radius:22px;
}

.garage-column{
padding:28px;
border-radius:28px;
}

.garage-entry{
padding:24px;
border-radius:22px;
}
}

