:root {
    --darkblue: #002b6f;
    --textblue: #003b8e;
    --headerH: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =====================
   GRUNDLAYOUT
===================== */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: var(--textblue);
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    padding-top: var(--headerH);
    padding-bottom: 70px;
}

/* =====================
   HEADER (FIXIERT)
===================== */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--darkblue);
    color: #ffffff;
    height: 80px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    z-index: 1000;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    min-width: 160px;
    position: relative;
}

.header-center {
    flex: 1;
    justify-content: center;
    text-align: center;
}

.header-right {
    min-width: 130px;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
}

/* =====================
   STORY-MENÜ
===================== */

.story-menu-toggle {
    color: #ffffff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.story-dropdown {
    position: absolute;
    top: 70px;
    left: 0;
    min-width: 320px;
    max-width: 420px;
    background: #ffffff;
    border: 2px solid var(--darkblue);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

/* 🔹 Aufzählungspunkt */
.story-dropdown a {
    position: relative;
    padding-left: 18px; /* Platz für Punkt */
    color: var(--darkblue);
    text-decoration: none;
    font-size: 15px;
    text-align: left;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    cursor: pointer;
}

.story-dropdown a::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.2em;
    font-size: 18px;
    line-height: 1;
    color: var(--darkblue);
}

.story-dropdown a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* =====================
   LOGO & TITEL
===================== */

.logo-title-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

.logo-title-link img {
    height: 48px;
}

.site-title {
    font-weight: 900;
    text-transform: uppercase;
    text-shadow:
        1px 1px 0 #87a,
        2px 2px 0 #769,
        3px 3px 0 #658;
}

.site-title-main {
    font-size: clamp(22px, 4vw, 32px);
    letter-spacing: 2px;
}

.site-title-separator {
    margin: 0 4px;
}

.site-title-story {
    font-size: clamp(16px, 2.5vw, 22px);
    font-family: "Brush Script MT", "Segoe Script", "Comic Sans MS", cursive;
    font-weight: 400;
}

/* =====================
   HAUPTBEREICH
===================== */

main {
    flex: 1;
    display: flex;
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - var(--headerH) - 70px);
}

.main-left,
.main-right {
    width: 15%;
    min-width: 150px;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    border: 2px dashed #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.main-center {
    flex: 1;
}

#storyContainer p {
    margin-bottom: 12px;
    line-height: 1.55;
}

/* =====================
   STORY-NAVIGATION
===================== */

.story-header-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 14px;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 0;
    height: 0;
}

.nav-triangle-left {
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-right: 32px solid var(--darkblue);
}

.nav-triangle-right {
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 32px solid var(--darkblue);
}

/* =====================
   FOOTER
===================== */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--darkblue);
    color: #ffffff;
    height: 70px;
    padding: 12px 20px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
}

.footer-left {
    display: flex;
    gap: 14px;
}

.language-select a,
.footer-right a {
    color: #ffffff;
    text-decoration: none;
}

.language-select a.active-lang {
    font-weight: bold;
    text-decoration: underline;
}

/* =====================
   RESPONSIVE
===================== */

@media (max-width: 600px) {
    header {
        flex-direction: column;
        height: auto;
        gap: 10px;
        text-align: center;
    }

    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        justify-content: center;
    }

    .story-dropdown {
        left: 50%;
        transform: translateX(-50%);
        top: 100%;
    }

    main {
        flex-direction: column;
    }

    .main-left,
    .main-right {
        width: 100%;
        min-height: 120px;
    }

    footer {
        flex-direction: column;
        height: auto;
        gap: 8px;
    }

    .footer-left {
        justify-content: center;
    }
}
