/* Homepage premium sections */
.am-home-layout {
    --am-home-banner: 160px;
    --am-home-center: var(--am-content-max);
    display: grid;
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 2rem;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}
@media (min-width: 1200px) {
    .am-home-layout {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        grid-template-columns: 1fr minmax(0, var(--am-home-center)) 1fr;
        column-gap: 1rem;
    }

    .am-home-layout--with-top,
    .am-home-layout--with-search {
        grid-template-rows: auto auto;
    }
    .am-home-layout--with-top .am-home-layout__top,
    .am-home-layout--with-search .am-home-layout__search {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }
    .am-home-layout--with-top .am-home-layout__side--left,
    .am-home-layout--with-search .am-home-layout__side--left {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: start;
        justify-self: center;
        margin-top: 4.75rem;
    }
    .am-home-layout--with-top .am-home-layout__main,
    .am-home-layout--with-search .am-home-layout__main {
        grid-column: 2;
        grid-row: 2;
    }
    .am-home-layout--with-top .am-home-layout__side--right,
    .am-home-layout--with-search .am-home-layout__side--right {
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: start;
        justify-self: center;
        margin-top: 4.75rem;
    }

    .am-home-layout:not(.am-home-layout--with-top):not(.am-home-layout--with-search) .am-home-layout__side--left {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }
    .am-home-layout:not(.am-home-layout--with-top):not(.am-home-layout--with-search) .am-home-layout__main {
        grid-column: 2;
        grid-row: 1;
    }
    .am-home-layout:not(.am-home-layout--with-top):not(.am-home-layout--with-search) .am-home-layout__side--right {
        grid-column: 3;
        grid-row: 1;
        justify-self: center;
    }
}
.am-main--wide:has(.am-home-layout) {
    overflow-x: visible;
}
.am-home-layout__top {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 0.25rem;
}
.am-home-layout__search {
    margin-bottom: 0.25rem;
}
.am-home-layout__search .am-hero {
    margin-bottom: 0;
}
.am-home-layout__side {
    position: sticky;
    top: calc(var(--am-header-h, 72px) + 1rem);
    z-index: 5;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    justify-self: center;
    overflow: visible;
}
.am-home-layout__side .bm-slot {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    margin: 0;
    overflow: visible;
}
.am-home-layout__side .bm-banner__link {
    display: block;
    width: 160px;
    max-width: none;
}
.am-home-layout__side .bm-banner__img,
.am-home-layout__side .bm-banner__video {
    display: block;
    width: 160px;
    max-width: none;
    height: auto;
    margin: 0 auto;
}
.am-home-layout__main {
    min-width: 0;
}

.am-home-section {
    margin-bottom: 2.5rem;
}

.am-home-section--card {
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--am-shadow-sm);
    overflow: visible;
}

/* ── Top Influencer / Gifts ── */
.am-top-boards {
    display: grid;
    gap: 1.25rem;
}

.am-top-boards--1 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
.am-top-boards--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 768px) {
    .am-top-boards--2 { grid-template-columns: 1fr; }
    .am-top-boards--1 { max-width: none; }
}

.am-top-board {
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    overflow: hidden;
    box-shadow: var(--am-shadow-sm);
}

.am-top-board__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--am-border);
    background: linear-gradient(135deg, var(--am-surface-alt) 0%, var(--am-surface) 100%);
}

.am-top-board__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--am-text);
    margin: 0;
}

.am-top-board__title img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.am-top-board__all {
    background: var(--am-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.am-top-board__all:hover {
    background: var(--am-accent-hover);
    color: #fff;
}

.am-top-board__body {
    padding: 1.25rem;
}

.am-top-board__empty {
    margin: 0;
    text-align: center;
    color: var(--am-text-muted);
    font-size: 0.9rem;
    padding: 1rem 0;
}

.am-top-users {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 480px) {
    .am-top-users { grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
}

.am-top-user {
    text-align: center;
    text-decoration: none;
    color: var(--am-text);
    transition: transform 0.15s;
}

.am-top-user:hover {
    transform: translateY(-2px);
    color: var(--am-primary);
}

.am-top-user__img-wrap {
    position: relative;
    margin: 0 auto 0.5rem;
    width: 72px;
}

.am-top-user__img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--am-border);
    display: block;
}

.am-top-user__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--am-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    line-height: 1;
}

