/* =========================================
   1. GRUNDEINSTELLUNGEN & VARIABLEN
   ========================================= */
:root {
    --primary-color: #333;
    --accent-color: #D35400; /* Für normale Farben */
    --accent-rgb: 211, 84, 0; /* Für den transparenten Schatten! */
    --bg-color: #f4f4f4;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }
::selection { background: var(--accent-color); color: var(--white); }

body {
    margin: 0; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color); color: var(--primary-color);
    line-height: 1.6; min-height: 100vh;
    display: grid; grid-template-areas: "header" "nav" "main" "footer";
    grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto;
}

/* =========================================
   2. HEADER, NAV & FOOTER
   ========================================= */
/* 1. Header deutlich schmaler machen (Abstand von 30px auf 10px reduziert) */
header { 
    grid-area: header; 
    background-color: #222; 
    padding: 10px 20px;  /* Hier ist der Zaubertrick für einen schmalen Header! */
    text-align: center; 
    color: var(--white); 
}

/* 2. Logo und Text zwingend nebeneinander in einer Reihe */
.logo {
    display: inline-flex;
    flex-direction: row; /* Zwingt Bild und Text nebeneinander */
    align-items: center; /* Zentriert beides perfekt auf einer Höhe */
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    color: #ffffff;
}

/* 3. Das Logo-Symbol noch kleiner machen */
.logo-icon {
    height: 35px;       /* Höhe reduziert (vorher 50px) */
    width: 25px;        /* Breite passend zum Hochformat reduziert */
    min-width: 25px;
    flex-shrink: 0;     /* Verbietet dem Browser, das Bild zu verzerren */
    color: #ffffff;
    transition: color 0.3s ease;
}

/* 4. Schriftgröße des Namens harmonisch an das kleinere Logo anpassen */
.logo span {
    font-size: 1.2rem;  /* Vorher 1.5rem */
    font-weight: bold;
    transition: color 0.3s ease;
    white-space: nowrap; /* Verhindert, dass der Text in sich umbricht */
}

.logo:hover .logo-icon,
.logo:hover span {
    color: var(--accent-color); /* Hier stand vorher noch fest das Blau drin! */
}

