
html {
    scroll-behavior: smooth;
}


article {
    border-radius: 15px;
    margin: 0 3vw;
    z-index: 1;
}

@media (max-width: 1350px) {
    article {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 1.5vw;
    }
}

@media (min-width: 1450px) {
    article {
        width: 70vw;
    }
}


.article-item {
    background: rgb(254, 254, 254);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
}

.article-item img {
    width: 100%;
    height: auto;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: block;
}

.article-item p {
    margin: 0 20px;
    font-size: 16px;
    color: #5e6168;
    padding-bottom: 20px;
}

.article-item .post-title {
    margin: 8px 20px 6px 20px;
    font-size: 1.2rem;
    color: #000000;
    font-weight: 900;
}

.article-item .post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7a7a7a;
    font-size: 1rem;
    margin: 0 20px;
}

.article-item .tag-badge {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.55), rgba(59, 130, 246, 0.55));
    color: rgb(30, 64, 175);
    padding: 3px 9px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Vorstand-Cards */
.vorstand-item {
    background: rgb(254, 254, 254);
    border-radius: 16px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
}

.vorstand-item img {
    width: 100%;
    height: auto;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: block;
}

.vorstand-item p {
    margin: 0 20px 15px 20px;
    font-size: 22px;
    color: #5e6168;
}

.vorstand-item .post-title,
.vorstand-item .post-title-beisitzer {
    font-size: 1.8rem;
    color: #222;
    font-weight: 900;
}

.vorstand-item .post-title {
    margin: 0 20px 6px 20px;
}

.vorstand-item .post-title-beisitzer {
    margin: 15px 20px 6px 20px;
}

.article-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
}

.article-layout a{
    width: fit-content;
    height: fit-content;
}

@media (min-width: 2250px) {

}

@media (max-width: 2250px) {
    .article-layout { grid-template-columns: repeat(3, 1fr); }

}

@media (max-width: 1450px) {
    .article-layout { grid-template-columns: repeat(2, 1fr); }
    aside { width: 25vw; }
    section { width: 75vw; }
    .article-half { width: 100%; }
}

@media (max-width: 1350px) {
    .article-layout { grid-template-columns: repeat(2, 1fr); }
    section { width: 100vw; }
}

@media (max-width: 750px) {
    .article-layout { grid-template-columns: 1fr; }
}

@media (min-width: 1450px) {
    .article-half { width: 48%; }
}

/* Beitritt Container */
#Beitritt {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 350px;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
}

#Beitritt .info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: start;
    padding: 20px 40px 20px 20px;
}

#Beitritt .info-container h2 {
    margin-top: 0;
}

#Beitritt .download-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    border-left: 1px solid #ddd;
    border-radius: 0 16px 16px 0;
    min-width: 0;
    margin-right: -32px;
}

#Beitritt .download-card {
    margin: 0 auto 15px auto;
}

.address-box {
    display: block;
    margin: 15px 20px;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    transition: background 0.2s;
}

.address-box:hover {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    #Beitritt {
        flex-direction: column;
    }
    #Beitritt .download-container {
        border-left: none;
        border-top: 1px solid #ddd;
        border-radius: 0 0 16px 16px;
    }
}

/* Article Section */
.article-section {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    height: fit-content;
    align-items: stretch;
}

.width-article {
    background: rgb(254, 254, 254);
    border-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    padding: 5px 20px;
    height: fit-content;
    flex: 1;
    justify-content: space-between;
    min-width: 300px;
}

.width-article h3 {
    margin-bottom: 1rem;
    color: #333;
}

.width-article p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.club-article{
    height: fit-content;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    background: rgb(254, 254, 254);
    border-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

#club-section img {
    object-fit: cover;
}

#club-section{
    height: 400px;
}

#wm1968 {
    border-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}


@media (max-width: 768px) {
    .article-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        height: auto;
    }
    #wm1968 {
        height: auto;
        max-height: 400px;
        width: 100%;
        margin: 0 auto;
        order: 2;
    }
    .width-article {
        width: 100%;
        height: auto;
        min-width: auto;
        padding: 10px 15px;
        order: 1;
    }
}

/* Membership */
.membership-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
}

.membership-table {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 85%;
}

.membership-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.full-width-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 26px 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.4s ease;
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}

.full-width-item:first-child{
    margin-top: 0;
}

.full-width-item h2 {
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid;
    border-image: linear-gradient(135deg, #3b82f6, #1d4ed8) 1;
}

.inline-link {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 3s ease infinite;
    text-decoration: underline;
}

.full-width-item-img{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}


#beitrag {
    display: flex;
    justify-content: space-around;
    height: 100%;
    flex-wrap: wrap;
}

.table-item {
    height: 100%;
}

#arbeitseinsatz-regeln li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

.full-width-item ol li {
    margin-bottom: 12px;
}

.full-width-item ol, .full-width-item p {
    margin-left: 20px;
}

