/* Asgardis Stellenanzeigen – Blog Grid Layout (premium) */

:root {
    --asg-primary: #2563eb;
    --asg-primary-hover: #1e40af;
    --asg-text: #0f172a;
    --asg-muted: #64748b;
    --asg-card-bg: #ffffff;
    --asg-border: #e5e7eb;
    --asg-salary: #1f2937;
    --asg-search-bg: #ffffff;
    --asg-search-title: #1f2937;
    --asg-search-btn: #2563eb;
    --asg-search-chevron: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    --asg-radius: 18px;
    --asg-shadow: 0 8px 28px rgba(15, 23, 42, .07), 0 2px 6px rgba(15, 23, 42, .04);
    --asg-columns: 3;
    --asg-ratio: 16/10;
    --asg-font-scale: 1;
}

.asg {
    color: var(--asg-text);
    font-size: calc(16px * var(--asg-font-scale));
    line-height: 1.6;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.asg *,
.asg *::before,
.asg *::after { box-sizing: inherit; }
.asg img { max-width: 100%; height: auto; }

.asg a.asg-cta,
.asg a.asg-cta:hover,
.asg a.asg-cta:focus,
.asg a.asg-cta:active,
.asg a.asg-cta:visited,
.asg a.asg-btn,
.asg a.asg-btn:hover,
.asg a.asg-btn:focus,
.asg a.asg-btn:active,
.asg a.asg-btn:visited,
.asg-cta__label {
    text-decoration: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .asg * { transition: none !important; animation: none !important; }
}

/* ============================================================
   LIST / GRID
   ============================================================ */
.asg-list { padding: 4px 0; }

/* ---------- Suche ---------- */
.asg-search {
    margin: 0 0 30px;
}
.asg-search__inner {
    background: var(--asg-search-bg, var(--asg-card-bg));
    border: 1px solid color-mix(in srgb, var(--asg-border) 80%, transparent);
    border-radius: calc(var(--asg-radius) + 6px);
    box-shadow: var(--asg-shadow);
    padding: 28px clamp(18px, 4vw, 44px) 30px;
}
.asg-search__title {
    text-align: center;
    margin: 0 0 22px;
    font-family: var(--asg-title-font, inherit);
    font-weight: 800;
    font-size: calc(1.85rem * var(--asg-font-scale));
    line-height: 1.2;
    color: var(--asg-search-title, var(--asg-text));
}
.asg-search__fields {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: stretch;
}
.asg-search__field {
    flex: 1 1 220px;
    min-width: 0;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    padding: 13px 18px;
    color: #1f2937;
    background: #fff;
    border: 1px solid var(--asg-border);
    border-radius: 12px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
            appearance: none;
}
.asg-search__field::placeholder { color: #6b7280; opacity: 1; }
.asg-search__field:focus {
    outline: none;
    border-color: var(--asg-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--asg-primary) 18%, transparent);
}
.asg-search__select {
    flex: 0 1 190px;
    cursor: pointer;
    padding-right: 42px;
    background-image: var(--asg-search-chevron);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}
.asg-search__radius { flex: 0 1 130px; }

/* Google-Places-Autocomplete-Dropdown über Sticky-Headern/Overlays halten */
.pac-container { z-index: 100000 !important; }
.asg-search__submit {
    flex: 0 0 auto;
    cursor: pointer;
    border: none;
    margin: 0;
    padding: 13px 28px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--asg-search-btn, var(--asg-primary));
    border-radius: 12px;
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.asg-search__submit:hover {
    background: color-mix(in srgb, var(--asg-search-btn, var(--asg-primary)) 82%, #000);
    box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--asg-search-btn, var(--asg-primary)) 70%, transparent);
}
.asg-search__submit:active { transform: translateY(1px); }
.asg-search__submit:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--asg-search-btn, var(--asg-primary)) 60%, transparent);
    outline-offset: 2px;
}
.asg-search__empty {
    margin: 8px 0 0;
    padding: 40px 16px;
    text-align: center;
    color: var(--asg-muted);
    font-size: 1.05rem;
}
@media (max-width: 640px) {
    .asg-search__fields { flex-direction: column; }
    .asg-search__field,
    .asg-search__select,
    .asg-search__submit { flex: 0 0 auto; width: 100%; }
}

/* Per Suche ausgeblendete Karten */
.asg-card.is-asg-hidden { display: none !important; }

