/* ===================================
   Europaschule Kamp-Lintfort Styles
   Moderne Version mit Original-Farben
   =================================== */

:root {
    --primary-orange: #ed6b20;
    --border-color: rgb(237,107,32);
    --white: #ffffff;
    --gray-light: #fafafa;
    --gray-medium: #e0e0e0;
    --gray-dark: #666;
    --text-dark: #2c2c2c;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(237, 107, 32, 0.15);
}

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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===================================
   Header with GIF
   =================================== */
.header-container {
    border-bottom: 1px solid var(--gray-medium);
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header-container.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 40px;
}

.logo-left {
    flex: 0 0 200px;
    display: flex;
    justify-content: flex-start;
}

.logo-left img {
    max-height: 85px;
    width: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-left img:hover {
    opacity: 0.85;
}

.center-gif {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-gif img {
    max-height: 140px;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.logo-right {
    flex: 0 0 200px;
    display: flex;
    justify-content: flex-end;
}

.logo-right img {
    max-height: 75px;
    width: auto;
}

/* ===================================
   Sidebar Navigation
   =================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--gray-medium);
    overflow-y: auto;
    z-index: 999;
    transition: transform 0.3s ease;
}

.sidebar-header {
    background: var(--primary-orange);
    padding: 20px;
    text-align: center;
}

.sidebar-header h3 {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.social-section {
    padding: 24px 20px;
    background: var(--gray-light);
    border-bottom: 1px solid var(--gray-medium);
}

.social-section span {
    display: block;
    margin-bottom: 14px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-icons {
    display: flex;
    gap: 14px;
}

.social-icon {
    font-size: 22px;
    color: var(--primary-orange);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    color: #c85a1a;
    transform: translateY(-2px);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
}

.sidebar-nav > li {
    border-bottom: 1px solid var(--gray-medium);
}

.sidebar-nav a {
    display: block;
    padding: 16px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.sidebar-nav > li > a {
    background: var(--white);
}

.sidebar-nav > li > a:hover {
    background: var(--gray-light);
    color: var(--primary-orange);
    padding-left: 28px;
}

.submenu {
    list-style: none;
    background: var(--gray-light);
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submenu.active {
    display: block;
    max-height: 2000px;
}

.submenu a {
    padding: 13px 20px 13px 40px;
    font-size: 0.8rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    background: var(--gray-light);
}

.submenu a:hover {
    background: var(--white);
    color: var(--primary-orange);
    border-left-color: var(--primary-orange);
}

.dropdown-toggle::after {
    content: '▼';
    float: right;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.dropdown-toggle.active::after {
    transform: rotate(180deg);
}

/* ===================================
   Main Content Area
   =================================== */
.main-content {
    margin-left: 250px;
    padding: 50px 40px;
    padding-top: 220px;
    min-height: 100vh;
    background: var(--white);
}

/* ===================================
   Card Grid
   =================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1800px;
    margin: 0 auto;
}

.card-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 380px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 3;
}

.card-container:hover::before {
    transform: scaleX(1);
}

.card-container:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-medium);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.35s ease;
}

.card-container:hover .card-image {
    transform: scale(1.06);
    filter: brightness(0.85);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.7) 100%
    );
    transition: background 0.35s ease;
}

.card-container:hover .card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.8) 100%
    );
}

.card-title {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    z-index: 2;
    text-transform: uppercase;
    transition: all 0.35s ease;
}

.card-container:hover .card-title {
    transform: translateY(-5px);
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.card-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-container:hover .card-buttons {
    opacity: 1;
    transform: translateY(0);
}

.card-button {
    background: rgba(255, 255, 255, 0.97);
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

.card-button:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(237, 107, 32, 0.3);
}

/* ===================================
   Footer
   =================================== */
footer {
    background: var(--gray-light);
    color: var(--text-dark);
    padding: 30px 40px;
    margin-top: 60px;
    margin-left: 250px;
    border-top: 1px solid var(--gray-medium);
}

.footer-content {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-logo img {
    height: 45px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
}

/* ===================================
   Mobile Menu Toggle
   =================================== */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--primary-orange);
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-container {
    animation: fadeInUp 0.6s ease backwards;
}

.card-container:nth-child(1) { animation-delay: 0.1s; }
.card-container:nth-child(2) { animation-delay: 0.2s; }
.card-container:nth-child(3) { animation-delay: 0.3s; }
.card-container:nth-child(4) { animation-delay: 0.4s; }
.card-container:nth-child(5) { animation-delay: 0.5s; }
.card-container:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   Scrollbar Styling
   =================================== */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--gray-light);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #c85a1a;
}

/* ===================================
   Responsive Design - Tablet
   =================================== */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .card-container {
        height: 320px;
    }
}

/* ===================================
   Responsive Design - Mobile
   =================================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .header-container {
        left: 0;
        padding: 10px 0;
    }

    .main-content {
        margin-left: 0;
        padding: 20px 15px;
        padding-top: 200px;
    }

    footer {
        margin-left: 0;
        padding: 20px 15px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-container {
        height: 300px;
    }

    .header-content {
        flex-direction: column;
        padding: 10px 15px;
        gap: 15px;
    }

    .logo-left, .logo-right {
        flex: 0 0 auto;
    }

    .logo-left img {
        max-height: 70px;
    }
    
    .logo-right img {
        max-height: 60px;
    }

    .center-gif img {
        max-height: 100px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .mobile-toggle {
        display: block;
    }

    /* Mobile Card Buttons always visible */
    .card-buttons {
        opacity: 1;
        transform: translateY(0);
        padding: 15px 12px;
    }

    .card-title {
        font-size: 1.5rem;
        top: 20px;
    }

    .card-button {
        font-size: 0.8rem;
        padding: 9px 12px;
    }
}

/* ===================================
   Extra Small Devices
   =================================== */
@media (max-width: 480px) {
    .header-container {
        border-bottom-width: 1px;
        padding: 8px 0;
    }

    .main-content {
        padding-top: 180px;
    }

    .logo-left img {
        max-height: 55px;
    }
    
    .logo-right img {
        max-height: 50px;
    }

    .center-gif img {
        max-height: 80px;
    }

    .card-container {
        height: 280px;
        border-radius: 16px;
    }

    .card-title {
        font-size: 1.3rem;
        top: 15px;
    }

    .card-buttons {
        padding: 12px 10px;
        gap: 6px;
    }

    .card-button {
        font-size: 0.75rem;
        padding: 8px 10px;
    }

    .sidebar-nav a {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .submenu a {
        padding-left: 30px;
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 15px 10px;
        padding-top: 180px;
    }
}
