/*
Theme Name: HSIA Astro
Theme URI: http://127.0.0.1:8090/
Author: OpenAI Codex
Description: WordPress-Nachbau der alten Heiko-schaut-ins-All Joomla-Seite.
Version: 1.0.0
Text Domain: hsia-astro
*/

@import url("./assets/css/template.css");

body {
    background-position: center top;
    background-size: cover;
}

body.admin-bar {
    background-position: center top;
}

.art-sheet-body,
.art-Sheet-body {
    overflow: hidden;
}

.art-PostContent img,
.art-BlockContent-body img {
    max-width: 100%;
    height: auto;
}

/* Old Joomla articles often floated large inline images left.
   In WordPress this causes captions and following text to collapse into a narrow right column. */
.art-PostContent img[align="left"],
.art-PostContent a > img[align="left"],
.art-PostContent img[style*="float:left"],
.art-PostContent img[style*="float: left"],
.art-PostContent a > img[style*="float:left"],
.art-PostContent a > img[style*="float: left"] {
    float: none !important;
    display: block;
    clear: both;
    margin: 12px 0;
}

.art-PostContent p:empty {
    display: none;
}

.art-BlockContent-body .menu,
.art-BlockContent-body .menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.art-BlockContent-body .menu li {
    margin: 0;
}

.art-BlockContent-body .menu > li,
.art-BlockContent-body .menu .sub-menu > li {
    margin: 0.65em 0;
    line-height: 1.55em;
}

.art-BlockContent-body .menu li ul {
    margin-left: 16px;
    display: none;
}

.art-BlockContent-body .menu a {
    display: inline-block;
    line-height: inherit;
}

.art-BlockContent-body .menu li.current-menu-item > a,
.art-BlockContent-body .menu li.current_page_item > a,
.art-BlockContent-body .menu li.active.current > a {
    color: #BE7195 !important;
}

.art-BlockContent-body .menu li.current-menu-item > a span,
.art-BlockContent-body .menu li.current_page_item > a span,
.art-BlockContent-body .menu li.active.current > a span {
    color: #BE7195 !important;
}

.art-BlockContent-body .menu li.current-menu-ancestor > ul,
.art-BlockContent-body .menu li.current-menu-parent > ul,
.art-BlockContent-body .menu li.current_page_ancestor > ul,
.art-BlockContent-body .menu li.current_page_parent > ul,
.art-BlockContent-body .menu li.current-menu-item > ul,
.art-BlockContent-body .menu li.current_page_item > ul,
.art-BlockContent-body .menu li.active.current > ul {
    display: block;
}

.art-breadcrumb {
    margin-bottom: 4px;
}

.art-breadcrumb .breadcrumbs,
.art-breadcrumb .pathway,
span.pathway {
    display: block;
    margin: 0 20px;
    height: auto;
    min-height: 16px;
    line-height: 1.35;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
}

/* The first content box only contains the breadcrumb trail.
   Trim its padding so the area above the page content does not look oversized. */
.art-content > .art-Post:first-child {
    margin-top: 6px;
    margin-bottom: 6px;
}

.art-content > .art-Post:first-child .art-Post-body {
    padding-top: 4px;
    padding-bottom: 4px;
}

.art-content > .art-Post:first-child .art-breadcrumb {
    margin-bottom: 2px;
}

/* Reduce the top gap in the first real content panel after the breadcrumb box. */
.art-content > .art-Post:first-child + .art-Post {
    margin-top: 0;
}

.art-content > .art-Post:first-child + .art-Post .art-Post-body {
    padding-top: 4px;
}

.art-content > .art-Post:first-child + .art-Post .art-PostContent > :first-child {
    margin-top: 0;
}

.hsia-submenu-links {
    margin: 1em 0 1.2em;
}

.hsia-submenu-link {
    margin: 0 0 0.75em;
}

.hsia-submenu-link:last-child {
    margin-bottom: 0;
}

