/* ==========================================================================
   Nebenkosten-Assistent - Devin Template Base
   Optimiert für Performance und Mobile Navigation
   ========================================================================== */

:root {
    --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --heading-font: "Raleway", sans-serif;
    --nav-font: "Poppins", sans-serif;
    --background-color: #ffffff;
    --default-color: #444444;
    --heading-color: #151515;
    --accent-color: #3498db;
    --surface-color: #ffffff;
    --contrast-color: #ffffff;
    --nav-color: #2c3e50;
    --nav-hover-color: #3498db;
    --nav-mobile-background-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--default-font);
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
    font-weight: 700;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 15px 0;
    transition: all 0.5s;
    z-index: 997;
    box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.header .logo {
    line-height: 1;
}

.header .logo img {
    max-height: 50px;
    margin-right: 12px;
}

.header .logo h1 {
    font-size: 28px;
    margin: 0;
    font-weight: 700;
    color: var(--heading-color);
}

.header.sticked {
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
}

.sticked-header-offset {
    margin-top: 70px;
}

/* ==========================================================================
   DESKTOP NAVIGATION (ab 1200px)
   ========================================================================== */
@media (min-width: 1200px) {
    .mobile-nav-toggle {
        display: none !important;
    }
    
    .navmenu {
        padding: 0;
    }
    
    .navmenu ul {
        margin: 0;
        padding: 0;
        display: flex !important;
        list-style: none;
        align-items: center;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .navmenu li {
        position: relative;
    }
    
    .navmenu a,
    .navmenu a:focus {
        color: var(--nav-color);
        padding: 18px 15px;
        font-size: 15px;
        font-family: var(--nav-font);
        font-weight: 400;
        display: flex;
        align-items: center;
        white-space: nowrap;
        transition: 0.3s;
    }
    
    .navmenu li:hover > a,
    .navmenu .active {
        color: var(--accent-color);
    }
}

/* ==========================================================================
   MOBILE NAVIGATION (bis 1199px) - ✅ FIXED VERSION
   ========================================================================== */
@media (max-width: 1199px) {
    /* Burger Icon */
    .mobile-nav-toggle {
        display: block !important;
        color: var(--nav-color);
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        z-index: 10001;
        position: relative;
        transition: color 0.3s;
    }
    
    /* Navmenu Container */
    .navmenu {
        padding: 0;
    }
    
    /* ✅ Menu standardmäßig VERSTECKT */
    .navmenu ul {
        display: none !important;
        list-style: none;
        position: fixed;
        top: 70px;
        left: 20px;
        right: 20px;
        bottom: 20px;
        padding: 20px 0;
        margin: 0;
        border-radius: 8px;
        background-color: var(--nav-mobile-background-color);
        overflow-y: auto;
        z-index: 10000;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    }
    
    /* ✅ Menu ANZEIGEN wenn Body aktiv */
    body.mobile-nav-active .navmenu ul {
        display: block !important;
    }
    
    /* Menu Items */
    .navmenu li {
        display: block;
        width: 100%;
    }
    
    .navmenu a,
    .navmenu a:focus {
        color: var(--nav-color);
        padding: 12px 20px;
        font-family: var(--nav-font);
        font-size: 17px;
        font-weight: 500;
        display: block;
        border-bottom: 1px solid #f0f0f0;
        transition: 0.3s;
    }
    
    .navmenu a:hover,
    .navmenu .active {
        color: var(--accent-color);
        background-color: rgba(52, 152, 219, 0.05);
    }
    
    /* ✅ Backdrop/Overlay */
    body.mobile-nav-active::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
    }
    
    /* ✅ Body Scroll Lock */
    body.mobile-nav-active {
        overflow: hidden;
    }
    
    /* ✅ Icon Farbe wenn Menu offen */
    body.mobile-nav-active .mobile-nav-toggle {
        color: #fff;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 10001;
    }
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
main {
    min-height: calc(100vh - 200px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    color: var(--default-color);
    background-color: var(--background-color);
    font-size: 14px;
    padding: 40px 0;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright {
    padding: 25px 0;
}

.footer .copyright p {
    margin-bottom: 0;
}

.footer .credits {
    margin-top: 6px;
    font-size: 13px;
}

.footer-top {
    padding-bottom: 30px;
}

.footer .footer-about .sitename {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
}

.footer h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links ul li {
    padding: 5px 0;
}

.footer .footer-links ul a {
    color: var(--default-color);
}

.footer .footer-links ul a:hover {
    color: var(--accent-color);
}

.footer .footer-links ul i {
    margin-right: 5px;
    font-size: 12px;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
    font-size: 16px;
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    margin-right: 10px;
    transition: 0.3s;
}

.footer .social-links a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ==========================================================================
   CTA BUTTON
   ========================================================================== */
.btn-getstarted {
    color: var(--contrast-color);
    background: var(--accent-color);
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 26px;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-getstarted:hover {
    color: var(--contrast-color);
    background: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99996;
    background: var(--accent-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.4s;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.scroll-top i {
    font-size: 24px;
    color: var(--contrast-color);
    line-height: 0;
}

.scroll-top:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 20%);
    color: var(--contrast-color);
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */
.contact-wrapper {
    background-color: var(--background-color);
    min-height: 100vh;
    padding: 60px 0;
}

.contact-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.contact-header i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.contact-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.contact-header p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.contact-body {
    padding: 40px;
}

.contact-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 24px;
    color: #3498db;
    margin-right: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.info-item p {
    margin: 0;
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.6;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
    outline: none;
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #dc3545;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #6c757d;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    cursor: pointer;
    width: 100%;
    font-family: var(--heading-font);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    color: white;
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Job ID Field Animation */
.job-id-field {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
}

.job-id-field.show {
    max-height: 200px;
    opacity: 1;
    margin-top: 0;
}

/* reCAPTCHA Container */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    animation: slideDown 0.4s ease;
}

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

.alert i {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.alert ul li {
    margin: 3px 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .header .logo h1 {
        font-size: 24px;
    }
    
    .header .logo img {
        max-height: 36px;
    }
    
    .btn-getstarted {
        padding: 6px 20px;
        font-size: 14px;
    }
    
    .contact-wrapper {
        padding: 30px 15px;
    }

    .contact-header {
        padding: 30px 20px;
    }

    .contact-header h1 {
        font-size: 26px;
    }

    .contact-header i {
        font-size: 36px;
    }

    .contact-body {
        padding: 30px 20px;
    }

    .contact-info {
        padding: 20px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .info-item i {
        margin: 0 0 10px 0;
    }

    .btn-submit {
        padding: 12px 30px;
        font-size: 15px;
    }
    
    .scroll-top {
        right: 15px;
        bottom: 15px;
    }
}