.asg-grid {
    display: grid;
    grid-template-columns: repeat(var(--asg-columns), minmax(0, 1fr));
    gap: 32px;
}
@media (max-width: 1024px) { .asg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 600px)  { .asg-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Entrance ---------- */
@keyframes asgFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CARD
   ============================================================ */
.asg-card {
    position: relative;
    background: var(--asg-card-bg);
    border-radius: var(--asg-radius);
    display: flex;
    flex-direction: column;
    box-shadow: var(--asg-shadow);
    transition: transform .45s cubic-bezier(.16,.84,.28,1),
                box-shadow .45s cubic-bezier(.16,.84,.28,1);
    isolation: isolate;
    animation: asgFadeUp .7s cubic-bezier(.16,.84,.28,1) both;
    animation-delay: var(--asg-delay, 0ms);
    will-change: transform;
}

/* Animated gradient border on hover */
.asg-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--asg-primary) 0%, transparent),
        color-mix(in srgb, var(--asg-primary) 70%, transparent),
        color-mix(in srgb, var(--asg-primary) 0%, transparent));
    background-size: 200% 200%;
    background-position: 0% 0%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .45s ease, background-position .8s ease;
    pointer-events: none;
    z-index: 2;
}
.asg-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid var(--asg-border);
    pointer-events: none;
    z-index: 1;
    transition: opacity .35s ease;
}
.asg-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 60px -20px color-mix(in srgb, var(--asg-primary) 25%, rgba(15, 23, 42, .25)),
        0 8px 20px -8px rgba(15, 23, 42, .12);
}
.asg-card:hover::before {
    opacity: 1;
    background-position: 100% 100%;
}
.asg-card:hover::after { opacity: 0; }

/* ---------- Media ---------- */
.asg-card__media {
    position: relative;
    display: block;
    aspect-ratio: var(--asg-ratio);
    overflow: hidden;
    border-radius: var(--asg-radius) var(--asg-radius) 0 0;
    background:
        radial-gradient(circle at 30% 20%,
            color-mix(in srgb, var(--asg-primary) 22%, #f8fafc) 0%,
            color-mix(in srgb, var(--asg-primary) 8%, #e2e8f0) 60%,
            #cbd5e1 100%);
}
.asg-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s cubic-bezier(.16,.84,.28,1),
                filter .6s ease;
}
.asg-card:hover .asg-card__media img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.asg-card__media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(15, 23, 42, 0) 50%,
        rgba(15, 23, 42, .55) 100%);
    pointer-events: none;
    opacity: .85;
    transition: opacity .4s ease;
}
.asg-card:hover .asg-card__media-shade { opacity: 1; }

.asg-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: color-mix(in srgb, var(--asg-primary) 65%, #475569);
    opacity: .55;
    filter: drop-shadow(0 4px 10px rgba(15, 23, 42, .15));
}

/* "Neu" badge */
.asg-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px 5px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px -2px rgba(245, 158, 11, .5);
    z-index: 3;
    animation: asgPulse 2.4s ease-in-out infinite;
}
@keyframes asgPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

/* Category floating chip */
.asg-card__category {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--asg-text);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, .25);
    z-index: 3;
    transition: transform .35s cubic-bezier(.16,.84,.28,1);
}
.asg-card:hover .asg-card__category {
    transform: translateY(-2px);
}

/* ---------- Body ---------- */
.asg-card__body {
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
}

.asg-card__brand {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}
.asg-card__brand img {
    height: 28px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

.asg-card__title {
    font-family: var(--asg-title-font, inherit);
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.015em;
}
.asg-card__title a { font-family: inherit; }
.asg-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}
.asg-card__title a:hover { color: var(--asg-primary); }
.asg-card__title a:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--asg-primary) 60%, transparent);
    outline-offset: 4px;
    border-radius: 4px;
}

.asg-card__excerpt {
    margin: 0;
    color: var(--asg-muted);
    font-size: 0.94rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Meta strip (stacked, theme-robust) ---------- */
.asg-card__meta {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--asg-muted);
}
.asg-card__meta li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    width: 100%;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}
.asg-card__meta li::before,
.asg-card__meta li + li::before {
    content: none;
}
.asg-card__meta li svg {
    color: var(--asg-primary);
    flex: 0 0 auto;
    opacity: .85;
    margin-top: 2px;
}
.asg-card__meta li span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

