:root {
    --color-white: #ffffff;
    --color-yellow: #fdfd00;
    --color-pink: #c41e9a;
    --color-black: #000;
    --color-gray: #e0e0e0;
    --color-dark-gray: #333;
}

@font-face {
    font-family: "Poppins";
    src: url("../font/poppins/Poppins-Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    font-weight: 900;
    src: url("../font/poppins/Poppins-Black.ttf") format("truetype");
    font-display: swap;
}


html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--color-white);
    background-position: left top, right top;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

#logo a {
    border: none;
    outline: none;
}

#menu {
    background-color: var(--color-yellow);
    width: 100%;

}

#menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    gap: 20px;
    height: 50px;
    align-items: center;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    max-width: 1400px;
}

#menu li {
    white-space: nowrap;
    padding-left: 30px;
    padding-right: 30px;

}

#menu a {
    color: var(--color-black);
    text-decoration: none;
}

#menu a:hover {
    color: var(--color-pink);
    text-decoration: none;
}

#menu a.active {
    color: var(--color-pink);
}

/* Active menu links per page */
body.page-ueber-uns #menu a[href="ueber-uns.html"],
body.page-raeume #menu a[href="raeume.html"],
body.page-konzept #menu a[href="konzept.html"],
body.page-projekte #menu a[href="projekte.html"],
body.page-netzwerk #menu a[href="netzwerk.html"] {
    color: var(--color-pink);
}

.highlight {
    background-color: var(--color-yellow);
    padding: 3px;
}

/* Hamburger menu button */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    border: 3px solid var(--color-pink);
    background-color: var(--color-yellow);
    padding: 10px;
    border-radius: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-black);
    border-radius: 3px;
    transition: 0.3s;
}



#buttons-top {
    margin-bottom: 60px;
}

#buttons-top ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 240px;
    justify-content: center;
}

#buttons-top li {
    text-align: center;
}

#buttons-top img {
    width: 200px;
    height: 200px;
    display: block;
}

#buttons-bottom ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 180px;
    justify-content: center;
    flex-wrap: nowrap;
}

#buttons-bottom li {
    text-align: center;
}

#buttons-bottom img {
    width: 200px;
    height: 200px;
}

/* Mobile view */
@media (max-width: 1200px) {
    header {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px;
    }

    #logo {
        flex: 1;
        max-width: 70%;
    }

    #logo img {
        width: 100%;
        height: auto;
        max-width: 300px;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 200;
    }

    #menu {
        width: 100%;
    }

    #menu ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        flex-direction: column;
        background-color: var(--color-yellow);
        gap: 0;
        height: 100vh;
        padding: 0;
        margin: 0;
        z-index: 100;
        width: 100vw;
        box-sizing: border-box;
        justify-content: center;
    }

    #menu ul.active {
        display: flex;
    }

    #menu li {
        padding: 15px 20px 15px 50px;
        width: 100%;
        border-bottom: 2px solid var(--color-pink);
        box-sizing: border-box;
        margin: 0;
    }

    #menu a {
        display: block;
        width: 100%;
    }

    #menu li:first-child {
        border-top: 2px solid var(--color-pink);
    }

    #menu li:last-child {
        border-bottom: 2px solid var(--color-pink);
    }

    #buttons-top ul {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
        margin-bottom: 0;
    }

    #buttons-top {
        margin-bottom: 0;
    }

    #buttons-top img {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    #buttons-bottom {
        padding-top: 0;
    }

    #buttons-bottom ul {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    #buttons-bottom img {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .highlight {
        display: inline-block;
        font-size: 14px;
    }

    #content {
        padding: 30px 15px;
        font-size: 16px;
    }

    #content h1 {
        font-size: 24px;
    }

    #content p {
        font-size: 16px;
    }

    #menu ul {
        font-size: 18px;
    }

    #menu li {
        padding: 12px 20px 12px 40px;
    }
}

/* Content area styles */
#content {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 18px;
    flex: 1 0 auto;
}

#content h1 {
    margin-top: 0;
    font-size: 32px;
}

/* Section heading style for screenshot */
#content h1.section-heading {
    color: var(--color-pink); /* pink */
    position: relative;
    display: inline-block;
    font-weight: 900;
    margin-top: 36px;         /* space before heading */
    margin-bottom: 0;         /* no gap below to tighten before next element */
}
#content h1.section-heading + p { margin-top: 0; }
#content h1.section-heading + h2 { margin-top: 5px; } /* tighter h1->h2 spacing */

#content h1.section-heading::before,
#content h1.section-heading::after {
    color: var(--color-pink);
    font-weight: 900;
    margin: 0 6px 0 0;        /* slight gap from bracket to text */
}

/* h2 general spacing */
#content h2 {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    margin-top: 20px;   /* general space before h2 */
    margin-bottom: 0;   /* no gap after h2 */
}
#content h2 + p { margin-top: 0; }

#content p {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 18px;
}

/* Right-aligned italic update note */
.updated-note {
    text-align: right;
    font-style: italic;
    margin-top: 8px;          /* small space from previous paragraph */
}

/* Team gallery styles */
.team-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 2em;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 180px;
}

@media (max-width: 768px) {
    .team-gallery {
        justify-content: center;
        gap: 20px;
    }

    .team-member {
        flex: 0 1 calc(50% - 10px);
        max-width: none;
    }

    .team-photo {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }
}

.team-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 2px solid var(--color-white);
    margin-bottom: 0.5em;
}

.team-name {
    font-size: 1.1em;
    margin-top: 0.2em;
    text-align: center;
}

/* Gallery styles */
.image-gallery {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: nowrap; /* keep all images in one row */
}

