.theme-theme-markttreiben .theme-header {
    padding-block: 1rem;
}
.theme-theme-markttreiben .theme-brand > span {
    font-size: clamp(1rem, 2.5vw, 1.65rem);
}
.theme-theme-markttreiben .markt-start-kurztext > :first-child {
    margin-block-start: 0;
}
.theme-theme-markttreiben .markt-start-kurztext > :last-child {
    margin-block-end: 0;
}
.theme-theme-markttreiben .markt-start-kurztext > p + p {
    margin-block-start: .75em;
}
.theme-theme-markttreiben #theme-content > h1,
.theme-theme-markttreiben #theme-content .theme-fair-hero h1 {
    max-inline-size: none;
}
.theme-theme-markttreiben .theme-fair-hero h1 {
    font-size: clamp(1.75rem, 4vw, 3.1rem);
    line-height: 1.12;
    text-wrap: balance;
    overflow-wrap: normal;
}
.theme-theme-markttreiben .theme-fair-hero {
    align-items: center;
}
@media (min-width: 721px) {
    .theme-theme-markttreiben .theme-fair-home .theme-fair-hero:has(> .theme-group-image) {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
    .theme-theme-markttreiben #theme-content .theme-fair-hero:has(> .theme-group-image) h1 {
        font-size: clamp(1.375rem, 3vw, 2.4rem);
    }
}
.theme-theme-markttreiben .theme-fair-home .theme-fair-hero .theme-group-image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.theme-theme-markttreiben .theme-navigation[hidden],
.theme-theme-markttreiben .markt-menu-toggle[hidden] {
    display: none;
}
.markt-menu-toggle {
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    border-radius: .35rem;
    padding: .5rem .75rem;
    font: inherit;
    cursor: pointer;
}
.theme-theme-markttreiben .theme-navigation a:focus-visible,
.markt-menu-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: .18em;
}
@media (min-width: 761px) {
    .theme-theme-markttreiben .theme-navigation > ul {
        gap: .25rem 1.1rem;
    }
    .theme-theme-markttreiben .theme-navigation > ul > li {
        position: relative;
        padding-block: .35rem;
    }
    .theme-theme-markttreiben .theme-navigation > ul > li > ul {
        display: none;
        position: absolute;
        z-index: 4;
        top: 100%;
        left: -.65rem;
        width: max-content;
        min-width: 12rem;
        max-width: 20rem;
        margin: 0;
        padding: .65rem .9rem;
        border: 1px solid #cebfae;
        border-radius: .35rem;
        background: #f6efe4;
        box-shadow: 0 .3rem 1rem #35231322;
    }
    .theme-theme-markttreiben .theme-navigation > ul > li:hover > ul,
    .theme-theme-markttreiben .theme-navigation > ul > li:focus-within > ul {
        display: block;
    }
}
@media (max-width: 760px) {
    .theme-theme-markttreiben .theme-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: .5rem;
    }
    .theme-theme-markttreiben .theme-brand {
        max-width: 75%;
    }
    .theme-theme-markttreiben .theme-navigation {
        width: 100%;
    }
    .theme-theme-markttreiben .theme-navigation > ul {
        display: block;
    }
    .theme-theme-markttreiben .theme-navigation li {
        padding-block: .25rem;
    }
    .theme-theme-markttreiben .theme-fair-hero {
        gap: 1rem;
    }
    .theme-theme-markttreiben #theme-content > h1,
    .theme-theme-markttreiben #theme-content .theme-fair-hero h1 {
        font-size: clamp(1.125rem, 5.55vw, 2rem);
    }
}

.theme-theme-markttreiben .theme-fair-home #theme-fair-sections > .theme-article:has(img[alt="Logo Markt der Vielfalt"]) {
    width: min(100%, 64rem);
    text-align: start;
    background: var(--fair-surface, #fffaf1);
    border: 1px solid var(--fair-line, #d6c7b2);
    border-radius: .55rem;
}

.theme-theme-markttreiben .theme-article-body:has(img[alt="Logo Markt der Vielfalt"]) {
    text-align: start;
}

.theme-article-body:has(img[alt="Logo Markt der Vielfalt"]) > div:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem clamp(1rem, 3vw, 2rem);
}

