/* =========================================================
   TRITTAU ONLINE
   Archive / Kategorie
   Theme: Hello Elementor + convi Child Theme
   File: /assets/css/archive.css

   WICHTIG:
   Diese Datei enthÃƒÂ¤lt ausschlieÃƒÅ¸lich archive-spezifische Regeln.
   Gemeinsame Komponenten wie .to-container, .to-section,
   .to-sidebar-card, .to-sidebar-categories, .to-ad-slot,
   .to-category-card und .to-section-heading kommen aus global.css.
   ========================================================= */


/* =========================================================
   1. ARCHIVE ROOT
   ========================================================= */

.to-archive {
    width: 100%;
    min-width: 0;
    overflow: clip;
}


/* =========================================================
   2. ARCHIVE HERO
   ========================================================= */

/* Ressort head.

   The gradient declared here never rendered - the Elementor
   container owns the section background and left the head sitting
   on the page background with no surface at all, so a category
   page opened with nothing but text on grey.

   It now carries a solid brand tint: the ressort reads as its own
   band before the news flow starts below it on the neutral
   surface. Solid, no gradient. The same rule serves the search
   results page, which uses this class set too. */

.to-archive-hero {
    width: 100%;
    position: relative;

    padding-block: 42px 38px;

    background: var(--to-blue-soft) !important;

    border-bottom: 1px solid #dceafa;
}

.to-archive-hero__inner {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 13px;
}


/* ---------------------------------------------------------
   Breadcrumbs
   Rank Math shortcode widget
   --------------------------------------------------------- */

.to-archive-breadcrumbs {
    width: 100%;
    margin: 0;
}

.to-archive-breadcrumbs .elementor-shortcode,
.to-archive-breadcrumbs .rank-math-breadcrumb,
.to-archive-breadcrumbs .rank-math-breadcrumb p {
    width: 100%;
    margin: 0;
}

.to-archive-breadcrumbs .rank-math-breadcrumb p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 6px;

    color: var(--to-text-muted);

    font-size: 11px;
    line-height: 1.45;
    font-weight: 550;
}

.to-archive-breadcrumbs .rank-math-breadcrumb a {
    color: var(--to-text-soft);

    transition:
        color var(--to-motion-fast) var(--to-ease);
}

.to-archive-breadcrumbs .rank-math-breadcrumb a:hover {
    color: var(--to-blue);
}

.to-archive-breadcrumbs .rank-math-breadcrumb .separator {
    color: var(--to-border-dark);

    font-size: .9em;
}

.to-archive-breadcrumbs .rank-math-breadcrumb .last {
    min-width: 0;

    color: var(--to-text-muted);
}


/* ---------------------------------------------------------
   Optional eyebrow / kicker
   --------------------------------------------------------- */

.to-archive-kicker {
    width: auto !important;
    margin: 2px 0 0;
}

