/* ==========================================================================
   ARG Baumaschinen Manager – Frontend
   ========================================================================== */

.arg-bm-container,
.arg-bm-submit,
.arg-bm-dashboard-front {
    --bm-accent: #d97706;
    --bm-accent-dark: #b45309;
    --bm-ink: #16202b;
    --bm-muted: #5c6b7a;
    --bm-line: #e2e6ea;
    --bm-surface: #f6f7f9;
    --bm-radius: 12px;
    --bm-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}

.arg-bm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

/* --------------------------------------------------------------- Buttons */
.arg-bm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}

.arg-bm-btn:focus-visible {
    outline: 3px solid rgba(217, 119, 6, .45);
    outline-offset: 2px;
}

.arg-bm-btn-primary { background: var(--bm-accent); color: #fff; }
.arg-bm-btn-primary:hover { background: var(--bm-accent-dark); color: #fff; }

.arg-bm-btn-outline { background: transparent; border-color: currentColor; color: var(--bm-ink); }
.arg-bm-btn-outline:hover { background: var(--bm-ink); border-color: var(--bm-ink); color: #fff; }

.arg-bm-btn-ghost { background: var(--bm-surface); color: var(--bm-ink); border-color: var(--bm-line); }
.arg-bm-btn-ghost:hover { background: #ebedf0; color: var(--bm-ink); }

.arg-bm-btn-danger { background: transparent; color: #b42318; border-color: #f3c0bb; }
.arg-bm-btn-danger:hover { background: #b42318; color: #fff; }

.arg-bm-btn-large { padding: 15px 32px; font-size: 1.0625rem; }
.arg-bm-btn-small { padding: 7px 14px; font-size: .875rem; }
.arg-bm-btn-block { display: flex; width: 100%; }
.arg-bm-btn.is-busy { opacity: .6; pointer-events: none; }

.arg-bm-icon-btn {
    border: 1px solid var(--bm-line);
    background: #fff;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--bm-muted);
}
.arg-bm-icon-btn:hover { color: #b42318; border-color: #f3c0bb; }

/* ------------------------------------------------------------------ Hero */
.arg-bm-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
    padding: 64px 24px;
    margin-bottom: 40px;
    background: var(--bm-ink) center/cover no-repeat;
    color: #fff;
    text-align: center;
}
.arg-bm-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 17, 24, .55), rgba(11, 17, 24, .75)); }
.arg-bm-hero-content { position: relative; max-width: 760px; }
.arg-bm-hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; color: #fff; }
.arg-bm-hero-sub { margin: 0 0 16px; font-size: clamp(1.05rem, 2.2vw, 1.4rem); font-weight: 400; opacity: .92; }
.arg-bm-hero-text { margin: 0 0 28px; font-size: 1.05rem; line-height: 1.65; opacity: .88; }
.arg-bm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0; }
.arg-bm-hero .arg-bm-btn-outline { color: #fff; }
.arg-bm-hero .arg-bm-btn-outline:hover { background: #fff; color: var(--bm-ink); border-color: #fff; }

/* ----------------------------------------------------------------- Stats */
.arg-bm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.arg-bm-stat-box {
    padding: 28px 20px;
    background: var(--bm-surface);
    border-radius: var(--bm-radius);
    text-align: center;
}
.arg-bm-stat-number { display: block; font-size: 2.25rem; font-weight: 800; color: var(--bm-accent); line-height: 1.1; }
.arg-bm-stat-label { color: var(--bm-muted); font-size: .9rem; }

/* ------------------------------------------------------------------ Grid */
.arg-bm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 28px 0;
}
.arg-bm-columns-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.arg-bm-columns-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.arg-bm-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.arg-bm-card:hover { box-shadow: var(--bm-shadow); transform: translateY(-3px); }
.arg-bm-card.arg-bm-status-is-verkauft,
.arg-bm-card.arg-bm-status-is-vermietet { opacity: .78; }

.arg-bm-card-image { position: relative; aspect-ratio: 4 / 3; background: var(--bm-surface); overflow: hidden; }
.arg-bm-card-image a { display: block; width: 100%; height: 100%; }
.arg-bm-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.arg-bm-card:hover .arg-bm-card-image img { transform: scale(1.04); }

.arg-bm-no-image {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    color: #9aa5b1; font-size: .85rem;
}

.arg-bm-type-badge,
.arg-bm-status-badge {
    position: absolute;
    top: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
}
.arg-bm-type-badge { left: 12px; }
.arg-bm-status-badge { right: 12px; }
.arg-bm-type-vermietung { background: #1d4ed8; }
.arg-bm-type-verkauf { background: #b45309; }
.arg-bm-type-beides { background: #047857; }
.arg-bm-status-badge.arg-bm-status-vermietet { background: #475569; }
.arg-bm-status-badge.arg-bm-status-verkauft { background: #b42318; }
.arg-bm-status-badge.arg-bm-status-reserviert { background: #a16207; }

.arg-bm-card-content { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.arg-bm-card-title { margin: 0 0 14px; font-size: 1.15rem; line-height: 1.35; }
.arg-bm-card-title a { color: var(--bm-ink); text-decoration: none; }
.arg-bm-card-title a:hover { color: var(--bm-accent); }

.arg-bm-card-specs { list-style: none; margin: 0 0 16px; padding: 0; font-size: .875rem; }
.arg-bm-card-specs li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--bm-line); }
.arg-bm-card-specs li:last-child { border-bottom: 0; }
.arg-bm-spec-key { color: var(--bm-muted); }

.arg-bm-card-price { margin: auto 0 16px; padding-top: 14px; border-top: 1px solid var(--bm-line); }
.arg-bm-price { font-size: 1.4rem; font-weight: 800; color: var(--bm-ink); }
.arg-bm-period, .arg-bm-vat-note { color: var(--bm-muted); font-size: .85rem; margin-left: 6px; }

/* ------------------------------------------------------------------ List */
.arg-bm-list { margin: 28px 0; }
.arg-bm-list-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto auto;
    gap: 20px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
    margin-bottom: 12px;
    background: #fff;
}
.arg-bm-list-image img { width: 110px; height: 82px; object-fit: cover; border-radius: 8px; }
.arg-bm-list-info h3 { margin: 0 0 6px; font-size: 1.05rem; }
.arg-bm-list-info h3 a { color: var(--bm-ink); text-decoration: none; }
.arg-bm-list-meta { margin: 0; color: var(--bm-muted); font-size: .875rem; }
.arg-bm-list-price { text-align: right; }

/* ---------------------------------------------------------------- Filter */
.arg-bm-filter {
    padding: 20px;
    margin-bottom: 28px;
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
}
.arg-bm-filter-search { display: flex; gap: 10px; margin-bottom: 16px; }
.arg-bm-filter-search input { flex: 1; }
.arg-bm-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}
.arg-bm-filter-group label { display: block; margin-bottom: 5px; font-size: .8rem; font-weight: 700; color: var(--bm-muted); text-transform: uppercase; letter-spacing: .03em; }

.arg-bm-filter input,
.arg-bm-filter select,
.arg-bm-submit input,
.arg-bm-submit select,
.arg-bm-submit textarea,
.arg-bm-contact-form input,
.arg-bm-contact-form textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cbd3da;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    color: var(--bm-ink);
}
.arg-bm-filter input:focus,
.arg-bm-filter select:focus,
.arg-bm-submit input:focus,
.arg-bm-submit select:focus,
.arg-bm-submit textarea:focus,
.arg-bm-contact-form input:focus,
.arg-bm-contact-form textarea:focus {
    outline: none;
    border-color: var(--bm-accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, .18);
}

.arg-bm-filter-more { margin-top: 14px; }
.arg-bm-filter-more summary { cursor: pointer; font-weight: 600; color: var(--bm-muted); }
.arg-bm-filter-more[open] summary { margin-bottom: 12px; }
.arg-bm-filter-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.arg-bm-filter-count { color: var(--bm-muted); font-size: .9rem; }

/* ------------------------------------------------------------ Kategorien */
.arg-bm-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 28px 0;
}
.arg-bm-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 26px 16px;
    background: #fff;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
    text-align: center;
    text-decoration: none;
    color: var(--bm-ink);
    transition: box-shadow .2s ease, transform .2s ease;
}
.arg-bm-category-card:hover { box-shadow: var(--bm-shadow); transform: translateY(-3px); color: var(--bm-accent); }
.arg-bm-category-icon { font-size: 2.25rem; }
.arg-bm-category-name { font-weight: 700; }
.arg-bm-category-count { color: var(--bm-muted); font-size: .85rem; }

/* -------------------------------------------------------------- Detailseite */
.arg-bm-detail { max-width: 1200px; margin: 0 auto; }
.arg-bm-detail-header { margin-bottom: 28px; }
.arg-bm-detail-badges { display: flex; gap: 8px; margin-bottom: 12px; }
.arg-bm-detail-badges .arg-bm-type-badge { position: static; }
.arg-bm-detail-title { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; }
.arg-bm-detail-sub { margin: 0; color: var(--bm-muted); }

.arg-bm-detail-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 36px; align-items: start; }

.arg-bm-gallery-main img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--bm-radius); background: var(--bm-surface); }
.arg-bm-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.arg-bm-thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; line-height: 0; }
.arg-bm-thumb img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }
.arg-bm-thumb.is-active, .arg-bm-thumb:hover { border-color: var(--bm-accent); }

