/* ===== GENERAL ===== */

body{
font-family: Arial, Helvetica, sans-serif;
margin:0;
background:#0b0d12;
color:white;
transition:0.3s;
}

body.light{
background: rgb(199, 199, 199);
color:#111;
}

/* ===== HEADER ===== */

header{
display:flex;
justify-content:center;
align-items:center;
padding:30px;
position:relative;
border-bottom:1px solid rgba(255,255,255,0.05);
}

.logo{
font-size:30px;
letter-spacing:2px;
font-weight:bold;
}

/* ===== TOP RIGHT ICONS ===== */

.icons{
position:absolute;
right:25px;
top:20px;
display:flex;
gap:14px;
}

.icons img{
width:42px;
height:42px;
cursor:pointer;
padding:6px;
border-radius:10px;
background:#151822;
transition:0.2s;
}

.icons img:hover{
transform:scale(1.08);
background:#1e2333;
}

body.light .icons img{
background: gray;
}

/* ===== BACK BUTTON ===== */

.back{
position:absolute;
left:25px;
top:22px;
width:42px;
cursor:pointer;
padding:6px;
border-radius:10px;
background:#151822;
}

body.light .back{
background: gray;
}

/* ===== HOMEPAGE GRID ===== */

.main-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:25px;
max-width:900px;
margin:80px auto;
padding:20px;
}

/* ===== CATEGORY CARDS ===== */

.card{
background:#12151f;
border-radius:14px;
padding:35px 20px;
text-align:center;
cursor:pointer;
transition:0.25s;
box-shadow:0 0 20px rgba(0,0,0,0.4);
}

.card:hover{
transform:translateY(-6px);
box-shadow:0 10px 40px rgba(0,0,0,0.7);
}

.icon{
font-size:40px;
margin-bottom:12px;
}

.title{
font-size:15px;
opacity:0.9;
}

body.light .card{
background:gray;
}

/* ===== PRODUCT GRID ===== */

.products{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
gap:22px;
padding:40px;
max-width:1400px;
margin:auto;
}

/* ===== PRODUCT CARD ===== */

/* ===== PRODUKT-KARTE ===== */
/* ===== PRODUKT-KARTE ===== */
.product {
    background: #11141c;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.2s;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
    height: 280px; /* etwas kompakter als vorher */
}

/* Hover-Effekt */
.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

/* ===== BILD OBEN ===== */
.product img {
    width: 100%;           /* volle Breite */
    height: 120px;         /* Bild wird kleiner, damit Text Platz hat */
    object-fit: contain;    /* Bild passt sich an, nichts wird abgeschnitten */
    display: block;
    border-radius: 12px 12px 0 0;
    background-color: #111; /* optional, falls Bild kleiner ist */
}

/* ===== INFOS UNTEN ===== */
.product-info {
    padding: 8px 10px;
    text-align: center;
    flex: 1;               /* nimmt den restlichen Platz ein */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Text vertikal zentriert */
}

/* Texte */
/* ===== INFOS INNERHALB DER PRODUKT-KARTE ===== */
.product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* verteilt Name, ID, Preis vertikal */
    height: 100%;                   /* nutzt die gesamte Höhe unter dem Bild */
    padding: 10px 8px;
    text-align: center;
}

/* Produktname oben */
.product-name {
    font-size: 30px;
    font-weight: bold;
    margin: 0;                     /* kein extra Abstand */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ID direkt unter Name */
.product-id {
    font-size: 1.1rem;
    color: #888;
    margin-top: 4px;               /* kleiner Abstand zum Namen */
}

/* Preis weiter unten */
.product-price {
    color: #00e5ff;
    font-weight: bold;
    font-size: 23px;
    margin-top: auto;              /* schiebt den Preis nach unten */
}
/* ===== DISCORD TEXT ===== */

#discord{
    width: 100%;
}

.discordText {
    text-align: center;
    font-size: 13px;
    margin: 10px auto 30px auto; /* Abstand oben und unten */
    position: static; /* NICHT relative */
}
.discordText a {
    color: #00e5ff;
    text-decoration: none;
    font-weight: bold;
}
/* ===== LIGHT MODE FIXES ===== */

body.light .product{
background: gray;
box-shadow:0 0 10px rgba(0,0,0,0.15);
}

body.light .product-id{
color:#666;
}

body.light .product-price{
color:#007bff;
}

/* ===== PRODUKT-DETAILSEITE ===== */
.product-detail {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== EXTRA BILD OBEN ===== */
.product-detail img {
  width: 100%;
  max-height: 300px;       /* maximale Höhe */
  height: auto;            /* proportional skalieren */
  object-fit: contain;     /* ganze Bild sichtbar */
  border-radius: 12px;
  display: block;
  background-color: #111;  /* falls Bild kleiner ist */
}

/* ===== TEXT-BEREICH ===== */
.product-detail .info-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-detail h2 {
  font-size: 28px;
  margin: 0;
  word-break: break-word;  /* längere Namen umbrechen */
}

.product-detail p {
  font-size: 18px;
  margin: 2px 0;
  word-break: break-word;
}

/* ===== DETAILS UNTEN ===== */
.product-detail .info-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.product-detail .info-bottom h3 {
  margin: 5px 0;
  font-size: 22px;
}

.product-detail .info-bottom p {
  font-size: 16px;
  margin: 2px 0;
}

/* ===== LIGHT MODE ===== */
body.light .product-detail {
  color: #111;
}