@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --main-brand-color: #0DBCF9;
    --primary-color: #15171C;
    --secondary-color: #232933;
    --light-secondary-color: #2E3744;
    --text-color: white;
    --secondary-text-color: #B3B4B6;
}

.heading-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.heading-with-icon--eyebrow {
    gap: 0.35rem;
}

.heading-with-icon--timeline {
    gap: 0.4rem;
}

.heading-with-icon--legal-block {
    gap: 0.45rem;
}

.ui-icon {
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    fill: currentColor;
}

.ui-icon--section {
    width: 1.35rem;
    height: 1.35rem;
    color: var(--main-brand-color);
}

.ui-icon--card,
.ui-icon--grid {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--main-brand-color);
}

.ui-icon--eyebrow {
    width: 0.9rem;
    height: 0.9rem;
    color: var(--main-brand-color);
}

.ui-icon--inline {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--main-brand-color);
}

.ui-icon--btn {
    width: 1rem;
    height: 1rem;
}

.ui-icon--profile-field {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--main-brand-color);
}

.ui-icon--legal {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--main-brand-color);
}

.ui-icon--nav {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

.ui-icon--instagram {
    color: #e1306c;
}

.ui-icon--facebook {
    color: #1877f2;
}

[style*="100vw"] {
    width: 100% !important;
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
}

html {
    font-size: 20px;
    font-family: "Poppins", sans-serif;
    background-color: var(--primary-color);
}

header {
    padding: 100px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.header_content {
    width: 100%;
}

nav {
    height: 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: var(--secondary-text-color);
    margin-top: -75px;
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: transparent;
}

.links-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);

    display: flex;
    flex-direction: column;

    align-items: flex-start;   /* linksbündig */
    justify-content: flex-start;

    padding-top: 90px;         /* Abstand unter dem X */
    padding-left: 30px;

    gap: 25px;

    transition: right 0.4s ease;
    z-index: 10050;
}

.links-container a {
    width: 100%;
    justify-content: flex-start;
    text-decoration: none;
    color: var(--secondary-text-color);
}

nav a:hover {
    color: var(--text-color);
}



#sidebar-active {
    display: none;
}

#sidebar-active:checked~.links-container {
    right: 0;
}

.open-sidebar-button {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10000;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: block;
    /* Hamburger standardmäßig anzeigen */
}

#sidebar-active:checked ~ #overlay {
    opacity: 1;
    pointer-events: all;
}


.open-sidebar-button svg {
    opacity: 1;
}


.close-sidebar-button {
    display: block;
    /* immer sichtbar in Sidebar */
}

#overlay {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 10040;
}

.header_main_content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: -150px;
}

.header_text_information {
    color: var(--secondary-text-color);
    width: 60%;
}

.header_picture {
    height: 500px;
    width: 500px;
    max-height: 80vw;
    max-width: 80vw;
    overflow: hidden;
    border-radius: 50%;
    border: 10px solid var(--main-brand-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.header_picture img {
    width: 100%;
}

h1 {
    font-size: 100px;
    line-height: 110%;
    color: var(--main-brand-color);
    margin-top: 100px;
}

#team {
    padding: 100px 0;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.our-team {
    display: flex;
    width: 100%;
    max-width: 1200px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 40px;
    justify-items: center;
    width: 60%;
    margin-right: 80px;
}

#team h2 {
    width: 40%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding-left: 20px;
    font-size: 100px;
    color: var(--main-brand-color);
}

#team .team-member-photo img {
    width: 100px;
    border: 5px solid var(--light-secondary-color);
    border-radius: 50%;
    transition: transform 0.3s;
}

#team .team-member-photo img:hover {
    transform: scale(1.25);
    border-color: var(--main-brand-color);
}

.profile {
    width: 100%;
    justify-content: space-around;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--text-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 400px;
    width: 100%;
    margin: 20px auto;
}

.profile-picture img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--main-brand-color);
}

.profile-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.profile-content li {
    margin-bottom: 10px;
    font-size: 16px;
}

