/* ===============================
   Schriftarten: RivieraNights
================================= */

@font-face {
    font-family: 'RivieraNights';
    src: url('../fonts/RivieraNights-Light-WebS.eot');
    src: url('../fonts/RivieraNights-Light-WebS.eot?#iefix') format('embedded-opentype'),
    url('../fonts/RivieraNights-Light-WebS.woff2') format('woff2'),
    url('../fonts/RivieraNights-Light-WebS.woff') format('woff'),
    url('../fonts/RivieraNights-Light-WebS.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RivieraNights';
    src: url('../fonts/RivieraNights-Bold-WebS.eot');
    src: url('../fonts/RivieraNights-Bold-WebS.eot?#iefix') format('embedded-opentype'),
    url('../fonts/RivieraNights-Bold-WebS.woff2') format('woff2'),
    url('../fonts/RivieraNights-Bold-WebS.woff') format('woff'),
    url('../fonts/RivieraNights-Bold-WebS.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===============================
   Grund-layout
================================= */

body {
    margin: 0;
    font-family: 'RivieraNights', sans-serif;
    font-weight: 300;
    background-color: white;
}

.light {
    font-weight: 300;
}
.bold {
    font-weight: 700;
}




/* ===============================
   Hero-Bereich bzw Hintergrundbild
================================= */

.hero-section {
    width: 100%;
    height: 350px;
    background-image: url("../img/hasenzaehnHasFarblos.png");
    background-size: cover;
    background-position: center;
}

/* ===============================
   Container-Struktur
================================= */
.container {
    display: flex;
    flex-direction: row; /* Desktop: nebeneinander */
    max-width: 100%;
    width: 100%;
    gap: 20px;
    margin: -50px auto 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 2200px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Mobile: untereinander */
        margin: 20px 10px;
        padding: 15px;
        gap: 15px;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .profilbild {
        max-width: 100%;
        height: auto;
    }
}


/*
.left-column,
.right-column {
    padding: 20px;
}

.left-column {
    width: 30%;
    text-align: center;
}
*/

.right-column {
    width: 100%;
    text-align: center;
}

/* ===============================
   Profilbereich (faellt weg)
================================= */

.profilbild {
    width: 100%;
    max-width: 340px;
    height: auto;
    object-fit: cover;
    border: 2px solid lightgray;
    margin: 10px 0 20px 0;
}

.linkedin-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0077b5;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

/* ===============================
   Logo & Buttons
================================= */

.logo {
    width: 100%;
    max-width: 700px;
    margin-bottom: 20px;
}

.separator {
    border-top: 2px solid lightgray;
    margin: 20px 0;
}

.button-container {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.category-button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background-color: lightgray;
    color: black;
    border-radius: 5px;
}

/* ===============================
   Galerie
================================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-item {
    color: black;
    border: 2px solid lightgray;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

.gallery-item:hover {
    color: black;
}

.gallery-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

/* Mobile-Optimierung */
@media (max-width: 768px) {
    .gallery-item img {
        height: auto;
        max-height: 320px;
    }
}
.gallery-title {
    font-weight: 300;
    margin-top: 5px;
    font-size: 20px;
}

a.gallery-item {
    text-decoration: none;
    color: black;
    display: block;
}/* fuer den Link */

a.gallery-item:hover {
    text-decoration: none;
    color: black;
}



/* ===============================
   Responsive Verhalten
================================= */

@media (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .left-column,
    .right-column {
        width: 90%;
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   Subseite 1: QuantumManyBody
================================= */
body.QM {
    text-align: center;
    padding: 0;
}


.container.QM {
    max-width: 100%;
    width: 100%;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 1200px) {
    .container.QM {
        max-width: 1600px; /* oder 2200px, je nach Wunsch */
    }
}

.small-gif {
    width: 70%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    display: block;
}
/* last gif will not become to big */

.gallery-row.QM {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: stretch;
}

.gallery-item.QM {
    flex-basis: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.gallery-item.QM a {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.gallery-item.QM img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item.QM img:hover {
    transform: scale(1.03);
}

.full-width.QM img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.text-section.QM {
    font-family: 'RivieraNights', sans-serif;
    padding: 20px;
    font-size: 20px;
    line-height: 1.6;
    background-color: transparent;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.text-section.QM .title {
    font-weight: 700;
    font-size: 38px;
    margin-bottom: 10px;
}

.text-section.QM .main-text {
    font-weight: 300;
    font-size: 26px;
}

.back-link.QM {
    display: block;
    margin: 22px;
    text-decoration: none;
    color: #0077b5;
    font-weight: bold;
}

.title-text.QM {
    font-weight: 700;
    background-color: white;
    color: black;
    padding: 10px;
    margin: 0;
}

.title-text.QMHeader {
    font-size: clamp(20px, 8vw, 64px);
    margin: 30px auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* ===============================
   Subseite 3: Swiss Topology
================================= */
.title-text.STop {
    font-size: 90px;
    font-weight: 700;
    margin: 30px auto;
    background-color: white;
    color: black;
    padding: 10px;
}

@media (max-width: 768px) {
    .title-text.STop {
        font-size: 36px;
        padding: 8px;
        margin: 20px auto;
    }
}

@media (max-width: 400px) {
    .title-text.STop {
        font-size: 28px;
    }
}
/* ===============================
   Subseite : New Resident
================================= */
.gallery-item.no-border {
    border: none;
    padding: 0;
    box-shadow: none;
}

/* ===============================
   Subseite 2: CV
================================= */
body.CV {
    text-align: center;
    padding: 0;
}


.container.CV {
    max-width: 1600px;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-table {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    border-collapse: collapse;
    font-family: 'RivieraNights', sans-serif;
    font-weight: 300;
    font-size: 18px;
}

.about-table td {
    padding: 15px;
    vertical-align: top;
}

.photo-cell {
    width: 200px;
}

.about-photo {
    width: 100%;
    max-width: 180px;
    border-radius: 8px;
    border: 2px solid lightgray;
}

.about-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.about-location {
    font-size: 18px;
    color: #555;
}

.label-cell {
    font-weight: 700;
    width: 180px;
    vertical-align: top;
}

.text-cell {
    font-weight: 300;
    text-align: left;
}
/* ===============================
   Inhaltsverzeichnis (Wiki)
================================= */
.toc {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px 30px;
    border: 2px solid lightgray;
    border-radius: 8px;
    background-color: white;
    font-family: 'RivieraNights', sans-serif;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.toc h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: black;
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc li {
    margin: 10px 0;
}

.toc li a {
    text-decoration: none;
    color: black;
    font-size: 20px;
    font-weight: 300;
    transition: color 0.2s ease, margin-left 0.2s ease;
}

.toc li a:hover {
    color: #0077b5; /* dein LinkedIn-Blau */
    margin-left: 5px;
}

.toc ul ul {
    margin-left: 20px;
    font-size: 18px;
}