.am-top-user__badge img {
    width: 12px;
    height: 12px;
}

.am-top-user__name {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal list items */
.am-modal-list {
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    overflow: hidden;
}

.am-modal-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--am-border);
    gap: 1rem;
}

.am-modal-list__item:last-child { border-bottom: none; }

.am-modal-list__item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--am-text);
    flex: 1;
    min-width: 0;
}

.am-modal-list__item img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.am-modal-list__rank {
    font-size: 0.8rem;
    color: var(--am-text-muted);
}

.am-modal-list__count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--am-surface-alt);
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.am-modal-list__count img { width: 16px; height: 16px; }

/* ── Events grid (home premium) ── */
.am-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.am-events-grid .am-event-card {
    position: relative;
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    overflow: hidden;
    box-shadow: var(--am-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.am-events-grid .am-event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--am-shadow-md);
    border-color: color-mix(in srgb, var(--am-primary) 25%, var(--am-border));
}

.am-events-grid .am-event-card--top {
    border: 2px solid #f6c453;
    box-shadow:
        0 0 0 1px rgba(246, 196, 83, 0.45),
        0 14px 36px rgba(246, 196, 83, 0.28);
}

.am-events-grid .am-event-card--top:hover {
    border-color: #ffcf5c;
    box-shadow:
        0 0 0 1px rgba(255, 207, 92, 0.55),
        0 18px 42px rgba(246, 196, 83, 0.38);
}

.am-events-grid .am-event-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.am-events-grid .am-event-card__media {
    padding: 0.85rem 0.85rem 0;
    background: linear-gradient(180deg, var(--am-surface-alt) 0%, var(--am-surface) 100%);
}

.am-events-grid .am-event-card__thumb-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 148px;
    aspect-ratio: 16 / 10;
    border-radius: var(--am-radius-lg);
    overflow: hidden;
    border: 1px solid var(--am-border);
    background:
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--am-primary) 8%, transparent), transparent 55%),
        linear-gradient(160deg, var(--am-surface-alt) 0%, var(--am-surface) 100%);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, #fff 60%, transparent),
        0 4px 16px rgba(6, 31, 38, 0.08);
}

.am-events-grid .am-event-card__img {
    width: auto;
    height: auto;
    max-width: 92%;
    max-height: 118px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.1));
    transition: transform 0.35s ease;
}

.am-events-grid .am-event-card:hover .am-event-card__img {
    transform: scale(1.03);
}

.am-events-grid .am-event-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.am-events-grid .am-event-card__badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6c453 0%, var(--am-accent) 100%);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.am-events-grid .am-event-card__badge i {
    font-size: 0.62rem;
}

.am-events-grid .am-event-card__body {
    padding: 1rem 1.1rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--am-surface) 0%, color-mix(in srgb, var(--am-surface-alt) 40%, var(--am-surface)) 100%);
}

.am-events-grid .am-event-card__title {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 0.55rem;
    color: var(--am-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.am-events-grid .am-event-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.am-events-grid .am-event-card__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.84rem;
    color: var(--am-text-muted);
    line-height: 1.4;
}

.am-events-grid .am-event-card__meta-item i {
    margin-top: 0.12rem;
    color: var(--am-primary-light);
    flex-shrink: 0;
}

.am-events-grid .am-event-card__desc {
    font-size: 0.875rem;
    color: var(--am-text-muted);
    margin: 0 0 0.85rem;
    flex: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.am-events-grid .am-event-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--am-border);
}

.am-events-grid .am-event-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--am-primary-light);
    transition: color 0.15s ease, gap 0.15s ease;
}

.am-events-grid .am-event-card:hover .am-event-card__cta {
    color: var(--am-accent);
    gap: 0.5rem;
}

