/* --- Grundlegende Stile & Variablen --- */
:root {
    --primary-color: #007BFF;
    --secondary-color: #00C6FF;
    --dark-color: #1a2a4c; /* Dunkleres, satteres Blau */
    --text-color: #4a5568; /* Weicheres Grau für Text */
    --light-color: #f7fafc; /* Sehr helles Grau für Hintergründe */
    --white-color: #ffffff;
    --accent-color: #FFC107; /* Gelb als Akzentfarbe */
    --font-family: 'Poppins', sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease-in-out;
}

/* --- Globale Resets & Basis-Stile --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-family); color: var(--text-color); line-height: 1.7; background-color: var(--white-color); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--primary-color); transition: var(--transition); }
a:hover { color: var(--secondary-color); }
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 6rem 0; }
.section-bg { background-color: var(--light-color); }
.section-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 3rem; color: var(--dark-color); }
.text-center { text-align: center; }

p {
    font-size: 20px; /* ca. 17.6px */
}

/* --- Header & Navigation --- */
.header { position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; transition: var(--transition); }
.header.scrolled { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
.navbar { height: 80px; display: flex; align-items: center; }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.nav-logo { font-size: 1.1rem; font-weight: 600; color: var(--white-color); text-shadow: 1px 1px 3px rgba(0,0,0,0.4); line-height: 1.3; margin-right: 1rem; }
.header.scrolled .nav-logo { color: var(--primary-color); text-shadow: none; }
.nav-menu { display: flex; list-style: none; gap: 2rem; flex-shrink: 0; }
.nav-menu a { font-weight: 500; font-size: 0.95rem; color: var(--white-color); text-shadow: 1px 1px 3px rgba(0,0,0,0.4); transition: var(--transition); }
.header.scrolled .nav-menu a { color: var(--dark-color); text-shadow: none; }
.header .nav-menu a:hover { color: var(--secondary-color); transform: translateY(-2px); }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--white-color); transition: all 0.3s ease-in-out; }
.header.scrolled .bar { background-color: var(--dark-color); }

/* --- Hero Section mit Ken Burns Effekt --- */
.hero { height: 100vh; background: url('Imager/20230623_125615.jpg') no-repeat center center; background-size: cover; display: flex; align-items: center; position: relative; color: var(--white-color); overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 25, 47, 0.6); z-index: 1; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-image: inherit; animation: kenburns 20s ease-out forwards; z-index: 0; }
@keyframes kenburns { 0% { transform: scale(1.1); } 100% { transform: scale(1); } }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 2rem; text-align: left; }
.hero-content h1, .hero-content h2, .hero-content p, .hero-content .btn { opacity: 0; transform: translateY(30px); animation-fill-mode: forwards; }
.hero-content h1 { font-size: 4.5rem; font-weight: 800; margin: 0; line-height: 1.1; }
.hero-content h2 { font-size: 2.5rem; font-weight: 400; color: var(--secondary-color); margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.25rem; margin-bottom: 2.5rem; max-width: 600px; }
.reveal-hero-1 { animation: fadeIn 0.8s 0.3s ease-out forwards; }
.reveal-hero-2 { animation: fadeIn 0.8s 0.6s ease-out forwards; }
.reveal-hero-3 { animation: fadeIn 0.8s 0.9s ease-out forwards; }
.reveal-hero-4 { animation: fadeIn 0.8s 1.2s ease-out forwards; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* --- Button --- */
.btn { display: inline-block; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: var(--white-color); padding: 1rem 2.5rem; border-radius: 50px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4); transition: var(--transition); border: none; cursor: pointer; }
.btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 25px rgba(0, 198, 255, 0.6); color: var(--white-color); }

/* --- Vorteile Section --- */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.benefit-card { background: var(--white-color); padding: 2.5rem; text-align: center; border-radius: var(--border-radius); box-shadow: var(--box-shadow); transition: var(--transition); }
.benefit-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); }
.benefit-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.benefit-card h3 { font-size: 1.5rem; color: var(--dark-color); margin-bottom: 0.5rem; }