.to-archive-kicker .elementor-heading-title {
    display: inline-flex;
    align-items: center;

    min-height: 27px;

    margin: 0;
    padding: 5px 9px;

    background: var(--to-blue-soft);

    border: 1px solid #d4e9ff;
    border-radius: 7px;

    color: var(--to-blue-dark);

    font-size: 9px;
    line-height: 1;
    font-weight: 750;

    letter-spacing: .045em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Archive title
   --------------------------------------------------------- */

.to-archive-title {
    width: 100%;
    max-width: 940px;

    margin: 0;
}

/* The ressort title is the page's H1 and shares the treatment of
   the article H1: dark and heavy. Elementor's kit typography was
   rendering it at weight 600 in the accent blue, which read as a
   section label rather than a page title and broke the hierarchy
   against the article pages. Blue stays reserved for section
   headings; page titles are dark. */

.to-archive-title .elementor-heading-title {
    margin: 0;

    color: var(--to-text) !important;

    font-size: clamp(34px, 4.25vw, 50px);
    line-height: 1.04;
    font-weight: 780 !important;

    letter-spacing: -0.045em;
}


/* ---------------------------------------------------------
   Archive description
   --------------------------------------------------------- */

.to-archive-description {
    width: 100%;
    max-width: 760px;

    margin: 0;
}

.to-archive-description,
.to-archive-description p,
.to-archive-description .elementor-widget-container {
    color: var(--to-text-soft);

    font-size: 14px;
    line-height: 1.65;
}

.to-archive-description p {
    margin: 0;
}

.to-archive-description p + p {
    margin-top: 8px;
}


/* =========================================================
   3. ARCHIVE MAIN
   ========================================================= */

.to-archive-main {
    width: 100%;

    background: var(--to-bg);
}

.to-archive-layout {
    width: 100%;
    min-width: 0;

    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    align-items: start;

    gap: 34px;
}

.to-archive-content {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 24px;
}

.to-archive-sidebar {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 20px;
}


/* ---------------------------------------------------------
   Optional sticky wrapper in sidebar
   Put class on an inner sidebar container if required.
   --------------------------------------------------------- */

.to-archive-sidebar__sticky {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 20px;
}

@media (min-width: 1025px) {

    .to-archive-sidebar__sticky {
        position: sticky;
        top: 92px;
    }

}


/* =========================================================
   4. ARCHIVE TOOLBAR
   ========================================================= */

.to-archive-toolbar {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 12px;

    margin: 0;
    padding: 14px;

    background: var(--to-surface);

    border: 1px solid var(--to-border);
    border-radius: var(--to-radius-md);

    box-shadow: var(--to-shadow-xs);
}

.to-archive-toolbar__top {
    width: 100%;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}

.to-archive-toolbar__label {
    width: auto !important;
    min-width: 0;

    margin: 0;
}

.to-archive-toolbar__label .elementor-heading-title {
    margin: 0;

    color: var(--to-text);

    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: -0.01em;
}

.to-archive-toolbar__meta {
    width: auto !important;
    flex: 0 0 auto;

    margin: 0;
}

.to-archive-toolbar__meta,
.to-archive-toolbar__meta .elementor-heading-title,
.to-archive-toolbar__meta .elementor-widget-container {
    color: var(--to-text-muted);

    font-size: 10px;
    line-height: 1.3;
    font-weight: 550;
}


/* =========================================================
   5. ARCHIVE CATEGORY NAVIGATION
   Elementor Icon List with real category links
   ========================================================= */

.to-archive-nav {
    width: 100%;
    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;
}

.to-archive-nav .elementor-widget-container {
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;
}

.to-archive-nav .elementor-icon-list-items {
    width: 100%;
    min-width: 0;

    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 6px !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.to-archive-nav .elementor-icon-list-item {
    width: auto !important;
    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;
}

.to-archive-nav .elementor-icon-list-item::after {
    display: none !important;
}

.to-archive-nav .elementor-icon-list-item > a {
    width: auto !important;
    max-width: 100%;

    min-height: 31px;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 6px 10px !important;

    background: var(--to-surface-soft) !important;

    border: 1px solid var(--to-border) !important;
    border-radius: 7px !important;

    box-shadow: none !important;

    color: var(--to-text-soft) !important;

    font-family: inherit !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 600 !important;

    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: nowrap;

    transition:
        background-color var(--to-motion-fast) var(--to-ease),
        border-color var(--to-motion-fast) var(--to-ease),
        color var(--to-motion-fast) var(--to-ease),
        box-shadow var(--to-motion-fast) var(--to-ease),
        transform var(--to-motion-fast) var(--to-ease);
}

.to-archive-nav .elementor-icon-list-icon {
    display: none !important;
}

.to-archive-nav .elementor-icon-list-text {
    padding: 0 !important;

    color: inherit !important;

    font: inherit !important;
}

.to-archive-nav .elementor-icon-list-item > a:hover {
    background: var(--to-blue-soft-2) !important;

    border-color: #cfe5ff !important;

    color: var(--to-blue-dark) !important;

    box-shadow: 0 1px 3px rgba(15, 23, 42, .035) !important;

    transform: translateY(-1px);
}

.to-archive-nav .elementor-icon-list-item > a:focus {
    outline: none !important;
}

.to-archive-nav .elementor-icon-list-item > a:focus-visible {
    outline: 2px solid rgba(22, 131, 243, .28) !important;
    outline-offset: 2px;
}


/* =========================================================
   6. ARCHIVE LOOP GRID
   Uses global .to-category-card component.

   Elementor structure:
   - .to-archive-grid.to-archive-grid--top
     4 posts, offset 0, pagination off

   - .to-archive-grid.to-archive-grid--feed
     offset 4, infinite scroll
   ========================================================= */

.to-archive-grid {
    width: 100%;
    min-width: 0;

    margin: 0;
}

.to-archive-grid .elementor-widget-container {
    width: 100%;
    min-width: 0;
}

.to-archive-grid .elementor-loop-container {
    width: 100%;

    display: grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    align-items: stretch;

    gap: 18px !important;
}

.to-archive-grid .e-loop-item {
    width: 100%;
    min-width: 0;
    height: 100%;
}

.to-archive-grid .e-loop-item > .elementor {
    height: 100%;
}


/* =========================================================
   7. ARCHIVE EMPTY STATE
   Optional container shown when query has no posts.
   ========================================================= */

.to-archive-empty {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 10px;

    padding: 28px;

    background: var(--to-surface);

    border: 1px solid var(--to-border);
    border-radius: var(--to-radius-lg);

    box-shadow: var(--to-shadow-xs);
}

.to-archive-empty__title {
    width: 100%;
    margin: 0;
}

.to-archive-empty__title .elementor-heading-title {
    margin: 0;

    color: var(--to-text);

    font-size: 20px;
    line-height: 1.2;
    font-weight: 740;

    letter-spacing: -0.02em;
}

.to-archive-empty__text {
    width: 100%;
    max-width: 620px;

    margin: 0;
}

.to-archive-empty__text,
.to-archive-empty__text p {
    color: var(--to-text-soft);

    font-size: 13px;
    line-height: 1.6;
}

.to-archive-empty__text p {
    margin: 0;
}


/* =========================================================
   8. ARCHIVE AD PLACEMENT
   Creative styling itself comes from global.css.
   ========================================================= */

.to-archive-ad {
    width: 100%;

    margin: 0;
}


/* =========================================================
   9. TABLET
   <= 1024px
   ========================================================= */

@media (max-width: 1024px) {

    .to-archive-hero {
        padding-block: 36px 34px;
    }

    .to-archive-hero__inner {
        gap: 12px;
    }

    .to-archive-title .elementor-heading-title {
        font-size: clamp(31px, 5vw, 42px);
    }

    .to-archive-description,
    .to-archive-description p,
    .to-archive-description .elementor-widget-container {
        font-size: 13.5px;
    }

    .to-archive-layout {
        display: flex !important;

        flex-direction: column;

        gap: 34px;
    }

    .to-archive-content,
    .to-archive-sidebar {
        width: 100%;
    }

    .to-archive-sidebar {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        align-items: start;

        gap: 16px;
    }

    .to-archive-sidebar__sticky {
        display: contents;
    }

    .to-archive-grid .elementor-loop-container {
        gap: 16px !important;
    }

}


/* =========================================================
   10. MOBILE
   <= 767px
   ========================================================= */

@media (max-width: 767px) {

    .to-archive {
        overflow: hidden;
    }

    /* ---------------------------------------------------------
       Mobile horizontal padding: single source of truth

       Elementor's default 10px container padding stacked on the
       hero inner, the layout grid, the content column and the
       sidebar. At 390px that left cards, ads and the toolbar at
       318px (81% of the screen) instead of 358px.

       .to-container owns the page padding; these wrappers add none.
       No !important: Elementor applies this padding through
       .e-con (0,1,0), so an equal-specificity rule later in the
       cascade is enough.
       --------------------------------------------------------- */

    .to-archive-hero__inner,
    .to-archive-layout,
    .to-archive-content,
    .to-archive-sidebar {
        padding-inline: 0;
    }

    .to-archive-hero {
        padding-block: 28px 26px;
    }

    .to-archive-hero__inner {
        gap: 10px;
    }

    .to-archive-breadcrumbs .rank-math-breadcrumb p {
        gap: 5px;

        font-size: 10px;
    }

    .to-archive-breadcrumbs .rank-math-breadcrumb .last {
        display: -webkit-box;

        overflow: hidden;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }

    .to-archive-kicker .elementor-heading-title {
        min-height: 25px;

        padding: 5px 8px;

        font-size: 8px;
    }

    .to-archive-title .elementor-heading-title {
        font-size: clamp(29px, 9vw, 36px);
        line-height: 1.06;
        letter-spacing: -0.04em;
    }

    .to-archive-description {
        max-width: 100%;
    }

    .to-archive-description,
    .to-archive-description p,
    .to-archive-description .elementor-widget-container {
        font-size: 13px;
        line-height: 1.6;
    }

    .to-archive-layout {
        gap: 28px;
    }

    .to-archive-content {
        gap: 18px;
    }

    .to-archive-toolbar {
        gap: 10px;

        padding: 12px;

        border-radius: 9px;
    }

    .to-archive-toolbar__top {
        gap: 10px;
    }

    .to-archive-toolbar__label .elementor-heading-title {
        font-size: 11.5px;
    }

    .to-archive-toolbar__meta,
    .to-archive-toolbar__meta .elementor-heading-title,
    .to-archive-toolbar__meta .elementor-widget-container {
        font-size: 9.5px;
    }

    .to-archive-nav {
        overflow: hidden;
    }

    .to-archive-nav .elementor-icon-list-items {
        flex-wrap: nowrap !important;

        gap: 6px !important;

        overflow-x: auto;
        overflow-y: hidden;

        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;

        padding: 1px 1px 3px !important;

        scrollbar-width: none;
    }

    .to-archive-nav .elementor-icon-list-items::-webkit-scrollbar {
        display: none;
    }

    .to-archive-nav .elementor-icon-list-item {
        flex: 0 0 auto;
    }

    .to-archive-nav .elementor-icon-list-item > a {
        min-height: 30px;

        padding: 6px 9px !important;

        font-size: 9.5px !important;
    }

    .to-archive-grid .elementor-loop-container {
        grid-template-columns: 1fr !important;

        gap: 14px !important;
    }

    .to-archive-sidebar {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .to-archive-empty {
        padding: 22px;
    }

    .to-archive-empty__title .elementor-heading-title {
        font-size: 18px;
    }

    .to-archive-empty__text,
    .to-archive-empty__text p {
        font-size: 12.5px;
    }

}


/* =========================================================
   11. SMALL MOBILE
   <= 480px
   ========================================================= */

@media (max-width: 480px) {

    .to-archive-hero {
        padding-block: 24px 22px;
    }

    .to-archive-title .elementor-heading-title {
        font-size: 28px;
    }

    .to-archive-toolbar__top {
        flex-direction: column;
        align-items: flex-start;

        gap: 5px;
    }

    .to-archive-nav .elementor-icon-list-items {
        gap: 5px !important;
    }

    .to-archive-nav .elementor-icon-list-item > a {
        min-height: 29px;

        padding: 6px 8px !important;

        font-size: 9px !important;
    }

}


/* =========================================================
   12. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .to-archive-nav .elementor-icon-list-item > a {
        transition: none !important;
    }

    .to-archive-nav .elementor-icon-list-item > a:hover {
        transform: none !important;
    }

}