/* Button im Header: dunkler Kern mit umlaufendem Farbring, unabhängig vom Theme */
@property --hilzweb-agent-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.hilzweb-agent-header {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: .875rem;
}

.hilzweb-agent-header-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 42rem;
}

.hilzweb-agent-header .header-search {
    max-width: none;
    margin: 0 !important;
}

.hilzweb-agent-btn {
    --hilzweb-agent-core: #14161c;
    position: relative;
    isolation: isolate;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 3.25rem;
    min-height: 2.75rem;
    padding: 0 1.125rem;
    border-radius: .75rem;
    background: var(--hilzweb-agent-core);
    box-shadow: 0 .375rem 1.125rem rgba(20, 22, 28, .28);
    color: #fff;
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease;
}

.hilzweb-agent-btn::before {
    content: '';
    position: absolute;
    z-index: -2;
    inset: -2px;
    border-radius: calc(.75rem + 2px);
    background: conic-gradient(from var(--hilzweb-agent-angle), var(--bs-primary, #e00000), #ffb020, #7c5cff, #1fc8ff, var(--bs-primary, #e00000));
    animation: hilzweb-agent-spin 4s linear infinite;
}

.hilzweb-agent-btn::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: var(--hilzweb-agent-core);
}

.hilzweb-agent-btn:hover,
.hilzweb-agent-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 .5rem 1.5rem rgba(20, 22, 28, .38);
    color: #fff;
    text-decoration: none;
}

.hilzweb-agent-btn:focus-visible {
    outline: 3px solid var(--bs-primary, #e00000);
    outline-offset: 3px;
}

.hilzweb-agent-btn-icon {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    color: #ffc14d;
}

@keyframes hilzweb-agent-spin {
    to {
        --hilzweb-agent-angle: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hilzweb-agent-btn::before {
        animation: none;
    }
}

/* Bis lg nur das Symbol, die Suche braucht den Platz */
@media (max-width: 991.98px) {
    .hilzweb-agent-btn {
        justify-content: center;
        padding: 0;
    }

    .hilzweb-agent-btn-label {
        display: none;
    }
}

/* Seiten des Plugins */
.hilzweb-agent-page {
    max-width: 52rem;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.hilzweb-agent-narrow {
    max-width: 36rem;
}

.hilzweb-agent-hero h1 {
    margin-bottom: .75rem;
}

.hilzweb-agent-box {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: .75rem;
    background: rgba(0, 0, 0, .025);
}

.hilzweb-agent-box label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 700;
}

.hilzweb-agent-box ul {
    margin: .25rem 0 1rem;
    padding-left: 1.25rem;
}

.hilzweb-agent-box ul:last-child {
    margin-bottom: 0;
}

.hilzweb-agent-steps {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0;
    counter-reset: hilzweb-agent-step;
    list-style: none;
}

.hilzweb-agent-steps li {
    position: relative;
    padding-left: 3rem;
    counter-increment: hilzweb-agent-step;
}

.hilzweb-agent-steps li::before {
    content: counter(hilzweb-agent-step);
    position: absolute;
    top: 0;
    left: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #14161c;
    color: #fff;
    font-weight: 700;
    line-height: 2rem;
    text-align: center;
}

.hilzweb-agent-steps strong,
.hilzweb-agent-steps span {
    display: block;
}

.hilzweb-agent-section {
    margin-top: 2.5rem;
}

.hilzweb-agent-connections {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hilzweb-agent-connections li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .875rem 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.hilzweb-agent-connections small {
    display: block;
    color: rgba(0, 0, 0, .6);
}

.hilzweb-agent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.hilzweb-agent-items {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.hilzweb-agent-items li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .625rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.hilzweb-agent-totals,
.hilzweb-agent-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .375rem 1rem;
    margin-bottom: 1.5rem;
}

.hilzweb-agent-facts {
    grid-template-columns: 11rem minmax(0, 1fr);
}

.hilzweb-agent-totals dt,
.hilzweb-agent-totals dd,
.hilzweb-agent-facts dd {
    margin: 0;
    font-weight: 400;
}

.hilzweb-agent-totals dd {
    text-align: right;
}

.hilzweb-agent-totals .hilzweb-agent-total {
    font-size: 1.25rem;
    font-weight: 700;
}

.hilzweb-agent-totals small {
    display: block;
    font-size: .75rem;
    font-weight: 400;
}

.hilzweb-agent-legal {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    margin: .75rem 0 1rem;
    font-size: .875rem;
}
