/* 
    Premiumpokale Design System
    Colors: Obsidian Black, Venetian Gold, Off-White
*/
:root {
    --color-bg: #05070a;
    --color-primary: #b4b9c3; /* Luminous Grey */
    --color-text: #ffffff;
    --color-text-muted: #d1d5db;
    --gap-section: 6rem;
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: transparent;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #05070a url('../assets/hintergrund.jpeg') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(5, 7, 10, 0.9) 0%, rgba(5, 7, 10, 0) 100%);
}

.logo {
    height: 80px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    position: relative;
}

.hero-content {
    max-width: 480px;
    margin: 0;
    margin-left: 10vw; 
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

/* Sections */
section {
    padding: var(--gap-section) 0;
}

/* Gallery Section */
.gallery-section {
    padding: var(--gap-section) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    box-shadow: none;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85) grayscale(15%);
}


.gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.05) grayscale(0%);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid rgba(180, 185, 195, 0);
    transition: border-color 0.6s ease;
    pointer-events: none;
    border-radius: 8px;
}

.gallery-item:hover::after {
    border-color: rgba(180, 185, 195, 0.5); /* Subtle grey border on hover */
}


/* Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(20, 25, 35, 0.35); /* Elegant glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, opacity 0.2s;
}

button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0;
    opacity: 0.5;
    font-size: 0.8rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
}

.kepat-logo {
    display: block;
    margin: 2rem auto 0;
    height: 120px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.kepat-logo:hover {
    opacity: 1;
}

/* Premium Animated Button */
.btn-premium {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(180, 185, 195, 0.1);
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(180, 185, 195, 0.2);
}

.btn-premium span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-premium:hover {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 30px rgba(180, 185, 195, 0.6);
    transform: translateY(-3px);
}

.btn-premium:hover span {
    transform: translateX(5px);
}

/* Metallic Shine Sweep */
.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: sweep 4s infinite;
}

@keyframes sweep {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Article List Layout */
.article-list-section {
    padding-top: 150px;
    padding-bottom: 6rem;
    max-width: 900px;
    margin: 0 auto;
}

.article-list-header {
    text-align: center;
    margin-bottom: 4rem;
}

.article-row {
    display: flex;
    align-items: center;
    background: rgba(20, 25, 35, 0.35); /* Glassmorphism instead of solid black */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.article-row:hover {
    transform: translateY(-2px);
    border-color: rgba(180, 185, 195, 0.3);
}

.article-image {
    flex: 0 0 40%;
    background: #0a0a0a;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.article-info {
    flex: 1;
    padding: 2.5rem;
}

.article-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.article-specs {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.article-specs p {
    margin-bottom: 0.8rem;
}

.article-specs .label {
    font-weight: 700;
    color: #ffffff;
    display: inline-block;
    width: 170px;
}

.price-label {
    color: var(--color-primary) !important;
}

.btn-small {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: white;
    color: black;
}

@media (max-width: 768px) {
    .article-row {
        flex-direction: column;
        align-items: stretch;
    }
    .article-image {
        flex: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .article-info {
        padding: 1.5rem;
    }
    .article-specs .label {
        display: block;
        width: 100%;
        margin-bottom: 0.2rem;
    }
}

/* Lightbox */

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 10, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    transition: opacity 0.15s ease;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #ffffff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1005; /* Must be higher than the arrows! */
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 0;
    height: 100%;
    width: 15%; /* Reduced from 25% so they don't cover the screen center / close button */
    display: flex;
    align-items: center;
    cursor: pointer;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
    font-size: 3.5rem;
    border: none;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(128, 128, 128, 0.1);
    color: #ffffff;
    transform: none; /* Override global button hover */
}

.lightbox-prev {
    left: 0;
    justify-content: flex-start;
    padding: 0 0 0 5%;
}

.lightbox-next {
    right: 0;
    justify-content: flex-end;
    padding: 0 5% 0 0;
}

/* -----------------------------
 * Shopping Cart UI (Floating)
 * ----------------------------- */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: inherit;
    /* Pop-up mechanism */
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px) scale(0.8);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
}

.cart-icon {
    width: 60px;
    height: 60px;
    background: rgba(20, 25, 35, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.cart-icon:hover {
    transform: scale(1.08);
    border-color: var(--color-primary);
}

/* Bounce Animation when item is added */
@keyframes cartBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    60% { transform: scale(0.9); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-icon.bounce {
    animation: cartBounce 0.5s ease-in-out;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF3B30;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #05070a;
}

.cart-dropdown {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart.open .cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown h4 {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.cart-items-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.cart-dropdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}

/* -----------------------------
 * Article Checkbox & Qty
 * ----------------------------- */
.article-actions {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    color: #ffffff;
    user-select: none;
}

.checkbox-wrap input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-text-muted);
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: all 0.2s;
    background: transparent;
}

.checkbox-wrap input[type="checkbox"]:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-wrap input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    color: white;
    font-size: 18px;
    left: 3px;
    top: -2px;
}

.qty-container {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    padding: 0.3rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.qty-container label {
    font-size: 0.8rem;
    margin-right: 0.5rem;
    color: var(--color-text-muted);
    padding-left: 0.5rem;
    margin-bottom: 0;
}

.qty-input {
    width: 65px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    outline: none;
    padding-right: 0;
}

/* Hide number arrows for a cleaner look */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* -----------------------------
 * Quick-View Modal
 * ----------------------------- */
.quickview-modal {
    display: none; /* hidden default, changed via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.quickview-modal.visible {
    opacity: 1;
}

.quickview-content {
    background: rgba(30, 35, 45, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.quickview-modal.visible .quickview-content {
    transform: scale(1);
}

.close-quickview {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-quickview:hover {
    color: var(--color-primary);
}

.quickview-body {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.quickview-left {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quickview-left img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.quickview-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quickview-right h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

/* Clickable Images in Article List */
.article-image img {
    cursor: zoom-in;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.article-image img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}