.profile-content strong {
    color: var(--main-brand-color);
}

.profile-content {
    color: var(--secondary-color);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: relative;
    background-color: transparent;
    margin: auto;
    padding: 0;
    width: 80%;
    max-width: 600px;
    height: 100%;
    top: 10%;
}

.close-btn {
    color: var(--secondary-text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 10px;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#profile-container {
    padding: 20px;
    height: calc(100% - 40px);
    overflow-y: auto;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

.event {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.date {
    flex: 1;
    background-color: var(--main-brand-color);
    color: var(--text-color);
    padding: 10px;
    text-align: center;
    border-radius: 5px;
}

.content {
    flex: 3;
    background-color: var(--text-color);
    padding: 20px;
    margin-left: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.arrow {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--text-color);
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
}

#dates {
    background-color: var(--secondary-color);
    padding: 70px 0;
}

#dates h3 {
    font-size: 100px;
    text-align: center;
    color: var(--main-brand-color);
}

.flex-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.card {
    width: 350px;
    background-color: var(--light-secondary-color);
    border-radius: 100px;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    max-width: calc(90%-40px);
}

.card * {
    text-align: center;
}

#dates h4 {
    font-size: 50px;
    color: var(--main-brand-color);
}

#dates p {
    color: var(--text-color);
}

.card a {
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: var(--primary-color);
    color: var(--main-brand-color);

    padding: 15px 0;
    /* Gleichmäßiges Padding */
    width: 150px;
    /* Fixe Breite, Text zentriert */

    border-radius: 50px;
    margin: 0 auto;
    text-decoration: none;
    border: 4px solid var(--primary-color);
    transition: 150ms ease-in-out;
}


.card a:hover {
    background-color: transparent;
}

footer#contact {
    padding: 70px 0;
    background-color: var(--secondary-color);
}

footer#contact h5 {
    font-size: 100px;
    color: var(--main-brand-color);
    text-align: center;
}

.grid-container {
    margin: 60px auto;
    width: 1500px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 15px;
    grid-template-areas: "item1 item1 item2 item3" "item4 item5 item5 item3";
    max-width: 90%;
}

footer.footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 4.5rem;
    background-color: var(--primary-color);
    border-top: 2px solid var(--main-brand-color);
    padding: 1.25rem 1.5rem;
    font-size: 0.7rem;
    color: var(--secondary-text-color);
}

footer.footer .footer-inner {
    width: min(1500px, 90%);
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "logo nav"
        "copy .";
    column-gap: 2rem;
    row-gap: 0.35rem;
    align-items: center;
}

footer.footer .footer-brand {
    display: contents;
}

footer.footer .footer-logo {
    grid-area: logo;
    justify-self: start;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--text-color);
    line-height: 1.3;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

footer.footer .footer-logo:hover {
    color: var(--main-brand-color);
    text-shadow: 0 0 20px rgba(13, 188, 249, 0.45);
}

footer.footer .footer-copyright {
    grid-area: copy;
    justify-self: start;
    font-size: 0.65rem;
    line-height: 1.4;
    opacity: 0.9;
}

footer.footer .footer-nav {
    grid-area: nav;
    display: flex;
    align-items: center;
    justify-self: end;
    align-self: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
}

footer.footer .footer-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--secondary-text-color);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--light-secondary-color);
    background-color: var(--secondary-color);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

footer.footer .footer-nav a:hover {
    color: var(--main-brand-color);
    border-color: var(--main-brand-color);
    background-color: rgba(13, 188, 249, 0.1);
}

footer.footer .footer-nav a:focus-visible {
    outline: 2px solid var(--main-brand-color);
    outline-offset: 2px;
}


.grid_item {
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    gap: 50px;
}

.grid_item img {
    height: 150px;
    width: 150px;
}

#item1 {
    grid-area: item1;
}

#item2 {
    grid-area: item2;
    flex-direction: column;
    gap: 10px;
}

#item3 {
    grid-area: item3;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

