/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #1d2120;
    --surface: #242826;
    --surface-2: #2a2f2d;
    --text: #ebdbb2;
    --muted: #c6b899;
    --accent: #8ec07c;
    --accent-strong: #76a965;
    --border: #3a423f;
}

@font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/FiraCode-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/FiraCode-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/FiraCode-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/FiraCode-Bold.woff2') format('woff2');
}

body {
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

/* Header */
header {
    background-color: #1a1f22;
    color: var(--text);
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--border);
}

/* Navbar */
nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

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

.lang_switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1;
}

.lang_switch:hover {
    border-color: var(--accent);
}

main a:not(.button) {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

main a:not(.button):hover {
    color: var(--accent-strong);
}

.menu_button {
    display: none;
}

.logo {
    display: flex;
    justify-content: center;
}

.logo a {
    display: inline-flex;
}

.logo_image {
    max-height: 48px;
    width: auto;
    height: auto;
    display: block;
}

#hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background-color: var(--surface);
    border-radius: 8px;
    margin-bottom: 2rem;
    gap: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

#hero .container_left {
    flex-direction: column;
    align-items: flex-start;
}

.hero_actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

#roadmap {
    display: block;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    header nav a {
        display: inline-block;
        padding: 0.25rem 0;
    }

    .logo {
        order: -1;
        display: flex;
        justify-content: center;
    }

    header nav .container_left {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding-top: 0.5rem;
    }

    header nav.is-open .container_left {
        display: flex;
    }

    header nav .container_right {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .menu_button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 280px;
    }

    .lang_switch {
        align-self: center;
    }

    .container_right button {
        width: 100%;
        max-width: 280px;
    }

    #hero,
    #roadmap {
        flex-direction: column;
    }

    .cards,
    .art_strip,
    .ingame_strip {
        grid-template-columns: 1fr;
    }

    .art_strip,
    .ingame_strip {
        display: flex;
        flex-direction: column;
    }

    .art_strip img {
        width: 100%;
        height: auto;
    }

    .ingame_strip img {
        width: 100%;
        height: auto;
    }

    .timeline::before {
        display: none;
    }

    .timeline_item {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding-left: 0;
    }

    .timeline_badge {
        margin-left: 0;
        align-self: flex-start;
    }

    #team {
        grid-template-columns: 1fr;
    }

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

    .container_left,
    .container_right {
        width: 100%;
    }

    table {
        width: 100%;
    }

    #hero {
        padding: 1.5rem;
    }
}

#hero img {
    max-width: 100%;
    height: auto;
    max-height: 440px;
    border-radius: 8px;
}

.container_left,
.container_right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.container_right {
    justify-content: flex-end;
}

ul {
    padding-left: 1.25rem;
}

.sections {
    margin-bottom: 2rem;
}

.sections h3 {
    margin-top: 1.5rem;
}

.section_note {
    color: var(--muted);
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

.art_strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.art_strip img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    border-radius: 8px;
    background-color: var(--surface-2);
    border: 1px solid var(--border);
}

.art_dialog {
    object-position: center 10%;
}

.art_boat {
    object-position: center top;
}

.ingame_strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.ingame_strip img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    border-radius: 8px;
    background-color: var(--surface-2);
    border: 1px solid var(--border);
}

ul {
    padding-left: 1.25rem;
}

.sections {
    margin-bottom: 2rem;
}

#team {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.team_member {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.team_member img {
    border-radius: 8px;
    object-fit: cover;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Buttons */
button {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: #1a1f22;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

button:hover {
    background-color: var(--accent-strong);
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: #1a1f22;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.button:hover {
    background-color: var(--accent-strong);
    color: #1a1f22;
}

.button_secondary {
    background-color: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.button_secondary:hover {
    background-color: var(--surface-2);
    color: var(--text);
    border-color: var(--accent);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border);
}

.timeline_item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: flex-start;
    padding-left: 0.5rem;
}

.timeline_badge {
    min-width: 110px;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: #1a1f22;
    margin-left: -6px;
}

.timeline_done {
    background-color: #6fdc8c;
}

.timeline_active {
    background-color: #f3c35c;
}

.timeline_planned {
    background-color: #98a4ad;
}

.timeline_content {
    background-color: var(--surface);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

.timeline_time {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
}

table{
    background-color: var(--surface);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

/* Footer */
footer {
    background-color: #1a1f22;
    color: var(--text);
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--text);
    text-decoration: none;
    margin: 0 0.75rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(14, 20, 27, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox_image {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    background: var(--surface-2);
}

.lightbox_close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #1f2a36;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox_close:hover {
    background: #ffffff;
}

.no-scroll {
    overflow: hidden;
}

@media (max-width: 900px) {
    .art_strip,
    .ingame_strip {
        display: flex;
        flex-direction: column;
    }

    .art_strip img,
    .ingame_strip img {
        width: 100%;
        height: auto;
    }

    .cards {
        display: flex;
        flex-direction: column;
    }

    #team {
        display: flex;
        flex-direction: column;
    }

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

    .timeline {
        gap: 1rem;
    }

    .timeline_item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-left: 0;
    }

    .timeline_badge {
        margin-left: 0;
    }

    .timeline_content {
        width: 100%;
    }
}

footer a:hover {
    color: #3498db;
}
