html, body {
    margin: 0; padding: 0; height: 100%;
    cursor: url('HP_Pinsel.png') 5 4, auto;
    background-color: black;
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    overflow-x: hidden;
    background-image: url('home_screen_background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
}

a, button, .home_screen_nav_bar_item, .home_screen_nav_bar_item * {
    cursor: url('HP_Pinsel.png') 5 4, auto !important;
}

.content_container, .home_screen {
    margin: auto; width: 100%; max-width: 1000px;
    min-height: 100vh; min-height: 100dvh;
    height: calc(var(--vh, 1vh) * 100);
}

/* ---------- Home Screen ---------- */
.home_screen_banner        { height: 200px; padding-top: 30px; }
.home_screen_lwl_window    { text-align: center; margin-top: 30px; margin-bottom: 30px; }
.home_screen_lwl_window img { width: 100%; max-width: 400px; height: auto; }

.home_screen_banner_text {
    position: relative; vertical-align: middle;
    font-family: 'Luna', sans-serif;
    font-size: clamp(20px, 5vw, 45px);
    text-align: center;
}

.home_screen_banner_top,
.home_screen_banner_bottom,
.home_screen_banner_text { background-color: #f3eaa2; }

.home_screen_banner_top,
.home_screen_banner_bottom {
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
    -webkit-mask-repeat: stretch; mask-repeat: stretch;
    -webkit-mask-position: 0 0;   mask-position: 0 0;
    height: 40px;
}

.home_screen_banner_top    { mask-image: url('banner_grey_top.png');    -webkit-mask-image: url('banner_grey_top.png');    }
.home_screen_banner_bottom { mask-image: url('banner_grey_bottom.png'); -webkit-mask-image: url('banner_grey_bottom.png'); }

/* ---------- Home Navigation ---------- */
.home_screen_nav_bar {
    width: 100%; max-width: 1000px; flex-wrap: wrap;
    height: 120px; display: flex;
    justify-content: center; align-items: center; gap: 10px;
}

.home_screen_nav_bar_item {
    width: 80px; height: 110px; display: block;
    text-align: center; border-radius: 10px; padding: 10px;
    text-decoration: none; color: inherit;
}

.home_screen_nav_bar_item:hover { background-color: rgba(255,255,255,0.25); color: white; }
.home_screen_nav_bar_icon img   { height: 70px; text-align: center; }
.home_screen_nav_bar_text       { text-align: center; font-weight: bold; height: 20px; }

/* ---------- Content Screen ---------- */
.content_screen { background-color: white; padding-top: 30px; padding-bottom: 30px; }

.content_screen_nav_bar {
    width: 100%; max-width: 1000px; flex-wrap: wrap;
    height: 50px; display: flex;
    justify-content: center; align-items: center; gap: 10px;
}

.content_screen_nav_bar_item {
    height: 50px; display: inline-flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-decoration: none; color: inherit; font-size: 11px;
}

.content_screen_nav_bar_icon     { position: relative; text-align: center; }
.content_screen_nav_bar_icon img { width: 30px; }

.content_screen_banner      { background-repeat: repeat-x; }
.content_screen_banner_text {
    font-family: 'Luna', sans-serif;
    font-size: clamp(30px, 5vw, 45px);
    text-align: center;
}

.content_screen_title_text  { display: flex; justify-content: center; align-items: center; }

.content_screen_title_top,
.content_screen_title_bottom {
    height: 40px;
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
    -webkit-mask-repeat: stretch; mask-repeat: stretch;
    -webkit-mask-position: 0 0;   mask-position: 0 0;
}

.content_screen_title_top    { mask-image: url('banner_grey_top.png');    -webkit-mask-image: url('banner_grey_top.png');    }
.content_screen_title_bottom { mask-image: url('banner_grey_bottom.png'); -webkit-mask-image: url('banner_grey_bottom.png'); }

.content_screen_text { margin: 0 30px; font-size: 1em; text-align: left; }

/* ---------- Mobile Menu Toggle ---------- */
.menu_toggle {
    display: none; font-size: 26px; background: none;
    border: none; cursor: pointer; padding: 8px;
}

@media (max-width: 700px) {
    .menu_toggle {
        display: flex; justify-content: center; align-items: center;
        width: 100%; position: relative; font-size: 26px;
        background: none; border: none; padding: 10px 0;
        cursor: pointer; color: #333; z-index: 999;
    }
    .content_screen_nav_bar {
        position: absolute; height: auto; flex-direction: row;
        gap: 0; display: none;
        background: #fff; border: 1px solid #ddd;
        padding-bottom: 10px; z-index: 99;
    }
    .content_screen_nav_bar_item {
        width: 100%; padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    .content_screen_nav_bar_item:last-child { border-bottom: none; }
}

/* ---------- Sonstiges ---------- */
.clearer    { clear: both; }
.ui-tooltip { z-index: 100 !important; }

/* ---------- Blick ins Buch (turn.js) ---------- */
#bookctl_wrapper { display: flex; justify-content: center; margin: 20px 0; }
#bookctl         { overflow: hidden; }
#bookctl .page img { width: 100%; height: 100%; object-fit: cover; display: block; }
#book_nav {
    display: flex; justify-content: center; gap: 20px; margin: 10px 0 20px;
}
#book_nav button {
    padding: 8px 24px; font-size: 1em; font-family: inherit;
    background: #bec8c9; border: none; border-radius: 6px;
    cursor: url('HP_Pinsel.png') 5 4, auto;
    font-weight: bold;
}
#book_nav button:hover:not(:disabled) { background: #9aacad; }
#book_nav button:disabled { opacity: 0.35; cursor: default; }
