.layout-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1em;
}

/* Basis-Styles für alle Container */
.layout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    /* Abstand zwischen den Elementen */
}

/* Generische Item-Klassen */
.layout-item {
    box-sizing: border-box;
    flex: 1;
    min-width: 220px;

}

/* Spezifische Breiten */
.layout-item[data-width="25"] {
    flex: 0 0 calc(25% - 2em);
}

.layout-item[data-width="33"] {
    flex: 0 0 calc(33.33% - 2em);
}

.layout-item[data-width="50"] {
    flex: 0 0 calc(50% - 2em);
}

/* Automatische Anpassung bei leeren Items */
.layout-item:empty {
    display: none;
}

/* Dynamische Anpassung der verbleibenden Items */
.layout-item:not(:empty) {
    flex-grow: 1;
}

.layout-item {
    /* Basis-Styling für den Container */

    box-sizing: border-box;

    /* Inhaltsbegrenzung */
    >* {
        max-width: 100%;
        height: auto;
        overflow: hidden;
    }

    /* Spezifische Elemente */
    img {
        max-width: 100%;
        height: auto;

    }

    iframe,
    video {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    /* Text-Overflow verhindern */
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .layout-item {
        flex: 0 0 100% !important;
    }
}


main#main-content.layout-container,
footer div#footertop.layout-container,
footer div#footermiddle.layout-container {
    padding-bottom: 1em;
}

.layout-container ul,
.layout-container ul.menu,
ul.menu {
    margin-left: 0em !important;
}

body[light-mode=dark],
body {
    background: transparent linear-gradient(180deg, #E8E8E8 0%, #FF85E8 56%, #FF85E8 100%) 0% 0% no-repeat padding-box;
    opacity: 1;
}

body[light-mode=light] {
    background: transparent;
    opacity: 1;
}


div.w3-bf-button button.light-mode-button {
    background: none;
    border: 0px;
    cursor: pointer;
    padding-right: 0px;
}

div.w3-bf-button button.light-mode-button span.on {
    display: block;
    width: 46px;
    height: 46px;
    background-size: auto;
    background-size: contain;
    background-image: url(../images/icons/barrierefreiheit_kontrast.svg);
}

div.w3-bf-button p {
    margin: 0;
}

div.layout-item div.region.region-lead {
    display: flex;
    justify-content: flex-end;
    gap: 1em;
    overflow: inherit;
}

div.layout-item div.region.region-lead #block-kunsthoch-barrierefreiheit,
div.layout-item div.region.region-lead #block-kunsthoch-textgrossenanderung {
    padding: 0px;
}

div.region.region-lead {
    border-bottom: 1px solid #000;
}

body.page-node-12 div.dialog-off-canvas-main-canvas div.layout-page main#main-content.layout-container aside.layout-sidebar-first.layout-item {
    flex: 0 0 calc(50% - 1rem);
}

body {
    font-family: "neue-haas-grotesk-display", sans-serif;
    line-height: 1.33;
}

h1.page-title,
h2 {
    font-size: 3.5em;
    font-weight: normal;
}

h3,
h4 {
    font-size: 1.75em;
    font-weight: normal;
    line-height: 1.33;
}

p {
    font-size: 1.15em;
    font-weight: normal;
    line-height: 1.33;
}

div#block-kunsthoch-site-branding {
    max-width: 360px;
}

div#block-kunsthoch-uberuns h2,
div#block-kunsthoch-page-title h1.page-title {
    margin-top: 0px;
}

div#block-kunsthoch-webformular input,
div#block-kunsthoch-webformular textarea {
    background: none;
    border: 1px solid black;
    color: black !important;
    font-size: 1.75em;
    padding: .25em;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

body.page-node-12 div#block-kunsthoch-page-title h1.page-title {
    margin-bottom: .75em;
}

.webform-submission-form ::placeholder {
    color: black;
    opacity: 1;

}

div#block-kunsthoch-webformular div#edit-actions input#edit-actions-submit {
    border: 1px solid #000000;
    border-radius: 34px;
    float: right;
    cursor: pointer;
    font-size: 1.15em;
    padding: .5em 3em;
    width: auto;
}

