html,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

html{
    display: flex;
}
header{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    width: 100vw;
    height: 30vh;
    position: fixed;
    top: 0;
    overflow: hidden;
    transition: height 0.18s ease-in-out, padding 0.18s ease-in-out;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(180deg, #F9D973, #E7B12C) 1;
    z-index: 5;
}
header:hover{
    height: 35vh;
}
header.scrolled{
    height: 20vh;
    padding: 0 1rem;
}
header.scrolled:hover{
    height: 25vh;
}
#video{
	width: 100%;
	height: 100%;
	position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
	object-fit: cover;
}
body{
    text-align: center;
    font-weight: bolder;
    font-family: "legitima", serif;
    margin: 0;
    width: 100vw;
    height: 300vh;
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow-x: hidden;
}
main{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 30vh; /* Startwert */
    transition: margin-top 0.18s ease-in-out; /* Smooth Animation */
}
h1{
    font-size: 5vh;
    margin: 2%;
}
h2{
    font-size: 4vh;
    margin: 2%;
}
#intro{
    font-size: 3vh;
    margin: 2%;
    text-align: justify;
}
/* Main anpassen wenn gescrollt */
main.scrolled-main {
    margin-top: 20vh;
}

/* Main anpassen wenn Header gehovered wird */
header:hover ~ main {
    margin-top: 35vh; /* +5vh beim Header-Hover */
}

/* Main anpassen wenn gescrollter Header gehovered wird */
header.scrolled:hover ~ main.scrolled-main {
    margin-top: 25vh; /* +5vh beim gescrollten Header-Hover */
}
.row{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: calc(100vw / 3);
    height: 100%;
}
#menu{
    font-size: 3vh;
}
#hamburger{
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: visible;
}
.topmenu { 
    height: auto; 
    max-height: 0;
    overflow: hidden; 
    pointer-events: none;
    transition: all 0.1s;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 23%;
    z-index: 30;
}
#hamburg:checked + .hamburg  + .topmenu { 
    height: 100%;
    max-height: 30vh;
    overflow: visible;
    pointer-events: auto;
}
label.hamburg { 
    width: 100%;
    height: 100%; 
    flex-wrap: wrap;
    margin-left: auto; margin-right: auto;
    border-radius: 4px; 
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    overflow: visible;
}
.hamburg:hover{
    width: 100%; 
    height: 100%; 
}
 .line:nth-child(1):hover {
    background-color: gold;
    transform: rotate(0deg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 1.0);
}
.line:nth-child(3):hover {
    background-color: gold;
    transform: rotate(0deg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 1.0);
}

input#hamburg {display:none}

.line:hover{
    height: 1%;
    width: 10%;
    padding: 0.5%;
    margin: 1%;
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
}
.line{
    height: 3%; width: 10%; 
    background: black;
    border-radius: 5%;
    display: flex;
    transition: 0.1s; 
    transform-origin: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 0%;
    margin: 0.5%;
    cursor: pointer;
}

 .line:nth-child(1) { top: 5%; }
 .line:nth-child(2) { top: 5%; }
 .line:nth-child(3) { top: 5%; }
 

#hamburg:checked + .hamburg .line:nth-child(1) {
    transform: rotate(-45deg) translate(0%, 0%);
}

#hamburg:checked + .hamburg .line:nth-child(2) {
    opacity: 0;
}

#hamburg:checked + .hamburg .line:nth-child(3) {
    transform: rotate(45deg) translate(0%, 0%);
}
#EDZADa, #EDZAD {
    display: flex;
    justify-content: center;
    align-items: center;
}
#EDZADa{
    width: calc(100vw / 9);
    height: 90%;
    z-index: 2;
}
#EDZAD{
    object-fit: contain;
    width: calc(100vw / 3);
    height: 100%;
    transition: transform 0.3s ease-in-out;
}
#EDZAD:hover{
    transform: scale(1.08);
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
#hover-Knopf{
    width: calc(100vw / 11);
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease-in-out;
}
#Anmeldeknopf{
    object-fit: contain;
    width: 20%;
    height: auto;
    cursor: pointer;
    animation: pulse-rotate 5s infinite;
    animation-fill-mode: forwards;
    transition: transform 0.3s ease-in-out;
}
@keyframes pulse-rotate {
  0% { transform: rotate(90deg) scale(1); }
  50% { transform: rotate(90deg) scale(1.15); }
  100% { transform: rotate(90deg) scale(1); }
}
#Abmeldeknopf{
    display: none;
    object-fit: contain;
    max-width: 100%;
    max-height: 20%;
}
#hover-Knopf:hover{
    transform: scale(1.5);
}

/* Bildergalerie Swiper Styles */
.bildergalerie {
    margin: 4rem 0;
    padding: 2rem;
}

.bildergalerie h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2.5rem;
}

.gallery-slider {
    max-width: 350px;
    width: 100%;
    margin: 0 auto 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    /* Neu hinzugefügt */
    width: 100%;
    max-width: 350px;
    aspect-ratio: 2/3;
}

.gallery-slider {
  position: relative;
}
.gallery-slider .zoom-lens {
  position: absolute;
  pointer-events: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid gold;
  background: rgba(255,255,255,0.3);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  display: none;
  z-index: 10;
}
.gallery-slider.zoom-active .zoom-lens {
  display: block;
}
.gallery-slider img.zoomed {
  transform: scale(2);
  cursor: zoom-out;
  transition: transform 0.3s;
}
.gallery-slider img {
  cursor: zoom-in;
}

.gallery-slider .swiper-wrapper,
.gallery-slider .swiper-slide {
    height: 100%;
}

