/* Root Variables */
:root {
    --primary-color: #000000;
    --secondary-color: #dc0000;
    --accent-color: #ffffff;
    --accent-color1: #EFEFEF;
    --footer-color: #333333;
    --slant-angle: 3deg;
    --font-family: 'Montserrat', sans-serif;
    --seitenbreite: 1400px; 
}  

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--accent-color);
    color: var(--primary-color);
    overflow-x: hidden;
    font-size: 16px;
}

/* Link Styles */
.mitgliedlinks a {
    text-decoration: underline;
    color: var(--secondary-color);
}

.mitgliedlinks a:hover {
    color: var(--secondary-color);
}

/* Slanted Elements */
.slant-down {
    position: relative;
    padding-bottom: 6rem;
}

.slant-down::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10rem;
    background: inherit;
    z-index: -1;
    transform: skewY(var(--slant-angle));
    transform-origin: bottom right;
}

.slant-up {
    position: relative;
    padding-top: 6rem;
}

.slant-up::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10rem;
    background: inherit;
    z-index: -1;
    transform: skewY(calc(-1 * var(--slant-angle)));
    transform-origin: top left;
}

/* Header Styles */
.header {
    background-color: var(--secondary-color);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0.5rem 2rem;
    position: fixed;
    width: 100%;
    min-height: 100px;
    padding-left: 200px;
    top: 0;
    z-index: 1000;
}

.logo-container {
    position: absolute;
    z-index: 10;
    left: 20px;
    top: 0;
}

.logo {
    max-width: 150px;
    height: auto;
    padding: 5px;
    position: relative;
    top: 20px;
}

/* Header bottom slant */
.header-bottom-slant {
    height: 20px;
    background-color: var(--secondary-color);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0%);
    margin-top: -1px;
    z-index: 2;
}

/* Navigation Styles */
.navigation {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    height: 100%;
}

.navigation a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    padding-bottom: 0.5rem;
    position: relative;
    letter-spacing: 0.02em;
    white-space: nowrap;
    display: inline-block;
}

.navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

/* Menu toggle for mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: relative;
    z-index: 15;
    padding-top: -25px;
    top: -40px;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
}

/* Main Content Styles */
main { 
    margin-top: 150px;
    padding: 0;
    overflow: hidden;
}

section {
    padding: 0;
}

.section-heading {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
    padding-left: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 2rem;
    width: 80px;
    height: 5px;
    background: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--primary-color);
    padding: 0;
    margin-bottom: 6rem;
    overflow: hidden;
    max-width: 100%;
    height: 70vh;
    min-height: 600px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/api/placeholder/1600/800');
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.7;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    width: 90%;
    max-width: var(--seitenbreite);
    margin: 0 auto;
}

.hero-content {
    color: var(--accent-color);
    width: 60%;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.7);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
    transform: translateX(-2rem);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    transform: skewX(calc(-1 * var(--slant-angle)));
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-btn:hover {
    background-color: #cc0000;
    transform: translateX(10px);
}

/* News Section */
.news-section {
    padding: 6rem 0;
    background-color: var(--accent-color);
    position: relative;
    overflow: hidden;
    margin-top: -100px;
}

.news-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--accent-color);
    z-index: 2;
}

.news-container {
    width: 90%;
    max-width: var(--seitenbreite);
    margin: 0 auto;
    padding: 0 1rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;
    margin-bottom: 3rem;
}

/* Square images */
.square-img {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.news-card {
    background-color: var(--accent-color);
    overflow: visible;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    grid-column: span 1;
    cursor: pointer;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--accent-color);
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 97% 100%, 0 100%);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    background-color: #ddd;
    background-size: cover;
    background-position: center center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
    transition: transform 0.5s ease;
    position: relative;
}

.news-image.square-img {
    padding-bottom: 75%;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 2rem;
    background-color: var(--accent-color);
    flex: 1;
}

.news-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.news-content p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
    display: block;
    font-weight: bold;
}

.read-more {
    display: inline-block;
    color: var(--accent-color);
    background-color: var(--secondary-color);
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    font-weight: bold;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.read-more:hover {
    background-color: #cc0000;
    transform: translateX(5px);
}

/* Sports Section / Departments */
.sports-section {
    padding: 6rem 0;
    background-color: var(--primary-color);
    position: relative;
    color: var(--accent-color);
    z-index: 1;
    overflow: hidden;
}

.sports-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--primary-color);
    transform: skewY(var(--slant-angle));
    z-index: 0;
}

.sports-container {
    width: 90%;
    max-width: var(--seitenbreite);
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.sports-section .section-heading {
    color: var(--accent-color);
}

/* Departments Grid */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 2.5rem;
    margin-top: 4rem;
}

.department-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    border-radius: 5px;
    transform: skewY(calc(-1 * var(--slant-angle) / 2));
    transition: transform 0.3s ease;
}

/* Different widths for department cards */
.department-card:nth-child(3n+1),
.department-card:nth-child(3n+2),
.department-card:nth-child(3n+3) {
    grid-column: span 4;
}

.department-card:hover {
    transform: skewY(calc(-1 * var(--slant-angle) / 2)) translateY(-10px);
}

.department-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    transform: skewY(var(--slant-angle) / 2);
}

.department-card:hover .department-bg {
    opacity: 0.4;
}

.department-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: skewY(var(--slant-angle) / 2);
}

.department-icon {
    width: 180px;
    height: 180px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.department-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.department-card:hover .department-icon {
    transform: scale(1.1);
}

.department-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.department-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.department-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.department-btn:hover {
    background-color: #cc0000;
    transform: translateX(10px);
}

/* Footer Styles */
footer {
    background-color: var(--footer-color);
    color: var(--accent-color);
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--footer-color);
    transform: skewY(var(--slant-angle));
}