.arg-bm-block { margin-top: 40px; }
.arg-bm-block h2 { margin: 0 0 18px; padding-bottom: 10px; font-size: 1.3rem; border-bottom: 2px solid var(--bm-accent); }

.arg-bm-attributes { margin: 0; }
.arg-bm-attributes > div { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--bm-line); }
.arg-bm-attributes dt { margin: 0; color: var(--bm-muted); }
.arg-bm-attributes dd { margin: 0; font-weight: 600; }

.arg-bm-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 4px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.arg-bm-features-list li { padding: 7px 0 7px 24px; position: relative; border-bottom: 1px solid var(--bm-line); }
.arg-bm-features-list li::before { content: "✓"; position: absolute; left: 0; color: #047857; font-weight: 700; }

.arg-bm-price-card {
    position: sticky;
    top: 24px;
    padding: 26px;
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
}
.arg-bm-price-large { font-size: 2.1rem; font-weight: 800; line-height: 1.1; }
.arg-bm-price-card .arg-bm-period { display: block; margin: 4px 0 0; font-size: 1rem; }
.arg-bm-price-note { margin-top: 6px; color: var(--bm-muted); font-size: .875rem; }
.arg-bm-availability-warning {
    margin: 16px 0 0;
    padding: 10px 12px;
    background: #fef3c7;
    border-radius: 8px;
    color: #92400e;
    font-size: .875rem;
}
.arg-bm-price-actions { display: grid; gap: 10px; margin-top: 20px; }
.arg-bm-contact-card { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--bm-line); font-size: .9rem; }
.arg-bm-contact-card p { margin: 0 0 10px; }

