﻿/* =========================================================
   KSK SCHÖNBERG e.V.
   Gemeinsames Stylesheet für alle Seiten
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;
    color: #172a46;
    line-height: 1.6;

    background:
        linear-gradient(
            rgba(20, 55, 90, 0.15),
            rgba(20, 55, 90, 0.15)
        ),
        url("../hintergrund.jpg") center center / cover fixed no-repeat;
}


/* =========================================================
   HEADER
   Unterstützt Startseite UND Unterseiten
   ========================================================= */

.top-header,
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(15, 39, 66, 0.96);
    color: white;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.header-inner {
    max-width: 1200px;
    min-height: 82px;

    margin: 0 auto;
    padding: 10px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


/* =========================================================
   LOGO – Startseite
   ========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 14px;

    color: white;
    text-decoration: none;

    flex-shrink: 0;
}

.logo-symbol {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    font-size: 28px;
    font-weight: bold;
}

.logo-text {
    display: block;
}

.logo-title {
    font-size: 1.55rem;
    font-weight: bold;
    line-height: 1.15;
}

.logo-subtitle {
    margin-top: 3px;

    font-size: 0.82rem;
    opacity: 0.82;
}


/* =========================================================
   LOGO – Vorstandschaft
   ========================================================= */

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;

    color: white;
    text-decoration: none;

    flex-shrink: 0;
}


/* Falls auf Vorstandschaft .logo als Symbol verwendet wird */

.logo-link .logo {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    font-size: 28px;
    font-weight: bold;
}

.site-title {
    font-size: 1.55rem;
    font-weight: bold;
    line-height: 1.15;
}

.site-subtitle {
    margin-top: 3px;

    font-size: 0.82rem;
    opacity: 0.82;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    list-style: none;
}

nav li {
    margin: 0;
    padding: 0;
}

nav a {
    display: block;

    padding: 9px 13px;

    color: white;
    text-decoration: none;

    border-radius: 6px;

    font-size: 0.95rem;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

nav a:hover,
nav a.active {
    background: rgba(255, 255, 255, 0.16);
    color: white;
}

nav a.active {
    font-weight: bold;
}


/* =========================================================
   HANDY-MENÜ
   ========================================================= */

.menu-button {
    display: none;

    border: 0;
    background: transparent;
    color: white;

    font-size: 30px;
    line-height: 1;

    padding: 5px 8px;

    cursor: pointer;
}


/* =========================================================
   HAUPTBEREICH – STARTSEITE
   ========================================================= */

.page {
    width: min(1150px, calc(100% - 30px));

    margin: 40px auto 60px;
}

.content {
    width: 100%;
}


/* =========================================================
   HAUPTBEREICH – VORSTAND / UNTERSEITEN
   ========================================================= */

.container {
    width: min(1150px, calc(100% - 30px));

    margin: 40px auto 60px;
}


/* =========================================================
   HERO – STARTSEITE
   ========================================================= */

.hero {
    margin-bottom: 35px;
    padding: 55px 30px;

    text-align: center;

    background: rgba(255, 255, 255, 0.94);

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-symbol {
    width: 75px;
    height: 75px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #172a46;
    color: white;

    font-size: 36px;
}

.hero h1 {
    margin: 0 0 10px;

    color: #172a46;

    font-size: 2.4rem;
}

.hero p {
    max-width: 700px;

    margin: 0 auto;

    color: #536579;

    font-size: 1.1rem;
}


/* =========================================================
   NORMALE SEITENABSCHNITTE
   ========================================================= */

.content > section:not(.hero) {
    margin-bottom: 30px;
    padding: 30px;

    background: rgba(255, 255, 255, 0.94);

    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.14);
}

.content h2 {
    margin-top: 0;

    color: #172a46;

    font-size: 1.65rem;
}


/* =========================================================
   SEITENTITEL – SATZUNG / GESCHICHTE
   ========================================================= */

.page-title {
    margin-bottom: 30px;
    padding: 25px 30px;

    display: grid;

    grid-template-columns: auto 1fr;
    column-gap: 20px;
    align-items: center;

    background: rgba(255, 255, 255, 0.94);

    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-title .symbol {
    width: 65px;
    height: 65px;

    grid-row: span 2;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #172a46;
    color: white;

    font-size: 30px;
}

.page-title h1 {
    margin: 0;

    color: #172a46;

    font-size: 2.2rem;
    line-height: 1.2;
}

.page-title p {
    margin: 5px 0 0;

    color: #526579;
}


/* =========================================================
   VORSTAND – SEITENTITEL
   ========================================================= */

.container .page-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.container .page-title-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #172a46;
    color: white;

    font-size: 30px;
}

.container .page-title h1 {
    margin: 0;
}

.container .page-title p {
    margin: 5px 0 0;
}


/* =========================================================
   INHALTSBEREICHE AUF VORSTANDSCHAFT
   ========================================================= */

.content-section {
    margin-bottom: 30px;
    padding: 30px;

    background: rgba(255, 255, 255, 0.94);

    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.14);
}