.full-width-item section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    width: 100%;
}

.full-width-item section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.table-wrapper {
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.table {
    background: white;
    border-radius: 20px;
}

#gps-codes {
    margin: 40px 0 40px 20px;
}


.text-margin ol{
    margin-block-start: 0;
}

.table th {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

/* Navigation & Pagination */
section h1 {
    padding-left: 1.5vw;
    font-weight: 900;
    color: rgb(0, 0, 0);
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    line-height: 1.25;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

article h2 {
    margin-bottom: 20px;
}

#title-beisitzer {
    margin-top: 50px;
}

.satzung-nav {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin: 20px 0 30px 0;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}

.satzung-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2;
    column-gap: 30px;
}

.satzung-nav li {
    margin-bottom: 8px;
}

.satzung-nav a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: block;
    padding: 6px 4px;
    border-radius: 6px;
}

.satzung-nav a:hover {
    background: #eff6ff;
    color: #1d4ed8;
    padding-left: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0 40px 0;
}

.pagination button {
    padding: 6px 10px;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    border: none;
}

.pagination button:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.pagination button.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
}

/* Übergänge & Buttons */
.transition {
    width: 100%;
    position: relative;
}

.inner-transition {
    background: linear-gradient(0deg, rgb(255, 255, 255), rgba(0, 0, 0, 0));
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
}

.end {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1.5vw;
}

.more-button {
    color: #5e6168;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
    text-decoration: underline;
    margin-top: 6px;
    margin-bottom: 15px;
    margin-left: 20px;
}

.more-button:hover {
    color: #3b82f6;
}

.end a {
    background: #fff;
    height: 1.8rem;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 20px;
    text-decoration: none;
}

.end a:hover {
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.print {
    display: flex;
    justify-content: space-between;
}

.print-btn {
    color: #787878;
    font-size: 0.75rem;
    cursor: pointer;
}

.article-half {
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Datenschutz */
.datenschutz {
    background: linear-gradient(135deg, #fef7e8, #fde68a);
    border-radius: 8px;
    padding: 16px;
    border-left: 3px solid #f59e0b;
    margin-top: 10%;
    margin-right: 20px;
}

.datenschutz small {
    color: #92400e;
}


.trainingszeiten p {
    margin: 8px 0;
    line-height: 1.6;
}

.info-box {
    background: linear-gradient(135deg, #fef7e8, #fde68a);
    border-radius: 8px;
    padding: 16px;
    border-left: 3px solid #f59e0b;
    margin: 20px;
}

.info-text{
    margin: 0;
}

#datenschutz{
    margin-top: 10%;
}

.anmeldung {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.full-width-item h2:first-child {
    margin-top: 0 !important;
}
#legal-content h2:not(:first-child) {
    margin-top: 40px !important;
}


/* Print Styles */
@media print {
    .satzung-nav, .hspon, .outspon, .footer, .sponsoring, .socialmedia, .social-nav, aside, .pagination, .print-btn {
        display: none;
    }
    .navbar {
        position: absolute;
    }
    body {
        font-size: 12pt;
        line-height: 1.6;
        margin: 0;
        padding-bottom: 20px;
    }
    .full-width-item {
        box-shadow: none;
        border: none;
        background: none;
        padding-bottom: 50px;
        margin: 0;
    }
    h1, h2, h3 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    section {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

.article-detail-grid{
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 980px) {
    .article-detail-grid{
        display: flex;
        grid-template-columns: minmax(240px, 360px) 1fr;
        gap: 2rem;
        align-items: start;
        flex-direction: column;
    }
    .article-detail-image{
        width: 100%;
    }
}

@media (min-width: 981px) {
    .article-detail-image img{
        max-width: 360px;
    }
}



.article-detail-image img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.article-detail-content{
    min-width: 0;
}

.article-detail-content h1{
    margin-top: 0;
}

.button-row{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mx-tickets-button,
.mail-button{
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 500;
}

.mail-button span{
    font-weight: 600;
}

.mx-ticket-logo{
    height: 50px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.mx-ticket-logo img{
    height: 100%;
    width: auto;
    display: block;
}

.mail-button i{
    font-size: 3.1rem;
}

.article-detail-content .post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7a7a7a;
    font-size: 1.1rem;
}

.article-detail-content .tag-badge {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.55), rgba(59, 130, 246, 0.55));
    color: rgb(30, 64, 175);
    padding: 3px 9px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
}

.hover-tilt:hover,
.hover-tilt:focus-visible {
    transform: perspective(1000px) rotateX(1deg) rotateY(-1deg) translateY(-0.75px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.14);
}

/* Klickgefühl */
.hover-tilt:active {
    transform: perspective(1000px) rotateX(0.5deg) rotateY(-0.5deg) translateY(-0.5px);
}

.hover-tilt {
    display: inline-block;
    transform-style: preserve-3d;
}
