/* Index */
.aak-content .aak-select {
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none; /* Firefox */
    appearance: none; /* fallback */

    background-image: url('data:image/svg+xml;utf8,<svg class="c-umbraco-svg c-umbraco-svg--colorize w-1em h-1em mt-.18em" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M218.3 413.7c3.1 3.1 8.2 3.1 11.3 0l216-216c3.1-3.1 3.1-8.2 0-11.3s-8.2-3.1-11.3 0L224 396.7 13.7 186.3c-3.1-3.1-8.2-3.1-11.3 0s-3.1 8.2 0 11.3l216 216z"></path></svg>');
    background-repeat: no-repeat;
    background-size: 0.8em auto;
    background-position: right 1rem center;
}

.aak-content .c-input-dropdown-option-list .c-base-scrollbar {
    max-height: 210px;
    overflow-y: scroll;
}

@media (min-width: 768px) {
    .aak-content .c-input-dropdown-option-list .c-base-scrollbar {
        max-height: 424px;
    }
}

.aak-content .c-block-list-structured-data,
.aak-content .c-block-list-structured-data .c-block-heading,
.aak-content .c-block-list-structured-data .c-block-list-structured-data__table {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.aak-content .c-block-list-structured-data__table {
    width: 100% !important;
    margin-left: 0 !important;
}

    .aak-content .c-block-list-structured-data__table .c-base-table__content:before,
    .aak-content .c-block-list-structured-data__table .c-base-table__content:after {
        display: none !important;
    }

    .aak-content .c-block-list-structured-data__table .c-base-scrollbar__horizontal {
        left: 0 !important;
        width: 100% !important;
    }

.aak-content .c-block-list-structured-data .c-base-table__table {
    transform: none !important;
}

.aak-content .c-structured-data__cell {
    max-width: 33vw;
    font-size: 18px;
}

.aak-content.aak-index
.c-structured-data__cell > div {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 480px) {
    .aak-content .c-structured-data__cell {
        padding: 12px;
    }
}
.aak-content .c-structured-data__cell p a, .aak-content .c-structured-data__cell {
    hyphens: auto;
}

/* typeahead */
.c-dropdown-option.highlighted-typeahead {
    background-color: #e3e3e8;
}

@media (max-width: 665px) {
    .aak-content .c-structured-data__cell {
        padding: 13px;
        font-size: 16px;
    }
}

.aak-content .c-structured-data__cell p a, .aak-content .c-structured-data__cell {
    hyphens: auto;
}


.aak-content.aak-index .contact-mobile {
    display: none;
}

@media (max-width: 768px) {
    .aak-content.aak-index .contact-mobile {
        display: block;
        font-weight: 600;
    }

    .aak-content.aak-index .c-structured-data,
    .aak-content.aak-index .c-structured-data tbody,
    .aak-content.aak-index .c-structured-data tr,
    .aak-content.aak-index .c-structured-data td,
    .aak-content.aak-index .c-structured-data th {
        display: block;
        width: 100%;
    }

    .aak-content.aak-index .c-structured-data__row:first-child {
        display: none !important;
    }

    .aak-content.aak-index .c-structured-data__row {
        background-color: #f1f1f6;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 1rem 1.25rem;
        margin-bottom: 1rem;
    }

    .aak-content.aak-index .c-structured-data__cell {
        border: none;
        padding: 0.25rem 0 0;
        line-height: 1.5;
        max-width: 100%;
    }

        /* Første celle (vandværksnavn) */
        .aak-content.aak-index .c-structured-data__cell:first-child {
            font-weight: 600;
            color: #111827;
            font-size: 1.20rem;
        }

            .aak-content.aak-index
            .c-structured-data__cell:first-child p {
                white-space: normal;
                overflow-wrap: break-word;
                word-break: break-word;
                hyphens: auto;
                max-width: 100%;
            }

        .aak-content.aak-index
        .c-structured-data__cell:first-child {
            max-width: 100%;
        }
}


/* VisCenter */
.aak-content .img-header {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.aak-content .img-card {
    flex: 1 1 calc(33.333% - 16px);
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 0.25rem;
}

.aak-content .img-institution {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@media (max-width: 768px) {
    .aak-content .img-header {
        flex-direction: column;
        gap: 12px;
    }

    .aak-content .img-card {
        flex: none;
        width: 100%;
        aspect-ratio: auto;
    }
}

/* kontakt gruppe accordion på mobil */
.c-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
}

.c-accordion-panel.open {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}

.c-base-accordion__icon {
    transition: transform 0.3s ease;
}

    .c-base-accordion__icon.rotate {
        transform: rotate(180deg);
    }

