.theme-theme-markttreiben {
    --fair-surface: color-mix(in srgb, var(--theme-paper) 88%, white);
    --fair-line: color-mix(in srgb, var(--theme-paper) 78%, var(--theme-ink));
    --fair-on-accent: #fff;
}

.theme-theme-markttreiben.theme-palette-markttreiben {
    --fair-surface: #fffaf1;
    --fair-line: #d6c7b2;
}

.theme-theme-markttreiben.theme-palette-nacht {
    --fair-on-accent: #152331;
}

.theme-theme-markttreiben .theme-fair-topline,
.theme-theme-markttreiben .theme-footer {
    box-shadow: 0 0 0 100vmax var(--fair-band);
    clip-path: inset(0 -100vmax);
    background: var(--fair-band);
}

.theme-theme-markttreiben .theme-fair-topline {
    --fair-band: var(--theme-accent);
    margin: 0;
    padding-block: .55rem;
    color: var(--fair-on-accent);
    letter-spacing: .04em;
    font-size: .9rem;
}

.theme-theme-markttreiben .theme-footer {
    --fair-band: var(--theme-ink);
    padding-block: 2.5rem;
    color: var(--theme-paper);
    border: 0;
}

.theme-theme-markttreiben .theme-footer a:hover {
    color: inherit;
    text-decoration-thickness: .15em;
}

.theme-theme-markttreiben .theme-header {
    border-color: var(--fair-line);
}

.theme-theme-markttreiben .theme-header .theme-logo {
    width: 3.25rem;
}

.theme-theme-markttreiben .theme-fair-hero {
    display: grid;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 3rem);
    margin-block: .75rem var(--theme-spacing);
}

.theme-theme-markttreiben .theme-fair-hero:has(> .theme-group-image) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
}

.theme-theme-markttreiben .theme-fair-hero h1 {
    font-size: clamp(2.65rem, 5.4vw, 5.2rem);
    font-weight: 400;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.theme-theme-markttreiben .theme-fair-hero .theme-eyebrow {
    color: var(--theme-accent);
    font-weight: 650;
}

.theme-theme-markttreiben .theme-fair-lead {
    max-width: 44ch;
    font-size: 1.12rem;
}

.theme-theme-markttreiben .theme-fair-hero .theme-group-image {
    margin: 0;
}

.theme-theme-markttreiben .theme-fair-hero .theme-group-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1.25;
    object-fit: cover;
}

.theme-theme-markttreiben .theme-fair-secondary .theme-fair-hero .theme-group-image img {
    aspect-ratio: 1.6;
}

.theme-theme-markttreiben .theme-fair-button,
.theme-theme-markttreiben .theme-fair-quick {
    background: var(--theme-accent);
    color: var(--fair-on-accent);
}

.theme-theme-markttreiben .theme-fair-button {
    display: inline-block;
    padding: .75rem 1.4rem;
    font-weight: 650;
}

.theme-theme-markttreiben .theme-fair-quick {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    margin-block: var(--theme-spacing);
}

.theme-theme-markttreiben .theme-fair-quick a {
    padding: 1.05rem 1.45rem;
    font: 1.25rem/1.35 var(--theme-heading-font);
}

.theme-theme-markttreiben .theme-fair-quick a + a {
    border-inline-start: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}

.theme-theme-markttreiben .theme-fair-quick a:hover,
.theme-theme-markttreiben .theme-fair-button:hover {
    color: var(--fair-on-accent);
    text-decoration-thickness: .15em;
}

.theme-theme-markttreiben .theme-fair-quick a:focus-visible,
.theme-theme-markttreiben .theme-footer a:focus-visible {
    outline-offset: -4px;
    outline-color: currentColor;
}

.theme-theme-markttreiben #theme-fair-sections > .theme-article {
    scroll-margin-top: 1.5rem;
    padding: 0;
    border-radius: 0;
    border-color: var(--fair-line);
}

.theme-theme-markttreiben.theme-variant-cards #theme-fair-sections > .theme-article {
    background: var(--fair-surface);
    border-width: 0 0 3px;
    border-bottom-color: var(--theme-accent);
}

.theme-theme-markttreiben .theme-fair-card-content {
    padding: clamp(1rem, 2.7vw, 2rem);
}

.theme-theme-markttreiben #theme-fair-sections h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 400;
}

.theme-theme-markttreiben .theme-fair-card-image figure {
    margin: 0;
    max-width: none;
}

.theme-theme-markttreiben .theme-fair-card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.theme-theme-markttreiben .theme-fair-home #theme-fair-sections > :first-child,
.theme-theme-markttreiben .theme-fair-home #theme-fair-sections > :nth-child(n+5),
.theme-theme-markttreiben .theme-fair-secondary #theme-fair-sections > :nth-child(3) {
    grid-column: 1 / -1;
}

.theme-theme-markttreiben .theme-fair-home #theme-fair-sections > :first-child {
    width: min(100%, 48rem);
    justify-self: center;
    text-align: center;
    background: transparent;
    border: 0;
}

.theme-theme-markttreiben.theme-variant-cards .theme-fair-home #theme-fair-sections > :nth-child(5) {
    background: color-mix(in srgb, var(--theme-paper) 88%, var(--theme-accent));
}

.theme-theme-markttreiben .theme-fair-home #theme-fair-sections > :nth-child(6):has(.theme-fair-card-image) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.theme-theme-markttreiben.theme-columns-three .theme-fair-secondary #theme-fair-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
    .theme-theme-markttreiben .theme-fair-hero:has(> .theme-group-image),
    .theme-theme-markttreiben #theme-fair-sections,
    .theme-theme-markttreiben.theme-columns-three .theme-fair-secondary #theme-fair-sections,
    .theme-theme-markttreiben .theme-fair-home #theme-fair-sections > :nth-child(6):has(.theme-fair-card-image) {
        grid-template-columns: minmax(0, 1fr);
    }

    .theme-theme-markttreiben .theme-fair-quick {
        grid-auto-flow: row;
    }

    .theme-theme-markttreiben .theme-fair-quick a + a {
        border-inline-start: 0;
        border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    }
}

.theme-theme-markttreiben.theme-preview-phone .theme-fair-hero:has(> .theme-group-image),
.theme-theme-markttreiben.theme-preview-phone .theme-fair-home #theme-fair-sections,
.theme-theme-markttreiben.theme-preview-phone .theme-fair-secondary #theme-fair-sections,
.theme-theme-markttreiben.theme-preview-phone .theme-fair-home #theme-fair-sections > :nth-child(6):has(.theme-fair-card-image) {
    grid-template-columns: minmax(0, 1fr);
}

.theme-theme-markttreiben.theme-preview-phone .theme-fair-quick {
    grid-auto-flow: row;
}

.theme-theme-markttreiben.theme-preview-phone .theme-fair-quick a + a {
    border-inline-start: 0;
    border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}

@media print {
    .theme-theme-markttreiben .theme-fair-quick,
    .theme-theme-markttreiben .theme-fair-button,
    .theme-theme-markttreiben .theme-fair-topline {
        display: none;
    }

    .theme-theme-markttreiben .theme-footer {
        color: inherit;
        background: none;
        box-shadow: none;
    }
}