.theme-article-body:has(img[alt="Logo Markt der Vielfalt"]) > div > p {
    margin-block: 0;
}

.theme-article-body img[alt="Logo Markt der Vielfalt"] {
    display: block;
    width: clamp(7.5rem, 15vw, 10rem);
    height: auto;
}

.theme-article-body:has(img[alt="Logo Markt der Vielfalt"]) > h3 {
    margin-block: 1.65rem .6rem;
    font-size: clamp(1.12rem, 2.3vw, 1.32rem);
}

.theme-article-body:has(img[alt="Logo Markt der Vielfalt"]) > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: .4rem;
    margin-block: .65rem 1rem;
    padding-inline-start: 1.2rem;
}

.theme-article-body:has(img[alt="Logo Markt der Vielfalt"]) > div:last-child {
    margin-block-start: 1.6rem;
    padding: .8rem 1rem;
    background: var(--theme-paper, #f6efe4);
    border-inline-start: 2px solid var(--fair-line, #d6c7b2);
    font-size: .92rem;
}

.theme-article-body:has(img[alt="Logo Markt der Vielfalt"]) > div:last-child h3 {
    margin-block: 0 .3rem;
    font: 600 1rem/1.4 var(--theme-body-font, system-ui);
}

@media (max-width: 560px) {
    .theme-article-body:has(img[alt="Logo Markt der Vielfalt"]) > div:first-child,
    .theme-article-body:has(img[alt="Logo Markt der Vielfalt"]) > ul {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Long text and forms use the content column, even if the theme uses card columns. */
.theme-theme-markttreiben .theme-fair-secondary #theme-fair-sections,
.theme-theme-markttreiben.theme-columns-three .theme-fair-secondary #theme-fair-sections {
    grid-template-columns: minmax(0, 1fr);
}
.theme-theme-markttreiben .theme-fair-secondary #theme-fair-sections > .theme-article,
.theme-theme-markttreiben main > .theme-article {
    min-inline-size: 0;
}
.theme-theme-markttreiben .theme-fair-secondary .theme-fair-hero:not(:has(> .theme-group-image)) {
    margin-block-end: clamp(1rem, 2.5vw, 2rem);
}
.theme-theme-markttreiben :is(.theme-fair-secondary, main:not(.theme-fair-home)) .theme-article-body > :is(p, ul, ol, blockquote) {
    max-inline-size: 92ch;
}
.theme-theme-markttreiben .theme-fair-secondary #theme-fair-sections > .theme-article > .theme-fair-card-content {
    padding: clamp(.9rem, 2vw, 1.65rem);
}

.theme-theme-markttreiben .dynpg-form__choices > .dynpg-form__choice:has(> input:is([type="radio"], [type="checkbox"])) {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding-block: max(.24rem, calc((44px - 1lh) / 2));
}
.theme-theme-markttreiben .dynpg-form__choice > input:is([type="radio"], [type="checkbox"]) {
    inline-size: 1rem;
    block-size: 1rem;
    min-block-size: 0;
    flex: 0 0 1rem;
    margin: max(0px, calc((1lh - 1rem) / 2)) 0 0;
}
.theme-theme-markttreiben .markt-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-block-size: 2.75rem;
}
.theme-theme-markttreiben .markt-pdf-symbol {
    flex: none;
    padding: .12rem .37rem;
    border: 1px solid currentColor;
    border-radius: .25rem;
    color: var(--theme-accent, #742c20);
    font-size: .77rem;
    font-weight: 700;
    line-height: 1.4;
}
.theme-theme-markttreiben .dynpg-form__choices:has(> label > input[type="radio"]) > .dynpg-form__help {
    margin-block-start: 1rem;
}

#theme-content .dynpg-finite-gallery .DynPG_Gallery_Preview {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
    gap: .5rem;
}
#theme-content .dynpg-finite-gallery .DynPG_Gallery_Preview > figure {
    padding: 0;
}
#theme-content .dynpg-finite-gallery .DynPG_Gallery_Preview a {
    display: block;
}
#theme-content .dynpg-finite-gallery .DynPG_Gallery_Images_small {
    display: block;
    inline-size: 100%;
    max-inline-size: none;
    block-size: auto;
    max-block-size: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: .2rem;
}
#theme-content .dynpg-finite-gallery .DynPG_Gallery_Desc_small:empty,
#theme-content .dynpg-finite-gallery .DynPG_Gallery_Navigation:not(:has(a)) {
    display: none;
}
#theme-content .dynpg-finite-gallery .DynPG_Gallery_Navigation {
    margin-block: .7rem 0;
}
#theme-content .dynpg-finite-gallery .DynPG_Gallery_Navigation a + a {
    margin-inline-start: 1rem;
}