/* ---------- Foot ---------- */
.asg-card__foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid color-mix(in srgb, var(--asg-border) 80%, transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.asg-card__salary {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.asg-card__salary-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--asg-muted);
    font-weight: 700;
}
.asg-card__salary-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--asg-salary, var(--asg-text));
    -webkit-text-fill-color: currentColor; /* überschreibt evtl. vom Theme geerbtes transparent */
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.asg-card__salary-period {
    font-size: 0.74rem;
    color: var(--asg-muted);
    font-weight: 500;
}

/* ---------- CTA Button ---------- */
.asg-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 11px 11px 18px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--asg-primary) 8%, transparent);
    color: var(--asg-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition:
        background .3s ease,
        color .3s ease,
        padding .3s cubic-bezier(.16,.84,.28,1),
        transform .3s cubic-bezier(.16,.84,.28,1),
        box-shadow .3s ease;
    border: 1px solid color-mix(in srgb, var(--asg-primary) 16%, transparent);
    overflow: hidden;
    white-space: nowrap;
}
.asg-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--asg-primary);
    color: #fff;
    transition: transform .35s cubic-bezier(.16,.84,.28,1),
                width .3s cubic-bezier(.16,.84,.28,1),
                background .3s ease;
    flex: 0 0 28px;
}
.asg-cta__icon svg { transition: transform .3s cubic-bezier(.16,.84,.28,1); }
.asg-cta:hover {
    background: var(--asg-primary);
    color: #fff;
    border-color: var(--asg-primary);
    padding-right: 22px;
    box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--asg-primary) 60%, transparent);
    text-decoration: none !important;
}
.asg-cta:hover .asg-cta__icon {
    background: #fff;
    color: var(--asg-primary);
}
.asg-cta:hover .asg-cta__icon svg { transform: translateX(2px); }
.asg-cta:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--asg-primary) 60%, transparent);
    outline-offset: 3px;
}

/* Legacy fallback styling for any old asg-btn usage */
.asg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.asg-btn--block { width: 100%; justify-content: center; padding: 13px 22px; }
.asg-btn-filled .asg-btn {
    background: var(--asg-primary);
    color: #fff;
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--asg-primary) 60%, transparent);
}
.asg-btn-filled .asg-btn:hover {
    background: var(--asg-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--asg-primary) 70%, transparent);
}
.asg-btn-outline .asg-btn {
    border-color: color-mix(in srgb, var(--asg-primary) 50%, transparent);
    color: var(--asg-primary);
    background: transparent;
}
.asg-btn-outline .asg-btn:hover {
    background: var(--asg-primary);
    color: #fff;
    border-color: var(--asg-primary);
}
.asg-btn-ghost .asg-btn {
    background: color-mix(in srgb, var(--asg-primary) 10%, transparent);
    color: var(--asg-primary);
}
.asg-btn-ghost .asg-btn:hover {
    background: color-mix(in srgb, var(--asg-primary) 18%, transparent);
}
.asg-btn svg { transition: transform .25s cubic-bezier(.16,.84,.28,1); }
.asg-btn:hover svg { transform: translateX(3px); }

/* ============================================================
   SINGLE VIEW
   ============================================================ */
.asg-single { display: block; padding: 4px 0; }

.asg-hero {
    position: relative;
    border-radius: calc(var(--asg-radius) + 4px);
    overflow: hidden;
    margin-bottom: 32px;
    aspect-ratio: var(--asg-hero-ratio, 21/9);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--asg-primary) 70%, #0f172a),
        #0f172a);
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, .3);
}

/* Hero sitzt in der linken Spalte (Bild links, „Interessiert“-Box direkt rechts daneben) */
.asg-single__main > .asg-hero:first-child {
    margin-bottom: 28px;
    border-radius: var(--asg-radius);
}

.asg-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 1.4s ease;
}
.asg-hero:hover img { transform: scale(1.06); }

.asg-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    padding: clamp(20px, 4vw, 48px);
    color: #fff;
    background:
        radial-gradient(ellipse at 20% 100%,
            color-mix(in srgb, var(--asg-primary) 35%, transparent) 0%,
            transparent 60%),
        linear-gradient(180deg, rgba(15,23,42,0) 30%, rgba(15,23,42,.88) 100%);
}
.asg-hero__title {
    font-family: var(--asg-title-font, inherit);
    font-size: clamp(1.8rem, 3.5vw, 2.9rem);
    margin: 0;
    color: var(--asg-hero-title, #fff);
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
    max-width: 80ch;
    overflow-wrap: normal;
    word-break: normal;
}
.asg-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    opacity: .95;
    color: rgba(255,255,255,.92);
}

