﻿/*Content*/
/*Rich text Component*/
.rte-component {
    max-width: 90vW;
    width: 100% !important;
}


.rte-markup-container img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

.hover-border {
    position: relative;
    transition: border 0.3s ease-in-out;
}

    /* Show border only when NOT in edit mode */
    .hover-border:not(.edit-mode):hover {
        border: 2px solid #007bff;
    }

.edit-button {
    position: absolute;
    top: -2px;
    left: -2px;
    z-index: 99;
}

.leave-button {
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 99;
}

/* Hide buttons by default */
.hover-button {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Show buttons on hover */
@media (hover: hover) {
    .hover-border:hover .hover-button {
        opacity: 1;
    }
}

/* Always show buttons on mobile */
/*@media (max-width: 1024px) {
    .hover-button {
        opacity: 1;
    }
}*/


/*picture Gallery Config*/


/*.gallery-grid-container {
    position: relative;
}

.gallery-grid-button {
    position: absolute;
    top: 3px;
    right: 3px;
}*/

.image-gallery-grid {
    max-width: calc(var(--admin-panel-width) - 4.5rem);
    max-height: 75px;
    display: block;
    margin: auto;
    object-fit: cover;
}

.description-gallery-grid {
    width: calc(var(--admin-panel-width) - 4.5rem);
    max-width: calc(var(--admin-panel-width) - 4.5rem);
    display: block;
    margin: auto;
}

/*.gallery-grid-column {
    width: calc(var(--admin-panel-width) - 4.5rem);
    max-width: calc(var(--admin-panel-width) - 4.5rem);
}*/




/*picture Gallery Content*/
.picture-gallery-container {
    margin: 0 auto;
    max-width: 90vW;
    width: 100%;
    /*height: 100%;*/
}

.carousel-image {
    display: block;
    margin: auto;
}

.carousel-icon {
    font-size: 3.5rem !important;
    font-weight: bold !important;
    color: #1a1a1a;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none !important;
}

    .carousel-icon:hover {
        color: #7a7a7a;
    }


.carousel-icon-round {
    font-size: 2.75rem !important;
    font-weight: bold;
    color: white !important;
    margin: auto !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
    border: none;
    border-radius: 100%;
    cursor: pointer;
    user-select: none !important;
    transition: background-color 0.3s ease;
}

    .carousel-icon-round:hover {
        background-color: rgba(0, 0, 0, 0.2) !important;
    }

.carousel .e-carousel-indicators .e-indicator-bars .e-indicator-bar .indicator {
    background-color: #ECECEC;
    border-radius: 0.25rem;
    cursor: pointer;
    height: 3.5rem;
    margin: 0.5rem;
    width: 5rem;
}

.carousel .e-carousel-indicators .e-indicator-bars .e-indicator-bar.e-active .indicator {
    border: solid 2px Black;
}

.e-carousel .e-carousel-indicators {
    bottom: auto !important;
    position: relative !important;
}

.picture-grid-container {
    display: flex;
    flex-wrap: wrap;
    /*gap: 0.8rem;*/
    width: 100%;
    justify-content: flex-start;
}



.picture-card {
    display: flex;
    flex-direction: column;
    display: block;
    height: fit-content !important;
    margin: 0 auto
}


/*TextAndMedia*/
.text-media-container {
    display: flex;
    gap: 2rem !important;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.text-right {
    flex-direction: row;
}

.text-left {
    flex-direction: row-reverse;
}

.text-above {
    flex-direction: column-reverse;
}

.text-below {
    flex-direction: column;
}


.media-container.text-right,
.media-container.text-left {
    flex: 1 1 50%;
}

.media-container.text-right {
    margin: auto 1rem auto auto !important;
}

.media-container.text-left {
    margin: auto auto auto 1rem !important;
}

.media-container.text-above,
.media-container.text-below {
    flex: 1 1 50%;
    margin: auto;
}

.text-container.text-right,
.text-container.text-left {
    flex: 1 1 50%;
    overflow: auto;
}

.text-container.text-right {
    margin: auto auto auto 2rem !important;
}

.text-container.text-left {
    margin: auto 1rem auto auto !important;
}


.text-container.text-above,
.text-container.text-below {
    flex: 1 1 100%;
    margin: auto auto auto 0;
    align-self: flex-start !important;
}




.text-container.text-right,
.text-container.text-left {
    max-width: 50vW;
}

.text-container.text-above,
.text-container.text-below {
    max-width: 100% !important;
    width: 100% !important;
}

.text-media-button {
    width: fit-content;
    margin: 1rem auto 0rem auto !important;
    min-width: 150px;
}


.text-overlay {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: fit-content;
    overflow: hidden;
}

    /* Ensure media fills the background */
    .text-overlay .media-container {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .text-overlay .text-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /*text-align: center;*/
        z-index: 2;
        /*margin: 1rem auto !important;*/
    }

        .text-overlay .text-container .text-component-text *,
        .text-overlay .text-container .text-component-title *,
        .text-overlay .text-container .text-component-title-h2 *,
        .text-overlay .text-container .text-component-subtitle * {
            color: white !important;
            text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black !important;
        }

    /* Optional: Ensure media is below text */
    .text-overlay .text-media-image,
    .text-overlay .text-media-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        z-index: 1;
    }

@media (max-width: 768px) {
    .text-media-container.text-right {
        flex-direction: column;
    }

    .text-media-container.text-left {
        flex-direction: column;
    }

    .media-container.text-left,
    .media-container.text-right,
    .text-container.text-left,
    .text-container.text-right {
        margin: 1rem !important;
        flex: 1 1 100%;
        width: 100%;
    }

    .text-container.text-right,    
    .text-container.text-left
    {
        max-width: 100% !important;
    }
}


/*Contact Styles*/
.contact-container {
    margin: auto !important;
}

.contact-container-info {
    max-width: 40rem;
}

.contact-container-send {
    max-width: 64.7rem;
}



/*ContactInfoStyles*/
.contactinfo-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.contactinfo-block {
    display: flex;
    flex-direction: column;
    flex: 1 1 15rem;
    max-width: 22rem;
    align-items: center;
    text-align: center;
}

.contactinfo-block-headline {
    font-size: var(--design-font-size);
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align: center;
}

.contactinfo-block-item {
    font-size: var(--design-font-size);
    text-align: center;
}

    .contactinfo-block-item a {
        all: unset;
        cursor: pointer;
        text-decoration: none;
        text-decoration: underline;
    }

.contactinfo-block-social-media-links {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

    .contactinfo-block-social-media-links a {
        all: unset;
        cursor: pointer;
    }

.contactinfo-icon {
    margin: 1rem auto 1rem auto !important;
    display: block !important;
    font-size: calc(var(--design-font-size) + 1.2rem) !important;
    font-weight: bold;
}

/*AccordionComponent*/
.accordion-container {
    display: flex;
    gap: 2rem !important;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

    .accordion-container.accordion-text-above,
    .accordion-container.accordion-text-left {
        align-items: stretch; 
        text-align: left; 
    }

.accordion-text-left {
    flex-direction: row-reverse;
}

.accordion-text-above {
    flex-direction: column-reverse;
}

.accordion-accordion-container.accordion-text-left {
    flex: 1 1 50%;
    /*margin: auto auto auto 1rem !important;*/
    margin: auto;
}

.accordion-accordion-container.accordion-text-above {
    flex: 1 1 100%;
    margin: auto;
}


.accordion-text-container.accordion-text-left {
    flex: 1 1 50%;
    overflow: auto;
    /*margin: auto 1rem auto auto !important;*/
    margin: auto;
}

.accordion-text-container.accordion-text-above {
    flex: 1 1 100%;
    margin: auto auto auto 0;
    align-self: flex-start !important;
}

.accordion-text-container.accordion-text-left
 {
    max-width: 50vW;
}

.accordion-text-container.accordion-text-above,
.accordion-accordion-container.accordion-text-above {
    width: 100%;
}

@media (max-width: 1024px) {
    .accordion-text-left {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .accordion-accordion-container.accordion-text-left {
        margin: auto !important;
        flex: 1 1 100%;
    }

    .accordion-text-container.accordion-text-left {
        flex: 1 1 100%;
        margin: auto auto auto 0;
        align-self: flex-start !important;
    }

        .accordion-text-container.accordion-text-left,
        .accordion-accordion-container.accordion-text-left {
            width: 100% !important;
        }

    .accordion-text-container.accordion-text-left,
    .accordion-accordion-container.accordion-text-left {
        max-width: 100% !important;
    }
}


.accordion-accordion-container,
.rz-accordion {
    border-radius: 0.3rem;
    --rz-accordion-toggle-icon-order: 1;
    --rz-accordion-item-border: var(--rz-border-base-200);
    /*border: 2px solid var(--design-color-navigation-background);*/
}

.rz-accordion-toggle-icon.rzi-chevron-right:before {
    content: "keyboard_arrow_down" !important;
}

.rz-accordion-toggle-icon.rzi-chevron-down:before {
    content: "keyboard_arrow_up" !important;
}

.rz-accordion .rz-accordion-header > a {
    background-color: var(--design-color-navigation-background) !important;
    color: var(--design-color-navigation-font) !important;
}

    .rz-accordion .rz-accordion-header > a span {
        font-size: calc(var(--design-font-size) + 0.1rem) !important;
        font-weight: bold;
    }

.accordion-header {
    padding: 0.8rem !important;
    background-color: var(--design-color-navigation-background) !important;
    color: var(--design-color-navigation-font) !important;
    border-bottom: 1px solid var(--design-color-navigation-font);
    border-left: 2px solid var(--design-color-navigation-background);
    border-right: 2px solid var(--design-color-navigation-background);
}

.rz-accordion-content {
    background-color: var(--design-color-content-background) !important;
    border-left: 2px solid var(--design-color-navigation-background);
    border-right: 2px solid var(--design-color-navigation-background);
}

.rz-accordion > div:last-child {
    border-bottom: 2px solid var(--design-color-navigation-background) !important;
}

.accordion-header :hover {
    background-color: var(--design-color-navigation-background) !important;
    color: var(--design-color-navigation-font) !important;
}

.accordion-child {
    padding: 0.5rem !important;
    background-color: var(--design-color-content-background) !important;
    color: var(--design-color-content-font) !important;
    font-size: calc(var(--design-font-size) + 0.1rem) !important;
}

.rz-panel-menu {
    background-color: var(--design-color-navigation-background) !important;
}

.rz-data-grid-full-width {
    width: 100%;
}

.rz-fieldset-legend-text {
    font-weight: bold;
}


/* Container for everything */
.article-container {
    /*padding: 2rem;    
    margin: 0 auto;*/
}

/* Grid container for article items */
.article-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    box-sizing: border-box;
    /*padding: 1rem;*/
}

/* Each article card */
.article-item-container {
    flex: 1 1 250px;
    max-width: 380px;
    min-width: 250px;
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .article-item-container:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

/* Image styling */

.article-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.article-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.article-item-placeholder {
    width: 100% !important;
    height: 200px !important;
    display: block;
}

.article-badge-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 1;
    flex-direction: column;
    justify-content: flex-end;
}

.article-badge {
    padding: 0.2rem 0.8rem;
    background-color: var(--design-color-navigation-background) !important;
    color: var(--design-color-navigation-font) !important;
    border-radius: 0.3rem;
    font-size: calc(var(--design-font-size) - 0rem) !important;
    width: fit-content !important;
}

/* Title and text */
.article-item-title {
    font-size: calc(var(--design-font-size)) !important;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.article-item-overview-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-size: calc(var(--design-font-size) - 0.1rem) !important;
    background-color: transparent !important;
    background: transparent !important;
    margin: 0.2rem auto 0.2rem auto;
}

/* Article view (when one is selected) */
.article {
   
}
    
    .article > .rz-button {
        margin-bottom: 1rem;
    }

.article-image {
    max-width: 100%;
    max-height: 20vH;
    object-fit: contain;
}

.article-readmore-link {
    display: inline-block;
    margin-top: 0.5rem;
    text-decoration: none;
    font-weight: 500;
}

    .article-readmore-link:hover {
        text-decoration: underline;
        cursor: pointer;
    }

.article-button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.article-button {
    flex: 0 0 auto;
    min-width: 150px;
}

/* Table*/
.custom-table-container {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .custom-table.round {
        border-radius: 0.8rem;
        overflow: hidden;
    }

.custom-table-head {
    background-color: var(--design-color-navigation-background) !important;
    color: var(--design-color-navigation-font) !important;
}

.custom-table-header {
    padding: 0.8rem;
    text-align: left;
    background-color: var(--design-color-navigation-background) !important;
    color: var(--design-color-navigation-font) !important;
    font-weight: bold;
}

.custom-table-cell {
    padding: 0.8rem;
}

/* No gridlines */
.gridlines-none td,
.gridlines-none th,
.gridlines-none tr {
    border: none !important;
}

/* Vertical lines */
.gridlines-vertical td {
    border-right: 1px solid #ccc;
    border-top: none;
    border-bottom: none;
}

    .gridlines-vertical td:last-child {
        border-right: none !important;
    }

/* Horizontal lines */
.gridlines-horizontal td {
    border-bottom: 1px solid #ccc;
}

    .gridlines-horizontal td:first-child {
        border-left: none;
    }

    .gridlines-horizontal td:last-child {
        border-right: none;
    }

.gridlines-horizontal tr:last-child td {
    border-bottom: none !important;
}


/* Both vertical and horizontal */
.gridlines-both td {
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

    .gridlines-both td:first-child {
        border-left: none;
    }

    .gridlines-both td:last-child {
        border-right: none;
    }

.gridlines-both tr:last-child td {
    border-bottom: none !important;
}

/* Optional: remove double borders */
.custom-table th,
.custom-table td {
    box-sizing: border-box !important;
}

.alternating-rows tbody tr:nth-child(even) {
    background-color: var(--design-color-content-alternating-background);
}

.alternating-rows tbody tr:nth-child(odd) {
    background-color: var(--design-color-content-background);
}


.custom-table-border {
    border: 2px solid var(--design-color-navigation-background);
}

.custom-table:not(.custom-table-border) {
    border: none;
}

.custom-table.gridlines-vertical:not(.custom-table-border),
.custom-table.gridlines-horizontal:not(.custom-table-border),
.custom-table.gridlines-both:not(.custom-table-border) {
    border: 1px solid #ccc !important;
}

.table-cell-text * {
    margin: 0 !important;
}

.table-cell-button-header :is(a.button) {
    background-color: var(--design-color-navigation-font);
    color: var(--design-color-navigation-background);
}

.table-cell-button {
    width: fit-content;
    min-width: 8rem !important;
    max-width: 100% !important;
}

.align-left {
    margin-right: auto !important;
}

.align-right {
    margin-left: auto !important;
}

.align-center {
    margin-left: auto !important;
    margin-right: auto !important;
}

/*Cards*/
.cards-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    padding: 2rem;
}

.cards-item-container {
    position: relative;
    background-color: var(--design-color-content-background);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
    max-width: 300px;
    min-width: 250px;
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1rem 1.5rem;
}

    .cards-item-container.big-card {
        transform: scale(1.06);
        box-shadow: inset 0 0 0 2px var(--card-color);
    }

    .cards-item-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 50px;
        height: 50px;
        background: var(--card-color);
        clip-path: polygon(0 0, 100% 0, 0 100%);
    }

.card-content {
    flex-grow: 1;
}

.card-item-header {
    font-size: calc(var(--design-font-size) + 0.5rem) !important;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--design-color-content-font);
}

.card-item-price {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: var(--card-color);
    color: var(--design-color-content-background);
    font-size: calc(var(--design-font-size) + 0.5rem) !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 0.5rem;
    box-sizing: border-box;
}

    .card-item-price .price-detail {
        font-size: calc(var(--design-font-size) - 0.2rem) !important;
        font-weight: normal;
        margin-top: 0.25rem;
        opacity: 0.85;
    }

.card-item-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.card-details-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

    .card-details-wrapper.center {
        align-items: center;
    }

    .card-details-wrapper.start {
        align-items: flex-start;
    }

.card-item-detail {
    display: flex;
    align-items: center; /* vertical alignment within a row */
    gap: 0.5rem;
    font-size: calc(var(--design-font-size) - 0.05rem) !important;
    margin: 0.4rem 0;
    color: var(--design-color-content-font);
}

    .card-item-detail .icon {
        font-weight: bold;
        font-size: calc(var(--design-font-size) + 0.3rem) !important;
        /*width: 1.5rem;*/ /* fixed width */
        text-align: center; /* keep icons centered inside their box */
    }

    .card-item-detail .text {
        flex-grow: 1;
        text-align: left;
    }

.card-button {
    margin-top: 1.5rem !important;
}

    .card-button button,
    .card-button .button {
        background-color: var(--card-color);
        border: none;
        color: var(--design-color-content-background);
        padding: 0.5rem 1.2rem;
        font-weight: 600;
        transition: background-color 0.3s ease;
    }

        .card-button button:hover {
            opacity: 0.9;
        }

/*Media*/
.media-component-image,
.media-component-video {
    width: var(--media-width, 100%);
    min-width: 250px;
    max-width: 100% !important;
    height: auto !important;
    max-height: var(--media-max-height, 100vH);
    /*max-width: var(--media-max-width, 100%);*/
    /*height: var(--media-height, auto);
    min-height: var(--media-min-height, 10vH);
    */
    display: block;
}

/*Text*/
.text-component-text-items-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}


    .text-component-text-items-container.allow-expand {
        justify-content: center;
    }


    .text-component-text-items-container.no-expand {
        justify-content: space-evenly;
    }

    /* These control the expand behavior */
    .text-component-text-items-container.allow-expand .text-component-text-item {
        flex: 1 1 350px;
    }

    .text-component-text-items-container.no-expand .text-component-text-item {
        flex: 0 1 350px;
    }

.text-component-text-item {
    box-sizing: border-box;
    min-width: 250px;
    max-width: 100%;
    width: 100%;
}

/*TextItem*/
.text-component-title,
.text-component-title *,
.text-component-title-h2,
.text-component-title-h2 * {
    font-size: calc(var(--design-font-size) + 0.5rem) !important;
    font-weight: bold;
    margin-bottom: 0rem;
}

    .text-component-title-h2,
    .text-component-title-h2 * {
        margin-top: 0.2rem !important;
    }

.text-component-subtitle,
.text-component-subtitle * {
    font-size: calc(var(--design-font-size) - 0.1rem) !important;
    opacity: 0.8;
    line-height: calc(var(--design-font-size) - 0.1rem) !important;
    margin: 0 0 0.8rem 0 !important;
}

.text-component-subtitle-div-h1 {
    height: 0.5rem;
}

.text-component-subtitle-div-h2 {
    height: 0.1rem;
}

.text-component-text,
.text-component-text * {
    white-space: normal;
    font-size: calc(var(--design-font-size) + 0.1rem) !important;
    margin: 0.2rem 0 !important;
}

    .text-component-title,
    .text-component-title *,
    text-component-title-h2,
    .text-component-title-h2 *,
    .text-component-subtitle,
    .text-component-subtitle *,
    .text-component-text,
    .text-component-text * {
        white-space: normal;
        background-color: transparent !important;
        background: transparent !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }