/* ============================================= */
/* SHARED.CSS - Gemeinsames Design FINAL       */
/* ============================================= */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #2d3748;
    --text-light: #4a5568;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --border-color: #e2e8f0;
}

/* ============================================= */
/* GLOBAL RESET & BASE STYLES                  */
/* ============================================= */

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================= */
/* HEADER - EINHEITLICH FÜR BEIDE SEITEN        */
/* ============================================= */

.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* KRITISCH: Button im Header - mit !important für beide Seiten */
.main-nav .btn-small {
    background: var(--white) !important;
    color: var(--primary-color) !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border: none;
}

.main-nav .btn-small:hover {
    background: #f0f0f0 !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.language-switcher {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.language-switcher a {
    color: var(--white);
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 0.9rem;
    text-decoration: none;
}

.language-switcher a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.mobile-menu-toggle i {
    display: block;
}

/* ============================================= */
/* BUTTONS - EINHEITLICH                        */
/* ============================================= */

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.btn-success {
    background-color: #28a745;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-large {
    padding: 16px 35px;
    font-size: 1.15rem;
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin: 0 10px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    text-decoration: none;
}

/* ============================================= */
/* FOOTER - EINHEITLICH FÜR BEIDE SEITEN        */
/* ============================================= */

.footer {
    background-color: var(--text-dark);
    color: #cbd5e0;
    padding: 60px 0 20px 0;
    font-size: 0.9rem;
    margin-top: 80px;
}

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

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.6;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col p i {
    color: var(--primary-color);
    margin-right: 8px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #4a5568;
    padding-top: 20px;
    color: #a0aec0;
}

/* ============================================= */
/* RESPONSIVE - TABLET                          */
/* ============================================= */

@media (max-width: 900px) {
    body {
        padding-top: 65px;
    }
    
    .main-nav {
        gap: 15px;
    }
    
    .main-nav a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .language-switcher {
        margin-left: 15px;
        padding-left: 15px;
    }
}

/* ============================================= */
/* RESPONSIVE - MOBILE                          */
/* ============================================= */

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .logo img {
        height: 38px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        gap: 0;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        border-radius: 8px;
        margin: 5px 0;
        font-size: 1rem;
    }
    
    /* KRITISCH: Button im Mobile Menu */
    .main-nav .btn-small {
        width: 90%;
        max-width: 350px;
        margin: 15px auto;
        display: block;
        background: var(--white) !important;
        color: var(--primary-color) !important;
        border: 2px solid var(--white);
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .main-nav .btn-small:hover,
    .main-nav .btn-small:active,
    .main-nav .btn-small:focus {
        background: rgba(255, 255, 255, 0.95) !important;
        color: var(--primary-color) !important;
        transform: none;
    }
    
    .language-switcher {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding-left: 0;
        padding-top: 20px;
        margin: 20px 0 0 0;
        width: 100%;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* ============================================= */
/* SEHR KLEINE HANDYS                           */
/* ============================================= */

@media (max-width: 400px) {
    .main-nav .btn-small {
        width: 95%;
        padding: 12px 18px;
        font-size: 0.95rem;
    }
}