/* ==========================================================
   Hammer AnzeigenMarkt
   Zentrale Frontend-CSS
   Version: 1.1
   Stand: 14.07.2026
   ========================================================== */

:root {
    --azm-primary: #0b4fa2;
    --azm-primary-dark: #083d7d;
    --azm-primary-soft: #eaf3ff;
    --azm-background: #fffff0;
    --azm-surface: #fffff0;
    --azm-card: #f7f9fc;
    --azm-border: #d8e2ef;
    --azm-border-strong: #c5d2e1;
    --azm-text: #222222;
    --azm-text-soft: #4f5f72;
    --azm-muted: #666666;
    --azm-radius-small: 8px;
    --azm-radius-medium: 10px;
    --azm-radius-large: 14px;
    --azm-shadow-small: 0 8px 20px rgba(11, 79, 162, .10);
    --azm-wrapper-width: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    padding: 40px;
    color: var(--azm-text);
    background: var(--azm-background);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--azm-primary);
}

button,
input,
select,
textarea {
    font: inherit;
}

.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    border-radius: var(--azm-radius-medium);
    background: var(--azm-surface);
    box-shadow: 0 8px 28px rgba(31, 41, 55, .06);
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    color: var(--azm-primary);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.azm-site-header {
    margin-bottom: 24px;
}

.azm-brand-row {
    display: grid;
    grid-template-columns: minmax(250px, 330px) minmax(0, 1fr) minmax(220px, 250px);
    gap: 22px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #0b6fbd;
    border-radius: var(--azm-radius-large);
    background: var(--azm-surface);
}

.azm-customer-logo,
.azm-provider-logo {
    display: flex;
    align-items: center;
}

.azm-customer-logo {
    justify-content: flex-start;
}

.azm-provider-logo {
    justify-content: flex-end;
}

.azm-logo-placeholder {
    width: 100%;
    min-height: 72px;
    display: grid;
    place-items: center;
    padding: 12px;
    border: 1px dashed var(--azm-border-strong);
    border-radius: var(--azm-radius-medium);
    color: var(--azm-muted);
    background: var(--azm-card);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.azm-logo-image {
    max-width: 220px;
    max-height: 82px;
    display: block;
    object-fit: contain;
}

.azm-market-graphic {
    width: 300px;
    max-width: 300px;
    height: 100px;
    max-height: 100px;
}

.azm-market-brand strong,
.azm-market-brand span {
    display: block;
}

.azm-market-brand strong {
    color: var(--azm-primary);
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.2;
}

.azm-market-brand span {
    margin-top: 5px;
    color: var(--azm-muted);
    font-size: 14px;
}

.azm-provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--azm-border);
    border-radius: 999px;
    color: var(--azm-text-soft);
    background: #fbfcfe;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.azm-main-nav {
    margin-top: 12px;
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius-medium);
    background: var(--azm-surface);
}

.azm-nav-toggle {
    display: none;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    text-align: left;
    font-weight: 700;
    cursor: pointer;
}

.azm-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 8px;
    list-style: none;
}

.azm-nav-list a,
.azm-nav-disabled {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 13px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.azm-nav-list a {
    color: var(--azm-text);
}

.azm-nav-list a:hover,
.azm-nav-list a.active {
    color: var(--azm-primary);
    background: var(--azm-primary-soft);
}

.azm-nav-disabled {
    color: #9aa4b2;
    cursor: not-allowed;
}

.azm-hero {
    margin-bottom: 38px;
    padding: 30px;
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius-large);
    background:
        radial-gradient(circle at top right, rgba(11, 79, 162, .10), transparent 36%),
        linear-gradient(135deg, #f8fbff, #eef5ff);
}

.azm-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--azm-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.azm-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
}

.azm-hero p {
    max-width: 800px;
    margin: 16px 0 26px;
    color: var(--azm-text-soft);
    font-size: 18px;
    line-height: 1.6;
}

.hero-search {
    display: flex;
    gap: 12px;
    max-width: 760px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    min-height: 50px;
    padding: 15px 17px;
    border: 1px solid #cfd9e6;
    border-radius: var(--azm-radius-medium);
    background: #ffffff;
    color: var(--azm-text);
    font-size: 17px;
    outline: none;
}

