/* =========== GRUNDEINSTELLUNGEN & FARBPALETTE =========== */
:root {
    --primary-color: #ffc934; /* Haupt-Akzentfarbe Gelb */
    --secondary-color: #da4732; /* Sekundär-Akzentfarbe Rot */
    --dark-color: #453532;      /* Dunkle Schriftfarbe Braun */
    --light-color: #faf7f6;     /* Heller Hintergrund */
    --border-color: #e9e5e3;    /* Eine neue, weiche Rahmenfarbe */
    --font-family: 'Poppins', sans-serif;
    --border-radius: 15px; /* Abgerundete Ecken für alles */
}

/* Reset und Basis-Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: #ffffff;
    color: var(--dark-color);
    line-height: 1.6;
    padding-top: 80px;
}

/* =========== HEADER & NAVIGATION =========== */
.main-header {
    background-color: rgba(250, 247, 246, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 5%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(69, 53, 50, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1400px; margin: 0 auto; }
.logo { font-weight: 700; font-size: 1.5rem; color: var(--dark-color); text-decoration: none; z-index: 1001; }
.desktop-nav { list-style: none; display: flex; gap: 2rem; }
.desktop-nav a { text-decoration: none; color: var(--dark-color); font-weight: 600; padding: 0.5rem 0; position: relative; transition: color 0.3s ease; }
.desktop-nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 3px; background-color: var(--primary-color); transition: width 0.3s ease; border-radius: 2px; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--dark-color); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }

/* =========== BURGER & MOBILE NAVIGATION =========== */
.burger-menu { display: none; cursor: pointer; z-index: 1001; width: 28px; height: 22px; flex-direction: column; justify-content: space-between; }
.burger-line { width: 100%; height: 3px; background-color: var(--dark-color); border-radius: 2px; transition: all 0.3s ease-in-out; }
.burger-menu.active .burger-line:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.burger-menu.active .burger-line:nth-child(2) { opacity: 0; }
.burger-menu.active .burger-line:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
.mobile-nav { position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; background-color: var(--light-color); z-index: 999; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem; transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1); }
.mobile-nav.active { left: 0; }
.mobile-nav a { color: var(--dark-color); text-decoration: none; font-size: 2rem; font-weight: 600; opacity: 0; transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s ease; }
.mobile-nav.active a { opacity: 1; transform: translateY(0); }
.mobile-nav.active a:nth-child(1) { transition-delay: 0.2s; } .mobile-nav.active a:nth-child(2) { transition-delay: 0.25s; } .mobile-nav.active a:nth-child(3) { transition-delay: 0.3s; } .mobile-nav.active a:nth-child(4) { transition-delay: 0.35s; } .mobile-nav.active a:nth-child(5) { transition-delay: 0.4s; } .mobile-nav.active a:nth-child(6) { transition-delay: 0.45s; } .mobile-nav.active a:nth-child(7) { transition-delay: 0.5s; }

/*******************************************************/
/* STILE FÜR DIE HOMEPAGE                         */
/*******************************************************/

/* =========== HERO SECTION =========== */
.hero-reworked { position: relative; height: calc(100vh - 80px); min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--light-color); overflow: hidden; }
.hero-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-video-bg::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); }
.hero-video-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; padding: 20px; max-width: 800px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 1rem; text-shadow: 0 3px 15px rgba(0,0,0,0.6); }
.animated-headline { font-size: 1.8rem; font-weight: 400; margin-bottom: 2rem; display: flex; justify-content: center; align-items: center; gap: 0.75rem; line-height: 1; }
.animated-headline > span { text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.words-wrapper { background-color: transparent; padding: 0; }
.words-container { position: relative; width: 150px; height: 1.8rem; }
.animated-headline .word { position: absolute; left: 0; width: 100%; text-align: left; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; color: var(--primary-color); font-weight: 700; line-height: 1.8rem; }
.animated-headline .word.active { opacity: 1; transform: translateY(0); }

/* =========== ALLGEMEINER CTA-BUTTON STYLE =========== */
.cta-button { display: inline-block; background-color: var(--primary-color); color: var(--dark-color); padding: 1rem 2rem; border: none; border-radius: 50px; text-decoration: none; font-weight: 700; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.1); cursor: pointer; font-family: var(--font-family); animation: pulse 2.5s infinite 1s; }
.cta-button:hover { animation-play-state: paused; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255, 201, 52, 0.4); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 201, 52, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(255, 201, 52, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 201, 52, 0); } }