.content-section h2 {
    margin-top: 0;

    color: #172a46;

    font-size: 1.65rem;
}


/* =========================================================
   KARTEN – STARTSEITE
   ========================================================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    margin-top: 30px;
}

.cards .card {
    padding: 25px 20px;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid rgba(23, 42, 70, 0.10);
    border-radius: 14px;

    text-align: center;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cards .card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.16);
}

.card-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #172a46;
    color: white;

    font-size: 26px;
}

.cards .card h3 {
    margin: 5px 0;

    color: #172a46;
}

.cards .card p {
    margin-bottom: 0;
}


/* =========================================================
   VORSTANDS-KARTEN
   ========================================================= */

.card-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.vorstand-card {
    min-height: 220px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 25px 20px;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid rgba(23, 42, 70, 0.10);
    border-radius: 14px;

    text-align: center;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.vorstand-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.16);
}

.vorstand-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 50%;

    background: #172a46;
    color: white;

    font-size: 26px;
}

.vorstand-card h3 {
    margin: 5px 0;

    color: #172a46;

    font-size: 1.15rem;
}

.vorstand-card p {
    margin: 4px 0;

    color: #536579;
}

.person-name {
    margin-top: 12px !important;
}

.person-link {
    color: #1769aa;

    font-size: 1.08rem;
    font-weight: bold;

    text-decoration: none;

    border-bottom: 1px dashed #1769aa;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.person-link:hover {
    color: #0d4775;

    border-bottom-color: #0d4775;
}


/* =========================================================
   LEERER BEREICH
   ========================================================= */

.empty-area {
    min-height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 20px;
    padding: 30px;

    border: 2px dashed rgba(23, 42, 70, 0.20);
    border-radius: 12px;

    background: rgba(240, 244, 248, 0.65);

    color: #667789;

    text-align: center;
}


/* =========================================================
   KONTAKT
   ========================================================= */

.contact {
    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 10px 20px;

    margin: 25px 0;

    padding: 20px;

    background: rgba(240, 244, 248, 0.75);

    border-radius: 12px;
}

.contact strong {
    color: #172a46;
}

.contact a {
    color: #1769aa;
}


/* =========================================================
   BUTTON
   ========================================================= */

.button {
    display: inline-block;

    padding: 11px 20px;

    border-radius: 7px;

    background: #172a46;
    color: white;

    text-decoration: none;
    font-weight: bold;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    background: #0d4775;

    transform: translateY(-2px);
}


/* =========================================================
   GRUPPENFOTO
   ========================================================= */

.vorstand-bild {
    width: 100%;

    margin-top: 20px;

    text-align: center;
}

.vorstand-bild img {
    display: block;

    width: 100%;
    max-width: 900px;
    height: auto;

    margin: 0 auto;

    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.image-modal {
    position: fixed;
    inset: 0;

    z-index: 2000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.82);
}

.image-modal.show {
    display: flex;
}

.image-modal-content {
    position: relative;

    max-width: 90vw;
    max-height: 90vh;

    text-align: center;
}

.image-modal-content img {
    display: block;

    max-width: 90vw;
    max-height: 78vh;

    width: auto;
    height: auto;

    margin: 0 auto;

    border-radius: 10px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;

    top: -45px;
    right: -5px;

    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 50%;

    background: white;
    color: #172a46;

    font-size: 30px;
    line-height: 36px;

    cursor: pointer;
}

.close-modal:hover {
    background: #e9eef3;
}

.modal-caption {
    margin-top: 12px;

    color: white;

    font-size: 1rem;
    font-weight: bold;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 25px 15px;

    background: rgba(15, 39, 66, 0.96);

    color: white;

    text-align: center;
}