.hsia-submenu-prefix {
    margin-right: 0.15em;
}

.hsia-submenu-link a,
.hsia-submenu-link a:link,
.hsia-submenu-link a:visited {
    color: #EAECE9;
    text-decoration: underline;
}

.hsia-submenu-link a:hover {
    color: #BE7195;
    text-decoration: none;
}

.hsia-back-to-top {
    position: fixed;
    left: auto;
    right: calc((100vw - 1000px) / 2 + 24px);
    bottom: 18px;
    width: 38px;
    height: 38px;
    margin-left: 0;
    border: none;
    border-radius: 999px;
    background: rgba(8, 8, 10, 0.18);
    color: #BE7195;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.2s ease;
    z-index: 4000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hsia-back-to-top span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hsia-back-to-top span svg {
    display: block;
    width: 24px;
    height: 14px;
    overflow: visible;
}

.hsia-back-to-top span svg path {
    fill: none;
    stroke: #BE7195;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hsia-back-to-top:hover {
    background-color: rgba(8, 8, 10, 0.32);
}

.hsia-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.art-widget-gallery-teaser img {
    display: block;
    margin: 0 auto;
}

.art-widget-gallery-teaser a {
    display: inline-block;
}

.hsia-gallery,
.wp-block-gallery.has-nested-images {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hsia-gallery-item,
.wp-block-gallery.has-nested-images .wp-block-image {
    width: calc(50% - 7px);
    margin: 0;
}

.hsia-gallery-item img,
.wp-block-gallery.has-nested-images .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hsia-gallery-caption,
.wp-block-gallery.has-nested-images .wp-element-caption,
.wp-block-gallery.has-nested-images figcaption {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

.hsia-gallery-item a,
.wp-block-gallery.has-nested-images .wp-block-image a {
    display: block;
}

.hsia-legacy-video {
    margin: 18px 0 12px;
}

.hsia-legacy-video-frame {
    position: relative;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    background: #000;
}

.hsia-legacy-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    box-sizing: border-box;
    background:
        linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.68)),
        radial-gradient(circle at center, rgba(82, 82, 82, 0.35), rgba(0, 0, 0, 0.92));
}

.hsia-legacy-video-consent {
    max-width: 460px;
    color: #f0f0f0;
    text-align: center;
    line-height: 1.5;
}

.hsia-legacy-video-consent p {
    margin: 0.7em 0;
}

.hsia-legacy-video-consent-title {
    font-size: 18px;
    font-weight: bold;
}

.hsia-legacy-video-consent-note {
    font-size: 12px;
}

.hsia-legacy-video-activate {
    min-width: 150px;
}

.hsia-legacy-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hsia-legacy-video-link {
    margin: 8px 0 0;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.hsia-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.hsia-lightbox.is-closing {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

.hsia-lightbox-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.hsia-lightbox-dialog {
    position: relative;
    width: auto;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    overflow: visible;
    z-index: 1;
}

.hsia-lightbox-stage {
    position: relative;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.hsia-lightbox-viewport {
    position: relative;
    width: auto;
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    max-width: calc(92vw - 120px);
    max-height: calc(92vh - 160px);
}

.hsia-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 120px);
    width: auto;
    height: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform-origin: center center;
    transition: transform 0.12s ease-out;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.hsia-lightbox-stage.hsia-lightbox-stage-zoomed .hsia-lightbox-image {
    transition: none;
}

.hsia-lightbox-caption {
    color: #f2f2f2;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    max-width: min(92vw, 1200px);
}

.hsia-lightbox-close,
.hsia-lightbox-prev,
.hsia-lightbox-next {
    position: absolute;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(0, 0, 0, 0.58);
    transition: background 0.2s ease;
}

.hsia-lightbox-close:hover,
.hsia-lightbox-prev:hover,
.hsia-lightbox-next:hover {
    background: rgba(0, 0, 0, 0.82);
}

.hsia-lightbox-close {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 16px);
    right: calc(env(safe-area-inset-right) + 16px);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 42px;
    text-align: center;
    z-index: 4;
}

.hsia-lightbox-prev,
.hsia-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    font-size: 30px;
    line-height: 64px;
    text-align: center;
    z-index: 3;
}