.hero-search input:focus {
    border-color: var(--azm-primary);
    box-shadow: 0 0 0 3px rgba(11, 79, 162, .12);
}

.hero-search button {
    min-height: 50px;
    padding: 0 26px;
    border: 0;
    border-radius: var(--azm-radius-medium);
    color: #ffffff;
    background: var(--azm-primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.hero-search button:hover {
    background: var(--azm-primary-dark);
}

.azm-section-heading {
    margin-bottom: 8px;
}

.azm-section-heading h2 {
    margin: 0;
    color: var(--azm-primary);
}

.azm-section-heading p {
    margin: 7px 0 0;
    color: var(--azm-muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 25px;
}

.category-card {
    min-height: 160px;
    display: block;
    padding: 18px;
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius-small);
    color: var(--azm-text);
    background: var(--azm-card);
    text-decoration: none;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.category-card:hover {
    border-color: var(--azm-primary);
    background: #eef5ff;
    transform: translateY(-2px);
    box-shadow: var(--azm-shadow-small);
}

.category-icon {
    margin-bottom: 14px;
    font-size: 42px;
    line-height: 1;
}

.category-title {
    font-size: 18px;
    font-weight: 700;
}

.category-count {
    margin-top: 14px;
    color: var(--azm-muted);
    font-size: 14px;
    font-weight: 700;
}

.azm-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: var(--azm-radius-small);
    text-decoration: none;
    font-weight: 700;
}

.azm-button-secondary {
    color: #23435f;
    border-color: var(--azm-border-strong);
    background: #ffffff;
}

.azm-button-secondary:hover {
    border-color: var(--azm-primary);
    color: var(--azm-primary);
    background: #f8fbff;
}

.azm-card {
    padding: 22px;
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius-large);
    background: var(--azm-surface);
}

.azm-note {
    padding: 14px 16px;
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius-medium);
    color: var(--azm-text-soft);
    background: #f8fbff;
}

.azm-ad-slot {
    display: grid;
    place-items: center;
    gap: 5px;
    overflow: hidden;
    border: 1px dashed #9eb3ca;
    border-radius: var(--azm-radius-medium);
    color: #61758b;
    background:
        repeating-linear-gradient(
            -45deg,
            #f7faff,
            #f7faff 12px,
            #eef4fb 12px,
            #eef4fb 24px
        );
    text-align: center;
}

.azm-ad-slot-label {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--azm-primary);
    background: rgba(255, 255, 255, .88);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.azm-ad-slot-homepage-top {
    width: min(100%, 728px);
    aspect-ratio: 728 / 90;
    min-height: 90px;
    margin: 0 auto 24px;
}

.azm-ad-slot-homepage-sidebar {
    width: 160px;
    min-height: 600px;
}

.azm-ad-slot-homepage-rectangle {
    width: 100%;
    max-width: 300px;
    min-height: 250px;
}

.azm-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 320px);
    gap: 26px;
    align-items: start;
}

.azm-home-main {
    min-width: 0;
}

.azm-home-sidebar {
    display: grid;
    justify-items: center;
    gap: 22px;
}

.azm-home-section + .azm-home-section {
    margin-top: 36px;
}

.azm-section-heading-with-action {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.azm-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.azm-latest-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius-medium);
    color: var(--azm-text);
    background: var(--azm-surface);
    text-decoration: none;
    transition:
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.azm-latest-card:hover {
    border-color: var(--azm-primary);
    transform: translateY(-2px);
    box-shadow: var(--azm-shadow-small);
}

.azm-latest-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef2f6;
}

.azm-latest-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.azm-latest-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 42px;
}

.azm-latest-body {
    padding: 14px;
}

.azm-latest-body h3 {
    margin: 0 0 10px;
    color: var(--azm-primary);
    font-size: 17px;
    line-height: 1.35;
}

.azm-latest-price,
.azm-latest-location {
    display: block;
}

.azm-latest-price {
    color: #173552;
    font-size: 17px;
}

.azm-latest-location {
    margin-top: 8px;
    color: var(--azm-muted);
    font-size: 13px;
}

.azm-business-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        radial-gradient(circle at right top, rgba(11, 79, 162, .08), transparent 38%),
        #f8fbff;
}