#item4 {
    grid-area: item4;
    flex-direction: column;
    gap: 10px;
}

#item5 {
    grid-area: item5;
    padding: 10px;
    gap: 20px;
}

#item5 p {
    margin-top: 20px;
}

.grid_item h6 {
    color: var(--main-brand-color);
    font-size: 50px;
}

.grid_item p {
    color: var(--text-color);
}

.grid_item a {
    text-decoration: underline;
    color: var(--text-color)
}

#foto img {
    width: 350px;
    height: 200px;
}

#map {
    width: 350px;
    height: 200px;
    display: none;
    border: 0;
}

#event {
    padding: 50px 20px;
    background-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
    border-radius: 8px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.text-content {
    margin-bottom: 20px;
}

.text-content h2 {
    font-size: 100px;
    color: var(--main-brand-color);
    margin-bottom: 10px;
}

.text-content p {
    color: var(--text-color);
}

.image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-content a {
    color: var(--text-color);
}

.container p {
    color: var(--text-color);
}

.footer-Copyrightinfo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    /* Abstand zwischen Datenschutz & Impressum */
    margin-top: 20px;
}



.footer-Copyrightinfo p {
    color: var(--text-color);
}

.footer-Copyrightinfo a {
    color: var(--text-color);
    display: inline-block;
}

.datenschutz,
.datenschutz a {
    color: var(--text-color);
}

.datenschutz {
    padding: 50px;
}

.datenschutz h1 {
    margin-bottom: 75px;
    margin-top: -10px;
}

.impressum,
.impressum a {
    color: var(--text-color);
}

.impressum {
    padding: 50px;
}

.impressum h1 {
    margin-bottom: 75px;
    margin-top: -10px;
}

.important {
    width: 18%;
    display: flex;
    justify-content: space-between;
}

#chronicle h1 {
    color: var(--main-brand-color);
    font-size: 100px;
    margin-bottom: 50px;
    text-align: center;
}

/* Hamburger */
.open-sidebar-button {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10000;
    cursor: pointer;
    display: block;
}

/* Wenn Sidebar offen → Hamburger ausblenden */
#sidebar-active:checked ~ .open-sidebar-button {
    display: none;
}

/* X-Button */
.close-sidebar-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: white;
    cursor: pointer;
    display: block;
    z-index: 10002;
}


/* =========================================================
   RESPONSIVE BREAKPOINTS (mobile-first adjustments)
========================================================= */   
@media (max-width: 1366px) {
    html {
        font-size: 18px;
    }

    h1,
    #team h2,
    #dates h3,
    footer#contact h5,
    .text-content h2,
    #chronicle h1 {
        font-size: clamp(56px, 7vw, 80px);
        line-height: 1.1;
    }

    .header_picture {
        width: clamp(320px, 30vw, 420px);
        height: clamp(320px, 30vw, 420px);
    }

    .grid-container {
        width: min(1200px, 95%);
    }
}