.asg-single__header {
    padding: 8px 0 24px;
    border-bottom: 1px solid var(--asg-border);
    margin-bottom: 28px;
}
.asg-single__header h1 {
    margin: 14px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.asg-back {
    margin: 0 0 24px;
    font-size: 0.92rem;
}
.asg-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--asg-muted);
    text-decoration: none;
    padding: 6px 12px;
    margin-left: -12px;
    border-radius: 10px;
    transition: background .2s ease, color .2s ease;
}
.asg-back a:hover {
    color: var(--asg-muted);
    background: transparent;
}
.asg-back a:hover svg { transform: translateX(-3px); }
.asg-back svg { transition: transform .2s cubic-bezier(.16,.84,.28,1); }

.asg-single__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 40px;
    align-items: start;
}
@media (max-width: 980px) {
    .asg-single__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Hero chips (overrides global chip styling) */
.asg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.asg-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--asg-border) 50%, transparent);
    color: var(--asg-muted);
    line-height: 1.4;
    border: 1px solid color-mix(in srgb, var(--asg-border) 70%, transparent);
}
.asg-chip--accent {
    background: color-mix(in srgb, var(--asg-accent, var(--asg-primary)) 14%, transparent);
    color: color-mix(in srgb, var(--asg-accent, var(--asg-primary)) 85%, #0f172a);
    border-color: color-mix(in srgb, var(--asg-accent, var(--asg-primary)) 25%, transparent);
}
.asg-chip--light {
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
    border-color: rgba(255, 255, 255, .4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.asg-hero .asg-chip--accent {
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
    border-color: rgba(255, 255, 255, .4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Hauptspalte als lesbare Inhaltsfläche – funktioniert auf hellem UND dunklem
   Seiten-Hintergrund (Inhalt sitzt auf der Kartenfarbe statt direkt auf der Seite). */
.asg-single__main {
    /* Standard: kein eigener Hintergrund – Inhalt sitzt direkt auf der Seite.
       Nur wenn der Nutzer „Hintergrund linke Box" setzt, wird --asg-box-main gefüllt. */
    background: var(--asg-box-main, transparent);
    border: none;
    border-radius: var(--asg-radius);
    box-shadow: none;
    padding: 0;
    min-width: 0;
    max-width: 100%;
}
.asg-single__brand { margin: 0 0 18px; }
.asg-single__brand img {
    max-height: var(--asg-logo-single, 48px);
    max-width: 220px;
    width: auto;
    height: auto;
    display: block;
}

/* Unter dem Titel: großes Logo links, daneben Infos (Sprache/Kategorie/Art + Ort) */
.asg-hero__brandbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.asg-hero__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
/* Logo als helles Chip (damit es auf jedem Bild lesbar bleibt) */
.asg-hero__logo {
    line-height: 0;
    background: var(--asg-logo-box, rgba(255, 255, 255, .92));
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    flex: 0 0 auto;
}
.asg-hero__logo img {
    height: var(--asg-logo-single, 48px);
    width: auto;
    max-width: 240px;
    display: block;
}

@media (max-width: 720px) {
    .asg-hero {
        aspect-ratio: auto;
        min-height: 390px;
    }
    .asg-single__main > .asg-hero:first-child {
        margin-bottom: 22px;
    }
    .asg-hero img {
        transform: none;
    }
    .asg-hero:hover img {
        transform: none;
    }
    .asg-hero__overlay {
        gap: 12px;
        padding: 18px;
        background:
            radial-gradient(ellipse at 20% 100%,
                color-mix(in srgb, var(--asg-primary) 28%, transparent) 0%,
                transparent 62%),
            linear-gradient(180deg, rgba(15,23,42,.08) 0%, rgba(15,23,42,.9) 100%);
    }
    .asg-hero__title {
        font-size: clamp(1.38rem, 7vw, 1.85rem);
        line-height: 1.14;
        letter-spacing: 0;
        max-width: 100%;
    }
    .asg-hero__brandbar {
        align-items: flex-start;
        gap: 10px;
        margin-top: 8px;
    }
    .asg-hero__logo {
        padding: 7px 10px;
        border-radius: 10px;
    }
    .asg-hero__logo img {
        height: min(var(--asg-logo-single, 48px), 42px);
        max-width: 150px;
    }
    .asg-hero__info {
        gap: 7px;
    }
    .asg-hero__meta {
        font-size: 0.88rem;
    }
}

@media (max-width: 420px) {
    .asg-hero {
        min-height: 410px;
    }
    .asg-hero__overlay {
        padding: 16px;
    }
    .asg-chip {
        font-size: 0.72rem;
        padding: 5px 10px;
    }
}

/* Facts box */
.asg-facts {
    list-style: none;
    padding: 24px 28px;
    margin: 0 0 32px;
    background: var(--asg-box-facts, color-mix(in srgb, var(--asg-text) 5%, var(--asg-card-bg)));
    border: 1px solid var(--asg-box-facts-border, var(--asg-border));
    border-radius: var(--asg-radius);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px 28px;
}
.asg-facts li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.asg-facts li > span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--asg-muted);
    font-weight: 700;
}
.asg-facts li strong {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--asg-text);
    overflow-wrap: normal;
    word-break: normal;
}
.asg-facts__addr {
    display: block;
    margin-top: 2px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--asg-text);
    text-transform: none;
    letter-spacing: 0;
}

/* Sections */
.asg-section {
    margin: 0 0 36px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}
.asg-section > h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    margin: 0 0 16px;
    letter-spacing: -0.015em;
    font-weight: 700;
    color: var(--asg-heading, inherit);
}
.asg-section > h2 .asg-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--asg-accent, var(--asg-primary)) 12%, transparent);
    color: var(--asg-accent, var(--asg-primary));
    flex: 0 0 36px;
}
.asg-section--lead {
    font-size: 1.08rem;
    color: var(--asg-text);
    background: var(--asg-box-lead, color-mix(in srgb, var(--asg-accent, var(--asg-primary)) 8%, var(--asg-card-bg)));
    padding: 22px 26px;
    border-radius: var(--asg-radius);
    border-left: 4px solid var(--asg-box-lead-border, var(--asg-accent, var(--asg-primary)));
    max-width: 100%;
    overflow: hidden;
}
.asg-section--lead p { margin: 0 0 10px; }
.asg-section--lead p:last-child { margin-bottom: 0; }

