/* ===== GRUNDSETTINGS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    background: #1a2a4a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a2a4a, #2b3a67);
    padding: 40px 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
}

/* Hamburger ganz links */
.hamburger {
    position: relative !important;
    left: 0 !important;
    margin-left: 5px !important;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Logo mittig */
.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo-img {
    height: 40px;
    width: auto;
}

/* Instagram Button */
.instagram-btn {
    position: relative;
    right: 0;
    margin-right: 5px !important;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    font-size: 28px;
}

.instagram-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #1a2a4a, #2b3a67);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.2);
}

.nav-links {
    list-style: none;
    padding: 20px;
}

.nav-links li {
    margin-bottom: 15px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(135deg, #1a2a4a, #2b3a67);
    color: white;
    transform: translateX(10px);
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== CONTENT ===== */
.content {
    position: relative;
    width: 100%;
    flex: 1;
    background: #1a2a4a;
    padding-top: 120px;
    padding-bottom: 0;
}

/* Back Button */
.back-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 999;
    color: #1a2a4a;
    font-weight: 600;
}

.back-btn:hover {
    transform: translateX(-5px);
    background: #f0f0f0;
}

/* ===== FOOTER ===== */
.main-footer {
    background: linear-gradient(135deg, #1a2a4a, #2b3a67);
    padding: 35px 20px;
    width: 100%;
    margin-top: 0;
    border-top: 3px solid #c41e3a;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 15px 30px;
    border-radius: 50px;
    background: rgba(196, 30, 58, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.footer-link:hover {
    background: #c41e3a;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border-color: white;
}

.footer-link i {
    font-size: 1.3rem;
    color: white;
}

@media (max-width: 768px) {
    .footer-container {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-link {
        font-size: 1.1rem;
        padding: 12px 25px;
        width: 80%;
        justify-content: center;
    }
}

/* ===== STARTSEITE ===== */
.hero-section {
    position: relative;
    min-height: calc(100vh - 120px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                      url('grafiken/hintergrund.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.text-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    max-width: 800px;
    margin: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.text-container h1 {
    color: #1a2a4a;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.description {
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.mehr-lesen {
    display: inline-block;
    background: linear-gradient(135deg, #1a2a4a, #2b3a67);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mehr-lesen:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #2b3a67, #1a2a4a);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STANDARD SEITENLAYOUT ===== */
.page-content {
    background: rgba(26, 42, 74, 0.7);
    padding: 40px;
    border-radius: 0;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    min-height: calc(100vh - 240px);
}

.page-content h1 {
    color: white;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    border-bottom: 3px solid #c41e3a;
    padding-bottom: 8px;
    display: block;
    width: 100%;
}

.page-content h2 {
    color: #c41e3a;
    margin-top: 30px;
    border-bottom: 2px solid #c41e3a;
    padding-bottom: 8px;
}

.page-content h3 {
    color: #c41e3a;
    margin-top: 20px;
}

.page-content p {
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
}

/* ===== VORSTAND ===== */
.person-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
    border: 3px solid #c41e3a;
}

.person-initials {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a2a4a;
    color: white;
    font-size: 36px;
    font-weight: bold;
    border: 3px solid #c41e3a;
}

/* ===== TERMINE ===== */
.termin-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.termin-datum {
    color: #c41e3a;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.termin-info {
    color: white;
}

.termin-zusatz {
    color: rgba(255,255,255,0.7);
}

/* ===== HANDY-OPTIMIERUNG ===== */
@media (max-width: 768px) {
    .main-header {
        padding: 20px 10px;
    }
    
    .hamburger {
        width: 40px;
        height: 40px;
        margin-left: 2px !important;
    }
    
    .hamburger span {
        width: 24px;
        height: 2.5px;
    }
    
    .instagram-btn {
        width: 40px;
        height: 40px;
        margin-right: 2px !important;
        font-size: 22px;
    }
    
    .header-logo-img {
        height: 30px;
    }
    
    .text-container {
        padding: 20px;
        margin: 10px;
    }
    
    .text-container h1 {
        font-size: 1.5rem;
    }
    
    .description {
        font-size: 0.95rem;
    }
    
    .page-content {
        padding: 20px;
        width: 95%;
        min-height: calc(100vh - 200px);
    }
    
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}