footer strong {
    font-size: 0.95rem;
}

footer br + br {
    line-height: 2;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .header-inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .logo-title,
    .site-title {
        font-size: 1.35rem;
    }

    .logo-subtitle,
    .site-subtitle {
        font-size: 0.75rem;
    }

    nav a {
        padding: 8px 8px;

        font-size: 0.88rem;
    }

    .card-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 700px) {

    .header-inner {
        min-height: 70px;
    }

    .logo-symbol,
    .logo-link .logo {
        width: 44px;
        height: 44px;

        font-size: 23px;
    }

    .logo-title,
    .site-title {
        font-size: 1.15rem;
    }

    .logo-subtitle,
    .site-subtitle {
        font-size: 0.68rem;
    }

    .menu-button {
        display: block;
    }

    nav {
        position: absolute;

        top: 70px;
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;

        padding: 10px;

        background: rgba(15, 39, 66, 0.98);

        box-shadow:
            0 8px 15px rgba(0, 0, 0, 0.20);
    }

    nav.open {
        display: flex;
    }

    nav ul {
        width: 100%;

        display: flex;
        flex-direction: column;
    }

    nav li {
        width: 100%;
    }

    nav a {
        width: 100%;

        padding: 12px 15px;

        text-align: center;

        font-size: 1rem;
    }

    .page,
    .container {
        width: calc(100% - 20px);

        margin-top: 20px;
        margin-bottom: 30px;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .page-title {
        padding: 20px;
    }

    .page-title .symbol,
    .container .page-title-icon {
        width: 52px;
        height: 52px;

        font-size: 24px;
    }

    .page-title h1 {
        font-size: 1.65rem;
    }

    .page-title p {
        font-size: 0.9rem;
    }

    .content > section:not(.hero),
    .content-section {
        padding: 20px;
    }

    .content h2,
    .content-section h2 {
        font-size: 1.4rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .vorstand-card {
        min-height: 190px;
    }

    .contact {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }

    .contact strong {
        margin-top: 10px;
    }
}


/* =========================================================
   KLEINES HANDY
   ========================================================= */

@media (max-width: 450px) {

    .header-inner {
        padding: 8px 12px;
    }

    .logo {
        gap: 9px;
    }

    .logo-symbol,
    .logo-link .logo {
        width: 40px;
        height: 40px;

        font-size: 20px;
    }

    .logo-title,
    .site-title {
        font-size: 1rem;
    }

    .logo-subtitle,
    .site-subtitle {
        display: none;
    }

    .page-title {
        grid-template-columns: auto 1fr;
        column-gap: 12px;
    }

    .page-title .symbol,
    .container .page-title-icon {
        width: 45px;
        height: 45px;

        font-size: 21px;
    }

    .page-title h1 {
        font-size: 1.4rem;
    }

    .content > section:not(.hero),
    .content-section {
        padding: 17px;
    }

    .hero {
        padding: 35px 15px;
    }

    .hero-symbol {
        width: 60px;
        height: 60px;

        font-size: 28px;
    }

    .hero h1 {
        font-size: 1.65rem;
    }

    .image-modal {
        padding: 15px;
    }

    .image-modal-content img {
        max-width: 94vw;
        max-height: 75vh;
    }

    .close-modal {
        top: -45px;
        right: 0;
    }
}
/* =========================================
   GESCHICHTE – HORIZONTALE FOLIEN
   ========================================= */

.history-gallery {
    width: 100%;
}

.history-thumbnails {
    display: grid;

    /* mehrere Folien horizontal nebeneinander */
    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.history-thumbnails a {
    display: block;

    background: rgba(255, 255, 255, 0.95);

    padding: 8px;

    border-radius: 12px;

    text-decoration: none;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.history-thumbnails a:hover {
    transform: translateY(-4px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.20);
}

.history-thumbnails img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 8px;
}

.history-thumbnails span {
    display: block;

    padding: 10px 5px 5px;

    text-align: center;

    color: #172a46;

    font-weight: 600;
}


/* Tablet */

@media (max-width: 900px) {

    .history-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* Smartphone */

@media (max-width: 600px) {

    .history-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

}


/* Kleine Smartphones */

@media (max-width: 400px) {

    .history-thumbnails {
        grid-template-columns: 1fr;
    }

}
