/* Version 2026-03-21; by H.S. */

/* ── Base ── */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

h1 {
    color: black;
}

h2 {
    color: black;
}

/* ── Menu ── */
.menu-frame {
    width: 100%;
    height: 150px;
    background-color: #b0d77b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    font-size: larger;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #4d9573;
}

/* ── Language toggle ── */
.lang-toggle {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 4px;
    gap: 2px;
    flex-shrink: 0;
}

.lang-toggle a,
.lang-toggle span {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.lang-active {
    background-color: white;
    color: #4d9573;
    cursor: default;
}

.lang-inactive {
    color: white;
}

.lang-inactive:hover {
    background-color: #4d9573;
}

/* ── Layout ── */
.content {
    display: flex;
    margin-top: 150px;
    background-color: white;
    color: black;
    min-height: calc(100vh - 150px);
}

.left-content {
    width: 66%;
    padding: 8px 35px 35px 35px;
    background-color: white;
    color: #4d9573;
}

.right-content {
    width: 33%;
    padding: 20px;
    background-color: #4d9573;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 150px;
    height: calc(100vh - 150px);
}

.right-content img {
    max-width: 100%;
    height: auto;
}

/* ── Tables ── */
.custom-table {
    border-collapse: collapse;
    margin: 10px 10px;
}

.custom-table th,
.custom-table td {
    border: 0px none white;
    padding: 3px;
    text-align: left;
}

.column2 {
    width: 100px;
    text-align: right;
}

.column3 {
    width: 300px;
    text-align: left;
}

.column4 {
    width: 100px;
    text-align: right;
    vertical-align: bottom;
    color: black;
}

.aboutme1 {
    width: 200px;
    text-align: center;
    vertical-align: middle;
    color: black;
}

.aboutme2 {
    text-align: center;
    vertical-align: middle;
    color: #4d9573;
}

/* ── Footer ── */
footer {
    background-color: #4d9573;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

footer a,
footer span {
    color: white;
    font-size: 1rem;
}

footer a {
    text-decoration: underline;
}

footer a:hover {
    text-decoration: none;
}

/* ── Home section ── */
.home-languages {
    display: flex;
    gap: 20px;
    margin: 35px 0 25px 0;
}

.home-lang-card {
    flex: 1;
    background-color: #4d9573;
    color: white;
    padding: 28px 20px;
    border-radius: 8px;
    text-align: center;
}

.home-lang-code {
    font-size: 2.2rem;
    font-weight: bold;
    color: #b0d77b;
    line-height: 1;
    margin-bottom: 10px;
}

.home-lang-card h3 {
    color: white;
    margin: 0;
    font-size: 1rem;
    font-weight: normal;
}

.home-audience {
    text-align: center;
    margin: 30px 0;
    font-size: 1.35rem;
    font-weight: bold;
    color: #4d9573;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    background-color: #f2f9ec;
    border-radius: 8px;
}

.home-audience-sep {
    color: #b0d77b;
    font-size: 1.8rem;
    line-height: 1;
}

.home-taglines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 25px 0 10px 0;
}

.home-tagline {
    padding: 11px 18px;
    border-left: 4px solid #b0d77b;
    background-color: #f2f9ec;
    color: #333;
    border-radius: 0 6px 6px 0;
    font-size: 0.98rem;
}

@media (max-width: 768px) {
    .home-languages {
        flex-direction: column;
    }
}

/* ── Section divider (3 lines) ── */
.section-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 5px 0 60px 0;
}

.section-divider span {
    display: block;
    height: 2px;
    background-color: #4d9573;
    border-radius: 1px;
}

.section-divider span:nth-child(1) { width: 70%; }
.section-divider span:nth-child(2) { width: 80%; }
.section-divider span:nth-child(3) { width: 90%; }

.section-divider.reversed {
    margin: 60px 0 5px 0;
}

.section-divider.reversed span:nth-child(1) { width: 90%; }
.section-divider.reversed span:nth-child(2) { width: 80%; }
.section-divider.reversed span:nth-child(3) { width: 70%; }

/* ── References table ── */
.ref-table {
    width: 100%;
}

.ref-table td {
    padding: 8px 12px;
    vertical-align: middle;
    color: black;
    border-bottom: 1px solid #e0e0e0;
}

.ref-table td:first-child {
    white-space: nowrap;
    font-weight: bold;
}

.ref-table td:nth-child(2) {
    white-space: nowrap;
    padding-right: 24px;
}

.ref-table td:nth-child(3) {
    width: 100%;
}

.ref-table a {
    color: #4d9573;
    text-decoration: none;
}

.ref-table a:hover {
    text-decoration: underline;
}

/* ── Hamburger button (desktop: hidden) ── */
.hamburger {
    display: none;
    background: none;
    border: 2px solid white;
    border-radius: 4px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 2px 10px;
    line-height: 1.4;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   MOBILE  (≤ 768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    /* Menu */
    .menu-frame {
        height: 70px;
        padding: 0 15px;
        flex-wrap: wrap;
        align-content: center;
    }

    .menu-frame img {
        height: 55px !important;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #b0d77b;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 8px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    /* Layout */
    .content {
        margin-top: 70px;
        flex-direction: column;
        min-height: calc(100vh - 70px);
    }

    .left-content {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .right-content {
        display: none;
    }

    /* Divider spacing: kompakter */
    .section-divider {
        margin: 20px 0 25px 0;
    }

    /* References table: Ortsspalte ausblenden, nowrap aufheben */
    .ref-table td:nth-child(2) {
        display: none;
    }

    .ref-table {
        table-layout: fixed;
        width: 100%;
    }

    .ref-table td:first-child {
        white-space: normal;
        word-break: break-word;
    }
}

/* ── Tab sections ── */
section {
    display: none;
}

section.active {
    display: block;
}
