/*
Theme Name: KoSch Dienstleistungen Maintenance
Description: Wartungsmodus-Theme für KoSch Dienstleistungen e. K. (Übernahme durch KoSch Services UG)
Author: KoSch Dienstleistungen e. K.
Version: 1.0
Text Domain: kosch-dienstleistungen-maintenance
*/

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    overflow-x: hidden;
    margin: 0;
    padding: 20px;
    /* Touch-Optimierungen */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.maintenance-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 4rem 3rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modernes Logo-Design */
.company-logo {
    margin-bottom: 3rem;
    animation: logoFloat 3s ease-in-out infinite;
}

.main-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.15));
    margin-bottom: 1rem;
}

.logo-fallback {
    text-align: center;
}

.company-text {
    text-align: center;
}

.company-name {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    letter-spacing: -2px;
    line-height: 1.1;
}

.company-slogan {
    font-size: 1.1rem;
    color: #194d85;
    font-style: italic;
    font-weight: 500;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.company-holding {
    font-size: 1rem;
    color: #F5A623;
    margin: 0.5rem 0 1rem 0;
    font-weight: 500;
    font-style: italic;
}

/* Übernahme-Sektion */
.takeover-section {
    margin: 3rem 0;
    text-align: center;
}

.takeover-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.takeover-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

.highlight {
    color: #194d85;
    font-weight: 700;
}

.takeover-notice {
    margin: 2rem 0;
}

.notice-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #194d85;
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 8px 25px rgba(25, 77, 133, 0.1);
}

.notice-box h3 {
    color: #194d85;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.notice-box h4 {
    color: #194d85;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
}

.takeover-benefits ul {
    list-style: none;
    padding: 0;
}

.takeover-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.takeover-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

.redirect-info {
    background: #e8f4f8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid #194d85;
}

/* Moderner Kontaktbereich */
.contact-section {
    margin: 3rem 0 2rem 0;
}

.contact-title {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Touch-Optimierungen */
    min-height: 44px;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #194d85;
}

.contact-card:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.contact-card.email:hover {
    background: linear-gradient(135deg, #f0f4f8, #ffffff);
}

.contact-card.phone:hover {
    background: linear-gradient(135deg, #f0f4f8, #ffffff);
}

.contact-card.address {
    cursor: default;
}

.contact-card.address:hover {
    background: linear-gradient(135deg, #f0f4f8, #ffffff);
}

.contact-icon {
    font-size: 2rem;
    min-width: 60px;
    text-align: center;
}

.contact-details {
    flex: 1;
    text-align: left;
}

.contact-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.contact-value {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
}

/* Footer modern */
.footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.95rem;
}

#impressumBtn {
    background: linear-gradient(135deg, #194d85, #0f3759);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(25, 77, 133, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Touch-Optimierungen */
    min-height: 44px;
    min-width: 44px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
}

#impressumBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(25, 77, 133, 0.4);
}

#impressumBtn:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

/* Animationen */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* WordPress spezifische Styles */
.wp-admin-bar {
    display: none !important;
}

#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

/* Modal Styles modern */
#impressumModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    padding: 2rem;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
    /* Touch-Optimierungen */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 750px;
    margin: 2rem auto;
    padding: 3rem;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid #e9ecef;
    /* Smooth Scrolling */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

#closeModal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #194d85;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 77, 133, 0.3);
    /* Touch-Optimierungen */
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

#closeModal:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(25, 77, 133, 0.4);
}

#closeModal:active {
    transform: scale(1.05);
    transition: all 0.1s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .maintenance-container {
        padding: 2rem 1.5rem;
        margin: 0.5rem;
        border-radius: 16px;
    }
    
    .company-name {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    
    .company-slogan {
        font-size: 1rem;
    }
    
    .company-holding {
        font-size: 0.9rem;
    }
    
    .takeover-title {
        font-size: 2rem;
    }
    
    .takeover-icon {
        font-size: 3rem;
    }
    
    .notice-box {
        padding: 1.5rem;
    }
    
    .notice-box h3 {
        font-size: 1.2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .contact-icon {
        font-size: 1.8rem;
        min-width: auto;
    }
    
    .contact-details {
        text-align: center;
    }
    
    .contact-value {
        font-size: 1rem;
        word-break: break-all;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 2rem 1.5rem;
        max-height: 85vh;
    }
    
    #closeModal {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .maintenance-container {
        padding: 1.5rem 1rem;
        margin: 0.25rem;
    }
    
    .company-name {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .company-slogan {
        font-size: 0.95rem;
    }
    
    .company-holding {
        font-size: 0.8rem;
        margin: 0.3rem 0 0.5rem 0;
    }
    
    .takeover-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .takeover-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .notice-box {
        padding: 1rem;
    }
    
    .contact-title {
        font-size: 1.3rem;
    }
    
    .contact-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .contact-icon {
        font-size: 1.5rem;
    }
    
    .contact-label {
        font-size: 0.8rem;
    }
    
    .contact-value {
        font-size: 0.95rem;
    }
    
    .footer {
        font-size: 0.9rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    #impressumBtn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .modal-content {
        margin: 0.5rem;
        padding: 1.5rem 1rem;
        border-radius: 16px;
        max-height: 90vh;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .modal-content h3 {
        font-size: 1.1rem;
        margin-top: 1rem;
    }
    
    .modal-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    #closeModal {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

/* Sehr kleine Bildschirme (unter 360px) */
@media (max-width: 360px) {
    body {
        padding: 5px;
    }
    
    .maintenance-container {
        padding: 1rem 0.8rem;
        margin: 0.1rem;
        border-radius: 12px;
    }
    
    .company-name {
        font-size: 1.5rem;
        word-break: break-word;
    }
    
    .takeover-title {
        font-size: 1.4rem;
    }
    
    .contact-card {
        padding: 0.8rem;
        min-height: 50px;
    }
    
    .contact-value {
        font-size: 0.85rem;
        word-break: break-all;
    }
    
    #impressumBtn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .maintenance-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    #impressumBtn {
        display: none;
    }
    
    .takeover-icon {
        display: none;
    }
}