/* ─── BASE & HEADER (synchronized with ueber-uns.html) ──────────────────── */

:root {
    --primary-color: #255879;
    --primary-hover: rgba(40, 167, 69, 0.1);
    --font-main: 'Poppins', sans-serif;
    --font: 'Poppins', sans-serif;
    --background-gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

img, svg {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

img, svg {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

* {
    cursor: default;
}

button, a, .menu-toggle, .user-profile, .dropdown-item, .menu-dropdown-item,
.login-button, .add-entry-header-btn, .footer-social-icon, .profile-name,
.profile-avatar, .menu-toggle svg, .footer-social-icon svg, h1[onclick],
.header-logo, .header-logo img, input, textarea, select {
    cursor: pointer !important;
}

html {
    scrollbar-width: none;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
html::-webkit-scrollbar { display: none; }

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: #666;
    background-color: white;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    width: 100%;
}

button, input, select, textarea {
    font-family: var(--font-main);
}

/* ─── HEADER ─── */
header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 8vh;
    background-color: var(--primary-color);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0.1vh solid rgba(204, 204, 204, 0.3);
    color: white;
    padding: 0 2vw;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.header-left { justify-self: start; }
.header-right { justify-self: end; position: relative; display: flex; align-items: center; height: 100%; }

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: background 0.18s ease;
}
.menu-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.menu-toggle:active { background: rgba(255, 255, 255, 0.08); }
.menu-toggle svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
}

.menu-dropdown {
    position: fixed;
    top: 8vh;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
    padding: 4vh 0;
}
.menu-dropdown.show {
    display: flex;
    justify-content: center;
}
.menu-dropdown-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11vw;
    padding: 0 2vw;
    position: relative;
}
.menu-dropdown-column { padding: 0; }
.menu-dropdown-column-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
    padding: 1.5vh 0 1vh 0;
    margin-bottom: 0.5vh;
}
.menu-dropdown-item {
    padding: 0.8vh 0;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    font-family: var(--font-main);
    transition: color 0.2s ease;
    color: #555;
    display: block;
    line-height: 1.4;
    font-weight: 500;
}
.menu-dropdown-item:hover { color: var(--primary-color); }
.menu-dropdown-item.active { color: var(--primary-color); font-weight: 600; }
.menu-dropdown-footer {
    position: absolute;
    bottom: 2vh;
    right: 2vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8vh;
}
.menu-dropdown-social { display: flex; gap: 15px; }
.menu-dropdown-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #255879 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.menu-dropdown-social-icon:hover { background-color: #1e4a5f !important; transform: scale(1.1); }
.menu-dropdown-social-icon svg { width: 20px; height: 20px; fill: white; }

.header-logo-container { justify-self: center; overflow: visible; height: 8vh; display: flex; align-items: center; }
.header-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: white !important;
    font-size: 0;
    font-weight: 700;
}
.header-logo img:not(.header-logo-wordmark) {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: smooth;
}
.header-logo-wordmark-wrap {
    height: 26px;
    width: 126px;
    background-image: url('/images/fillZone.svg');
    background-size: auto 76px;
    background-position: -14.5px -22.9px;
    background-repeat: no-repeat;
}
.header-logo-wordmark { display: none; }

