/* Grundlegendes Styling */
@media (max-width: 600px) {
  .menu a {
    font-size: 12px;
  }
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
/*  font-size: 1.2rem;
  font-style:normal;
  */
  cursor: default;
 font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size:1.3rem;


}

body {
  display: flex;
  flex-direction: lumn;
  min-height: 100vh;
}


.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  color: white;
  padding: 0rem;
  text-align: center;
}

.menu {
  position: fixed;
  top: 102px;
  height: 50px;
  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;
}

.menu a {
  flex: 1;
  display: flex;             /* Flex für zentrierten Text */
  justify-content: center;   /* horizontal zentrieren */
  align-items: center;       /* vertikal zentrieren */
  height: 100%;              /* füllt die Höhe des li */
  text-decoration: none;
  color: white;
  transition: background-color 0.3s, color 0.3s;
    padding: 0 10px;          /* optional: etwas horizontaler Abstand */
  box-sizing: border-box;   /* Padding zählt zur Gesamtbreite */
}

.menu a:hover {
  background-color: #a1a1a1;
  color: #000;
}

.menu a.active {
  background-color: #ff9800; /* wie beim hover */
  color: #000000;
}

.produkt-container {
  position: absolute;
  top:154px;
  bottom: 30px;     /* Footer */
  left: 0;
  right: 0;
  overflow-y: auto; /* Scroll NUR hier */
  background-color: #000000;
  padding: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  grid-auto-rows: min-content;
  flex: 1;
}

.Warenkorb{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: #2c3e50;
  color: white;
  text-align: center; 
}


/* 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.9rem;
       
  width: 120px;
  height: 35px;
}
  
/*  cursor:
    url("../SMALL/ALLGEMEIN/Cursor.png") 5 5,
    auto;

*/

.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.9rem;
  width: 120px;
  height: 35px;
}


.farben-leiste {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.farbkreis {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ccc;
  position: relative;
  overflow: hidden; /* Wichtig, damit die Bilder nicht überstehen */
  display: inline-block;
  pointer-events: auto;
    transition: transform 0.2s 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);         
  z-index: 5000;                  
  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.9rem;
  align-items: center;
}

.product-info dt {
  position: relative;
  color: #3c3c3c;
  white-space: nowrap;
}

.product-info dd {
  margin: 0;
  font-size: 1.5rem;
  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: 20px;
  margin-left: 30px;
  justify-content: center;
  padding: 50px;
}

.card {
  width: auto;
  height: 120px;
  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: 2em;
  font-weight: 300;
  padding:0px;
  margin: 4px;
  background-color: #ff9800;
  border-radius: 8px;
  cursor:pointer;  

}

.countertxt {
  font-size: 1em;
  padding:0 20px;
  margin-top: 10px;

}

.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: 0px;
    flex: 0 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;
  width: 50px;   /* Größe der Bilder anpassen */
  height: auto;
  opacity: 0;
  transition: all 0.3s 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.5em;   
    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; 
}


/* 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: "Segoe UI", Roboto, 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: 22px;
    color: var(--primary);
    text-align: center;
}

/* Form */

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--primary);
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 14px;
}

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: 15px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #2980b9;
}

/* Messages */

.message {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 14px;
}

.success {
    background: #eafaf1;
    color: var(--success);
}

.error {
    background: #fdecea;
    color: var(--error);
}

/* Links */

.link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    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: 13px;
}

.modal.hidden { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.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;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 22px;
  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; }