.gallery-row img {
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

/* Exact per-row columns */
.gallery-row.row-1 img { width: calc((100% - 3 * 20px) / 4); }
.gallery-row.row-2 img { width: calc((100% - 5 * 20px) / 6); }
.gallery-row.row-3 img { width: calc((100% - 2 * 20px) / 3); }

/* Mobile view: wrap images to multiple rows instead of horizontal scroll */
@media (max-width: 768px) {
    .image-gallery { overflow-x: visible; }
    .gallery-row {
        flex-wrap: wrap;
        min-width: auto;
    }
    .gallery-row.row-1 img { width: calc((100% - 1 * 20px) / 2); }
    .gallery-row.row-2 img { width: calc((100% - 1 * 20px) / 2); }
    .gallery-row.row-3 img { width: calc((100% - 1 * 20px) / 2); }
}

/* Schedule layout inside paragraph */
.schedule { display: block; }
.schedule-row { display: grid; grid-template-columns: 220px auto 420px; align-items: start; column-gap: 16px; row-gap: 0; margin: 6px 0; }
.schedule-row .time { white-space: nowrap; }
.schedule-row .rule { border-bottom: 2px solid var(--color-black); height: 0.9em; margin-top: 6px; margin-left: 12px; }
.schedule-row .desc { line-height: 1.4; }
.schedule-row .desc small { color: var(--color-dark-gray); display: block; margin-top: 2px; }
.schedule-row .desc strong { font-weight: 700; }
.schedule-row .desc em { font-style: normal; font-weight: 700; }

@media (max-width: 1024px) {
  .schedule-row { grid-template-columns: 200px auto 1fr; }
}
@media (max-width: 768px) {
  .schedule-row {
    display: block;
    margin: 0 0 10px 0;
    padding: 8px 0;
    border-bottom: 2px solid var(--color-black);
  }

  .schedule-row .time {
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    color: var(--color-pink);
  }

  .schedule-row .rule {
    display: none;
  }

  .schedule-row .desc {
    grid-column: auto;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
    #logo img {
        max-width: 200px;
    }

    #content {
        padding: 20px 12px;
        font-size: 15px;
    }

    #content h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    #content h1.section-heading {
        font-size: 18px;
        margin-top: 24px;
        margin-bottom: 8px;
    }

    #content h2 {
        font-size: 16px;
        margin-top: 15px;
    }

    #content p {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .schedule {
        display: block;
    }

    .schedule-row {
        display: block;
        margin: 0 0 10px 0;
        padding: 8px 0;
        border-bottom: 2px solid var(--color-black);
    }

    .schedule-row .time {
        font-size: 13px;
        font-weight: 700;
        display: block;
        margin-bottom: 4px;
        color: var(--color-pink);
    }

    .schedule-row .rule {
        display: none;
    }

    .schedule-row .desc {
        font-size: 14px;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
        line-height: 1.4;
    }

    .schedule-row .desc small {
        color: var(--color-dark-gray);
        display: block;
        margin-top: 2px;
        font-size: 12px;
    }

    .schedule-row .desc strong {
        font-weight: 700;
    }

    .schedule-row .desc em {
        font-style: normal;
        font-weight: 700;
    }

    #buttons-top ul,
    #buttons-bottom ul {
        padding: 10px;
        gap: 20px;
    }

    #buttons-top img,
    #buttons-bottom img {
        width: 120px;
        height: 120px;
    }

    .gallery-row {
        gap: 10px;
        margin-bottom: 10px;
    }

    .gallery-row.row-1 img,
    .gallery-row.row-2 img,
    .gallery-row.row-3 img {
        width: calc((100% - 2 * 10px) / 3);
    }

    .team-gallery {
        gap: 15px;
    }

    .team-member {
        flex: 0 1 calc(50% - 7.5px);
        max-width: none;
    }

    .team-photo {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

/* Network page styles */
.network-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.network-intro {
    flex: 0 0 auto;
}

.network-intro p {
    font-size: 20px;
    line-height: 1.8;
    margin: 0;
}

.network-badge {
    flex: 0 0 auto;
}

.network-badge img {
    width: 200px;
    height: auto;
}

.network-partners {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.network-partner {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Offset layout for middle partner - shift the entire card to the right */
.network-partner.offset {
    margin-left: 130px;
}

.partner-logo {
    flex-shrink: 0;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 150px;
    height: auto;
}

.partner-info {
    flex: 0 1 auto;
    max-width: 600px;
    background-color: rgba(253, 53, 196, 0.15);
    padding: 20px 30px;
    color: var(--color-black);
}

.partner-info h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none !important;
}

.partner-info h3 a {
    color: var(--color-black);
    text-decoration: none;
}

.partner-info h3 a:hover {
    color: var(--color-pink);
}

.partner-info p {
    margin: 0;
    font-size: 18px;
}

@media (max-width: 768px) {
    .network-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 40px;
    }

    .network-intro p {
        font-size: 16px;
    }

    .network-badge img {
        width: 150px;
    }

    .network-partner {
        flex-direction: column;
        text-align: center;
    }

    .network-partner.offset {
        margin-left: 0;
    }

    .partner-logo {
        width: 120px;
    }

    .partner-logo img {
        max-width: 120px;
    }

    .partner-info {
        width: 100%;
        padding: 15px 20px;
    }

    .partner-info h3 {
        font-size: 18px;
    }

    .partner-info p {
        font-size: 16px;
    }
}

/* Footer styles */
footer {
    background-color: var(--color-yellow);
    width: 100%;
    padding: 18px 0 14px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    border-top: 2px solid var(--color-pink);
    flex-shrink: 0;
}

footer a {
    color: var(--color-black);
    text-decoration: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--color-pink);
    text-decoration: none;
}

@media (max-width: 600px) {
    footer {
        font-size: 16px;
        padding: 14px 0 10px 0;
    }
}