.user-profile {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    padding: 8px 26px 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    position: relative;
}
.user-profile:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.8);
}
.user-profile:active {
    background: rgba(245, 245, 247, 0.95);
    transform: scale(0.97);
}
.profile-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #255879;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.01em;
    overflow: visible;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px #255879;
}
.profile-avatar > * { border-radius: 50%; overflow: hidden; }
.profile-avatar.has-image {
    background: #e8eef2;
    font-size: 0;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.profile-avatar.wide-image img {
    max-width: 90%;
    max-height: 60%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}
.profile-name {
    color: #255879 !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(250, 250, 252, 0.88);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 12px 40px rgba(0, 0, 0, 0.16);
    min-width: 200px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    padding: 6px 0;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
    padding: 10px 18px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 13.5px;
    font-family: var(--font-main);
    color: #1d1d1f;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: background-color 0.15s ease;
    border-radius: 0;
}
.dropdown-item:hover { background-color: rgba(0, 0, 0, 0.05); }
.dropdown-item:not(:last-child) { border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.dropdown-item:last-child { color: #ff3b30; }

/* ─── FOOTER ─── */
.a-footer-section {
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--primary-color);
    width: 100%;
    padding: 60px 40px;
    box-sizing: border-box;
    position: relative;
}
.footer-links {
    display: flex;
    justify-content: space-between;
    gap: 2vw;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    padding: 0 5vw;
    width: 100%;
}
.footer-column {
    text-align: left;
    min-width: 0;
    flex: 1;
    max-width: 250px;
    color: white;
}
.footer-column h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    border-bottom: 2px solid white;
    padding-bottom: 8px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column li {
    margin-bottom: 4px;
    color: white !important;
    font-size: 16px;
    opacity: 1 !important;
    line-height: 1.5;
}
.footer-column a {
    color: white !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    opacity: 1 !important;
}
.footer-column a:hover {
    opacity: 1;
    color: white;
    text-decoration: underline;
}
.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    align-items: center;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 1 !important;
    backdrop-filter: none !important;
    filter: none !important;
}
.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.1);
}
.social-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
    opacity: 1;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    margin-top: 20px;
    width: 100%;
}
.footer-bottom p {
    color: white;
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* ─── RESPONSIVE HEADER & FOOTER ─── */
@media (max-width: 1024px) {
    header {
        grid-template-columns: 1fr auto 1fr;
        padding: 0 15px;
        z-index: 1000 !important;
    }
    .header-logo-wordmark-wrap { display: none; }
    .menu-toggle svg {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
    }
    .menu-dropdown {
        top: 8vh !important;
        padding: 0 !important;
        height: auto !important;
        max-height: calc(100vh - 8vh) !important;
        overflow-y: auto !important;
        border-bottom: 1px solid rgba(204, 204, 204, 0.3) !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
        display: none;
        width: 100% !important;
        min-width: auto !important;
        left: 0 !important;
        right: 0 !important;
    }
    .menu-dropdown.show { display: flex !important; flex-direction: column !important; }
    .menu-dropdown-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .menu-dropdown-column {
        width: 100% !important;
        border-bottom: 1px solid rgba(37, 88, 121, 0.1);
        padding: 0 !important;
    }
    .menu-dropdown-column:last-child { border-bottom: none !important; }
    .menu-dropdown-column-title {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        cursor: pointer !important;
        padding: 15px 20px !important;
        margin: 0 !important;
        font-size: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .menu-dropdown-column-title::after {
        content: '\25BC';
        font-size: 10px;
        transition: transform 0.3s ease;
        color: #255879;
    }
    .menu-dropdown-column.active .menu-dropdown-column-title::after { transform: rotate(180deg); }
    .menu-dropdown-item {
        display: none !important;
        padding: 12px 30px !important;
        font-size: 14px !important;
        text-align: left !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        color: #555 !important;
    }
    .menu-dropdown-column.active .menu-dropdown-item { display: block !important; }
    .menu-dropdown-column.active .menu-dropdown-item.auth-hidden { display: none !important; }
    .menu-dropdown-footer { display: none !important; }
    .profile-name { display: none !important; }
    .profile-avatar {
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
        box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px #255879 !important;
    }
    .user-profile {
        padding: 3px !important;
        gap: 0 !important;
    }
    .user-profile:hover {
        background: rgba(255, 255, 255, 1) !important;
    }
    .dropdown-item {
        font-size: 14px !important;
        padding: 12px 18px;
    }
    .dropdown-menu {
        min-width: 190px !important;
    }
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 40px !important;
        padding: 0 20px;
    }
    .footer-content {
        padding: 40px 20px;
    }
    .footer-column {
        text-align: center !important;
        width: 100% !important;
        max-width: none !important;
    }
    .footer-column h3 {
        display: inline-block !important;
        width: auto !important;
        margin-bottom: 15px !important;
        font-size: 16px;
    }
    .footer-column li {
        font-size: 14px;
    }
    .footer-column a {
        font-size: 14px;
    }
    .social-icons {
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .a-footer-section {
        margin-top: 0 !important;
    }
    .footer-content {
        padding: 30px 15px !important;
    }
    .footer-links {
        padding: 0 !important;
    }
}

/* ─── ANGEBOTE PAGE ─────────────────────────────────────────────────────── */

.angebote-main {
    min-height: calc(100vh - 8vh);
    background: #f5f5f7;
    padding-top: 8vh !important;
}

/* ─── FILTER BAR ─── */
.angebote-filter-section {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: fixed;
    top: 8vh;
    left: 0;
    right: 0;
    z-index: 10;
}

.angebote-filter-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.angebote-filters {
    display: flex;
    gap: 6px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.angebote-filters::-webkit-scrollbar { display: none; }

.af-pill {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 50px;
    font-family: var(--font, -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif);
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid rgba(0,0,0,0.12);
    background: white;
    color: #3c3c43;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.af-pill:hover {
    border-color: #1d1d1f;
    color: #1d1d1f;
}

.af-pill.af-pill-active {
    background: #1d1d1f;
    border-color: #1d1d1f;
    color: white;
}

/* ─── CARDS SECTION ─── */
.angebote-cards-section {
    padding: 76px 24px 80px;
    min-height: calc(100vh - 8vh);
}

.angebote-cards-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* ─── LOADING ─── */
.angebote-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 0;
    color: #6e6e73;
    font-size: 14px;
}

.angebote-spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid rgba(0,0,0,0.1);
    border-top-color: #1d1d1f;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── LOGIN GATE ─── */
.angebote-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 24px;
    gap: 12px;
}

.gate-icon {
    width: 56px;
    height: 56px;
    color: #6e6e73;
    margin-bottom: 4px;
}

.gate-icon svg { width: 100%; height: 100%; }

.gate-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin: 0;
}