[data-theme="dark"] .am-events-grid .am-event-card {
    background: #101a20;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .am-events-grid .am-event-card--top {
    border-color: rgba(246, 196, 83, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .am-events-grid .am-event-card__media {
    background: linear-gradient(180deg, #0d161c 0%, #121c22 100%);
}

[data-theme="dark"] .am-events-grid .am-event-card__thumb-frame {
    background: #0a1216;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .am-events-grid .am-event-card__body {
    background: linear-gradient(180deg, #121c22 0%, #0d161c 100%);
}

[data-theme="dark"] .am-events-grid .am-event-card__title {
    color: #dce8ed;
}

[data-theme="dark"] .am-events-grid .am-event-card__meta-item,
[data-theme="dark"] .am-events-grid .am-event-card__desc {
    color: #8fa3ad;
}

/* Events inside premium dark band */
.am-home-section--premium .am-events-grid {
    position: relative;
    z-index: 1;
}

/* Light theme: dunkles Weiss auf dem Premium-Band */
html:not([data-theme="dark"]) .am-home-section--premium .am-events-grid .am-event-card {
    background: #f6f6f4;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 22px rgba(6, 31, 38, 0.14);
}

html:not([data-theme="dark"]) .am-home-section--premium .am-events-grid .am-event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 12px 28px rgba(6, 31, 38, 0.18);
}

html:not([data-theme="dark"]) .am-home-section--premium .am-events-grid .am-event-card--top {
    border: 2px solid #f6c453;
    box-shadow:
        0 0 0 1px rgba(246, 196, 83, 0.5),
        0 10px 28px rgba(246, 196, 83, 0.32);
}

html:not([data-theme="dark"]) .am-home-section--premium .am-events-grid .am-event-card--top:hover {
    border-color: #ffcf5c;
    box-shadow:
        0 0 0 1px rgba(255, 207, 92, 0.6),
        0 14px 32px rgba(246, 196, 83, 0.4);
}

html:not([data-theme="dark"]) .am-home-section--premium .am-events-grid .am-event-card__media {
    padding: 0.65rem 0.65rem 0;
    background: linear-gradient(180deg, #fafaf8 0%, #f6f6f4 100%);
}

html:not([data-theme="dark"]) .am-home-section--premium .am-events-grid .am-event-card__thumb-frame {
    background: #efefec;
    border-color: rgba(12, 74, 92, 0.08);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.85),
        0 4px 14px rgba(6, 31, 38, 0.08);
}

html:not([data-theme="dark"]) .am-home-section--premium .am-events-grid .am-event-card__body {
    background: linear-gradient(180deg, #f8f8f6 0%, #f2f2f0 100%);
}

html:not([data-theme="dark"]) .am-home-section--premium .am-events-grid .am-event-card__title {
    color: var(--am-text);
}

html:not([data-theme="dark"]) .am-home-section--premium .am-events-grid .am-event-card__meta-item,
html:not([data-theme="dark"]) .am-home-section--premium .am-events-grid .am-event-card__desc {
    color: var(--am-text-muted);
}

html:not([data-theme="dark"]) .am-home-section--premium .am-events-grid .am-event-card__meta-item i {
    color: var(--am-primary-light);
}

html:not([data-theme="dark"]) .am-home-section--premium .am-events-grid .am-event-card__footer {
    border-top-color: rgba(12, 74, 92, 0.08);
}

html:not([data-theme="dark"]) .am-home-section--premium .am-events-grid .am-event-card__cta {
    color: var(--am-primary-light);
}

html:not([data-theme="dark"]) .am-home-section--premium .am-events-grid .am-event-card:hover .am-event-card__cta {
    color: var(--am-accent);
}

/* Dark theme: dunkle Karten wie zuvor */
[data-theme="dark"] .am-home-section--premium .am-events-grid .am-event-card {
    background: #101a20;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .am-home-section--premium .am-events-grid .am-event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
}

[data-theme="dark"] .am-home-section--premium .am-events-grid .am-event-card--top {
    border: 2px solid #f6c453;
    box-shadow:
        0 0 0 1px rgba(246, 196, 83, 0.35),
        0 12px 32px rgba(246, 196, 83, 0.22);
}

[data-theme="dark"] .am-home-section--premium .am-events-grid .am-event-card--top:hover {
    border-color: #ffcf5c;
    box-shadow:
        0 0 0 1px rgba(255, 207, 92, 0.45),
        0 16px 38px rgba(246, 196, 83, 0.3);
}

[data-theme="dark"] .am-home-section--premium .am-events-grid .am-event-card__media {
    padding: 0.65rem 0.65rem 0;
    background: linear-gradient(180deg, #0d161c 0%, #121c22 100%);
}

[data-theme="dark"] .am-home-section--premium .am-events-grid .am-event-card__thumb-frame {
    background: #0a1216;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 4px 14px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .am-home-section--premium .am-events-grid .am-event-card__body {
    background: linear-gradient(180deg, #121c22 0%, #0d161c 100%);
}

[data-theme="dark"] .am-home-section--premium .am-events-grid .am-event-card__title {
    color: #dce8ed;
}

[data-theme="dark"] .am-home-section--premium .am-events-grid .am-event-card__meta-item,
[data-theme="dark"] .am-home-section--premium .am-events-grid .am-event-card__desc {
    color: #8fa3ad;
}

[data-theme="dark"] .am-home-section--premium .am-events-grid .am-event-card__meta-item i {
    color: #6eb8c9;
}

[data-theme="dark"] .am-home-section--premium .am-events-grid .am-event-card__footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .am-home-section--premium .am-events-grid .am-event-card__cta {
    color: #7ec8d8;
}

[data-theme="dark"] .am-home-section--premium .am-events-grid .am-event-card:hover .am-event-card__cta {
    color: #f6c453;
}

/* ── Gallery grid ── */
.am-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.am-gallery-grid--home {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.15rem;
}

@media (min-width: 992px) {
    .am-featured-cats {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .am-home-layout__main .am-featured-cats {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .am-home-layout__main .am-featured-cat {
        flex: 1 1 0;
        min-width: 0;
        padding: 1rem 0.45rem 0.85rem;
        font-size: 0.78rem;
    }
}

/* ── Premium top gallery ── */
.am-home-section--premium {
    background: linear-gradient(135deg, #041418 0%, var(--am-primary-dark) 45%, #0a2d36 100%);
    border: none;
    border-radius: var(--am-radius-lg);
    padding: 1rem 1rem 0.9rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.am-home-section--premium .am-section-head {
    margin-bottom: 0.85rem;
}

.am-home-section--premium::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 45%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(232, 93, 58, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.am-section-head__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.am-section-title--light {
    color: #fff;
}

.am-btn--outline-light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.am-btn--outline-light:hover {
    background: #fff;
    color: var(--am-primary);
    border-color: #fff;
}

.am-premium-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    background: linear-gradient(135deg, #f6c453 0%, #e85d3a 100%);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.am-top-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    position: relative;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .am-top-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .am-top-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .am-top-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Kompakte Premium-Karten in der Top-Galerie */
.am-top-gallery-grid .am-gallery-card--featured {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.am-top-gallery-grid .am-gallery-card--featured .am-gallery-card__link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
}

.am-top-gallery-grid .am-gallery-card--featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.am-top-gallery-grid .am-gallery-card--featured .am-gallery-card__media {
    padding: 0.15rem 0.15rem 0;
}

.am-top-gallery-grid .am-gallery-card__img-frame {
    aspect-ratio: 5 / 4;
    border-radius: 6px;
}

.am-top-gallery-grid .am-gallery-card--featured .am-gallery-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0.4rem 0.5rem 1.4rem;
}

.am-top-gallery-grid .am-gallery-card--featured .am-gallery-card__title {
    font-size: 0.65rem;
    line-height: 1.28;
    font-weight: 600;
    margin-bottom: 0;
    padding-bottom: 0.2rem;
    -webkit-line-clamp: 3;
    min-height: 0;
}

.am-top-gallery-grid .am-gallery-card--featured .am-gallery-card__location {
    position: absolute;
    right: 0.5rem;
    bottom: 0.35rem;
    left: auto;
    max-width: 52%;
    margin: 0;
    font-size: 0.64rem;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-top-gallery-grid .am-gallery-card--featured .am-gallery-card__location i {
    font-size: 0.62rem;
}

.am-home-section--premium .am-gallery-card--featured .am-gallery-card__location i {
    font-size: 0.66rem;
}

.am-home-section--premium .am-gallery-card--featured .am-gallery-card__media {
    padding: 0.15rem 0.15rem 0;
}

.am-top-gallery-grid .am-gallery-card__badge,
.am-home-section--premium .am-gallery-card--featured .am-gallery-card__badge {
    top: 2px;
    left: 2px;
    font-size: 0.54rem;
    padding: 0.16rem 0.38rem;
    border-radius: 0 0 6px 0;
}

.am-top-gallery-grid .am-gallery-card__badge i,
.am-home-section--premium .am-gallery-card--featured .am-gallery-card__badge i {
    font-size: 0.5rem;
}

.am-top-gallery-grid .am-gallery-card__new-badge--overlay,
.am-home-section--premium .am-gallery-card__new-badge--overlay {
    top: 2px;
    right: 2px;
    left: auto;
    font-size: 0.54rem;
    padding: 0.16rem 0.38rem;
    border-radius: 0 0 0 6px;
}

.am-top-gallery-grid .am-gallery-card__price-chip,
.am-home-section--premium .am-gallery-card--featured .am-gallery-card__price-chip {
    left: 8px;
    bottom: 8px;
    font-size: 0.78rem;
    padding: 0.28rem 0.5rem;
    border-radius: 8px;
}

/* Homepage Swiper (Slider-Modus) */
.am-home-swiper {
    position: relative;
    padding: 0 2.5rem;
    margin: 0 -0.5rem;
}

.am-home-swiper--business,
.am-home-swiper--business.swiper-container {
    overflow: hidden !important;
    padding: 0.4rem 2.5rem 2.35rem;
    margin: 0;
}

.am-home-swiper--business .swiper-wrapper {
    align-items: stretch;
}

.am-home-swiper .swiper-slide {
    height: auto;
}

.am-home-swiper--top .swiper-wrapper,
.am-home-swiper--new .swiper-wrapper {
    align-items: stretch;
}

.am-home-swiper--top .swiper-slide,
.am-home-swiper--new .swiper-slide {
    display: flex;
    height: auto;
    box-sizing: border-box;
}

.am-home-swiper--top .swiper-slide > .am-gallery-card,
.am-home-swiper--new .swiper-slide > .am-gallery-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.am-home-swiper--top .am-gallery-card__link,
.am-home-swiper--new .am-gallery-card__link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
}

.am-home-swiper--top .am-gallery-card--featured .am-gallery-card__body,
.am-home-swiper--new .am-gallery-card--featured .am-gallery-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 1.5rem;
}

.am-home-section--premium .am-gallery-card--featured .am-gallery-card__title {
    font-size: 0.8rem;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 0;
    padding-bottom: 0.25rem;
    -webkit-line-clamp: 3;
    min-height: 0;
}

.am-home-section--premium .am-gallery-card--featured .am-gallery-card__location {
    position: absolute;
    right: 0.65rem;
    bottom: 0.35rem;
    left: auto;
    max-width: 52%;
    margin: 0;
    min-height: 0;
    font-size: 0.66rem;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-home-swiper--business .swiper-slide {
    padding: 0.25rem 0;
    box-sizing: border-box;
    height: auto;
}

.am-business-page {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

@media (max-width: 1199.98px) {
    .am-business-page {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .am-business-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .am-business-page {
        grid-template-columns: minmax(0, 1fr);
    }
}

.am-home-swiper .swiper-button-next,
.am-home-swiper .swiper-button-prev {
    color: var(--am-accent);
    width: 36px;
    height: 36px;
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: 50%;
    box-shadow: var(--am-shadow-sm);
}

.am-home-swiper .swiper-button-next::after,
.am-home-swiper .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 700;
}

.am-home-section--premium .am-home-swiper .swiper-button-next,
.am-home-section--premium .am-home-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.am-home-swiper .swiper-button-disabled {
    opacity: 0.35;
}

.am-business-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    box-shadow: var(--am-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.am-business-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--am-shadow-md);
    color: inherit;
}

.am-business-card__img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: var(--am-logo-bg);
    border-bottom: 1px solid var(--am-logo-border);
    padding: 0.65rem;
}

.am-business-card__body {
    padding: 0.75rem;
}

.am-business-card__title {
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.am-business-card__country {
    margin: 0;
    font-size: 0.78rem;
    color: var(--am-text-muted);
}

.am-premium-packages {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.am-premium-package {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--am-border);
    border-radius: 10px;
    cursor: pointer;
    margin: 0;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.am-premium-package:has(input:checked),
.am-premium-package.is-selected {
    background: #f0fdf4;
    border-color: #86efac;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.am-premium-package input {
    flex-shrink: 0;
}

.am-premium-package--included {
    background: #f0fdf4;
    cursor: default;
    grid-template-columns: minmax(0, 1fr) auto;
}

.am-premium-package__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.am-premium-package__info {
    min-width: 0;
}

.am-premium-package__img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.am-premium-package__name {
    font-weight: 700;
}

.am-premium-package__meta,
.am-premium-package__price {
    font-size: 0.82rem;
    color: var(--am-text-muted);
}

.am-premium-package__price {
    justify-self: end;
    text-align: right;
    flex-shrink: 0;
    padding-left: 1rem;
}

.am-price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.am-price-breakdown__line {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--am-text-muted);
}

.am-price-breakdown__line--gross {
    color: var(--am-accent);
    font-weight: 700;
}

.am-price-breakdown--package {
    min-width: 9.5rem;
    margin-left: auto;
}

.am-price-breakdown--package .am-price-breakdown__line {
    display: grid;
    grid-template-columns: minmax(4.5rem, auto) auto;
    justify-content: end;
    gap: 0.65rem;
    text-align: right;
}

.am-price-breakdown--package .am-price-breakdown__line span:last-child {
    min-width: 4.5rem;
    text-align: right;
    white-space: nowrap;
}

.am-fs-pack__price .am-price-breakdown {
    text-align: right;
}

.am-premium-package__check {
    margin-left: auto;
    color: #22c55e;
    font-size: 1.25rem;
}


a.am-gallery-card,
.am-gallery-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.am-gallery-card {
    position: relative;
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    overflow: hidden;
    box-shadow: var(--am-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.am-gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--am-shadow-md);
}

.am-gallery-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.am-gallery-card__body {
    padding: 0.85rem 1rem;
}

.am-gallery-card__title {
    font-size: 0.84rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--am-text);
}

.am-gallery-card__location {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    color: var(--am-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-gallery-card__location i {
    color: var(--am-primary-light);
    margin-right: 0.25rem;
    font-size: 0.72rem;
}

.am-gallery-card__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--am-accent);
    margin: 0;
}

.am-gallery-card--featured {
    border: 2px solid rgba(246, 196, 83, 0.65);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    border-radius: 16px;
}

.am-gallery-card--featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
    border-color: #f6c453;
}

.am-gallery-card__media {
    position: relative;
}

.am-gallery-card--featured .am-gallery-card__media {
    padding: 0.85rem 0.85rem 0;
    background: linear-gradient(180deg, #f4f8fa 0%, #fff 100%);
}

[data-theme="dark"] .am-top-gallery-grid .am-gallery-card--featured,
[data-theme="dark"] .am-gallery-card--featured {
    border-color: rgba(246, 196, 83, 0.35);
    background: #101a20;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .am-gallery-card--featured .am-gallery-card__media {
    padding: 0.35rem 0.35rem 0;
    background: linear-gradient(180deg, #0d161c 0%, #121c22 100%);
}

[data-theme="dark"] .am-gallery-card--featured .am-gallery-card__img-frame {
    background: #0a1216;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .am-gallery-card--featured .am-gallery-card__body {
    padding: 0.4rem 0.5rem 1.4rem;
    background: linear-gradient(180deg, #121c22 0%, #0d161c 100%);
}

[data-theme="dark"] .am-gallery-card--featured .am-gallery-card__title {
    color: #dce8ed;
}

[data-theme="dark"] .am-gallery-card--featured .am-gallery-card__location {
    color: #7a939f;
}

.am-gallery-card__img-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: #e4eaed;
    box-shadow:
        inset 0 0 0 1px rgba(12, 74, 92, 0.1),
        0 4px 16px rgba(6, 31, 38, 0.12);
}

.am-gallery-card__img-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(6, 31, 38, 0.75) 0%, rgba(6, 31, 38, 0.06) 48%, transparent 100%);
    pointer-events: none;
}

.am-gallery-card--featured .am-gallery-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.am-gallery-card--featured:hover .am-gallery-card__img {
    transform: scale(1.05);
}

.am-gallery-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.am-gallery-card--featured .am-gallery-card__body {
    padding: 0.55rem 0.6rem 1.5rem;
    background: linear-gradient(180deg, #fff 0%, #f8fbfc 100%);
    position: relative;
}

.am-gallery-card--featured .am-gallery-card__title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0.25rem;
}

.am-gallery-card--featured .am-gallery-card__location {
    position: absolute;
    right: 0.75rem;
    bottom: 0.35rem;
    left: auto;
    max-width: 52%;
    margin: 0;
    font-size: 0.66rem;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-gallery-card__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #f6c453 0%, #e85d3a 100%);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.28rem 0.55rem;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(232, 93, 58, 0.45);
}

.am-gallery-card__badge i {
    font-size: 0.62rem;
}

.am-gallery-card__price-chip {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    background: var(--am-accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(232, 93, 58, 0.4);
}

.am-gallery-card__top {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    z-index: 3;
}

.am-gallery-card__media-wrap {
    position: relative;
}

.am-ad-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.am-ad-type-badge--vehicle {
    background: #1e40af;
    color: #fff;
    border-color: #1e3a8a;
}

.am-ad-type-badge--immob {
    background: #059669;
    color: #fff;
    border-color: #047857;
}

.am-ad-type-badge--overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    max-width: calc(100% - 4.5rem);
}

.am-gallery-card__new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    background: #16a34a;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.28rem 0.5rem;
    border-radius: 4px;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.am-gallery-card__new-badge--overlay {
    top: 6px;
    right: 6px;
    left: auto;
}

.am-gallery-card__overlay .am-ad-type-badge--overlay {
    top: 6px;
    right: 6px;
    z-index: 5;
}

.am-tag--new {
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
}

.am-gallery-card__star-btn {
    position: absolute;
    top: 10px;
    bottom: auto;
    right: 10px;
    left: auto;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--am-border);
    background: var(--am-surface);
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--am-shadow-sm);
    transition: color 0.15s, transform 0.15s, background 0.15s, border-color 0.15s;
}

.am-gallery-card__star-btn.addMerk {
    color: var(--am-text-muted);
}

.am-gallery-card__star-btn.removeMerk {
    color: #f59e0b;
    background: #fffbeb;
    border-color: #fcd34d;
}

.am-gallery-card__star-btn:hover {
    transform: scale(1.08);
    border-color: var(--am-primary);
    color: var(--am-primary);
}

/* Desktop: Merklisten-Stern (Top-Galerie oben rechts, normale Galerie unten rechts) */
@media (min-width: 768px) {
    .am-gallery-card:not(.am-gallery-card--featured) .am-gallery-card__star-btn {
        top: auto;
        bottom: 10px;
        right: 10px;
        left: auto;
    }

    .am-gallery-card--featured .am-gallery-card__star-btn {
        top: 10px;
        bottom: auto;
        right: 10px;
        left: auto;
    }
}

/* ── Section head ── */
.am-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.am-section-head .am-section-title { margin: 0; }

.am-section-link {
    color: var(--am-primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.am-section-link:hover { color: var(--am-accent); }

/* ── Featured categories ── */
.am-featured-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1rem;
}

.am-featured-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 1rem 0.65rem 0.85rem;
    background: var(--am-surface-alt);
    color: var(--am-text);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    min-height: 132px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--am-shadow-sm);
}

.am-featured-cat:hover {
    transform: translateY(-3px);
    box-shadow: var(--am-shadow-md);
    color: inherit;
}

.am-featured-cat__img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.6rem;
}

.am-featured-cat__icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.am-featured-cat__name {
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
    width: 100%;
    padding-top: 0.35rem;
}

/* ── Ad grid ── */
.am-ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.am-ad-card {
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    overflow: hidden;
    box-shadow: var(--am-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.am-ad-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--am-shadow-md);
}

.am-ad-card a {
    display: block;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
}

.am-ad-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--am-text);
    line-height: 1.35;
}

.am-ad-card .am-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--am-accent);
    margin: 0;
}

/* ── Homepage info banners (Info Startseite) ── */
.am-home-infos {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0 1rem;
}

.am-home-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    max-width: var(--am-content-max);
    margin: 0 auto;
    padding: 1.75rem 2rem;
    border-radius: var(--am-radius-lg, 12px);
    background: linear-gradient(196deg, var(--am-surface-alt) 42%, var(--am-home-info-accent, #f0a030) 100%);
    box-shadow: var(--am-shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.am-home-info:hover {
    transform: translateY(-3px);
    box-shadow: var(--am-shadow-lg);
}

.am-home-info__main {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.am-home-info__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--am-text);
}

.am-home-info__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--am-text-muted);
    margin-bottom: 1rem;
}

.am-home-info__text p:last-child {
    margin-bottom: 0;
}

.am-home-info__btn {
    margin-top: 0.25rem;
}

.am-home-info__img {
    flex-shrink: 0;
    max-width: 220px;
    max-height: 140px;
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .am-home-info {
        flex-direction: column;
        padding: 1.25rem;
        text-align: center;
    }

    .am-home-info__img {
        max-width: 180px;
        max-height: 120px;
    }

    .am-home-info__img--right {
        order: 3;
    }
}

/* ── Mobile homepage + dark theme consistency ── */
@media (max-width: 768px) {
    .am-home-section {
        margin-bottom: 1.75rem;
    }

    .am-home-section--card {
        padding: 1rem 0.85rem;
        border-radius: var(--am-radius);
    }

    .am-home-infos {
        padding: 0;
        gap: 1rem;
    }

    .am-section-head {
        gap: 0.5rem;
    }

    .am-section-link {
        font-size: 0.82rem;
    }

    .am-featured-cats {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
        gap: 0.65rem;
    }

    .am-featured-cat {
        min-height: 118px;
        padding: 0.75rem 0.45rem 0.65rem;
        font-size: 0.78rem;
    }

    .am-featured-cat__img {
        width: 48px;
        height: 48px;
    }

    .am-ad-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 767px) {
    .am-home-swiper--business,
    .am-home-swiper--business.swiper-container {
        overflow: hidden !important;
        padding: 0.4rem 0 2rem;
        margin: 0;
    }

    .am-home-swiper--business .swiper-slide {
        padding: 0.2rem 0 0.35rem;
        height: auto;
    }

    .am-home-swiper--business .am-business-card__img {
        height: 170px;
    }

    .am-home-swiper--business .swiper-pagination {
        bottom: 0;
    }
}

.am-home-swiper__pagination .swiper-pagination-bullet {
    background: var(--am-text-muted);
    opacity: 0.45;
}

.am-home-swiper__pagination .swiper-pagination-bullet-active {
    background: var(--am-accent);
    opacity: 1;
}

@media (max-width: 576px) {
    .am-home-swiper {
        padding: 0 0.25rem;
        margin: 0;
    }

    .am-home-swiper .swiper-button-next,
    .am-home-swiper .swiper-button-prev {
        display: none;
    }

    .am-home-section--premium {
        padding: 0.85rem 0.75rem 0.75rem;
        border-radius: var(--am-radius);
    }

    .am-gallery-grid {
        grid-template-columns: 1fr;
    }

    .am-top-gallery-grid {
        grid-template-columns: 1fr;
    }
}

[data-theme="dark"] .am-home-info {
    background: linear-gradient(
        196deg,
        var(--am-surface) 42%,
        color-mix(in srgb, var(--am-home-info-accent, var(--am-accent)) 48%, var(--am-surface)) 100%
    );
    border: 1px solid var(--am-border);
}

[data-theme="dark"] .am-home-info__title {
    color: var(--am-text);
}

[data-theme="dark"] .am-home-info__text {
    color: var(--am-text-muted);
}

[data-theme="dark"] .am-gallery-card__img-frame {
    background: var(--am-surface-2);
}

[data-theme="dark"] .am-gallery-card {
    border-color: var(--am-card-border, var(--am-border));
}

[data-theme="dark"] .am-tag--new {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

[data-theme="dark"] .am-gallery-card__star-btn.removeMerk {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

[data-theme="dark"] .am-btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .am-ad-card,
[data-theme="dark"] .am-featured-cat,
[data-theme="dark"] .am-top-board,
[data-theme="dark"] .am-business-card {
    border-color: var(--am-card-border, var(--am-border));
}

[data-theme="dark"] .am-featured-cat[style] {
    background: var(--am-surface-alt) !important;
    color: var(--am-text) !important;
}