/* ------------------------------------------------------------- Formulare */
.arg-bm-contact-form { padding: 26px; background: var(--bm-surface); border-radius: var(--bm-radius); }
.arg-bm-contact-form label { display: block; margin-bottom: 14px; }
.arg-bm-contact-form label > span { display: block; margin-bottom: 5px; font-weight: 600; font-size: .9rem; }
.arg-bm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.arg-bm-check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.arg-bm-check input { width: auto; margin-top: 3px; flex: 0 0 auto; }
.arg-bm-check-privacy { margin: 16px 0 20px; }
.arg-bm-checkline { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; }

.arg-bm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- Meldungen */
.arg-bm-alert {
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid;
    font-size: .95rem;
}
.arg-bm-alert ul { margin: 8px 0 0; padding-left: 20px; }
.arg-bm-alert-success { background: #ecfdf5; border-color: #047857; color: #065f46; }
.arg-bm-alert-error { background: #fef2f2; border-color: #b42318; color: #7f1d1d; }
.arg-bm-alert-info { background: #eff6ff; border-color: #1d4ed8; color: #1e3a8a; }

.arg-bm-empty {
    grid-column: 1 / -1;
    padding: 48px 24px;
    text-align: center;
    background: var(--bm-surface);
    border: 1px dashed var(--bm-line);
    border-radius: var(--bm-radius);
    color: var(--bm-muted);
}
.arg-bm-empty p { margin: 0 0 12px; }

.arg-bm-pagination { display: flex; justify-content: center; margin-top: 32px; }
.arg-bm-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid var(--bm-line);
    border-radius: 8px;
    text-decoration: none;
    color: var(--bm-ink);
}
.arg-bm-pagination .page-numbers.current,
.arg-bm-pagination .page-numbers:hover { background: var(--bm-accent); border-color: var(--bm-accent); color: #fff; }

/* ==========================================================================
   Einreichungs-Assistent
   ========================================================================== */
.arg-bm-submit { max-width: 820px; margin: 0 auto; padding: 0 4px 48px; }
.arg-bm-submit-head { margin-bottom: 24px; }
.arg-bm-submit-head h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3.5vw, 2rem); }
.arg-bm-submit-head p { margin: 0; color: var(--bm-muted); }

.arg-bm-steps {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    counter-reset: bmstep;
}
.arg-bm-steps li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 6px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--bm-muted);
    text-align: center;
    border-top: 3px solid var(--bm-line);
    cursor: default;
}
.arg-bm-steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bm-line);
    color: var(--bm-muted);
    font-size: .85rem;
}
.arg-bm-steps li.is-done { cursor: pointer; }
.arg-bm-steps li.is-done span { background: #047857; color: #fff; }
.arg-bm-steps li.is-done { border-top-color: #047857; }
.arg-bm-steps li.is-active { color: var(--bm-ink); border-top-color: var(--bm-accent); }
.arg-bm-steps li.is-active span { background: var(--bm-accent); color: #fff; }

.arg-bm-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.arg-bm-fieldrow { margin-bottom: 20px; position: relative; }
.arg-bm-label { display: block; margin-bottom: 6px; font-weight: 600; }
.arg-bm-label em { color: #b42318; font-style: normal; }
.arg-bm-hint { display: block; margin-top: 6px; color: var(--bm-muted); font-size: .82rem; }
.arg-bm-error { display: block; margin-top: 6px; color: #b42318; font-size: .82rem; font-weight: 600; }
.arg-bm-submit .has-error { border-color: #b42318; }
.arg-bm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.arg-bm-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.arg-bm-choices.has-error { outline: 2px solid #b42318; outline-offset: 6px; border-radius: 10px; }
.arg-bm-choice { position: relative; display: block; cursor: pointer; }
.arg-bm-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.arg-bm-choice-body {
    display: block;
    padding: 16px;
    border: 2px solid var(--bm-line);
    border-radius: 10px;
    background: #fff;
    transition: border-color .18s ease, background-color .18s ease;
}
.arg-bm-choice-body strong { display: block; margin-bottom: 3px; }
.arg-bm-choice-body small { color: var(--bm-muted); }
.arg-bm-choice input:checked + .arg-bm-choice-body { border-color: var(--bm-accent); background: #fffbeb; }
.arg-bm-choice input:focus-visible + .arg-bm-choice-body { outline: 3px solid rgba(217, 119, 6, .45); outline-offset: 2px; }

.arg-bm-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: var(--bm-surface);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}
.arg-bm-switch input { width: auto; }

.arg-bm-input-affix { position: relative; }
.arg-bm-input-affix input { padding-right: 48px; }
.arg-bm-input-affix span {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--bm-muted);
    font-weight: 600;
    pointer-events: none;
}

.arg-bm-details { margin-bottom: 20px; border: 1px solid var(--bm-line); border-radius: 10px; }
.arg-bm-details > summary { padding: 14px 16px; cursor: pointer; font-weight: 600; }
.arg-bm-details[open] > summary { border-bottom: 1px solid var(--bm-line); }
.arg-bm-details > *:not(summary) { margin: 16px; }

.arg-bm-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px 16px;
}
.arg-bm-feature { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.arg-bm-feature input { width: auto; }

.arg-bm-spec-row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 10px; margin-bottom: 10px; }

/* Dropzone */
.arg-bm-dropzone {
    border: 2px dashed #c3ccd5;
    border-radius: var(--bm-radius);
    background: var(--bm-surface);
    padding: 32px 20px;
    text-align: center;
    transition: border-color .18s ease, background-color .18s ease;
    cursor: pointer;
}
.arg-bm-dropzone.is-over { border-color: var(--bm-accent); background: #fffbeb; }
.arg-bm-dropzone.is-full { opacity: .5; pointer-events: none; }
.arg-bm-dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.arg-bm-dropzone-inner small { color: var(--bm-muted); font-size: .8rem; }

.arg-bm-uploads {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.arg-bm-upload {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bm-surface);
    border: 2px solid transparent;
    cursor: grab;
}
.arg-bm-upload img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arg-bm-upload.is-dragging { opacity: .4; }
.arg-bm-upload.is-main { border-color: var(--bm-accent); }
.arg-bm-upload-flag {
    position: absolute;
    left: 6px;
    bottom: 6px;
    display: none;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--bm-accent);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
}
.arg-bm-upload.is-main .arg-bm-upload-flag { display: block; }
.arg-bm-upload-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 24, 31, .72);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}
.arg-bm-upload-remove:hover { background: #b42318; }
.arg-bm-upload.is-loading { display: flex; align-items: center; justify-content: center; }
.arg-bm-spinner {
    width: 24px; height: 24px;
    border: 3px solid var(--bm-line);
    border-top-color: var(--bm-accent);
    border-radius: 50%;
    animation: arg-bm-spin .8s linear infinite;
}
@keyframes arg-bm-spin { to { transform: rotate(360deg); } }

.arg-bm-upload-msg { margin: 10px 0 0; font-size: .85rem; }
.arg-bm-upload-msg-error { color: #b42318; }

.arg-bm-review-note {
    padding: 12px 14px;
    background: #eff6ff;
    border-radius: 8px;
    color: #1e3a8a;
    font-size: .9rem;
}

.arg-bm-submit-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--bm-line);
}
.arg-bm-submit-nav-right { margin-left: auto; display: flex; gap: 10px; }
.arg-bm-noscript { color: var(--bm-muted); font-size: .85rem; }

.arg-bm-success-card {
    padding: 44px 28px;
    text-align: center;
    background: var(--bm-surface);
    border-radius: var(--bm-radius);
}
.arg-bm-success-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; margin-bottom: 16px;
    border-radius: 50%; background: #047857; color: #fff; font-size: 28px;
}
.arg-bm-success-title { margin: 18px 0; font-size: 1.1rem; }
.arg-bm-success-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.arg-bm-login-wall {
    padding: 36px 24px;
    text-align: center;
    background: var(--bm-surface);
    border-radius: var(--bm-radius);
}
.arg-bm-login-wall .arg-bm-btn { margin: 6px; }

/* ==========================================================================
   Dashboard „Meine Anzeigen“
   ========================================================================== */
.arg-bm-dashboard-front { max-width: 980px; margin: 0 auto; }
.arg-bm-dash-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.arg-bm-dash-head h2 { margin: 0 0 4px; }
.arg-bm-dash-head p { margin: 0; color: var(--bm-muted); }

.arg-bm-dash-list { list-style: none; margin: 0; padding: 0; }
.arg-bm-dash-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
}
.arg-bm-dash-thumb img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.arg-bm-dash-thumb .arg-bm-no-image { width: 96px; height: 72px; background: var(--bm-surface); border-radius: 8px; }
.arg-bm-dash-main h3 { margin: 0 0 6px; font-size: 1.05rem; }
.arg-bm-dash-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: .875rem; color: var(--bm-muted); }
.arg-bm-dash-missing { margin: 6px 0 0; font-size: .8rem; color: #92400e; }
.arg-bm-dash-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.arg-bm-dash-actions select { padding: 8px 10px; border: 1px solid var(--bm-line); border-radius: 8px; font: inherit; background: #fff; }

.arg-bm-status, .arg-bm-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.arg-bm-status-verfuegbar { background: #d1fae5; color: #065f46; }
.arg-bm-status-reserviert { background: #fef3c7; color: #92400e; }
.arg-bm-status-vermietet { background: #dbeafe; color: #1e40af; }
.arg-bm-status-verkauft { background: #fee2e2; color: #991b1b; }
.arg-bm-pill-review { background: #ede9fe; color: #5b21b6; }

/* -------------------------------------------------------------- Archive */
.arg-bm-archive-header { margin-bottom: 24px; }
.arg-bm-archive-header h1 { margin: 0 0 8px; }
.arg-bm-archive-desc { color: var(--bm-muted); margin-bottom: 12px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------- Responsive */
@media (max-width: 900px) {
    .arg-bm-detail-layout { grid-template-columns: 1fr; }
    .arg-bm-price-card { position: static; }
}

@media (max-width: 720px) {
    .arg-bm-grid-2,
    .arg-bm-form-row { grid-template-columns: 1fr; }
    .arg-bm-list-item { grid-template-columns: 88px 1fr; }
    .arg-bm-list-price, .arg-bm-list-action { grid-column: 2; text-align: left; }
    .arg-bm-list-image img { width: 88px; height: 66px; }
    .arg-bm-dash-item { grid-template-columns: 72px 1fr; }
    .arg-bm-dash-thumb img, .arg-bm-dash-thumb .arg-bm-no-image { width: 72px; height: 56px; }
    .arg-bm-dash-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .arg-bm-steps li { font-size: 0; gap: 0; padding: 10px 2px; }
    .arg-bm-steps li span { font-size: .85rem; }
    .arg-bm-submit-nav { flex-direction: column-reverse; align-items: stretch; }
    .arg-bm-submit-nav-right { margin-left: 0; }
    .arg-bm-submit-nav .arg-bm-btn { width: 100%; }
    .arg-bm-spec-row { grid-template-columns: 1fr 1fr; }
    .arg-bm-spec-row .arg-bm-icon-btn { grid-column: 1 / -1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .arg-bm-card, .arg-bm-card-image img, .arg-bm-category-card, .arg-bm-btn { transition: none; }
    .arg-bm-spinner { animation-duration: 2s; }
}

/* ==========================================================================
   Verwaltungsoberfläche  [baumaschinen_verwaltung]
   ========================================================================== */
.arg-bm-admin-panel,
.arg-bm-login-panel {
    --bm-accent: #d97706;
    --bm-accent-dark: #b45309;
    --bm-ink: #16202b;
    --bm-muted: #5c6b7a;
    --bm-line: #e2e6ea;
    --bm-surface: #f6f7f9;
    --bm-radius: 12px;
    max-width: 1080px;
    margin: 0 auto;
}

/* ------------------------------------------------------------------ Login */
.arg-bm-login-panel { display: flex; justify-content: center; padding: 40px 16px; }
.arg-bm-login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px 32px;
    background: #fff;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .08);
}
.arg-bm-login-card h2 { margin: 0 0 6px; font-size: 1.5rem; }
.arg-bm-login-sub { margin: 0 0 24px; color: var(--bm-muted); font-size: .9rem; }
.arg-bm-login-card input[type="text"],
.arg-bm-login-card input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd3da;
    border-radius: 8px;
    font: inherit;
}
.arg-bm-login-card input:focus { outline: none; border-color: var(--bm-accent); box-shadow: 0 0 0 3px rgba(217, 119, 6, .18); }
.arg-bm-login-card .arg-bm-check { margin: 4px 0 20px; }
.arg-bm-login-foot { margin: 20px 0 0; text-align: center; font-size: .85rem; }

/* ------------------------------------------------------------------ Panel */
.arg-bm-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bm-ink);
    border-radius: var(--bm-radius) var(--bm-radius) 0 0;
    color: #fff;
}
.arg-bm-panel-brand strong { display: block; font-size: 1.15rem; }
.arg-bm-panel-brand span { font-size: .82rem; opacity: .75; }
.arg-bm-panel-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.arg-bm-panel-head .arg-bm-btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }
.arg-bm-panel-head .arg-bm-btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.arg-bm-panel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 24px;
    padding: 0 12px;
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
    border-top: 0;
    border-radius: 0 0 var(--bm-radius) var(--bm-radius);
}
.arg-bm-panel-tabs a {
    padding: 13px 18px;
    border-bottom: 3px solid transparent;
    color: var(--bm-muted);
    font-weight: 600;
    text-decoration: none;
}
.arg-bm-panel-tabs a:hover { color: var(--bm-ink); }
.arg-bm-panel-tabs a.is-active { color: var(--bm-accent); border-bottom-color: var(--bm-accent); }

.arg-bm-panel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.arg-bm-panel-stat {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--bm-line);
    border-left: 4px solid var(--bm-line);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--bm-ink);
}
.arg-bm-panel-stat:hover, .arg-bm-panel-stat.is-active { border-left-color: var(--bm-accent); color: var(--bm-ink); }
.arg-bm-panel-stat-num { display: block; font-size: 1.85rem; font-weight: 800; line-height: 1.1; }
.arg-bm-panel-stat-lbl { color: var(--bm-muted); font-size: .82rem; }

.arg-bm-panel-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px;
    background: var(--bm-surface);
    border-radius: 10px;
}
.arg-bm-panel-filter input[type="search"] { flex: 1 1 200px; }
.arg-bm-panel-filter input,
.arg-bm-panel-filter select {
    padding: 10px 12px;
    border: 1px solid #cbd3da;
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

.arg-bm-panel-form {
    max-width: 680px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
}
.arg-bm-panel-form h3 { margin: 28px 0 6px; padding-top: 20px; border-top: 1px solid var(--bm-line); font-size: 1.05rem; }
.arg-bm-panel-form h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.arg-bm-panel-form input[type="text"],
.arg-bm-panel-form input[type="email"],
.arg-bm-panel-form input[type="tel"],
.arg-bm-panel-form input[type="number"],
.arg-bm-panel-form input[type="password"],
.arg-bm-panel-form select,
.arg-bm-panel-form textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cbd3da;
    border-radius: 8px;
    font: inherit;
}
.arg-bm-panel-form input:focus,
.arg-bm-panel-form select:focus,
.arg-bm-panel-form textarea:focus { outline: none; border-color: var(--bm-accent); box-shadow: 0 0 0 3px rgba(217, 119, 6, .18); }
.arg-bm-panel-form .arg-bm-check { margin-bottom: 10px; }
.arg-bm-panel-form button { margin-top: 22px; }

@media (max-width: 720px) {
    .arg-bm-panel-head { border-radius: 0; }
    .arg-bm-panel-tabs { padding: 0 4px; }
    .arg-bm-panel-tabs a { padding: 12px; font-size: .9rem; }
}