.footer-container {
    width: 90%;
    max-width: var(--seitenbreite);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 3rem;
    position: relative;
}

.footer-section:nth-child(1) {
    grid-column: span 5;
}

.footer-section:nth-child(2) {
    grid-column: span 3;
}

.footer-section:nth-child(3),
.footer-section:nth-child(4) {
    grid-column: span 2;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    transform: skewX(calc(-1 * var(--slant-angle)));
}

.footer-section p {
    color: #bbb;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-icons a {
    color: var(--accent-color);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    position: relative;
    color: #999;
    width: 90%;
    max-width: var(--seitenbreite);
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 1px;
    background-color: #555;
    transform: skewX(var(--slant-angle));
}

.back-btn {
    display: inline-block;
    float: left;
    margin-bottom: 2rem;
    clear: both;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    font-weight: bold;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-top: 1rem;
}

.back-btn:hover {
    background-color: #cc0000;
    transform: translateX(5px);
}

/* Mobile Navigation Styles */
.header.mobile-mode {
    justify-content: flex-end;
    padding-left: 10px !important;
    min-height: 80px;
}

.navigation.mobile-ready {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--secondary-color);
    flex-direction: column;
    align-items: center;
    padding: 100px 2rem 2rem;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.navigation.mobile-ready.active {
    left: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.navigation.mobile-ready a {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header.mobile-mode .menu-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    top: 25px;
    z-index: 1001;
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .navigation {
        gap: 1.5rem;
    }
    
    .navigation a {
        font-size: 1.3rem;
    }
    
    .header {
        padding-left: 180px;
    }
}

@media (max-width: 1280px) {
    .navigation {
        gap: 1.2rem;
    }
    
    .navigation a {
        font-size: 1.2rem;
        letter-spacing: -0.01em;
    }
    
    .header {
        padding-left: 170px;
    }
}

@media (max-width: 1200px) {
    .navigation {
        gap: 1rem;
    }
    
    .navigation a {
        font-size: 1.1rem;
    }
    
    .header {
        padding-left: 160px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }

    .department-card:nth-child(n) {
        grid-column: span 6;
    }
}

@media (max-width: 1120px) {
    .navigation {
        gap: 0.7rem;
    }
    
    .navigation a {
        font-size: 1rem;
        padding-left: 0.2rem;
        padding-right: 0.2rem;
        letter-spacing: -0.02em;
    }
    
    .header {
        padding-left: 150px;
    }
}

@media (max-width: 1020px) {
    .navigation {
        gap: 0.5rem;
    }
    
    .navigation a {
        font-size: 0.95rem;
        letter-spacing: -0.03em;
    }
    
    .header {
        padding-left: 140px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        width: 80%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-section:nth-child(1),
    .footer-section:nth-child(2),
    .footer-section:nth-child(3),
    .footer-section:nth-child(4) {
        grid-column: span 6;
    }
}

@media (max-width: 930px) {
    .header {
        justify-content: flex-end;
        padding-left: 10px !important;
        min-height: 80px;
    }
    
    .logo-container {
        position: absolute;
        left: 10px;
        top: 5px;
        z-index: 1001;
    }
    
    .logo {
        max-width: 100px;
        top: 15px;
    }
    
    .header-bottom-slant {
        height: 15px;
    }
    
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 25px;
        z-index: 1001;
    }
    
    .navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        padding: 100px 2rem 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .navigation.active {
        left: 0;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .navigation a {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        font-size: 1.3rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .navigation a:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    main {
        margin-top: 120px;
    }

    .hero-content {
        width: 100%;
        padding: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .logo {
        max-width: 80px;
        top: 5px;
    }
    
    .header {
        min-height: 75px;
    }
    
    .navigation {
        width: 85%;
    }

    .news-card:nth-child(n),
    .department-card:nth-child(n) {
        grid-column: 1 / -1;
    }

    .footer-section:nth-child(n) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .logo {
        max-width: 75px;
        top: 5px;
    }
    
    .navigation {
        width: 90%;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        height: 100px;
    }
    
    .hero-section {
        height: 60vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    /* Sports container fixes */
    .sports-container {
        width: 95%;
        padding: 0;
        overflow: hidden;
    }
    
    .departments-grid {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 2rem 0;
        gap: 1.5rem;
    }
    
    .department-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        transform: none !important;
    }
    
    .department-card::before {
        width: 100%;
    }
    
    .department-bg {
        width: 100%;
        transform: none;
    }
    
    .department-content {
        width: 100%;
        transform: none;
        padding: 1.5rem;
    }
    
    .department-icon {
        width: 150px;
        height: 150px;
    }
    
    .department-icon img {
        width: 100px;
        height: 100px;
    }
    
    .department-content h3 {
        font-size: 1.5rem;
    }
    
    .department-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 70px;
        top: 5px;
    }
    
    .header {
        min-height: 70px;
    }
    
    .menu-toggle {
        top: 20px;
        right: 15px;
    }
    
    .navigation a {
        font-size: 1.1rem;
        padding: 12px 15px;
    }
    
    .department-card {
        transform: none;
    }
    
    .department-card:hover {
        transform: translateY(-5px);
    }
    
    .news-card:hover,
    .department-card:hover {
        transform: none;
    }
}

@media (max-width: 375px) {
    .department-icon {
        width: 120px;
        height: 120px;
    }
    
    .department-icon img {
        width: 80px;
        height: 80px;
    }
}