/* =========== INTERAKTIVE TECHNIKEN-SEKTION =========== */
.techniques-section { display: flex; min-height: 500px; }
.technique-panel { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 3rem; text-decoration: none; color: var(--light-color); position: relative; overflow: hidden; transition: flex 0.5s ease; }
.technique-panel::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 1; transition: transform 0.5s ease, filter 0.5s ease; }
.technique-panel::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2; transition: background 0.5s ease; }
.laser-panel::before { background-image: url('../assets/Lasern.png'); }
.plot-panel::before { background-image: url('../assets/Plotten.png'); }
.panel-content { position: relative; z-index: 3; transition: transform 0.5s ease; }
.panel-content h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; }
.panel-content h3 { font-size: 2.5rem; margin: 0.5rem 0 1rem 0; }
.panel-content p { max-width: 350px; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; transition-delay: 0.1s; }
.panel-link { display: inline-block; margin-top: 1rem; font-weight: 600; border-bottom: 2px solid var(--primary-color); padding-bottom: 5px; }
.technique-panel:hover { flex: 1.5; }
.technique-panel:hover::before { transform: scale(1.05); filter: brightness(0.8); }
.technique-panel:hover::after { background: rgba(0,0,0,0.6); }
.technique-panel:hover .panel-content { transform: translateY(-10px); }
.technique-panel:hover .panel-content p { opacity: 1; transform: translateY(0); }

/* =========== GALERIE-SEKTION (ÜBERARBEITET) =========== */
.gallery-section, .before-after-section, .final-cta-section { padding: 80px 5%; }
.section-title { text-align: center; margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.section-title p { color: #666; font-size: 1.1rem; }
.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.filter-btn { background: none; border: 1px solid #ddd; border-radius: 50px; padding: 0.5rem 1.5rem; font-family: var(--font-family); font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.filter-btn:hover { background-color: var(--light-color); border-color: var(--dark-color); }
.filter-btn.active { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--dark-color); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    display: block;
    text-decoration: none;
    color: var(--dark-color);
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: scaleUp 0.5s ease forwards;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(69, 53, 50, 0.08);
}

.gallery-item-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--light-color);
    padding: 1rem; /* Innenabstand, damit das Bild nicht am Rand klebt */
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ÄNDERUNG: Bild wird komplett angezeigt */
}

.gallery-item-text {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.gallery-item-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem; /* Mehr Abstand zum Tag */
}

/* NEUER Stil für die Kategorie-Tags */
.category-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    display: inline-block; /* Damit Padding funktioniert */
}

.gallery-item.hide {
    display: none;
}

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