@media (min-width: 721px) {
    .theme-theme-markttreiben.theme-columns-three .theme-fair-secondary.markt-gallery-overview #theme-fair-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .theme-theme-markttreiben .markt-gallery-overview #theme-fair-sections > .theme-article:has(.DynPG_Gallery_Preview) {
        grid-column: auto;
    }
}
#theme-content.markt-gallery-overview .theme-article:has(.DynPG_Gallery_Preview) :is(.site-article-lead-image, .theme-fair-card-image),
#theme-content.markt-gallery-overview .dynpg-finite-gallery .DynPG_Gallery_Preview > :nth-child(n + 5),
#theme-content.markt-gallery-overview .dynpg-finite-gallery.markt-gallery-has-album-link .DynPG_Gallery_Navigation {
    display: none;
}
#theme-content.markt-gallery-overview .dynpg-finite-gallery .DynPG_Gallery_Preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
#theme-content .dynpg-finite-gallery > [hidden] {
    display: none;
}

html:has(.markt-photo-viewer[open]) {
    overflow: hidden;
}
.markt-photo-viewer {
    box-sizing: border-box;
    inline-size: min(96vw, 78rem);
    max-inline-size: none;
    max-block-size: 96dvh;
    padding: 0;
    border: 1px solid #ffffff40;
    border-radius: .55rem;
    background: #211b17;
    color: #fff8ef;
}
.markt-photo-viewer[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}
.markt-photo-viewer::backdrop {
    background: rgb(18 14 12 / 87%);
}
.markt-photo-viewer__bar,
.markt-photo-viewer__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .55rem .75rem;
}
.markt-photo-viewer__bar strong,
.markt-photo-viewer__caption {
    overflow-wrap: anywhere;
}
.markt-photo-viewer__strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding-inline: .35rem;
    gap: .35rem;
}
.markt-photo-viewer__image-area {
    display: grid;
    place-items: center;
    min-inline-size: 0;
    min-block-size: 0;
    block-size: min(76dvh, 52rem);
    background: #17120f;
    touch-action: pan-y pinch-zoom;
    user-select: none;
}
.markt-photo-viewer__image-area img {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    min-block-size: 0;
    object-fit: contain;
}
.markt-photo-viewer__image-area img[hidden] {
    display: none;
}
.markt-photo-viewer__image-area [role="status"],
.markt-photo-viewer__image-area img {
    grid-area: 1 / 1;
}
.markt-photo-viewer__image-area [role="status"]:not(:empty) {
    padding: .5rem;
    background: #211b17;
}
.markt-photo-viewer__footer {
    flex-wrap: wrap;
    font-size: .9rem;
}
.markt-photo-viewer__footer span:first-child {
    white-space: nowrap;
}
.markt-photo-viewer button {
    display: grid;
    place-items: center;
    min-inline-size: 2.75rem;
    min-block-size: 2.75rem;
    padding: 0;
    font: 1.5rem/1 system-ui, sans-serif;
    color: inherit;
    background: #392d24;
    border: 1px solid #ffffff45;
    border-radius: .3rem;
    cursor: pointer;
}
.markt-photo-viewer button:hover:not(:disabled) {
    background: #5a4233;
}
.markt-photo-viewer button:disabled {
    opacity: .4;
    cursor: default;
}
.markt-photo-viewer :is(button, a):focus-visible {
    outline: 2px solid #fff8ef;
    outline-offset: 2px;
}
.markt-photo-viewer a {
    color: inherit;
}