/* --- Über Uns & Zähler Section --- */
.about-flex { display: flex; align-items: center; gap: 4rem; }
.about-text { flex: 1; }
.about-image { flex: 1; }
.about-image img { border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.counters-wrapper { display: flex; gap: 2rem; margin-top: 2.5rem; text-align: center; }
.counter-item { flex: 1; }
.counter-item p { font-size: 3rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.counter-item span { font-weight: 500; color: var(--text-color); }

/* --- Service Section --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card { background: var(--white-color); padding: 2.5rem 2rem; text-align: center; border-radius: var(--border-radius); box-shadow: var(--box-shadow); transition: var(--transition); overflow: hidden; }
.service-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); }
.icon-wrapper { width: 80px; height: 80px; margin: 0 auto 1.5rem; border-radius: 50%; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4); }
.icon { font-size: 2.5rem; color: var(--white-color); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--dark-color); }
.more-services { text-align: center; margin-top: 4rem; padding: 2rem; background-color: var(--white-color); border-radius: var(--border-radius); box-shadow: var(--box-shadow); }

/* --- Galerie Stile --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2.5rem; }
.gallery-card { background-color: var(--white-color); border-radius: var(--border-radius); box-shadow: var(--box-shadow); transition: var(--transition); overflow: hidden; text-align: center; }
.gallery-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); }
.gallery-card h3 { background-color: var(--dark-color); color: var(--white-color); padding: 1rem 1.5rem; margin: 0; font-size: 1.1rem; }
.gallery-image-wrapper { position: relative; cursor: pointer; }
.gallery-image-wrapper img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: opacity 0.4s ease-in-out; }

/* KORREKTUR: Rundet die Ecken bei statischen Bildern korrekt ab */
.gallery-image-wrapper:first-child img { border-radius: var(--border-radius); }
.gallery-card h3 + .gallery-image-wrapper img { border-radius: 0 0 var(--border-radius) var(--border-radius); }

/* Stile für interaktive Galerie */
.gallery-img-before { position: absolute; top: 0; left: 0; opacity: 0; }
.interactive-gallery.show-before .gallery-img-before { opacity: 1; }
.interactive-gallery.show-before .gallery-img-after { opacity: 0; }
.gallery-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.6); color: var(--white-color); padding: 0.5rem; text-align: center; font-size: 0.9rem; transition: var(--transition); opacity: 1; display: flex; justify-content: center; align-items: center; gap: 0.5rem; }
.gallery-overlay span::after { content: ' Vorher ansehen'; }
.interactive-gallery.show-before .gallery-overlay span::after { content: ' Nachher ansehen'; }
.gallery-image-wrapper:hover .gallery-overlay { opacity: 0.8; }

/* --- CTA Section --- */
.cta-section { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); padding: 5rem 0; color: var(--white-color); }
.cta-section h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.cta-section p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }
.cta-section .btn { background: var(--white-color); color: var(--primary-color); }

/* --- Kontakt Section --- */
.contact-wrapper { display: flex; gap: 3rem; background-color: var(--white-color); padding: 3rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.contact-info, .contact-form { flex: 1; }
.contact-info p { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: 1.1rem; }
.contact-info i { color: var(--primary-color); }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 0.75rem; background-color: #25D366; color: var(--white-color); padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 600; margin-top: 1rem; }
.btn-whatsapp:hover { background-color: #1DAE54; color: var(--white-color); transform: translateY(-2px); }
.form-group { display: flex; gap: 1rem; margin-bottom: 1rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem; border: 1px solid #ddd; border-radius: 8px; font-family: var(--font-family); font-size: 1rem; transition: var(--transition); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2); }
.contact-form textarea { resize: vertical; margin-bottom: 1rem; }
.privacy-policy { margin-bottom: 1.5rem; font-size: 0.9rem; display: flex; align-items: center; gap: 0.75rem; }
.privacy-policy input[type="checkbox"] { margin: 0; flex-shrink: 0; width: 1.15em; height: 1.15em; }

/* --- Footer & Scroll-Animationen --- */
footer { background-color: var(--dark-color); color: var(--light-color); text-align: center; padding: 2rem; }
footer a { color: var(--white-color); font-weight: 500; }
footer a:hover { text-decoration: underline; }
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.6s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Stile für Impressum & Datenschutz --- */
.legal-page { padding-top: 120px; padding-bottom: 6rem; }
.legal-page .section-container { max-width: 800px; }
.legal-page h1 { font-size: 3rem; font-weight: 800; color: var(--dark-color); margin-bottom: 2rem; text-align: center; }
.legal-page h2 { font-size: 2rem; font-weight: 700; color: var(--dark-color); margin-top: 3.5rem; margin-bottom: 1.5rem; border-bottom: 2px solid #e2e8f0; padding-bottom: 0.5rem; }
.legal-page h3 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1.5rem; color: var(--primary-color); padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }
.legal-page h2 + h3 { border-top: none; padding-top: 0; margin-top: 2rem; }
.legal-page p, .legal-page li { line-height: 1.8; margin-bottom: 1.5rem; color: var(--text-color); }
.legal-page ul { list-style-position: inside; padding-left: 1rem; margin-bottom: 1.5rem; }
.btn-back { display: inline-block; background: var(--primary-color); color: var(--white-color); padding: 0.5rem 1.5rem; border-radius: 50px; font-weight: 500; transition: var(--transition); flex-shrink: 0;}
.btn-back:hover { background: var(--secondary-color); color: var(--white-color); transform: scale(1.05); }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-flex { flex-direction: column-reverse; text-align: center; }
    .counters-wrapper { justify-content: center; }
}
@media (max-width: 768px) {
    html { font-size: 14px; }
    .section-padding { padding: 4rem 0; }
    .nav-logo { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 60px); }
    .nav-menu { position: fixed; left: -100%; top: 80px; flex-direction: column; background-color: var(--white-color); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.1); gap: 0; }
    .nav-menu.active { left: 0; }
    .nav-menu a { color: var(--dark-color); padding: 1.5rem 0; display: block; width: 100%; }
    .header:not(.scrolled) .nav-menu a { color: var(--dark-color); text-shadow: none; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .header.scrolled .hamburger.active .bar { background-color: var(--dark-color); }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content h2 { font-size: 1.8rem; }
    .contact-wrapper, .about-flex { gap: 2rem; }
    .contact-wrapper { flex-direction: column; padding: 2rem; }
    .form-group { flex-direction: column; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .btn-back { display: none; }
}