.azm-business-teaser h2 {
    margin: 0;
    color: var(--azm-primary);
}

.azm-business-teaser p {
    max-width: 700px;
    margin: 10px 0 0;
    color: var(--azm-text-soft);
}

.azm-button-disabled {
    flex: 0 0 auto;
    color: #8793a1;
    cursor: not-allowed;
    background: #f3f5f7;
}

.azm-site-footer {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--azm-border);
}

.azm-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.azm-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--azm-muted);
    font-size: 14px;
}

.azm-footer-links a {
    color: var(--azm-muted);
    text-decoration: none;
}

.azm-footer-provider {
    color: var(--azm-muted);
    text-align: right;
    font-size: 12px;
}

@media (max-width: 1050px) {
    .azm-home-layout {
        grid-template-columns: minmax(0, 1fr) 200px;
    }

    .azm-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body {
        padding: 20px;
    }

    .wrapper {
        padding: 22px;
    }

    .azm-brand-row {
        grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
    }

    .azm-provider-logo {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .azm-home-layout {
        grid-template-columns: 1fr;
    }

    .azm-home-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .azm-ad-slot-homepage-sidebar {
        width: 100%;
        min-height: 250px;
        aspect-ratio: 300 / 250;
    }
}

@media (max-width: 700px) {
    body {
        padding: 10px;
    }

    .wrapper {
        padding: 14px;
    }

    .azm-brand-row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 15px;
    }

    .azm-provider-logo {
        grid-column: auto;
    }

    .azm-nav-toggle {
        display: block;
    }

    .azm-nav-list {
        display: none;
        align-items: stretch;
        flex-direction: column;
        padding-top: 0;
    }

    .azm-main-nav.is-open .azm-nav-list {
        display: flex;
    }

    .azm-nav-list a,
    .azm-nav-disabled {
        width: 100%;
    }

    .azm-hero {
        padding: 22px;
        margin-bottom: 28px;
    }

    .azm-hero p {
        font-size: 16px;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search button {
        width: 100%;
    }

    .category-grid,
    .azm-latest-grid,
    .azm-home-sidebar {
        grid-template-columns: 1fr;
    }

    .azm-section-heading-with-action,
    .azm-business-teaser {
        align-items: stretch;
        flex-direction: column;
    }

    .azm-ad-slot-homepage-sidebar,
    .azm-ad-slot-homepage-rectangle {
        width: 100%;
        max-width: 300px;
        min-height: 250px;
        aspect-ratio: 300 / 250;
    }

    .azm-footer-grid {
        grid-template-columns: 1fr;
    }

    .azm-footer-provider {
        text-align: left;
    }
}

/* ==========================================================
   20. Header 1.0 – Zentrierung und Feinschliff
   ========================================================== */

.azm-market-brand {
    min-width: 0;
    text-align: center;
}

.azm-market-brand strong {
    font-size: clamp(26px, 3.2vw, 34px);
}

.azm-market-brand span {
    margin-top: 8px;
    font-size: 16px;
}

.azm-provider-logo-image {
    width: 300px;
    max-width: 300px;
    height: 100px;
    max-height: 100px;
}

/* ==========================================================
   21. Footer 1.0
   ========================================================== */

.azm-footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.azm-footer-column h2 {
    margin: 0 0 12px;
    color: var(--azm-primary);
    font-size: 16px;
}

.azm-footer-column ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.azm-footer-column a,
.azm-footer-placeholder {
    color: var(--azm-muted);
    font-size: 14px;
    text-decoration: none;
}

.azm-footer-column a:hover {
    color: var(--azm-primary);
    text-decoration: underline;
}

.azm-footer-placeholder {
    opacity: .68;
}

.azm-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--azm-border);
    color: var(--azm-muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    .azm-footer-columns {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .azm-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==========================================================
   25. Kategorieseite
   ========================================================== */

.azm-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--azm-muted);
    font-size: 14px;
}

.azm-breadcrumb a {
    color: var(--azm-primary);
    text-decoration: none;
}

.azm-breadcrumb a:hover {
    text-decoration: underline;
}

.azm-category-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
    padding: 26px 28px;
    border: 1px solid #0b6fbd;
    border-radius: var(--azm-radius-large);
    background:
        radial-gradient(circle at right top, rgba(11, 79, 162, .09), transparent 36%),
        linear-gradient(135deg, #f8fbff, #eef5ff);
}

