/*
Theme Name: WPSO
Theme URI: http://example.com/
Author: Your Name
Author URI: http://example.com/
Description: A simple starter WordPress theme.
Version: 1.0.0
Text Domain: wpso
*/

header {
    display: none;
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(assets/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(assets/fonts/JTUSjIg69CK48gW7PXoo9WlhyyTh89Y.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    --red: #C8001A;
    --red-dark: #8a0012;
    --gold: #E8B84B;
    --dark: #0f0f0f;
    --mid: #1c1c1c;
    --surface: #242424;
    --text: #f0ece6;
    --muted: #9a9690;
    --radius: 12px;
    --card-color-1: #C8001A;
    --card-color-2: #1a7a3f;
    --card-color-3: #1d6fa4;
    --card-color-4: #d4a800;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- PAGES ---- */
.page {
    /* display: none; */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.site-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/*
.page.active {
    display: flex;
    flex-direction: column;
} */

/* ---- NAV ---- */
nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    text-decoration: none;
}

.nav-back {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-back:hover {
    color: var(--text);
    background: var(--surface);
}

.nav-back svg {
    width: 16px;
    height: 16px;
}

.nav-breadcrumb {
    font-size: 0.82rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 140px;
}

.nav-breadcrumb span {
    color: var(--text);
    font-weight: 500;
}

/* ---- HOME PAGE ---- */
#home {
    flex: 1 0 auto;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem 7rem;
    background: #111;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    inset: 0;
    /* controls brightness of home background image */
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35));
    z-index: 1;
}

#home p.teaser {
    padding-top: 2vw;
    padding-bottom: 2vw;
    margin-left: 2vw;
    margin-right: 2vw;
    margin-bottom: 1.5vh;
    font-weight: bold;
    font-size: larger;
    text-shadow: 1px 1px 4px #000;
    /* box-shadow: 0 0 10px 5px #48abe0; */
    /* opacity: 0.8; */
    /* background-color: #444; */
}

.home-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    z-index: 0;
}

.home-bg-slide.active {
    opacity: 1;
}

.home-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    padding-bottom: 5rem;
}

.home-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 4px #000;
}

.home-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.home-title .accent {
    color: var(--red);
}

.home-sub {
    font-size: 1rem;
    color: var(--muted);
    margin: 1.5rem auto 3.5rem;
    max-width: 500px;
    line-height: 1.6;
}

/* ---- ICON CARDS ---- */
.icon-grid, .top-icon-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.top-icon-grid {
    gap: 1rem;
}

.icon-card {
    background: var(--surface);
    border: 1px solid #2e2e2e;
    border-radius: var(--radius);
    padding: 2rem 1.5rem 1.5rem;
    width: 200px;
    height:200px;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* top */
.top-icon-grid .icon-card {
    width: 175px;
    height: 40px;
    text-align: left;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.top-icon-grid a {
    text-decoration: none;
}

.icon-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-color, var(--red));
    opacity: 0;
    transition: opacity 0.25s;
}

.icon-card:hover, .top-icon-grid .icon-card.active {
    border-color: #666;
}

.icon-card:hover::before {
    opacity: 0.06;
}

.icon-card .icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--card-color, var(--red));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

/* top */
.top-icon-grid .icon-card .icon-wrap {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 1rem;
    margin: 0;
    flex-shrink: 0;
}

.icon-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 1;
}

.icon-card h3 a, .top-icon-grid .icon-card h3 a {
    text-decoration: none;
}

.top-icon-grid .icon-card h3 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.2;
    margin-top:2px;
}

/* unused */
.icon-card p {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}


/* ---- CONTENT PAGE ---- */
.content-page-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    flex: 1;
}

#stadt,
#sporthalle,
#verein {
    background: #ffffff;
}

#stadt nav,
#sporthalle nav {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e0e0e0;
}

#stadt .nav-back,
#sporthalle .nav-back {
    color: #555;
}

#stadt .nav-back:hover,
#sporthalle .nav-back:hover {
    color: #111;
    background: #f0f0f0;
}

#stadt .nav-breadcrumb,
#sporthalle .nav-breadcrumb {
    color: #555;
}

#stadt .nav-breadcrumb span,
#sporthalle .nav-breadcrumb span {
    color: #111;
}

#verein nav {
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid #2a2a2a;
}

#verein .nav-back {
    color: #ffffff;
}

#verein .nav-back:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

#verein .nav-breadcrumb {
    color: #ffffff;
}

#verein .nav-breadcrumb span {
    color: #ffffff;
}

#stadt .page-heading,
#sporthalle .page-heading,
#verein .page-heading {
    color: #111;
}

#stadt .page-text,
#sporthalle .page-text,
#verein .page-text {
    color: #222;
}

#stadt .page-text p,
#sporthalle .page-text p,
#verein .page-text p {
    color: #222;
}

#stadt footer,
#sporthalle footer,
#verein footer {
    border-top: 1px solid #e0e0e0;
    color: #888;
}

nav a:active {
    text-decoration: none;
}

.page-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 0.03em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.page-heading .accent {
    color: var(--red);
}

.page-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1.5rem 0 2rem;
    border-radius: 2px;
}

.page-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ccc;
}