.hsia-lightbox-prev {
    left: -74px;
}

.hsia-lightbox-next {
    right: -74px;
}

.hsia-lightbox-counter {
    color: #bfc5bf;
    font-size: 12px;
    text-align: center;
}

@keyframes hsia-gallery-lightbox-stage-in {
    from {
        opacity: 0.25;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes hsia-gallery-lightbox-stage-out {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.88);
    }
}

.hsia-lightbox.is-open .hsia-lightbox-stage {
    animation: hsia-gallery-lightbox-stage-in 0.22s ease-out both;
    transform-origin: center center;
}

.hsia-lightbox.is-closing .hsia-lightbox-stage {
    animation: hsia-gallery-lightbox-stage-out 0.2s ease-in both;
    transform-origin: center center;
}

.hsia-lightbox.is-closing .hsia-lightbox-scrim {
    animation: hsia-wp-lightbox-scrim-out 0.22s ease-in both;
}

.hsia-lightbox.is-closing .hsia-lightbox-close,
.hsia-lightbox.is-closing .hsia-lightbox-prev,
.hsia-lightbox.is-closing .hsia-lightbox-next {
    animation: hsia-wp-lightbox-button-out 0.18s ease-in both;
}

.hsia-lightbox.is-closing .hsia-lightbox-caption,
.hsia-lightbox.is-closing .hsia-lightbox-counter {
    opacity: 0;
    transition: opacity 0.12s ease-in;
}

body.hsia-lightbox-open {
    overflow: hidden;
}

.wp-lightbox-overlay .scrim,
.wp-lightbox-overlay.active .scrim,
.wp-lightbox-overlay.zoom.active .scrim,
.wp-lightbox-overlay.zoom.show-closing-animation .scrim {
    background-color: rgba(0, 0, 0, 0.9) !important;
    opacity: 1 !important;
    transition: opacity 0.22s ease-in-out !important;
}

.wp-lightbox-overlay .wp-lightbox-close-button {
    left: auto !important;
    right: calc(env(safe-area-inset-right) + 16px) !important;
    top: calc(env(safe-area-inset-top) + 16px) !important;
    min-width: 42px;
    min-height: 42px;
    padding: 0 !important;
    border-radius: 999px;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.58) !important;
    z-index: 5000001;
}

.wp-lightbox-overlay .wp-lightbox-close-button:hover,
.wp-lightbox-overlay .wp-lightbox-close-button:focus,
.wp-lightbox-overlay .wp-lightbox-close-button:not(:hover):not(:active):not(.has-background) {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.82) !important;
    border: none !important;
}

.wp-lightbox-overlay .wp-lightbox-close-button svg,
.wp-lightbox-overlay .wp-lightbox-close-button svg * {
    fill: #fff !important;
    stroke: #fff !important;
}

.wp-lightbox-overlay .lightbox-image-container,
.wp-lightbox-overlay .wp-block-image,
.wp-lightbox-overlay .wp-block-image img {
    background: transparent !important;
}

.wp-lightbox-overlay .lightbox-image-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.wp-lightbox-overlay .wp-block-image {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
}

.wp-lightbox-overlay .wp-block-image img.hsia-wp-lightbox-image {
    transform-origin: center center;
    transition: transform 0.08s ease-out;
    max-width: none !important;
    max-height: none !important;
    user-select: none;
    -webkit-user-drag: none;
}

.wp-lightbox-overlay.hsia-wp-lightbox-zoomed {
    cursor: default;
}

.wp-lightbox-overlay.hsia-wp-lightbox-zoomed .wp-block-image img.hsia-wp-lightbox-image {
    cursor: grab;
}