.azm-category-hero h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.18;
}

.azm-category-hero p {
    margin: 12px 0 0;
    color: var(--azm-text-soft);
    font-size: 17px;
}

.azm-category-summary {
    margin-top: 14px;
    color: var(--azm-muted);
}

.azm-category-summary strong {
    color: var(--azm-primary);
    font-size: 20px;
}

.azm-category-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.azm-button-primary {
    color: #fff;
    background: var(--azm-primary);
}

.azm-button-primary:hover {
    color: #fff;
    background: var(--azm-primary-dark);
}

.azm-subcategories {
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius-medium);
    background: #f8fbff;
}

.azm-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.azm-subcard {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 14px;
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius-small);
    color: #24374b;
    background: #fff;
    text-decoration: none;
    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.azm-subcard:hover {
    border-color: var(--azm-primary);
    background: #f1f7fd;
    transform: translateY(-1px);
}

.azm-subicon {
    font-size: 27px;
}

.azm-subcount {
    display: block;
    margin-top: 3px;
    color: var(--azm-muted);
    font-size: 13px;
}

.azm-category-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius-medium);
    background: #fff;
}

.azm-category-toolbar-main {
    display: flex;
    align-items: end;
    gap: 16px;
    min-width: 0;
}

.azm-category-result-count {
    flex: 0 0 auto;
    padding-bottom: 10px;
    color: var(--azm-muted);
}

.azm-category-result-count strong {
    color: var(--azm-primary);
}

.azm-category-search {
    display: flex;
    flex: 1;
    gap: 8px;
    min-width: 240px;
}

.azm-category-search input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--azm-border-strong);
    border-radius: var(--azm-radius-small);
    outline: none;
}

.azm-category-search input:focus,
.azm-category-sort select:focus {
    border-color: var(--azm-primary);
    box-shadow: 0 0 0 3px rgba(11, 79, 162, .12);
}

.azm-category-search button {
    min-height: 44px;
    padding: 0 17px;
    border: 0;
    border-radius: var(--azm-radius-small);
    color: #fff;
    background: var(--azm-primary);
    font-weight: 700;
    cursor: pointer;
}

.azm-category-search button:hover {
    background: var(--azm-primary-dark);
}

.azm-category-sort select {
    min-width: 220px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--azm-border-strong);
    border-radius: var(--azm-radius-small);
    background: #fff;
    outline: none;
}

.azm-category-list {
    display: grid;
    gap: 16px;
}

.azm-category-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--azm-border);
    border-left: 5px solid var(--azm-primary);
    border-radius: var(--azm-radius-medium);
    background: #fff;
    transition:
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.azm-category-card:hover {
    border-color: #b8c9dc;
    transform: translateY(-1px);
    box-shadow: var(--azm-shadow-small);
}

.azm-category-image {
    width: 170px;
    height: 135px;
    display: block;
    overflow: hidden;
    border-radius: var(--azm-radius-small);
    background: #eef2f6;
}

.azm-category-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.azm-category-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 38px;
}

.azm-category-card-content {
    min-width: 0;
}

.azm-category-card-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.azm-category-type {
    display: inline-block;
    margin-bottom: 9px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--azm-primary);
    background: var(--azm-primary-soft);
    font-size: 12px;
    font-weight: 700;
}

.azm-category-title {
    margin: 0 0 6px;
    font-size: 22px;
}

.azm-category-title a {
    color: var(--azm-primary);
    text-decoration: none;
}

.azm-category-title a:hover {
    text-decoration: underline;
}

.azm-category-name {
    color: var(--azm-muted);
    font-size: 13px;
}

.azm-category-price {
    flex: 0 0 auto;
    color: #173552;
    font-size: 21px;
    font-weight: 800;
    white-space: nowrap;
}

.azm-category-description {
    margin: 14px 0;
    color: #384d60;
    line-height: 1.6;
}

.azm-category-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 13px;
    border-top: 1px solid #e2e7ec;
    color: var(--azm-muted);
    font-size: 13px;
}

.azm-category-empty,
.azm-category-empty-page {
    padding: 55px 25px;
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius-medium);
    background: #fff;
    text-align: center;
}