/* =========== VORHER/NACHHER-SLIDER =========== */
.before-after-section { 
    background-color: var(--light-color); 
    overflow-x: hidden; /* Verhindert horizontalen Scrollbalken auf Mobilgeräten */
}
.before-after-container { max-width: 900px; margin: 0 auto; position: relative; overflow: hidden; border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.1); cursor: ew-resize; }
.before-image, .after-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.after-image { position: static; }
.before-image { width: 50%; }
.before-image img, .after-image img { width: 900px; height: 100%; object-fit: cover; max-width: none; display: block; }
.resizer { position: absolute; top: 0; left: 50%; width: 4px; height: 100%; background: var(--light-color); transform: translateX(-50%); z-index: 10; cursor: ew-resize; }
.resizer::after { content: ''; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; border-radius: 50%; background-color: var(--light-color); border: 3px solid var(--primary-color); transform: translate(-50%, -50%); }
.text-center-link { text-align: center; margin-top: 2rem; }
.text-link { color: var(--secondary-color); text-decoration: none; font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* =========== FINALER CTA-BANNER =========== */
.final-cta-section { background-color: var(--dark-color); color: var(--light-color); text-align: center; }
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-content p { font-size: 1.1rem; margin-bottom: 2rem; color: rgba(250, 247, 246, 0.8); }


/************************************************************/
/* STILE FÜR DIE UNTERSEITEN (ALT & MODERN)             */
/************************************************************/
.page-header { background-color: var(--dark-color); color: var(--light-color); text-align: center; padding: 4rem 5%; }
.page-header h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.page-header p { font-size: 1.2rem; color: var(--primary-color); max-width: 600px; margin: 0 auto; }
.content-section, .text-page-section, .article-page { padding: 80px 5%; background-color: #ffffff; }
.content-container, .text-page-content { max-width: 1100px; margin: 0 auto; }
.content-item { display: flex; align-items: center; gap: 3rem; margin-bottom: 5rem; }
.content-item:last-child { margin-bottom: 0; }
.content-item.reverse { flex-direction: row-reverse; }
.content-item img { flex: 1; max-width: 50%; border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(69, 53, 50, 0.1); object-fit: cover; }
.content-item .text-content { flex: 1; }
.content-item h2 { font-size: 2rem; margin-bottom: 1rem; }
.styled-list { list-style: none; padding-left: 0; }
.styled-list li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; }
.styled-list li::before { content: '✓'; color: var(--primary-color); position: absolute; left: 0; font-weight: bold; }
.cta-banner { background-color: var(--light-color); padding: 3rem; border-radius: var(--border-radius); text-align: center; margin-top: 4rem; }
.cta-banner h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-banner p { margin-bottom: 1.5rem; }
.news-section, .archive-section { padding: 60px 5%; background-color: #ffffff; }
.archive-section { padding-top: 0; padding-bottom: 80px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.news-card-link { text-decoration: none; color: inherit; }
.news-card { background: var(--light-color); border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.news-card img { width: 100%; height: 220px; object-fit: cover; }
.news-content { padding: 1.5rem; }
.news-date { font-size: 0.8rem; color: var(--secondary-color); font-weight: 600; margin-bottom: 0.5rem; display: block; }
.news-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.archive-list { list-style: none; max-width: 800px; margin: 0 auto; padding: 0; }
.archive-item a { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid #e0e0e0; text-decoration: none; color: var(--dark-color); transition: background-color 0.3s ease; }
.archive-item a:hover { background-color: var(--light-color); }
.archive-date { font-size: 0.9rem; color: #888; flex-shrink: 0; margin-right: 2rem; }
.archive-title { font-weight: 600; }
.contact-section { padding: 80px 5%; background-color: #ffffff; }
.contact-header { text-align: center; max-width: 700px; margin: 0 auto 4rem auto; }
.contact-header h1 { font-size: 3rem; margin-bottom: 1rem; }
.contact-header p { font-size: 1.2rem; color: #666; }
.contact-container { max-width: 900px; margin: 0 auto; background-color: var(--light-color); border-radius: var(--border-radius); padding: 3rem; box-shadow: 0 15px 40px rgba(69, 53, 50, 0.1); }
.contact-form .form-row { display: flex; gap: 2rem; }
.contact-form .form-group { flex: 1; margin-bottom: 1.5rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 8px; background-color: #fff; font-family: var(--font-family); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(255, 201, 52, 0.3); }
.contact-form textarea { resize: vertical; }
.contact-form .cta-button { width: 100%; font-size: 1.1rem; padding: 1.2rem; }
.contact-info-wrapper { display: flex; justify-content: space-around; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid #e0e0e0; }
.contact-info-item { display: flex; align-items: center; gap: 1rem; }
.contact-info-item svg { width: 24px; height: 24px; flex-shrink: 0; stroke: var(--secondary-color); }
.contact-info-item a, .contact-info-item p { color: var(--dark-color); text-decoration: none; font-size: 0.9rem; }
.contact-info-item strong { font-weight: 600; display: block; }
.text-page-content { max-width: 800px; }
.text-page-content h2 { font-size: 1.8rem; margin-top: 2rem; margin-bottom: 1rem; }
.text-page-content h3 { font-size: 1.4rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.text-page-content p { margin-bottom: 1rem; }
.text-page-content a { color: var(--secondary-color); }
/* NEU: Styles für Artikel-Seiten */
.article-header { text-align: center; max-width: 800px; margin: 0 auto 3rem auto; }
.back-link { display: block; margin-bottom: 1rem; color: var(--secondary-color); text-decoration: none; font-weight: 600; }
.article-date { color: #888; }
.article-header h1 { font-size: 3rem; margin: 0.5rem 0; }
.article-subtitle { font-size: 1.2rem; color: #666; }
.article-image-container { max-width: 1100px; margin: 0 auto 3rem auto; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.article-image-container img { width: 100%; display: block; }
.article-content { max-width: 800px; margin: 0 auto; }
.article-content h2 { font-size: 1.8rem; margin-top: 2rem; margin-bottom: 1rem; }
.article-content h3 { font-size: 1.4rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.article-content p, .article-content li { margin-bottom: 1rem; }
.article-content ul { list-style: disc; padding-left: 20px; }


/* =========== FOOTER =========== */
.main-footer { background-color: var(--dark-color); color: var(--light-color); padding: 2rem 5%; text-align: center; border-top: 5px solid var(--primary-color); }
.footer-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-links a { color: var(--light-color); text-decoration: none; margin-left: 1.5rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary-color); }

/* =========== ANIMATION =========== */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =========== RESPONSIVE DESIGN =========== */
@media (max-width: 900px) {
    body { padding-top: 70px; }
    .main-header { height: 70px; }
    .desktop-nav { display: none; }
    .burger-menu { display: flex; }
    .hero-reworked { height: 85vh; }
    .hero-content h1 { font-size: 2.2rem; }
    .animated-headline { font-size: 1.2rem; gap: 0.5rem; }
    .words-container { width: 120px; }
    .techniques-section { flex-direction: column; min-height: auto; }
    .technique-panel { min-height: 250px; }
    .technique-panel:hover { flex: 1; }
    .technique-panel:hover .panel-content { transform: none; }
    .technique-panel .panel-content p { opacity: 1; transform: none; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .before-image img, .after-image img { 
        width: 100vw; /* Stellt die ursprüngliche Logik wieder her, damit der Slider funktioniert */
    }
    .resizer::after { width: 50px; height: 50px; }
    .section-title h2 { font-size: 1.8rem; }
    .cta-content h2 { font-size: 2rem; }
    .page-header { padding: 3rem 5%; }
    .page-header h1 { font-size: 2.2rem; }
    .page-header p { font-size: 1.1rem; }
    .content-section, .news-section, .archive-section, .contact-section, .text-page-section, .article-page { padding: 50px 5%; }
    .content-item, .content-item.reverse { flex-direction: column; gap: 2rem; margin-bottom: 3.5rem; }
    
    /* KORREKTUR FÜR BILDER AUF UNTERSEITEN */
    .content-item img {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        flex: none; /* Wichtig, um Stretching zu verhindern */
    }

    .content-item h2 { font-size: 1.8rem; }
    .cta-banner { padding: 2rem; }
    .cta-banner h2 { font-size: 1.8rem; }
    .contact-header h1 { font-size: 2rem; }
    .contact-container { padding: 2rem; }
    .contact-form .form-row { flex-direction: column; gap: 0; }
    .contact-info-wrapper { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .archive-item a { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .article-header h1 { font-size: 2rem; }
    .article-subtitle { font-size: 1.1rem; }
    .footer-content { flex-direction: column; gap: 1rem; }
    .footer-links { display: flex; gap: 1.5rem; }
    .footer-links a { margin-left: 0; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .animated-headline { display: none; } /* Besser für kleine Screens */
    .page-header h1 { font-size: 2rem; }
    .section-title h2 { font-size: 1.6rem; }
    .cta-content h2 { font-size: 1.8rem; }
    .contact-header h1 { font-size: 1.8rem; }
    .article-header h1 { font-size: 1.8rem; }
}