nav { grid-area: nav; background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.menu-toggle { display: none; padding: 15px 20px; font-size: 1.2rem; cursor: pointer; background-color: var(--white); color: var(--primary-color); font-weight: bold; }
nav ul { list-style-type: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; }
nav a { display: block; text-decoration: none; color: var(--primary-color); padding: 15px 20px; font-weight: 500; transition: all 0.3s ease; border-bottom: 3px solid transparent; }
nav a:hover, nav a.active { color: var(--accent-color); background-color: #f9f9f9; border-bottom-color: var(--accent-color); }

footer { grid-area: footer; background-color: var(--primary-color); color: var(--white); padding: 20px; text-align: center; font-size: 0.9em; margin-top: auto; }
.social-links { margin-bottom: 15px; }
.social-links a { color: var(--white); text-decoration: none; margin: 0 10px; font-weight: bold; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.social-links a:hover { border-bottom-color: var(--accent-color); }
.footer-nav { margin-bottom: 15px; }
.footer-nav a { color: #ccc; text-decoration: none; margin: 0 10px; font-size: 0.85rem; }
.footer-nav a:hover { color: white; text-decoration: underline; }

/* =========================================
   3. LAYOUT-CONTAINER & TYPOGRAFIE
   ========================================= */
main { grid-area: main; position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.content-wrapper, .about-container, .contact-container, .legal-content { max-width: 1000px; margin: 60px auto; padding: 0 20px; width: 100%; box-sizing: border-box; }
.legal-content { max-width: 800px; text-align: left; }
.legal-content h2 { border-bottom: 1px solid #ddd; padding-bottom: 10px; margin-bottom: 20px; color: var(--primary-color); }
.legal-content h3 { margin-top: 30px; margin-bottom: 10px; color: var(--primary-color); font-size: 1.2rem; }
.legal-content a { color: var(--accent-color); text-decoration: none; transition: color 0.3s; }
.legal-content a:hover { color: var(--primary-color); }

.intro-text { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.intro-text p { color: #666; font-size: 1.1rem; }
.section-title { text-align: center; margin-top: 100px; margin-bottom: 40px; color: var(--primary-color); font-size: 2rem; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--accent-color); margin: 15px auto 0; }

.cta-button { 
    display: inline-block; 
    background-color: var(--accent-color); 
    color: var(--white); 
    padding: 15px 40px; 
    font-size: 1.2rem; 
    text-decoration: none; 
    border-radius: 10px; 
    transition: all 0.3s ease; 
    border: 2px solid var(--accent-color); /* Rahmen in Orange */
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.cta-button:hover { 
    background-color: transparent; /* Hintergrund wird durchsichtig... */
    color: var(--accent-color);    /* ...dafür wird die Schrift jetzt Orange! */
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

/* =========================================
   4. HERO & SPLIT-SECTIONS
   ========================================= */
#hero-section { position: relative; height: 100vh; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; z-index: 1; }
.hero-slide { 
    position: absolute; 
    top: -20%; 
    left: 0; 
    width: 100%; 
    height: 140%; 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed;
    transform: scale(1.1); 
    opacity: 0; 
    transition: opacity 1.5s ease-in-out; 
    z-index: -1; 
}
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 0; }
.hero-content { position: relative; z-index: 2; text-align: center; color: white; padding: 20px; animation: fadeInUp 1s ease-out; }
.hero-content h2 { font-size: 3rem; margin-bottom: 10px; text-shadow: 2px 2px 10px rgba(0,0,0,0.7); font-weight: 700; color: var(--white); }
.hero-content p { font-size: 1.5rem; margin-bottom: 30px; text-shadow: 1px 1px 5px rgba(0,0,0,0.7); font-weight: 300; color: var(--white); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

#ueber-mich { position: relative; background-color: white; z-index: 10; padding: 80px 20px 40px 20px; box-shadow: 0 -10px 20px rgba(0,0,0,0.1); width: 100%; box-sizing: border-box; }
.about-split, .split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 80px; }
.split-section.reverse .split-text { order: 2; }
.split-section.reverse .split-image { order: 1; }
.about-text h2 { color: var(--primary-color); border-bottom: 2px solid var(--accent-color); display: inline-block; padding-bottom: 5px; margin-bottom: 20px; }
.split-text h3 { color: var(--primary-color); margin-top: 0; margin-bottom: 20px; font-size: 1.5rem; }
.about-text p, .split-text p { color: #666; line-height: 1.6; margin-bottom: 20px; }
.about-image img, .split-image img { display: block; width: 100%; max-width: 100%; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.15); object-fit: cover; }
.split-image img { max-height: 50vh; }

/* =========================================
   5. AUSRÜSTUNG (Akkordeon)
   ========================================= */
.equip-container { max-width: 900px; margin: 80px auto 100px auto; padding: 0 20px; background-color: white; position: relative; z-index: 10; width: 100%; box-sizing: border-box;}
.equip-container > h2 { color: var(--primary-color); margin-bottom: 20px; }
details.equip-category { margin-bottom: 20px; background: var(--white); border: 1px solid #eee; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); overflow: hidden; }
details.equip-category summary { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; background: #fafafa; transition: background 0.3s ease; }
details.equip-category summary::-webkit-details-marker { display: none; }
details.equip-category summary:hover { background: #f1f1f1; }
details.equip-category h3 { margin: 0; color: var(--primary-color); font-size: 1.3rem; }
.toggle-icon { font-size: 1.8rem; color: var(--accent-color); line-height: 1; transition: transform 0.3s ease; }
details[open].equip-category summary { border-bottom: 2px solid var(--accent-color); background: white; }
details[open].equip-category .toggle-icon { transform: rotate(45deg); }
.equip-list { padding: 30px 20px; background: white; animation: fadeDown 0.4s ease-out; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.equip-card { background-color: var(--white); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); border: 1px solid #f5f5f5; margin-bottom: 25px; overflow: hidden; display: grid; grid-template-columns: 250px 1fr; transition: transform 0.3s ease; }
.equip-card:last-child { margin-bottom: 0; }
.equip-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.12); }
.equip-img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.equip-info { padding: 25px; display: flex; flex-direction: column; justify-content: center; }
.equip-info h4 { margin: 0 0 10px 0; color: var(--accent-color); font-size: 1.2rem; }
.equip-info p { margin: 0; color: #555; line-height: 1.6; }

/* =========================================
   6. INFOBOXEN & GALERIEN
   ========================================= */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 80px; }
.tech-box { background: #f9f9f9; padding: 25px; border-radius: 8px; border-top: 4px solid var(--accent-color); text-align: center; }
.material-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 80px; }
.material-box { background: #f9f9f9; padding: 20px; border-radius: 8px; border-left: 4px solid var(--accent-color); }
.laser-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 80px; }
.laser-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; transition: transform 0.3s; }
.laser-gallery img:hover { transform: scale(1.02); }

/* =========================================
   7. BEFORE/AFTER SLIDER & SERVICES
   ========================================= */
.ba-slider { position: relative; width: fit-content; max-width: 100%; margin: 20px auto; max-height: 60vh; overflow: hidden; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: col-resize; user-select: none; display: block; }
.ba-slider > img { display: block; width: auto; height: auto; max-height: 60vh; max-width: 100%; pointer-events: none; }
.ba-before { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; border-right: 3px solid var(--white); box-shadow: 5px 0 5px rgba(0,0,0,0.2); }
.ba-before img { height: 100%; width: auto; max-width: none; display: block; pointer-events: none; }
.ba-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: var(--accent-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; border: 3px solid white; z-index: 10; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.ba-label { position: absolute; top: 20px; color: white; background: rgba(0,0,0,0.5); padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; text-transform: uppercase; font-weight: bold; pointer-events: none; }
.label-before { left: 20px; z-index: 20; }
.label-after  { right: 20px; z-index: 5; }

.service-list { list-style: none; padding: 0; margin: 0 auto; max-width: 800px; }
.service-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 30px 0; border-bottom: 1px solid #eee; }
.service-item:last-child { border-bottom: none; }
.service-info { padding-right: 40px; flex: 1; }
.service-title { font-size: 1.4rem; color: var(--primary-color); margin: 0 0 10px 0; font-weight: 600; }
.service-desc { margin: 0; color: #777; font-size: 0.95rem; line-height: 1.6; }
.service-price { font-size: 1.2rem; color: var(--primary-color); font-weight: bold; white-space: nowrap; text-align: right; }
.service-price span { display: block; font-size: 0.8rem; color: #999; font-weight: normal; margin-top: 5px; }

/* =========================================
   8. PORTFOLIO & GALERIE
   ========================================= */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 40px 20px; max-width: 1200px; margin: 0 auto; width: 100%; box-sizing: border-box;}
.category-card { position: relative; display: block; height: 300px; border-radius: 8px; overflow: hidden; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.category-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-card:hover img { transform: scale(1.1); }
.category-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); padding: 20px; box-sizing: border-box; }
.category-overlay h2 { color: white; margin: 0; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.category-overlay span { color: #ddd; font-size: 0.9rem; }

.gallery-header { text-align: center; padding: 40px 20px; }
.back-btn { display: inline-block; margin-bottom: 20px; text-decoration: none; color: var(--accent-color); font-weight: bold; transition: color 0.3s; }
.back-btn:hover { text-decoration: underline; color: var(--primary-color); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 0 20px 40px 20px; max-width: 1200px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.gallery-item { display: block; height: 300px; overflow: hidden; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.3s; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
/* --- WASSERZEICHEN IN DER LIGHTBOX --- */
.lb-container {
    position: relative;
}

    .lb-container::after {
        content: "";
        position: absolute;
        bottom: 20px;
        right: 20px;
        width: 50px; /* Schmaler, passend zum Hochformat */
        height: 70px; /* Höher, passend zum Hochformat */
        background-image: url('../fotos/wasserzeichen.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: bottom right;
        opacity: 0.6;
        pointer-events: none;
        z-index: 9999;
    }

/* =========================================
   9. KONTAKT FORMULAR
   ========================================= */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { margin-top: 0; color: var(--primary-color); font-size: 2rem; }
.contact-info p { color: #666; line-height: 1.6; margin-bottom: 30px; }
.info-item { margin-bottom: 20px; font-size: 1.1rem; }
.info-item strong { display: block; color: var(--primary-color); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.info-item a { color: var(--accent-color); text-decoration: none; transition: color 0.3s; }
.info-item a:hover { color: var(--primary-color); }
.contact-form { background-color: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; font-size: 0.9rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: 1rem; box-sizing: border-box; transition: border-color 0.3s, background-color 0.3s; background-color: #fafafa; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent-color); outline: none; background-color: var(--white); }
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form button[type="submit"] { background-color: var(--primary-color); color: var(--white); padding: 15px 30px; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; transition: background-color 0.3s; width: 100%; }
.contact-form button[type="submit"]:hover { background-color: var(--accent-color); }
.alert { padding: 15px; border-radius: 4px; margin-bottom: 20px; font-weight: bold; }
.alert.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error   { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* =========================================
   10. WIDGETS (WhatsApp, Cookie, TopBtn)
   ========================================= */
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background-color: #25d366; color: white; border-radius: 50%; text-align: center; box-shadow: 2px 2px 3px #999; z-index: 1000; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 35px; height: 35px; }

#topBtn { display: none; position: fixed; bottom: 90px; right: 20px; z-index: 99; border: none; outline: none; background-color: #333; color: white; cursor: pointer; padding: 10px; border-radius: 50%; width: 40px; height: 40px; font-size: 18px; opacity: 0.7; transition: opacity 0.3s, background-color 0.3s; }
#topBtn:hover { background-color: var(--accent-color); opacity: 1; }

#cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #222; color: white; padding: 20px; text-align: center; box-shadow: 0 -2px 10px rgba(0,0,0,0.2); z-index: 10000; display: none; }
#cookie-banner p { margin: 0 0 15px 0; font-size: 0.9rem; display: inline-block; max-width: 800px; }
#cookie-banner button { background-color: var(--accent-color); color: white; border: none; padding: 8px 20px; border-radius: 4px; cursor: pointer; margin-left: 15px; font-weight: bold; }

/* =========================================
   11. MOBILE RESPONSIVE QUERIES
   ========================================= */
@media (max-width: 900px) {
    .portfolio-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Verkleinert den riesigen Abstand zum Hero-Bild auf dem Handy */
    #ueber-mich {
        padding-top: 30px !important;
    }
    #ueber-mich .about-container {
        margin-top: 10px !important;
    }
    nav { position: relative; }
    .menu-toggle { display: block; border-bottom: 1px solid #eee; }
    nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: #ffffff !important; box-shadow: 0 5px 15px rgba(0,0,0,0.2); border-bottom: 2px solid var(--accent-color); z-index: 99999 !important; }
    nav ul.offen { display: flex; animation: slideDown 0.3s ease-out; }
    #haupt-menue a { text-align: left; padding: 15px 30px; border-bottom: 1px solid #f0f0f0; color: #000000 !important; opacity: 1 !important; display: block; }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

    #hero-section { height: 30vh; min-height: 200px; }
    .hero-slide { height: 160%; top: -35%; }
    .hero-content h2 { font-size: 2rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-content .cta-button, .hero-content br { display: none; }
    #ueber-mich { padding-bottom: 60px; }
    
    .about-split, .split-section, .split-section.reverse, .contact-container { grid-template-columns: 1fr; gap: 30px; }
    .split-image, .ba-slider { order: 2 !important; }
    .split-text { order: 1 !important; }

    .equip-card { grid-template-columns: 1fr; }
    .equip-img { height: 250px; }

    .service-item { flex-direction: column; }
    .service-price { margin-top: 15px; text-align: left; }
}

@media (max-width: 600px) {
    .portfolio-grid, .gallery-grid { grid-template-columns: 1fr; }
}
/* =========================================
   PARALLAX FIX FÜR ALLE SMARTPHONES & TABLETS
   ========================================= */

/* Schaltet Parallax auf allen Bildschirmen unter 768px ab und auf allen Touch-Geräten */
@media (max-width: 768px), (pointer: coarse) {
    .hero-slide {
        background-attachment: scroll !important;
    }
}

/* Spezieller Fallback für hartnäckige Apple-Geräte (iOS) */
@supports (-webkit-touch-callout: none) {
    .hero-slide {
        background-attachment: scroll !important;
    }
}