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

:root {
    --primary-color: #f88306;
    --primary-hover: #db6600;
    --text-color: #444444;
    --text-dark: #222222;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;
    --bg-footer: #111111;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 0;
    height: 70px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

.navbar-brand .logo {
    height: 42px;
    width: auto;
    transition: var(--transition);
    margin-top: 8px;
}

.navbar-brand .logo:hover {
    opacity: 0.8;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 2px;
    background: var(--bg-white);
    transition: var(--transition);
}

.navbar-menu {
    display: flex;
    margin-left: auto;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-nav a {
    color: var(--bg-white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav a:hover::after {
    width: 100%;
}

.navbar-nav a:hover {
    color: var(--primary-color);
}

.navbar-nav a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.navbar-nav a.active::after {
    width: 100%;
}

.side-nav-menu a.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* Side Navigation */
.side-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-footer);
    z-index: 2000;
    transition: var(--transition);
    padding: 2rem;
    overflow-y: auto;
}

.side-nav.active {
    right: 0;
}

.side-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.side-nav-menu {
    list-style: none;
    margin-top: 3rem;
}

.side-nav-menu li {
    margin-bottom: 1rem;
}

.side-nav-menu a {
    color: var(--bg-white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.side-nav-menu a:hover {
    color: var(--primary-color);
}

.side-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.side-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 70px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    color: var(--bg-white);
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
}

.hero-title {
    font-family: 'Libre Franklin', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 200;
    margin: 0 auto;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 1000px;
    white-space: nowrap;
    text-align: center;
    opacity: 0;
    transform: translateY(-50px);
    animation: slideDown 1s ease-out 0.3s forwards;
}

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll to Content Button */
.scroll-to-content-btn {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    cursor: pointer;
    border: none;
    border-radius: 50%;
    background: transparent;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.scroll-to-content-btn:hover {
    border: 2px solid var(--bg-white);
    background: rgba(0, 0, 0, 0.3);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-to-content-btn svg {
    width: 32px;
    height: 32px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    letter-spacing: 1px;
}

/* Services Section */
.services-section {
    background: var(--bg-white);
    padding: 5rem 0;
    overflow: hidden;
}

.services-carousel-wrapper {
    margin-top: 3rem;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0;
    overflow: hidden;
}

.services-carousel {
    width: 100%;
    height: 600px;
}

.services-carousel .flickity-viewport {
    height: 600px;
    overflow: visible;
}

.service-carousel-cell {
    width: 80%;
    height: 600px;
    margin-right: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transform: scale(0.85);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-carousel-cell.is-selected {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    cursor: default;
}

.service-carousel-cell:not(.is-selected) {
    z-index: 1;
}

.service-carousel-cell:not(.is-selected):hover {
    opacity: 0.7;
    transform: scale(0.9);
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-popover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: var(--bg-white);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
    max-height: 60%;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.service-carousel-cell:hover .service-popover {
    transform: translateY(0);
}

.service-carousel-cell:hover .service-image img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.service-popover-content {
    position: relative;
}

.service-popover-content .service-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bg-white);
    text-transform: uppercase;
}

.service-popover-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 0.95rem;
}

.service-popover-content .btn {
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.service-popover-content .btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

/* Flickity Carousel Styles */
.services-carousel .flickity-prev-next-button {
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.services-carousel-wrapper:hover .flickity-prev-next-button {
    opacity: 1;
}

.services-carousel .flickity-prev-next-button:hover {
    background: var(--primary-color);
}

.services-carousel .flickity-prev-next-button .flickity-button-icon {
    fill: var(--text-dark);
}

.services-carousel .flickity-prev-next-button:hover .flickity-button-icon {
    fill: var(--bg-white);
}

.services-carousel .flickity-prev-next-button.previous {
    left: 20px;
}

.services-carousel .flickity-prev-next-button.next {
    right: 20px;
}

/* About Section */
.about-section {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-content .dynamic-content {
    grid-column: 1 / -1;
}

.about-content .dynamic-content img.alignright {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
    max-width: 300px;
}

.about-content .dynamic-content img.alignnone {
    display: inline-block;
    margin: 1rem;
    vertical-align: middle;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.certifications {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.certifications img {
    width: 300px;
    height: 200px;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5rem 0;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-section .section-title {
    color: var(--bg-white);
}

.contact-section .form-group label {
    color: var(--bg-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-section .form-group input,
.contact-section .form-group textarea {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-dark);
}

.contact-section .form-group input:focus,
.contact-section .form-group textarea:focus {
    background: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border: 2px solid;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2a2a2a 100%);
    color: var(--bg-white);
    padding: 4rem 0 2rem;
    margin-top: 70px;
    text-align: left;
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.content-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-text h1,
.content-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.content-text h1:first-child,
.content-text h2:first-child {
    margin-top: 0;
}

.content-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1rem 0;
}

.content-text img.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-text img.alignnone {
    display: block;
    margin: 1.5rem auto;
}

.content-text ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.content-text a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Latest Work Section */
.latest-work-section {
    background: #f8f9fa;
}

.work-list .btn {
    display: none;
}

.work-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.work-list li {
    background: var(--bg-white);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.work-list li:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.work-list h3 {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.work-list a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.work-list a:hover {
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: var(--bg-footer);
    color: #a0a0a0;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column-spacer {
    /* Leerer Spacer für bessere Breite */
}

.footer-column h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.footer-column p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-column a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-hover);
}

.footer-column .form-group label {
    color: var(--bg-white);
}

.footer-form {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #232323;
}

.copyright {
    font-size: 0.9rem;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        text-align: center;
    }

    .services-carousel {
        height: 400px;
    }

    .service-carousel-cell {
        height: 400px;
        width: 90%;
    }

    .services-carousel .flickity-viewport {
        height: 400px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-content .dynamic-content img.alignright {
        float: none;
        display: block;
        margin: 1rem auto;
        max-width: 100%;
    }

    .work-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-column-spacer {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        white-space: normal;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .hero-section {
        min-height: 500px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-title {
        white-space: normal;
        max-width: 90%;
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.work-list li {
    animation: fadeIn 0.6s ease-out;
}