.wp-lightbox-overlay.hsia-wp-lightbox-releasing {
    pointer-events: none !important;
}

/* WordPress leaves the overlay element in the DOM after closing.
   Once the closing animation is over, make sure the inactive overlay
   can no longer affect cursor state or intercept hover behavior. */
.wp-lightbox-overlay:not(.active):not(.show-closing-animation) {
    display: none !important;
    pointer-events: none !important;
    cursor: default !important;
}

.wp-lightbox-overlay:not(.active):not(.show-closing-animation) *,
.wp-lightbox-overlay:not(.active) .wp-block-image img,
.wp-lightbox-overlay:not(.active) .lightbox-image-container,
.wp-lightbox-overlay:not(.active) .wp-lightbox-close-button {
    cursor: default !important;
}

body.hsia-wp-lightbox-cursor-reset,
body.hsia-wp-lightbox-cursor-reset *,
body.hsia-wp-lightbox-cursor-reset .wp-lightbox-container img,
body.hsia-wp-lightbox-cursor-reset .wp-lightbox-container button {
    cursor: default !important;
}

.wp-lightbox-container.hsia-wp-lightbox-source-cooldown,
.wp-lightbox-container.hsia-wp-lightbox-source-cooldown *,
.wp-lightbox-container.hsia-wp-lightbox-source-cooldown img,
.wp-lightbox-container.hsia-wp-lightbox-source-cooldown button {
    cursor: default !important;
    pointer-events: none !important;
}

/* Keep WordPress source images on the page at normal cursor state.
   Otherwise the browser can switch back to the zoom cursor immediately
   after closing the overlay while the pointer is still hovering the source. */
.wp-lightbox-container img,
.wp-lightbox-container button,
.wp-lightbox-container .lightbox-trigger,
.wp-lightbox-container .lightbox-trigger img {
    cursor: default !important;
}

@keyframes hsia-wp-lightbox-center-in {
    from {
        opacity: 0.25;
        transform: translate(-50%, -50%) scale(0.88);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes hsia-wp-lightbox-center-out {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.88);
    }
}

@keyframes hsia-wp-lightbox-scrim-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes hsia-wp-lightbox-button-out {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.92);
    }
}

