/**
 * Forst & Sohn OHG - Haustechnik Website
 * Stylesheet für statische Website
 * Optimiert für Strato-Hosting
 */

/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #111827;
    color: #e5e7eb;
    line-height: 1.6;
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #374151;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 56px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #00FF00;
}

.header-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background-color: #00FF00;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 255, 0, 0.3);
}

.btn-primary:hover {
    background-color: #00DD00;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 255, 0, 0.5);
}

.btn-whatsapp {
    background-color: #00FF00;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 255, 0, 0.3);
}

.btn-whatsapp:hover {
    background-color: #00DD00;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 255, 0, 0.5);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #d1d5db;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #1f2937;
    border-top: 1px solid #374151;
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

/* ==================== HERO SLIDER ==================== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content-inner {
    max-width: 56rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s;
}

.hero p {
    font-size: 1.5rem;
    color: #e5e7eb;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s 0.2s backwards;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.hero-nav.prev {
    left: 1rem;
}

.hero-nav.next {
    right: 1rem;
}

.hero-nav button {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-nav button:hover {
    background-color: rgba(0, 255, 0, 0.2);
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    width: 2rem;
    background-color: #00FF00;
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.section-dark {
    background-color: #1f2937;
}

.section-darker {
    background-color: #111827;
}

/* Animated Background Blobs */
.section-darker::before,
.section-dark::before {
    content: '';
    position: absolute;
    top: 5rem;
    left: 2.5rem;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.05), transparent);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.section-darker::after,
.section-dark::after {
    content: '';
    position: absolute;
    bottom: 5rem;
    right: 2.5rem;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.05), transparent);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite 1s;
    pointer-events: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-title span {
    color: #00FF00;
    position: relative;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 0.25rem;
    background: linear-gradient(90deg, transparent, #00FF00, transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.section-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 42rem;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ==================== SERVICES GRID ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.9), rgba(31, 41, 55, 0.9));
    border: 2px solid #4b5563;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0), rgba(0, 255, 0, 0));
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.service-card:hover::before {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.05), rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0.05));
    opacity: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5rem;
    height: 5rem;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.1), transparent);
    opacity: 0;
    filter: blur(30px);
    transition: opacity 0.5s;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    border-color: #00FF00;
    transform: translateY(-0.75rem) translateZ(20px);
    box-shadow: 0 20px 60px rgba(0, 255, 0, 0.3), 
                0 10px 30px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-icon {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 255, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #00FF00;
    transition: all 0.5s;
}

.service-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    stroke: currentColor;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -0.5rem;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 1rem;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover .service-icon::before {
    opacity: 1;
    filter: blur(30px);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(6deg);
    border-color: rgba(0, 255, 0, 0.5);
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.3), rgba(0, 255, 0, 0.15));
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.service-card:hover h3 {
    color: #00FF00;
}

.service-card p {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ==================== TEAM GRID ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

.team-card {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s;
}

.team-card:hover {
    border-color: #00FF00;
}

.team-image {
    position: relative;
    height: 20rem;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #1f2937, rgba(31, 41, 55, 0.5), transparent);
}

.team-content {
    position: relative;
    padding: 1.5rem;
    margin-top: -5rem;
    z-index: 10;
}

.team-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.team-position {
    color: #00FF00;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.team-description {
    color: #d1d5db;
    font-size: 0.875rem;
}

/* ==================== REFERENCES GRID ==================== */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.reference-card {
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.reference-card:hover {
    border-color: #00FF00;
    transform: translateY(-0.25rem);
}

.reference-image {
    height: 16rem;
    overflow: hidden;
}

.reference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.reference-card:hover .reference-image img {
    transform: scale(1.05);
}

.reference-content {
    padding: 1rem;
}

.reference-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

/* ==================== MODAL ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.2);
    color: #00FF00;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== PARTNERS ==================== */
.partners-wrapper {
    position: relative;
    overflow: hidden;
}

.partners-gradient-left,
.partners-gradient-right {
    display: none;
}

.partners-scroll {
    display: flex;
    overflow: hidden;
}

.partners-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.partner-item {
    flex-shrink: 0;
    width: 12rem;
    height: 6rem;
    margin: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==================== CONTACT FORM ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    padding: 2rem;
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(0, 255, 0, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00FF00;
    flex-shrink: 0;
    font-size: 1.25rem;
    transition: all 0.3s;
}

.info-item:hover .info-icon {
    background-color: rgba(0, 255, 0, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.info-content h4 {
    color: #fff;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.info-content p {
    color: #d1d5db;
    line-height: 1.6;
}

.info-link {
    color: #00FF00;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    font-weight: 400;
}

.info-link:hover {
    color: #00DD00;
    text-decoration: none;
    font-weight: 700;
}

.contact-form-card {
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    padding: 2rem;
}

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

.form-group label {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00FF00;
}

.form-group textarea {
    min-height: 8rem;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: #0a0f1a;
    border-top: 1px solid #374151;
    padding: 4rem 1.5rem 2rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo-section {
    text-align: left;
}

.footer-logo {
    height: 4rem;
    margin-bottom: 1rem;
}

.footer-company-text {
    color: #d1d5db;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #00FF00;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.footer-contact,
.footer-links,
.footer-legal-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-title,
.footer-links-title,
.footer-legal-title {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d1d5db;
    font-size: 0.875rem;
}

.footer-contact-item svg {
    color: #00FF00;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-item a:hover {
    color: #00FF00;
}

.footer-contact-item span {
    line-height: 1.5;
}

.footer-links-nav,
.footer-legal-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-nav a,
.footer-legal-nav a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.875rem;
}

.footer-links-nav a:hover,
.footer-legal-nav a:hover {
    color: #00FF00;
}

.footer-bottom {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-logo-section {
        text-align: center;
    }
    
    .footer-contact,
    .footer-links,
    .footer-legal-section {
        text-align: center;
    }
    
    .footer {
        padding: 3rem 1.5rem 2rem;
    }
}

/* ==================== FLOATING WHATSAPP BUTTON ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(4rem);
    transition: all 0.3s;
}

.whatsapp-float.visible {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-float a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.whatsapp-float a::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #25d366;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.75;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.8s, transform 0.8s;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== SUCCESS MESSAGE ==================== */
.success-message {
    display: none;
    background-color: rgba(0, 255, 0, 0.15);
    border: 2px solid #00FF00;
    color: #00FF00;
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    animation: slideDown 0.3s ease-out;
}

.success-message.show {
    display: block;
}

.error-message {
    display: none;
    background-color: rgba(239, 68, 68, 0.15);
    border: 2px solid #ef4444;
    color: #ef4444;
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    animation: slideDown 0.3s ease-out;
}

.error-message.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Kleineres Logo im Mobile Menu */
    .mobile-menu .logo img,
    .header-container .logo img {
        height: 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    /* Services Section - Reduzierte Abstände auf Mobile */
    .services-grid {
        gap: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    /* Partner Logos - Mobile Anpassung */
    .partner-item {
        width: 8rem;
        height: 4rem;
        margin: 0 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
