/* Automatisering (sak 27025, 2026-10-25): hero med en arbeidsflyt som kjører. En sak kommer inn, går gjennom stegene
 * (les, sjekk, godkjenn, ferdig), og telleren for spart tid går opp. Ikonfliser i kortene i stedet for emoji. */
.au-hero { position: relative; overflow: hidden; overflow: clip; padding: 9.5rem 0 5rem; }
@media (max-width: 991.98px) { .au-hero { padding: 8rem 0 3rem; } }
.au-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 75% 50%, rgba(255,181,71,.12), transparent 70%); }
.au-hero > .container { position: relative; z-index: 1; }
.au-h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 0 0 1.2rem; }
.au-lead { font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,.8); max-width: 32rem; margin: 0; }
.au-flyt { position: relative; max-width: 560px; margin: 0 auto; padding: 1.2rem; border-radius: 14px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); pointer-events: none; user-select: none; }
@media (max-width: 991.98px) { .au-flyt { margin-top: 2.5rem; } }
.au-topp { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: .8rem; color: rgba(255,255,255,.6); }
.au-topp b { color: rgb(255,255,255); font-size: .9rem; }
.au-teller { font-variant-numeric: tabular-nums; color: rgb(143,211,166); font-weight: 700; }
.au-steg-liste { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.au-steg-liste::before { content: ""; position: absolute; left: 10%; right: 10%; top: 26px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 6px, transparent 6px 12px); animation: au-strek 1s linear infinite; }
@keyframes au-strek { to { background-position: 12px 0; } }
.au-steg { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.au-steg i { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: rgb(44,44,52); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); transition: background .45s ease, box-shadow .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
/* Det oransje feltet tones inn og ut (en fargeovergang i background kan ikke animeres, men opasitet kan) */
.au-steg i::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(135deg, rgb(255,181,71), rgb(255,106,61)); opacity: 0; transition: opacity .45s ease; }
.au-steg.aktiv i::before { opacity: 1; }
.au-steg svg { width: 24px; height: 24px; fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.au-steg b { font-size: .74rem; font-weight: 700; color: rgba(255,255,255,.65); line-height: 1.25; }
.au-steg.aktiv i { box-shadow: 0 0 0 4px rgba(255,140,60,.2), 0 10px 24px -8px rgba(255,106,61,.8); transform: translateY(-3px); }
.au-steg.aktiv svg { stroke: rgb(255,255,255); }
.au-steg.aktiv b { color: rgb(255,255,255); }
.au-steg.ferdig i { background: rgba(143,211,166,.25); box-shadow: inset 0 0 0 1px rgba(143,211,166,.6); }
/* Saken som går gjennom flyten */
.au-sak { position: absolute; left: 0; top: 14px; width: 24px; height: 24px; margin-left: -12px; border-radius: 6px; z-index: 2; background: rgb(255,255,255);
    box-shadow: 0 0 14px 4px rgba(255,214,150,.75); transition: transform .7s cubic-bezier(.65,0,.35,1), opacity .3s ease; }
.au-sak::before { content: ""; position: absolute; left: 5px; right: 5px; top: 7px; height: 2px; background: rgb(150,150,160); box-shadow: 0 4px 0 rgb(180,180,190), 0 8px 0 rgb(200,200,210); }
.au-logg { margin-top: 1.1rem; display: flex; flex-direction: column; height: 86px; overflow: hidden; }
.au-logg span { display: block; flex: none; max-height: 2em; padding-bottom: .35rem; overflow: hidden; font: 500 .74rem/1.3 Consolas, Menlo, monospace; color: rgba(255,255,255,.6); animation: au-logg .5s cubic-bezier(.2,.8,.2,1) both; }
.au-logg span b { color: rgb(143,211,166); font-weight: 700; }
/* Ny linje vokser fram øverst, så de andre glir rolig nedover i stedet for å hoppe */
@keyframes au-logg { from { opacity: 0; max-height: 0; padding-bottom: 0; transform: translateY(-4px); } to { opacity: 1; max-height: 2em; padding-bottom: .35rem; transform: none; } }
/* Ikonflis i kortene «Typiske prosesser» */
.au-ikon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 4px; margin-right: .6rem; vertical-align: middle;
    color: rgb(204,74,21); background: rgb(250,243,239); box-shadow: inset 0 0 0 1px rgba(204,74,21,.12); }
.au-ikon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .au-steg-liste::before { animation: none; } }
/* Kortene «Typiske prosesser» (strammet inn 2026-10-25): ikonet over tittelen, jevn luft, lenken nederst,
 * og det sjuende kortet bredt over hele raden i stedet for alene i en tredel. */
.au-kort { border-radius: 14px; background: rgb(255,255,255); box-shadow: 0 0 0 1px rgba(17,24,39,.06), 0 18px 40px -30px rgba(17,24,39,.4); transition: transform .3s ease, box-shadow .3s ease; }
.au-kort:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(204,74,21,.2), 0 24px 50px -28px rgba(17,24,39,.45); }
.au-kort .card-body { display: flex; flex-direction: column; padding: 1.75rem 1.75rem 1.6rem; }
.au-kort h3 { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; font-size: 1.1rem; line-height: 1.3; margin: 0 0 .6rem; }
.au-kort .au-ikon { margin: 0; width: 44px; height: 44px; border-radius: 12px; }
.au-kort p { font-size: 1rem; line-height: 1.6; color: rgb(75,85,99); }
.au-mer { margin-top: auto; padding-top: .9rem; font-size: .92rem; font-weight: 700; color: rgb(196,67,15); }
.au-kort-bred { background: linear-gradient(120deg, rgb(255,248,243), rgb(255,255,255) 60%); }
@media (min-width: 992px) {
    .au-kort-bred .card-body { flex-direction: row; align-items: center; gap: 2.5rem; padding: 1.75rem 2.25rem; }
    .au-kort-bred h3 { flex: 0 0 34%; flex-direction: row; align-items: center; margin: 0; }
    .au-kort-bred p { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .au-kort, .au-kort:hover { transition: none; transform: none; } }