.asg-section ul, .asg-section ol {
    padding-left: 1.25rem;
    margin: 0;
}
.asg-section ul {
    list-style: disc outside;
}
.asg-section ol {
    list-style: none;
    padding-left: 0;
}
.asg-section ul li {
    display: list-item;
    position: relative;
    padding: 6px 0;
    border-bottom: none !important;
}
.asg-section ul li::marker {
    color: var(--asg-primary);
    font-size: 1.05em;
}
.asg-section ul li::before {
    content: none !important;
    display: none !important;
}
.asg-section ol { counter-reset: asg-counter; }
.asg-section ol li {
    counter-increment: asg-counter;
    padding-left: 36px;
}
.asg-section ol li::before {
    content: counter(asg-counter);
    width: 22px;
    height: 22px;
    background: var(--asg-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 12px;
    background-image: none;
}

/* Sidebar: Interessiert-Box und Ansprechpartner */
.asg-single__aside {
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.asg-applybox { min-width: 0; }
/* Ganzer Block klebt beim Scrollen – per JS gesetzt (theme-unabhängig) */
.asg-single__aside.is-asg-stuck {
    will-change: top;
}

/* Karten-Chrome der Aside-Boxen */
.asg-applybox,
.asg-contact {
    border-radius: var(--asg-radius);
    padding: 20px;
    box-shadow: var(--asg-shadow);
    border: 1px solid var(--asg-border);
    background: var(--asg-card-bg);
}
/* Hintergrund + Rahmenfarbe je Box einzeln überschreibbar */
.asg-applybox { background: var(--asg-box-apply, var(--asg-card-bg)); border-color: var(--asg-box-apply-border, var(--asg-border)); }
.asg-contact  { background: var(--asg-box-contact, var(--asg-card-bg)); border-color: var(--asg-box-contact-border, var(--asg-border)); }
.asg-single__aside h3 {
    margin: 0 0 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--asg-muted);
    font-weight: 700;
}
.asg-contact {
    position: relative;
}
.asg-contact__name {
    font-weight: 700;
    margin: 0 0 4px;
    font-size: 1.02rem;
    color: var(--asg-text);
}
.asg-contact__line {
    margin: 0 0 4px;
    color: var(--asg-muted);
    font-size: 0.86rem;
    line-height: 1.42;
}
.asg-contact__line a {
    color: inherit;
    text-decoration: underline;
    overflow-wrap: break-word;
    word-break: normal;
}
.asg-contact a.asg-btn { margin-top: 14px; }

/* ============================================================
   NOTICES
   ============================================================ */
.asg-notice {
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    color: #92400e;
    margin: 0 0 16px;
    font-size: 0.95rem;
}
.asg-notice-error {
    border-left-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

/* ---------- Detailseite: „Jetzt bewerben“-Button mit eigener Farbe ---------- */
.asg .asg-apply {
    background: var(--asg-apply-btn, var(--asg-primary));
    border-color: var(--asg-apply-btn, var(--asg-primary));
    color: var(--asg-apply-btn-text, #fff);
    box-shadow: none;
}
.asg .asg-apply:hover {
    background: var(--asg-apply-btn-hover, color-mix(in srgb, var(--asg-apply-btn, var(--asg-primary)) 85%, #000));
    border-color: var(--asg-apply-btn-hover, color-mix(in srgb, var(--asg-apply-btn, var(--asg-primary)) 85%, #000));
    color: var(--asg-apply-btn-text, #fff);
    box-shadow: none;
}

/* ---------- Bewerbungsformular ---------- */
.asg-applybox__title {
    margin: 0 0 10px;
    font-family: var(--asg-title-font, inherit);
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--asg-text);
}
.asg .asg-apply-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.asg .asg-apply-form__row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}
.asg .asg-apply-form__row > span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--asg-text);
}
.asg .asg-apply-form input[type="email"],
.asg .asg-apply-form input[type="text"],
.asg .asg-apply-form input[type="file"] {
    width: 100%;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #1f2937;
    background: #fff;
    border: 1px solid var(--asg-border);
    border-radius: 10px;
    box-shadow: none;
    -webkit-appearance: none;
            appearance: none;
}
.asg .asg-apply-form input[type="email"],
.asg .asg-apply-form input[type="text"] { padding: 9px 12px; }
.asg .asg-apply-form input[type="file"] { padding: 7px 10px; cursor: pointer; font-size: 0.84rem; }
.asg .asg-apply-form input:focus {
    outline: none;
    border-color: var(--asg-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--asg-primary) 18%, transparent);
}
.asg-apply-form__hint {
    margin: -3px 0 0;
    font-size: 0.74rem;
    color: var(--asg-muted);
}
.asg .asg-apply-form__check {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    font-size: 0.78rem;
    color: var(--asg-muted);
    line-height: 1.35;
}
.asg .asg-apply-form__check input {
    margin: 2px 0 0;
    flex: 0 0 auto;
}
.asg-apply-form__check a { color: var(--asg-primary); }
.asg-apply-form__status {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
}
.asg-apply-form__status.is-info { background: color-mix(in srgb, var(--asg-primary) 10%, transparent); color: var(--asg-text); }
.asg-apply-form__status.is-success { background: #ecfdf5; color: #065f46; }
.asg-apply-form__status.is-error { background: #fef2f2; color: #991b1b; }
.asg-applybox .asg-apply {
    margin-top: 2px;
    padding: 11px 18px;
}
.asg-apply-form button[disabled] { opacity: .65; cursor: progress; }
/* Overflow-Schutz: Felder + Texte nie breiter als ihre Box (v. a. mobil) */
.asg .asg-apply-form input,
.asg .asg-apply-form select { max-width: 100%; box-sizing: border-box; }
.asg-section,
.asg-section--lead,
.asg-section p,
.asg-section li,
.asg-single__main p {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    white-space: normal !important;
    max-width: 100%;
}

/* ---------- Stellenseite (eigener Beitragstyp) ---------- */
/* Stellenseite aus einem evtl. engen Theme-Container befreien → volle Breite nutzen.
   Der Inhalt selbst wird über .asg-page__inner (Inhaltsbreite-Einstellung) zentriert begrenzt. */
body.single-asgardis_job { overflow-x: hidden; }
.asg-page {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.asg-page__inner { max-width: 1140px; margin: 0 auto; padding: 32px 20px 56px; box-sizing: border-box; }
@media (max-width: 1024px) {
    /* Auf Mobil zusätzlich keinen horizontalen Überlauf zulassen */
    .asg-page { overflow-x: hidden; }
}
