Files
luftglanz/pages/gallery.html
Luftglanz ac7088c5ca Initial commit: Luftglanz drone website with integrated AI chat assistant
Features:
- Complete Luftglanz drone cleaning website
- AI chat assistant integrated with OpenAI API
- Expert product advice for AGO Quart and Mellerud cleaning products
- Formal German language support (Sie form)
- Secure PHP backend for API calls
- Responsive design with mobile support
- Product-specific knowledge base
- Safety statements from manufacturers
- Multi-page integration (index, products, services, contact)

Technical components:
- AI chat widget (js/ai-chat.js)
- Chat styling (css/components/ai-chat.css)
- Backend API (ai-chat-api.php)
- Product knowledge base with detailed specifications
- Demo and documentation files
2025-07-08 11:54:37 +02:00

573 lines
20 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Galerie - Luftglanz</title>
<link rel="icon" href="../images/favicon_logo.png" type="image/png">
<link rel="stylesheet" href="../css/normalize.css">
<link rel="stylesheet" href="../css/main.css">
<link rel="stylesheet" href="../css/components/header.css">
<link rel="stylesheet" href="../css/components/footer.css">
<link rel="stylesheet" href="../css/components/hero.css">
<link rel="stylesheet" href="../css/components/forms.css">
<link rel="stylesheet" href="../css/components/mobile-menu.css">
<style>
:root {
--primary-color: #3498db; /* Clean blue primary */
--accent-color: #00c2cb; /* Teal accent */
--secondary-color: #505050;
--bg-light: #f8f9fa; /* Very light background */
--card-bg: #ffffff; /* White card background */
--text-dark: #333333;
--text-medium: #505050;
--text-light: #707070;
--gradient-primary: linear-gradient(90deg, #3498db 0%, #00c2cb 100%);
--gradient-secondary: linear-gradient(90deg, #2980b9 0%, #009ea6 100%);
--shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
--spacing-section: 5rem 0;
}
* {
box-sizing: border-box;
max-width: 100%;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
padding: 0;
font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
line-height: 1.6;
color: var(--text-medium);
background-color: var(--bg-light);
background-image:
linear-gradient(120deg, rgba(0, 120, 212, 0.05) 0%, transparent 40%),
linear-gradient(240deg, rgba(0, 178, 148, 0.05) 0%, transparent 40%);
position: relative;
overflow-x: hidden;
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem;
position: relative;
z-index: 2;
}
/* Header styling */
header {
padding: 1.5rem 0;
background: rgba(232, 233, 234, 0.95); /* Changed to match --bg-light variable */
backdrop-filter: blur(8px);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
height: auto;
}
.header-content {
display: flex;
align-items: center;
justify-content: space-between;
}
.logo {
display: flex;
align-items: center;
gap: 0.75rem;
}
.logo-img {
height: 40px;
width: auto;
margin-right: 10px;
}
.logo h1 {
font-size: 1.4rem;
font-weight: 700;
margin: 0;
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-fill-color: transparent;
}
/* Navigation styling */
.main-nav ul {
display: flex;
list-style: none;
padding: 0;
margin: 0;
gap: 1.5rem;
}
.main-nav a {
color: var(--text-medium);
text-decoration: none;
font-weight: 500;
font-size: 0.9rem;
letter-spacing: 0.5px;
padding: 0.5rem 0;
position: relative;
transition: color 0.3s ease;
}
.main-nav a:hover, .main-nav a.active {
color: var (--accent-color);
}
.main-nav a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background: var(--gradient-primary);
transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after {
width: 100%;
}
/* Section styling */
.section-container {
padding: 2rem;
margin-bottom: 2rem;
background-color: var(--card-bg);
border-radius: 10px;
border: 1px solid rgba(0, 0, 0, 0.05);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
margin-top: 6rem; /* Increased to move content below header */
padding-top: 2rem;
}
.section-container h2 {
display: block; /* Changed from none to block */
font-size: 2.2rem;
color: var(--text-dark);
margin-bottom: 1.5rem;
text-align: center;
}
.section-container p {
color: var(--text-light);
margin-bottom: 2rem;
text-align: center;
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
/* Gallery grid styling */
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
margin-top: 2rem;
}
.gallery-item {
position: relative;
aspect-ratio: 3/2;
border-radius: 8px;
overflow: hidden;
cursor: pointer;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.gallery-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.gallery-item::after {
content: '🔍';
position: absolute;
bottom: 10px;
right: 10px;
background: rgba(255, 255, 255, 0.8);
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
opacity: 0;
transition: opacity 0.3s ease;
}
.gallery-item:hover::after {
opacity: 1;
}
/* Lightbox styling */
.lightbox {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.9);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}
.lightbox.active {
opacity: 1;
pointer-events: all;
}
.lightbox-content {
position: relative;
max-width: 90%;
max-height: 80%;
display: flex;
justify-content: center;
align-items: center;
}
.lightbox-image {
max-width: 100%;
max-height: 80vh;
border-radius: 4px;
box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}
.lightbox-close {
position: absolute;
top: 20px;
right: 20px;
color: white;
font-size: 30px;
background: rgba(0, 0, 0, 0.5);
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 10;
transition: all 0.3s ease;
}
.lightbox-close:hover {
background: rgba(255, 255, 255, 0.2);
transform: rotate(90deg);
}
.lightbox-nav {
position: absolute;
top: 50%;
width: 100%;
display: flex;
justify-content: space-between;
padding: 0 20px;
transform: translateY(-50%);
z-index: 10;
}
.lightbox-nav button {
background: rgba(0, 0, 0, 0.5);
color: white;
border: none;
width: 50px;
height: 50px;
border-radius: 50%;
font-size: 24px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.lightbox-nav button:hover {
background: var(--gradient-primary);
transform: scale(1.1);
}
.lightbox-counter {
position: absolute;
bottom: -40px;
color: white;
font-size: 16px;
text-align: center;
width: 100%;
}
/* Adjust main content to start lower */
main {
padding-top: 5rem; /* Keep this to account for the fixed header */
margin-top: 0;
}
/* Mobile adjustments */
@media (max-width: 768px) {
.gallery-grid {
grid-template-columns: repeat(2, 1fr);
}
.lightbox-nav button {
width: 40px;
height: 40px;
font-size: 20px;
}
}
/* Language Switcher - Updated to match About Us page */
.language-switcher {
display: flex;
gap: 0.75rem;
}
.language-switcher button {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: var(--text-medium);
padding: 0.4rem 0.75rem;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
}
.language-switcher button.active,
.language-switcher button:hover {
background: var(--gradient-primary);
border-color: transparent;
}
</style>
</head>
<body>
<!-- Remove stars background -->
<!-- <div class="stars" id="stars"></div> -->
<header>
<div class="container">
<div class="header-content">
<div class="logo">
<a href="../index.html" style="text-decoration: none; display: flex; align-items: center;">
<img src="../images/favicon_logo.png" alt="Luftglanz Logo" class="logo-img">
<h1 data-i18n="roof_drone">Luftglanz</h1>
</a>
</div>
<button class="mobile-toggle" id="mobileToggle" aria-label="Toggle navigation">
</button>
<nav class="main-nav" id="mainNav">
<ul>
<li><a href="../index.html" data-i18n="nav_home">Startseite</a></li>
<li><a href="../index.html#services" data-i18n="nav_services">Leistungen</a></li>
<li><a href="../index.html#how-it-works" data-i18n="nav_how_it_works">Ablauf</a></li>
<li><a href="../index.html#faq" data-i18n="nav_faq">FAQ</a></li>
<li><a href="#" class="contact-link" data-i18n="nav_contact">Kontakt</a></li>
<li><a href="products.html" data-i18n="nav_products">Produkte</a></li>
<li><a href="gallery.html" class="active" data-i18n="nav_gallery">Galerie</a></li>
</ul>
</nav>
</div>
</div>
</header>
<main class="container">
<section class="section-container">
<h2 data-i18n="gallery_title">Unsere Arbeit</h2>
<p data-i18n="gallery_description">Entdecken Sie unsere Galerie, um zu sehen, wie unsere Drohnen außergewöhnliche Reinigungsergebnisse liefern.</p>
<div class="gallery-grid">
<div class="gallery-item">
<img src="../images/drone_realistic1.png" alt="Realistic Drone Cleaning" class="gallery-image" data-i18n-alt="gallery_drone_realistic_alt">
</div>
<div class="gallery-item">
<img src="../images/drone_realistic3.png" alt="Advanced Drone Cleaning Technology" class="gallery-image" data-i18n-alt="gallery_drone_realistic3_alt">
</div>
<div class="gallery-item">
<img src="../images/drone_realistic4.png" alt="Professional Drone Cleaning System" class="gallery-image" data-i18n-alt="gallery_drone_realistic4_alt">
</div>
<div class="gallery-item">
<img src="../images/drone_in_action1.jpg" alt="" data-i18n-alt="gallery_image1_alt">
</div>
<div class="gallery-item">
<img src="../images/drone_realistic5.png" alt="" data-i18n-alt="gallery_image3_alt">
</div>
<div class="gallery-item">
<img src="../images/drone_realistic6.png" alt="" data-i18n-alt="gallery_image4_alt">
</div>
</div>
</section>
</main>
<div class="lightbox" id="lightbox">
<div class="lightbox-content">
<img src="" alt="" class="lightbox-image" id="lightbox-image">
<div class="lightbox-counter" id="lightbox-counter"></div>
</div>
<div class="lightbox-close" id="lightbox-close"></div>
<div class="lightbox-nav">
<button id="lightbox-prev" data-i18n="gallery_prev">Zurück</button>
<button id="lightbox-next" data-i18n="gallery_next">Weiter</button>
</div>
</div>
<footer>
<div class="container">
<p data-i18n="footer_text">&copy; 2025 Luftglanz. Alle Rechte vorbehalten.</p>
</div>
</footer>
<script src="../js/translations.js"></script>
<script src="../js/language-manager.js"></script>
<!-- Remove drone animation script -->
<!-- <script src="../js/drone-image-animation.js"></script> -->
<script src="../js/mobile-menu.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Set up lightbox functionality
setupLightbox();
});
function setupLightbox() {
// Get all necessary lightbox elements
const lightbox = document.getElementById('lightbox');
const lightboxImage = document.getElementById('lightbox-image');
const lightboxClose = document.getElementById('lightbox-close');
const lightboxPrev = document.getElementById('lightbox-prev');
const lightboxNext = document.getElementById('lightbox-next');
const lightboxCounter = document.getElementById('lightbox-counter');
const galleryItems = document.querySelectorAll('.gallery-item img');
// Make sure elements exist
if (!lightbox || !lightboxImage || galleryItems.length === 0) {
console.error('Lightbox elements not found');
return;
}
// Track the current image index
let currentIndex = 0;
// Function to update counter
function updateCounter() {
if (lightboxCounter) {
lightboxCounter.textContent = `${currentIndex + 1} / ${galleryItems.length}`;
}
}
// Open lightbox when gallery image is clicked
galleryItems.forEach((item, index) => {
item.addEventListener('click', function() {
currentIndex = index;
lightboxImage.src = item.src;
lightboxImage.alt = item.alt;
lightbox.classList.add('active');
document.body.style.overflow = 'hidden'; // Prevent scrolling
updateCounter();
});
});
// Navigate to previous image
if (lightboxPrev) {
lightboxPrev.addEventListener('click', function(e) {
e.stopPropagation(); // Prevent event bubbling to lightbox
currentIndex = (currentIndex > 0) ? currentIndex - 1 : galleryItems.length - 1;
lightboxImage.src = galleryItems[currentIndex].src;
lightboxImage.alt = galleryItems[currentIndex].alt;
updateCounter();
});
}
// Navigate to next image
if (lightboxNext) {
lightboxNext.addEventListener('click', function(e) {
e.stopPropagation(); // Prevent event bubbling to lightbox
currentIndex = (currentIndex < galleryItems.length - 1) ? currentIndex + 1 : 0;
lightboxImage.src = galleryItems[currentIndex].src;
lightboxImage.alt = galleryItems[currentIndex].alt;
updateCounter();
});
}
// Close lightbox when close button is clicked
if (lightboxClose) {
lightboxClose.addEventListener('click', function() {
lightbox.classList.remove('active');
document.body.style.overflow = ''; // Re-enable scrolling
});
}
// Close lightbox when clicking outside the image
lightbox.addEventListener('click', function(e) {
if (e.target === lightbox) {
lightbox.classList.remove('active');
document.body.style.overflow = '';
}
});
// Prevent closing when clicking on image
lightboxImage.addEventListener('click', function(e) {
e.stopPropagation();
});
// Keyboard navigation
document.addEventListener('keydown', function(e) {
if (lightbox.classList.contains('active')) {
if (e.key === 'ArrowLeft' && lightboxPrev) {
lightboxPrev.click();
} else if (e.key === 'ArrowRight' && lightboxNext) {
lightboxNext.click();
} else if (e.key === 'Escape') {
lightbox.classList.remove('active');
document.body.style.overflow = '';
}
}
});
}
// Handle contact link with consistent offset
document.addEventListener('DOMContentLoaded', function() {
const contactLink = document.querySelector('.contact-link');
if (contactLink) {
contactLink.addEventListener('click', function(e) {
e.preventDefault();
window.location.href = '../index.html#contact';
// Apply the same offset as the main page
setTimeout(function() {
if (window.location.hash === '#contact') {
const contactSection = document.querySelector('#contact');
if (contactSection) {
window.scrollTo({
top: contactSection.offsetTop - (-5), // Same -5px offset
behavior: 'smooth'
});
}
}
}, 100);
});
}
});
</script>
</body>
</html>