:root
{
    /*** sizes ***/
    --vheaderHeight: 12vh;
    --vteaserHeight: 30vh;
    --contentWidth: 70vw;
    --headerHeight: 12vh;

    /*** colours ***/
    --ateahRed: rgb(177, 28, 2);

    /*** fonts ***/
    --indexHeaderFont: Arizonia, script;
}

#page
{
    background-image: url("images/bg2.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    background-attachment: fixed;

    padding-top: unset;
}

#headerWrapper
{
    width: var(--contentWidth);
    margin-inline: auto;
    position: relative;
}

#header
{
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: unset;
    position: fixed;
    background-color: #fff;
    width: var(--contentWidth);
    z-index: 200;
}

#logoWrapper .ce-row
{
    justify-content: flex-start;
}

#headerRight
{
    display: flex;
    flex-direction: column;
}

#logosWrapper
{
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

#teaserWrapper
{
    position: relative;
    display: grid;
    grid-template-columns: auto var(--contentWidth) auto;
    max-width: 99.9vw;
    margin-bottom: var(--headerHeight);
    overflow: clip;
    z-index: 1;
}

#teaser
{
    position: relative;
    grid-column: 2;
    max-height: 100%;
}

.teaserText a,
.teaserText a:hover
{
    color: inherit;
}

.teaserTextWrapper
{
    top: 40%;
    max-width: 100%;
}

.teaserImgInnerWrapper
{
    display: flex;
    align-items: center;
}

.teaserImgInnerWrapper > img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teaserImage,
#teaser div.teaserImg
{
    height: 100%;
}

.teaserTextWrapper
{
    top: 50%;
    width: 100%;
    height: 100%;
    padding-left: calc(var(--contentWidth) *0.65);
    background: linear-gradient(to right, var(--ateahRed) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: left center;

    animation: teaser-slide-in forwards ease-in-out;
    animation-delay: 0.5s;
    animation-duration: 0.5s;

    justify-content: unset;
}

.teaserText h1,
.teaserText
{
    color: #00000000;
    animation: teaser-slide-in-font ease-in forwards;
    animation-delay: 1s;
    animation-duration: 1s;
    background-color: #fff;
}
/*
.indexPage .teaserText h1
{
    font-family: var(--indexHeaderFont);
}
*/
@keyframes teaser-slide-in
{
    from
    {
        padding-left: calc(var(--contentWidth) *0.65);
        background-position: left center;
    }
    to
    {
        padding-left: 0;
        background-position: right center;
    }
}

@keyframes teaser-slide-in-font
{
    from
    {
        color: #00000000;
        background-color: #fff;
    }
    to
    {
        color: #ffffff;
        background-color: var(--ateahRed);
    }
}

.teaserText
{
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
    justify-content: center;
    height: 100%;
    width: calc(var(--contentWidth) *0.35);
    background-color: white;
    border-radius: unset;
}

#teaser div.teaserImg
{
    position: unset;
}

#centreAreaWrapper,
#leftRightElement
{
    width: var(--contentWidth);
    margin-inline: auto;
    padding: 2rem;
    background: linear-gradient(to right, rgb(255, 255, 255, 0.7), rgb(255, 255, 255, 1), rgb(255, 255, 255, 0.7));
}

#leftRightElement
{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

#page #leftRightWrapper
{
    padding-top: var(--headerHeight);
}

#page:has(#teaserWrapper) #leftRightWrapper
{
    padding-top: 0;
}

#rightContent
{
    padding: 1rem;
    background-color: rgb(255, 255, 255, 0.7);
    border-right: 5px solid var(--ateahRed);
}

#rightContent .ce-gallery figure.image
{
    display: unset;
}

.teaserEl
{
    height: calc(60vh - var(--headerHeight));
}

label.menuToggleWrapper
{
    display: none;
}

#footerWrapper
{
    background-color: unset;
    border-top: unset;
}

#footer
{
    max-width: var(--contentWidth);
    margin-inline: auto;
    background-color: var(--ateahRed);
}

#bottomMenuWrapper
{
    width: 100%;
}

#bottomMenu
{
    display: flex;
    justify-content: right;
    gap: 2rem;
    padding-inline: 2rem;
}

#teaserListWrapper
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

main#contentWrapper
{
    position: relative;
}

h2
{
    font-size: 2rem;
}

#contentWrapper:has(#detailView)
{
    padding-top: var(--headerHeight);
}

div.powermail_field
{
    display: flex;
    flex-direction: column;
}

.detailRow
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0.5rem;
    gap: 1rem;
    background-color: #cfcfcf;
}

.detailRow .detailColumn
{
    background-color: rgb(255, 255,255, 0.9);
}

.detailRow div
{
    padding: 0.5rem;
}

input[type="submit"]
{
    width: fit-content;
}

.frame-space-after-medium
{
    margin-bottom: 3rem;
}

.frame-space-after-large
{
    margin-bottom: 6rem;
}

.frame-layout-2 form.layout1
{
    display: unset;
}

figcaption.image-caption
{
    margin-block: 0.5rem;
}

.detailImage
{
    position: relative;
}

#detailTitleWrapper
{
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba( 120, 120, 120, 0.8 );
    color: #fff;
    padding: 0.5rem;
}

#detailTitleWrapper h1
{
    color: #000;
    margin-bottom: 0;
    font-size: 2rem;
}

#detailTitle
{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detailTitleLocation
{
    font-size: 1.5rem;
}

.detailImageWrapper
{
    margin-bottom: 1rem;
}

.detailImage img
{
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.detailPriceTitle,
.detailPrice,
.detailDescriptionTitle
{
    font-size: 1.25rem;
    font-weight: 600;
}

.detailDescriptionTitle
{
    margin-bottom: 1rem;
}

.detailPriceWrapper,
.detailDescriptionWrapper
{
    margin-block: 2rem;
}

.detailPriceWrapper
{
    display: flex;
    gap: 2rem;
}

#teaser .teaserImage .frame-default,
#teaser .teaserImage .ce-image,
#teaser .teaserImage .ce-gallery,
#teaser .teaserImage .ce-outer,
#teaser .teaserImage .ce-inner,
#teaser .teaserImage .ce-row,
#teaser .teaserImage .ce-column,
#teaser .teaserImage .image,
#teaser .teaserImage .image-embed-item
{
    width: 100%;
    height: 100%;
}

.image-slider {
    position: relative;
    max-width: 900px;           /* optional */
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.image-slider__viewport {
    overflow: hidden;
    flex: 1 1 auto;
}

.image-slider__track {
    display: flex;
    gap: 10px;                                /* ★ Gap zwischen Bildern */
    transition: transform 0.3s ease-in-out;
}

/*
   WICHTIG:
   3 Bilder → 3 Spalten
   2 Gaps → 2 × 10px
   Formel für jede Bildbreite:
   (100% - (Gap × (visible - 1))) / visible
*/

.image-slider__item {
    flex: 0 0 calc((100% - (10px * 2)) / 3);   /* ★ Gaps berücksichtigt */
    margin: 0;
}

.image-slider__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

.image-slider__button {
    flex: 0 0 auto;
    padding: 0.4rem 0.8rem;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.image-slider__button:disabled {
    opacity: 0.3;
    cursor: default;
}

/** listings list **/

.listingsTableWrapper
{

}

.listingsTable
{

}

.listingsElementWrapper
{
    margin-block: 1rem;
    border: 1px solid #000;
    border-radius: 1rem;
    background-color: #efefef;
    box-shadow: 0.5rem 0.5rem 0.5rem rgba(0, 0, 0, 0.3);
}

.listingsElement
{
    display: grid;
    grid-template-columns: 2fr 3fr 4fr;
}

.listingsImageWrapper
{

}

.listingsImage
{
    height: 100%;
}

.listingsImage img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem 0 0 1rem;
}

.listingsInformationWrapper
{

}

.listingsInformation
{
    margin: 1rem;
}

.listingsDescriptionWrapper
{
    border-right: 1px solid #000;
}

.listingsDescription,
.listingsData
{
    padding-inline: 1rem;
}

.listingsDataWrapper
{

}

.listingsData
{
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 2fr;
}

.listingsData div
{
    margin-bottom: 1rem;
}

.listingsData strong
{
    margin-right: 1rem;
}

.listingsDescriptionWrapper,
.listingsDataWrapper
{
    margin: 1rem;
}

@media (max-width: 480px) {
    .image-slider__button {
        font-size: 1.2rem;
        padding: 0.3rem 0.6rem;
    }
    .listingsData
    {
        display: block;
    }
}

@media (max-width: 940px)
{
    #leftRightElement
    {
        display: block;
    }
    #rightContent
    {
        display: flex;
        justify-content: space-around;
    }
    .listingsElement
    {
        display: block;
    }
    .listingsImage img
    {
        border-radius: 1rem 1rem 0 0;
    }
    .listingsDescriptionWrapper
    {
        border-right: unset;
    }
}






