/* NeoPlan Beratung - Responsive Styles */

/* Contact Form */
.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--glass-border);
    width: 100%;
}

.contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-size: 2.2rem;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-group textarea::placeholder {
    color: #888888;
    opacity: 1;
}

.form-group select option {
    background: #1e293b;
    color: white;
}

.submit-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Legal Links Footer */
.legal-links {
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.legal-links a {
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.legal-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    color: var(--text-light);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid var(--glass-border);
    width: 80%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-heavy);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close-button {
    color: var(--text-light);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.modal-close-button:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    color: #ffffff;
    padding: 25px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#cookie-banner .cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#cookie-banner .cookie-text {
    flex-grow: 1;
    font-size: 15px;
    line-height: 1.5;
}

#cookie-banner .cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

#cookie-banner button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#cookie-banner #accept-cookie-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

#cookie-banner #decline-cookie-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

#cookie-banner button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Light Mode Forms */
body.light-mode .contact-form {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
}

body.light-mode .form-group label {
    color: var(--text-dark);
}

body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body.light-mode .form-group select option {
    background: white;
    color: var(--text-dark);
}

body.light-mode .modal-content {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
}

body.light-mode .modal-close-button {
    color: var(--text-dark);
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .logo-header h1 {
        font-size: 3.5rem;
    }
    
    .logo-watermark {
        width: 700px;
        opacity: 0.03;
    }
    
    .about-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .nav-menu {
        gap: 20px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .logo-header h1 {
        font-size: 2.8rem;
    }
    
    .logo-subtitle {
        font-size: 1.1rem;
    }
    
    .logo-watermark {
        width: 500px;
        opacity: 0.025;
    }

    .welcome-revolution {
        padding: 40px 30px;
        margin: 20px;
    }

    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-description {
        font-size: 1.2rem;
    }

    .revolutionary-buttons {
        flex-direction: column;
        align-items: center;
    }

    .revolution-button {
        min-width: 280px;
        padding: 18px 35px;
    }

    .about-section {
        padding: 30px;
        margin-bottom: 30px;
    }
    
    .about-image {
        width: 150px;
        height: 150px;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px;
        min-height: 250px;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
    }

    .contact-form {
        padding: 30px;
        margin: 20px;
    }
    
    .contact-form h2 {
        font-size: 1.8rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 30px;
    }
    
    .success-container {
        padding: 40px 30px;
        margin: 20px;
    }
    
    .success-container h1 {
        font-size: 2.2rem;
    }
    
    .success-container .checkmark {
        font-size: 4rem;
    }

    #theme-toggle {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .legal-links {
        padding: 30px 15px;
        font-size: 13px;
    }
    
    .legal-links a {
        margin: 0 10px;
        display: inline-block;
        margin-bottom: 10px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .main-nav {
        padding: 10px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 15px;
        font-size: 0.9rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .logo-header {
        padding: 80px 0 40px;
    }
    
    .logo-header h1 {
        font-size: 2.2rem;
    }
    
    .logo-watermark {
        width: 350px;
        opacity: 0.02;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-description {
        font-size: 1.1rem;
    }
    
    .revolution-button {
        min-width: 250px;
        font-size: 1rem;
    }
    
    .about-text h2 {
        font-size: 1.6rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-form h2 {
        font-size: 1.6rem;
    }
    
    .success-container h1 {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-container {
        justify-content: center;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .revolution-button:hover,
    .service-button:hover,
    .submit-button:hover,
    .back-button:hover,
    .continue-button:hover {
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .revolution-button,
    .service-button,
    .submit-button {
        min-height: 48px;
        padding: 18px 30px;
    }
    
    #theme-toggle {
        min-width: 50px;
        min-height: 50px;
    }
    
    /* Improved touch interactions */
    .revolution-button:active,
    .service-button:active,
    .submit-button:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-shapes .shape {
        animation: none;
    }
    
    .logo-watermark {
        transition: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.2);
        --glass-border: rgba(255, 255, 255, 0.4);
    }
    
    .welcome-revolution,
    .about-section,
    .service-card,
    .contact-form {
        border-width: 2px;
    }
}

/* Print Styles */
@media print {
    .floating-shapes,
    .logo-watermark,
    #theme-toggle,
    .main-nav,
    #cookie-banner {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
}