.gallery-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: linear-gradient(45deg, #f0f0f0, #fff);
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Swiper Navigation */
.gallery-slider .swiper-button-next,
.gallery-slider .swiper-button-prev {
    color: gold;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-top: -25px;
}

.gallery-slider .swiper-button-next:hover,
.gallery-slider .swiper-button-prev:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.gallery-slider .swiper-button-next::after,
.gallery-slider .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Swiper Pagination */
.gallery-slider .swiper-pagination-bullet {
    background: gold;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.gallery-slider .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Thumbnail Navigation */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.gallery-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.gallery-thumbnails img:hover {
    border-color: gold;
    opacity: 1;
    transform: scale(1.05);
}

/* Produkt-Galerie und Info nebeneinander */
.produkte-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2em;
}

.produkt-karte {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.bildergalerie {
    height: 100%;
    min-width: 400px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: stretch;
}

.produkt-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-left: 3vw;
    margin-top: 0;
    text-align: left;
    height: 100%;
}

.produkt-info h4 {
    font-size: 200%;
    font-weight: bolder;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.produkt-title {
    margin-top: 0;
}

@media (max-width: 900px) {
    .produkte-grid, .produkt-karte {
        flex-direction: column;
        align-items: center;
    }
    .bildergalerie {
        margin: 0 auto 2rem auto;
        min-width: 0;
        max-width: 100%;
        align-items: center;
    }
    .produkt-info {
        margin-left: 0;
        text-align: center;
        align-items: center;
    }
}
#ecru {
    list-style: none;
    padding: 0;
    margin: 0;
}
#ecru li {
    position: relative;
    margin-bottom: 1.2em;
    padding-left: 2em;
    line-height: 1.4;
    text-indent: 0;
    display: block;
}

#ecru li::before {
    content: "►";
    color: #800020;
    position: absolute;
    left: 0;
    top: 0.05em; /* Noch näher an die Mitte der ersten Zeile */
    font-size: 1.2em;
    line-height: 1;
}
.kauf-knopf {
    background: linear-gradient(90deg, #C0C0C0 0%, #E0E0E0 100%);
    color: #222;
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 0.5em 1.2em;
    font-size: 1em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin-top: 0.5em;
    transform: scale(1);
}
.kauf-knopf:hover {
    background: linear-gradient(90deg, gold 0%, #FFD700 100%);
    color: #800020;
    transform: scale(1.1);
}

/* Galerie Styles */
.produkte-grid {
  display: flex;
  align-items: flex-start;
  gap: 2em;
}
.bildergalerie {
  margin-top: 1.4em;
}
.gallery-slider {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 2/3;
  margin: 0;
  height: 525px; /* Höhe wie die Überschrift, anpassbar je nach Schriftgröße */
}
.gallery-slider .swiper-wrapper,
.gallery-slider .swiper-slide {
  height: 100%;
}
.gallery-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Logo Styles */
.logo-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 3% auto 0 auto;
  transform: scale(1.5);
}
#bildPopupModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: auto;
}
#bildPopupModal .popup-img-wrapper {
  width: 90vw;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  scrollbar-width: none; /* Firefox */
}
#bildPopupModal .popup-img-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
#popupImg {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  display: block;
  cursor: zoom-in;
}
#popupImg.zoomed {
  width: 180vw;
  height: 180vh;
  cursor: grab;
}

button,
input,
textarea,
select{
    font-family: "legitima", serif;
}

/* Einheitliche Header-Control-Groessen wie auf ecruselvedgedenim.php */
.line {
    height: 7px !important;
    width: 78px !important;
    border-radius: 8px !important;
    display: block !important;
    margin: 7px 0 !important;
    padding: 0 !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s !important;
    box-shadow: 0 0 6px rgba(0,0,0,0.3) !important;
}

.line:hover {
    background: gold !important;
    box-shadow: 0 0 10px gold !important;
}

#Anmeldeknopf {
    width: 31% !important;
}

#Abmeldeknopf {
    max-height: 31% !important;
}

/* Datenschutz: Lesebereich im bestehenden EDZAD-Layout. */
body.privacy-page {
    height: auto;
    min-height: 100vh;
    margin: 0;
    justify-content: flex-start;
    font-family: "legitima", Georgia, serif;
    color: #292118;
    background: #fff;
}
body.privacy-page .privacy-main,
body.privacy-page header:hover ~ .privacy-main,
body.privacy-page header.scrolled:hover ~ .privacy-main {
    height: auto;
    margin-top: 30vh;
    padding: clamp(20px, 4vw, 60px) clamp(16px, 4vw, 64px);
    box-sizing: border-box;
}
.privacy-document {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 52px);
    box-sizing: border-box;
    border: 3px solid transparent;
    border-radius: 15px;
    background: linear-gradient(#fffdf8, #fffdf8) padding-box, var(--ee-gallery-gold-gradient) border-box;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.65;
    text-align: left;
    overflow-wrap: anywhere;
}
.privacy-document h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 500;
    text-align: center;
    color: #800020;
}
.privacy-document h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    line-height: 1.25;
    margin: 0 0 16px;
    color: #800020;
}
.privacy-date { text-align: center; font-size: .9em; }
.privacy-document section { margin-top: 32px; scroll-margin-top: 27vh; }
.privacy-document address { font-style: normal; }
.privacy-document a { color: #800020; text-underline-offset: 3px; }
.privacy-document a:hover { color: #926b13; }
.privacy-contents { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 20px 0; border-block: 1px solid #e2c97a; }
.privacy-document li { margin-block: 10px; }
.privacy-document code { font-size: .9em; }
.privacy-footer { width: 100%; padding: 16px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: .9rem; letter-spacing: 2px; }
.privacy-footer a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .privacy-page header { transition: none; } }