@media (max-width: 560px) {
    #theme-content .dynpg-finite-gallery .DynPG_Gallery_Preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .markt-photo-viewer__strip {
        position: relative;
        grid-template-columns: minmax(0, 1fr);
        padding-inline: 0;
    }
    .markt-photo-viewer__image-area {
        block-size: 70dvh;
    }
    .markt-photo-viewer__strip button {
        position: absolute;
        z-index: 1;
        inset-block-start: 50%;
        transform: translateY(-50%);
        background: #211b17e6;
    }
    .markt-photo-viewer__strip [data-previous] { inset-inline-start: .3rem; }
    .markt-photo-viewer__strip [data-next] { inset-inline-end: .3rem; }
}

.theme-theme-markttreiben .markt-attraktionen-einleitung {
    margin-block: 0 1.25rem;
}
.theme-theme-markttreiben .markt-attraktionen {
    display: grid;
    gap: clamp(.8rem, 2vw, 1.5rem);
}
.theme-theme-markttreiben .markt-attraktionen:has(details[open]) {
    align-items: start;
}
.theme-theme-markttreiben .theme-fair-secondary #theme-fair-sections.markt-attraktionen > .markt-attraktion {
    display: flex;
    flex-direction: column;
    grid-column: auto;
    min-inline-size: 0;
    border: 1px solid var(--fair-line, #d6c7b2);
    border-radius: .45rem;
    background: var(--fair-surface, #fffaf1);
}
.theme-theme-markttreiben .markt-attraktion-vorschaubild {
    display: block;
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: 16 / 9;
    max-block-size: 13rem;
    object-fit: cover;
    border-start-start-radius: inherit;
    border-start-end-radius: inherit;
}
.theme-theme-markttreiben .markt-attraktion-inhalt {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .65rem;
    padding: .85rem 1rem 1rem;
}
.theme-theme-markttreiben #theme-fair-sections .markt-attraktion h2 {
    margin: 0;
    font-size: clamp(1.15rem, 1.65vw, 1.42rem);
    line-height: 1.3;
}
.theme-theme-markttreiben .markt-attraktion-kurztext > p {
    margin: 0;
}
.theme-theme-markttreiben .markt-attraktion-kurztext > p + p {
    margin-block-start: .5rem;
}
.theme-theme-markttreiben .markt-attraktion-details {
    margin-block-start: auto;
}
.theme-theme-markttreiben .markt-attraktion-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-block-size: 2.75rem;
    padding: .45rem .65rem;
    border: 1px solid var(--fair-line, #d6c7b2);
    border-radius: .3rem;
    background: var(--theme-paper, #f6efe4);
    color: var(--theme-accent, #742c20);
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}
.theme-theme-markttreiben .markt-attraktion-details summary::-webkit-details-marker {
    display: none;
}
.theme-theme-markttreiben .markt-attraktion-details summary::after {
    content: '';
    inline-size: 1rem;
    block-size: 1rem;
    background: linear-gradient(currentColor, currentColor) center / .75rem 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px .75rem no-repeat;
}
.theme-theme-markttreiben .markt-attraktion-details[open] summary::after {
    background-size: .75rem 2px, 0 0;
}
.theme-theme-markttreiben .markt-attraktion-details:not([open]) .markt-attraktion-schliessen,
.theme-theme-markttreiben .markt-attraktion-details[open] .markt-attraktion-oeffnen {
    display: none;
}
.theme-theme-markttreiben .markt-attraktion-details .theme-article-body {
    margin-block-start: .85rem;
    overflow-wrap: anywhere;
}
.theme-theme-markttreiben .markt-attraktion-details .theme-article-body :is(img, video) {
    max-inline-size: 100%;
    block-size: auto;
}

@media (min-width: 38rem) {
    .theme-theme-markttreiben.theme-columns-three .theme-fair-secondary #theme-fair-sections.markt-attraktionen {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 62rem) {
    .theme-theme-markttreiben.theme-columns-three .theme-fair-secondary #theme-fair-sections.markt-attraktionen {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.theme-theme-markttreiben .markt-alben-link {
    margin-block: 1.5rem 0;
}
.theme-theme-markttreiben .markt-alben-link a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-block-size: 2.75rem;
    padding: .45rem 1rem;
    border-radius: .4rem;
    background: var(--theme-accent, #742c20);
    color: var(--fair-on-accent, #fff);
    font-weight: 600;
    text-decoration: none;
}
.theme-theme-markttreiben .markt-alben-link a:hover {
    text-decoration: underline;
}
.theme-theme-markttreiben .markt-alben-einleitung {
    max-inline-size: 75ch;
    margin-block-end: 1.5rem;
}
.theme-theme-markttreiben :is(.theme-fair-secondary, main) #theme-fair-sections.markt-alben {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem 1rem;
}
.theme-theme-markttreiben :is(.theme-fair-secondary, main) #theme-fair-sections.markt-alben > .markt-album {
    grid-column: auto;
}
.theme-theme-markttreiben .markt-album {
    background: var(--fair-surface, #fffaf1);
    border: 1px solid var(--fair-line, #d6c7b2);
    border-radius: .4rem;
}
.theme-theme-markttreiben .markt-album > :is(a, div) {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-block-size: 4.75rem;
    padding: .55rem;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
}
.theme-theme-markttreiben .markt-album > div {
    display: grid;
    align-content: center;
    gap: .2rem;
    padding-inline: .9rem;
}
.theme-theme-markttreiben .markt-album img {
    flex: 0 0 auto;
    inline-size: clamp(4rem, 22vw, 7rem);
    block-size: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: .25rem;
}
.theme-theme-markttreiben #theme-fair-sections .markt-album h2 {
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.theme-theme-markttreiben .markt-album p {
    margin: 0;
    font-size: .9rem;
}
.theme-theme-markttreiben .markt-album a:hover h2 {
    text-decoration: underline;
}
.theme-theme-markttreiben main > .theme-article.markt-album-einzel {
    max-width: none;
    margin-inline: 0;
}
.theme-theme-markttreiben main:has(> .markt-album-einzel) > h1 {
    max-width: none;
    font-size: clamp(2rem, 4vw, 3rem);
}
.theme-theme-markttreiben .markt-album-einzel .site-article-lead-image {
    float: none;
    max-inline-size: min(100%, 24rem);
    margin-inline: 0;
    margin-block-end: 1rem;
}

.theme-theme-markttreiben .markt-sponsoren-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
    gap: .65rem;
    max-inline-size: 57rem;
    margin-block: .65rem 1.5rem;
}
.theme-theme-markttreiben .markt-sponsoren-logos > a {
    display: grid;
    place-items: center;
    min-inline-size: 0;
    min-block-size: 5.4rem;
    padding: .65rem;
    border: 1px solid var(--fair-line, #d6c7b2);
    border-radius: .4rem;
    background: #fff;
}
.theme-theme-markttreiben .markt-sponsoren-logos > a:hover {
    border-color: var(--theme-accent, #742c20);
}
.theme-theme-markttreiben .markt-sponsoren-logos img {
    display: block;
    max-inline-size: 100%;
    max-block-size: 4rem;
    inline-size: auto;
    block-size: auto;
    object-fit: contain;
}

.theme-theme-markttreiben .markt-goenner-zahlungsarten {
    display: grid;
    align-items: start;
    gap: 1rem;
    max-inline-size: 52rem;
    margin-block: 1.1rem 1.6rem;
}
@media (min-width: 42rem) {
    .theme-theme-markttreiben .markt-goenner-zahlungsarten {
        grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
    }
}
.theme-theme-markttreiben .markt-goenner-zahlungsarten > section {
    padding: clamp(.8rem, 2vw, 1.2rem);
    border: 1px solid var(--fair-line, #d6c7b2);
    border-radius: .45rem;
    background: var(--theme-paper, #f6efe4);
}
.theme-theme-markttreiben .markt-goenner-zahlungsarten h3 {
    margin-block: 0 .65rem;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}
.theme-theme-markttreiben .markt-goenner-zahlungsarten p {
    margin-block: 0;
}
.theme-theme-markttreiben .markt-twint-code img {
    display: block;
    inline-size: min(100%, 14rem);
    block-size: auto;
    background: #fff;
}
.theme-theme-markttreiben .markt-twint-code + a {
    display: inline-flex;
    align-items: center;
    min-block-size: 2.5rem;
    margin-block-start: .3rem;
    font-size: .9rem;
}

@media (min-width: 56rem) {
    .theme-theme-markttreiben.theme-columns-three :is(.theme-fair-secondary, main) #theme-fair-sections.markt-alben {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.theme-theme-markttreiben .theme-navigation.markt-navigation {
    width: 100%;
    padding: .35rem;
    border: 1px solid var(--fair-line, #d6c7b2);
    border-radius: .45rem;
    background: color-mix(in srgb, var(--fair-surface, #fffaf1) 68%, var(--theme-paper, #f6efe4));
}
.theme-theme-markttreiben .markt-navigation ul[hidden] {
    display: none;
}
.theme-theme-markttreiben .markt-navigation > ul {
    gap: .3rem;
}
.theme-theme-markttreiben .markt-navigation li {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    min-inline-size: 0;
    padding: 0;
    border-radius: .3rem;
}
.theme-theme-markttreiben .markt-navigation li > a {
    display: flex;
    align-items: center;
    min-block-size: 2.65rem;
    padding: .35rem .68rem;
    border-radius: inherit;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}
.theme-theme-markttreiben .markt-navigation li > a:hover {
    background: color-mix(in srgb, var(--theme-accent, #742c20) 10%, transparent);
}
.theme-theme-markttreiben .markt-navigation .markt-nav-active > a {
    color: var(--theme-accent, #742c20);
    background: color-mix(in srgb, var(--theme-accent, #742c20) 11%, transparent);
}
.theme-theme-markttreiben .markt-navigation a[aria-current="page"] {
    color: var(--fair-on-accent, #fff);
    background: var(--theme-accent, #742c20);
}
.theme-theme-markttreiben .markt-navigation li > a:focus-visible,
.theme-theme-markttreiben .markt-navigation .markt-nav-auswahl:focus-visible {
    position: relative;
    z-index: 1;
    outline-offset: -2px;
}
.markt-nav-auswahl {
    display: grid;
    place-items: center;
    min-inline-size: 2.55rem;
    min-block-size: 2.65rem;
    padding: 0;
    border: 0;
    border-radius: .3rem;
    color: var(--theme-accent, #742c20);
    background: transparent;
    cursor: pointer;
}
.markt-nav-auswahl:hover,
.markt-nav-auswahl[aria-expanded="true"] {
    background: color-mix(in srgb, currentColor 12%, transparent);
}
.markt-nav-auswahl::before {
    content: '';
    inline-size: .48rem;
    block-size: .48rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-.12rem) rotate(45deg);
}
.markt-nav-auswahl[aria-expanded="true"]::before {
    transform: translateY(.12rem) rotate(225deg);
}
.theme-theme-markttreiben .markt-navigation .markt-nav-auswahl-mit-text {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .35rem .75rem .35rem .68rem;
    color: inherit;
    font: inherit;
    font-weight: 600;
    line-height: 1.35;
    text-align: start;
}
.theme-theme-markttreiben .markt-navigation .markt-nav-auswahl-mit-text::before {
    order: 1;
    flex: none;
    color: var(--theme-accent, #742c20);
}
.theme-theme-markttreiben .markt-navigation .markt-nav-active > .markt-nav-auswahl-mit-text {
    color: var(--theme-accent, #742c20);
    background: color-mix(in srgb, currentColor 11%, transparent);
}
.theme-theme-markttreiben .markt-navigation ul ul {
    grid-column: 1 / -1;
    margin: 0 0 .2rem .6rem;
    padding: .1rem 0 .1rem .45rem;
    border-color: var(--fair-line, #d6c7b2);
}
.theme-theme-markttreiben .markt-navigation ul ul a {
    font-weight: 500;
}
.markt-menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-block-size: 2.75rem;
    border-color: var(--theme-accent, #742c20);
    background: var(--theme-accent, #742c20);
    color: var(--fair-on-accent, #fff);
    font-weight: 650;
}
.markt-menu-toggle:focus-visible {
    outline-color: var(--theme-accent, #742c20);
}
.markt-menu-icon {
    position: relative;
    display: inline-block;
    inline-size: 1rem;
    block-size: .8rem;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.markt-menu-icon::before,
.markt-menu-icon::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    block-size: 2px;
    background: currentColor;
}
.markt-menu-icon::before { inset-block-start: 0; }
.markt-menu-icon::after { inset-block-end: 0; }
.markt-menu-toggle[aria-expanded="true"] .markt-menu-icon {
    background: none;
}
.markt-menu-toggle[aria-expanded="true"] .markt-menu-icon::before {
    inset-block-start: calc(50% - 1px);
    transform: rotate(45deg);
}
.markt-menu-toggle[aria-expanded="true"] .markt-menu-icon::after {
    inset-block-end: calc(50% - 1px);
    transform: rotate(-45deg);
}

@media (min-width: 761px) {
    .theme-theme-markttreiben .theme-navigation.markt-navigation > ul > li > ul {
        inset-block-start: calc(100% + .28rem);
        inset-inline-start: 0;
        min-inline-size: 14rem;
        max-inline-size: min(21rem, calc(100vw - 2rem));
        margin: 0;
        padding: .4rem;
        background: var(--fair-surface, #fffaf1);
    }
    .theme-theme-markttreiben .theme-navigation.markt-navigation > ul > li:nth-last-child(-n + 2) > ul {
        inset-inline-start: auto;
        inset-inline-end: 0;
    }
    .theme-theme-markttreiben .theme-navigation.markt-navigation > ul > li > ul:not([hidden]) {
        display: block;
    }
    .theme-theme-markttreiben .theme-navigation.markt-navigation > ul > li > ul[hidden] {
        display: none;
    }
}
@media (max-width: 760px) {
    .theme-theme-markttreiben .theme-header:has(.markt-menu-toggle) .theme-brand {
        flex: 1 1 0;
        min-inline-size: 0;
        max-inline-size: none;
        margin-block-end: 0;
    }
    .theme-theme-markttreiben .theme-header:has(.markt-menu-toggle) .theme-logo {
        flex: 0 0 auto;
        inline-size: clamp(2.4rem, 12vw, 3.25rem);
    }
    .theme-theme-markttreiben .markt-navigation > ul > li + li {
        margin-block-start: .2rem;
    }
    .theme-theme-markttreiben .markt-navigation li > :is(a, button) {
        min-block-size: 2.8rem;
    }
    .theme-theme-markttreiben .markt-navigation .markt-nav-auswahl {
        min-inline-size: 2.8rem;
    }
}