.azm-category-empty-page {
    margin-bottom: 28px;
}

.azm-empty-icon {
    font-size: 44px;
}

.azm-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
}

.azm-pagination a,
.azm-pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--azm-border-strong);
    border-radius: var(--azm-radius-small);
    color: #23435f;
    background: #fff;
    text-decoration: none;
}

.azm-pagination a:hover {
    border-color: var(--azm-primary);
    color: var(--azm-primary);
}

.azm-pagination .active {
    color: #fff;
    border-color: var(--azm-primary);
    background: var(--azm-primary);
}

@media (max-width: 820px) {
    .azm-category-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .azm-category-toolbar {
        grid-template-columns: 1fr;
    }

    .azm-category-toolbar-main {
        align-items: stretch;
        flex-direction: column;
    }

    .azm-category-result-count {
        padding-bottom: 0;
    }

    .azm-category-sort select {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .azm-category-hero {
        padding: 22px;
    }

    .azm-category-actions {
        flex-direction: column;
    }

    .azm-category-actions .azm-button {
        width: 100%;
    }

    .azm-category-search {
        min-width: 0;
        flex-direction: column;
    }

    .azm-category-search button {
        width: 100%;
    }

    .azm-category-card {
        grid-template-columns: 1fr;
    }

    .azm-category-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .azm-category-card-top {
        flex-direction: column;
    }

    .azm-category-price {
        white-space: normal;
    }
}

/* ==========================================================
   26. Anzeige aufgeben
   ========================================================== */

.azm-new-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 24px 26px;
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius-large);
    background:
        radial-gradient(circle at right top, rgba(11, 79, 162, .09), transparent 36%),
        linear-gradient(135deg, #f8fbff, #eef5ff);
}

.azm-new-hero h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
}

.azm-new-hero p {
    margin: 10px 0 0;
    color: var(--azm-text-soft);
}

.azm-new-user {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid var(--azm-border);
    border-radius: 999px;
    color: var(--azm-muted);
    background: #fff;
    font-size: 13px;
}

.azm-form {
    display: grid;
    gap: 24px;
}

.azm-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius-large);
    background: #f8fbff;
}

.azm-form legend {
    padding: 8px 14px;
    border-radius: 8px;
    color: #fff;
    background: var(--azm-primary);
    font-weight: 800;
}

.azm-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.azm-choice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 58px;
    padding: 13px;
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius-small);
    background: #fff;
    cursor: pointer;
}

.azm-choice:hover {
    border-color: var(--azm-primary);
}

.azm-choice input {
    margin-top: 3px;
}

.azm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.azm-form-field {
    margin-bottom: 17px;
}

.azm-form-field:last-child {
    margin-bottom: 0;
}

.azm-form-field > label {
    display: block;
    margin-bottom: 7px;
    color: #27364b;
    font-weight: 700;
}

.azm-form input[type="text"],
.azm-form input[type="email"],
.azm-form input[type="url"],
.azm-form input[type="file"],
.azm-form select,
.azm-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--azm-border-strong);
    border-radius: var(--azm-radius-small);
    color: var(--azm-text);
    background: #fff;
    outline: none;
}

.azm-form textarea {
    min-height: 180px;
    resize: vertical;
}

.azm-form input:focus,
.azm-form select:focus,
.azm-form textarea:focus {
    border-color: var(--azm-primary);
    box-shadow: 0 0 0 3px rgba(11, 79, 162, .12);
}

.azm-price-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.azm-price-input span {
    font-weight: 800;
}

.azm-inline-options {
    min-height: 46px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.azm-inline-options label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.azm-form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 20px;
}

.azm-form-check input {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    margin-top: 2px;
}

.azm-new-submit {
    min-height: 48px;
    border: 0;
}

.help-text {
    color: var(--azm-muted);
    font-size: 14px;
    line-height: 1.5;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.image-preview-item {
    width: 150px;
    padding: 8px;
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius-small);
    background: #fff;
    text-align: center;
}

.image-preview-item img {
    width: 132px;
    height: 96px;
    object-fit: cover;
    border-radius: 6px;
}