.page-text p+p {
    margin-top: 1.2rem;
}

.info-box {
    background: var(--surface);
    border-left: 3px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.2rem 1.5rem;
    margin-top: 2rem;
}

.info-box h4 {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.info-box p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}



/* ---- FOOTER ---- */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #2a2a2a;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: auto;
}
#mainfooter {
    z-index: 2;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: calc(100% - 3rem);
    opacity: 0.75;
}
#mainfooter img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    margin-left: auto;
}

#mainfooter p {
    width:200px;
    font-size: 18px;
    padding: 0.9rem 1rem;
    color: white;
    line-height: 1.2;
}

@media (max-width: 380px) {
    #mainfooter {
        padding: 0 1rem 1rem;
        max-width: calc(100% - 2rem);
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    #mainfooter img {
        height: 28px;
    }

    #mainfooter p {
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
    }
}

/* ---- MODAL ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.open {
    display: flex;
}

/* Ensure statutenTextModal also shows correctly */
#statutenTextModal {
    display: none;
}

#statutenTextModal.open {
    display: flex;
}

.modal {
    background: #fff;
    color: #111;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
    color: #111;
}

.modal p.modal-sub {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.8rem;
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #e0e0e0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #111;
    background: #fafafa;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #1a7a3f;
}

.form-row {
    display: flex;
    gap: 0.8rem;
}

.form-row .form-group {
    flex: 1;
}

.modal-submit {
    width: 100%;
    padding: 0.85rem;
    background: #1a7a3f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.modal-submit:hover {
    background: #155f31;
}

.modal-success {
    display: none;
    text-align: center;
    padding: 1rem 0;
}

.modal-success .check {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.modal-success h3 {
    font-size: 1.3rem;
    color: #1a7a3f;
    margin-bottom: 0.4rem;
}

.modal-success p {
    font-size: 0.9rem;
    color: #555;
}


/*
    manual patchwork
*/

div.icon-grid a {
    text-decoration: none;
}

ol.wp-block-list {
    margin-left:40px;
}

h2.wp-block-heading {
    margin-top:10px;
}

/* ============================================================
    MOBIL-ANSICHT — wird automatisch auf Smartphones aktiv
    (Desktop/Tablet ab 769px sieht weiterhin die Originalversion)
    ============================================================ */
@media (max-width: 768px) {

    /* Navigation */
    nav {
        padding: 1rem 1.1rem;
        gap: 0.6rem;
        position: relative;
    }

    .nav-back {
        font-size: 0.82rem;
        padding: 5px 8px;
        width: 50px;
    }

    .nav-back svg {
        width: 24px;
        height: 24px;
    }


    .nav-back span,
    .nav-back {
        white-space: nowrap;
    }

    .nav-back span {
        display:none;
    }

    .nav-breadcrumb {
        font-size: 0.74rem;
    }

    /* Startseite */
    #home {
        padding: 2.2rem 1.2rem;
    }

    .home-sub {
        font-size: 0.92rem;
        margin: 1.1rem auto 2.2rem;
    }

    /* Grosse Auswahlkarten (Startseite: Projekt Stadt Zürich / Sporthalle / Verein) */
    .icon-grid {
        gap: 1rem;
    }

    .icon-card {
        width: 44vw;
        min-width: 130px;
        max-width: 200px;
        padding: 1.4rem 1rem 1.1rem;
    }

    .icon-card .icon-wrap {
        width: 50px;
        height: 50px;
        margin-bottom: 0.9rem;
        font-size: 1.7rem;
    }

    .icon-card h3 {
        font-size: 1.1rem;
    }

    .icon-card p {
        font-size: 0.72rem;
    }

    /* Kompakte Karten auf der Verein-Seite (Mitglied werden, Statuten, Kontakt, Impressum) */
    #verein .icon-grid {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .icon-card.compact {
        width: 42vw;
        max-width: 130px;
        min-height: 108px;
        padding: 0.8rem 0.5rem 0.7rem;
    }

    .icon-card.compact .icon-wrap {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
        margin-bottom: 0.55rem;
    }

    .icon-card.compact h3 {
        font-size: 0.85rem;
    }

    /* Inhaltsseiten (Projekt Stadt Zürich, Projekt Sporthalle, Verein, Impressum ...) */
    .content-page-inner {
        padding: 2rem 1.1rem;
    }

    .page-heading {
        margin-bottom: 0.4rem;
    }

    .page-text {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .info-box {
        padding: 1rem 1.1rem;
    }

    /* Formulare / Modals (Mitglied werden, Kontakt, Statuten) */
    .modal-overlay {
        padding: 0.7rem;
    }

    .modal {
        padding: 1.6rem 1.3rem;
        border-radius: 14px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal h2 {
        font-size: 1.55rem;
    }

    .modal-close {
        top: 0.9rem;
        right: 0.9rem;
        width: 30px;
        height: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    footer {
        padding: 1.4rem 1rem;
        font-size: 0.74rem;
    }
}

/* Zusätzliche Anpassung für sehr schmale Telefone */
@media (max-width: 380px) {
    .icon-card {
        width: 47vw;
        min-width: 0;
    }

    .icon-card.compact {
        width: 44vw;
    }
}