div#block-kunsthoch-webformular div#edit-actions input#edit-actions-submit:hover {
    background: black;
    color: white !important;
}

div#block-kunsthoch-textgrossenanderung div.content {
    display: flex;
}

a#text_resize_increase {
    background: none !important;
    text-indent: unset !important;
    font-size: 28px;
    width: auto;
    text-decoration: none;
    color: #000;
    flex-direction: row-reverse;
    display: inline-flex;
}

a#text_resize_increase sup {
    top: .7em;
    font-size: 1em;
    left: .3em;
}

a#text_resize_decrease sup {
    top: 0;
    left: -0.5em;
    font-size: 1.75em;
}

a#text_resize_reset {
    background: none !important;
    text-indent: unset !important;
    font-size: 22px;
    width: auto;
    text-decoration: none;
    color: #000;
    margin: 12px 6px 0 6px;
}

a#text_resize_decrease {
    background: none !important;
    text-indent: unset !important;
    font-size: 16px;
    width: auto;
    margin-top: 18px;
    text-decoration: none;
    color: #000;
}


#block-kunsthoch-textgrossenanderung {
    margin-right: 1em;
}

div a {
    color: black;
}

.button {
    border: 1px solid #000000;
    border-radius: 34px;
    float: right;
    cursor: pointer;
    padding: .5em 6em;
    width: auto;
    text-decoration: none;
}

.button:hover {
    background: #000;
    color: white;
}

div#block-kunsthoch-archivlink p,
div#block-kunsthoch-homelink p {
    margin: 0px;
}

.layout-page {
    position: relative;
    /* …Ihr übriges Styling… */
}

@media only screen and (min-width: 829px) {

    .page-node-12 .star-bg,
    .page-node-13 .star-bg {
        position: absolute;
        top: 80px;
        left: 30%;
        width: 260px;
        height: 260px;
        background: url(../images/icons/Stern.svg) no-repeat center/contain;
        transform-origin: center center;
        /* sorgt dafür, dass nur dieses Element hoverbar ist */
        pointer-events: auto;
        z-index: 1;
    }
}

@media only screen and (max-width: 828px) {

    .page-node-12 .star-bg,
    .page-node-13 .star-bg {
        position: absolute;
        top: 120px;
        left: 10%;
        width: 220px;
        height: 220px;
        background: url(../images/icons/Stern.svg) no-repeat center/contain;
        transform-origin: center center;
        pointer-events: auto;
        z-index: 1;
    }
}

@media only screen and (max-width: 600px) {

    .page-node-12 .star-bg,
    .page-node-13 .star-bg {
        position: absolute;
        top: 120px;
        left: 2%;
        width: 200px;
        height: 200px;
        background: url(../images/icons/Stern.svg) no-repeat center/contain;
        transform-origin: center center;
        pointer-events: auto;
        z-index: 1;
    }
}

.full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.border-top {
    border-top: 1px solid black;
    margin-top: 7em;
    margin-bottom: 6em;
}

.media--view-mode-_-2-large picture img {
    width: 100%;
}

.messages.messages--status {
    padding: 2em;
    font-size: 1.5em;
    text-align: center;
    background: black;
    color: white;
}

form#user-login-form input#edit-name,
form#user-login-form input#edit-pass {
    width: 100%;
    padding: 1em;
    background: transparent;
    border: 1px solid black;
    box-sizing: border-box;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.star-bg.pulsing {
    animation: pulse 1s infinite ease-in-out;
    will-change: transform;
}

div.blazy__caption h2.blazy__caption--title {
    margin: 0.5em 0;
    font-size: 1em;
}

div.blazy__caption p {
    margin: 0;
    font-size: 1em;
}

/*
.blazy--field-featured-image .prev,
.blazy--field-featured-image .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
}

.blazy--field-featured-image .prev {
    left: 0px;
}

.blazy--field-featured-image .next {
    right: 0px;
}

.blazy--field-featured-image .prev:hover,
.blazy--field-featured-image .next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}*/

.blazy--field-featured-image {
    position: relative;
}

.slideshow-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 10;
}

.slideshow-overlay.left {
    left: 0;
    cursor: w-resize;
}

.slideshow-overlay.right {
    right: 0;
    cursor: e-resize;
}