@media (max-width: 1024px) {
    html {
        font-size: 17px;
    }

    header {
        padding: 100px 20px 50px;
    }

    .header_main_content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-top: -70px;
    }

    .header_text_information {
        width: 100%;
        max-width: 800px;
    }

    .header_picture {
        width: clamp(260px, 44vw, 360px);
        height: clamp(260px, 44vw, 360px);
    }

    .our-team {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    #team h2 {
        width: 100%;
        text-align: center;
        padding-left: 0;
        margin-bottom: 20px;
    }

    .team-grid {
        width: 100%;
        margin-right: 0;
        grid-template-columns: repeat(4, minmax(80px, 1fr));
        gap: 24px;
    }

    .timeline {
        padding: 10px 20px;
    }

    .event {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .date {
        width: 100%;
    }

    .content {
        margin-left: 0;
        width: 100%;
    }

    .arrow {
        display: none;
    }

    .grid-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "item3 item5"
            "item2 item4"
            "item1 item1";
        grid-template-rows: auto;
    }

    .grid_item {
        flex-direction: column;
        text-align: center;
        padding: 30px 24px;
        gap: 20px;
    }

    #item3 {
        align-items: center;
        justify-content: center;
    }

    .page-home #item5 #map {
        width: 100% !important;
        height: 100% !important;
        max-width: none;
        max-height: none;
    }

    footer.footer .footer-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "nav"
            "copy";
        justify-items: center;
        text-align: center;
        row-gap: 0.75rem;
    }

    footer.footer .footer-logo,
    footer.footer .footer-copyright {
        justify-self: center;
    }

    footer.footer .footer-nav {
        justify-self: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 16px;
    }

    nav {
        margin-top: -60px;
    }

    .links-container {
        width: min(320px, 86vw);
        padding-left: 24px;
        gap: 20px;
    }

    .open-sidebar-button {
        top: 10px;
        right: 10px;
    }

    header {
        padding: 95px 16px 40px;
    }

    .header_main_content {
        margin-top: -30px;
    }

    .header_picture {
        width: clamp(220px, 66vw, 280px);
        height: clamp(220px, 66vw, 280px);
        border-width: 7px;
    }

    h1,
    #team h2,
    #dates h3,
    footer#contact h5,
    .text-content h2,
    #chronicle h1 {
        font-size: clamp(38px, 12vw, 52px);
    }

    .team-grid {
        grid-template-columns: repeat(3, minmax(70px, 1fr));
        gap: 16px;
    }

    #team .team-member-photo img,
    .profile-picture img {
        width: 84px;
        height: 84px;
    }

    .card {
        width: 100%;
        max-width: 520px;
        border-radius: 40px;
        padding: 36px 18px;
    }

    #dates h4 {
        font-size: clamp(34px, 9vw, 44px);
    }

    .grid-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "item3"
            "item5"
            "item2"
            "item4"
            "item1";
        gap: 12px;
    }

    .grid_item {
        padding: 24px 18px;
    }

    .grid_item img {
        width: 110px;
        height: 110px;
    }

    .grid_item h6 {
        font-size: clamp(30px, 8vw, 38px);
    }

    .datenschutz,
    .impressum {
        padding: 24px 16px;
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "item3 item5"
            "item2 item4"
            "item1 item1";
    }
}

@media (min-width: 1025px) and (max-width: 1366px) {
    .page-home .grid-container {
        grid-template-columns: minmax(min-content, 1.05fr) repeat(3, minmax(0, 1fr));
        grid-template-areas:
            "item3 item5 item5 item5"
            "item2 item4 item1 item1";
        grid-template-rows: none;
        grid-auto-rows: minmax(min-content, auto);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    header {
        padding: 88px 14px 34px;
    }

    .header_main_content {
        gap: 20px;
        margin-top: -15px;
    }

    .header_picture {
        width: min(72vw, 250px);
        height: min(72vw, 250px);
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(64px, 1fr));
    }

    #team .team-member-photo img,
    .profile-picture img {
        width: 76px;
        height: 76px;
    }

    .timeline {
        padding: 0;
    }

    .content {
        padding: 16px;
    }

    .card {
        border-radius: 26px;
        padding: 28px 14px;
    }

    .card a {
        width: 100%;
        max-width: 220px;
    }

    .grid_item {
        padding: 20px 14px;
        gap: 16px;
    }

    .grid_item img {
        width: 96px;
        height: 96px;
    }

    footer.footer {
        padding: 1.1rem 1rem;
    }

    footer.footer .footer-nav {
        width: 100%;
        justify-content: center;
    }

    footer.footer .footer-nav a {
        flex: 1 1 auto;
        text-align: center;
        min-width: 7.5rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    nav {
        margin-top: -40px;
    }

    header {
        padding-top: 70px;
    }

    .header_main_content {
        margin-top: -20px;
        gap: 20px;
    }

    .header_picture {
        width: 180px;
        height: 180px;
    }

    .links-container {
        padding-top: 72px;
        gap: 14px;
    }
}