/* Grundlegendes Styling */
@media (max-width: 600px) {
  .menu a {
    font-size: 12px;
  }
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-style:normal;
  cursor: default;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  color: white;
  padding: 0;
  text-align: center;
}

.menu {
  position: fixed;
  top: 101px;
  height: 35px;
  list-style: none;          /* Aufzählungszeichen weg */
  margin: 0;
  padding: 0;
  display: flex;             /* horizontale Anordnung */
  background-color: #333;    /* Hintergrund Menüband */
   width: 100%;    
   z-index:1000;    
}

.menu li {
  flex: 1 1 0;
  border-right: 1px solid rgba(255, 255, 255, 0.3); /* Weiß mit 30% Deckkraft wirkt edler */
}

/* Der letzte Punkt bekommt keine Trennlinie nach rechts */
.menu li:last-child {
  border-right: none;
}

.menu a {
    display: flex;
    justify-content: center; /* Zentriert Text UND Badge als Gruppe */
    align-items: center;
    gap: 8px;                /* Festgelegter Abstand zum Text */
    position: relative;      /* Falls du doch absolut positionieren willst */
    height: 100%;
    text-decoration: none;
    color: white;
}

.menu a:hover {
  background-color: #a1a1a1;
  color: #000;
}

.menu a.active {
  background-color: #ff9800; /* wie beim hover */
  color: #000000;
}

.produkt-container {
  position: absolute;
  top:137px;
  bottom: 31px;     /* Footer */
  left: 0;
  right: 0;
  overflow-y: auto; /* Scroll NUR hier */
  background-color: #000000;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: min-content;
  flex: 1;
}


/* Spinner Animation */
.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 50px auto;
  z-index: 20000;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none;
}

.produkt-card {
  width: auto;
  background: rgb(235, 235, 235);
  padding: 8px;
  border-color: #c7c6c6;
  border-width: 2px;
  border-radius: 12px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.509);
  margin: 0px;
}

/* Das Fenster */
.bild-viewport {
  width: 100%;
  aspect-ratio: 3/2;
  border-color: #4b4b4b;
  border-width: 1px;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
    cursor: zoom-in;
}

/* JEDER Farbmix ist ein eigener Layer, der über den anderen liegt */
.color-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition:
  opacity 1.5s ease,
  filter 0.5s ease,
  transform 1s cubic-bezier(0.5, 0, 0.2, 1);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;

  /* NEU: Optimierung für den Browser-Renderer */
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}


.color-layer.active {
  opacity: 1;
  filter: blur(0px);
  pointer-events: auto;
}

.slide-img {
  flex: 0 0 100%;
  width: 100%;
  object-fit: contain;
}

/* Navigation */
.AnsichtWecheln {
  
  position: absolute;
  bottom: 0%;
  z-index: 10;
  background: rgba(0, 0, 0, 0.2);
  border: 2px;
  color: rgb(0, 0, 0);
  padding: 0px; 
  border-radius: 5px;
     left: 0;
  font-size:0.7rem;
       
  width: 110px;
  height: 25px;
}
  

.ZoomGross {
  position: absolute;
  bottom: 0%;
  z-index: 10;
  background: rgba(0, 0, 0, 0.2);
  border: 2px;
  color: rgb(0, 0, 0);
  padding: 0px; 
  border-radius: 5px;
  cursor:
    url("../SMALL/ALLGEMEIN/Cursor.png") 5 5,
    auto;

  right: 0;
  font-size:0.7rem;
  width: 110px;
  height: 25px;
}


.farben-leiste {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.farbkreis {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #000000;
  position: relative;
  overflow: hidden; /* Wichtig, damit die Bilder nicht überstehen */
  display: inline-block;
  opacity: 0.7;
  pointer-events: auto;
    transition: transform 0.8s ease-in-out; /* Auch für das "Zurückschrumpfen" */
  cursor: url("../SMALL/ALLGEMEIN/Cursor.png") 5 5, auto;
}

/* Wir nutzen die Pseudo-Elemente ::before und ::after für die zwei Hälften */
.farbkreis::before, .farbkreis::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;

  pointer-events: none;
}