.image-preview-item small {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice {
    margin: 20px 0;
    padding: 15px 17px;
    border-radius: var(--azm-radius-small);
}

.notice.success {
    color: #087443;
    border: 1px solid #9bd4b5;
    background: #edf9f2;
}

.notice.error {
    color: #8f1c13;
    border: 1px solid #e1a3a0;
    background: #fff1f0;
}

.notice ul {
    margin-bottom: 0;
}

@media (max-width: 850px) {
    .azm-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .azm-new-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

    .azm-new-user {
        align-self: flex-start;
    }

    .azm-choice-grid,
    .azm-form-grid {
        grid-template-columns: 1fr;
    }

    .azm-form fieldset {
        padding: 18px;
    }

    .azm-new-submit {
        width: 100%;
    }
}
/* HERO-Inhalt wieder über die volle Breite */
.azm-hero-text,
.azm-hero h1,
.azm-hero p,
.hero-search {
    width: 100%;
    max-width: none;
}

.hero-search input {
    width: 100%;
}
/* ==========================================================
   Zufällig ausgewählte Anzeige
   ========================================================== */

.azm-random-panel{
    width:100%;
}

.azm-random-heading{
    margin-bottom:12px;
}

.azm-random-card{
    display:block;
    overflow:hidden;
    text-decoration:none;
    color:inherit;

    background:#fcfeff;
    border:1px solid #b9d9f5;
    border-radius:12px;

    box-shadow:0 2px 8px rgba(23,90,156,.08);

    transition:
        transform .20s ease,
        box-shadow .20s ease,
        border-color .20s ease;
}

.azm-random-card:hover{
    transform:translateY(-2px);

    border-color:#7fb4ea;

    box-shadow:0 6px 16px rgba(23,90,156,.16);
}

.azm-random-image img{
    display:block;
    width:100%;
}

.azm-random-body{
    padding:16px;
}

.azm-random-body h3{
    margin:0 0 10px;
    color:#0b4fa2;
}

.azm-random-body strong{
    display:block;
    margin-bottom:8px;
    font-size:18px;
}

.azm-random-body span{
    display:block;
    margin-top:6px;
}

.azm-random-link{
    margin-top:14px;
    font-weight:bold;
    color:#0b4fa2;
}
.azm-random-heading{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    margin-bottom:15px;
}

.azm-random-heading .azm-kicker{
    width:100%;
    text-align:center;
    margin-bottom:8px;
}

.azm-random-heading h2{
    width:100%;
    margin:0;
    text-align:center;
}


/* ==========================================================
   Header-Lichtpunkt – einmalige Rahmenanimation
   ========================================================== */

.azm-brand-row {
    position: relative;
    isolation: isolate;
}

.azm-header-border-tracer {
    position: absolute;
    z-index: 5;
    width: 8px;
    height: 8px;
    pointer-events: none;
    border-radius: 50%;
    background: #0b6fbd;
    box-shadow:
        0 0 5px rgba(11, 111, 189, .95),
        0 0 11px rgba(11, 111, 189, .72),
        0 0 18px rgba(11, 111, 189, .38);
    opacity: 0;
    transform: translate(-50%, -50%);
    will-change: left, top, opacity;
}

.azm-header-border-tracer.is-running {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .azm-header-border-tracer {
        display: none;
    }
}
/* ==========================================================
   Elfenbein-Hintergrund verbindlich herstellen
   ========================================================== */

html,
body {
    background-color: #fffff0;
}

.wrapper {
    background-color: #fffff0;
}
.azm-brand-row{
    display:grid;
    grid-template-columns:300px minmax(0, 1fr) 300px;
    align-items:center;
    gap:24px;
}

.azm-customer-logo,
.azm-provider-logo{
    width:300px;
}

.azm-market-brand{
    width:100%;
    margin:0;
    padding:0;
    text-align:center;
    justify-self:center;
}
/* ==========================================================
   Allgemeine Formular-Buttons
   ========================================================== */

form button[type="submit"],
form input[type="submit"] {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid var(--azm-primary);
    border-radius: var(--azm-radius-small);
    color: #ffffff;
    background: var(--azm-primary);
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
}

form button[type="submit"]:hover,
form input[type="submit"]:hover {
    color: #ffffff;
    border-color: var(--azm-primary-dark);
    background: var(--azm-primary-dark);
}

form button[type="submit"]:focus,
form input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 79, 162, .18);
}