.gate-text {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.5;
    margin: 0;
    max-width: 320px;
}

.gate-btn {
    margin-top: 8px;
    height: 44px;
    padding: 0 28px;
    border-radius: 50px;
    background: #1d1d1f;
    color: white;
    font-family: var(--font, -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.gate-btn:hover { opacity: 0.82; }
.gate-btn:active { opacity: 0.7; }

/* ─── EMPTY STATE ─── */
.angebote-empty {
    text-align: center;
    padding: 80px 0;
    color: #6e6e73;
    font-size: 14px;
}

/* ─── GRID ─── */
.angebote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* ─── CARD ─── */
.angebot-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    gap: 12px;
}

.angebot-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09), 0 1px 3px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.angebot-card:active {
    transform: scale(0.98);
}

/* Card header: circle icon + label + date */
.card-header {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.card-ind-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.card-ind-label {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-date {
    font-size: 11px;
    color: #aeaeb2;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Card rows: 3 fixed data rows */
.card-rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-row-lbl {
    font-size: 11px;
    color: #8e8e93;
    font-weight: 500;
    flex-shrink: 0;
}

.card-row-val {
    font-size: 11px;
    color: #1d1d1f;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

/* Legacy badge (used in popup) */
.card-industry-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.card-badge-icon {
    width: 13px;
    height: 13px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ─── POPUP CHIP STYLES (used in popup only) ─── */
.card-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f5f5f7;
    font-size: 12px;
    font-weight: 500;
    color: #3c3c43;
    white-space: nowrap;
}

.card-chip svg {
    width: 13px;
    height: 13px;
    color: #8e8e93;
    flex-shrink: 0;
}

/* ─── POPUP ─── */
.ag-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.ag-popup-backdrop.ag-popup-visible {
    opacity: 1;
}

.ag-popup {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.12);
    transform: scale(0.95) translateY(8px);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.ag-popup::-webkit-scrollbar { display: none; }

.ag-popup-backdrop.ag-popup-visible .ag-popup {
    transform: scale(1) translateY(0);
}

/* Popup accent stripe */
.ag-popup-accent {
    height: 5px;
    width: 100%;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

/* Close button */
.ag-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.07);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    z-index: 2;
}

.ag-popup-close:hover { background: rgba(0,0,0,0.12); }

.ag-popup-close svg {
    width: 12px;
    height: 12px;
    color: #3c3c43;
}

/* Popup header */
.ag-popup-header {
    padding: 24px 20px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ag-popup-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ag-popup-meta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ag-popup-ind-label {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.025em;
}

.ag-popup-ind-sub {
    font-size: 12px;
    color: #aeaeb2;
    font-weight: 500;
}

.ag-popup-date {
    font-size: 12px;
    color: #aeaeb2;
    font-weight: 500;
}

/* Detail rows */
.ag-detail-list {
    background: #f5f5f7;
    border-radius: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ag-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 14px;
    height: 36px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ag-detail-row:last-child {
    border-bottom: none;
}

.ag-detail-icon {
    display: none;
}

.ag-detail-label {
    font-size: 13px;
    color: #8e8e93;
    font-weight: 400;
    flex-shrink: 0;
}

.ag-detail-value {
    font-size: 13px;
    color: #1d1d1f;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ag-detail-value a {
    color: #255879 !important;
    text-decoration: none;
    font-weight: 500;
}

/* Locked contact */
.ag-contact-locked {
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    background: #f5f5f7;
    border-radius: 14px;
    padding: 14px 16px;
}

.ag-contact-locked svg {
    color: #8e8e93;
    flex-shrink: 0;
}

.ag-locked-title {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
}

.ag-locked-sub {
    font-size: 11px;
    color: #8e8e93;
    margin-top: 1px;
}

.ag-popup-desc {
    font-size: 14px;
    color: #3c3c43;
    line-height: 1.55;
    margin: 0;
}

/* Popup body */
.ag-popup-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ag-popup-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 32px;
    min-height: 370px;
}

.ag-popup-section {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ag-popup-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #255879;
    margin-bottom: 8px;
}

.ag-popup-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Popup contact */
.ag-popup-contact {
    background: #f5f5f7;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ag-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #3c3c43;
}

.ag-contact-item svg {
    width: 15px;
    height: 15px;
    color: #8e8e93;
    flex-shrink: 0;
}

.ag-contact-item strong {
    font-weight: 600;
    color: #1d1d1f;
}

.ag-contact-item a {
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
}

.ag-contact-item a:hover { text-decoration: underline; }

/* ─── CONTACT FOOTER (legacy - kept for reference) ─── */
.contact-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #3c3c43;
}

.contact-item a {
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .angebote-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .angebote-main {
        padding-top: calc(8vh + 52px) !important;
    }

    .angebote-filter-section {
        top: 8vh;
    }

    .angebote-filter-inner {
        padding: 0 16px;
    }

    .angebote-filters {
        justify-content: center;
        padding: 10px 0;
    }

    .af-pill[data-filter="all"] {
        display: none;
    }

    .angebote-cards-section {
        padding: 24px 14px 60px;
    }

    .angebote-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ag-popup {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 82vh;
    }

    .ag-popup-cols {
        grid-template-columns: 1fr;
    }

    .ag-popup-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .ag-popup-backdrop.ag-popup-visible .ag-popup {
        transform: scale(1) translateY(0);
    }

    .ag-popup-backdrop .ag-popup {
        transform: translateY(30px);
    }
}

.dropdown-item-with-percent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.completeness-dropdown-percent {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
}