/* Die linke/obere Hälfte (F1) */
.farbkreis::before {
  background-image: var(--img-left);
  /* Trennung bei 45 Grad */
  clip-path: polygon(0 0, 100% 0, 0 100%); 
}

/* Die rechte/untere Hälfte (F2) */
.farbkreis::after {
  background-image: var(--img-right);
  /* Das Gegenstück dazu */
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.farbkreis.marked, .farbkreis.hover{
border-color: rgb(0, 0, 0); 
  transform: scale(1.2);         
  transition: transform 0.2s ease-in-out; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);  
}

.product-info-grid {
position: relative;
}

.product-info dl {
  display: grid;
  grid-template-columns: max-content auto;
  row-gap: 0.2rem;
  column-gap: 0.5rem;
  margin-right: 0px;
  font-size: 0.7rem;
  align-items: center;
}

.product-info dt {
  position: relative;
  color: #3c3c3c;
  white-space: nowrap;
}

.product-info dd {
  margin: 0;
  font-size: 1rem;
  color: #000000;
}


.img-zoom-container {
  position: relative;

}


.img-zoom-result {
    position: absolute; /* Wichtig für die Platzierung per JS */
    width: 500px;
    height: 500px;
    border: 3px solid #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    display: none;
    z-index: 10000;
    pointer-events: none; /* Maus ignoriert die Box (kein Flackern) */
    background-repeat: no-repeat;
    background-size: 800%; /* Vergrößerungsfaktor */
    border-radius: 50%;
}

.zoom-trigger {
    cursor: zoom-in;
}

.zoom-trigger {
    cursor: crosshair; /* Ein Fadenkreuz signalisiert Präzision */
}

.zoom-trigger:active {
    cursor: grabbing; /* Die "Hand", wenn gedrückt wird */
}



.full-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  animation: fadeIn 3.5s ease-in forwards;
}

.fade-out-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  animation: fadeOut 3.5s ease-out forwards; /* Oder eine andere Dauer/Easing-Funktion */
}


@keyframes fadeOut {
  from {
    opacity: 1; /* Startet sichtbar */
  }
  to {
    opacity: 0; /* Endet komplett unsichtbar */
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.4;
  }
}


.container {
  display: grid;
  gap: 5px;
  margin-left: 0px;
  justify-content: center;
  padding-right: 40px;
}

.card {
  width: auto;
  
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 14px 16px rgba(0,0,0,0.5);
  text-align: center;
  opacity: 0;
  transform: translatex(-1230px);
  transition: all 1.2s ease-out;
}

/* Der Zielzustand, wenn die Klasse 'active' hinzugefügt wird */
.card.active {
  opacity: 1;
  transform:  translatex(0);
  transition: transform 1.5s ease-out;
}

.counter {
  font-size: 1.3rem;
  font-weight: 500;
  padding:5px;
  margin: 4px;
  background-color: #ff9800;
  border-radius: 3px;
  cursor:pointer;  

}

.countertxt {
  font-size: 0.8rem;
  padding:0 10px;
  margin-top: 5px;

}

.homepagetext{
  opacity: 1;
  color: rgb(255, 255, 255);
  font-weight: 300;
  padding: 30px;
  z-index:2000000;
}

.float-container {
  position: relative;
  top: 10px;
  left: 0px;
  padding: 0px;
  margin: 0px;
  display: flex;
  width: 100vw;
}

.float-child:first-child {
    flex: 0 0 70%;
    margin-left: 10px;
}

.float-child:last-child {
  margin-top: 80px;
    flex: 0 30%;
}


#brillen-container {
    position: absolute;
    left:200px;
    width: 100vw;   /* volle Fensterbreite */
    height: 100px;  /* Höhe des Bereichs anpassen */
    overflow: hidden;
    background: #ff9800; 
}

#brillen-container img {
  position: absolute;
  height: 20px;   /* Größe der Bilder anpassen */
  opacity: 0;
  transition: all 1s ease-in-out;
  transform-origin: center center;
}

.lexxos-logo{
  position: absolute;
  left: 0px;
  background: #ff9800; 
  z-index: 50000;

}