.wp-lightbox-overlay .lightbox-image-container.hsia-wp-lightbox-inactive-container {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.wp-lightbox-overlay.zoom.active .lightbox-image-container.hsia-wp-lightbox-active-container {
    animation: hsia-wp-lightbox-center-in 0.22s ease-out both !important;
    transform-origin: center center !important;
}

.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container.hsia-wp-lightbox-active-container {
    animation: hsia-wp-lightbox-center-out 0.2s ease-in both !important;
    transform-origin: center center !important;
}

.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim {
    animation: hsia-wp-lightbox-scrim-out 0.22s ease-in both !important;
}

.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .wp-lightbox-close-button {
    animation: hsia-wp-lightbox-button-out 0.18s ease-in both !important;
}

@media (max-width: 900px) {
    body {
        background-attachment: scroll;
        background-position: center top;
    }

    #art-page-background-simple-gradient,
    #art-page-background-gradient,
    #art-page-background-glare {
        min-width: 0 !important;
    }

    .art-Sheet {
        width: min(100%, 1000px) !important;
        margin: 12px auto !important;
        min-width: 0 !important;
    }

    .art-Sheet-body {
        padding: 10px !important;
    }

    .art-Sheet-tr,
    .art-Sheet-tl,
    .art-Sheet-br,
    .art-Sheet-bl,
    .art-Sheet-tc,
    .art-Sheet-bc,
    .art-Sheet-cr,
    .art-Sheet-cl,
    .art-Sheet-cc {
        display: none !important;
    }

    .art-Sheet,
    .art-Sheet-body {
        background: rgba(11, 11, 13, 0.74);
        border-radius: 18px;
    }

    div.art-Header,
    div.art-Header-jpeg,
    .art-contentLayout,
    .art-contentLayout .art-content,
    .art-contentLayout .art-content-wide,
    .art-contentLayout .art-sidebar1,
    .art-nav .r {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    div.art-Header,
    div.art-Header-jpeg {
        height: 120px !important;
    }

    div.art-Header-jpeg {
        background-size: cover;
        background-position: center center;
    }

    .art-Logo {
        left: 18px !important;
        top: 18px !important;
        width: auto !important;
        right: 92px;
    }

    h1.art-Logo-name,
    h1.art-Logo-name a,
    h1.art-Logo-name a:link,
    h1.art-Logo-name a:visited,
    h1.art-Logo-name a:hover {
        font-size: 22px !important;
        line-height: 1.05;
    }

    .art-Logo-text,
    .art-Logo-text a {
        font-size: 15px !important;
        line-height: 1.2;
    }

    .art-contentLayout .art-sidebar1,
    .art-contentLayout .art-content,
    .art-contentLayout .art-content-wide {
        float: none !important;
        display: block !important;
        overflow: visible !important;
    }

    .art-contentLayout .art-sidebar1 {
        margin-bottom: 14px;
    }

    .art-contentLayout .art-content,
    .art-contentLayout .art-content-wide {
        margin-top: 0;
    }

    .art-Post,
    .art-Post-body,
    .art-Block,
    .art-Block-body {
        min-width: 0 !important;
    }

    .art-PostContent,
    .art-PostContent p,
    .art-PostContent li {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .art-breadcrumb .breadcrumbs,
    .art-breadcrumb .pathway,
    span.pathway {
        margin: 0 8px !important;
    }

    .art-BlockContent-body .menu > li,
    .art-BlockContent-body .menu .sub-menu > li {
        margin: 0.45em 0;
        line-height: 1.4em;
    }

    .art-BlockContent-body .menu li ul {
        margin-left: 14px;
    }

    .hsia-gallery,
    .wp-block-gallery.has-nested-images {
        gap: 10px;
    }

    .hsia-gallery-item,
    .wp-block-gallery.has-nested-images .wp-block-image {
        width: 100%;
    }

    .hsia-back-to-top {
        right: 18px;
        bottom: 30px;
        width: 38px;
        height: 38px;
    }

    .hsia-back-to-top span svg {
        width: 24px;
        height: 14px;
    }

    .hsia-lightbox {
        padding: 16px;
    }

    .hsia-lightbox-dialog {
        width: 100%;
    }

    .hsia-lightbox-prev,
    .hsia-lightbox-next {
        width: 40px;
        height: 52px;
        line-height: 52px;
        font-size: 24px;
    }

    .hsia-lightbox-prev {
        left: 8px;
    }

    .hsia-lightbox-next {
        right: 8px;
    }

    .hsia-lightbox-close {
        top: calc(env(safe-area-inset-top) + 12px);
        right: calc(env(safe-area-inset-right) + 12px);
    }
}

@media (max-width: 560px) {
    .art-Sheet {
        margin: 0 !important;
        border-radius: 0;
    }

    .art-Sheet-body {
        padding: 8px !important;
        border-radius: 0;
    }

    div.art-Header,
    div.art-Header-jpeg {
        height: 104px !important;
    }

    .art-Logo {
        left: 14px !important;
        top: 14px !important;
        right: 78px;
    }

    h1.art-Logo-name,
    h1.art-Logo-name a,
    h1.art-Logo-name a:link,
    h1.art-Logo-name a:visited,
    h1.art-Logo-name a:hover {
        font-size: 18px !important;
    }

    .art-Logo-text,
    .art-Logo-text a {
        font-size: 13px !important;
    }

    .art-PostContent,
    .art-PostContent p,
    .art-PostContent li {
        font-size: 14px;
        line-height: 1.45;
    }
}