.text-Farbekurz {
 color : gray;   
}

.textFarbelang {
 font-size: 0.65em;   
    margin-left: 0.3em; /* optional Abstand */
}

.hotdeal{
  position:absolute;
  right: 0px;
  top: 0px;
  width: 100px;
  height:100px;
  z-index: 100000;
  animation: shake 1.0s; 
  animation-iteration-count: infinite; 
  pointer-events: none;
}


/* 1. Die Animation definieren */
@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.overlay {
    display: none; /* Initial unsichtbar */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Halbdurchsichtiger schwarzer Hintergrund */
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    z-index: 50000;
}

.overlay img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain; /* Erhält Seitenverhältnis bei Vollbild */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}








:root {
    --primary: #2c3e50;
    --primary-light: #34495e;
    --accent: #3498db;
    --bg: #f4f6f9;
    --white: #ffffff;
    --border: #e0e4ea;
    --success: #27ae60;
    --error: #e74c3c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
 font-family: "Montserrat", sans-serif;
}

body {
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Card Layout */

.cardlogin{
    background: var(--white);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.cardlogin h1 {
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--primary);
    text-align: center;
}

/* Form */

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    color: var(--primary);
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #2980b9;
}

/* Messages */

.message {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1rem;
}

.success {
    background: #eafaf1;
    color: var(--success);
}

.error {
    background: #fdecea;
    color: var(--error);
}

/* Links */

.link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
    color: var(--accent);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}


.admin-container {
    max-width: 900px;
    width: 100%;
    padding: 40px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.admin-table th {
    background: var(--primary-light);
    color: white;
}

.approve-btn {
    background: var(--success);
    padding: 6px 10px;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
}

.modal.hidden { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 500000;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.modal__dialog {
  position: relative;
  width: min(420px, calc(100% - 32px));
  margin: 10vh auto;
  padding: 16px;
  border-radius: 12px;
  background: rgb(255, 174, 0);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 94%;
  font-size: 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}



.error { color: #b00020; margin: 8px 0; }
.success { color: #0a7b34; margin: 8px 0; }
.hint { color: #555; margin: 8px 0; }

label { display: block; margin: 10px 0; }
input { width: 100%; padding: 10px; box-sizing: border-box; }
button { padding: 10px 12px; cursor: pointer; }



.site-footer{
  font-size: 1.2rem;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;              /* passt zu deinem bottom:30px */
  align-items: center;
  justify-content: center;
  background: #111;
  z-index: 9999;             /* wichtig: über dem absolute container */
}

.site-footer a{
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover{
  text-decoration: underline;
}

.footer-box {
  display: flex;
  justify-content: space-between; /* verteilt links & rechts */
  padding: 0 60px;                /* 10px Abstand vom Rand */
  align-items: center; 
}


.menu-cart {
  position: relative;
/*  display: inline-flex; */
  align-items: center;
  gap: 2px;
}

/*
.cart-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  transform: translateX(-15%);
  min-width: 16px;
  height: 16px;
  margin-left: 0px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 300;
  line-height: 18px;
  text-align: center;
}
*/

.cart-badge {
    background-color: #e74c3c; /* Ein kräftiges Rot */
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;      /* Perfekter Kreis */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px;            /* Falls die Zahl zweistellig wird */
    box-sizing: border-box;
}

.hidden { display: none !important; }

.warenkorb{
  background-image: url("/PIC_0/warenkorb.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  cursor: pointer;
  position:absolute;
  right: 0px;
  top: 0px;
  width: 30px;
  height:30px;
  border-style: outset;
  border-width: 1px;
  border-color: #000000;
  background-color: #e4e4e4;
  border-radius: 4px;
  transform-origin: center;
  z-index: 10;

}

.warenkorb.added {
  animation: korb 1s ease-in-out forwards;
}

@keyframes korb {
  0% {transform: scale(1);}
  50% {transform: scale(1.3);}
  100% {transform: scale(1);}
}

.password-wrapper {
  position: relative;
  width:100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px; /* Platz für das Auge */
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}